zhzf/client/public/js/egis-2d.js

69 lines
4.1 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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

/**
*version:1.0.141
*build_time:2021-06-08 17:25:57
*git_version:4a515cc2bbf1b1597c430235e6c261539a741cef
**/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["egis-2d"]=e():t["egis-2d"]=e()}(window,function(){return m=[function(t,e,n){var i;void 0===(i=function(t,e,n){function r(){}var i=1e4;function o(t,e){var n=e.prototype,i=t.prototype;for(var r in n)i[r]=n[r];i.uber=n,function(t){t.extend=function(t){var e=this,n="function"==typeof t.initialize?t.initialize:function(t){e.call(this,t||{})};for(var i in o(n,this),t)t.hasOwnProperty(i)&&"prototype"!==i&&"initialize"!=i&&(n.prototype[i]=t[i]);return n}}(t)}return r.extend2=function(t,e){o(t,e)},r.extend=function(n,t){var e="function"==typeof t.initialize?t.initialize:function(t){var e=t||{};n.call(this,e)};for(var i in r.extend2(e,n),t)t.hasOwnProperty(i)&&"prototype"!==i&&"initialize"!=i&&(e.prototype[i]=t[i]);return e},r.isArray=function(t){return!!t&&t.constructor==Array},r.newId=function(){return i++},r.destroyObject=function(t){!function t(e){if(null!=e&&e instanceof Object)for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(null!=i){if(i instanceof Array){for(var r=0;r<i.length;r++){var o=i[r];t(o),o=void 0}i.length=0}else t(i);e[n]=void 0}delete e[n]}}(t)},r.extendCopy=function(t){var e={};for(var n in t)e[n]=t[n];return e.uber=t,e},r.deepCopy=function t(e,n){n=n||{};for(var i in e)"object"==typeof e[i]?(n[i]=e[i].constructor===Array?[]:{},t(e[i],n[i])):n[i]=e[i];return n},r.objectPlus=function(t,e){var n;function i(){}for(var r in i.prototype=t,(n=new i).uber=t,e)n[r]=e[r];return n},r.extendMulti=function(){var t,e={},n=0,i=arguments.length;for(n=0;n<i;n++)for(var r in t=arguments[n])e[r]=t[r];return e},r.olInherits=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},n.exports=r}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(22),n(8),n(13),n(142),n(143),n(70),n,e,t],void 0===(r=function(t,n,e,i,r,o,a,s,l,u){function h(t){var e=t||{};n.call(this,e),r.call(this,e),this.x=null==e.x?0:e.x,this.y=null==e.y?0:e.y,this.z=null==e.z?0:e.z,this.$type="Point,http://www.Gs.com"}return t.extend2(h,n),t.extend2(h,r),h.prototype.getGeometryType=function(){return e.Point},h.prototype.equals=function(t){return this===t||null!=t&&t.getGeometryType()===e.Point&&(Math.abs(this.x-t.x)<n.tolerate&&Math.abs(this.y-t.y)<n.tolerate)},h.prototype.offset=function(t){this.x+=t.x||0,this.y+=t.y||0,this.z+=t.z||0},h.prototype.envelope=function(){return new i({minx:this.x,maxx:this.x,miny:this.y,maxy:this.y,minz:this.z,maxz:this.z,spatialReference:this.spatialReference})},h.prototype.copy=function(){return new h(this)},h.prototype.getCoordinates=function(){return this.x+","+this.y},h.prototype.fromCoordinates=function(t){return this.x=t[0].lng,this.y=t[0].lat,this},h.prototype.getBaryCenter=function(){return{x:this.x,y:this.y}},h.prototype.asWkt=function(t){return t?"point({0} {1})".replace("{0}",this.x.toFixed(t)).replace("{1}",this.y.toFixed(t)):"point({0} {1})".replace("{0}",this.x).replace("{1}",this.y)},h.prototype.asGeoJson=function(t){var e={type:"Point",coordinates:[]};return t?(e.coordinates.push(this.x.toFixed(t)),e.coordinates.push(this.y.toFixed(t))):(e.coordinates.push(this.x),e.coordinates.push(this.y)),e},h.prototype.move=function(t,e,n){var i=o.makeTransform(t,e,n);a.applyMatrix4(this,i)},h.prototype.rotate=function(t,e){var n=o.makeRotationAxis(t,e);a.applyMatrix4(this,n)},h.prototype.scale=function(t,e,n,i){var r=o.makeScale(t,e,n,i);a.applyMatrix4(this,r)},u.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(91),n(92),n(8),n(1),n(13),n,e,t],void 0===(r=function(e,n,i,t,u,o,r,a,s){function l(t){n.call(this,t||{}),i.call(this,t||{}),this.points=[],this.$type="Path,http://www.Gs.com"}return e.extend2(l,n),e.extend2(l,i),l.prototype.getGeometryType=function(){return t.Path},l.prototype.startPoint=function(){return 0<this.points.length?this.points[0]:null},l.prototype.endPoint=function(){return 1<this.points.length?this.points[this.points.length-1]:null},l.prototype.offset=function(t){for(var e=0,n=this.points.length;e<n;++e)this.points[e].offset(t);return this},l.prototype.addPoint=function(t){e.isArray(t)?this.points=this.points.concat(t):this.points.push(t)},l.prototype.insertPoint=function(t,e){this.points.splice(t,0,e)},l.prototype.removePoint=function(t){var e=this.points.indexOf(t);this.points.splice(e,1)},l.prototype.removeAllPoint=function(){this.points.splice(0,this.points.length)},l.prototype.getPointCount=function(){return this.points.length},l.prototype.getPoint=function(t){return this.points[t]},l.prototype.getCoordinates=function(){for(var t="",e=0,n=this.points.length;e<n;e++){var i=this.points[e];t+=i.x+","+i.y+";"}return t},l.prototype.fromCoordinates=function(t){for(var e=0,n=this.points.length;e<n;e++)this.points[e].x=t[e].lng,this.points[e].y=t[e].lat;return this},l.prototype.isPointEmpty=function(){return 0==this.points.length},l.prototype.indexOf=function(t){return this.points.indexOf(t)},l.prototype.getPartPoint=function(t){if(t<=0)return this.points[0];var e=this.points.length;if(this.length()<=t)return this.points[e-1];for(var n,i,r,o=0,a=0,s=e-1;a<s;++a){if(n=this.points[a],i=this.points[a+1],t<=o+(r=Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2)))){var l=(t-o)/r;return new u({x:n.x+(i.x-n.x)*l,y:n.y+(i.y-n.y)*l})}o+=r}return this.points[e-1]},l.prototype.length=function(){for(var t=0,e=0,n=this.points.length-1;e<n;e++)t+=Math.sqrt(Math.pow(this.points[e+1].x-this.points[e].x,2)+Math.pow(this.points[e+1].y-this.points[e].y,2));return t},l.prototype.normalize=function(){for(var t=[],e=0;e<this.points.length-1;++e){var n=this.points[e],i=this.points[e+1];n.equals(i)&&t.push(n)}for(var r=0;r<t.length;r++){var o=t[r];this.removePoint(o)}},l.prototype.copy=function(){for(var t=new l,e=0,n=this.points.length;e<n;++e)t.addPoint(this.points[e].copy());return t},l.prototype.setSpatialReference=function(t){this.spatialReference=t;for(var e=0,n=this.points.length;e<n;++e)this.points[e].setSpatialReference(t)},l.prototype.envelope=function(){for(var t=miny=minz=Number.MAX_VALUE,e=maxy=maxz=-Number.MAX_VALUE,n=0,i=this.points.length;n<i;++n){var r=this.points[n];t>r.x&&(t=r.x),e<r.x&&(e=r.x),miny>r.y&&(miny=r.y),maxy<r.y&&(maxy=r.y),minz>r.z&&(minz=r.z),maxz<r.z&&(maxz=r.z)}return new o({minx:t,maxx:e,miny:miny,maxy:maxy,minz:minz,maxz:maxz,spatialReference:this.spatialReference})},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(93),n(92),n(8),n(1),n(13),n,e,t],void 0===(r=function(t,n,i,r,e,o,a,s,l){function u(t){var e=t||{};n.call(this,e),i.call(this,e),this.paths=[],this.$type="Polyline,http://www.Gs.com"}return t.extend2(u,n),t.extend2(u,i),u.prototype.getGeometryType=function(){return r.Polyline},u.prototype.addGeometry=function(t){t.getGeometryType()==r.Path&&this.paths.push(t)},u.prototype.insertGeometry=function(t,e){e.getGeometryType()==r.Path&&this.paths.splice(t,0,e)},u.prototype.removeGeometry=function(t){if(t.getGeometryType()==r.Path){var e=this.paths.indexOf(t);this.paths.splice(e,1)}},u.prototype.length=function(){for(var t=0,e=0,n=this.paths.length;e<n;++e)t+=this.paths[e].length();return t},u.prototype.removeAllGeometry=function(){this.paths.splice(0,this.points.length)},u.prototype.getGeometryCount=function(){return this.paths.length},u.prototype.getCoordinates=function(){for(var t="",e=0,n=this.paths.length;e<n;e++)for(var i=this.paths[e],r=0,o=i.getPointCount();r<o;r++){var a=i.getPoint(r);t+=a.x+","+a.y+";"}return t},u.prototype.fromCoordinates=function(t){for(var e=0,n=0,i=this.paths.length;n<i;n++)for(var r=this.paths[n],o=0,a=r.getPointCount();o<a;o++)r.getPoint(o).x=t[e].lng,r.getPoint(o).y=t[e].lat,e++;return this},u.prototype.getGeometry=function(t){return this.paths[t]},u.prototype.indexOfGeometry=function(t){this.paths.indexOf(t)},u.prototype.isGeometryEmpty=function(){return 0==this.paths.length},u.prototype.addPoint=function(t){var e=this.last();null!=e&&e.addPoint(t)},u.prototype.getPartPoint=function(t){return this.paths[0].getPartPoint(t)},u.prototype.startPoint=function(){return this.paths[0].startPoint()},u.prototype.endPoint=function(){return this.paths[0].endPoint()},u.prototype.insertPoint=function(t,e){var n=this.last();null!=n&&n.insertPoint(t,e)},u.prototype.removePoint=function(t){for(var e=0,n=this.paths.length;e<n;++e)this.paths[e].removePoint(t)},u.prototype.removeAllPoint=function(){for(var t=0,e=this.paths.length;t<e;++t)this.paths[t].removeAllPoint();this.paths.splice(0,this.paths.length)},u.prototype.getPointCount=function(){for(var t=0,e=0,n=this.paths.length;e<n;++e)t+=this.paths[e].getPointCount();return t},u.prototype.getPoint=function(t){for(var e=0,n=0,i=this.paths.length;n<i;++n){var r=this.paths[n];if(t<(e+=r.getPointCount()))return r.getPoint(r.getPointCount()-(e-t))}},u.prototype.indexOfPoint=function(t){for(var e=0,n=0,i=this.paths.length;n<i;++n){var r=this.paths[n],o=r.indexOf(t);if(-1!=o)return e+o;e+=r.getPointCount()}return-1},u.prototype.isPointEmpty=function(){return 0==this.getPointCount()},u.prototype.copy=function(){var t=new u;t.spatialReference=this.spatialReference;for(var e=0,n=this.paths.length;e<n;++e)t.addGeometry(this.paths[e].copy());return t},u.prototype.setSpatialReference=function(t){this.spatialReference=t;for(var e=0,n=this.paths.length;e<n;++e)this.paths[e].setSpatialReference(t)},u.prototype.first=function(){if(0<this.paths.length)return this.getGeometry(0)},u.prototype.last=function(){if(0<this.paths.length)return this.getGeometry(this.paths.length-1)},u.prototype.envelope=function(){for(var t=new o({spatialReference:this.spatialReference}),e=0,n=this.paths.length;e<n;++e)t=t.union(this.paths[e].envelope());return t.spatialReference=this.spatialReference,t},u.prototype.offset=function(t){for(var e=0,n=this.paths.length;e<n;++e)this.paths[e].offset(t);return this},u.prototype.middlePoint=function(){for(var t=this.length()/2,e=0,n=0,i=0,r=this.paths.length;i<r;++i){var o=this.paths[i];if(t<=e+(n=o.length()))return o.getPartPoint(t-e);e+=n}return this},u.prototype.normalize=function(){for(var t=0,e=this.paths.length;t<e;++t)this.paths[t].normalize()},u.prototype.asWkt=function(t){var e=this,n=e.getGeometryCount();if(1==n){var i=e.getGeometry(0).points,r=e.points2WKT(i,t);return"linestring{0}".replace("{0}",r)}if(1<n){for(var o="",a=0;a<n;++a){i=e.getGeometry(a).points;o+=","+(r=e.points2WKT(i,t))}return"multilinestring({0})".replace("{0}",o.substr(1))}},u.prototype.asGeoJson=function(t){var e={type:"",coordinates:[]},n=this.getGeometryCount();e.type=1==n?"LineString":"MultiLineString";for(var i=0;i<n;i++){var r=this.getGeometry(i).points;e.coordinates.push(this.getPointsArray(r,t))}return e},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(1),n(2),n,e,t],void 0===(r=function(O,N,t,e,n){var k,z,D,F,G,j,V,q,B,U,W=[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,20922789888e3,355687428096e3,6402373705728e3,0x1b02b9306890000,243290200817664e4],Z=(Math.Atan,Math.abs,[]),X=[],H=[],Y=[],K=[],J=[],Q=[],$=[],tt=[],et=[],nt=[],it=[],i=new function(){function l(t,e){return null!=t&&null!=e?new O({x:(t.x+e.x)/2,y:(t.y+e.y)/2}):null}function r(t,e,n){var i=e.y-t.y,r=t.x-e.x,o=(e.x-t.x)*t.y-(e.y-t.y)*t.x;return Math.abs(i*n.x+r*n.y+o)/Math.sqrt(i*i+r*r)}function c(t,e){var n;return(n=e.x===t.x?e.y>=t.y?-Math.PI/2:Math.PI/2:Math.atan2(t.y-e.y,e.x-t.x))<0&&(n+=2*Math.PI),180*n/Math.PI}function o(t,e,n,i,r){var o,a,s,l,u,h;0==U&&(U=1),o=t,a=e,n[r]=t,i[r]=e,r++;for(var c=1;c<=U;c++)s=1/parseFloat(U*parseFloat(c)),o=t+F*(l=s*s*(3-2*s))+j*(u=s*(s-1)*(s-1))+q*(h=s*s*(s-1)),a=e+G*l+V*u+B*h,n[r]=o,i[r]=a,r++}function h(t,e){if(Math.abs(t.x-e.x)<Math.pow(10,-12))return 0;if(t.y===e.y)return 0;var n=Math.atan2(t.x-e.x,t.y-e.y);return n<0&&(n+=2*Math.PI),n}function p(t,e,n,i,r,o,a){var s=n/_(t,e);r.x=t.x*(1-s)+e.x*s,r.y=t.y*(1-s)+e.y*s;var l=h(e,t),u=a?1:-1;o.x=r.x-u*i*Math.cos(l),o.y=r.y+u*i*Math.sin(l)}function x(t){return g(t)}function i(t,e){var n,i,r=[],o=[],a=[],s=[],l=[],u=[],h=[],c=[],p=[],f=[[],[],[]];for(e=e||t.length,P=0;P<e;P++)r[P]=t[P].x,o[P]=t[P].y;for(P=0;P<e-1;P++)a[P]=r[P+1]-r[P],s[P]=o[P+1]-o[P];for(n=Math.sqrt(a[0]*a[0]+s[0]*s[0]),P=0;P<e-2;P++)i=Math.sqrt(a[P+1]*a[P+1]+s[P+1]*s[P+1]),p[P]=n/i,n=i;for(P=p[e-2]=1;P<e-1;P++)f[0][P]=1,f[1][P]=2*p[P-1]*(1+p[P-1]),f[2][P]=p[P-1]*p[P-1]*p[P];for(f[1][0]=2,f[2][0]=p[0],f[0][e-1]=1,f[1][e-1]=2*p[e-2],P=1;P<e-1;P++)l[P]=3*(a[P-1]+p[P-1]*p[P-1]*a[P]),u[P]=3*(s[P-1]+p[P-1]*p[P-1]*s[P]);for(l[0]=3*a[0],u[0]=3*s[0],l[e-1]=3*a[e-2],u[e-1]=3*s[e-2],T(l,f),T(u,f),P=0;P<e-1;P++)h[P]=p[P]*l[P+1],c[P]=p[P]*u[P+1];for(var d,y,m,g,v,x,_=0,w=[],b=[],P=0;P<e-1;P++){d=200<(x=parseInt(Math.max(Math.abs(a[P]),Math.abs(s[P]))))?200:x+100,w[_]=r[P],b[_]=o[P],_++;for(var S=1;S<=d;S++)m=(y=S/d)*y*(3-2*y),g=y*(y-1)*(y-1),v=y*y*(y-1),w[_]=r[P]+a[P]*m+l[P]*g+h[P]*v,b[_]=o[P]+s[P]*m+u[P]*g+c[P]*v,_++}var C=[];for(P=0;P<w.length;P++)C[P]=new O({x:w[P],y:b[P]});return C}function f(t){var e=W[t];if(e)return e;for(var n=e=1;n<=t;n++)e*=n;return W[t]=e}function b(t){if(t.length<=2)return t;var e,n,i,r,o,a,s=t.length-1,l=[];for(i=0;i<=1;i+=.001){for(r=n=e=0;r<=s;r++){var u=(a=r,f(o=s)/(f(a)*f(o-a))),h=Math.pow(i,r),c=Math.pow(1-i,s-r);null!=t[r]&&(e+=u*h*c*t[r].x,n+=u*h*c*t[r].y)}l.push(new O({x:e,y:n}))}return l.push(t[s]),l}function t(t,e,n){return i(t,e)}function m(t,e,n){var i=E(e,t)-E(e,n);return i<0&&(i+=2*Math.PI),i}function P(t,e){if(t.length<=2)return t;var n=[],i=t.length-e-1;n.push(t[0]);for(var r=0;r<=i;r++)for(var o=0;o<=1;o+=.05){for(var a=0,s=0,l=0;l<=e;l++){var u=I(l,e,o);null!=t[r+l]&&(a+=u*t[r+l].x,s+=u*t[r+l].y)}n.push(new O({x:a,y:s}))}return n.push(t[t.length-1]),n}function S(t,e,n,i){var r=x(t)*e,o=[],a=R(t[1],t[0],4.71238898038469,r,"right"),s=R(t[1],t[0],4.71238898038469,r,"left");if(n){var l=r*i,u=R(t[1],t[0],0,l,"left");return o.push(a),o.push(u),o.push(s),o}return o.push(a),o.push(s),o}function C(t,e,n,i,r,o){for(var a=g(t),s=x(t)*i,l=s-_(e,n)/2,u=0,h=[],c=[],p=1;p<t.length-1;p++){var f=m(t[p-1],t[p],t[p+1])/2,d=(s-(u+=_(t[p-1],t[p]))/a*l)/Math.sin(f);h.push(R(t[p-1],t[p],f,d*r,"right")),c.push(R(t[p-1],t[p],3.141592653589793-f,d*o,"left"))}for(var y=0;y<c.length;y++)h.push(c[y]);return h}function M(t,e,n,i,r){var o=x(t)*e,a=o*n,s=o*r,l=t.length,u=t[l-1],h=_(u,t[l-2]),c=(o=h<o?h:o)*i,p=R(t[l-2],u,0,o,"left"),f=R(t[l-2],u,0,c,"left"),d=R(u,p,4.71238898038469,a,"right"),y=R(u,f,4.71238898038469,s,"right"),m=R(u,p,4.71238898038469,a,"left"),g=R(u,f,4.71238898038469,s,"left"),v=[];return v.push(y),v.push(d),v.push(u),v.push(m),v.push(g),v}var a=function(){e(Z,k),z=n(),X=[],xx=[],yy=[];d(xx,yy,0);for(var t=0;t<z;t++){X[t]=[],X[t].x=xx[t],X[t].y=yy[t];new O({x:X[t].x,y:X[t].y})}},e=function(t,e){null!=H&&(H=null),null!=Y&&(Y=null),null!=K&&(K=null),null!=J&&(J=null),null!=Q&&(Q=null),null!=$&&($=null),null!=tt&&(tt=null),null!=et&&(et=null);for(var n=0;n<3;n++)null!=it[n]&&(it[n]=null);null!=nt&&(nt=null),D=e,H=[],Y=[],K=[],J=[],Q=[],$=[],tt=[],et=[],nt=[],it=[[],[],[]];for(n=0;n<D;n++)H[n]=t[n].x,Y[n]=t[n].y;s()},s=function(){for(var t,e,n=0;n<=D-2;n++)K[n]=H[n+1]-H[n],J[n]=Y[n+1]-Y[n];e=parseFloat(Math.sqrt(K[0]*K[0]+J[0]*J[0]));for(n=0;n<=D-3;n++)t=parseFloat(Math.sqrt(K[n+1]*K[n+1]+J[n+1]*J[n+1])),nt[n]=e/t,e=t;for(n=nt[D-2]=1;n<=D-2;n++)it[0][n]=1,it[1][n]=2*nt[n-1]*(1+nt[n-1]),it[2][n]=nt[n-1]*nt[n-1]*nt[n];it[1][0]=2,it[2][0]=nt[0],it[0][D-1]=1,it[1][D-1]=2*nt[D-2];for(n=1;n<=D-2;n++)Q[n]=3*(K[n-1]+nt[n-1]*nt[n-1]*K[n]),$[n]=3*(J[n-1]+nt[n-1]*nt[n-1]*J[n]);Q[0]=3*K[0],$[0]=3*J[0],Q[D-1]=3*K[D-2],$[D-1]=3*J[D-2],T(Q),T($);for(n=0;n<=D-2;n++)tt[n]=nt[n]*Q[n+1],et[n]=nt[n]*$[n+1]},T=function(t){for(var e=[],n=[],i=0;i<=D-1;i++)e[i]=t[i]/it[1][i],n[i]=e[i];for(var r=0;r<10;r++){e[0]=(t[0]-it[2][0]*n[1])/it[1][0];for(i=1;i<D-1;i++)e[i]=(t[i]-it[0][i]*n[i-1]-it[2][i]*n[i+1])/it[1][i];e[D-1]=(t[D-1]-it[0][D-1]*n[D-2])/it[1][D-1];for(i=0;i<=D-1;i++)n[i]=e[i]}for(i=0;i<=D-1;i++)t[i]=e[i]},n=function(){for(var t=0,e=0;e<D-1;e++)u(K[e],J[e],Q[e],$[e],tt[e],et[e]),t+=y();return t},u=function(t,e,n,i,r,o){F=t,G=e,j=n,V=i,q=r,B=o,200<(U=parseInt(Math.max(Math.abs(F),Math.abs(G)/1e-5)))&&(U=200)},d=function(t,e,n){for(var i=0;i<D-1;i++)u(K[i],J[i],Q[i],$[i],tt[i],et[i]),o(H[i],Y[i],t,e,n)},y=function(){0==U&&(U=1);for(var t=1,e=1;e<=U;e++)t++;return t},_=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},g=function(t){if(t.length<=1)return 0;for(var e=0,n=0;n<t.length-1;n++)e+=_(t[n],t[n+1]);return e},v=function(t,e){var n=e.x-t.x,i=e.y-t.y;return 0==n?0<i?90:-90:180*Math.atan2(i,n)/3.141592653589793},w=function(t,e,n){var i=n*Math.cos(.017453292519943295*e),r=n*Math.sin(.017453292519943295*e);return new O({x:t.x+i,y:t.y+r})},A=function(t,e,n,i){return 1==e?n[t]<=i&&i<n[t+1]?1:0:n[t+e-1]==n[t]&&n[t+e]==n[t+1]?0:n[t+e-1]==n[t]?(n[t+e]-i)/(n[t+e]-n[t+1])*A(t+1,e-1,n,i):n[t+e]==n[t+1]?(i-n[t])/(n[t+e-1]-n[t])*A(t,e-1,n,i):(i-n[t])/(n[t+e-1]-n[t])*A(t,e-1,n,i)+(n[t+e]-i)/(n[t+e]-n[t+1])*A(t+1,e-1,n,i)},E=function(t,e){var n=0;if(null==t||null==e)return 0;var i=Math.asin(Math.abs(parseFloat(e.y-t.y))/distance(t,e));return e.y>=t.y&&e.x>=t.x?i+Math.PI:e.y>=t.y&&e.x<t.x?2*Math.PI-i:e.y<t.y&&e.x<t.x?i:(e.y<t.y&&e.x>=t.x&&(n=Math.PI-i),n)},I=function(t,e,n){if(2==e)return L(t,n);for(var i=0,r=f(e),o=0;o<=e-t;o++){i+=(o%2==0?1:-1)*f(e+1)*Math.pow(n+e-t-o,e)}return i/r},L=function(t,e){return 0==t?Math.pow(e-1,2)/2:1==t?(-2*Math.pow(e,2)+2*e+1)/2:2==t?Math.pow(e,2)/2:0},R=function(t,e,n,i,r){var o=E(t,e),a=0;a="left"==r?o+n:o-n;var s=i*Math.cos(a),l=i*Math.sin(a);return null==e?null:new O({x:e.x+s,y:e.y+l})};return{calculationCircleR:function(t,e,n){if(3857==n){var i=0,r=t.x-e.x,o=t.y-e.y;i=Math.pow(r*r+o*o,.5)}else{i=0;var a=t.y*Math.PI,s=e.y*Math.PI,l=a-s,u=(t.x-e.x)*Math.PI;i=6378.137*(i=2*Math.asin(Math.sqrt(Math.pow(Math.sin(l/2),2)+Math.cos(a)*Math.cos(s)*Math.pow(Math.sin(u/2),2))))*1e3}return i},circleRadiusChange:function(t,e,n,i){return e.y=t.y,e.x=t.x-n,e},calculationElipseLengthWide:function(t,e,n){return[Math.abs(t.x-e.x),Math.abs(t.y-e.y)]},calculationElipseLength:function(t,e,n,i){return e.x=t.x+n,e},calculationElipseWide:function(t,e,n,i){return e.y=t.y-n,e},calculationRecLengthWide:function(t,e,n,i){return[_(t,e),r(t,e,n)]},calculationRecLength:function(t,e,n,i){},calculationRecWide:function(t,e,n,i){return e.y=t.y-n,e},calculationSectorRadiusAngle:function(t,e,n,i){return[Math.abs(t.x-e.x),360-180/Math.PI*getAngleOfThreePoints(e,t,n)]},calculationSectorRadius:function(t,e,n,i){},calculationSectorAngle:function(t,e,n,i){},getDistance:r,scalePoint:function(t,e,n){return new O({x:t.x+(e.x-t.x)*n,y:t.y+(e.y-t.y)*n})},vertex:function(t,e,n,i,r,o){var a,s,l=o||90,u=c(t,e)+l;360<u&&(u-=360);var h=r?1:-1;return a=n.x+h*i*Math.cos(u*Math.PI/180),s=n.y-h*i*Math.sin(u*Math.PI/180),new O({x:a,y:s})},angle:c,optionWay:function(t,e,n){var i=e.y-t.y,r=t.x-e.x,o=t.y*(e.x-t.x)-t.x*(e.y-t.y);return 0<i*n.x+r*n.y+o},distance:_,azimuth:h,linePerpenPoints:p,pathLength:function(t){for(var e=0,n=0,i=t.length-1;n<i;n++)e+=_(t[n],t[n+1]);return e},bzLine:b,bTypeline:i,gainPt:function(t,e,n,i){var r,o,a=0,s=t.length,l=e*n,u=0,h=0,c=0,p=0,f=0,d=0,y=0,m=0;for(pti=[],pti0=[],r=1;r<s;r++)if(l<(u+=m=_(t[r],t[r-1]))){pti=t[r],h=u-m-l,pti0=t[r-1],a=r-1,f=pti0.x,d=pti0.y,y=pti.x,c=(d-pti.y)/(f-y),p=h/Math.sqrt(1+c*c),o=new O({x:f+p,y:d+p*c}),h+_(t[r-1],o);break}return[o,i=i?-1:a]},gainPt1:function(t,e,n,i){var r,o,a=0,s=t.length,l=e*n,u=0,h=0,c=0,p=0,f=0,d=0,y=0,m=0;for(pti=[],pti0=[],r=1;r<s;r++)if(l<(u+=m=_(t[r],t[r-1]))){pti=t[r],h=u-m-l,pti0=t[r-1],pti.x>pti0.x&&(h=0-h),a=r-1,f=pti0.x,d=pti0.y,y=pti.x,c=(d-pti.y)/(f-y),p=h/Math.sqrt(1+c*c),o=new O({x:f+p,y:d+p*c}),h+_(t[r-1],o);break}return[o,i=i?-1:a]},baseLength:x,wholeDistance:g,midPoint:l,polarAngle360:v,getPolarPointOfCenterPoint:w,calInterPoints:t,computePoint:function(t,e,n,i,r,o){var a,s;for(o[0]=0,a=o[1]=0;a<=e;a++)s=A(a,n,t,i),o[0]=o[0]+r[a][0]*s,o[1]=o[1]+r[a][1]*s},blend:A,computeIntervals:function(t,e,n){var i;for(i=0;i<=e+n;i++)i<n?t[i]=0:n<=i&&i<=e?t[i]=i-n+1:e<i&&(t[i]=e-n+2)},getRotateAngle:function(t,e,n){var i=n.x-t.x,r=n.y-t.y,o=Math.sqrt(i*i+r*r);if(i=e.x-t.x,r=e.y-t.y,0===i&&0===r)return null;var a=Math.sqrt(i*i+r*r);i=e.x-n.x,r=e.y-n.y;var s,l=Math.sqrt(i*i+r*r),u=(a*a+o*o-l*l)/(2*a*o);return s=n.x*t.y+t.x*e.y+e.x*n.y-(e.x*t.y+n.x*e.y+t.x*n.y)<0?2*Math.PI-Math.acos(u):Math.acos(u),{sin:Math.sin(s),cos:u}},getMapPoints:function(t,e,n){var i=new N;i.addPoint(t),i.addPoint(e);for(var r=v(n,e),o=l(n,e),a=_(n,e)/2,s=r;s<r+180;s++)i.addPoint(w(o,s,a));return i},getAngleOfThreePoints:m,getAzimuthAngle:E,getSide:function(t,e,n){var i=(e.y-t.y)*(n.x-t.x)-(n.y-t.y)*(e.x-t.x);return 0<i?"left":i<0?"right":null},calHollowArraowhead:function(t,e,n,i,r,o){for(var a=[],s=0;s<5;s++)a[s]=new O;i/=2,r/=2,o/=2;var l=Math.atan2(e.y-t.y,e.x-t.x),u=Math.cos(i);sin_VentroAngle=Math.sin(i),cos_RearAngle=Math.cos(r),sin_RearAngle=Math.sin(r),cos_direction=Math.cos(l),sin_direction=Math.sin(l),cos_HollowAngle=Math.cos(o),sin_HollowAngle=Math.sin(o),a[3].x=-n*(u*cos_direction-sin_VentroAngle*sin_direction),a[3].y=-n*(sin_VentroAngle*cos_direction+u*sin_direction),a[1].x=-n*(u*cos_direction+sin_VentroAngle*sin_direction),a[1].y=-n*(sin_direction*u-cos_direction*sin_VentroAngle),a[2].x=0,a[2].y=0;var h=n*(sin_RearAngle*u-cos_RearAngle*sin_VentroAngle)/(sin_RearAngle*cos_HollowAngle-cos_RearAngle*sin_HollowAngle);a[4].x=-h*(cos_HollowAngle*cos_direction-sin_HollowAngle*sin_direction),a[4].y=-h*(sin_HollowAngle*cos_direction+cos_HollowAngle*sin_direction),a[0].x=-h*(cos_direction*cos_HollowAngle+sin_direction*sin_HollowAngle),a[0].y=-h*(sin_direction*cos_HollowAngle-cos_direction*sin_HollowAngle);var c=e.x-(a[0].x+a[4].x)/2;dy=e.y-(a[0].y+a[4].y)/2;for(s=0;s<5;s++)a[s].x+=c,a[s].y+=dy;c=e.x-a[2].x,dy=e.y-a[2].y;for(s=0;s<5;s++)a[s].x+=c,a[s].y+=dy;return a},calPathPerpenPoints:function(t,e,n,i,r,o){for(var a=t.length,s=0,l=0,u=e;s<a-1;){if(!((l=_(t[s],t[s+1]))<u))return p(t[s],t[s+1],u,n,i,r,o);u-=l,s++}return!1},calLinePerpenPoints:function(t,e,n,i,r,o,a){var s=_(t,e);if(null==r)return!1;var l=n/s;r.x=t.x*(1-l)+e.x*l,r.y=t.y*(1-l)+e.y*l;var u=h(e,t);return a?(o.x=r.x-i*Math.cos(u),o.y=r.y+i*Math.sin(u)):(o.x=r.x+i*Math.cos(u),o.y=r.y-i*Math.sin(u)),!0},getCount:y,getCurveLine:d,putCurve:u,getCurve:o,getCurveCount:n,matrixSolve:T=function(t,e,n){n=n||t.length;for(var i=[],r=[],o=0;o<n;o++)r[o]=i[o]=t[o]/e[1][o];for(var a=0;a<10;a++){i[0]=(t[0]-e[2][0]*r[1])/e[1][0];for(o=1;o<n-1;o++)i[o]=(t[o]-e[0][o]*r[o-1]-e[2][o]*r[o+1])/e[1][o];i[n-1]=(t[n-1]-e[0][n-1]*r[n-2])/e[1][n-1];for(o=0;o<n;o++)r[o]=i[o]}for(o=0;o<n;o++)t[o]=i[o]},generate:s,setPline:e,calInterPoints:t,setBline:a,interPoints:function(t,e,n){return Z=t,k=e,a(),X,z},leftpoint:function(t,e,n,i,r,o,a){var s=e-r*t},getBSplinePoints:P,getBSplineFFactor:I,getQuadricBSplineFactor:L,getArrowTailPoints:S,getArrowBodyPoints:C,getThirdPoint:R,getArrowHeadPoints:M,getArrowPlot:function(t,e,n,i,r,o,a,s,l){for(var u=[],h=0;h<t.length;h++)u.push(t[h]);var c=M(u,r,o,a,s),p=c[0],f=c[4],d=C(u,p,f,l,1,1),y=S(u,l,e,n),m=y[0],g=3==y.length?y[1]:null,v=3==y.length?y[2]:y[1],x=d.length,_=[],w=[];for(h=0;h<x/2;h++)_[h]=d[h];for(h=x/2;h<x;h++)w[h-x/2]=d[h];_.push(p),w.push(f),_.reverse(),_.push(m),w.reverse(),w.push(v),w="useBezierFit"==i?(_=b(_),b(w)):(_=P(_,2),P(w,2)),null!=g&&(_.push(g),w.push(g)),_.reverse();for(h=0;h<c.length;h++)_.push(c[h]);for(h=0;h<w.length;h++)_.push(w[h]);return _},calLinePerpenPoint:function(t,e,n,i){return null!=t&&null!=e&&(i.x=t.x*(1-n)+e.x*n,i.y=t.y*(1-n)+e.y*n,i)}}};return n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,f){var n,i;n=[f(0),f(93),f(47),f(8),f(218),f(1),f(13),f,e,t],void 0===(i=function(t,n,i,r,o,a,s,e,l,u){function h(t){var e=t||{};n.call(this,e),i.call(this,e),o.call(this,e),this.shell=null,this.holes=[],this.$type="Polygon,http://www.Gs.com"}function c(){var e=[];return this.shell&&e.push(this.shell),this.holes.forEach(function(t){e.push(t)}),e}function p(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=t.getPoint(0),d=0,y=0,m=0,g=1,v=t.getPointCount()-1;g<v;++g)e=t.getPoint(g),n=t.getPoint(g+1),o=e,a=n,void 0,s=(r=f).x,l=r.y,u=o.x,h=o.y,c=a.x,p=a.y,m+=i=(s*h+u*p+c*l-u*l-c*h-s*p)/2,d+=(f.x+e.x+n.x)*i,y+=(f.y+e.y+n.y)*i;return{baryCenter:{x:d/(3*m),y:y/(3*m)},area:m}}return t.extend2(h,n),t.extend2(h,i),t.extend2(h,o),h.prototype.numGeometries=function(){var t=this.holes.length;return this.shell&&(t+=1),t},h.prototype.geometryN=function(t){return 0==t?this.shell:0<t&&t<=this.holes.length?this.holes[t-1]:void 0},h.prototype.getShell=function(){return this.shell},h.prototype.setShell=function(t){this.shell=t},h.prototype.getHole=function(t){if(0<t&&t<this.holes.length)return this.holes[t]},h.prototype.addHole=function(t){this.holes.push(t)},h.prototype.removeHole=function(t){var e=this.holes.indexOf(t);0<=e&&this.holes.splice(e,1)},h.prototype.exteriorRing=function(){return this.shell},h.prototype.numInteriorRing=function(){return this.holes.length},h.prototype.interiorRingN=function(t){return this.holes[t]},h.prototype.area=function(){for(var t=0,e=0,n=this.numGeometries();e<n;++e){t+=this.geometryN(e).area()}return Math.abs(t)},h.prototype.getGeometryType=function(){return r.Polygon},h.prototype.isClose=function(){if(this.isGeometryEmpty())return!1;for(var t=c.call(this),e=0,n=t.length;e<n;++e){if(!t[e].isClose())return!1}return!0},h.prototype.close=function(){for(var t=c.call(this),e=0,n=t.length;e<n;++e){var i=t[e];i.isClose()||i.close()}},h.prototype.addGeometry=function(t){t.getGeometryType()!=r.Ring&&t.getGeometryType()!==r.LinearRing||(this.shell?this.holes.push(t):this.shell=t)},h.prototype.insertGeometry=function(t,e){e.getGeometryType()!=r.Ring&&e.getGeometryType()!==r.LinearRing||this.holes.splice(t,0,e)},h.prototype.removeGeometry=function(t){if(t.getGeometryType()==r.Ring||t.getGeometryType()===r.LinearRing){var e=this.holes.indexOf(t);0===e&&(this.shell=null),0<e&&this.holes.splice(e,1)}},h.prototype.removeAllGeometry=function(){this.holes.splice(0,this.holes.length),this.shell=null},h.prototype.getGeometryCount=function(){return c.call(this).length},h.prototype.getGeometry=function(t){return c.call(this)[t]},h.prototype.indexOfGeometry=function(t){return c.call(this).indexOf(t)},h.prototype.isGeometryEmpty=function(){return 0==c.call(this).length},h.prototype.addPoint=function(t){var e=this.last();null!=e&&e.addPoint(t)},h.prototype.insertPoint=function(t,e){var n=this.last();null!=n&&n.insertPoint(t,e)},h.prototype.removePoint=function(t){for(var e=c.call(this),n=0,i=e.length;n<i;++n){e[n].removePoint(t)}},h.prototype.removeAllPoint=function(){for(var t=c.call(this),e=0,n=t.length;e<n;++e){t[e].removeAllPoint(point)}},h.prototype.getPointCount=function(){for(var t=0,e=c.call(this),n=0,i=e.length;n<i;++n){t+=e[n].getPointCount()}return t},h.prototype.getPoint=function(t){for(var e=0,n=c.call(this),i=0,r=n.length;i<r;++i){var o=n[i];if(t<(e+=o.getPointCount()))return o.getPoint(o.getPointCount()-(e-t))}},h.prototype.indexOfPoint=function(t){for(var e=0,n=c.call(this),i=0,r=n.length;i<r;++i){var o=n[i],a=o.indexOf(t);if(-1!=a)return e+a;e+=o.getPointCount()}return-1},h.prototype.isPointEmpty=function(){return 0==this.getPointCount()},h.prototype.normalize=function(){this.shell&&this.shell.normalize();for(var t=0,e=this.holes.length;t<e;++t)this.holes[t].normalize()},h.prototype.copy=function(){var t=new h;t.spatialReference=this.spatialReference,this.shell&&(t.shell=this.shell.copy());for(var e=0,n=this.holes.length;e<n;++e)t.holes.push(this.holes[e].copy());return t},h.prototype.setSpatialReference=function(t){this.spatialReference=t;for(var e=c.call(this),n=0,i=e.length;n<i;++n)e[n].setSpatialReference(t)},h.prototype.first=function(){if(0<c.call(this).length)return this.getGeometry(0)},h.prototype.last=function(){var t=c.call(this);if(0<t.length)return this.getGeometry(t.length-1)},h.prototype.envelope=function(){for(var t=new s({spatialReference:this.spatialReference}),e=c.call(this),n=0,i=e.length;n<i;++n)t=t.union(e[n].envelope());return t.spatialReference=this.spatialReference,t},h.prototype.offset=function(t){for(var e=c.call(this),n=0,i=e.length;n<i;++n)e[n].offset(t);return this},h.prototype.asWkt=function(t){for(var e="",n=this.getGeometryCount(),i=0;i<n;++i){var r=this.getGeometry(i).points;e+=","+this.points2WKT(r,t)}return"polygon({0})".replace("{0}",e.substr(1))},h.prototype.asGeoJson=function(t){for(var e={type:"Polygon",coordinates:[]},n=this.getGeometryCount(),i=0;i<n;i++){var r=this.getGeometry(i).points,o=this.getPointsArray(r,t);e.coordinates.push(o)}return e},h.prototype.getCoordinates=function(){for(var t="",e=0,n=this.getGeometryCount();e<n;e++)for(var i=this.getGeometry(e),r=0,o=i.getPointCount();r<o;r++){var a=i.getPoint(r);t+=e===n-1&&r===o-1?a.x+","+a.y:a.x+","+a.y+";"}return t},h.prototype.fromCoordinates=function(t){for(var e=0,n=0,i=this.getGeometryCount();n<i;n++)for(var r=this.getGeometry(n),o=0,a=r.getPointCount();o<a;o++)r.getPoint(o).x=t[e].lng,r.getPoint(o).y=t[e].lat,e+=1;return this},h.prototype.getFlatInteriorPoint=function(){for(var t=function(t){var e=f(9),n=function(t){for(var e,n=[],i=t.getGeometryCount(),r=0;r<i;++r){e=t.getGeometry(r).points;for(var o=[],a=0,s=e.length;a<s;a++)o.push([e[a].x,e[a].y]);n.push(o)}return n}(t);return new e.geom.Polygon(n)}(this).getFlatInteriorPoint(),e=[],n=0;n<t.length;n+=3){var i=new a({spatialReference:this.spatialReference,x:t[n],y:t[n+1]});e.push(i)}return e},h.prototype.getBaryCenter=function(){for(var t=0,e=0,n=0,i=0,r=this.getGeometryCount();i<r;++i){var o=p(this.getGeometry(i));t+=o.baryCenter.x*o.area,e+=o.baryCenter.y*o.area,n+=o.area}return{x:t/n,y:e/n}},u.exports=h}.apply(e,n))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(2),n(8),n(1),n,e,t],void 0===(r=function(n,e,t,i,r,o,a){function s(t){e.call(this,t||{}),this.$type="Ring,http://www.Gs.com"}return n.extend2(s,e),s.prototype.getGeometryType=function(){return t.Ring},s.prototype.addPoint=function(t){if(n.isArray(t))this.points=this.points.concat(t);else if(this.isClose()){var e=this.points.length-2;this.points.splice(e,0,t)}else this.points.push(t)},s.prototype.isClose=function(){if(2<this.getPointCount()){var t=this.getPoint(0),e=this.getPoint(this.getPointCount()-1);if(t.equals(e))return!0}return!1},s.prototype.close=function(){if(!this.isClose()&&!this.isPointEmpty()){var t=this.getPoint(0);this.addPoint(t.copy())}},s.prototype.endPoint=function(){if(1<this.points.length){var t=this.isClose()?this.points.length-2:this.points.length-1;return this.getPoint(t)}return null},s.prototype.normalize=function(){this.close(),s.prototype.uber.normalize.call(this)},s.prototype.copy=function(){for(var t=new s,e=0,n=this.points.length;e<n;++e)t.addPoint(this.points[e].copy());return t.spatialReference=this.spatialReference,t},s.prototype.area=function(){var t=this.points.length;if(t<3)return 0;for(var e=this.points[0].y*(this.points[t-1].x-this.points[1].x),n=1;n<t;n++)e+=this.points[n].y*(this.points[n-1].x-this.points[(n+1)%t].x);return.5*e},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.minCpt=e.minCpt||0,this.maxCpt=e.maxCpt||0,this.ctps=[],this._plotElement=null,this._inilization()}return i.prototype._inilization=function(){},i.prototype.getGraphParts=function(t){},i.prototype.createGeometries=function(t){},i.prototype.getType=function(){return"../PlotAlgorithm"},i.prototype.getDescription=function(){},i.prototype.getStepDes=function(t){},n.exports=i}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.Geometry=0,i.Point=1,i.Curve=2,i.Segment=3,i.Envelope=4,i.Line=5,i.Rectangle=6,i.Square=7,i.Circle=8,i.Ellipse=9,i.Path=10,i.Ring=11,i.PolyCurve=12,i.Polyline=13,i.Polygon=14,i.MultiPoint=15,i.MultiPolygon=16,i.GeometryBag=17,i.Sphere=18,i.Ellipsoid=19,i.Cone=20,i.Cylinder=21,i.Wall=22,i.Cube=23,i.Polyhedron=24,i.Pipeline=25,i.ExtrudedLine=26,i.Surface=27,i.LineString=28,i.LinearRing=29,i.MultiCurve=30,i.MultiLineString=31,i.MultiSurface=32,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){window,t.exports=function(n){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=7)}([function(t,e,n){t.exports=function(){"use strict";function d(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function u(t,e){return t<e?-1:e<t?1:0}var t=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function h(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function f(t,e){g(t,0,t.children.length,e,t)}function g(t,e,n,i,r){(r=r||m(null)).minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];p(r,t.leaf?i(a):a)}return r}function p(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function o(t,e){return t.minX-e.minX}function a(t,e){return t.minY-e.minY}function v(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function c(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function l(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function m(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(t,e,n,i,r){for(var o=[e,n];o.length;)if(!((n=o.pop())-(e=o.pop())<=i)){var a=e+Math.ceil((n-e)/i/2)*i;l=r,function t(e,n,i,r,o){for(;i<r;){if(600<r-i){var a=r-i+1,s=n-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(i,Math.floor(n-s*u/a+h)),Math.min(r,Math.floor(n+(a-s)*u/a+h)),o)}var c=e[n],p=i,f=r;for(d(e,i,n),0<o(e[r],c)&&d(e,i,r);p<f;){for(d(e,p,f),p++,f--;o(e[p],c)<0;)p++;for(;0<o(e[f],c);)f--}0===o(e[i],c)?d(e,i,f):d(e,++f,r),f<=n&&(i=f+1),n<=f&&(r=f-1)}}(s=t,a,e||0,n||s.length-1,l||u),o.push(e,a,a,n)}var s,l}return t.prototype.all=function(){return this._all(this.data,[])},t.prototype.search=function(t){var e=this.data,n=[];if(!l(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?i(a):a;l(t,s)&&(e.leaf?n.push(a):c(t,s)?this._all(a,n):r.push(a))}e=r.pop()}return n},t.prototype.collides=function(t){var e=this.data;if(!l(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(l(t,o)){if(e.leaf||c(t,o))return!0;n.push(r)}}e=n.pop()}return!1},t.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},t.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},t.prototype.clear=function(){return this.data=m([]),this},t.prototype.remove=function(t,e){if(!t)return this;for(var n,i,r,o=this.data,a=this.toBBox(t),s=[],l=[];o||s.length;){if(o||(o=s.pop(),i=s[s.length-1],n=l.pop(),r=!0),o.leaf){var u=h(t,o.children,e);if(-1!==u)return o.children.splice(u,1),s.push(o),this._condense(s),this}r||o.leaf||!c(o,a)?i?(n++,o=i.children[n],r=!1):o=null:(s.push(o),l.push(n),n=0,o=(i=o).children[0])}return this},t.prototype.toBBox=function(t){return t},t.prototype.compareMinX=function(t,e){return t.minX-e.minX},t.prototype.compareMinY=function(t,e){return t.minY-e.minY},t.prototype.toJSON=function(){return this.data},t.prototype.fromJSON=function(t){return this.data=t,this},t.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},t.prototype._build=function(t,e,n,i){var r,o=n-e+1,a=this._maxEntries;if(o<=a)return f(r=m(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,i-1))),(r=m([])).leaf=!1,r.height=i;var s=Math.ceil(o/a),l=s*Math.ceil(Math.sqrt(a));x(t,e,n,l,this.compareMinX);for(var u=e;u<=n;u+=l){var h=Math.min(u+l-1,n);x(t,u,h,s,this.compareMinY);for(var c=u;c<=h;c+=s){var p=Math.min(c+s-1,h);r.children.push(this._build(t,c,p,i-1))}}return f(r,this.toBBox),r},t.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],u=v(l),h=(c=t,p=l,(Math.max(p.maxX,c.maxX)-Math.min(p.minX,c.minX))*(Math.max(p.maxY,c.maxY)-Math.min(p.minY,c.minY))-u);h<o?(o=h,r=u<r?u:r,a=l):h===o&&u<r&&(r=u,a=l)}e=a||e.children[0]}var c,p;return e},t.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],o=this._chooseSubtree(i,this.data,e,r);for(o.children.push(t),p(o,i);0<=e&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},t.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var o=this._chooseSplitIndex(n,r,i),a=m(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,f(n,this.toBBox),f(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},t.prototype._splitRoot=function(t,e){this.data=m([t,e]),this.data.height=t.height+1,this.data.leaf=!1,f(this.data,this.toBBox)},t.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,a,s,l,u,h=1/0,c=1/0,p=e;p<=n-e;p++){var f=g(t,0,p,this.toBBox),d=g(t,p,n,this.toBBox),y=(r=f,o=d,a=Math.max(r.minX,o.minX),s=Math.max(r.minY,o.minY),l=Math.min(r.maxX,o.maxX),u=Math.min(r.maxY,o.maxY),Math.max(0,l-a)*Math.max(0,u-s)),m=v(f)+v(d);y<h?(h=y,i=p,c=m<c?m:c):y===h&&m<c&&(c=m,i=p)}return i||n-e},t.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:o,r=t.leaf?this.compareMinY:a;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},t.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=g(t,0,e,r),a=g(t,n-e,n,r),s=y(o)+y(a),l=e;l<n-e;l++){var u=t.children[l];p(o,t.leaf?r(u):u),s+=y(o)}for(var h=n-e-1;e<=h;h--){var c=t.children[h];p(a,t.leaf?r(c):c),s+=y(a)}return s},t.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;0<=i;i--)p(e[i],t)},t.prototype._condense=function(t){for(var e=t.length-1,n=void 0;0<=e;e--)0===t[e].children.length?0<e?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():f(t[e],this.toBBox)},t}()},function(t,e,n){
/*!
* PEP v0.5.1 | https://github.com/jquery/PEP
* Copyright jQuery Foundation and other contributors | http://jquery.org/license
*/
t.exports=function(){"use strict";var a=["bubbles","cancelable","view","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","pageY"],s=[!1,!1,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0];function r(t,e){e=e||Object.create(null);var n=document.createEvent("Event");n.initEvent(t,e.bubbles||!1,e.cancelable||!1);for(var i,r=2;r<a.length;r++)n[i=a[r]]=e[i]||s[r];n.buttons=e.buttons||0;var o=0;return o=void 0!==e.pressure&&n.buttons?e.pressure:n.buttons?.5:0,n.x=n.clientX,n.y=n.clientY,n.pointerId=e.pointerId||0,n.width=e.width||1,n.height=e.height||1,n.pressure=o,n.tiltX=e.tiltX||0,n.tiltY=e.tiltY||0,n.twist=e.twist||0,n.tangentialPressure=e.tangentialPressure||0,n.pointerType=e.pointerType||"",n.hwTimestamp=e.hwTimestamp||0,n.isPrimary=e.isPrimary||!1,n.detail=0,n}var t=window.Map&&window.Map.prototype.forEach?Map:e;function e(){this.array=[],this.size=0}var o=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","buttons","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target","currentTarget","which","pageX","pageY","timeStamp"],l=[(e.prototype={set:function(t,e){if(void 0===e)return this.delete(t);this.has(t)||this.size++,this.array[t]=e},has:function(t){return void 0!==this.array[t]},delete:function(t){this.has(t)&&(delete this.array[t],this.size--)},get:function(t){return this.array[t]},clear:function(){this.array.length=0,this.size=0},forEach:function(n,i){return this.array.forEach(function(t,e){n.call(i,t,e,this)},this)}},!1),!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",null,null,0,0,0,0],n={pointerover:1,pointerout:1,pointerenter:1,pointerleave:1},u="undefined"!=typeof SVGElementInstance,h={pointermap:new t,eventMap:Object.create(null),captureInfo:Object.create(null),eventSources:Object.create(null),eventSourceList:[],registerSource:function(t,e){var n=e,i=n.events;i&&(i.forEach(function(t){n[t]&&(this.eventMap[t]=n[t].bind(n))},this),this.eventSources[t]=n,this.eventSourceList.push(n))},register:function(t){for(var e,n=this.eventSourceList.length,i=0;i<n&&(e=this.eventSourceList[i]);i++)e.register.call(e,t)},unregister:function(t){for(var e,n=this.eventSourceList.length,i=0;i<n&&(e=this.eventSourceList[i]);i++)e.unregister.call(e,t)},contains:function(t,e){try{return t.contains(e)}catch(t){return!1}},down:function(t){t.bubbles=!0,this.fireEvent("pointerdown",t)},move:function(t){t.bubbles=!0,this.fireEvent("pointermove",t)},up:function(t){t.bubbles=!0,this.fireEvent("pointerup",t)},enter:function(t){t.bubbles=!1,this.fireEvent("pointerenter",t)},leave:function(t){t.bubbles=!1,this.fireEvent("pointerleave",t)},over:function(t){t.bubbles=!0,this.fireEvent("pointerover",t)},out:function(t){t.bubbles=!0,this.fireEvent("pointerout",t)},cancel:function(t){t.bubbles=!0,this.fireEvent("pointercancel",t)},leaveOut:function(t){this.out(t),this.propagate(t,this.leave,!1)},enterOver:function(t){this.over(t),this.propagate(t,this.enter,!0)},eventHandler:function(t){if(!t._handledByPE){var e=t.type,n=this.eventMap&&this.eventMap[e];n&&n(t),t._handledByPE=!0}},listen:function(e,t){t.forEach(function(t){this.addEvent(e,t)},this)},unlisten:function(e,t){t.forEach(function(t){this.removeEvent(e,t)},this)},addEvent:function(t,e){t.addEventListener(e,this.boundHandler)},removeEvent:function(t,e){t.removeEventListener(e,this.boundHandler)},makeEvent:function(t,e){this.captureInfo[e.pointerId]&&(e.relatedTarget=null);var n=new r(t,e);return e.preventDefault&&(n.preventDefault=e.preventDefault),n._target=n._target||e.target,n},fireEvent:function(t,e){var n=this.makeEvent(t,e);return this.dispatchEvent(n)},cloneEvent:function(t){for(var e,n=Object.create(null),i=0;i<o.length;i++)n[e=o[i]]=t[e]||l[i],!u||"target"!==e&&"relatedTarget"!==e||n[e]instanceof SVGElementInstance&&(n[e]=n[e].correspondingUseElement);return t.preventDefault&&(n.preventDefault=function(){t.preventDefault()}),n},getTarget:function(t){var e=this.captureInfo[t.pointerId];return e?t._target!==e&&t.type in n?void 0:e:t._target},propagate:function(e,n,t){for(var i=e.target,r=[];null!=i&&i!==document&&!i.contains(e.relatedTarget);)if(r.push(i),!(i=i.parentNode))return;t&&r.reverse(),r.forEach(function(t){e.target=t,n.call(this,e)},this)},setCapture:function(t,e,n){this.captureInfo[t]&&this.releaseCapture(t,n),this.captureInfo[t]=e,this.implicitRelease=this.releaseCapture.bind(this,t,n),document.addEventListener("pointerup",this.implicitRelease),document.addEventListener("pointercancel",this.implicitRelease);var i=new r("gotpointercapture",{bubbles:!0});i.pointerId=t,i._target=e,n||this.asyncDispatchEvent(i)},releaseCapture:function(t,e){var n=this.captureInfo[t];if(n){this.captureInfo[t]=void 0,document.removeEventListener("pointerup",this.implicitRelease),document.removeEventListener("pointercancel",this.implicitRelease);var i=new r("lostpointercapture",{bubbles:!0});i.pointerId=t,i._target=n,e||this.asyncDispatchEvent(i)}},dispatchEvent:function(t){var e=this.getTarget(t);if(e)return e.dispatchEvent(t)},asyncDispatchEvent:function(t){requestAnimationFrame(this.dispatchEvent.bind(this,t))}};h.boundHandler=h.eventHandler.bind(h);var i={shadow:function(t){if(t)return t.shadowRoot||t.webkitShadowRoot},canTarget:function(t){return t&&Boolean(t.elementFromPoint)},targetingShadow:function(t){var e=this.shadow(t);if(this.canTarget(e))return e},olderShadow:function(t){var e=t.olderShadowRoot;if(!e){var n=t.querySelector("shadow");n&&(e=n.olderShadowRoot)}return e},allShadows:function(t){for(var e=[],n=this.shadow(t);n;)e.push(n),n=this.olderShadow(n);return e},searchRoot:function(t,e,n){if(t){var i,r,o=t.elementFromPoint(e,n);for(r=this.targetingShadow(o);r;){if(i=r.elementFromPoint(e,n)){var a=this.targetingShadow(i);return this.searchRoot(a,e,n)||i}r=this.olderShadow(r)}return o}},owner:function(t){for(var e=t;e.parentNode;)e=e.parentNode;return e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(e=document),e},findTarget:function(t){var e=t.clientX,n=t.clientY,i=this.owner(t.target);return i.elementFromPoint(e,n)||(i=document),this.searchRoot(i,e,n)}},c=Array.prototype.forEach.call.bind(Array.prototype.forEach),p=Array.prototype.map.call.bind(Array.prototype.map),f=Array.prototype.slice.call.bind(Array.prototype.slice),d=Array.prototype.filter.call.bind(Array.prototype.filter),y=window.MutationObserver||window.WebKitMutationObserver,m={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["touch-action"]};function g(t,e,n,i){this.addCallback=t.bind(i),this.removeCallback=e.bind(i),this.changedCallback=n.bind(i),y&&(this.observer=new y(this.mutationWatcher.bind(this)))}function v(t){return"{ -ms-touch-action: "+t+"; touch-action: "+t+"; }"}g.prototype={watchSubtree:function(t){this.observer&&i.canTarget(t)&&this.observer.observe(t,m)},enableOnSubtree:function(t){this.watchSubtree(t),t===document&&"complete"!==document.readyState?this.installOnLoad():this.installNewSubtree(t)},installNewSubtree:function(t){c(this.findElements(t),this.addElement,this)},findElements:function(t){return t.querySelectorAll?t.querySelectorAll("[touch-action]"):[]},removeElement:function(t){this.removeCallback(t)},addElement:function(t){this.addCallback(t)},elementChanged:function(t,e){this.changedCallback(t,e)},concatLists:function(t,e){return t.concat(f(e))},installOnLoad:function(){document.addEventListener("readystatechange",function(){"complete"===document.readyState&&this.installNewSubtree(document)}.bind(this))},isElement:function(t){return t.nodeType===Node.ELEMENT_NODE},flattenMutationTree:function(t){var e=p(t,this.findElements,this);return e.push(d(t,this.isElement)),e.reduce(this.concatLists,[])},mutationWatcher:function(t){t.forEach(this.mutationHandler,this)},mutationHandler:function(t){"childList"===t.type?(this.flattenMutationTree(t.addedNodes).forEach(this.addElement,this),this.flattenMutationTree(t.removedNodes).forEach(this.removeElement,this)):"attributes"===t.type&&this.elementChanged(t.target,t.oldValue)}};var x=[{selector:'[touch-action="none"]',value:"none"},{selector:'[touch-action="auto"]',value:"auto"},{selector:'[touch-action~="pan-x"]',value:"pan-x"},{selector:'[touch-action~="pan-y"]',value:"pan-y"},{selector:'[touch-action~="pan-up"]',value:"pan-up"},{selector:'[touch-action~="pan-down"]',value:"pan-down"},{selector:'[touch-action~="pan-left"]',value:"pan-left"},{selector:'[touch-action~="pan-right"]',value:"pan-right"}],_="",w=window.PointerEvent||window.MSPointerEvent,b=!window.ShadowDOMPolyfill&&document.head.createShadowRoot,P=h.pointermap,S=[1,4,2,8,16],C=!1;try{C=1===new MouseEvent("test",{buttons:1}).buttons}catch(a){}var M,T={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedown","webkitmouseforcechanged","mousemove","mouseup","mouseover","mouseout"],register:function(t){h.listen(t,this.events)},unregister:function(t){h.unlisten(t,this.events)},lastTouches:[],isEventSimulatedFromTouch:function(t){for(var e,n=this.lastTouches,i=t.clientX,r=t.clientY,o=0,a=n.length;o<a&&(e=n[o]);o++){var s=Math.abs(i-e.x),l=Math.abs(r-e.y);if(s<=25&&l<=25)return!0}},prepareEvent:function(t){var e=h.cloneEvent(t),n=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),n()},e.pointerId=this.POINTER_ID,e.isPrimary=!0,e.pointerType=this.POINTER_TYPE,"webkitForce"in t&&(e.pressure=t.webkitForce-MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN),e},prepareButtonsForMove:function(t,e){var n=P.get(this.POINTER_ID);0!==e.which&&n?t.buttons=n.buttons:t.buttons=0,e.buttons=t.buttons},mousedown:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=P.get(this.POINTER_ID),n=this.prepareEvent(t);C||(n.buttons=S[n.button],e&&(n.buttons|=e.buttons),t.buttons=n.buttons),P.set(this.POINTER_ID,t),e&&0!==e.buttons?h.move(n):h.down(n)}},webkitmouseforcechanged:function(t){this.mousemove(t)},mousemove:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t);C||this.prepareButtonsForMove(e,t),e.button=-1,P.set(this.POINTER_ID,t),h.move(e)}},mouseup:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=P.get(this.POINTER_ID),n=this.prepareEvent(t);if(!C){var i=S[n.button];n.buttons=e?e.buttons&~i:0,t.buttons=n.buttons}P.set(this.POINTER_ID,t),n.buttons&=~S[n.button],0===n.buttons?h.up(n):h.move(n)}},mouseover:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t);C||this.prepareButtonsForMove(e,t),e.button=-1,P.set(this.POINTER_ID,t),h.enterOver(e)}},mouseout:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t);C||this.prepareButtonsForMove(e,t),e.button=-1,h.leaveOut(e)}},cancel:function(t){var e=this.prepareEvent(t);h.cancel(e),this.deactivateMouse()},deactivateMouse:function(){P.delete(this.POINTER_ID)}},A=h.captureInfo,E=i.findTarget.bind(i),I=i.allShadows.bind(i),L=h.pointermap,R={events:["touchstart","touchmove","touchforcechange","touchend","touchcancel"],register:function(t){M.enableOnSubtree(t)},unregister:function(){},elementAdded:function(t){var e=t.getAttribute("touch-action"),n=this.touchActionToScrollType(e);"number"==typeof n&&(t._scrollType=n,h.listen(t,this.events),I(t).forEach(function(t){t._scrollType=n,h.listen(t,this.events)},this))},elementRemoved:function(t){if(0<L.size){var e=this.events;t.addEventListener("touchend",function(){t._scrollType=void 0,h.unlisten(t,e)})}else t._scrollType=void 0,h.unlisten(t,this.events);I(t).forEach(function(t){t._scrollType=void 0,h.unlisten(t,this.events)},this)},elementChanged:function(t,e){var n=t.getAttribute("touch-action"),i=this.touchActionToScrollType(n),r=this.touchActionToScrollType(e);"number"==typeof i&&"number"==typeof r?(t._scrollType=i,I(t).forEach(function(t){t._scrollType=i},this)):"number"==typeof r?this.elementRemoved(t):"number"==typeof i&&this.elementAdded(t)},scrollTypes:{UP:function(t){return t.includes("pan-y")||t.includes("pan-up")?1:0},DOWN:function(t){return t.includes("pan-y")||t.includes("pan-down")?2:0},LEFT:function(t){return t.includes("pan-x")||t.includes("pan-left")?4:0},RIGHT:function(t){return t.includes("pan-x")||t.includes("pan-right")?8:0}},touchActionToScrollType:function(t){if(t){if("auto"===t)return 15;if("none"===t)return 0;var e=t.split(" "),n=this.scrollTypes;return n.UP(e)|n.DOWN(e)|n.LEFT(e)|n.RIGHT(e)}},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(t){return this.firstTouch===t.identifier},setPrimaryTouch:function(t){(0===L.size||1===L.size&&L.has(1))&&(this.firstTouch=t.identifier,this.firstXY={X:t.clientX,Y:t.clientY},this.scrolling=!1)},removePrimaryPointer:function(t){t.isPrimary&&(this.firstTouch=null,this.firstXY=null)},typeToButtons:function(t){var e=0;return"touchstart"!==t&&"touchmove"!==t&&"touchforcechange"!==t||(e=1),e},touchToPointer:function(t){var e=this.currentTouchEvent,n=h.cloneEvent(t),i=n.pointerId=t.identifier+2;if(n.target=A[i]||E(n),n.bubbles=!0,n.cancelable=!0,n.button=0,n.buttons=this.typeToButtons(e.type),n.width=2*(t.radiusX||t.webkitRadiusX||0),n.height=2*(t.radiusY||t.webkitRadiusY||0),n.pressure=void 0!==t.force?t.force:void 0!==t.webkitForce?t.webkitForce:void 0,n.isPrimary=this.isPrimaryTouch(t),t.altitudeAngle){var r=Math.tan(t.altitudeAngle),o=180/Math.PI;n.tiltX=Math.atan(Math.cos(t.azimuthAngle)/r)*o,n.tiltY=Math.atan(Math.sin(t.azimuthAngle)/r)*o}else n.tiltX=0,n.tiltY=0;"stylus"===t.touchType?n.pointerType="pen":n.pointerType=this.POINTER_TYPE,n.altKey=e.altKey,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey;var a=this;return n.preventDefault=function(){a.scrolling=!1,a.firstXY=null,e.preventDefault()},n},processTouches:function(t,e){var n=t.changedTouches;this.currentTouchEvent=t;for(var i,r=0;r<n.length;r++)i=n[r],e.call(this,this.touchToPointer(i))},shouldScroll:function(t){if(this.firstXY){var e,n=t.currentTarget._scrollType;if(0===n)e=!1;else if(15===n)e=!0;else{var i=t.changedTouches[0],r=i.clientY-this.firstXY.Y,o=Math.abs(r),a=i.clientX-this.firstXY.X,s=Math.abs(a),l=1&n,u=2&n,h=4&n,c=8&n;h&&c?e=o<s:h?e=o<s&&0<a:c&&(e=o<s&&a<0),e||(l&&u?e=s<o:l?e=s<o&&0<r:u&&(e=s<o&&r<0))}return this.firstXY=null,e}},findTouch:function(t,e){for(var n,i=0,r=t.length;i<r&&(n=t[i]);i++)if(n.identifier===e)return!0},vacuumTouches:function(t){var i=t.touches;if(L.size>=i.length){var r=[];L.forEach(function(t,e){if(1!==e&&!this.findTouch(i,e-2)){var n=t.out;r.push(n)}},this),r.forEach(this.cancelOut,this)}},touchstart:function(t){this.vacuumTouches(t),this.setPrimaryTouch(t.changedTouches[0]),this.dedupSynthMouse(t),this.scrolling||this.processTouches(t,this.overDown)},overDown:function(t){L.set(t.pointerId,{target:t.target,out:t,outTarget:t.target}),h.enterOver(t),h.down(t)},touchforcechange:function(t){this.touchmove(t)},touchmove:function(t){this.scrolling||(this.shouldScroll(t)?(this.scrolling=!0,this.touchcancel(t)):("touchforcechange"!==t.type&&t.preventDefault(),this.processTouches(t,this.moveOverOut)))},moveOverOut:function(t){var e=t,n=L.get(e.pointerId);if(n){var i=n.out,r=n.outTarget;h.move(e),i&&r!==e.target&&(i.relatedTarget=e.target,e.relatedTarget=r,i.target=r,e.target?(h.leaveOut(i),h.enterOver(e)):(e.target=r,e.relatedTarget=null,this.cancelOut(e))),n.out=e,n.outTarget=e.target}},touchend:function(t){this.dedupSynthMouse(t),this.processTouches(t,this.upOut)},upOut:function(t){this.scrolling||(h.up(t),h.leaveOut(t)),this.cleanUpPointer(t)},touchcancel:function(t){this.processTouches(t,this.cancelOut)},cancelOut:function(t){h.cancel(t),h.leaveOut(t),this.cleanUpPointer(t)},cleanUpPointer:function(t){L.delete(t.pointerId),this.removePrimaryPointer(t)},dedupSynthMouse:function(t){var e=T.lastTouches,n=t.changedTouches[0];if(this.isPrimaryTouch(n)){var i={x:n.clientX,y:n.clientY};e.push(i);var r=function(t,e){var n=t.indexOf(e);-1<n&&t.splice(n,1)}.bind(null,e,i);setTimeout(r,2500)}}};M=new g(R.elementAdded,R.elementRemoved,R.elementChanged,R);var O,N,k,z=h.pointermap,D=window.MSPointerEvent&&"number"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,F={events:["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSLostPointerCapture"],register:function(t){h.listen(t,this.events)},unregister:function(t){h.unlisten(t,this.events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:function(t){var e=t;return D&&((e=h.cloneEvent(t)).pointerType=this.POINTER_TYPES[t.pointerType]),e},cleanup:function(t){z.delete(t)},MSPointerDown:function(t){z.set(t.pointerId,t);var e=this.prepareEvent(t);h.down(e)},MSPointerMove:function(t){var e=this.prepareEvent(t);h.move(e)},MSPointerUp:function(t){var e=this.prepareEvent(t);h.up(e),this.cleanup(t.pointerId)},MSPointerOut:function(t){var e=this.prepareEvent(t);h.leaveOut(e)},MSPointerOver:function(t){var e=this.prepareEvent(t);h.enterOver(e)},MSPointerCancel:function(t){var e=this.prepareEvent(t);h.cancel(e),this.cleanup(t.pointerId)},MSLostPointerCapture:function(t){var e=h.makeEvent("lostpointercapture",t);h.dispatchEvent(e)},MSGotPointerCapture:function(t){var e=h.makeEvent("gotpointercapture",t);h.dispatchEvent(e)}};function G(t){if(!h.pointermap.has(t)){var e=new Error("NotFoundError");throw e.name="NotFoundError",e}}function j(t){for(var e=t.parentNode;e&&e!==t.ownerDocument;)e=e.parentNode;if(!e){var n=new Error("InvalidStateError");throw n.name="InvalidStateError",n}}function V(t){return 0!==h.pointermap.get(t).buttons}return N=window.navigator.msPointerEnabled?(O=function(t){G(t),j(this),V(t)&&(h.setCapture(t,this,!0),this.msSetPointerCapture(t))},function(t){G(t),h.releaseCapture(t,!0),this.msReleasePointerCapture(t)}):(O=function(t){G(t),j(this),V(t)&&h.setCapture(t,this)},function(t){G(t),h.releaseCapture(t)}),k=function(t){return!!h.captureInfo[t]},function(){if(w){x.forEach(function(t){_+=t.selector+v(t.value)+"\n",b&&(_+=function(t){return"body /shadow-deep/ "+t}(t.selector)+v(t.value)+"\n")});var t=document.createElement("style");t.textContent=_,document.head.appendChild(t)}}(),function(){if(!window.PointerEvent){if(window.PointerEvent=r,window.navigator.msPointerEnabled){var t=window.navigator.msMaxTouchPoints;Object.defineProperty(window.navigator,"maxTouchPoints",{value:t,enumerable:!0}),h.registerSource("ms",F)}else Object.defineProperty(window.navigator,"maxTouchPoints",{value:0,enumerable:!0}),h.registerSource("mouse",T),void 0!==window.ontouchstart&&h.registerSource("touch",R);h.register(document)}}(),window.Element&&!window.Element.prototype.setPointerCapture&&Object.defineProperties(window.Element.prototype,{setPointerCapture:{value:O},releasePointerCapture:{value:N},hasPointerCapture:{value:k}}),{dispatcher:h,Installer:g,PointerEvent:r,PointerMap:t,targetFinding:i}}()},function(t,e,n){"use strict";t.exports=r;var i=n(4);function r(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}r.Varint=0,r.Fixed64=1,r.Bytes=2,r.Fixed32=5;var o="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function a(t){return t.type===r.Bytes?t.readVarint()+t.pos:t.pos+1}function s(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function l(t,e,n){var i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(i);for(var r=n.pos-1;t<=r;r--)n.buf[r+i]=n.buf[r]}function u(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function h(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function c(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function p(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function f(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function d(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function y(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function m(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function g(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function v(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function x(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function _(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}r.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var i=this.readVarint(),r=i>>3,o=this.pos;this.type=7&i,t(r,e,this),this.pos===o&&this.skip(i)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=v(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=_(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=v(this.buf,this.pos)+4294967296*v(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=v(this.buf,this.pos)+4294967296*_(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=i.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=i.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,i=this.buf;return e=127&(n=i[this.pos++]),n<128?e:(e|=(127&(n=i[this.pos++]))<<7,n<128?e:(e|=(127&(n=i[this.pos++]))<<14,n<128?e:(e|=(127&(n=i[this.pos++]))<<21,n<128?e:function(t,e,n){var i,r,o=n.buf;if(r=o[n.pos++],i=(112&r)>>4,r<128)return s(t,i,e);if(r=o[n.pos++],i|=(127&r)<<3,r<128)return s(t,i,e);if(r=o[n.pos++],i|=(127&r)<<10,r<128)return s(t,i,e);if(r=o[n.pos++],i|=(127&r)<<17,r<128)return s(t,i,e);if(r=o[n.pos++],i|=(127&r)<<24,r<128)return s(t,i,e);if(r=o[n.pos++],i|=(1&r)<<31,r<128)return s(t,i,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=i[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return 12<=(this.pos=t)-e&&o?function(t,e,n){return o.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var i="",r=e;r<n;){var o,a,s,l=t[r],u=null,h=239<l?4:223<l?3:191<l?2:1;if(n<r+h)break;1===h?l<128&&(u=l):2===h?128==(192&(o=t[r+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===h?(o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||55296<=u&&u<=57343)&&(u=null)):4===h&&(o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||1114112<=u)&&(u=null)),null===u?(u=65533,h=1):65535<u&&(u-=65536,i+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),i+=String.fromCharCode(u),r+=h}return i}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==r.Bytes)return t.push(this.readVarint(e));var n=a(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==r.Bytes)return t.push(this.readSVarint());var e=a(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==r.Bytes)return t.push(this.readBoolean());var e=a(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==r.Bytes)return t.push(this.readFloat());var e=a(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==r.Bytes)return t.push(this.readDouble());var e=a(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed32());var e=a(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed32());var e=a(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed64());var e=a(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed64());var e=a(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===r.Varint)for(;127<this.buf[this.pos++];);else if(e===r.Bytes)this.pos=this.readVarint()+this.pos;else if(e===r.Fixed32)this.pos+=4;else{if(e!==r.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),x(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),x(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),x(this.buf,-1&t,this.pos),x(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),x(this.buf,-1&t,this.pos),x(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){268435455<(t=+t||0)||t<0?function(t,e){var n,i;if(0<=t?(n=t%4294967296|0,i=t/4294967296|0):(i=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:i=i+1|(n=0)),0x10000000000000000<=t||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(i,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(127<t?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(127<t?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(127<t?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var i,r,o=0;o<e.length;o++){if(55295<(i=e.charCodeAt(o))&&i<57344){if(!r){56319<i||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):r=i;continue}if(i<56320){t[n++]=239,t[n++]=191,t[n++]=189,r=i;continue}i=r-55296<<10|i-56320|65536,r=null}else r&&(t[n++]=239,t[n++]=191,t[n++]=189,r=null);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:(i<65536?t[n++]=i>>12|224:(t[n++]=i>>18|240,t[n++]=i>>12&63|128),t[n++]=i>>6&63|128),t[n++]=63&i|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;128<=n&&l(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),i.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),i.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var i=this.pos-n;128<=i&&l(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i},writeMessage:function(t,e,n){this.writeTag(t,r.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,u,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,h,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,c,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,g,e)},writeBytesField:function(t,e){this.writeTag(t,r.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,r.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,r.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,r.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},function(t,e,n){var i=n(5);e.Processor=i},function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=n?r-1:0,p=n?-1:1,f=t[e+c];for(c+=p,o=f&(1<<-h)-1,f>>=-h,h+=s;0<h;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,h=(1<<u)-1,c=h>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,d=i?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(e+=1<=a+c?p/l:p*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));8<=r;t[n+f]=255&s,f+=d,s/=256,r-=8);for(a=a<<r|s,u+=r;0<u;t[n+f]=255&a,f+=d,a/=256,u-=8);t[n+f-d]|=128*y}},function(t,e,n){var u=n(6).newImageData;function a(_){var w=!0;try{new ImageData(10,10)}catch(_){w=!1}return function(t){var e,n,i,r,o,a=t.buffers,s=t.meta,l=t.imageOps,u=t.width,h=t.height,c=a.length,p=a[0].byteLength;if(l){var f=new Array(c);for(n=0;n<c;++n)f[n]=(i=new Uint8ClampedArray(a[n]),r=u,o=h,w?new ImageData(i,r,o):{data:i,width:r,height:o});e=_(f,s).data}else{e=new Uint8ClampedArray(p);var d=new Array(c),y=new Array(c);for(n=0;n<c;++n)d[n]=new Uint8ClampedArray(a[n]),y[n]=[0,0,0,0];for(var m=0;m<p;m+=4){for(var g=0;g<c;++g){var v=d[g];y[g][0]=v[m],y[g][1]=v[m+1],y[g][2]=v[m+2],y[g][3]=v[m+3]}var x=_(y,s);e[m]=x[0],e[m+1]=x[1],e[m+2]=x[2],e[m+3]=x[3]}}return e.buffer}}function r(e,t){var n=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]);","});"]),i=new Blob(n,{type:"text/javascript"}),r=URL.createObjectURL(i),o=new Worker(r);return o.addEventListener("message",t),o}function i(t){var e;this._imageOps=!!t.imageOps;var n=[];if(e=0===t.threads?0:this._imageOps?1:t.threads||1)for(var i=0;i<e;++i)n[i]=r(t,this._onWorkerMessage.bind(this,i));else n[0]=function(t,e){var n=a(t.operation);return{postMessage:function(t){setTimeout(function(){e({data:{buffer:n(t),meta:t.meta}})},0)}}}(t,this._onWorkerMessage.bind(this,0));this._workers=n,this._queue=[],this._maxQueueLength=t.queue||1/0,this._running=0,this._dataLookup={},this._job=null}i.prototype.process=function(t,e,n){this._enqueue({inputs:t,meta:e,callback:n}),this._dispatch()},i.prototype.destroy=function(){for(var t in this)this[t]=null;this._destroyed=!0},i.prototype._enqueue=function(t){for(this._queue.push(t);this._queue.length>this._maxQueueLength;)this._queue.shift().callback(null,null)},i.prototype._dispatch=function(){if(0===this._running&&0<this._queue.length){var t=this._job=this._queue.shift(),e=t.inputs[0].width,n=t.inputs[0].height,i=t.inputs.map(function(t){return t.data.buffer}),r=this._workers.length;if(1===(this._running=r))this._workers[0].postMessage({buffers:i,meta:t.meta,imageOps:this._imageOps,width:e,height:n},i);else for(var o=t.inputs[0].data.length,a=4*Math.ceil(o/4/r),s=0;s<r;++s){for(var l=s*a,u=[],h=0,c=i.length;h<c;++h)u.push(i[s].slice(l,l+a));this._workers[s].postMessage({buffers:u,meta:t.meta,imageOps:this._imageOps,width:e,height:n},u)}}},i.prototype._onWorkerMessage=function(t,e){this._destroyed||(this._dataLookup[t]=e.data,--this._running,0===this._running&&this._resolveJob())},i.prototype._resolveJob=function(){var t,e,n=this._job,i=this._workers.length;if(1===i)t=new Uint8ClampedArray(this._dataLookup[0].buffer),e=this._dataLookup[0].meta;else{var r=n.inputs[0].data.length;t=new Uint8ClampedArray(r),e=new Array(r);for(var o=4*Math.ceil(r/4/i),a=0;a<i;++a){var s=this._dataLookup[a].buffer,l=a*o;t.set(new Uint8ClampedArray(s),l),e[a]=this._dataLookup[a].meta}}this._job=null,this._dataLookup={},n.callback(null,u(t,n.inputs[0].width,n.inputs[0].height),e),this._dispatch()},t.exports=i},function(t,e){var r=!0;try{new ImageData(10,10)}catch(t){r=!1}var o=document.createElement("canvas").getContext("2d");e.newImageData=function(t,e,n){if(r)return new ImageData(t,e,n);var i=o.createImageData(e,n);return i.data.set(t),i}},function(t,e,n){"use strict";function ft(t,e){return e<t?1:t<e?-1:0}function M(t,e){return 0<=t.indexOf(e)}function m(t,e,n){var i=t.length;if(t[0]<=e)return 0;if(e<=t[i-1])return i-1;var r=void 0;if(0<n){for(r=1;r<i;++r)if(t[r]<e)return r-1}else if(n<0){for(r=1;r<i;++r)if(t[r]<=e)return r}else for(r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return i-1}function a(t,e,n){for(;e<n;){var i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function g(t,e){for(var n=Array.isArray(e)?e:[e],i=n.length,r=0;r<i;r++)t[t.length]=n[r]}function T(t,e){for(var n,i=t.length>>>0,r=0;r<i;r++)if(e(n=t[r],r,t))return n;return null}function kt(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function A(n,i){var r;return n.every(function(t,e){return!i(t,r=e,n)})?-1:r}function s(){return function(){throw new Error("Unimplemented abstract method.")}()}n.r(e);var i=0;function dt(t){return t.ol_uid||(t.ol_uid=String(++i))}var r,o=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(i){function t(t){var e=this,n="Assertion failed. See https://openlayers.org/en/v"+"6.1.1".split("-")[0]+"/doc/errors/#"+t+" for details.";return(e=i.call(this,n)||this).code=t,e.name="AssertionError",e.message=n,e}return o(t,i),t}(Error),u="add",h="remove",c="propertychange",v="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,r=arguments.length;i<r;++i){var o=arguments[i];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function y(t){for(var e in t)delete t[e]}var p="function"==typeof Object.values?Object.values:function(t){var e=[];for(var n in t)e.push(t[n]);return e};function f(t){var e;for(e in t)return!1;return!e}function x(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){var o=n;n=function(){t.removeEventListener(e,n),o.apply(this,arguments)}}var a={target:t,type:e,listener:n};return t.addEventListener(e,n),a}function d(t,e,n,i){return x(t,e,n,i,!0)}function _(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),y(t))}var w=function(){function t(){this.disposed_=!1}return t.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();function b(){return!0}function P(){return!1}function C(){}function S(t){t.stopPropagation()}var E=function(){function t(t){this.propagationStopped,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.propagationStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}(),I=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),L=function(n){function t(t){var e=n.call(this)||this;return e.eventTarget_=t,e.pendingRemovals_={},e.dispatching_={},e.listeners_={},e}return I(t,n),t.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_[t];n||(n=[],this.listeners_[t]=n),-1===n.indexOf(e)&&n.push(e)}},t.prototype.dispatchEvent=function(t){var e="string"==typeof t?new E(t):t,n=e.type;e.target||(e.target=this.eventTarget_||this);var i,r=this.listeners_[n];if(r){n in this.dispatching_||(this.dispatching_[n]=0,this.pendingRemovals_[n]=0),++this.dispatching_[n];for(var o=0,a=r.length;o<a;++o)if(!1===r[o].call(this,e)||e.propagationStopped){i=!1;break}if(--this.dispatching_[n],0===this.dispatching_[n]){var s=this.pendingRemovals_[n];for(delete this.pendingRemovals_[n];s--;)this.removeEventListener(n,C);delete this.dispatching_[n]}return i}},t.prototype.disposeInternal=function(){y(this.listeners_)},t.prototype.getListeners=function(t){return this.listeners_[t]},t.prototype.hasListener=function(t){return t?t in this.listeners_:0<Object.keys(this.listeners_).length},t.prototype.removeEventListener=function(t,e){var n=this.listeners_[t];if(n){var i=n.indexOf(e);-1!==i&&(t in this.pendingRemovals_?(n[i]=C,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}},t}(w),R="change",O="contextmenu",N="click",k="keydown",z="keypress",D="resize",F="wheel",G=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),j=function(e){function t(){var t=e.call(this)||this;return t.revision_=0,t}return G(t,e),t.prototype.changed=function(){++this.revision_,this.dispatchEvent(R)},t.prototype.getRevision=function(){return this.revision_},t.prototype.on=function(t,e,n){if(Array.isArray(t)){for(var i=t.length,r=new Array(i),o=0;o<i;++o)r[o]=x(this,t[o],e,n);return r}return x(this,t,e,n)},t.prototype.once=function(t,e){if(Array.isArray(t)){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=d(this,t[r],e);return i}return d(this,t,e)},t.prototype.un=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)},t}(L),V=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),q=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.key=e,i.oldValue=n,i}return V(t,r),t}(E),B=function(n){function t(t){var e=n.call(this)||this;return dt(e),e.values_={},void 0!==t&&e.setProperties(t),e}return V(t,n),t.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},t.prototype.getKeys=function(){return Object.keys(this.values_)},t.prototype.getProperties=function(){return v({},this.values_)},t.prototype.notify=function(t,e){var n;n=W(t),this.dispatchEvent(new q(n,t,e)),n=c,this.dispatchEvent(new q(n,t,e))},t.prototype.set=function(t,e,n){if(n)this.values_[t]=e;else{var i=this.values_[t];this.values_[t]=e,i!==e&&this.notify(t,i)}},t.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},t.prototype.unset=function(t,e){if(t in this.values_){var n=this.values_[t];delete this.values_[t],e||this.notify(t,n)}},t}(j),U={};function W(t){return U.hasOwnProperty(t)?U[t]:U[t]="change:"+t}var Z=B,X=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),H=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.element=e,i.index=n,i}return X(t,r),t}(E),Y=function(a){function t(t,e){var n=a.call(this)||this,i=e||{};if(n.unique_=!!i.unique,n.array_=t||[],n.unique_)for(var r=0,o=n.array_.length;r<o;++r)n.assertUnique_(n.array_[r],r);return n.updateLength_(),n}return X(t,a),t.prototype.clear=function(){for(;0<this.getLength();)this.pop()},t.prototype.extend=function(t){for(var e=0,n=t.length;e<n;++e)this.push(t[e]);return this},t.prototype.forEach=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)t(e[n],n,e)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(t){return this.array_[t]},t.prototype.getLength=function(){return this.get("length")},t.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new H(u,e,t))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},t.prototype.remove=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)},t.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new H(h,e,t)),e},t.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new H(h,i,t)),this.dispatchEvent(new H(u,e,t))}else{for(var r=n;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},t.prototype.updateLength_=function(){this.set("length",this.array_.length)},t.prototype.assertUnique_=function(t,e){for(var n=0,i=this.array_.length;n<i;++n)if(this.array_[n]===t&&n!==e)throw new l(58)},t}(Z);function K(t,e){if(!t)throw new l(e)}function J(t,e,n){return Math.min(Math.max(t,e),n)}var Q="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function $(t,e,n,i,r,o){var a=r-n,s=o-i;if(0!=a||0!=s){var l=((t-n)*a+(e-i)*s)/(a*a+s*s);1<l?(n=r,i=o):0<l&&(n+=a*l,i+=s*l)}return tt(t,e,n,i)}function tt(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function et(t){return 180*t/Math.PI}function nt(t){return t*Math.PI/180}function it(t,e){var n=t%e;return n*e<0?n+e:n}function rt(t,e,n){return t+n*(e-t)}var ot=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,at=/^([a-z]*)$|^hsla?\(.*\)$/i;function st(t){return"string"==typeof t?t:mt(t)}function lt(t){var e=document.createElement("div");if(e.style.color=t,""===e.style.color)return"";document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}var ut,ht,ct=(ut={},ht=0,function(t){var e;if(ut.hasOwnProperty(t))e=ut[t];else{if(1024<=ht){var n=0;for(var i in ut)0==(3&n++)&&(delete ut[i],--ht)}e=function(t){var e,n,i,r,o;if(at.exec(t)&&(t=lt(t)),ot.exec(t)){var a=t.length-1,s=void 0;s=a<=4?1:2;var l=4==a||8==a;e=parseInt(t.substr(1+0*s,s),16),n=parseInt(t.substr(1+1*s,s),16),i=parseInt(t.substr(1+2*s,s),16),r=l?parseInt(t.substr(1+3*s,s),16):255,1==s&&(e=(e<<4)+e,n=(n<<4)+n,i=(i<<4)+i,l&&(r=(r<<4)+r)),o=[e,n,i,r/255]}else 0==t.indexOf("rgba(")?yt(o=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((o=t.slice(4,-1).split(",").map(Number)).push(1),yt(o)):K(!1,14);return o}(t),ut[t]=e,++ht}return e});function pt(t){return Array.isArray(t)?t:ct(t)}function yt(t){return t[0]=J(t[0]+.5|0,0,255),t[1]=J(t[1]+.5|0,0,255),t[2]=J(t[2]+.5|0,0,255),t[3]=J(t[3],0,1),t}function mt(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var i=t[2];return i!=(0|i)&&(i=i+.5|0),"rgba("+e+","+n+","+i+","+(void 0===t[3]?1:t[3])+")"}function gt(t){return Array.isArray(t)?mt(t):t}var vt="postrender";function xt(t,e){var n=document.createElement("canvas");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function _t(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function wt(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function bt(t){for(;t.lastChild;)t.removeChild(t.lastChild)}var Pt=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),St=function(n){function t(t){var e=n.call(this)||this;return e.element=t.element?t.element:null,e.target_=null,e.map_=null,e.listenerKeys=[],e.render=t.render?t.render:C,t.target&&e.setTarget(t.target),e}return Pt(t,n),t.prototype.disposeInternal=function(){wt(this.element),n.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(t){this.map_&&wt(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)_(this.listenerKeys[e]);this.listenerKeys.length=0,this.map_=t,this.map_&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==C&&this.listenerKeys.push(x(t,vt,this.render,this)),t.render())},t.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},t}(Z),Ct=function(){var o,a={};return function(t){if(o=o||document.createElement("div").style,!(t in a)){o.font=t;var e=o.fontFamily,n=o.fontWeight,i=o.fontStyle;if(o.font="",!e)return null;var r=e.split(/,\s?/);a[t]={families:r,weight:n,style:i}}return a[t]}}(),Mt="opacity",Tt="visible",At="zIndex",Et="maxResolution",It="minResolution",Lt="maxZoom",Rt="minZoom",Ot="source",Nt=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),zt=function(i){function t(t){var e=i.call(this)||this,n=v({},t);return n[Mt]=void 0!==t.opacity?t.opacity:1,K("number"==typeof n[Mt],64),n[Tt]=void 0===t.visible||t.visible,n[At]=t.zIndex,n[Et]=void 0!==t.maxResolution?t.maxResolution:1/0,n[It]=void 0!==t.minResolution?t.minResolution:0,n[Rt]=void 0!==t.minZoom?t.minZoom:-1/0,n[Lt]=void 0!==t.maxZoom?t.maxZoom:1/0,e.className_=void 0!==n.className?t.className:"ol-layer",delete n.className,e.setProperties(n),e.state_=null,e}return Nt(t,i),t.prototype.getClassName=function(){return this.className_},t.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=J(Math.round(100*this.getOpacity())/100,0,1),e.sourceState=this.getSourceState(),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n?n:!1===e.managed?1/0:0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e},t.prototype.getLayersArray=function(t){return s()},t.prototype.getLayerStatesArray=function(t){return s()},t.prototype.getExtent=function(){return this.get("extent")},t.prototype.getMaxResolution=function(){return this.get(Et)},t.prototype.getMinResolution=function(){return this.get(It)},t.prototype.getMinZoom=function(){return this.get(Rt)},t.prototype.getMaxZoom=function(){return this.get(Lt)},t.prototype.getOpacity=function(){return this.get(Mt)},t.prototype.getSourceState=function(){return s()},t.prototype.getVisible=function(){return this.get(Tt)},t.prototype.getZIndex=function(){return this.get(At)},t.prototype.setExtent=function(t){this.set("extent",t)},t.prototype.setMaxResolution=function(t){this.set(Et,t)},t.prototype.setMinResolution=function(t){this.set(It,t)},t.prototype.setMaxZoom=function(t){this.set(Lt,t)},t.prototype.setMinZoom=function(t){this.set(Rt,t)},t.prototype.setOpacity=function(t){K("number"==typeof t,64),this.set(Mt,t)},t.prototype.setVisible=function(t){this.set(Tt,t)},t.prototype.setZIndex=function(t){this.set(At,t)},t.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),i.prototype.disposeInternal.call(this)},t}(Z),Dt="precompose",Ft="rendercomplete",Gt="undefined",jt="loading",Vt="ready",qt="error",Bt=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Ut(t,e){if(!t.visible)return!1;var n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;var i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}var Wt=function(r){function t(t){var e=this,n=v({},t);delete n.source,(e=r.call(this,n)||this).mapPrecomposeKey_=null,e.mapRenderKey_=null,e.sourceChangeKey_=null,e.renderer_=null,t.render&&(e.render=t.render),t.map&&e.setMap(t.map),e.addEventListener(W(Ot),e.handleSourcePropertyChange_);var i=t.source?t.source:null;return e.setSource(i),e}return Bt(t,r),t.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},t.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},t.prototype.getSource=function(){return this.get(Ot)||null},t.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():Gt},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(_(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=x(t,R,this.handleSourceChange_,this)),this.changed()},t.prototype.getFeatures=function(t){return this.renderer_.getFeatures(t)},t.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return n.renderFrame(t,e)},t.prototype.setMap=function(t){this.mapPrecomposeKey_&&(_(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(_(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=x(t,Dt,function(t){t.frameState.layerStatesArray.push(this.getLayerState(!1))},this),this.mapRenderKey_=x(this,R,t.render,t),this.changed())},t.prototype.setSource=function(t){this.set(Ot,t)},t.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},t.prototype.hasRenderer=function(){return!!this.renderer_},t.prototype.createRenderer=function(){return null},t.prototype.disposeInternal=function(){this.setSource(null),r.prototype.disposeInternal.call(this)},t}(zt),Zt=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Xt(t){this.updateElement_(t.frameState)}var Ht=function(c){function t(t){var e=this,n=t||{};(e=c.call(this,{element:document.createElement("div"),render:n.render||Xt,target:n.target})||this).ulElement_=document.createElement("ul"),e.collapsed_=void 0===n.collapsed||n.collapsed,e.overrideCollapsible_=void 0!==n.collapsible,e.collapsible_=void 0===n.collapsible||n.collapsible,e.collapsible_||(e.collapsed_=!1);var i=void 0!==n.className?n.className:"ol-attribution",r=void 0!==n.tipLabel?n.tipLabel:"Attributions",o=void 0!==n.collapseLabel?n.collapseLabel:"»";"string"==typeof o?(e.collapseLabel_=document.createElement("span"),e.collapseLabel_.textContent=o):e.collapseLabel_=o;var a=void 0!==n.label?n.label:"i";"string"==typeof a?(e.label_=document.createElement("span"),e.label_.textContent=a):e.label_=a;var s=e.collapsible_&&!e.collapsed_?e.collapseLabel_:e.label_,l=document.createElement("button");l.setAttribute("type","button"),l.title=r,l.appendChild(s),l.addEventListener(N,e.handleClick_.bind(e),!1);var u=i+" ol-unselectable ol-control"+(e.collapsed_&&e.collapsible_?" ol-collapsed":"")+(e.collapsible_?"":" ol-uncollapsible"),h=e.element;return h.className=u,h.appendChild(e.ulElement_),h.appendChild(l),e.renderedAttributions_=[],e.renderedVisible_=!0,e}return Zt(t,c),t.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],i=t.layerStatesArray,r=0,o=i.length;r<o;++r){var a=i[r];if(Ut(a,t.viewState)){var s=a.layer.getSource();if(s){var l=s.getAttributions();if(l){var u=l(t);if(u)if(this.overrideCollapsible_||!1!==s.getAttributionsCollapsible()||this.setCollapsible(!1),Array.isArray(u))for(var h=0,c=u.length;h<c;++h)u[h]in e||(n.push(u[h]),e[u[h]]=!0);else u in e||(n.push(u),e[u]=!0)}}}}return n},t.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),n=0<e.length;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!kt(e,this.renderedAttributions_)){bt(this.ulElement_);for(var i=0,r=e.length;i<r;++i){var o=document.createElement("li");o.innerHTML=e[i],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},t.prototype.handleToggle_=function(){this.element.classList.toggle("ol-collapsed"),this.collapsed_?_t(this.collapseLabel_,this.label_):_t(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t}(St),Yt=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kt=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function Jt(){var t=document.body;return!!(t.webkitRequestFullscreen||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled)}function Qt(){return!!(document.webkitIsFullScreen||document.msFullscreenElement||document.fullscreenElement)}function $t(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}var te=function(l){function t(t){var e=this,n=t||{};(e=l.call(this,{element:document.createElement("div"),target:n.target})||this).cssClassName_=void 0!==n.className?n.className:"ol-full-screen";var i=void 0!==n.label?n.label:"⤢";e.labelNode_="string"==typeof i?document.createTextNode(i):i;var r=void 0!==n.labelActive?n.labelActive:"×";e.labelActiveNode_="string"==typeof r?document.createTextNode(r):r,e.button_=document.createElement("button");var o=n.tipLabel?n.tipLabel:"Toggle full-screen";e.setClassName_(e.button_,Qt()),e.button_.setAttribute("type","button"),e.button_.title=o,e.button_.appendChild(e.labelNode_),e.button_.addEventListener(N,e.handleClick_.bind(e),!1);var a=e.cssClassName_+" ol-unselectable ol-control "+(Jt()?"":"ol-unsupported"),s=e.element;return s.className=a,s.appendChild(e.button_),e.keys_=void 0!==n.keys&&n.keys,e.source_=n.source,e}return Yt(t,l),t.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},t.prototype.handleFullScreen_=function(){if(Jt()){var t=this.getMap();if(t)if(Qt())document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{var e=void 0;e=this.source_?"string"==typeof this.source_?document.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?function(t){t.webkitRequestFullscreen?t.webkitRequestFullscreen():$t(t)}(e):$t(e)}}},t.prototype.handleFullScreenChange_=function(){var t=this.getMap();Qt()?(this.setClassName_(this.button_,!0),_t(this.labelActiveNode_,this.labelNode_)):(this.setClassName_(this.button_,!1),_t(this.labelNode_,this.labelActiveNode_)),t&&t.updateSize()},t.prototype.setClassName_=function(t,e){var n=this.cssClassName_+"-true",i=this.cssClassName_+"-false",r=e?n:i;t.classList.remove(n),t.classList.remove(i),t.classList.add(r)},t.prototype.setMap=function(t){if(l.prototype.setMap.call(this,t),t)for(var e=0,n=Kt.length;e<n;++e)this.listenerKeys.push(x(document,Kt[e],this.handleFullScreenChange_,this))},t}(St),ee="pointermove",ne="pointerdown",ie="pointerup",re={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"};function oe(t,e,n){var i=n||6371008.8,r=nt(t[1]),o=nt(e[1]),a=(o-r)/2,s=nt(e[0]-t[0])/2,l=Math.sin(a)*Math.sin(a)+Math.sin(s)*Math.sin(s)*Math.cos(r)*Math.cos(o);return 2*i*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function ae(t,e){for(var n=0,i=0,r=t.length;i<r-1;++i)n+=oe(t[i],t[i+1],e);return n}function se(t,e){for(var n=0,i=t.length,r=t[i-1][0],o=t[i-1][1],a=0;a<i;a++){var s=t[a][0],l=t[a][1];n+=nt(s-r)*(2+Math.sin(nt(o))+Math.sin(nt(l))),r=s,o=l}return n*e*e/2}var le="bottom-left",ue="bottom-right",he="top-left",ce="top-right",pe=0,fe=1,de=2,ye=4,me=8,ge=16;function ve(t){for(var e=[1/0,1/0,-1/0,-1/0],n=0,i=t.length;n<i;++n)Oe(e,t[n]);return e}function xe(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function _e(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function we(t,e,n){var i,r;return(i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*i+(r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0)*r}function be(t,e){return Se(t,e[0],e[1])}function Pe(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function Se(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function Ce(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=e[0],s=e[1],l=pe;return a<n?l|=ge:r<a&&(l|=ye),s<i?l|=me:o<s&&(l|=de),l===pe&&(l=fe),l}function Me(){return[1/0,1/0,-1/0,-1/0]}function Te(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function Ae(t){return Te(1/0,1/0,-1/0,-1/0,t)}function Ee(t,e){var n=t[0],i=t[1];return Te(n,i,n,i,e)}function Ie(t,e,n,i,r){return Ne(Ae(r),t,e,n,i)}function Le(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function Re(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 Oe(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 Ne(t,e,n,i,r){for(;n<i;n+=r)o=t,a=e[n],s=e[n+1],o[0]=Math.min(o[0],a),o[1]=Math.min(o[1],s),o[2]=Math.max(o[2],a),o[3]=Math.max(o[3],s);var o,a,s;return t}function ke(t,e){var n;return(n=e(De(t)))||(n=e(Fe(t)))||(n=e(Ue(t)))?n:(n=e(Be(t)))||!1}function ze(t){var e=0;return Xe(t)||(e=We(t)*Ve(t)),e}function De(t){return[t[0],t[1]]}function Fe(t){return[t[2],t[1]]}function Ge(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function je(t,e,n,i,r){var o=e*i[0]/2,a=e*i[1]/2,s=Math.cos(n),l=Math.sin(n),u=o*s,h=o*l,c=a*s,p=a*l,f=t[0],d=t[1],y=f-u+p,m=f-u-p,g=f+u-p,v=f+u+p,x=d-h-c,_=d-h+c,w=d+h+c,b=d+h-c;return Te(Math.min(y,m,g,v),Math.min(x,_,w,b),Math.max(y,m,g,v),Math.max(x,_,w,b),r)}function Ve(t){return t[3]-t[1]}function qe(t,e,n){var i=n||[1/0,1/0,-1/0,-1/0];return Ze(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):Ae(i),i}function Be(t){return[t[0],t[3]]}function Ue(t){return[t[2],t[3]]}function We(t){return t[2]-t[0]}function Ze(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Xe(t){return t[2]<t[0]||t[3]<t[1]}function He(t,e){var n=(t[2]-t[0])/2*(e-1),i=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=i,t[3]+=i}function Ye(t,e,n){var i=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(i,i,2),function(t,e,n){return Te(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}([i[0],i[2],i[4],i[6]],[i[1],i[3],i[5],i[7]],n)}var Ke={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},Je={};Je[Ke.DEGREES]=2*Math.PI*6370997/360,Je[Ke.FEET]=.3048,Je[Ke.METERS]=1,Je[Ke.USFEET]=1200/3937;var Qe=Ke,$e=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||Je[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}(),tn=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),en=6378137*Math.PI,nn=[-en,-en,en,en],rn=[-180,-85,180,85],on=function(e){function t(t){return e.call(this,{code:t,units:Qe.METERS,extent:nn,global:!0,worldExtent:rn,getPointResolution:function(t,e){return t/Q(e[1]/6378137)}})||this}return tn(t,e),t}($e),an=[new on("EPSG:3857"),new on("EPSG:102100"),new on("EPSG:102113"),new on("EPSG:900913"),new on("urn:ogc:def:crs:EPSG:6.18:3:3857"),new on("urn:ogc:def:crs:EPSG::3857"),new on("http://www.opengis.net/gml/srs/epsg.xml#3857")],sn=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ln=[-180,-90,180,90],un=6378137*Math.PI/180,hn=function(n){function t(t,e){return n.call(this,{code:t,units:Qe.DEGREES,extent:ln,axisOrientation:e,global:!0,metersPerUnit:un,worldExtent:ln})||this}return sn(t,n),t}($e),cn=[new hn("CRS:84"),new hn("EPSG:4326","neu"),new hn("urn:ogc:def:crs:EPSG::4326","neu"),new hn("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new hn("urn:ogc:def:crs:OGC:1.3:CRS84"),new hn("urn:ogc:def:crs:OGC:2:84"),new hn("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new hn("urn:x-ogc:def:crs:EPSG:4326","neu")],pn={};function fn(t,e,n){var i=t.getCode(),r=e.getCode();i in pn||(pn[i]={}),pn[i][r]=n}function dn(t,e){var n;return t in pn&&e in pn[t]&&(n=pn[t][e]),n}var yn={};function mn(t,e,n){var i;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];i=e}else i=t.slice();return i}function gn(t,e,n){if(void 0!==e&&t!==e){for(var i=0,r=t.length;i<r;++i)e[i]=t[i];t=e}return t}function vn(t){!function(t,e){yn[t]=e}(t.getCode(),t),fn(t,t,mn)}function xn(t){return"string"==typeof t?yn[t]||null:t||null}function _n(t,e,n,i){var r,o=(t=xn(t)).getPointResolutionFunc();if(o)r=o(e,n),i&&i!==t.getUnits()&&(a=t.getMetersPerUnit())&&(r=r*a/Je[i]);else if(t.getUnits()==Qe.DEGREES&&!i||i==Qe.DEGREES)r=e;else{var a,s=Mn(t,xn("EPSG:4326")),l=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];r=(oe((l=s(l,l,2)).slice(0,2),l.slice(2,4))+oe(l.slice(4,6),l.slice(6,8)))/2,void 0!==(a=i?Je[i]:t.getMetersPerUnit())&&(r/=a)}return r}function wn(t){!function(t){t.forEach(vn)}(t),t.forEach(function(e){t.forEach(function(t){e!==t&&fn(e,t,mn)})})}function bn(t,e){return t?"string"==typeof t?xn(t):t:xn(e)}function Pn(u){return function(t,e,n){for(var i=t.length,r=void 0!==n?n:2,o=void 0!==e?e:new Array(i),a=0;a<i;a+=r){var s=u([t[a],t[a+1]]);o[a]=s[0],o[a+1]=s[1];for(var l=r-1;2<=l;--l)o[a+l]=t[a+l]}return o}}function Sn(t,e,n,i){var r=xn(t),o=xn(e);fn(r,o,Pn(n)),fn(o,r,Pn(i))}function Cn(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||Mn(t,e)===mn)&&n}function Mn(t,e){var n=dn(t.getCode(),e.getCode());return n=n||gn}function Tn(t,e){return Mn(xn(t),xn(e))}function An(t,e,n){return Tn(e,n)(t,void 0,t.length)}function En(t,e,n){return Ye(t,Tn(e,n))}var In,Ln,Rn,On=null;function Nn(){return On}function kn(t,e){return On?An(t,e,On):t}function zn(t,e){return On?An(t,On,e):t}function Dn(t,e){return On?En(t,e,On):t}function Fn(t,e){return On?En(t,On,e):t}wn(an),wn(cn),In=an,Ln=function(t,e,n){var i=t.length,r=1<n?n:2,o=e;void 0===o&&(o=2<r?t.slice():new Array(i));for(var a=en,s=0;s<i;s+=r){o[s]=a*t[s]/180;var l=6378137*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));a<l?l=a:l<-a&&(l=-a),o[s+1]=l}return o},Rn=function(t,e,n){var i=t.length,r=1<n?n:2,o=e;void 0===o&&(o=2<r?t.slice():new Array(i));for(var a=0;a<i;a+=r)o[a]=180*t[a]/en,o[a+1]=360*Math.atan(Math.exp(t[a+1]/6378137))/Math.PI-90;return o},cn.forEach(function(e){In.forEach(function(t){fn(e,t,Ln),fn(t,e,Rn)})}),n(1);var Gn=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function jn(t){var e=t.frameState;e?this.mapProjection_!=e.viewState.projection&&(this.mapProjection_=e.viewState.projection,this.transform_=null):this.mapProjection_=null}var Vn=function(r){function t(t){var e=this,n=t||{},i=document.createElement("div");return i.className=void 0!==n.className?n.className:"ol-mouse-position",(e=r.call(this,{element:i,render:n.render||jn,target:n.target})||this).addEventListener(W("projection"),e.handleProjectionChanged_),n.coordinateFormat&&e.setCoordinateFormat(n.coordinateFormat),n.projection&&e.setProjection(n.projection),e.undefinedHTML_=void 0!==n.undefinedHTML?n.undefinedHTML:"&#160;",e.renderOnMouseOut_=!!e.undefinedHTML_,e.renderedHTML_=i.innerHTML,e.mapProjection_=null,e.transform_=null,e}return Gn(t,r),t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get("coordinateFormat")},t.prototype.getProjection=function(){return this.get("projection")},t.prototype.handleMouseMove=function(t){var e=this.getMap();this.updateHTML_(e.getEventPixel(t))},t.prototype.handleMouseOut=function(t){this.updateHTML_(null)},t.prototype.setMap=function(t){if(r.prototype.setMap.call(this,t),t){var e=t.getViewport();this.listenerKeys.push(x(e,ee,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(x(e,"pointerout",this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(t){this.set("coordinateFormat",t)},t.prototype.setProjection=function(t){this.set("projection",xn(t))},t.prototype.updateHTML_=function(t){var e=this.undefinedHTML_;if(t&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Mn(this.mapProjection_,n):gn}var i=this.getMap().getCoordinateFromPixelInternal(t);if(i){var r=Nn();r&&(this.transform_=Mn(this.mapProjection_,r)),this.transform_(i,i);var o=this.getCoordinateFormat();e=o?o(i):i.toString()}}this.renderedHTML_&&e===this.renderedHTML_||(this.element.innerHTML=e,this.renderedHTML_=e)},t}(St),qn=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bn=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.map=e,i.frameState=void 0!==n?n:null,i}return qn(t,r),t}(E),Un=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wn=function(a){function t(t,e,n,i,r){var o=a.call(this,t,e,r)||this;return o.originalEvent=n,o.pixel_=null,o.coordinate_=null,o.dragging=void 0!==i&&i,o}return Un(t,a),Object.defineProperty(t.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!0,configurable:!0}),t.prototype.preventDefault=function(){a.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){a.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},t}(Bn),Zn="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",Xn=-1!==Zn.indexOf("firefox"),Hn=(-1!==Zn.indexOf("safari")&&Zn.indexOf("chrom"),-1!==Zn.indexOf("webkit")&&-1==Zn.indexOf("edge")),Yn=-1!==Zn.indexOf("macintosh"),Kn=window.devicePixelRatio||1,Jn="undefined"!=typeof Image&&Image.prototype.decode,Qn={SINGLECLICK:"singleclick",CLICK:N,DBLCLICK:"dblclick",POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},$n=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ti=function(a){function t(t,e,n,i,r){var o=a.call(this,t,e,n,i,r)||this;return o.pointerEvent=n,o}return $n(t,a),t}(Wn),ei=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ni=function(r){function t(t,e){var n=r.call(this,t)||this;n.map_=t,n.clickTimeoutId_,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=e?e*Kn:Kn,n.down_=null;var i=n.map_.getViewport();return n.activePointers_=0,n.trackedTouches_={},n.element_=i,n.pointerdownListenerKey_=x(i,ne,n.handlePointerDown_,n),n.relayedListenerKey_=x(i,ee,n.relayEvent_,n),n}return ei(t,r),t.prototype.emulateClick_=function(e){var t=new ti(Qn.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new ti(Qn.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new ti(Qn.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},t.prototype.updateActivePointers_=function(t){var e=t;e.type==Qn.POINTERUP||e.type==Qn.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==Qn.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},t.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new ti(Qn.POINTERUP,this.map_,t);this.dispatchEvent(e),e.propagationStopped||this.dragging_||!this.isMouseActionButton_(t)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(_),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},t.prototype.isMouseActionButton_=function(t){return 0===t.button},t.prototype.handlePointerDown_=function(t){this.updateActivePointers_(t);var e=new ti(Qn.POINTERDOWN,this.map_,t);this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length&&this.dragListenerKeys_.push(x(document,Qn.POINTERMOVE,this.handlePointerMove_,this),x(document,Qn.POINTERUP,this.handlePointerUp_,this),x(this.element_,Qn.POINTERCANCEL,this.handlePointerUp_,this))},t.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new ti(Qn.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}},t.prototype.relayEvent_=function(t){var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new ti(t.type,this.map_,t,e))},t.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&(_(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(_(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(_),this.dragListenerKeys_.length=0,this.element_=null,r.prototype.disposeInternal.call(this)},t}(L),ii="layergroup",ri="size",oi="target",ai="view",si=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,y(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},t.prototype.enqueue=function(t){K(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=1/0&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;0<=t;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;t<i>>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<i&&n[l]<n[s]?l:s;e[t]=e[u],n[t]=n[u],t=u}e[t]=r,n[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){for(var n=this.elements_,i=this.priorities_,r=n[e],o=i[e];t<e;){var a=this.getParentIndex_(e);if(!(i[a]>o))break;n[e]=n[a],i[e]=i[a],e=a}n[e]=r,i[e]=o},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,o=this.priorities_,a=0,s=r.length;for(e=0;e<s;++e)(n=i(t=r[e]))==1/0?delete this.queuedElements_[this.keyFunction_(t)]:(o[a]=n,r[a++]=t);r.length=a,o.length=a,this.heapify_()},t}(),li=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ui=function(i){function t(e,t){var n=i.call(this,function(t){return e.apply(null,t)},function(t){return t[0].getKey()})||this;return n.boundHandleTileChange_=n.handleTileChange.bind(n),n.tileChangeCallback_=t,n.tilesLoading_=0,n.tilesLoadingKeys_={},n}return li(t,i),t.prototype.enqueue=function(t){var e=i.prototype.enqueue.call(this,t);return e&&t[0].addEventListener(R,this.boundHandleTileChange_),e},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(t){var e=t.target,n=e.getState();if(e.hifi&&2===n||3===n||4===n||5===n){e.removeEventListener(R,this.boundHandleTileChange_);var i=e.getKey();i in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[i],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(t,e){for(var n,i,r,o=0,a=!1;this.tilesLoading_<t&&o<e&&0<this.getCount();)r=(i=this.dequeue()[0]).getKey(),5===(n=i.getState())?a=!0:0!==n||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load());0===o&&a&&this.tileChangeCallback_()},t}(si);function hi(f,d,y){return function(t,e,n,i){if(t){var r=d?0:n[0]*e,o=d?0:n[1]*e,a=f[0]+r/2,s=f[2]-r/2,l=f[1]+o/2,u=f[3]-o/2;s<a&&(s=a=(s+a)/2),u<l&&(u=l=(u+l)/2);var h=J(t[0],a,s),c=J(t[1],l,u),p=30*e;return i&&y&&(h+=-p*Math.log(1+Math.max(0,a-t[0])/p)+p*Math.log(1+Math.max(0,t[0]-s)/p),c+=-p*Math.log(1+Math.max(0,l-t[1])/p)+p*Math.log(1+Math.max(0,t[1]-u)/p)),[h,c]}}}function ci(t){return t}function pi(t,e,n){var i=We(e)/n[0],r=Ve(e)/n[1];return Math.min(t,Math.min(i,r))}function fi(t,e,n){var i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),J(i,n/2,2*e)}function di(o,a,s,l){return function(t,e,n,i){if(void 0!==t){var r=l?pi(o,l,n):o;return(void 0===s||s)&&i?fi(t,r,a):J(t,a,r)}}}function yi(t){return void 0!==t?0:void 0}function mi(t){return void 0!==t?t:void 0}var gi="center",vi="resolution",xi="rotation";function _i(t,e,n){var i=void 0!==n?t.toFixed(n):""+t,r=i.indexOf(".");return(r=-1===r?i.length:r)>e?i:new Array(1+e-r).join("0")+i}function wi(t,e){for(var n=(""+t).split("."),i=(""+e).split("."),r=0;r<Math.max(n.length,i.length);r++){var o=parseInt(n[r]||"0",10),a=parseInt(i[r]||"0",10);if(a<o)return 1;if(o<a)return-1}return 0}function bi(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function Pi(t,e){var n,i,r=t[0],o=t[1],a=e[0],s=e[1],l=a[0],u=a[1],h=s[0],c=s[1],p=h-l,f=c-u,d=0==p&&0==f?0:(p*(r-l)+f*(o-u))/(p*p+f*f||0);return i=d<=0?(n=l,u):1<=d?(n=h,c):(n=l+d*p,u+d*f),[n,i]}function Si(t,e,n){var i=it(e+180,360)-180,r=Math.abs(3600*i),o=n||0,a=Math.pow(10,o),s=Math.floor(r/3600),l=Math.floor((r-3600*s)/60),u=r-3600*s-60*l;return 60<=(u=Math.ceil(u*a)/a)&&(u=0,l+=1),60<=l&&(l=0,s+=1),s+"° "+_i(l,2)+" "+_i(u,2,o)+"″"+(0==i?"":" "+t.charAt(i<0?1:0))}function Ci(t,e,n){return t?e.replace("{x}",t[0].toFixed(n)).replace("{y}",t[1].toFixed(n)):""}function Mi(t,e){for(var n=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){n=!1;break}return n}function Ti(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function Ai(t,e){return t[0]*=e,t[1]*=e,t}function Ei(t,e){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}function Ii(t,e){return Math.sqrt(Ei(t,e))}function Li(t,e){return Ei(t,Pi(t,e))}function Ri(t,e){return Ci(t,"{x}, {y}",e)}function Oi(t){return Math.pow(t,3)}function Ni(t){return 1-Oi(1-t)}function ki(t){return 3*t*t-2*t*t*t}function zi(t){return t}var Di="XY",Fi="XYZ",Gi="XYM",ji="XYZM";function Vi(t,e,n,i,r,o){for(var a=o||[],s=0,l=e;l<n;l+=i){var u=t[l],h=t[l+1];a[s++]=r[0]*u+r[2]*h+r[4],a[s++]=r[1]*u+r[3]*h+r[5]}return o&&a.length!=s&&(a.length=s),a}function qi(t,e,n,i,r,o,a){for(var s=a||[],l=Math.cos(r),u=Math.sin(r),h=o[0],c=o[1],p=0,f=e;f<n;f+=i){var d=t[f]-h,y=t[f+1]-c;s[p++]=h+d*l-y*u,s[p++]=c+d*u+y*l;for(var m=f+2;m<f+i;++m)s[p++]=t[m]}return a&&s.length!=p&&(s.length=p),s}function Bi(t,e,n,i,r,o,a){for(var s=a||[],l=0,u=e;u<n;u+=i){s[l++]=t[u]+r,s[l++]=t[u+1]+o;for(var h=u+2;h<u+i;++h)s[l++]=t[h]}return a&&s.length!=l&&(s.length=l),s}var Ui=new Array(6);function Wi(t){return Xi(t,1,0,0,1,0,0)}function Zi(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],h=e[2],c=e[3],p=e[4],f=e[5];return t[0]=n*l+r*u,t[1]=i*l+o*u,t[2]=n*h+r*c,t[3]=i*h+o*c,t[4]=n*p+r*f+a,t[5]=i*p+o*f+s,t}function Xi(t,e,n,i,r,o,a){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t}function Hi(t,e){var n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function Yi(t,e,n){return Zi(t,Xi(Ui,e,0,0,n,0,0))}function Ki(t,e,n,i,r,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=i*u,t[1]=r*l,t[2]=-i*l,t[3]=r*u,t[4]=a*i*u-s*i*l+e,t[5]=a*r*l+s*r*u+n,t}function Ji(t,e){var n,i=(n=e)[0]*n[3]-n[1]*n[2];K(0!=i,32);var r=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];return t[0]=s/i,t[1]=-o/i,t[2]=-a/i,t[3]=r/i,t[4]=(a*u-s*l)/i,t[5]=-(r*u-o*l)/i,t}function Qi(t){return"matrix("+t.join(", ")+")"}var $i=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),tr=[1,0,0,1,0,0],er=function(a){function t(){var e,n,i,r,o,t=a.call(this)||this;return t.extent_=[1/0,1/0,-1/0,-1/0],t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=(o=!(e=function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)}),function(){var t=Array.prototype.slice.call(arguments);return o&&this===r&&kt(t,i)||(o=!0,i=t,n=e.apply(r=this,arguments)),n}),t}return $i(t,a),t.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},t.prototype.clone=function(){return s()},t.prototype.closestPointXY=function(t,e,n,i){return s()},t.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},t.prototype.getClosestPoint=function(t,e){var n=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],n,1/0),n},t.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},t.prototype.computeExtent=function(t){return s()},t.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),function(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}(this.extent_,t)},t.prototype.rotate=function(t,e){s()},t.prototype.scale=function(t,e,n){s()},t.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},t.prototype.getSimplifiedGeometry=function(t){return s()},t.prototype.getType=function(){return s()},t.prototype.applyTransform=function(t){s()},t.prototype.intersectsExtent=function(t){return s()},t.prototype.translate=function(t,e){s()},t.prototype.transform=function(t,a){var s=xn(t),e=s.getUnits()==Qe.TILE_PIXELS?function(t,e,n){var i=s.getExtent(),r=s.getWorldExtent(),o=Ve(r)/Ve(i);return Ki(tr,r[0],r[3],o,-o,0,0,0),Vi(t,0,t.length,n,tr,e),Tn(s,a)(t,e,n)}:Tn(s,a);return this.applyTransform(e),this},t}(Z),nr=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function ir(t){var e;return t==Di?e=2:t==Fi||t==Gi?e=3:t==ji&&(e=4),e}var rr=function(e){function t(){var t=e.call(this)||this;return t.layout=Di,t.stride=2,t.flatCoordinates=null,t}return nr(t,e),t.prototype.computeExtent=function(t){return Ie(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},t.prototype.getCoordinates=function(){return s()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},t.prototype.getSimplifiedGeometryInternal=function(t){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(t,e){this.stride=ir(t),this.layout=t,this.flatCoordinates=e},t.prototype.setCoordinates=function(t,e){s()},t.prototype.setLayout=function(t,e,n){var i;if(t)i=ir(t);else{for(var r=0;r<n;++r){if(0===e.length)return this.layout=Di,void(this.stride=2);e=e[0]}t=function(t){var e;return 2==t?e=Di:3==t?e=Fi:4==t&&(e=ji),e}(i=e.length)}this.layout=t,this.stride=i},t.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();qi(n,0,n.length,i,t,e,n),this.changed()}},t.prototype.scale=function(t,e,n){var i=e;void 0===i&&(i=t);var r=n;r=r||Ge(this.getExtent());var o=this.getFlatCoordinates();if(o){var a=this.getStride();!function(t,e,n,i,r,o,a,s){for(var l=s||[],u=a[0],h=a[1],c=0,p=0;p<n;p+=i){var f=t[p]-u,d=t[p+1]-h;l[c++]=u+r*f,l[c++]=h+o*d;for(var y=p+2;y<p+i;++y)l[c++]=t[y]}s&&l.length!=c&&(l.length=c)}(o,0,o.length,a,t,i,r,o),this.changed()}},t.prototype.translate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();Bi(n,0,n.length,i,t,e,n),this.changed()}},t}(er);function or(t,e,n,i){for(var r=0,o=t[n-i],a=t[n-i+1];e<n;e+=i){var s=t[e],l=t[e+1];r+=a*s-o*l,o=s,a=l}return r/2}function ar(t,e,n,i){for(var r=0,o=0,a=n.length;o<a;++o){var s=n[o];r+=or(t,e,s,i),e=s}return r}function sr(t,e,n,i,r,o,a){var s,l=t[e],u=t[e+1],h=t[n]-l,c=t[n+1]-u;if(0==h&&0==c)s=e;else{var p=((r-l)*h+(o-u)*c)/(h*h+c*c);if(1<p)s=n;else{if(0<p){for(var f=0;f<i;++f)a[f]=rt(t[e+f],t[n+f],p);return void(a.length=i)}s=e}}for(f=0;f<i;++f)a[f]=t[s+f];a.length=i}function lr(t,e,n,i,r){var o=t[e],a=t[e+1];for(e+=i;e<n;e+=i){var s=t[e],l=t[e+1],u=tt(o,a,s,l);r<u&&(r=u),o=s,a=l}return r}function ur(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o];r=lr(t,e,s,i,r),e=s}return r}function hr(t,e,n,i,r,o,a,s,l,u,h){if(e==n)return u;var c,p;if(0===r){if((p=tt(a,s,t[e],t[e+1]))<u){for(c=0;c<i;++c)l[c]=t[e+c];return l.length=i,p}return u}for(var f=h||[NaN,NaN],d=e+i;d<n;)if(sr(t,d-i,d,i,a,s,f),(p=tt(a,s,f[0],f[1]))<u){for(u=p,c=0;c<i;++c)l[c]=f[c];l.length=i,d+=i}else d+=i*Math.max((Math.sqrt(p)-Math.sqrt(u))/r|0,1);if(o&&(sr(t,n-i,e,i,a,s,f),(p=tt(a,s,f[0],f[1]))<u)){for(u=p,c=0;c<i;++c)l[c]=f[c];l.length=i}return u}function cr(t,e,n,i,r,o,a,s,l,u,h){for(var c=h||[NaN,NaN],p=0,f=n.length;p<f;++p){var d=n[p];u=hr(t,e,d,i,r,o,a,s,l,u,c),e=d}return u}function pr(t,e,n,i){for(var r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function fr(t,e,n,i){for(var r=0,o=n.length;r<o;++r)for(var a=n[r],s=0;s<i;++s)t[e++]=a[s];return e}function dr(t,e,n,i,r){for(var o=r||[],a=0,s=0,l=n.length;s<l;++s){var u=fr(t,e,n[s],i);o[a++]=u,e=u}return o.length=a,o}function yr(t,e,n,i,r){for(var o=void 0!==r?r:[],a=0,s=e;s<n;s+=i)o[a++]=t.slice(s,s+i);return o.length=a,o}function mr(t,e,n,i,r){for(var o=void 0!==r?r:[],a=0,s=0,l=n.length;s<l;++s){var u=n[s];o[a++]=yr(t,e,u,i,o[a]),e=u}return o.length=a,o}function gr(t,e,n,i,r){for(var o=void 0!==r?r:[],a=0,s=0,l=n.length;s<l;++s){var u=n[s];o[a++]=mr(t,e,u,i,o[a]),e=u[u.length-1]}return o.length=a,o}function vr(t,e,n,i,r,o,a){var s=(n-e)/i;if(s<3){for(;e<n;e+=i)o[a++]=t[e],o[a++]=t[e+1];return a}var l=new Array(s);l[0]=1,l[s-1]=1;for(var u=[e,n-i],h=0;0<u.length;){for(var c=u.pop(),p=u.pop(),f=0,d=t[p],y=t[p+1],m=t[c],g=t[c+1],v=p+i;v<c;v+=i){var x=$(t[v],t[v+1],d,y,m,g);f<x&&(h=v,f=x)}r<f&&(l[(h-e)/i]=1,p+i<h&&u.push(p,h),h+i<c&&u.push(h,c))}for(v=0;v<s;++v)l[v]&&(o[a++]=t[e+v*i],o[a++]=t[e+v*i+1]);return a}function xr(t,e){return e*Math.round(t/e)}function _r(t,e,n,i,r,o,a){if(e==n)return a;var s,l,u=xr(t[e],r),h=xr(t[e+1],r);e+=i,o[a++]=u,o[a++]=h;do{if(s=xr(t[e],r),l=xr(t[e+1],r),(e+=i)==n)return o[a++]=s,o[a++]=l,a}while(s==u&&l==h);for(;e<n;){var c=xr(t[e],r),p=xr(t[e+1],r);if(e+=i,c!=s||p!=l){var f=s-u,d=l-h,y=c-u,m=p-h;f*m==d*y&&(f<0&&y<f||f==y||0<f&&f<y)&&(d<0&&m<d||d==m||0<d&&d<m)||(o[a++]=s,o[a++]=l,u=s,h=l),s=c,l=p}}return o[a++]=s,o[a++]=l,a}function wr(t,e,n,i,r,o,a,s){for(var l=0,u=n.length;l<u;++l){var h=n[l];a=_r(t,e,h,i,r,o,a),s.push(a),e=h}return a}var br=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pr=function(i){function n(t,e){var n=i.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?n.setCoordinates(t,e):n.setFlatCoordinates(e,t),n}return br(n,i),n.prototype.clone=function(){return new n(this.flatCoordinates.slice(),this.layout)},n.prototype.closestPointXY=function(t,e,n,i){return i<we(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(lr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))},n.prototype.getArea=function(){return or(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},n.prototype.getCoordinates=function(){return yr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},n.prototype.getSimplifiedGeometryInternal=function(t){var e=[];return e.length=vr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new n(e,Di)},n.prototype.getType=function(){return re.LINEAR_RING},n.prototype.intersectsExtent=function(t){return!1},n.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fr(this.flatCoordinates,0,t,this.stride),this.changed()},n}(rr),Sr=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cr=function(i){function t(t,e){var n=i.call(this)||this;return n.setCoordinates(t,e),n}return Sr(t,i),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=tt(t,e,r[0],r[1]);if(o<i){for(var a=this.stride,s=0;s<a;++s)n[s]=r[s];return n.length=a,o}return i},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(t){return Ee(this.flatCoordinates,t)},t.prototype.getType=function(){return re.POINT},t.prototype.intersectsExtent=function(t){return Se(t,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=pr(this.flatCoordinates,0,t,this.stride),this.changed()},t}(rr);function Mr(e,n,i,r,t){return!ke(t,function(t){return!Tr(e,n,i,r,t[0],t[1])})}function Tr(t,e,n,i,r,o){for(var a=0,s=t[n-i],l=t[n-i+1];e<n;e+=i){var u=t[e],h=t[e+1];l<=o?o<h&&0<(u-s)*(o-l)-(r-s)*(h-l)&&a++:h<=o&&(u-s)*(o-l)-(r-s)*(h-l)<0&&a--,s=u,l=h}return 0!==a}function Ar(t,e,n,i,r,o){if(0===n.length)return!1;if(!Tr(t,e,n[0],i,r,o))return!1;for(var a=1,s=n.length;a<s;++a)if(Tr(t,n[a-1],n[a],i,r,o))return!1;return!0}function Er(t,e,n,i,r,o,a){for(var s,l,u,h,c,p,f,d=r[o+1],y=[],m=0,g=n.length;m<g;++m){var v=n[m];for(h=t[v-i],p=t[v-i+1],s=e;s<v;s+=i)c=t[s],f=t[s+1],(d<=p&&f<=d||p<=d&&d<=f)&&(u=(d-p)/(f-p)*(c-h)+h,y.push(u)),h=c,p=f}var x=NaN,_=-1/0;for(y.sort(ft),h=y[0],s=1,l=y.length;s<l;++s){c=y[s];var w=Math.abs(c-h);_<w&&Ar(t,e,n,i,u=(h+c)/2,d)&&(x=u,_=w),h=c}return isNaN(x)&&(x=r[o]),a?(a.push(x,d,_),a):[x,d,_]}function Ir(t,e,n,i,r){for(var o=[],a=0,s=n.length;a<s;++a){var l=n[a];o=Er(t,e,l,i,r,2*a,o),e=l[l.length-1]}return o}function Lr(t,e,n,i,r){for(var o,a=[t[e],t[e+1]],s=[];e+i<n;e+=i){if(s[0]=t[e+i],s[1]=t[e+i+1],o=r(a,s))return o;a[0]=s[0],a[1]=s[1]}return!1}function Rr(t,e,n,i,r){var o=Ne([1/0,1/0,-1/0,-1/0],t,e,n,i);return!!Ze(r,o)&&(!!Pe(r,o)||o[0]>=r[0]&&o[2]<=r[2]||o[1]>=r[1]&&o[3]<=r[3]||Lr(t,e,n,i,function(t,e){return function(t,e,n){var i=!1,r=Ce(t,e),o=Ce(t,n);if(r===fe||o===fe)i=!0;else{var a=t[0],s=t[1],l=t[2],u=t[3],h=e[0],c=e[1],p=n[0],f=n[1],d=(f-c)/(p-h),y=void 0,m=void 0;o&de&&!(r&de)&&(i=(y=p-(f-u)/d)>=a&&y<=l),i||!(o&ye)||r&ye||(i=(m=f-(p-l)*d)>=s&&m<=u),i||!(o&me)||r&me||(i=(y=p-(f-s)/d)>=a&&y<=l),i||!(o&ge)||r&ge||(i=(m=f-(p-a)*d)>=s&&m<=u)}return i}(r,t,e)}))}function Or(t,e,n,i,r){if(!function(t,e,n,i,r){return!!(Rr(t,e,n,i,r)||Tr(t,e,n,i,r[0],r[1])||Tr(t,e,n,i,r[0],r[3])||Tr(t,e,n,i,r[2],r[1])||Tr(t,e,n,i,r[2],r[3]))}(t,e,n[0],i,r))return!1;if(1===n.length)return!0;for(var o=1,a=n.length;o<a;++o)if(Mr(t,n[o-1],n[o],i,r)&&!Rr(t,n[o-1],n[o],i,r))return!1;return!0}function Nr(t,e,n,i){for(;e<n-i;){for(var r=0;r<i;++r){var o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}function kr(t,e,n,i){for(var r=0,o=t[n-i],a=t[n-i+1];e<n;e+=i){var s=t[e],l=t[e+1];r+=(s-o)*(l+a),o=s,a=l}return 0<r}function zr(t,e,n,i,r){for(var o=void 0!==r&&r,a=0,s=n.length;a<s;++a){var l=n[a],u=kr(t,e,l,i);if(0===a){if(o&&u||!o&&!u)return!1}else if(o&&!u||!o&&u)return!1;e=l}return!0}function Dr(t,e,n,i,r){for(var o=void 0!==r&&r,a=0,s=n.length;a<s;++a){var l=n[a],u=kr(t,e,l,i);(0===a?o&&u||!o&&!u:o&&!u||!o&&u)&&Nr(t,e,l,i),e=l}return e}function Fr(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o)e=Dr(t,e,n[o],i,r);return e}var Gr=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),jr=function(r){function i(t,e,n){var i=r.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==e&&n?(i.setFlatCoordinates(e,t),i.ends_=n):i.setCoordinates(t,e),i}return Gr(i,r),i.prototype.appendLinearRing=function(t){this.flatCoordinates?g(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},i.prototype.clone=function(){return new i(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},i.prototype.closestPointXY=function(t,e,n,i){return i<we(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ur(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),cr(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))},i.prototype.containsXY=function(t,e){return Ar(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},i.prototype.getArea=function(){return ar(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},i.prototype.getCoordinates=function(t){var e;return void 0!==t?Dr(e=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,t):e=this.flatCoordinates,mr(e,0,this.ends_,this.stride)},i.prototype.getEnds=function(){return this.ends_},i.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Ge(this.getExtent());this.flatInteriorPoint_=Er(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},i.prototype.getInteriorPoint=function(){return new Cr(this.getFlatInteriorPoint(),Gi)},i.prototype.getLinearRingCount=function(){return this.ends_.length},i.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new Pr(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},i.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[],r=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new Pr(e.slice(r,s),t);i.push(l),r=s}return i},i.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;zr(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Dr(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},i.prototype.getSimplifiedGeometryInternal=function(t){var e=[],n=[];return e.length=wr(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,n),new i(e,Di,n)},i.prototype.getType=function(){return re.POLYGON},i.prototype.intersectsExtent=function(t){return Or(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},i.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=dr(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},i}(rr),Vr=jr;function qr(t,e,n,i){for(var r=n||32,o=[],a=0;a<r;++a)g(o,(s=t,l=e,u=2*Math.PI*a/r,h=i||6371008.8,c=nt(s[1]),p=nt(s[0]),f=l/h,d=Math.asin(Math.sin(c)*Math.cos(f)+Math.cos(c)*Math.sin(f)*Math.cos(u)),[et(p+Math.atan2(Math.sin(u)*Math.sin(f)*Math.cos(c),Math.cos(f)-Math.sin(c)*Math.sin(d))),et(d)]));var s,l,u,h,c,p,f,d;return o.push(o[0],o[1]),new jr(o,Di,[o.length])}function Br(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=[e,n,e,r,i,r,i,n,e,n];return new jr(o,Di,[o.length])}function Ur(t,e,n){for(var i=e||32,r=t.getStride(),o=t.getLayout(),a=t.getCenter(),s=r*(i+1),l=new Array(s),u=0;u<s;u+=r){l[u]=0,l[u+1]=0;for(var h=2;h<r;h++)l[u+h]=a[h]}var c=[l.length],p=new jr(l,o,c);return Wr(p,a,t.getRadius(),n),p}function Wr(t,e,n,i){for(var r=t.getFlatCoordinates(),o=t.getStride(),a=r.length/o-1,s=i||0,l=0;l<=a;++l){var u=l*o,h=s+2*it(l,a)*Math.PI/a;r[u]=e[0]+n*Math.cos(h),r[1+u]=e[1]+n*Math.sin(h)}t.changed()}var Zr=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Xr(t,e){setTimeout(function(){t(e)},0)}var Hr=function(i){function t(t){var e=i.call(this)||this,n=v({},t);return e.hints_=[0,0],e.animations_=[],e.updateAnimationKey_,e.projection_=bn(n.projection,"EPSG:3857"),e.targetCenter_=null,e.targetResolution_,e.targetRotation_,n.center&&(n.center=zn(n.center,e.projection_)),n.extent&&(n.extent=Fn(n.extent,e.projection_)),e.applyOptions_(n),e}return Zr(t,i),t.prototype.applyOptions_=function(t){var e=function(t){var e,n,i,r=void 0!==t.minZoom?t.minZoom:0,o=void 0!==t.maxZoom?t.maxZoom:28,a=void 0!==t.zoomFactor?t.zoomFactor:2,s=void 0!==t.multiWorld&&t.multiWorld,l=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,u=bn(t.projection,"EPSG:3857"),h=u.getExtent(),c=t.constrainOnlyCenter,p=t.extent;if(s||p||!u.isGlobal()||(c=!1,p=h),void 0!==t.resolutions){var f=t.resolutions;n=f[r],i=void 0!==f[o]?f[o]:f[f.length-1],e=t.constrainResolution?function(u,h,c){return function(t,e,n,i){if(void 0!==t){var r=u[0],o=u[u.length-1],a=c?pi(r,c,n):r;if(i)return void 0===h||h?fi(t,a,o):J(t,o,a);var s=Math.min(a,t),l=Math.floor(m(u,s,e));return u[l]>a&&l<u.length-1?u[l+1]:u[l]}}}(f,l,!c&&p):di(n,i,l,!c&&p)}else{var d=(h?Math.max(We(h),Ve(h)):360*Je[Qe.DEGREES]/u.getMetersPerUnit())/256/Math.pow(2,0),y=d/Math.pow(2,28);void 0!==(n=t.maxResolution)?r=0:n=d/Math.pow(a,r),void 0===(i=t.minResolution)&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(a,o):d/Math.pow(a,o):y),o=r+Math.floor(Math.log(n/i)/Math.log(a)),i=n/Math.pow(a,o-r),e=t.constrainResolution?function(c,p,f,d,y){return function(t,e,n,i){if(void 0!==t){var r=y?pi(p,y,n):p,o=void 0!==f?f:0;if(i)return void 0===d||d?fi(t,r,o):J(t,o,r);var a=Math.ceil(Math.log(p/r)/Math.log(c)-1e-9),s=-e*(.5-1e-9)+.5,l=Math.min(r,t),u=Math.floor(Math.log(p/l)/Math.log(c)+s),h=Math.max(a,u);return J(p/Math.pow(c,h),o,r)}}}(a,n,i,l,!c&&p):di(n,i,l,!c&&p)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:r,zoomFactor:a}}(t);this.maxResolution_=e.maxResolution,this.minResolution_=e.minResolution,this.zoomFactor_=e.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=e.minZoom;var n=function(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return hi(t.extent,t.constrainOnlyCenter,e)}var n=bn(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&n.isGlobal()){var i=n.getExtent().slice();return i[0]=-1/0,i[2]=1/0,hi(i,!1,!1)}return ci}(t),i=e.constraint,r=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?(r=nt(5),function(t,e){return e?t:void 0!==t?Math.abs(t)<=r?0:t:void 0}):!1===e?mi:"number"==typeof e?(n=e,i=2*Math.PI/n,function(t,e){return e?t:void 0!==t?t=Math.floor(t/i+.5)*i:void 0}):mi}return yi;var n,i,r}(t);this.constraints_={center:n,resolution:i,rotation:r},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom),this.resolveConstraints(0),this.setProperties({}),this.options_=t},t.prototype.getUpdatedOptions_=function(t){var e=v({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),v({},e,t)},t.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n<e.length;++n){var i=arguments[n];i.center&&((i=v({},i)).center=zn(i.center,this.getProjection())),i.anchor&&((i=v({},i)).anchor=zn(i.anchor,this.getProjection())),e[n]=i}this.animateInternal.apply(this,e)},t.prototype.animateInternal=function(t){var e,n,i=arguments.length;if(1<i&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i),!this.isDef()){var r=arguments[i-1];return r.center&&this.setCenterInternal(r.center),void 0!==r.zoom&&this.setZoom(r.zoom),void 0!==r.rotation&&this.setRotation(r.rotation),void(e&&Xr(e,!0))}for(var o=Date.now(),a=this.targetCenter_.slice(),s=this.targetResolution_,l=this.targetRotation_,u=[],h=0;h<i;++h){var c=arguments[h],p={start:o,complete:!1,anchor:c.anchor,duration:void 0!==c.duration?c.duration:1e3,easing:c.easing||ki,callback:e};if(c.center&&(p.sourceCenter=a,p.targetCenter=c.center.slice(),a=p.targetCenter),void 0!==c.zoom?(p.sourceResolution=s,p.targetResolution=this.getResolutionForZoom(c.zoom),s=p.targetResolution):c.resolution&&(p.sourceResolution=s,p.targetResolution=c.resolution,s=p.targetResolution),void 0!==c.rotation){p.sourceRotation=l;var f=it(c.rotation-l+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=l+f,l=p.targetRotation}(n=p).sourceCenter&&n.targetCenter&&!Mi(n.sourceCenter,n.targetCenter)||n.sourceResolution!==n.targetResolution||n.sourceRotation!==n.targetRotation?o+=p.duration:p.complete=!0,u.push(p)}this.animations_.push(u),this.setHint(0,1),this.updateAnimations_()},t.prototype.getAnimating=function(){return 0<this.hints_[0]},t.prototype.getInteracting=function(){return 0<this.hints_[1]},t.prototype.cancelAnimations=function(){this.setHint(0,-this.hints_[0]);for(var t=0,e=this.animations_.length;t<e;++t){var n=this.animations_[t];n[0].callback&&Xr(n[0].callback,!1)}this.animations_.length=0},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,n=this.animations_.length-1;0<=n;--n){for(var i=this.animations_[n],r=!0,o=0,a=i.length;o<a;++o){var s=i[o];if(!s.complete){var l=t-s.start,u=0<s.duration?l/s.duration:1;1<=u?(s.complete=!0,u=1):r=!1;var h=s.easing(u);if(s.sourceCenter){var c=s.sourceCenter[0],p=s.sourceCenter[1],f=c+h*(s.targetCenter[0]-c),d=p+h*(s.targetCenter[1]-p);this.targetCenter_=[f,d]}if(s.sourceResolution&&s.targetResolution){var y=1===h?s.targetResolution:s.sourceResolution+h*(s.targetResolution-s.sourceResolution);if(s.anchor){var m=this.getSizeFromViewport_(this.getRotation()),g=this.constraints_.resolution(y,0,m,!0);this.targetCenter_=this.calculateCenterZoom(g,s.anchor)}this.targetResolution_=y,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){var v=1===h?it(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+h*(s.targetRotation-s.sourceRotation);if(s.anchor){var x=this.constraints_.rotation(v,!0);this.targetCenter_=this.calculateCenterRotate(x,s.anchor)}this.targetRotation_=v}if(this.applyTargetState_(!0),e=!0,!s.complete)break}}if(r){this.animations_[n]=null,this.setHint(0,-1);var _=i[0].callback;_&&Xr(_,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},t.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenterInternal();return void 0!==i&&(Ti(n=[i[0]-e[0],i[1]-e[1]],t-this.getRotation()),bi(n,e)),n},t.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),r=this.getResolution();return void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]),n},t.prototype.getSizeFromViewport_=function(t){var e=[100,100],n='.ol-viewport[data-view="'+dt(this)+'"]',i=document.querySelector(n);if(i){var r=getComputedStyle(i);e[0]=parseInt(r.width,10),e[1]=parseInt(r.height,10)}if(t){var o=e[0],a=e[1];e[0]=Math.abs(o*Math.cos(t))+Math.abs(a*Math.sin(t)),e[1]=Math.abs(o*Math.sin(t))+Math.abs(a*Math.cos(t))}return e},t.prototype.getCenter=function(){var t=this.getCenterInternal();return t?kn(t,this.getProjection()):t},t.prototype.getCenterInternal=function(){return this.get(gi)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},t.prototype.calculateExtent=function(t){return Dn(this.calculateExtentInternal(t),this.getProjection())},t.prototype.calculateExtentInternal=function(t){var e=t||this.getSizeFromViewport_(),n=this.getCenterInternal();K(n,1);var i=this.getResolution();K(void 0!==i,2);var r=this.getRotation();return K(void 0!==r,3),je(n,i,r,e)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},t.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(vi)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Fn(t,this.getProjection()),e)},t.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getSizeFromViewport_(),i=We(t)/n[0],r=Ve(t)/n[1];return Math.max(i,r)},t.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return n/Math.pow(e,t*r)}},t.prototype.getRotation=function(){return this.get(xi)},t.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/r}},t.prototype.getState=function(){var t=this.getCenterInternal(),e=this.getProjection(),n=this.getResolution(),i=this.getRotation();return{center:t.slice(0),projection:void 0!==e?e:null,resolution:n,rotation:i,zoom:this.getZoom()}},t.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},t.prototype.getZoomForResolution=function(t){var e,n,i=this.minZoom_||0;if(this.resolutions_){var r=m(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},t.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=J(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,J(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},t.prototype.fit=function(t,e){var n,i=v({size:this.getSizeFromViewport_()},e||{});if(K(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t))K(!Xe(t),25),n=Br(r=Fn(t,this.getProjection()));else if(t.getType()===re.CIRCLE){var r;(n=Br(r=Fn(t.getExtent(),this.getProjection()))).rotate(this.getRotation(),Ge(r))}else{var o=Nn();n=o?n.clone().transform(o,this.getProjection()):t}this.fitInternal(n,i)},t.prototype.fitInternal=function(t,e){var n=e||{},i=n.size;i=i||this.getSizeFromViewport_();var r,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;r=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;for(var s=t.getFlatCoordinates(),l=this.getRotation(),u=Math.cos(-l),h=Math.sin(-l),c=1/0,p=1/0,f=-1/0,d=-1/0,y=t.getStride(),m=0,g=s.length;m<g;m+=y){var v=s[m]*u-s[m+1]*h,x=s[m]*h+s[m+1]*u;c=Math.min(c,v),p=Math.min(p,x),f=Math.max(f,v),d=Math.max(d,x)}var _=this.getResolutionForExtentInternal([c,p,f,d],[i[0]-o[1]-o[3],i[1]-o[0]-o[2]]);_=isNaN(_)?r:Math.max(_,r),_=this.getConstrainedResolution(_,a?0:1),h=-h;var w=(c+f)/2,b=(p+d)/2,P=[(w+=(o[1]-o[3])/2*_)*u-(b+=(o[0]-o[2])/2*_)*h,b*u+w*h],S=n.callback?n.callback:C;void 0!==n.duration?this.animateInternal({resolution:_,center:this.getConstrainedCenter(P,_),duration:n.duration,easing:n.easing},S):(this.targetResolution_=_,this.targetCenter_=P,this.applyTargetState_(!1,!0),Xr(S,!0))},t.prototype.centerOn=function(t,e,n){this.centerOnInternal(zn(t,this.getProjection()),e,n)},t.prototype.centerOnInternal=function(t,e,n){var i=this.getRotation(),r=Math.cos(-i),o=Math.sin(-i),a=t[0]*r-t[1]*o,s=t[1]*r+t[0]*o,l=this.getResolution(),u=(a+=(e[0]/2-n[0])*l)*r-(s+=(n[1]-e[1]/2)*l)*(o=-o),h=s*r+a*o;this.setCenterInternal([u,h])},t.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},t.prototype.adjustCenter=function(t){var e=kn(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},t.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},t.prototype.adjustResolution=function(t,e){var n=e&&zn(e,this.getProjection());this.adjustResolutionInternal(t,n)},t.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.getSizeFromViewport_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);void 0!==e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()},t.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},t.prototype.adjustRotation=function(t,e){e=e&&zn(e,this.getProjection()),this.adjustRotationInternal(t,e)},t.prototype.adjustRotationInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);void 0!==e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()},t.prototype.setCenter=function(t){this.setCenterInternal(zn(t,this.getProjection()))},t.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},t.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},t.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},t.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},t.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},t.prototype.applyTargetState_=function(t,e){var n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getSizeFromViewport_(i),o=this.constraints_.resolution(this.targetResolution_,0,r,n),a=this.constraints_.center(this.targetCenter_,o,r,n);this.get(xi)!==i&&this.set(xi,i),this.get(vi)!==o&&this.set(vi,o),this.get(gi)&&Mi(this.get(gi),a)||this.set(gi,a),this.getAnimating()&&!t&&this.cancelAnimations()},t.prototype.resolveConstraints=function(t,e,n){var i=void 0!==t?t:200,r=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getSizeFromViewport_(o),s=this.constraints_.resolution(this.targetResolution_,r,a),l=this.constraints_.center(this.targetCenter_,s,a);if(0===i)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Mi(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:i,easing:Ni,anchor:n}))},t.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(1,1)},t.prototype.endInteraction=function(t,e,n){var i=n&&zn(n,this.getProjection());this.endInteractionInternal(t,e,i)},t.prototype.endInteractionInternal=function(t,e,n){this.setHint(1,-1),this.resolveConstraints(t,e,n)},t.prototype.getConstrainedCenter=function(t,e){var n=this.getSizeFromViewport_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)},t.prototype.getConstrainedZoom=function(t,e){var n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))},t.prototype.getConstrainedResolution=function(t,e){var n=e||0,i=this.getSizeFromViewport_(this.getRotation());return this.constraints_.resolution(t,n,i)},t}(Z),Yr=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kr="layers",Jr=function(o){function t(t){var e=this,n=t||{},i=v({},n);delete i.layers;var r=n.layers;return(e=o.call(this,i)||this).layersListenerKeys_=[],e.listenerKeys_={},e.addEventListener(W(Kr),e.handleLayersChanged_),r?Array.isArray(r)?r=new Y(r.slice(),{unique:!0}):K("function"==typeof r.getArray,43):r=new Y(void 0,{unique:!0}),e.setLayers(r),e}return Yr(t,o),t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(_),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(x(t,u,this.handleLayersAdd_,this),x(t,h,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(_);y(this.listenerKeys_);for(var n=t.getArray(),i=0,r=n.length;i<r;i++){var o=n[i];this.listenerKeys_[dt(o)]=[x(o,c,this.handleLayerChange_,this),x(o,R,this.handleLayerChange_,this)]}this.changed()},t.prototype.handleLayersAdd_=function(t){var e=t.element;this.listenerKeys_[dt(e)]=[x(e,c,this.handleLayerChange_,this),x(e,R,this.handleLayerChange_,this)],this.changed()},t.prototype.handleLayersRemove_=function(t){var e=dt(t.element);this.listenerKeys_[e].forEach(_),delete this.listenerKeys_[e],this.changed()},t.prototype.getLayers=function(){return this.get(Kr)},t.prototype.setLayers=function(t){this.set(Kr,t)},t.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach(function(t){t.getLayersArray(e)}),e},t.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],n=e.length;this.getLayers().forEach(function(t){t.getLayerStatesArray(e)});for(var i=this.getLayerState(),r=n,o=e.length;r<o;r++){var a=e[r];a.opacity*=i.opacity,a.visible=a.visible&&i.visible,a.maxResolution=Math.min(a.maxResolution,i.maxResolution),a.minResolution=Math.max(a.minResolution,i.minResolution),a.minZoom=Math.max(a.minZoom,i.minZoom),a.maxZoom=Math.min(a.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==a.extent?a.extent=qe(a.extent,i.extent):a.extent=i.extent)}return e},t.prototype.getSourceState=function(){return Vt},t}(zt);function Qr(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]+2*e,n[1]=t[1]+2*e,n}function $r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function to(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}var eo=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function no(t,e){t.style.msTouchAction=e,t.style.touchAction=e,t.setAttribute("touch-action",e)}var io=function(a){function t(t){var e=a.call(this)||this,n=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,i,r,o={},a=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new Jr({layers:t.layers});return o[ii]=a,o[oi]=t.target,o[ai]=void 0!==t.view?t.view:new Hr,void 0!==t.controls&&(n=Array.isArray(t.controls)?new Y(t.controls.slice()):(K("function"==typeof t.controls.getArray,47),t.controls)),void 0!==t.interactions&&(i=Array.isArray(t.interactions)?new Y(t.interactions.slice()):(K("function"==typeof t.interactions.getArray,48),t.interactions)),r=void 0!==t.overlays?Array.isArray(t.overlays)?new Y(t.overlays.slice()):(K("function"==typeof t.overlays.getArray,49),t.overlays):new Y,{controls:n,interactions:i,keyboardEventTarget:e,overlays:r,values:o}}(t);e.boundHandleBrowserEvent_=e.handleBrowserEvent.bind(e),e.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,e.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:Kn,e.postRenderTimeoutHandle_,e.animationDelayKey_,e.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(e),e.coordinateToPixelTransform_=[1,0,0,1,0,0],e.pixelToCoordinateTransform_=[1,0,0,1,0,0],e.frameIndex_=0,e.frameState_=null,e.previousExtent_=null,e.viewPropertyListenerKey_=null,e.viewChangeListenerKey_=null,e.layerGroupPropertyListenerKeys_=null,e.viewport_=document.createElement("div"),e.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),e.viewport_.style.position="relative",e.viewport_.style.overflow="hidden",e.viewport_.style.width="100%",e.viewport_.style.height="100%",e.overlayContainer_=document.createElement("div"),e.overlayContainer_.style.position="absolute",e.overlayContainer_.style.zIndex="0",e.overlayContainer_.style.width="100%",e.overlayContainer_.style.height="100%",e.overlayContainer_.className="ol-overlaycontainer",e.viewport_.appendChild(e.overlayContainer_),e.overlayContainerStopEvent_=document.createElement("div"),e.overlayContainerStopEvent_.style.position="absolute",e.overlayContainerStopEvent_.style.zIndex="0",e.overlayContainerStopEvent_.style.width="100%",e.overlayContainerStopEvent_.style.height="100%",e.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",e.viewport_.appendChild(e.overlayContainerStopEvent_),e.mapBrowserEventHandler_=new ni(e,t.moveTolerance);var i=e.handleMapBrowserEvent.bind(e);for(var r in Qn)e.mapBrowserEventHandler_.addEventListener(Qn[r],i);e.keyboardEventTarget_=n.keyboardEventTarget,e.keyHandlerKeys_=null,e.focusHandlerKeys_=null;var o=e.handleBrowserEvent.bind(e);return e.viewport_.addEventListener(O,o,!1),e.viewport_.addEventListener(F,o,!1),e.controls=n.controls||new Y,e.interactions=n.interactions||new Y,e.overlays_=n.overlays,e.overlayIdIndex_={},e.renderer_=null,e.handleResize_,e.postRenderFunctions_=[],e.tileQueue_=new ui(e.getTilePriority.bind(e),e.handleTileChange_.bind(e)),e.addEventListener(W(ii),e.handleLayerGroupChanged_),e.addEventListener(W(ai),e.handleViewChanged_),e.addEventListener(W(ri),e.handleSizeChanged_),e.addEventListener(W(oi),e.handleTargetChanged_),e.setProperties(n.values),e.controls.forEach(function(t){t.setMap(this)}.bind(e)),e.controls.addEventListener(u,function(t){t.element.setMap(this)}.bind(e)),e.controls.addEventListener(h,function(t){t.element.setMap(null)}.bind(e)),e.interactions.forEach(function(t){t.setMap(this)}.bind(e)),e.interactions.addEventListener(u,function(t){t.element.setMap(this)}.bind(e)),e.interactions.addEventListener(h,function(t){t.element.setMap(null)}.bind(e)),e.overlays_.forEach(e.addOverlayInternal_.bind(e)),e.overlays_.addEventListener(u,function(t){this.addOverlayInternal_(t.element)}.bind(e)),e.overlays_.addEventListener(h,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(e)),e}return eo(t,a),t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(t){this.getControls().push(t)},t.prototype.addInteraction=function(t){this.getInteractions().push(t)},t.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},t.prototype.addOverlay=function(t){this.getOverlays().push(t)},t.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},t.prototype.disposeInternal=function(){this.mapBrowserEventHandler_.dispose(),this.viewport_.removeEventListener(O,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(F,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(D,this.handleResize_,!1),this.handleResize_=void 0),this.setTarget(null),a.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_){var i=this.getCoordinateFromPixelInternal(t),r=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance*this.frameState_.pixelRatio:0,o=void 0!==n.layerFilter?n.layerFilter:b,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,a,e,null,o,null)}},t.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,function(t){n.push(t)},e),n},t.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_){var i=n||{},r=void 0!==i.hitTolerance?i.hitTolerance*this.frameState_.pixelRatio:0,o=i.layerFilter||b;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,r,e,o)}},t.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var n=this.getCoordinateFromPixelInternal(t),i=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:b,r=void 0!==e.hitTolerance?e.hitTolerance*this.frameState_.pixelRatio:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,o,i,null)},t.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},t.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},t.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),n="changedTouches"in t?t.changedTouches[0]:t;return[n.clientX-e.left,n.clientY-e.top]},t.prototype.getTarget=function(){return this.get(oi)},t.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},t.prototype.getCoordinateFromPixel=function(t){return kn(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},t.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Hi(e.pixelToCoordinateTransform,t.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get(ii)},t.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},t.prototype.getLoading=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer.getSource();if(i&&i.loading)return!0}return!1},t.prototype.getPixelFromCoordinate=function(t){var e=zn(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},t.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Hi(e.coordinateToPixelTransform,t.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get(ri)},t.prototype.getView=function(){return this.get(ai)},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getTilePriority=function(t,e,n,i){var r=this.frameState_;if(!(r&&e in r.wantedTiles))return 1/0;if(!r.wantedTiles[e][t.getKey()])return 1/0;var o=r.viewState.center,a=n[0]-o[0],s=n[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i},t.prototype.handleBrowserEvent=function(t,e){var n=e||t.type,i=new Wn(n,this,t);this.handleMapBrowserEvent(i)},t.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){for(var e=t.originalEvent.target;e instanceof HTMLElement;){if(e.parentElement===this.overlayContainerStopEvent_)return;e=e.parentElement}t.frameState=this.frameState_;var n=this.getInteractions().getArray();if(!1!==this.dispatchEvent(t))for(var i=n.length-1;0<=i;i--){var r=n[i];if(r.getActive()&&!r.handleEvent(t))break}}},t.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;if(r[0]||r[1]){var o=!Jn&&8<Date.now()-t.time;n=o?0:8,i=o?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}!t||!this.hasListener(Ft)||t.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(Ft,t);for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,t);a.length=0},t.prototype.handleSizeChanged_=function(){this.getView()&&this.getView().resolveConstraints(0),this.render()},t.prototype.handleTargetChanged_=function(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.focusHandlerKeys_){for(var e=0,n=this.focusHandlerKeys_.length;e<n;++e)_(this.focusHandlerKeys_[e]);this.focusHandlerKeys_=null}if(this.keyHandlerKeys_){for(e=0,n=this.keyHandlerKeys_.length;e<n;++e)_(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null}if(t){t.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer());var i=!0;t.hasAttribute("tabindex")&&(i=document.activeElement===t,this.focusHandlerKeys_=[x(t,"focus",no.bind(this,this.viewport_,"none")),x(t,"blur",no.bind(this,this.viewport_,"auto"))]),no(this.viewport_,i?"none":"auto");var r=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[x(r,k,this.handleBrowserEvent,this),x(r,z,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(D,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0),wt(this.viewport_),void 0!==this.handleResize_&&(removeEventListener(D,this.handleResize_,!1),this.handleResize_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(_(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(_(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.viewport_.setAttribute("data-view",dt(t)),this.viewPropertyListenerKey_=x(t,c,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=x(t,R,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(_),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[x(t,c,this.render,this),x(t,R,this.render,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}},t.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(t){return this.getControls().remove(t)},t.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},t.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},t.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},t.prototype.renderFrame_=function(t){var e=this.getSize(),n=this.getView(),i=this.frameState_,r=null;if(void 0!==e&&function(t){return 0<t[0]&&0<t[1]}(e)&&n&&n.isDef()){var o=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),a=n.getState();r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterItems:i?i.declutterItems:[],extent:je(a.center,a.resolution,a.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:a,viewHints:o,wantedTiles:{}}}this.frameState_=r,this.renderer_.renderFrame(r),r&&(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),i&&(this.previousExtent_&&(Xe(this.previousExtent_)||Le(r.extent,this.previousExtent_))||(this.dispatchEvent(new Bn("movestart",this,i)),this.previousExtent_=Ae(this.previousExtent_))),!this.previousExtent_||r.viewHints[0]||r.viewHints[1]||Le(r.extent,this.previousExtent_)||(this.dispatchEvent(new Bn("moveend",this,r)),_e(r.extent,this.previousExtent_))),this.dispatchEvent(new Bn(vt,this,r)),this.postRenderTimeoutHandle_=setTimeout(this.handlePostRender.bind(this),0)},t.prototype.setLayerGroup=function(t){this.set(ii,t)},t.prototype.setSize=function(t){this.set(ri,t)},t.prototype.setTarget=function(t){this.set(oi,t)},t.prototype.setView=function(t){this.set(ai,t)},t.prototype.updateSize=function(){var t=this.getTargetElement();if(t){var e=getComputedStyle(t);this.setSize([t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)])}else this.setSize(void 0)},t}(Z),ro=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),oo=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r.inversePixelTransform=e,r.frameState=n,r.context=i,r}return ro(t,o),t}(E),ao=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!=(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var i=so(t,e,n);return i in this.cache_?this.cache_[i]:null},t.prototype.set=function(t,e,n,i){var r=so(t,e,n);this.cache_[r]=i,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function so(t,e,n){return e+":"+t+":"+(n?st(n):"null")}var lo,uo=new ao,ho=function(){function t(){}return t.prototype.drawCustom=function(t,e,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}(),co=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),po=function(n){function t(t){var e=n.call(this)||this;return e.highWaterMark=void 0!==t?t:2048,e.count_=0,e.entries_={},e.oldest_=null,e.newest_=null,e}return co(t,n),t.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent("clear")},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var n=this.entries_[t];return K(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},t.prototype.remove=function(t){var e=this.entries_[t];return K(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){K(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}(L),fo=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),yo=function(r){function t(t){var e=r.call(this,t)||this;return e.consumers={},e}return fo(t,r),t.prototype.clear=function(){this.consumers={},r.prototype.clear.call(this)},t.prototype.get=function(t,e){var n=r.prototype.get.call(this,t),i=dt(e);return i in this.consumers||(this.consumers[i]={}),this.consumers[i][t]=!0,n},t.prototype.prune=function(){t:for(;this.canExpireCache();){var t=this.peekLastKey();for(var e in this.consumers)if(t in this.consumers[e])break t;var n=this.pop();for(var e in n.width=0,n.height=0,this.consumers)delete this.consumers[e][t]}},t.prototype.release=function(t){delete this.consumers[dt(t)]},t}(po),mo=[],go=[0,0,0,0],vo=new yo,xo={},_o=null,wo={},bo=function(){var s,l,u=xo,h=["monospace","serif"],c=h.length,p="wmytzilWMYTZIL@#/&?$%10";function f(t,e,n){for(var i=Po(),r=!0,o=0;o<c;++o){var a=h[o];if(i.font=t+" "+e+" 32px "+a,l=i.measureText(p).width,n!=a){i.font=t+" "+e+" 32px "+n+","+a;var s=i.measureText(p).width;r=r&&s!=l}}return!!r}function d(){var t=!0;for(var e in u)u[e]<100&&(f.apply(this,e.split("\n"))?(u[e]=100,y(wo),_o=null,lo=void 0,vo.getCount()&&vo.clear()):(++u[e],t=!1));t&&(clearInterval(s),s=void 0)}return function(t){var e=Ct(t);if(e)for(var n=e.families,i=0,r=n.length;i<r;++i){var o=n[i],a=e.style+"\n"+e.weight+"\n"+o;a in u||(u[a]=100,f(e.style,e.weight,o)||void(u[a]=0)===s&&(s=setInterval(d,32)))}}}();function Po(){return _o=_o||xt(1,1)}var So,Co,Mo=(Co=wo,function(t){var e=Co[t];return null==e&&(So||((So=document.createElement("div")).innerHTML="M",So.style.margin="0 !important",So.style.padding="0 !important",So.style.position="absolute !important",So.style.left="-99999px !important"),So.style.font=t,document.body.appendChild(So),e=So.offsetHeight,Co[t]=e,document.body.removeChild(So)),e});function To(t,e){var n=Po();return t!=lo&&(n.font=t,lo=n.font),n.measureText(e).width}function Ao(t,e,n){if(e in n)return n[e];var i=To(t,e);return n[e]=i}function Eo(t,e,n,i){0!==e&&(t.translate(n,i),t.rotate(e),t.translate(-n,-i))}var Io=[1,0,0,1,0,0];function Lo(t,e,n,i,r,o,a,s,l,u,h){var c;if(1!=n&&(c=t.globalAlpha,t.globalAlpha=c*n),e&&t.setTransform.apply(t,e),t.canvas.needToDraw&&512<l+a*h){var p=l+a*h-512,f={image:i,originX:r+(a-p),originY:o,w:p,h:s,x:0,y:u,width:p,height:s*h};t.canvas.needToDraw.push(f);var d=t.canvas.xMvt,y=t.canvas.yMvt,m=t.canvas.zMvt,g=t.canvas.mvtProvider._tileQueue,v=g.findTile(d+1,y,m,g);v&&(v.getContext("2d").drawImage(f.image,f.originX,f.originY,f.w,f.h,f.x,f.y,f.width,f.height),t.canvas._forceUpdate&&t.canvas.mvtProvider._reload())}t.drawImage(i,r,o,a,s,l,u,a*h,s*h),1!=n&&(t.globalAlpha=c),e&&t.setTransform.apply(t,Io)}var Ro=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Oo=function(l){function t(t,e,n,i,r,o,a){var s=l.call(this)||this;return s.context_=t,s.pixelRatio_=e,s.extent_=n,s.transform_=i,s.viewRotation_=r,s.squaredTolerance_=o,s.userTransform_=a,s.contextFillState_=null,s.contextStrokeState_=null,s.contextTextState_=null,s.fillState_=null,s.strokeState_=null,s.image_=null,s.imageAnchorX_=0,s.imageAnchorY_=0,s.imageHeight_=0,s.imageOpacity_=0,s.imageOriginX_=0,s.imageOriginY_=0,s.imageRotateWithView_=!1,s.imageRotation_=0,s.imageScale_=0,s.imageWidth_=0,s.text_="",s.textOffsetX_=0,s.textOffsetY_=0,s.textRotateWithView_=!1,s.textRotation_=0,s.textScale_=0,s.textFillState_=null,s.textStrokeState_=null,s.textState_=null,s.pixelCoordinates_=[],s.tmpLocalTransform_=[1,0,0,1,0,0],s}return Ro(t,l),t.prototype.drawImages_=function(t,e,n,i){if(this.image_){var r=Vi(t,e,n,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var u=0,h=r.length;u<h;u+=2){var c=r[u]-this.imageAnchorX_,p=r[u+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_){var f=c+this.imageAnchorX_,d=p+this.imageAnchorY_;Ki(a,f,d,this.imageScale_,this.imageScale_,l,-f,-d),o.setTransform.apply(o,a)}o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,c,p,this.imageWidth_,this.imageHeight_)}0===l&&1==this.imageScale_||o.setTransform(1,0,0,1,0,0),1!=this.imageOpacity_&&(o.globalAlpha=s)}},t.prototype.drawText_=function(t,e,n,i){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=Vi(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);e<n;e+=i){var s=r[e]+this.textOffsetX_,l=r[e+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_){var u=Ki(this.tmpLocalTransform_,s,l,this.textScale_,this.textScale_,a,-s,-l);o.setTransform.apply(o,u)}this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}0===a&&1==this.textScale_||o.setTransform(1,0,0,1,0,0)}},t.prototype.moveToLineTo_=function(t,e,n,i,r){var o=this.context_,a=Vi(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;r&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return r&&o.closePath(),n},t.prototype.drawRings_=function(t,e,n,i){for(var r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e},t.prototype.drawCircle=function(t){if(Ze(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=function(t,e,n){var i=t.getFlatCoordinates();if(i){var r=t.getStride();return Vi(i,0,i.length,r,e,n)}return null}(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],i=e[3]-e[1],r=Math.sqrt(n*n+i*i),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},t.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},t.prototype.setTransform=function(t){this.transform_=t},t.prototype.drawGeometry=function(t){switch(t.getType()){case re.POINT:this.drawPoint(t);break;case re.LINE_STRING:this.drawLineString(t);break;case re.POLYGON:this.drawPolygon(t);break;case re.MULTI_POINT:this.drawMultiPoint(t);break;case re.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case re.MULTI_POLYGON:this.drawMultiPolygon(t);break;case re.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case re.CIRCLE:this.drawCircle(t)}},t.prototype.drawFeature=function(t,e){var n=e.getGeometryFunction()(t);n&&Ze(this.extent_,n.getExtent())&&(this.setStyle(e),this.drawGeometry(n))},t.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])},t.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},t.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},t.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Ze(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var i=t.getFlatMidpoint();this.drawText_(i,0,2,2)}}},t.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Ze(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,i=t.getFlatCoordinates(),r=0,o=t.getEnds(),a=t.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)r=this.moveToLineTo_(i,r,o[s],a,!1);n.stroke()}if(""!==this.text_){var u=t.getFlatMidpoints();this.drawText_(u,0,u.length,2)}}},t.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Ze(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var n=t.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},t.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Ze(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getOrientedFlatCoordinates(),i=0,r=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=r.length;a<s;++a){var l=r[a];i=this.drawRings_(n,i,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var u=t.getFlatInteriorPoints();this.drawText_(u,0,u.length,2)}}},t.prototype.setContextFillState_=function(t){var e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},t.prototype.setContextStrokeState_=function(t){var e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(kt(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},t.prototype.setContextTextState_=function(t){var e=this.context_,n=this.contextTextState_,i=t.textAlign?t.textAlign:"center";n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})},t.prototype.setFillStrokeStyle=function(t,e){if(t){var n=t.getColor();this.fillState_={fillStyle:gt(n||"#000")}}else this.fillState_=null;if(e){var i=e.getColor(),r=e.getLineCap(),o=e.getLineDash(),a=e.getLineDashOffset(),s=e.getLineJoin(),l=e.getWidth(),u=e.getMiterLimit();this.strokeState_={lineCap:void 0!==r?r:"round",lineDash:o||mo,lineDashOffset:a||0,lineJoin:void 0!==s?s:"round",lineWidth:this.pixelRatio_*(void 0!==l?l:1),miterLimit:void 0!==u?u:10,strokeStyle:gt(i||"#000")}}else this.strokeState_=null},t.prototype.setImageStyle=function(t){if(t){var e=t.getAnchor(),n=t.getImage(1),i=t.getOrigin(),r=t.getSize();this.imageAnchorX_=e[0],this.imageAnchorY_=e[1],this.imageHeight_=r[1],this.image_=n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScale()*this.pixelRatio_,this.imageWidth_=r[0]}else this.image_=null},t.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var n=e.getColor();this.textFillState_={fillStyle:gt(n||"#000")}}else this.textFillState_=null;var i=t.getStroke();if(i){var r=i.getColor(),o=i.getLineCap(),a=i.getLineDash(),s=i.getLineDashOffset(),l=i.getLineJoin(),u=i.getWidth(),h=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:"round",lineDash:a||mo,lineDashOffset:s||0,lineJoin:void 0!==l?l:"round",lineWidth:void 0!==u?u:1,miterLimit:void 0!==h?h:10,strokeStyle:gt(r||"#000")}}else this.textStrokeState_=null;var c=t.getFont(),p=t.getOffsetX(),f=t.getOffsetY(),d=t.getRotateWithView(),y=t.getRotation(),m=t.getScale(),g=t.getText(),v=t.getTextAlign(),x=t.getTextBaseline();this.textState_={font:void 0!==c?c:"10px sans-serif",textAlign:void 0!==v?v:"center",textBaseline:void 0!==x?x:"middle"},this.text_=void 0!==g?g:"",this.textOffsetX_=void 0!==p?this.pixelRatio_*p:0,this.textOffsetY_=void 0!==f?this.pixelRatio_*f:0,this.textRotateWithView_=void 0!==d&&d,this.textRotation_=void 0!==y?y:0,this.textScale_=this.pixelRatio_*(void 0!==m?m:1)}else this.text_=""},t}(ho),No=0,ko=2,zo=3,Do="Circle",Fo="Default",Go="Image",jo="LineString",Vo="Polygon",qo="Text",Bo={Point:function(t,e,n,i){var r=n.getImage();if(r){if(r.getImageState()!=ko)return;var o=t.getBuilder(n.getZIndex(),Go);o.setImageStyle(r,t.addDeclutter(!1)),o.drawPoint(e,i)}var a=n.getText();if(a){var s=t.getBuilder(n.getZIndex(),qo);s.setTextStyle(a,t.addDeclutter(!!r)),s.drawText(e,i)}},LineString:function(t,e,n,i){var r=n.getStroke();if(r){var o=t.getBuilder(n.getZIndex(),jo);o.setFillStrokeStyle(null,r),o.drawLineString(e,i)}var a=n.getText();if(a){var s=t.getBuilder(n.getZIndex(),qo);s.setTextStyle(a,t.addDeclutter(!1)),s.drawText(e,i)}},Polygon:function(t,e,n,i){var r=n.getFill(),o=n.getStroke();if(r||o){var a=t.getBuilder(n.getZIndex(),Vo);a.setFillStrokeStyle(r,o),a.drawPolygon(e,i)}var s=n.getText();if(s){var l=t.getBuilder(n.getZIndex(),qo);l.setTextStyle(s,t.addDeclutter(!1)),l.drawText(e,i)}},MultiPoint:function(t,e,n,i){var r=n.getImage();if(r){if(r.getImageState()!=ko)return;var o=t.getBuilder(n.getZIndex(),Go);o.setImageStyle(r,t.addDeclutter(!1)),o.drawMultiPoint(e,i)}var a=n.getText();if(a){var s=t.getBuilder(n.getZIndex(),qo);s.setTextStyle(a,t.addDeclutter(!!r)),s.drawText(e,i)}},MultiLineString:function(t,e,n,i){var r=n.getStroke();if(r){var o=t.getBuilder(n.getZIndex(),jo);o.setFillStrokeStyle(null,r),o.drawMultiLineString(e,i)}var a=n.getText();if(a){var s=t.getBuilder(n.getZIndex(),qo);s.setTextStyle(a,t.addDeclutter(!1)),s.drawText(e,i)}},MultiPolygon:function(t,e,n,i){var r=n.getFill(),o=n.getStroke();if(o||r){var a=t.getBuilder(n.getZIndex(),Vo);a.setFillStrokeStyle(r,o),a.drawMultiPolygon(e,i)}var s=n.getText();if(s){var l=t.getBuilder(n.getZIndex(),qo);l.setTextStyle(s,t.addDeclutter(!1)),l.drawText(e,i)}},GeometryCollection:function(t,e,n,i){var r,o,a=e.getGeometriesArray();for(r=0,o=a.length;r<o;++r)(0,Bo[a[r].getType()])(t,a[r],n,i)},Circle:function(t,e,n,i){var r=n.getFill(),o=n.getStroke();if(r||o){var a=t.getBuilder(n.getZIndex(),Do);a.setFillStrokeStyle(r,o),a.drawCircle(e,i)}var s=n.getText();if(s){var l=t.getBuilder(n.getZIndex(),qo);l.setTextStyle(s,t.addDeclutter(!1)),l.drawText(e,i)}}};function Uo(t,e){return parseInt(dt(t),10)-parseInt(dt(e),10)}function Wo(t,e){var n=Zo(t,e);return n*n}function Zo(t,e){return.5*t/e}function Xo(t,e,n,i,r,o){var a=!1,s=n.getImage();if(s){var l=s.getImageState();l==ko||l==zo?s.unlistenImageChange(r):(l==No&&s.load(),l=s.getImageState(),s.listenImageChange(r),a=!0)}return function(t,e,n,i,r){var o=n.getGeometryFunction()(e);if(o){var a=o.simplifyTransformed(i,r);n.getRenderer()?function t(e,n,i,r){if(n.getType()!=re.GEOMETRY_COLLECTION)e.getBuilder(i.getZIndex(),Fo).drawCustom(n,r,i.getRenderer());else for(var o=n.getGeometries(),a=0,s=o.length;a<s;++a)t(e,o[a],i,r)}(t,a,n,e):(0,Bo[a.getType()])(t,a,n,e)}}(t,e,n,i,o),a}function Ho(t,e){e&&e.clear();for(var n=t.declutterItems,i=n.length-1;0<=i;--i)for(var r=n[i],o=r.items,a=0,s=o.length;a<s;a+=3)e=o[a].renderDeclutter(o[a+1],o[a+2],r.opacity,e);return n.length=0,e}var Yo=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Ko(t,e){uo.expire()}var Jo=function(n){function t(t){var e=n.call(this)||this;return e.map_=t,e.declutterTree_=null,e}return Yo(t,n),t.prototype.dispatchRenderEvent=function(t,e){s()},t.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;Ki(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Ji(i,n)},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o,a,s){var l,u=e.viewState;function h(t,e,n){return r.call(o,e,t?n:null)}var c=u.projection,p=t,f=[[0,0]];if(c.canWrapX()){var d=c.getExtent(),y=We(d),m=t[0];(m<d[0]||m>d[2])&&(p=[m+y*Math.ceil((d[0]-m)/y),t[1]]),i&&f.push([-y,0],[y,0])}var g,v=e.layerStatesArray,x=v.length;this.declutterTree_&&(g=this.declutterTree_.all().map(function(t){return t.value}));for(var _=[],w=0;w<f.length;w++)for(var b=x-1;0<=b;--b){var P=v[b],S=P.layer;if(S.hasRenderer()&&Ut(P,u)&&a.call(s,S)){var C=S.getRenderer(),M=S.getSource();if(C&&M){var T=M.getWrapX()?p:t,A=h.bind(null,P.managed);_[0]=T[0]+f[w][0],_[1]=T[1]+f[w][1],l=C.forEachFeatureAtCoordinate(_,e,n,A,g)}if(l)return l}}},t.prototype.forEachLayerAtPixel=function(t,e,n,i,r){return s()},t.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,b,this,r,o)},t.prototype.getMap=function(){return this.map_},t.prototype.renderFrame=function(t){this.declutterTree_=Ho(t,this.declutterTree_)},t.prototype.scheduleExpireIconCache=function(t){uo.canExpireCache()&&t.postRenderFunctions.push(Ko)},t}(w),Qo=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),$o=function(l){function t(t){var e=l.call(this,t)||this;e.labelCacheKey_=x(vo,"clear",t.redrawText.bind(t)),e.element_=document.createElement("div");var n=e.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",e.element_.className="ol-unselectable ol-layers";var i=t.getViewport();return i.insertBefore(e.element_,i.firstChild||null),e.children_=[],e.renderedVisible_=!0,e}return Qo(t,l),t.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var i=new oo(t,void 0,e);n.dispatchEvent(i)}},t.prototype.disposeInternal=function(){_(this.labelCacheKey_),l.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(Dt,t);var e=t.layerStatesArray.sort(function(t,e){return t.zIndex-e.zIndex}),n=t.viewState;this.children_.length=0;for(var i=null,r=0,o=e.length;r<o;++r){var a=e[r];if(t.layerIndex=r,Ut(a,n)&&(a.sourceState==Vt||a.sourceState==Gt)){var s=a.layer.render(t,i);s&&s!==i&&(this.children_.push(s),i=s)}}l.prototype.renderFrame.call(this,t),function(t,e){for(var n=t.childNodes,i=0;;++i){var r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}(this.element_,this.children_),this.dispatchRenderEvent("postcompose",t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(t,e,n,i,r){for(var o=e.viewState,a=e.layerStatesArray,s=a.length-1;0<=s;--s){var l=a[s],u=l.layer;if(u.hasRenderer()&&Ut(l,o)&&r(u)){var h=u.getRenderer().getDataAtPixel(t,e,n);if(h){var c=i(u,h);if(c)return c}}}},t}(Jo),ta="bottom-center",ea="bottom-right",na="center-center",ia="center-right",ra=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),oa="element",aa="offset",sa="position",la="positioning",ua=function(n){function t(t){var e=n.call(this)||this;return e.options=t,e.id=t.id,e.insertFirst=void 0===t.insertFirst||t.insertFirst,e.stopEvent=void 0===t.stopEvent||t.stopEvent,e.element=document.createElement("div"),e.element.className=void 0!==t.className?t.className:"ol-overlay-container ol-selectable",e.element.style.position="absolute",e.autoPan=void 0!==t.autoPan&&t.autoPan,e.autoPanAnimation=t.autoPanAnimation||{},e.autoPanMargin=void 0!==t.autoPanMargin?t.autoPanMargin:20,e.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},e.mapPostrenderListenerKey=null,e.addEventListener(W(oa),e.handleElementChanged),e.addEventListener(W("map"),e.handleMapChanged),e.addEventListener(W(aa),e.handleOffsetChanged),e.addEventListener(W(sa),e.handlePositionChanged),e.addEventListener(W(la),e.handlePositioningChanged),void 0!==t.element&&e.setElement(t.element),e.setOffset(void 0!==t.offset?t.offset:[0,0]),e.setPositioning(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&e.setPosition(t.position),e}return ra(t,n),t.prototype.getElement=function(){return this.get(oa)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get("map")},t.prototype.getOffset=function(){return this.get(aa)},t.prototype.getPosition=function(){return this.get(sa)},t.prototype.getPositioning=function(){return this.get(la)},t.prototype.handleElementChanged=function(){bt(this.element);var t=this.getElement();t&&this.element.appendChild(t)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(wt(this.element),_(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=x(t,vt,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element)}},t.prototype.render=function(){this.updatePixelPosition()},t.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},t.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(sa)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(t){this.set(oa,t)},t.prototype.setMap=function(t){this.set("map",t)},t.prototype.setOffset=function(t){this.set(aa,t)},t.prototype.setPosition=function(t){this.set(sa,t)},t.prototype.panIntoView=function(){var t=this.getMap();if(t&&t.getTargetElement()){var e=this.getRect(t.getTargetElement(),t.getSize()),n=this.getElement(),i=this.getRect(n,[function(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10)}(n),function(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10)}(n)]),r=this.autoPanMargin;if(!Pe(e,i)){var o=i[0]-e[0],a=e[2]-i[2],s=i[1]-e[1],l=e[3]-i[3],u=[0,0];if(o<0?u[0]=o-r:a<0&&(u[0]=Math.abs(a)+r),s<0?u[1]=s-r:l<0&&(u[1]=Math.abs(l)+r),0!==u[0]||0!==u[1]){var h=t.getView().getCenterInternal(),c=t.getPixelFromCoordinateInternal(h),p=[c[0]+u[0],c[1]+u[1]];t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(p),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]},t.prototype.setPositioning=function(t){this.set(la,t)},t.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},t.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);var o=i[0],a=i[1];if(r==ea||r==ia||"top-right"==r){""!==this.rendered.left_&&(this.rendered.left_="",n.left="");var s=Math.round(e[0]-t[0]-o)+"px";this.rendered.right_!=s&&(this.rendered.right_=s,n.right=s)}else{""!==this.rendered.right_&&(this.rendered.right_="",n.right=""),r!=ta&&r!=na&&"top-center"!=r||(o-=this.element.offsetWidth/2);var l=Math.round(t[0]+o)+"px";this.rendered.left_!=l&&(this.rendered.left_=l,n.left=l)}if("bottom-left"==r||r==ta||r==ea){""!==this.rendered.top_&&(this.rendered.top_="",n.top="");var u=Math.round(e[1]-t[1]-a)+"px";this.rendered.bottom_!=u&&(this.rendered.bottom_=u,n.bottom=u)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_="",n.bottom=""),"center-left"!=r&&r!=na&&r!=ia||(a-=this.element.offsetHeight/2);var h=Math.round(t[1]+a)+"px";this.rendered.top_!=h&&(this.rendered.top_="top",n.top=h)}},t.prototype.getOptions=function(){return this.options},t}(Z),ha=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ha(e,t),e.prototype.createRenderer=function(){return new $o(this)},e}(io);function pa(t){this.validateExtent_(),this.updateBox_()}var fa=function(v){function t(t){var e=this,n=t||{};(e=v.call(this,{element:document.createElement("div"),render:n.render||pa,target:n.target})||this).boundHandleRotationChanged_=e.handleRotationChanged_.bind(e),e.collapsed_=void 0===n.collapsed||n.collapsed,e.collapsible_=void 0===n.collapsible||n.collapsible,e.collapsible_||(e.collapsed_=!1),e.rotateWithView_=void 0!==n.rotateWithView&&n.rotateWithView;var i=(e.viewExtent_=void 0)!==n.className?n.className:"ol-overviewmap",r=void 0!==n.tipLabel?n.tipLabel:"Overview map",o=void 0!==n.collapseLabel?n.collapseLabel:"«";"string"==typeof o?(e.collapseLabel_=document.createElement("span"),e.collapseLabel_.textContent=o):e.collapseLabel_=o;var a=void 0!==n.label?n.label:"»";"string"==typeof a?(e.label_=document.createElement("span"),e.label_.textContent=a):e.label_=a;var s=e.collapsible_&&!e.collapsed_?e.collapseLabel_:e.label_,l=document.createElement("button");l.setAttribute("type","button"),l.title=r,l.appendChild(s),l.addEventListener(N,e.handleClick_.bind(e),!1),e.ovmapDiv_=document.createElement("div"),e.ovmapDiv_.className="ol-overviewmap-map",e.ovmap_=new ca({view:n.view});var u=e.ovmap_;n.layers&&n.layers.forEach(function(t){u.addLayer(t)});var h=document.createElement("div");h.className="ol-overviewmap-box",h.style.boxSizing="border-box",e.boxOverlay_=new ua({position:[0,0],positioning:na,element:h}),e.ovmap_.addOverlay(e.boxOverlay_);var c=i+" ol-unselectable ol-control"+(e.collapsed_&&e.collapsible_?" ol-collapsed":"")+(e.collapsible_?"":" ol-uncollapsible"),p=e.element;p.className=c,p.appendChild(e.ovmapDiv_),p.appendChild(l);var f=e,d=e.boxOverlay_,y=e.boxOverlay_.getElement(),m=function(t){var e,n={clientX:(e=t).clientX,clientY:e.clientY},i=u.getEventCoordinateInternal(n);d.setPosition(i)},g=function(t){var e=u.getEventCoordinateInternal(t);f.getMap().getView().setCenterInternal(e),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",g)};return y.addEventListener("mousedown",function(){window.addEventListener("mousemove",m),window.addEventListener("mouseup",g)}),e}return ha(t,v),t.prototype.setMap=function(t){var e=this.getMap();if(t!==e){if(e){var n=e.getView();n&&this.unbindView_(n),this.ovmap_.setTarget(null)}if(v.prototype.setMap.call(this,t),t){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(x(t,c,this.handleMapPropertyChange_,this));var i=t.getView();i&&(this.bindView_(i),i.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_()))}}},t.prototype.handleMapPropertyChange_=function(t){if(t.key===ai){var e=t.oldValue;e&&this.unbindView_(e);var n=this.getMap().getView();this.bindView_(n)}},t.prototype.bindView_=function(t){t.addEventListener(W(xi),this.boundHandleRotationChanged_)},t.prototype.unbindView_=function(t){t.removeEventListener(W(xi),this.boundHandleRotationChanged_)},t.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},t.prototype.validateExtent_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),i=t.getView().calculateExtentInternal(n);if(!this.viewExtent_||!Le(i,this.viewExtent_)){this.viewExtent_=i;var r=e.getSize(),o=e.getView().calculateExtentInternal(r),a=e.getPixelFromCoordinateInternal(Be(i)),s=e.getPixelFromCoordinateInternal(Fe(i)),l=Math.abs(a[0]-s[0]),u=Math.abs(a[1]-s[1]),h=r[0],c=r[1];l<.1*h||u<.1*c||.75*h<l||.75*c<u?this.resetExtent_():Pe(o,i)||this.recenter_()}}},t.prototype.resetExtent_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView().calculateExtentInternal(n),r=e.getView(),o=Math.log(7.5)/Math.LN2;He(i,1/(.1*Math.pow(2,o/2))),r.fitInternal(Br(i))},t.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getView();e.getView().setCenterInternal(n.getCenterInternal())},t.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),i=t.getView(),r=e.getView(),o=this.rotateWithView_?0:-i.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=i.getCenterInternal(),u=i.getResolution(),h=r.getResolution(),c=n[0]*u/h,p=n[1]*u/h;if(a.setPosition(l),s){s.style.width=c+"px",s.style.height=p+"px";var f="rotate("+o+"rad)";s.style.transform=f}}},t.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},t.prototype.handleToggle_=function(){this.element.classList.toggle("ol-collapsed"),this.collapsed_?_t(this.collapseLabel_,this.label_):_t(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered())return this.viewExtent_=void 0,void t.render();t.updateSize(),this.resetExtent_(),d(t,vt,function(t){this.updateBox_()},this)}},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},t.prototype.getOverviewMap=function(){return this.ovmap_},t}(St),da=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function ya(t){var e=t.frameState;if(e){var n=e.viewState.rotation;if(n!=this.rotation_){var i="rotate("+n+"rad)";if(this.autoHide_){var r=this.element.classList.contains("ol-hidden");r||0!==n?r&&0!==n&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.label_.style.transform=i}this.rotation_=n}}var ma=function(u){function t(t){var e=this,n=t||{};e=u.call(this,{element:document.createElement("div"),render:n.render||ya,target:n.target})||this;var i=void 0!==n.className?n.className:"ol-rotate",r=void 0!==n.label?n.label:"⇧";e.label_=null,"string"==typeof r?(e.label_=document.createElement("span"),e.label_.className="ol-compass",e.label_.textContent=r):(e.label_=r,e.label_.classList.add("ol-compass"));var o=n.tipLabel?n.tipLabel:"Reset rotation",a=document.createElement("button");a.className=i+"-reset",a.setAttribute("type","button"),a.title=o,a.appendChild(e.label_),a.addEventListener(N,e.handleClick_.bind(e),!1);var s=i+" ol-unselectable ol-control",l=e.element;return l.className=s,l.appendChild(a),e.callResetNorth_=n.resetNorth?n.resetNorth:void 0,e.duration_=void 0!==n.duration?n.duration:250,e.autoHide_=void 0===n.autoHide||n.autoHide,e.rotation_=void 0,e.autoHide_&&e.element.classList.add("ol-hidden"),e}return da(t,u),t.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var t=this.getMap().getView();t&&void 0!==t.getRotation()&&(0<this.duration_?t.animate({rotation:0,duration:this.duration_,easing:Ni}):t.setRotation(0))},t}(St),ga=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),va="degrees",xa=[1,2,5];function _a(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}var wa=function(r){function t(t){var e=this,n=t||{},i=void 0!==n.className?n.className:n.bar?"ol-scale-bar":"ol-scale-line";return(e=r.call(this,{element:document.createElement("div"),render:n.render||_a,target:n.target})||this).innerElement_=document.createElement("div"),e.innerElement_.className=i+"-inner",e.element.className=i+" ol-unselectable",e.element.appendChild(e.innerElement_),e.viewState_=null,e.minWidth_=void 0!==n.minWidth?n.minWidth:64,e.renderedVisible_=!1,e.renderedWidth_=void 0,e.renderedHTML_="",e.addEventListener(W("units"),e.handleUnitsChanged_),e.setUnits(n.units||"metric"),e.scaleBar_=n.bar||!1,e.scaleBarSteps_=n.steps||4,e.scaleBarText_=n.text||!1,e}return ga(t,r),t.prototype.getUnits=function(){return this.get("units")},t.prototype.handleUnitsChanged_=function(){this.updateElement_()},t.prototype.setUnits=function(t){this.set("units",t)},t.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,n=t.projection,i=this.getUnits(),r=i==va?Qe.DEGREES:Qe.METERS,o=_n(n,t.resolution,e,r),a=this.minWidth_*o,s="";if(i==va){var l=Je[Qe.DEGREES];(a*=l)<l/60?(s="″",o*=3600):a<l?(s="",o*=60):s="°"}else"imperial"==i?a<.9144?(s="in",o/=.0254):a<1609.344?(s="ft",o/=.3048):(s="mi",o/=1609.344):"nautical"==i?(o/=1852,s="nm"):"metric"==i?a<.001?(s="μm",o*=1e6):a<1?(s="mm",o*=1e3):a<1e3?s="m":(s="km",o/=1e3):"us"==i?a<.9144?(s="in",o*=39.37):a<1609.344?(s="ft",o/=.30480061):(s="mi",o/=1609.3472):K(!1,33);for(var u,h,c,p,f=3*Math.floor(Math.log(this.minWidth_*o)/Math.log(10));;){c=Math.floor(f/3);var d=Math.pow(10,c);if(u=xa[(f%3+3)%3]*d,h=Math.round(u/o),isNaN(h))return this.element.style.display="none",void(this.renderedVisible_=!1);if(h>=this.minWidth_)break;++f}p=this.scaleBar_?this.createScaleBar(h,u,s):u.toFixed(c<0?-c:0)+" "+s,this.renderedHTML_!=p&&(this.innerElement_.innerHTML=p,this.renderedHTML_=p),this.renderedWidth_!=h&&(this.innerElement_.style.width=h+"px",this.renderedWidth_=h),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.createScaleBar=function(t,e,n){for(var i="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),r=[],o=t/this.scaleBarSteps_,a="#ffffff",s=0;s<this.scaleBarSteps_;s++)0===s&&r.push(this.createMarker("absolute",s)),r.push('<div><div class="ol-scale-singlebar" style="width: '+o+"px;background-color: "+a+';"></div>'+this.createMarker("relative",s)+(s%2==0||2===this.scaleBarSteps_?this.createStepText(s,t,!1,e,n):"")+"</div>"),s===this.scaleBarSteps_-1&&r.push(this.createStepText(s+1,t,!0,e,n)),a="#ffffff"===a?"#000000":"#ffffff";return'<div style="display: flex;">'+(this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+i+"</div>":"")+r.join("")+"</div>"},t.prototype.createMarker=function(t,e){return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+("absolute"===t?3:-10)+'px;"></div>'},t.prototype.createStepText=function(t,e,n,i,r){var o=(0===t?0:Math.round(i/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+r);return'<div class="ol-scale-step-text" style="margin-left: '+(0===t?-3:e/this.scaleBarSteps_*-1)+"px;text-align: "+(0===t?"left":"center")+"; min-width: "+(0===t?0:e/this.scaleBarSteps_*2)+"px;left: "+(n?e+"px":"unset")+';">'+o+"</div>"},t.prototype.getScaleForResolution=function(){var t=this.getMap().getView().getResolution(),e=this.viewState_.projection.getMetersPerUnit();return parseFloat(t.toString())*e*39.37*(25.4/.28)},t}(St),ba=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pa=function(f){function t(t){var e=this,n=t||{};e=f.call(this,{element:document.createElement("div"),target:n.target})||this;var i=void 0!==n.className?n.className:"ol-zoom",r=void 0!==n.delta?n.delta:1,o=void 0!==n.zoomInLabel?n.zoomInLabel:"+",a=void 0!==n.zoomOutLabel?n.zoomOutLabel:"",s=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",l=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=i+"-in",u.setAttribute("type","button"),u.title=s,u.appendChild("string"==typeof o?document.createTextNode(o):o),u.addEventListener(N,e.handleClick_.bind(e,r),!1);var h=document.createElement("button");h.className=i+"-out",h.setAttribute("type","button"),h.title=l,h.appendChild("string"==typeof a?document.createTextNode(a):a),h.addEventListener(N,e.handleClick_.bind(e,-r),!1);var c=i+" ol-unselectable ol-control",p=e.element;return p.className=c,p.appendChild(u),p.appendChild(h),e.duration_=void 0!==n.duration?n.duration:250,e}return ba(t,f),t.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},t.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var n=e.getZoom();if(void 0!==n){var i=e.getConstrainedZoom(n+t);0<this.duration_?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:Ni})):e.setZoom(i)}}},t}(St),Sa=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Ca(t){if(t.frameState){this.sliderInitialized_||this.initSlider_();var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}}var Ma=function(a){function t(t){var e=this,n=t||{};(e=a.call(this,{element:document.createElement("div"),render:n.render||Ca})||this).dragListenerKeys_=[],e.currentResolution_=void 0,e.direction_=0,e.dragging_,e.heightLimit_=0,e.widthLimit_=0,e.startX_,e.startY_,e.thumbSize_=null,e.sliderInitialized_=!1,e.duration_=void 0!==n.duration?n.duration:200;var i=void 0!==n.className?n.className:"ol-zoomslider",r=document.createElement("button");r.setAttribute("type","button"),r.className=i+"-thumb ol-unselectable";var o=e.element;return o.setAttribute("touch-action","none"),o.className=i+" ol-unselectable ol-control",o.appendChild(r),o.addEventListener(ne,e.handleDraggerStart_.bind(e),!1),o.addEventListener(ee,e.handleDraggerDrag_.bind(e),!1),o.addEventListener(ie,e.handleDraggerEnd_.bind(e),!1),o.addEventListener(N,e.handleContainerClick_.bind(e),!1),r.addEventListener(N,S,!1),e}return Sa(t,a),t.prototype.setMap=function(t){a.prototype.setMap.call(this,t),t&&t.render()},t.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,n=t.offsetHeight,i=t.firstElementChild,r=getComputedStyle(i),o=i.offsetWidth+parseFloat(r.marginRight)+parseFloat(r.marginLeft),a=i.offsetHeight+parseFloat(r.marginTop)+parseFloat(r.marginBottom);this.thumbSize_=[o,a],n<e?(this.direction_=1,this.widthLimit_=e-o):(this.direction_=0,this.heightLimit_=n-a),this.sliderInitialized_=!0},t.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),n=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),i=this.getResolutionForPosition_(n),r=e.getConstrainedZoom(e.getZoomForResolution(i));e.animateInternal({zoom:r,duration:this.duration_,easing:Ni})},t.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var n=this.handleDraggerDrag_,i=this.handleDraggerEnd_;this.dragListenerKeys_.push(x(document,ee,n,this),x(document,ie,i,this))}}},t.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,n=t.clientY-this.startY_,i=this.getRelativePosition_(e,n);this.currentResolution_=this.getResolutionForPosition_(i),this.getMap().getView().setResolution(this.currentResolution_)}},t.prototype.handleDraggerEnd_=function(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(_),this.dragListenerKeys_.length=0)},t.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),n=this.element.firstElementChild;1==this.direction_?n.style.left=this.widthLimit_*e+"px":n.style.top=this.heightLimit_*e+"px"},t.prototype.getRelativePosition_=function(t,e){return J(1===this.direction_?t/this.widthLimit_:e/this.heightLimit_,0,1)},t.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},t.prototype.getPositionForResolution_=function(t){return J(1-this.getMap().getView().getValueForResolutionFunction()(t),0,1)},t}(St),Ta=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Aa=function(u){function t(t){var e=this,n=t||{};(e=u.call(this,{element:document.createElement("div"),target:n.target})||this).extent=n.extent?n.extent:null;var i=void 0!==n.className?n.className:"ol-zoom-extent",r=void 0!==n.label?n.label:"E",o=void 0!==n.tipLabel?n.tipLabel:"Fit to extent",a=document.createElement("button");a.setAttribute("type","button"),a.title=o,a.appendChild("string"==typeof r?document.createTextNode(r):r),a.addEventListener(N,e.handleClick_.bind(e),!1);var s=i+" ol-unselectable ol-control",l=e.element;return l.className=s,l.appendChild(a),e}return Ta(t,u),t.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},t.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fitInternal(Br(e))},t}(St);function Ea(t){var e=t||{},n=new Y;return void 0!==e.zoom&&!e.zoom||n.push(new Pa(e.zoomOptions)),void 0!==e.rotate&&!e.rotate||n.push(new ma(e.rotateOptions)),void 0!==e.attribution&&!e.attribution||n.push(new Ht(e.attributionOptions)),n}var Ia=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},La=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Ra=function(t){return t.target.getTargetElement()===document.activeElement},Oa=b,Na=function(t){var e=t.originalEvent;return 0==e.button&&!(Hn&&Yn&&e.ctrlKey)},ka=P,za=function(t){return t.type==Qn.SINGLECLICK},Da=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},Fa=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Ga=function(t){var e=t.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},ja=function(t){var e=t.pointerEvent;return K(void 0!==e,56),"mouse"==e.pointerType},Va=function(t){var e=t.pointerEvent;return K(void 0!==e,56),e.isPrimary&&0===e.button},qa=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ba=function(r){function i(t){var e=r.call(this)||this;if(e.id_=void 0,e.geometryName_="geometry",e.style_=null,e.styleFunction_=void 0,e.geometryChangeKey_=null,e.addEventListener(W(e.geometryName_),e.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){var n=t;e.setGeometry(n)}else{var i=t;e.setProperties(i)}return e}return qa(i,r),i.prototype.clone=function(){var t=new i(this.getProperties());t.setGeometryName(this.getGeometryName());var e=this.getGeometry();e&&t.setGeometry(e.clone());var n=this.getStyle();return n&&t.setStyle(n),t},i.prototype.getGeometry=function(){return this.get(this.geometryName_)},i.prototype.getId=function(){return this.id_},i.prototype.getGeometryName=function(){return this.geometryName_},i.prototype.getStyle=function(){return this.style_},i.prototype.getStyleFunction=function(){return this.styleFunction_},i.prototype.handleGeometryChange_=function(){this.changed()},i.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(_(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=x(t,R,this.handleGeometryChange_,this)),this.changed()},i.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},i.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){return"function"==typeof t?t:(e=Array.isArray(t)?t:(K("function"==typeof t.getZIndex,41),[t]),function(){return e});var e}(t):void 0,this.changed()},i.prototype.setId=function(t){this.id_=t,this.changed()},i.prototype.setGeometryName=function(t){this.removeEventListener(W(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=t,this.addEventListener(W(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},i}(Z),Ua="arraybuffer",Wa="json",Za="text",Xa="xml",Ha=!1;function Ya(e,a,s,l){return function(i,t,r){var o=new XMLHttpRequest;o.open("GET","function"==typeof e?e(i,t,r):e,!0),a.getType()==Ua&&(o.responseType="arraybuffer"),o.withCredentials=Ha,o.onload=function(t){if(!o.status||200<=o.status&&o.status<300){var e=a.getType(),n=void 0;e==Wa||e==Za?n=o.responseText:e==Xa?(n=o.responseXML)||(n=(new DOMParser).parseFromString(o.responseText,"application/xml")):e==Ua&&(n=o.response),n?s.call(this,a.readFeatures(n,{extent:i,featureProjection:r}),a.readProjection(n)):l.call(this)}else l.call(this)}.bind(this),o.onerror=function(){l.call(this)}.bind(this),o.send()}}function Ka(t,e){return Ya(t,e,function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)},C)}var Ja=function(){function t(){this.dataProjection=null,this.defaultFeatureProjection=null}return t.prototype.getReadOptions=function(t,e){var n;if(e){var i=e.dataProjection?xn(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===Qe.TILE_PIXELS&&(i=xn(i)).setWorldExtent(e.extent),n={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(n)},t.prototype.adaptOptions=function(t){return v({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return s()},t.prototype.readFeature=function(t,e){return s()},t.prototype.readFeatures=function(t,e){return s()},t.prototype.readGeometry=function(t,e){return s()},t.prototype.readProjection=function(t){return s()},t.prototype.writeFeature=function(t,e){return s()},t.prototype.writeFeatures=function(t,e){return s()},t.prototype.writeGeometry=function(t,e){return s()},t}();function Qa(t,e,n){var i,r=n?xn(n.featureProjection):null,o=n?xn(n.dataProjection):null;if(i=r&&o&&!Cn(r,o)?(e?t.clone():t).transform(e?r:o,e?o:r):t,e&&n&&void 0!==n.decimals){var a=Math.pow(10,n.decimals);i===t&&(i=t.clone()),i.applyTransform(function(t){for(var e=0,n=t.length;e<n;++e)t[e]=Math.round(t[e]*a)/a;return t})}return i}function $a(t,e){var n=e?xn(e.featureProjection):null,i=e?xn(e.dataProjection):null;return n&&i&&!Cn(n,i)?En(t,i,n):t}var ts=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function es(t){if("string"!=typeof t)return null!==t?t:null;var e=JSON.parse(t);return e||null}var ns=function(t){function e(){return t.call(this)||this}return ts(e,t),e.prototype.getType=function(){return Wa},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(es(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(es(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return s()},e.prototype.readFeaturesFromObject=function(t,e){return s()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(es(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return s()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(es(t))},e.prototype.readProjectionFromObject=function(t){return s()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return s()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return s()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return s()},e}(Ja);function is(t,e,n,i,r,o){var a=NaN,s=NaN,l=(n-e)/i;if(1==l)a=t[e],s=t[e+1];else if(2==l)a=(1-r)*t[e]+r*t[e+i],s=(1-r)*t[e+1]+r*t[e+i+1];else if(0!=l){for(var u=t[e],h=t[e+1],c=0,p=[0],f=e+i;f<n;f+=i){var d=t[f],y=t[f+1];c+=Math.sqrt((d-u)*(d-u)+(y-h)*(y-h)),p.push(c),u=d,h=y}var m=r*c,g=function(t,e){for(var n,i,r=ft,o=0,a=t.length,s=!1;o<a;)(i=+r(t[n=o+(a-o>>1)],e))<0?o=n+1:(a=n,s=!i);return s?o:~o}(p,m);if(g<0){var v=(m-p[-g-2])/(p[-g-1]-p[-g-2]),x=e+(-g-2)*i;a=rt(t[x],t[x+i],v),s=rt(t[x+1],t[x+i+1],v)}else a=t[e+g*i],s=t[e+g*i+1]}return o?(o[0]=a,o[1]=s,o):[a,s]}function rs(t,e,n,i,r,o){if(n==e)return null;var a;if(r<t[e+i-1])return o?((a=t.slice(e,e+i))[i-1]=r,a):null;if(t[n-1]<r)return o?((a=t.slice(n-i,n))[i-1]=r,a):null;if(r==t[e+i-1])return t.slice(e,e+i);for(var s=e/i,l=n/i;s<l;){var u=s+l>>1;r<t[(1+u)*i-1]?l=u:s=1+u}var h=t[s*i-1];if(r==h)return t.slice((s-1)*i,(s-1)*i+i);var c=(r-h)/(t[(s+1)*i-1]-h);a=[];for(var p=0;p<i-1;++p)a.push(rt(t[(s-1)*i+p],t[s*i+p],c));return a.push(r),a}function os(t,e,n,i){for(var r=t[e],o=t[e+1],a=0,s=e+i;s<n;s+=i){var l=t[s],u=t[s+1];a+=Math.sqrt((l-r)*(l-r)+(u-o)*(u-o)),r=l,o=u}return a}var as=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ss=function(i){function n(t,e){var n=i.call(this)||this;return n.flatMidpoint_=null,n.flatMidpointRevision_=-1,n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?n.setCoordinates(t,e):n.setFlatCoordinates(e,t),n}return as(n,i),n.prototype.appendCoordinate=function(t){this.flatCoordinates?g(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},n.prototype.clone=function(){return new n(this.flatCoordinates.slice(),this.layout)},n.prototype.closestPointXY=function(t,e,n,i){return i<we(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(lr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,i))},n.prototype.forEachSegment=function(t){return Lr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},n.prototype.getCoordinateAtM=function(t,e){if(this.layout!=Gi&&this.layout!=ji)return null;var n=void 0!==e&&e;return rs(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n)},n.prototype.getCoordinates=function(){return yr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},n.prototype.getCoordinateAt=function(t,e){return is(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e)},n.prototype.getLength=function(){return os(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},n.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},n.prototype.getSimplifiedGeometryInternal=function(t){var e=[];return e.length=vr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new n(e,Di)},n.prototype.getType=function(){return re.LINE_STRING},n.prototype.intersectsExtent=function(t){return Rr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},n.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fr(this.flatCoordinates,0,t,this.stride),this.changed()},n}(rr),ls=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),us=function(c){function i(t,e,n){var i=c.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(t[0]))i.setCoordinates(t,e);else if(void 0!==e&&n)i.setFlatCoordinates(e,t),i.ends_=n;else{for(var r=i.getLayout(),o=t,a=[],s=[],l=0,u=o.length;l<u;++l){var h=o[l];0===l&&(r=h.getLayout()),g(a,h.getFlatCoordinates()),s.push(a.length)}i.setFlatCoordinates(r,a),i.ends_=s}return i}return ls(i,c),i.prototype.appendLineString=function(t){this.flatCoordinates?g(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},i.prototype.clone=function(){return new i(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},i.prototype.closestPointXY=function(t,e,n,i){return i<we(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ur(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),cr(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,n,i))},i.prototype.getCoordinateAtM=function(t,e,n){if(this.layout!=Gi&&this.layout!=ji||0===this.flatCoordinates.length)return null;var i=void 0!==e&&e,r=void 0!==n&&n;return function(t,e,n,i,r,o,a){if(a)return rs(t,e,n[n.length-1],i,r,o);var s;if(r<t[i-1])return o?((s=t.slice(0,i))[i-1]=r,s):null;if(t[t.length-1]<r)return o?((s=t.slice(t.length-i))[i-1]=r,s):null;for(var l=0,u=n.length;l<u;++l){var h=n[l];if(e!=h){if(r<t[e+i-1])return null;if(r<=t[h-1])return rs(t,e,h,i,r,!1);e=h}}return null}(this.flatCoordinates,0,this.ends_,this.stride,t,i,r)},i.prototype.getCoordinates=function(){return mr(this.flatCoordinates,0,this.ends_,this.stride)},i.prototype.getEnds=function(){return this.ends_},i.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new ss(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},i.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,n=this.layout,i=[],r=0,o=0,a=e.length;o<a;++o){var s=e[o],l=new ss(t.slice(r,s),n);i.push(l),r=s}return i},i.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,n=0,i=this.ends_,r=this.stride,o=0,a=i.length;o<a;++o){var s=i[o];g(t,is(e,n,s,r,.5)),n=s}return t},i.prototype.getSimplifiedGeometryInternal=function(t){var e=[],n=[];return e.length=function(t,e,n,i,r,o,a,s){for(var l=0,u=n.length;l<u;++l){var h=n[l];a=vr(t,e,h,i,r,o,a),s.push(a),e=h}return a}(this.flatCoordinates,0,this.ends_,this.stride,t,e,0,n),new i(e,Di,n)},i.prototype.getType=function(){return re.MULTI_LINE_STRING},i.prototype.intersectsExtent=function(t){return function(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){if(Rr(t,e,n[o],i,r))return!0;e=n[o]}return!1}(this.flatCoordinates,0,this.ends_,this.stride,t)},i.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=dr(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},i}(rr),hs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),cs=function(i){function t(t,e){var n=i.call(this)||this;return e&&!Array.isArray(t[0])?n.setFlatCoordinates(e,t):n.setCoordinates(t,e),n}return hs(t,i),t.prototype.appendPoint=function(t){this.flatCoordinates?g(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(t,e,n,i){if(i<we(this.getExtent(),t,e))return i;for(var r=this.flatCoordinates,o=this.stride,a=0,s=r.length;a<s;a+=o){var l=tt(t,e,r[a],r[a+1]);if(l<i){i=l;for(var u=0;u<o;++u)n[u]=r[a+u];n.length=o}}return i},t.prototype.getCoordinates=function(){return yr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new Cr(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,n=this.stride,i=[],r=0,o=t.length;r<o;r+=n){var a=new Cr(t.slice(r,r+n),e);i.push(a)}return i},t.prototype.getType=function(){return re.MULTI_POINT},t.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,n=this.stride,i=0,r=e.length;i<r;i+=n)if(Se(t,e[i],e[i+1]))return!0;return!1},t.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fr(this.flatCoordinates,0,t,this.stride),this.changed()},t}(rr);function ps(t,e,n,i){for(var r=[],o=[1/0,1/0,-1/0,-1/0],a=0,s=n.length;a<s;++a){var l=n[a];o=Ie(t,e,l[0],i),r.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=l[l.length-1]}return r}var fs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ds=function(y){function i(t,e,n){var i=y.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!n&&!Array.isArray(t[0])){for(var r=i.getLayout(),o=t,a=[],s=[],l=0,u=o.length;l<u;++l){var h=o[l];0===l&&(r=h.getLayout());for(var c=a.length,p=h.getEnds(),f=0,d=p.length;f<d;++f)p[f]+=c;g(a,h.getFlatCoordinates()),s.push(p)}e=r,t=a,n=s}return void 0!==e&&n?(i.setFlatCoordinates(e,t),i.endss_=n):i.setCoordinates(t,e),i}return fs(i,y),i.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var n=this.flatCoordinates.length;g(this.flatCoordinates,t.getFlatCoordinates());for(var i=0,r=(e=t.getEnds().slice()).length;i<r;++i)e[i]+=n}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},i.prototype.clone=function(){for(var t=this.endss_.length,e=new Array(t),n=0;n<t;++n)e[n]=this.endss_[n].slice();return new i(this.flatCoordinates.slice(),this.layout,e)},i.prototype.closestPointXY=function(t,e,n,i){return i<we(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o];r=ur(t,e,s,i,r),e=s[s.length-1]}return r}(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(t,e,n,i,r,o,a,s,l,u){for(var h=[NaN,NaN],c=0,p=n.length;c<p;++c){var f=n[c];u=cr(t,e,f,i,r,!0,a,s,l,u,h),e=f[f.length-1]}return u}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,0,t,e,n,i))},i.prototype.containsXY=function(t,e){return function(t,e,n,i,r,o){if(0===n.length)return!1;for(var a=0,s=n.length;a<s;++a){var l=n[a];if(Ar(t,e,l,i,r,o))return!0;e=l[l.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},i.prototype.getArea=function(){return function(t,e,n,i){for(var r=0,o=0,a=n.length;o<a;++o){var s=n[o];r+=ar(t,e,s,i),e=s[s.length-1]}return r}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},i.prototype.getCoordinates=function(t){var e;return void 0!==t?Fr(e=this.getOrientedFlatCoordinates().slice(),0,this.endss_,this.stride,t):e=this.flatCoordinates,gr(e,0,this.endss_,this.stride)},i.prototype.getEndss=function(){return this.endss_},i.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=ps(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Ir(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},i.prototype.getInteriorPoints=function(){return new cs(this.getFlatInteriorPoints().slice(),Gi)},i.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;!function(t,e,n,i){for(var r=0,o=n.length;r<o;++r){var a=n[r];if(!zr(t,e,a,i,void 0))return!1;a.length&&(e=a[a.length-1])}return!0}(t,0,this.endss_,this.stride)?(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Fr(this.orientedFlatCoordinates_,0,this.endss_,this.stride)):this.orientedFlatCoordinates_=t,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},i.prototype.getSimplifiedGeometryInternal=function(t){var e=[],n=[];return e.length=function(t,e,n,i,r,o,a,s){for(var l=0,u=n.length;l<u;++l){var h=n[l],c=[];a=wr(t,e,h,i,r,o,a,c),s.push(c),e=h[h.length-1]}return a}(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),e,0,n),new i(e,Di,n)},i.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var n=this.endss_[t-1];e=n[n.length-1]}var i=this.endss_[t].slice(),r=i[i.length-1];if(0!==e)for(var o=0,a=i.length;o<a;++o)i[o]-=e;return new Vr(this.flatCoordinates.slice(e,r),this.layout,i)},i.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.endss_,i=[],r=0,o=0,a=n.length;o<a;++o){var s=n[o].slice(),l=s[s.length-1];if(0!==r)for(var u=0,h=s.length;u<h;++u)s[u]-=r;var c=new Vr(e.slice(r,l),t,s);i.push(c),r=l}return i},i.prototype.getType=function(){return re.MULTI_POLYGON},i.prototype.intersectsExtent=function(t){return function(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(Or(t,e,s,i,r))return!0;e=s[s.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},i.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=function(t,e,n,i,r){for(var o=r||[],a=0,s=0,l=n.length;s<l;++s){var u=dr(t,e,n[s],i,o[a]);o[a++]=u,e=u[u.length-1]}return o.length=a,o}(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var i=n[n.length-1];this.flatCoordinates.length=0===i.length?0:i[i.length-1]}this.changed()},i}(rr),ys=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ms={};ms[re.POINT]=function(t){return void 0!==t.m&&void 0!==t.z?new Cr([t.x,t.y,t.z,t.m],ji):void 0!==t.z?new Cr([t.x,t.y,t.z],Fi):void 0!==t.m?new Cr([t.x,t.y,t.m],Gi):new Cr([t.x,t.y])},ms[re.LINE_STRING]=function(t){var e=xs(t);return new ss(t.paths[0],e)},ms[re.POLYGON]=function(t){var e=xs(t);return new Vr(t.rings,e)},ms[re.MULTI_POINT]=function(t){var e=xs(t);return new cs(t.points,e)},ms[re.MULTI_LINE_STRING]=function(t){var e=xs(t);return new us(t.paths,e)},ms[re.MULTI_POLYGON]=function(t){var e=xs(t);return new ds(t.rings,e)};var gs={};function vs(t,e){var n,i,r;if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)r=re.POINT;else if(t.points)r=re.MULTI_POINT;else if(t.paths)r=1===t.paths.length?re.LINE_STRING:re.MULTI_LINE_STRING;else if(t.rings){var o=t,a=xs(o),s=function(t,e){var n,i,r=[],o=[],a=[];for(n=0,i=t.length;n<i;++n)r.length=0,fr(r,0,t[n],e.length),kr(r,0,r.length,e.length)?o.push([t[n]]):a.push(t[n]);for(;a.length;){var s=a.shift(),l=!1;for(n=o.length-1;0<=n;n--){var u=o[n][0];if(Pe(new Pr(u).getExtent(),new Pr(s).getExtent())){o[n].push(s),l=!0;break}}l||o.push([s.reverse()])}return o}(o.rings,a);t=1===s.length?(r=re.POLYGON,Object.assign({},t,((n={}).rings=s[0],n))):(r=re.MULTI_POLYGON,Object.assign({},t,((i={}).rings=s,i)))}return Qa((0,ms[r])(t),!1,e)}function xs(t){var e=Di;return!0===t.hasZ&&!0===t.hasM?e=ji:!0===t.hasZ?e=Fi:!0===t.hasM&&(e=Gi),e}function _s(t){var e=t.getLayout();return{hasZ:e===Fi||e===ji,hasM:e===Gi||e===ji}}function ws(t,e){return(0,gs[t.getType()])(Qa(t,!0,e),e)}gs[re.POINT]=function(t,e){var n,i=t.getCoordinates(),r=t.getLayout();return r===Fi?n={x:i[0],y:i[1],z:i[2]}:r===Gi?n={x:i[0],y:i[1],m:i[2]}:r===ji?n={x:i[0],y:i[1],z:i[2],m:i[3]}:r===Di?n={x:i[0],y:i[1]}:K(!1,34),n},gs[re.LINE_STRING]=function(t,e){var n=_s(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:[t.getCoordinates()]}},gs[re.POLYGON]=function(t,e){var n=_s(t);return{hasZ:n.hasZ,hasM:n.hasM,rings:t.getCoordinates(!1)}},gs[re.MULTI_POINT]=function(t,e){var n=_s(t);return{hasZ:n.hasZ,hasM:n.hasM,points:t.getCoordinates()}},gs[re.MULTI_LINE_STRING]=function(t,e){var n=_s(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:t.getCoordinates()}},gs[re.MULTI_POLYGON]=function(t,e){for(var n=_s(t),i=t.getCoordinates(!1),r=[],o=0;o<i.length;o++)for(var a=i[o].length-1;0<=a;a--)r.push(i[o][a]);return{hasZ:n.hasZ,hasM:n.hasM,rings:r}};var bs=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this)||this).geometryName_=n.geometryName,e}return ys(t,i),t.prototype.readFeatureFromObject=function(t,e){var n=t,i=vs(n.geometry,e),r=new Ba;return this.geometryName_&&r.setGeometryName(this.geometryName_),r.setGeometry(i),e&&e.idField&&n.attributes[e.idField]&&r.setId(n.attributes[e.idField]),n.attributes&&r.setProperties(n.attributes,!0),r},t.prototype.readFeaturesFromObject=function(t,e){var n=e||{};if(t.features){var i=[],r=t.features;n.idField=t.objectIdFieldName;for(var o=0,a=r.length;o<a;++o)i.push(this.readFeatureFromObject(r[o],n));return i}return[this.readFeatureFromObject(t,n)]},t.prototype.readGeometryFromObject=function(t,e){return vs(t,e)},t.prototype.readProjectionFromObject=function(t){return t.spatialReference&&void 0!==t.spatialReference.wkid?xn("EPSG:"+t.spatialReference.wkid):null},t.prototype.writeGeometryObject=function(t,e){return ws(t,this.adaptOptions(e))},t.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={},i=t.getGeometry();i&&(n.geometry=ws(i,e),e&&e.featureProjection&&(n.geometry.spatialReference={wkid:Number(xn(e.featureProjection).getCode().split(":").pop())}));var r=t.getProperties();return delete r[t.getGeometryName()],f(r)?n.attributes={}:n.attributes=r,n},t.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],i=0,r=t.length;i<r;++i)n.push(this.writeFeatureObject(t[i],e));return{features:n}},t}(ns),Ps=function(){function t(t){this.tagName_=t}return t.prototype.getTagName=function(){return this.tagName_},t}(),Ss=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cs=function(r){function t(t,e,n){var i=r.call(this,"BBOX")||this;if(i.geometryName=t,4!==(i.extent=e).length)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");return i.srsName=n,i}return Ss(t,r),t}(Ps),Ms=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ts=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r.geometryName=e||"the_geom",r.geometry=n,r.srsName=i,r}return Ms(t,o),t}(Ps),As=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Es=function(i){function t(t,e,n){return i.call(this,"Contains",t,e,n)||this}return As(t,i),t}(Ts),Is=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ls=function(i){function t(t,e){var n=i.call(this,t)||this;return n.propertyName=e,n}return Is(t,i),t}(Ps),Rs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Os=function(r){function t(t,e,n){var i=r.call(this,"During",t)||this;return i.begin=e,i.end=n,i}return Rs(t,r),t}(Ls),Ns=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ks=function(o){function t(t,e,n,i){var r=o.call(this,t,e)||this;return r.expression=n,r.matchCase=i,r}return Ns(t,o),t}(Ls),zs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ds=function(i){function t(t,e,n){return i.call(this,"PropertyIsEqualTo",t,e,n)||this}return zs(t,i),t}(ks),Fs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Gs=function(n){function t(t,e){return n.call(this,"PropertyIsGreaterThan",t,e)||this}return Fs(t,n),t}(ks),js=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vs=function(n){function t(t,e){return n.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)||this}return js(t,n),t}(ks),qs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bs=function(i){function t(t,e,n){return i.call(this,"Intersects",t,e,n)||this}return qs(t,i),t}(Ts),Us=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ws=function(r){function t(t,e,n){var i=r.call(this,"PropertyIsBetween",t)||this;return i.lowerBoundary=e,i.upperBoundary=n,i}return Us(t,r),t}(Ls),Zs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xs=function(s){function t(t,e,n,i,r,o){var a=s.call(this,"PropertyIsLike",t)||this;return a.pattern=e,a.wildCard=void 0!==n?n:"*",a.singleChar=void 0!==i?i:".",a.escapeChar=void 0!==r?r:"!",a.matchCase=o,a}return Zs(t,s),t}(Ls),Hs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ys=function(e){function t(t){return e.call(this,"PropertyIsNull",t)||this}return Hs(t,e),t}(Ls),Ks=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Js=function(n){function t(t,e){return n.call(this,"PropertyIsLessThan",t,e)||this}return Ks(t,n),t}(ks),Qs=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),$s=function(n){function t(t,e){return n.call(this,"PropertyIsLessThanOrEqualTo",t,e)||this}return Qs(t,n),t}(ks),tl=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),el=function(n){function t(t){var e=n.call(this,"Not")||this;return e.condition=t,e}return tl(t,n),t}(Ps),nl=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),il=function(i){function t(t,e,n){return i.call(this,"PropertyIsNotEqualTo",t,e,n)||this}return nl(t,i),t}(ks),rl=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ol=function(i){function t(t,e){var n=i.call(this,t)||this;return n.conditions=e,K(2<=n.conditions.length,57),n}return rl(t,i),t}(Ps),al=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),sl=function(e){function t(t){return e.call(this,"Or",Array.prototype.slice.call(arguments))||this}return al(t,e),t}(ol),ll=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ul=function(i){function t(t,e,n){return i.call(this,"Within",t,e,n)||this}return ll(t,i),t}(Ts),hl=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),cl=function(e){function t(t){return e.call(this,"And",Array.prototype.slice.call(arguments))||this}return hl(t,e),t}(ol);function pl(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(cl,e))}function fl(t,e,n){return new Cs(t,e,n)}var dl=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function yl(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].clone());return e}var ml=function(n){function u(t){var e=n.call(this)||this;return e.geometries_=t||null,e.changeEventsKeys_=[],e.listenGeometriesChange_(),e}return dl(u,n),u.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(_),this.changeEventsKeys_.length=0},u.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push(x(this.geometries_[t],R,this.changed,this))},u.prototype.clone=function(){var t=new u(null);return t.setGeometries(this.geometries_),t},u.prototype.closestPointXY=function(t,e,n,i){if(i<we(this.getExtent(),t,e))return i;for(var r=this.geometries_,o=0,a=r.length;o<a;++o)i=r[o].closestPointXY(t,e,n,i);return i},u.prototype.containsXY=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)if(n[i].containsXY(t,e))return!0;return!1},u.prototype.computeExtent=function(t){Ae(t);for(var e=this.geometries_,n=0,i=e.length;n<i;++n)Re(t,e[n].getExtent());return t},u.prototype.getGeometries=function(){return yl(this.geometries_)},u.prototype.getGeometriesArray=function(){return this.geometries_},u.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var e=[],n=this.geometries_,i=!1,r=0,o=n.length;r<o;++r){var a=n[r],s=a.getSimplifiedGeometry(t);e.push(s),s!==a&&(i=!0)}if(i){var l=new u(null);return l.setGeometriesArray(e),l}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},u.prototype.getType=function(){return re.GEOMETRY_COLLECTION},u.prototype.intersectsExtent=function(t){for(var e=this.geometries_,n=0,i=e.length;n<i;++n)if(e[n].intersectsExtent(t))return!0;return!1},u.prototype.isEmpty=function(){return 0===this.geometries_.length},u.prototype.rotate=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)n[i].rotate(t,e);this.changed()},u.prototype.scale=function(t,e,n){var i=n;i=i||Ge(this.getExtent());for(var r=this.geometries_,o=0,a=r.length;o<a;++o)r[o].scale(t,e,i);this.changed()},u.prototype.setGeometries=function(t){this.setGeometriesArray(yl(t))},u.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},u.prototype.applyTransform=function(t){for(var e=this.geometries_,n=0,i=e.length;n<i;++n)e[n].applyTransform(t);this.changed()},u.prototype.translate=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)n[i].translate(t,e);this.changed()},u.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),n.prototype.disposeInternal.call(this)},u}(er),gl=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function vl(t,e){if(!t)return null;var n;switch(t.type){case re.POINT:n=function(t){return new Cr(t.coordinates)}(t);break;case re.LINE_STRING:n=function(t){return new ss(t.coordinates)}(t);break;case re.POLYGON:n=function(t){return new Vr(t.coordinates)}(t);break;case re.MULTI_POINT:n=function(t){return new cs(t.coordinates)}(t);break;case re.MULTI_LINE_STRING:n=function(t){return new us(t.coordinates)}(t);break;case re.MULTI_POLYGON:n=function(t){return new ds(t.coordinates)}(t);break;case re.GEOMETRY_COLLECTION:n=function(t){var e=t.geometries.map(function(t){return vl(t,void 0)});return new ml(e)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return Qa(n,!1,e)}function xl(t,e){var n,i=(t=Qa(t,!0,e)).getType();switch(i){case re.POINT:n=function(t){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case re.LINE_STRING:n=function(t){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case re.POLYGON:n=function(t,e){var n;return e&&(n=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(n)}}(t,e);break;case re.MULTI_POINT:n=function(t){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case re.MULTI_LINE_STRING:n=function(t){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case re.MULTI_POLYGON:n=function(t,e){var n;return e&&(n=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}(t,e);break;case re.GEOMETRY_COLLECTION:n=function(t,n){return{type:"GeometryCollection",geometries:t.getGeometriesArray().map(function(t){var e=v({},n);return delete e.featureProjection,xl(t,e)})}}(t,e);break;case re.CIRCLE:n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+i)}return n}var _l=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this)||this).dataProjection=xn(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(e.defaultFeatureProjection=xn(n.featureProjection)),e.geometryName_=n.geometryName,e.extractGeometryName_=n.extractGeometryName,e}return gl(t,i),t.prototype.readFeatureFromObject=function(t,e){var n=null,i=vl((n="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),r=new Ba;return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&r.setGeometryName(n.geometry_name),r.setGeometry(i),"id"in n&&r.setId(n.id),n.properties&&r.setProperties(n.properties,!0),r},t.prototype.readFeaturesFromObject=function(t,e){var n=null;if("FeatureCollection"===t.type){n=[];for(var i=t.features,r=0,o=i.length;r<o;++r)n.push(this.readFeatureFromObject(i[r],e))}else n=[this.readFeatureFromObject(t,e)];return n},t.prototype.readGeometryFromObject=function(t,e){return vl(t,e)},t.prototype.readProjectionFromObject=function(t){var e,n=t.crs;return n?"name"==n.type?e=xn(n.properties.name):K(!1,36):e=this.dataProjection,e},t.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={type:"Feature",geometry:null,properties:null},i=t.getId();void 0!==i&&(n.id=i);var r=t.getGeometry();r&&(n.geometry=xl(r,e));var o=t.getProperties();return delete o[t.getGeometryName()],f(o)||(n.properties=o),n},t.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],i=0,r=t.length;i<r;++i)n.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:n}},t.prototype.writeGeometryObject=function(t,e){return xl(t,this.adaptOptions(e))},t}(ns),wl=document.implementation.createDocument("","",null),bl="http://www.w3.org/2001/XMLSchema-instance";function Pl(t,e){return wl.createElementNS(t,e)}function Sl(t,e){return function t(e,n,i){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)n?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else{var r=void 0;for(r=e.firstChild;r;r=r.nextSibling)t(r,n,i)}return i}(t,e,[]).join("")}function Cl(t){return"documentElement"in t}function Ml(t){return(new DOMParser).parseFromString(t,"application/xml")}function Tl(i,r){return function(t,e){var n=i.call(void 0!==r?r:this,t,e);void 0!==n&&g(e[e.length-1],n)}}function Al(i,r){return function(t,e){var n=i.call(void 0!==r?r:this,t,e);void 0!==n&&e[e.length-1].push(n)}}function El(i,r){return function(t,e){var n=i.call(void 0!==r?r:this,t,e);void 0!==n&&(e[e.length-1]=n)}}function Il(a,s,l){return function(t,e){var n=a.call(void 0!==l?l:this,t,e);if(void 0!==n){var i=e[e.length-1],r=void 0!==s?s:t.localName,o=void 0;r in i?o=i[r]:(o=[],i[r]=o),o.push(n)}}}function Ll(i,r,o){return function(t,e){var n=i.call(void 0!==o?o:this,t,e);void 0!==n&&(e[e.length-1][void 0!==r?r:t.localName]=n)}}function Rl(i,r){return function(t,e,n){i.call(void 0!==r?r:this,t,e,n),n[n.length-1].node.appendChild(t)}}function Ol(r,t){var o,a;return function(t,e,n){if(void 0===o){o={};var i={};i[t.localName]=r,o[t.namespaceURI]=i,a=Nl(t.localName)}jl(o,a,e,n)}}function Nl(t,o){var a=t;return function(t,e,n){var i=e[e.length-1].node,r=a;return void 0===r&&(r=n),Pl(void 0!==o?o:i.namespaceURI,r)}}var kl=Nl();function zl(t,e){for(var n=e.length,i=new Array(n),r=0;r<n;++r)i[r]=t[e[r]];return i}function Dl(t,e,n){var i,r,o=void 0!==n?n:{};for(i=0,r=t.length;i<r;++i)o[t[i]]=e;return o}function Fl(t,e,n,i){var r;for(r=e.firstElementChild;r;r=r.nextElementSibling){var o=t[r.namespaceURI];if(void 0!==o){var a=o[r.localName];void 0!==a&&a.call(i,r,n)}}}function Gl(t,e,n,i,r){return i.push(t),Fl(e,n,i,r),i.pop()}function jl(t,e,n,i,r,o){for(var a,s,l=(void 0!==r?r:n).length,u=0;u<l;++u)void 0!==(a=n[u])&&void 0!==(s=e.call(void 0!==o?o:this,a,i,void 0!==r?r[u]:void 0))&&t[s.namespaceURI][s.localName].call(o,s,a,i)}function Vl(t,e,n,i,r,o,a){return r.push(t),jl(e,n,i,r,o,a),r.pop()}var ql=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bl=function(e){function t(){var t=e.call(this)||this;return t.xmlSerializer_=new XMLSerializer,t}return ql(t,e),t.prototype.getType=function(){return Xa},t.prototype.readFeature=function(t,e){if(t){if("string"!=typeof t)return Cl(t)?this.readFeatureFromDocument(t,e):this.readFeatureFromNode(t,e);var n=Ml(t);return this.readFeatureFromDocument(n,e)}return null},t.prototype.readFeatureFromDocument=function(t,e){var n=this.readFeaturesFromDocument(t,e);return 0<n.length?n[0]:null},t.prototype.readFeatureFromNode=function(t,e){return null},t.prototype.readFeatures=function(t,e){if(t){if("string"!=typeof t)return Cl(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e);var n=Ml(t);return this.readFeaturesFromDocument(n,e)}return[]},t.prototype.readFeaturesFromDocument=function(t,e){for(var n=[],i=t.firstChild;i;i=i.nextSibling)i.nodeType==Node.ELEMENT_NODE&&g(n,this.readFeaturesFromNode(i,e));return n},t.prototype.readFeaturesFromNode=function(t,e){return s()},t.prototype.readGeometry=function(t,e){if(t){if("string"!=typeof t)return Cl(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e);var n=Ml(t);return this.readGeometryFromDocument(n,e)}return null},t.prototype.readGeometryFromDocument=function(t,e){return null},t.prototype.readGeometryFromNode=function(t,e){return null},t.prototype.readProjection=function(t){if(t){if("string"!=typeof t)return Cl(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t);var e=Ml(t);return this.readProjectionFromDocument(e)}return null},t.prototype.readProjectionFromDocument=function(t){return this.dataProjection},t.prototype.readProjectionFromNode=function(t){return this.dataProjection},t.prototype.writeFeature=function(t,e){var n=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(n)},t.prototype.writeFeatureNode=function(t,e){return null},t.prototype.writeFeatures=function(t,e){var n=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(n)},t.prototype.writeFeaturesNode=function(t,e){return null},t.prototype.writeGeometry=function(t,e){var n=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(n)},t.prototype.writeGeometryNode=function(t,e){return null},t}(Ja),Ul=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wl="http://www.opengis.net/gml",Zl=/^[\s\xa0]*$/,Xl=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.featureType=n.featureType,e.featureNS=n.featureNS,e.srsName=n.srsName,e.schemaLocation="",e.FEATURE_COLLECTION_PARSERS={},e.FEATURE_COLLECTION_PARSERS[e.namespace]={featureMember:Al(e.readFeaturesInternal),featureMembers:El(e.readFeaturesInternal),member:Al(e.readFeaturesInternal)},e}return Ul(t,i),t.prototype.readFeaturesInternal=function(t,e){var n=t.localName,i=null;if("FeatureCollection"==n)i=Gl([],this.FEATURE_COLLECTION_PARSERS,t,e,this);else if("featureMembers"==n||"featureMember"==n||"member"==n){var r=e[0],o=r.featureType,a=r.featureNS;if(!o&&t.childNodes){o=[],a={};for(var s=0,l=t.childNodes.length;s<l;++s){var u=t.childNodes[s];if(1===u.nodeType){var h=u.nodeName.split(":").pop();if(-1===o.indexOf(h)){var c="",p=0,f=u.namespaceURI;for(var d in a){if(a[d]===f){c=d;break}++p}c||(a[c="p"+p]=f),o.push(c+":"+h)}}}"featureMember"!=n&&"member"!=n&&(r.featureType=o,r.featureNS=a)}if("string"==typeof a){var y=a;(a={}).p0=y}var m={},g=Array.isArray(o)?o:[o];for(var v in a){var x={};for(s=0,l=g.length;s<l;++s)(-1===g[s].indexOf(":")?"p0":g[s].split(":")[0])===v&&(x[g[s].split(":").pop()]="featureMembers"==n?Al(this.readFeatureElement,this):El(this.readFeatureElement,this));m[a[v]]=x}i=Gl("featureMember"==n||"member"==n?void 0:[],m,t,e)}return null===i&&(i=[]),i},t.prototype.readGeometryElement=function(t,e){var n=e[0];n.srsName=t.firstElementChild.getAttribute("srsName"),n.srsDimension=t.firstElementChild.getAttribute("srsDimension");var i=Gl(null,this.GEOMETRY_PARSERS,t,e,this);return i?Array.isArray(i)?$a(i,n):Qa(i,!1,n):void 0},t.prototype.readFeatureElementInternal=function(t,e,n){for(var i,r={},o=t.firstElementChild;o;o=o.nextElementSibling){var a=void 0,s=o.localName;0===o.childNodes.length||1===o.childNodes.length&&(3===o.firstChild.nodeType||4===o.firstChild.nodeType)?(a=Sl(o,!1),Zl.test(a)&&(a=void 0)):(n&&(a=this.readGeometryElement(o,e)),a?"boundedBy"!==s&&(i=s):a=this.readFeatureElementInternal(o,e,!1)),r[s]?(r[s]instanceof Array||(r[s]=[r[s]]),r[s].push(a)):r[s]=a;var l=o.attributes.length;if(0<l){r[s]={_content_:r[s]};for(var u=0;u<l;u++){var h=o.attributes[u].name;r[s][h]=o.attributes[u].value}}}if(n){var c=new Ba(r);i&&c.setGeometryName(i);var p=t.getAttribute("fid")||function(t,e){return t.getAttributeNS(e,"id")||""}(t,this.namespace);return p&&c.setId(p),c}return r},t.prototype.readFeatureElement=function(t,e){return this.readFeatureElementInternal(t,e,!0)},t.prototype.readPoint=function(t,e){var n=this.readFlatCoordinatesFromNode_(t,e);if(n)return new Cr(n,Fi)},t.prototype.readMultiPoint=function(t,e){var n=Gl([],this.MULTIPOINT_PARSERS_,t,e,this);return n?new cs(n):void 0},t.prototype.readMultiLineString=function(t,e){var n=Gl([],this.MULTILINESTRING_PARSERS_,t,e,this);if(n)return new us(n)},t.prototype.readMultiPolygon=function(t,e){var n=Gl([],this.MULTIPOLYGON_PARSERS_,t,e,this);if(n)return new ds(n)},t.prototype.pointMemberParser_=function(t,e){Fl(this.POINTMEMBER_PARSERS_,t,e,this)},t.prototype.lineStringMemberParser_=function(t,e){Fl(this.LINESTRINGMEMBER_PARSERS_,t,e,this)},t.prototype.polygonMemberParser_=function(t,e){Fl(this.POLYGONMEMBER_PARSERS_,t,e,this)},t.prototype.readLineString=function(t,e){var n=this.readFlatCoordinatesFromNode_(t,e);return n?new ss(n,Fi):void 0},t.prototype.readFlatLinearRing_=function(t,e){var n=Gl(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this);return n||void 0},t.prototype.readLinearRing=function(t,e){var n=this.readFlatCoordinatesFromNode_(t,e);if(n)return new Pr(n,Fi)},t.prototype.readPolygon=function(t,e){var n=Gl([null],this.FLAT_LINEAR_RINGS_PARSERS,t,e,this);if(n&&n[0]){var i,r=n[0],o=[r.length],a=void 0;for(a=1,i=n.length;a<i;++a)g(r,n[a]),o.push(r.length);return new Vr(r,Fi,o)}},t.prototype.readFlatCoordinatesFromNode_=function(t,e){return Gl(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this)},t.prototype.readGeometryFromNode=function(t,e){var n=this.readGeometryElement(t,[this.getReadOptions(t,e||{})]);return n||null},t.prototype.readFeaturesFromNode=function(t,e){var n={featureType:this.featureType,featureNS:this.featureNS};return e&&v(n,this.getReadOptions(t,e)),this.readFeaturesInternal(t,[n])||[]},t.prototype.readProjectionFromNode=function(t){return xn(this.srsName?this.srsName:t.firstElementChild.getAttribute("srsName"))},t}(Bl);Xl.prototype.namespace=Wl,Xl.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{}},Xl.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{}},Xl.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{}},Xl.prototype.MULTIPOINT_PARSERS_={"http://www.opengis.net/gml":{pointMember:Al(Xl.prototype.pointMemberParser_),pointMembers:Al(Xl.prototype.pointMemberParser_)}},Xl.prototype.MULTILINESTRING_PARSERS_={"http://www.opengis.net/gml":{lineStringMember:Al(Xl.prototype.lineStringMemberParser_),lineStringMembers:Al(Xl.prototype.lineStringMemberParser_)}},Xl.prototype.MULTIPOLYGON_PARSERS_={"http://www.opengis.net/gml":{polygonMember:Al(Xl.prototype.polygonMemberParser_),polygonMembers:Al(Xl.prototype.polygonMemberParser_)}},Xl.prototype.POINTMEMBER_PARSERS_={"http://www.opengis.net/gml":{Point:Al(Xl.prototype.readFlatCoordinatesFromNode_)}},Xl.prototype.LINESTRINGMEMBER_PARSERS_={"http://www.opengis.net/gml":{LineString:Al(Xl.prototype.readLineString)}},Xl.prototype.POLYGONMEMBER_PARSERS_={"http://www.opengis.net/gml":{Polygon:Al(Xl.prototype.readPolygon)}},Xl.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:El(Xl.prototype.readFlatLinearRing_)}};var Hl=Xl;function Yl(t){return Kl(Sl(t,!1))}function Kl(t){var e=/^\s*(true|1)|(false|0)\s*$/.exec(t);return e?void 0!==e[1]||!1:void 0}function Jl(t){var e=Sl(t,!1),n=Date.parse(e);return isNaN(n)?void 0:n/1e3}function Ql(t){return $l(Sl(t,!1))}function $l(t){var e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t);return e?parseFloat(e[1]):void 0}function tu(t){return eu(Sl(t,!1))}function eu(t){var e=/^\s*(\d+)\s*$/.exec(t);return e?parseInt(e[1],10):void 0}function nu(t){return Sl(t,!1).trim()}function iu(t,e){au(t,e?"1":"0")}function ru(t,e){var n=e.toPrecision();t.appendChild(wl.createTextNode(n))}function ou(t,e){var n=e.toString();t.appendChild(wl.createTextNode(n))}function au(t,e){t.appendChild(wl.createTextNode(e))}var su=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),lu={"gml:MultiLineString":"gml:lineStringMember","gml:MultiCurve":"gml:curveMember","gml:MultiPolygon":"gml:polygonMember","gml:MultiSurface":"gml:surfaceMember"},uu=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,n)||this).surface_=void 0!==n.surface&&n.surface,e.curve_=void 0!==n.curve&&n.curve,e.multiCurve_=void 0===n.multiCurve||n.multiCurve,e.multiSurface_=void 0===n.multiSurface||n.multiSurface,e.schemaLocation=n.schemaLocation?n.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",e.hasZ=void 0!==n.hasZ&&n.hasZ,e}return su(t,i),t.prototype.readMultiCurve_=function(t,e){var n=Gl([],this.MULTICURVE_PARSERS_,t,e,this);return n?new us(n):void 0},t.prototype.readMultiSurface_=function(t,e){var n=Gl([],this.MULTISURFACE_PARSERS_,t,e,this);if(n)return new ds(n)},t.prototype.curveMemberParser_=function(t,e){Fl(this.CURVEMEMBER_PARSERS_,t,e,this)},t.prototype.surfaceMemberParser_=function(t,e){Fl(this.SURFACEMEMBER_PARSERS_,t,e,this)},t.prototype.readPatch_=function(t,e){return Gl([null],this.PATCHES_PARSERS_,t,e,this)},t.prototype.readSegment_=function(t,e){return Gl([null],this.SEGMENTS_PARSERS_,t,e,this)},t.prototype.readPolygonPatch_=function(t,e){return Gl([null],this.FLAT_LINEAR_RINGS_PARSERS,t,e,this)},t.prototype.readLineStringSegment_=function(t,e){return Gl([null],this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this)},t.prototype.interiorParser_=function(t,e){var n=Gl(void 0,this.RING_PARSERS,t,e,this);n&&e[e.length-1].push(n)},t.prototype.exteriorParser_=function(t,e){var n=Gl(void 0,this.RING_PARSERS,t,e,this);n&&(e[e.length-1][0]=n)},t.prototype.readSurface_=function(t,e){var n=Gl([null],this.SURFACE_PARSERS_,t,e,this);if(n&&n[0]){var i,r=n[0],o=[r.length],a=void 0;for(a=1,i=n.length;a<i;++a)g(r,n[a]),o.push(r.length);return new Vr(r,Fi,o)}},t.prototype.readCurve_=function(t,e){var n=Gl([null],this.CURVE_PARSERS_,t,e,this);return n?new ss(n,Fi):void 0},t.prototype.readEnvelope_=function(t,e){var n=Gl([null],this.ENVELOPE_PARSERS_,t,e,this);return Te(n[1][0],n[1][1],n[2][0],n[2][1])},t.prototype.readFlatPos_=function(t,e){for(var n,i=Sl(t,!1),r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,o=[];n=r.exec(i);)o.push(parseFloat(n[1])),i=i.substr(n[0].length);if(""===i){var a=e[0].srsName,s="enu";if(a&&(s=xn(a).getAxisOrientation()),"neu"===s){var l,u=void 0;for(u=0,l=o.length;u<l;u+=3){var h=o[u],c=o[u+1];o[u]=c,o[u+1]=h}}var p=o.length;if(2==p&&o.push(0),0!==p)return o}},t.prototype.readFlatPosList_=function(t,e){var n=Sl(t,!1).replace(/^\s*|\s*$/g,""),i=e[0],r=i.srsName,o=i.srsDimension,a="enu";r&&(a=xn(r).getAxisOrientation());var s,l,u,h=n.split(/\s+/),c=2;t.getAttribute("srsDimension")?c=eu(t.getAttribute("srsDimension")):t.getAttribute("dimension")?c=eu(t.getAttribute("dimension")):t.parentNode.getAttribute("srsDimension")?c=eu(t.parentNode.getAttribute("srsDimension")):o&&(c=eu(o));for(var p=[],f=0,d=h.length;f<d;f+=c)s=parseFloat(h[f]),l=parseFloat(h[f+1]),u=3===c?parseFloat(h[f+2]):0,"en"===a.substr(0,2)?p.push(s,l,u):p.push(l,s,u);return p},t.prototype.writePos_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=r?"3":"2";t.setAttribute("srsDimension",o);var a=i.srsName,s="enu";a&&(s=xn(a).getAxisOrientation());var l,u=e.getCoordinates();l="en"===s.substr(0,2)?u[0]+" "+u[1]:u[1]+" "+u[0],r&&(l+=" "+(u[2]||0)),au(t,l)},t.prototype.getCoords_=function(t,e,n){var i="enu";e&&(i=xn(e).getAxisOrientation());var r="en"===i.substr(0,2)?t[0]+" "+t[1]:t[1]+" "+t[0];return n&&(r+=" "+(t[2]||0)),r},t.prototype.writePosList_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=r?"3":"2";t.setAttribute("srsDimension",o);for(var a,s=i.srsName,l=e.getCoordinates(),u=l.length,h=new Array(u),c=0;c<u;++c)a=l[c],h[c]=this.getCoords_(a,s,r);au(t,h.join(" "))},t.prototype.writePoint_=function(t,e,n){var i=n[n.length-1].srsName;i&&t.setAttribute("srsName",i);var r=Pl(t.namespaceURI,"gml:pos");t.appendChild(r),this.writePos_(r,e,n)},t.prototype.writeEnvelope=function(t,e,n){var i=n[n.length-1].srsName;i&&t.setAttribute("srsName",i);var r=[e[0]+" "+e[1],e[2]+" "+e[3]];Vl({node:t},this.ENVELOPE_SERIALIZERS_,kl,r,n,["lowerCorner","upperCorner"],this)},t.prototype.writeLinearRing_=function(t,e,n){var i=n[n.length-1].srsName;i&&t.setAttribute("srsName",i);var r=Pl(t.namespaceURI,"gml:posList");t.appendChild(r),this.writePosList_(r,e,n)},t.prototype.RING_NODE_FACTORY_=function(t,e,n){var i=e[e.length-1],r=i.node,o=i.exteriorWritten;return void 0===o&&(i.exteriorWritten=!0),Pl(r.namespaceURI,void 0!==o?"gml:interior":"gml:exterior")},t.prototype.writeSurfaceOrPolygon_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=i.srsName;if("gml:PolygonPatch"!==t.nodeName&&o&&t.setAttribute("srsName",o),"gml:Polygon"===t.nodeName||"gml:PolygonPatch"===t.nodeName){var a=e.getLinearRings();Vl({node:t,hasZ:r,srsName:o},this.RING_SERIALIZERS_,this.RING_NODE_FACTORY_,a,n,void 0,this)}else if("gml:Surface"===t.nodeName){var s=Pl(t.namespaceURI,"gml:patches");t.appendChild(s),this.writeSurfacePatches_(s,e,n)}},t.prototype.writeCurveOrLineString_=function(t,e,n){var i=n[n.length-1].srsName;if("gml:LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"gml:LineString"===t.nodeName||"gml:LineStringSegment"===t.nodeName){var r=Pl(t.namespaceURI,"gml:posList");t.appendChild(r),this.writePosList_(r,e,n)}else if("gml:Curve"===t.nodeName){var o=Pl(t.namespaceURI,"gml:segments");t.appendChild(o),this.writeCurveSegments_(o,e,n)}},t.prototype.writeMultiSurfaceOrPolygon_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=i.srsName,a=i.surface;o&&t.setAttribute("srsName",o);var s=e.getPolygons();Vl({node:t,hasZ:r,srsName:o,surface:a},this.SURFACEORPOLYGONMEMBER_SERIALIZERS_,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},t.prototype.writeMultiPoint_=function(t,e,n){var i=n[n.length-1],r=i.srsName,o=i.hasZ;r&&t.setAttribute("srsName",r);var a=e.getPoints();Vl({node:t,hasZ:o,srsName:r},this.POINTMEMBER_SERIALIZERS_,Nl("gml:pointMember"),a,n,void 0,this)},t.prototype.writeMultiCurveOrLineString_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=i.srsName,a=i.curve;o&&t.setAttribute("srsName",o);var s=e.getLineStrings();Vl({node:t,hasZ:r,srsName:o,curve:a},this.LINESTRINGORCURVEMEMBER_SERIALIZERS_,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},t.prototype.writeRing_=function(t,e,n){var i=Pl(t.namespaceURI,"gml:LinearRing");t.appendChild(i),this.writeLinearRing_(i,e,n)},t.prototype.writeSurfaceOrPolygonMember_=function(t,e,n){var i=this.GEOMETRY_NODE_FACTORY_(e,n);i&&(t.appendChild(i),this.writeSurfaceOrPolygon_(i,e,n))},t.prototype.writePointMember_=function(t,e,n){var i=Pl(t.namespaceURI,"gml:Point");t.appendChild(i),this.writePoint_(i,e,n)},t.prototype.writeLineStringOrCurveMember_=function(t,e,n){var i=this.GEOMETRY_NODE_FACTORY_(e,n);i&&(t.appendChild(i),this.writeCurveOrLineString_(i,e,n))},t.prototype.writeSurfacePatches_=function(t,e,n){var i=Pl(t.namespaceURI,"gml:PolygonPatch");t.appendChild(i),this.writeSurfaceOrPolygon_(i,e,n)},t.prototype.writeCurveSegments_=function(t,e,n){var i=Pl(t.namespaceURI,"gml:LineStringSegment");t.appendChild(i),this.writeCurveOrLineString_(i,e,n)},t.prototype.writeGeometryElement=function(t,e,n){var i,r=n[n.length-1],o=v({},r);o.node=t,i=Array.isArray(e)?$a(e,r):Qa(e,!0,r),Vl(o,this.GEOMETRY_SERIALIZERS_,this.GEOMETRY_NODE_FACTORY_,[i],n,void 0,this)},t.prototype.writeFeatureElement=function(t,e,n){var i=e.getId();i&&t.setAttribute("fid",i);var r=n[n.length-1],o=r.featureNS,a=e.getGeometryName();r.serializers||(r.serializers={},r.serializers[o]={});var s=e.getProperties(),l=[],u=[];for(var h in s){var c=s[h];null!==c&&(l.push(h),u.push(c),h==a||"function"==typeof c.getSimplifiedGeometry?h in r.serializers[o]||(r.serializers[o][h]=Rl(this.writeGeometryElement,this)):h in r.serializers[o]||(r.serializers[o][h]=Rl(au)))}var p=v({},r);p.node=t,Vl(p,r.serializers,Nl(void 0,o),u,n,l)},t.prototype.writeFeatureMembers_=function(t,e,n){var i=n[n.length-1],r=i.featureType,o=i.featureNS,a={};a[o]={},a[o][r]=Rl(this.writeFeatureElement,this);var s=v({},i);s.node=t,Vl(s,a,Nl(r,o),e,n)},t.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(t,e,n){var i=e[e.length-1].node;return Pl("http://www.opengis.net/gml/3.2",lu[i.nodeName])},t.prototype.GEOMETRY_NODE_FACTORY_=function(t,e,n){var i,r=e[e.length-1],o=(r.multiSurface,r.surface),a=r.curve;return r.multiCurve,Array.isArray(t)?i="Envelope":"MultiPolygon"===(i=t.getType())?i="MultiSurface":"Polygon"===i&&!0===o?i="Surface":"LineString"===i&&!0===a?i="Curve":"MultiLineString"===i&&(i="MultiCurve"),Pl("http://www.opengis.net/gml/3.2",i="gml:"+i)},t.prototype.writeGeometryNode=function(t,e){e=this.adaptOptions(e);var n=Pl("http://www.opengis.net/gml/3.2","gml:geom"),i={node:n,hasZ:this.hasZ,srsName:this.srsName,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_};return e&&v(i,e),this.writeGeometryElement(n,t,[i]),n},t.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=Pl("http://www.opengis.net/gml/3.2","gml:featureMembers");n.setAttributeNS(bl,"xsi:schemaLocation",this.schemaLocation);var i={srsName:this.srsName,hasZ:this.hasZ,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_,featureNS:this.featureNS,featureType:this.featureType};return e&&v(i,e),this.writeFeatureMembers_(n,t,[i]),n},t}(Hl);uu.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:El(uu.prototype.readFlatPos_),posList:El(uu.prototype.readFlatPosList_)}},uu.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:uu.prototype.interiorParser_,exterior:uu.prototype.exteriorParser_}},uu.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:El(Hl.prototype.readPoint),MultiPoint:El(Hl.prototype.readMultiPoint),LineString:El(Hl.prototype.readLineString),MultiLineString:El(Hl.prototype.readMultiLineString),LinearRing:El(Hl.prototype.readLinearRing),Polygon:El(Hl.prototype.readPolygon),MultiPolygon:El(Hl.prototype.readMultiPolygon),Surface:El(uu.prototype.readSurface_),MultiSurface:El(uu.prototype.readMultiSurface_),Curve:El(uu.prototype.readCurve_),MultiCurve:El(uu.prototype.readMultiCurve_),Envelope:El(uu.prototype.readEnvelope_)}},uu.prototype.MULTICURVE_PARSERS_={"http://www.opengis.net/gml/3.2":{curveMember:Al(uu.prototype.curveMemberParser_),curveMembers:Al(uu.prototype.curveMemberParser_)}},uu.prototype.MULTISURFACE_PARSERS_={"http://www.opengis.net/gml/3.2":{surfaceMember:Al(uu.prototype.surfaceMemberParser_),surfaceMembers:Al(uu.prototype.surfaceMemberParser_)}},uu.prototype.CURVEMEMBER_PARSERS_={"http://www.opengis.net/gml/3.2":{LineString:Al(Hl.prototype.readLineString),Curve:Al(uu.prototype.readCurve_)}},uu.prototype.SURFACEMEMBER_PARSERS_={"http://www.opengis.net/gml/3.2":{Polygon:Al(Hl.prototype.readPolygon),Surface:Al(uu.prototype.readSurface_)}},uu.prototype.SURFACE_PARSERS_={"http://www.opengis.net/gml/3.2":{patches:El(uu.prototype.readPatch_)}},uu.prototype.CURVE_PARSERS_={"http://www.opengis.net/gml/3.2":{segments:El(uu.prototype.readSegment_)}},uu.prototype.ENVELOPE_PARSERS_={"http://www.opengis.net/gml/3.2":{lowerCorner:Al(uu.prototype.readFlatPosList_),upperCorner:Al(uu.prototype.readFlatPosList_)}},uu.prototype.PATCHES_PARSERS_={"http://www.opengis.net/gml/3.2":{PolygonPatch:El(uu.prototype.readPolygonPatch_)}},uu.prototype.SEGMENTS_PARSERS_={"http://www.opengis.net/gml/3.2":{LineStringSegment:El(uu.prototype.readLineStringSegment_)}},uu.prototype.writeFeatures,uu.prototype.RING_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{exterior:Rl(uu.prototype.writeRing_),interior:Rl(uu.prototype.writeRing_)}},uu.prototype.ENVELOPE_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{lowerCorner:Rl(au),upperCorner:Rl(au)}},uu.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{surfaceMember:Rl(uu.prototype.writeSurfaceOrPolygonMember_),polygonMember:Rl(uu.prototype.writeSurfaceOrPolygonMember_)}},uu.prototype.POINTMEMBER_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{pointMember:Rl(uu.prototype.writePointMember_)}},uu.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{lineStringMember:Rl(uu.prototype.writeLineStringOrCurveMember_),curveMember:Rl(uu.prototype.writeLineStringOrCurveMember_)}},uu.prototype.GEOMETRY_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{Curve:Rl(uu.prototype.writeCurveOrLineString_),MultiCurve:Rl(uu.prototype.writeMultiCurveOrLineString_),Point:Rl(uu.prototype.writePoint_),MultiPoint:Rl(uu.prototype.writeMultiPoint_),LineString:Rl(uu.prototype.writeCurveOrLineString_),MultiLineString:Rl(uu.prototype.writeMultiCurveOrLineString_),LinearRing:Rl(uu.prototype.writeLinearRing_),Polygon:Rl(uu.prototype.writeSurfaceOrPolygon_),MultiPolygon:Rl(uu.prototype.writeMultiSurfaceOrPolygon_),Surface:Rl(uu.prototype.writeSurfaceOrPolygon_),MultiSurface:Rl(uu.prototype.writeMultiSurfaceOrPolygon_),Envelope:Rl(uu.prototype.writeEnvelope)}};var hu=uu,cu=hu;cu.prototype.writeFeatures,cu.prototype.writeFeaturesNode;var pu=cu,fu=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),du={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},yu=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,n)||this).FEATURE_COLLECTION_PARSERS[Wl].featureMember=Al(e.readFeaturesInternal),e.schemaLocation=n.schemaLocation?n.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd",e}return fu(t,i),t.prototype.readFlatCoordinates_=function(t,e){var n=Sl(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r="enu";if(i){var o=xn(i);o&&(r=o.getAxisOrientation())}for(var a=n.trim().split(/\s+/),s=[],l=0,u=a.length;l<u;l++){var h=a[l].split(/,+/),c=parseFloat(h[0]),p=parseFloat(h[1]),f=3===h.length?parseFloat(h[2]):0;"en"===r.substr(0,2)?s.push(c,p,f):s.push(p,c,f)}return s},t.prototype.readBox_=function(t,e){var n=Gl([null],this.BOX_PARSERS_,t,e,this);return Te(n[1][0],n[1][1],n[1][3],n[1][4])},t.prototype.innerBoundaryIsParser_=function(t,e){var n=Gl(void 0,this.RING_PARSERS,t,e,this);n&&e[e.length-1].push(n)},t.prototype.outerBoundaryIsParser_=function(t,e){var n=Gl(void 0,this.RING_PARSERS,t,e,this);n&&(e[e.length-1][0]=n)},t.prototype.GEOMETRY_NODE_FACTORY_=function(t,e,n){var i,r=e[e.length-1],o=r.multiSurface,a=r.surface,s=r.multiCurve;return Array.isArray(t)?i="Envelope":"MultiPolygon"===(i=t.getType())&&!0===o?i="MultiSurface":"Polygon"===i&&!0===a?i="Surface":"MultiLineString"===i&&!0===s&&(i="MultiCurve"),Pl("http://www.opengis.net/gml",i)},t.prototype.writeFeatureElement=function(t,e,n){var i=e.getId();i&&t.setAttribute("fid",i);var r=n[n.length-1],o=r.featureNS,a=e.getGeometryName();r.serializers||(r.serializers={},r.serializers[o]={});var s=e.getProperties(),l=[],u=[];for(var h in s){var c=s[h];null!==c&&(l.push(h),u.push(c),h==a||"function"==typeof c.getSimplifiedGeometry?h in r.serializers[o]||(r.serializers[o][h]=Rl(this.writeGeometryElement,this)):h in r.serializers[o]||(r.serializers[o][h]=Rl(au)))}var p=v({},r);p.node=t,Vl(p,r.serializers,Nl(void 0,o),u,n,l)},t.prototype.writeCurveOrLineString_=function(t,e,n){var i=n[n.length-1].srsName;if("LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName){var r=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(r),this.writeCoordinates_(r,e,n)}else if("Curve"===t.nodeName){var o=Pl(t.namespaceURI,"segments");t.appendChild(o),this.writeCurveSegments_(o,e,n)}},t.prototype.writeLineStringOrCurveMember_=function(t,e,n){var i=this.GEOMETRY_NODE_FACTORY_(e,n);i&&(t.appendChild(i),this.writeCurveOrLineString_(i,e,n))},t.prototype.writeMultiCurveOrLineString_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=i.srsName,a=i.curve;o&&t.setAttribute("srsName",o);var s=e.getLineStrings();Vl({node:t,hasZ:r,srsName:o,curve:a},this.LINESTRINGORCURVEMEMBER_SERIALIZERS_,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},t.prototype.writeGeometryElement=function(t,e,n){var i,r=n[n.length-1],o=v({},r);o.node=t,i=Array.isArray(e)?$a(e,r):Qa(e,!0,r),Vl(o,this.GEOMETRY_SERIALIZERS_,this.GEOMETRY_NODE_FACTORY_,[i],n,void 0,this)},t.prototype.createCoordinatesNode_=function(t){var e=Pl(t,"coordinates");return e.setAttribute("decimal","."),e.setAttribute("cs",","),e.setAttribute("ts"," "),e},t.prototype.writeCoordinates_=function(t,e,n){for(var i=n[n.length-1],r=i.hasZ,o=i.srsName,a=e.getCoordinates(),s=a.length,l=new Array(s),u=0;u<s;++u){var h=a[u];l[u]=this.getCoords_(h,o,r)}au(t,l.join(" "))},t.prototype.writeCurveSegments_=function(t,e,n){var i=Pl(t.namespaceURI,"LineStringSegment");t.appendChild(i),this.writeCurveOrLineString_(i,e,n)},t.prototype.writeSurfaceOrPolygon_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=i.srsName;if("PolygonPatch"!==t.nodeName&&o&&t.setAttribute("srsName",o),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName){var a=e.getLinearRings();Vl({node:t,hasZ:r,srsName:o},this.RING_SERIALIZERS_,this.RING_NODE_FACTORY_,a,n,void 0,this)}else if("Surface"===t.nodeName){var s=Pl(t.namespaceURI,"patches");t.appendChild(s),this.writeSurfacePatches_(s,e,n)}},t.prototype.RING_NODE_FACTORY_=function(t,e,n){var i=e[e.length-1],r=i.node,o=i.exteriorWritten;return void 0===o&&(i.exteriorWritten=!0),Pl(r.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},t.prototype.writeSurfacePatches_=function(t,e,n){var i=Pl(t.namespaceURI,"PolygonPatch");t.appendChild(i),this.writeSurfaceOrPolygon_(i,e,n)},t.prototype.writeRing_=function(t,e,n){var i=Pl(t.namespaceURI,"LinearRing");t.appendChild(i),this.writeLinearRing_(i,e,n)},t.prototype.getCoords_=function(t,e,n){var i="enu";e&&(i=xn(e).getAxisOrientation());var r="en"===i.substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0];return n&&(r+=","+(t[2]||0)),r},t.prototype.writePoint_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=i.srsName;o&&t.setAttribute("srsName",o);var a=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(a);var s=e.getCoordinates();au(a,this.getCoords_(s,o,r))},t.prototype.writeMultiPoint_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=i.srsName;o&&t.setAttribute("srsName",o);var a=e.getPoints();Vl({node:t,hasZ:r,srsName:o},this.POINTMEMBER_SERIALIZERS_,Nl("pointMember"),a,n,void 0,this)},t.prototype.writePointMember_=function(t,e,n){var i=Pl(t.namespaceURI,"Point");t.appendChild(i),this.writePoint_(i,e,n)},t.prototype.writeLinearRing_=function(t,e,n){var i=n[n.length-1].srsName;i&&t.setAttribute("srsName",i);var r=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(r),this.writeCoordinates_(r,e,n)},t.prototype.writeMultiSurfaceOrPolygon_=function(t,e,n){var i=n[n.length-1],r=i.hasZ,o=i.srsName,a=i.surface;o&&t.setAttribute("srsName",o);var s=e.getPolygons();Vl({node:t,hasZ:r,srsName:o,surface:a},this.SURFACEORPOLYGONMEMBER_SERIALIZERS_,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},t.prototype.writeSurfaceOrPolygonMember_=function(t,e,n){var i=this.GEOMETRY_NODE_FACTORY_(e,n);i&&(t.appendChild(i),this.writeSurfaceOrPolygon_(i,e,n))},t.prototype.writeEnvelope=function(t,e,n){var i=n[n.length-1].srsName;i&&t.setAttribute("srsName",i);var r=[e[0]+" "+e[1],e[2]+" "+e[3]];Vl({node:t},this.ENVELOPE_SERIALIZERS_,kl,r,n,["lowerCorner","upperCorner"],this)},t.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(t,e,n){var i=e[e.length-1].node;return Pl("http://www.opengis.net/gml",du[i.nodeName])},t}(Hl);yu.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{coordinates:El(yu.prototype.readFlatCoordinates_)}},yu.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{innerBoundaryIs:yu.prototype.innerBoundaryIsParser_,outerBoundaryIs:yu.prototype.outerBoundaryIsParser_}},yu.prototype.BOX_PARSERS_={"http://www.opengis.net/gml":{coordinates:Al(yu.prototype.readFlatCoordinates_)}},yu.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:El(Hl.prototype.readPoint),MultiPoint:El(Hl.prototype.readMultiPoint),LineString:El(Hl.prototype.readLineString),MultiLineString:El(Hl.prototype.readMultiLineString),LinearRing:El(Hl.prototype.readLinearRing),Polygon:El(Hl.prototype.readPolygon),MultiPolygon:El(Hl.prototype.readMultiPolygon),Box:El(yu.prototype.readBox_)}},yu.prototype.GEOMETRY_SERIALIZERS_={"http://www.opengis.net/gml":{Curve:Rl(yu.prototype.writeCurveOrLineString_),MultiCurve:Rl(yu.prototype.writeMultiCurveOrLineString_),Point:Rl(yu.prototype.writePoint_),MultiPoint:Rl(yu.prototype.writeMultiPoint_),LineString:Rl(yu.prototype.writeCurveOrLineString_),MultiLineString:Rl(yu.prototype.writeMultiCurveOrLineString_),LinearRing:Rl(yu.prototype.writeLinearRing_),Polygon:Rl(yu.prototype.writeSurfaceOrPolygon_),MultiPolygon:Rl(yu.prototype.writeMultiSurfaceOrPolygon_),Surface:Rl(yu.prototype.writeSurfaceOrPolygon_),MultiSurface:Rl(yu.prototype.writeMultiSurfaceOrPolygon_),Envelope:Rl(yu.prototype.writeEnvelope)}},yu.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_={"http://www.opengis.net/gml":{lineStringMember:Rl(yu.prototype.writeLineStringOrCurveMember_),curveMember:Rl(yu.prototype.writeLineStringOrCurveMember_)}},yu.prototype.RING_SERIALIZERS_={"http://www.opengis.net/gml":{outerBoundaryIs:Rl(yu.prototype.writeRing_),innerBoundaryIs:Rl(yu.prototype.writeRing_)}},yu.prototype.POINTMEMBER_SERIALIZERS_={"http://www.opengis.net/gml":{pointMember:Rl(yu.prototype.writePointMember_)}},yu.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_={"http://www.opengis.net/gml":{surfaceMember:Rl(yu.prototype.writeSurfaceOrPolygonMember_),polygonMember:Rl(yu.prototype.writeSurfaceOrPolygonMember_)}},yu.prototype.ENVELOPE_SERIALIZERS_={"http://www.opengis.net/gml":{lowerCorner:Rl(au),upperCorner:Rl(au)}};var mu=yu,gu=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),vu=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,n)||this).schemaLocation=n.schemaLocation?n.schemaLocation:e.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd",e}return gu(t,i),t}(hu);vu.prototype.namespace="http://www.opengis.net/gml/3.2",vu.prototype.namespace="http://www.opengis.net/wfs/2.0",vu.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:El(hu.prototype.readFlatPos_),posList:El(hu.prototype.readFlatPosList_)}},vu.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:hu.prototype.interiorParser_,exterior:hu.prototype.exteriorParser_}},vu.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:El(Hl.prototype.readPoint),MultiPoint:El(Hl.prototype.readMultiPoint),LineString:El(Hl.prototype.readLineString),MultiLineString:El(Hl.prototype.readMultiLineString),LinearRing:El(Hl.prototype.readLinearRing),Polygon:El(Hl.prototype.readPolygon),MultiPolygon:El(Hl.prototype.readMultiPolygon),Surface:El(vu.prototype.readSurface_),MultiSurface:El(hu.prototype.readMultiSurface_),Curve:El(vu.prototype.readCurve_),MultiCurve:El(hu.prototype.readMultiCurve_),Envelope:El(vu.prototype.readEnvelope_)}},vu.prototype.MULTICURVE_PARSERS_={"http://www.opengis.net/gml/3.2":{curveMember:Al(hu.prototype.curveMemberParser_),curveMembers:Al(hu.prototype.curveMemberParser_)}},vu.prototype.MULTISURFACE_PARSERS_={"http://www.opengis.net/gml/3.2":{surfaceMember:Al(hu.prototype.surfaceMemberParser_),surfaceMembers:Al(hu.prototype.surfaceMemberParser_)}},vu.prototype.CURVEMEMBER_PARSERS_={"http://www.opengis.net/gml/3.2":{LineString:Al(Hl.prototype.readLineString),Curve:Al(hu.prototype.readCurve_)}},vu.prototype.SURFACEMEMBER_PARSERS_={"http://www.opengis.net/gml/3.2":{Polygon:Al(Hl.prototype.readPolygon),Surface:Al(hu.prototype.readSurface_)}},vu.prototype.SURFACE_PARSERS_={"http://www.opengis.net/gml/3.2":{patches:El(hu.prototype.readPatch_)}},vu.prototype.CURVE_PARSERS_={"http://www.opengis.net/gml/3.2":{segments:El(hu.prototype.readSegment_)}},vu.prototype.ENVELOPE_PARSERS_={"http://www.opengis.net/gml/3.2":{lowerCorner:Al(hu.prototype.readFlatPosList_),upperCorner:Al(hu.prototype.readFlatPosList_)}},vu.prototype.PATCHES_PARSERS_={"http://www.opengis.net/gml/3.2":{PolygonPatch:El(hu.prototype.readPolygonPatch_)}},vu.prototype.SEGMENTS_PARSERS_={"http://www.opengis.net/gml/3.2":{LineStringSegment:El(hu.prototype.readLineStringSegment_)}},vu.prototype.MULTIPOINT_PARSERS_={"http://www.opengis.net/gml/3.2":{pointMember:Al(Hl.prototype.pointMemberParser_),pointMembers:Al(Hl.prototype.pointMemberParser_)}},vu.prototype.MULTILINESTRING_PARSERS_={"http://www.opengis.net/gml/3.2":{lineStringMember:Al(Hl.prototype.lineStringMemberParser_),lineStringMembers:Al(Hl.prototype.lineStringMemberParser_)}},vu.prototype.MULTIPOLYGON_PARSERS_={"http://www.opengis.net/gml/3.2":{polygonMember:Al(Hl.prototype.polygonMemberParser_),polygonMembers:Al(Hl.prototype.polygonMemberParser_)}},vu.prototype.POINTMEMBER_PARSERS_={"http://www.opengis.net/gml/3.2":{Point:Al(Hl.prototype.readFlatCoordinatesFromNode_)}},vu.prototype.LINESTRINGMEMBER_PARSERS_={"http://www.opengis.net/gml/3.2":{LineString:Al(Hl.prototype.readLineString)}},vu.prototype.POLYGONMEMBER_PARSERS_={"http://www.opengis.net/gml/3.2":{Polygon:Al(Hl.prototype.readPolygon)}},vu.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:El(Hl.prototype.readFlatLinearRing_)}},vu.prototype.RING_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{exterior:Rl(hu.prototype.writeRing_),interior:Rl(hu.prototype.writeRing_)}},vu.prototype.ENVELOPE_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{lowerCorner:Rl(au),upperCorner:Rl(au)}},vu.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{surfaceMember:Rl(hu.prototype.writeSurfaceOrPolygonMember_),polygonMember:Rl(hu.prototype.writeSurfaceOrPolygonMember_)}},vu.prototype.POINTMEMBER_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{pointMember:Rl(hu.prototype.writePointMember_)}},vu.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{lineStringMember:Rl(hu.prototype.writeLineStringOrCurveMember_),curveMember:Rl(hu.prototype.writeLineStringOrCurveMember_)}},vu.prototype.GEOMETRY_SERIALIZERS_={"http://www.opengis.net/gml/3.2":{Curve:Rl(hu.prototype.writeCurveOrLineString_),MultiCurve:Rl(hu.prototype.writeMultiCurveOrLineString_),Point:Rl(vu.prototype.writePoint_),MultiPoint:Rl(hu.prototype.writeMultiPoint_),LineString:Rl(hu.prototype.writeCurveOrLineString_),MultiLineString:Rl(hu.prototype.writeMultiCurveOrLineString_),LinearRing:Rl(hu.prototype.writeLinearRing_),Polygon:Rl(hu.prototype.writeSurfaceOrPolygon_),MultiPolygon:Rl(hu.prototype.writeMultiSurfaceOrPolygon_),Surface:Rl(hu.prototype.writeSurfaceOrPolygon_),MultiSurface:Rl(hu.prototype.writeMultiSurfaceOrPolygon_),Envelope:Rl(hu.prototype.writeEnvelope)}};var xu=vu,_u=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),wu=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],bu={rte:Ku,trk:Ju,wpt:Qu},Pu=Dl(wu,{rte:Al(Ku),trk:Al(Ju),wpt:Al(Qu)}),Su=Dl(wu,{text:Ll(nu,"linkText"),type:Ll(nu,"linkType")}),Cu=Dl(wu,{rte:Rl(function(t,e,n){var i=n[0],r=e.getProperties(),o={node:t};o.properties=r;var a=e.getGeometry();if(a.getType()==re.LINE_STRING){var s=Qa(a,!0,i);o.geometryLayout=s.getLayout(),r.rtept=s.getCoordinates()}var l=n[n.length-1].node,u=ku[l.namespaceURI],h=zl(r,u);Vl(o,zu,kl,h,n,u)}),trk:Rl(function(t,e,n){var i=n[0],r=e.getProperties(),o={node:t};o.properties=r;var a=e.getGeometry();if(a.getType()==re.MULTI_LINE_STRING){var s=Qa(a,!0,i);r.trkseg=s.getLineStrings()}var l=n[n.length-1].node,u=Fu[l.namespaceURI],h=zl(r,u);Vl(o,Gu,kl,h,n,u)}),wpt:Rl(function(t,e,n){var i=n[0],r=n[n.length-1];r.properties=e.getProperties();var o=e.getGeometry();if(o.getType()==re.POINT){var a=Qa(o,!0,i);r.geometryLayout=a.getLayout(),th(t,a.getCoordinates(),n)}})}),Mu=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.dataProjection=xn("EPSG:4326"),e.readExtensions_=n.readExtensions,e}return _u(t,i),t.prototype.handleReadExtensions_=function(t){for(var e=0,n=(t=t||[]).length;e<n;++e){var i=t[e];if(this.readExtensions_){var r=i.get("extensionsNode_")||null;this.readExtensions_(i,r)}i.set("extensionsNode_",void 0)}},t.prototype.readFeatureFromNode=function(t,e){if(!M(wu,t.namespaceURI))return null;var n=bu[t.localName];if(!n)return null;var i=n(t,[this.getReadOptions(t,e)]);return i?(this.handleReadExtensions_([i]),i):null},t.prototype.readFeaturesFromNode=function(t,e){if(!M(wu,t.namespaceURI))return[];if("gpx"!=t.localName)return[];var n=Gl([],Pu,t,[this.getReadOptions(t,e)]);return n?(this.handleReadExtensions_(n),n):[]},t.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=Pl("http://www.topografix.com/GPX/1/1","gpx");return n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi",bl),n.setAttributeNS(bl,"xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),n.setAttribute("version","1.1"),n.setAttribute("creator","OpenLayers"),Vl({node:n},Cu,Wu,t,[e]),n},t}(Bl),Tu=Dl(wu,{name:Ll(nu),cmt:Ll(nu),desc:Ll(nu),src:Ll(nu),link:Hu,number:Ll(tu),extensions:Yu,type:Ll(nu),rtept:function(t,e){var n=Gl({},Au,t,e);if(n){var i=e[e.length-1],r=i.flatCoordinates,o=i.layoutOptions;Zu(r,o,t,n)}}}),Au=Dl(wu,{ele:Ll(Ql),time:Ll(Jl)}),Eu=Dl(wu,{name:Ll(nu),cmt:Ll(nu),desc:Ll(nu),src:Ll(nu),link:Hu,number:Ll(tu),type:Ll(nu),extensions:Yu,trkseg:function(t,e){var n=e[e.length-1];Fl(Iu,t,e);var i=n.flatCoordinates;n.ends.push(i.length)}}),Iu=Dl(wu,{trkpt:function(t,e){var n=Gl({},Lu,t,e);if(n){var i=e[e.length-1],r=i.flatCoordinates,o=i.layoutOptions;Zu(r,o,t,n)}}}),Lu=Dl(wu,{ele:Ll(Ql),time:Ll(Jl)}),Ru=Dl(wu,{ele:Ll(Ql),time:Ll(Jl),magvar:Ll(Ql),geoidheight:Ll(Ql),name:Ll(nu),cmt:Ll(nu),desc:Ll(nu),src:Ll(nu),link:Hu,sym:Ll(nu),type:Ll(nu),fix:Ll(nu),sat:Ll(tu),hdop:Ll(Ql),vdop:Ll(Ql),pdop:Ll(Ql),ageofdgpsdata:Ll(Ql),dgpsid:Ll(tu),extensions:Yu}),Ou=["text","type"],Nu=Dl(wu,{text:Rl(au),type:Rl(au)}),ku=Dl(wu,["name","cmt","desc","src","link","number","type","rtept"]),zu=Dl(wu,{name:Rl(au),cmt:Rl(au),desc:Rl(au),src:Rl(au),link:Rl($u),number:Rl(ou),type:Rl(au),rtept:Ol(Rl(th))}),Du=Dl(wu,["ele","time"]),Fu=Dl(wu,["name","cmt","desc","src","link","number","type","trkseg"]),Gu=Dl(wu,{name:Rl(au),cmt:Rl(au),desc:Rl(au),src:Rl(au),link:Rl($u),number:Rl(ou),type:Rl(au),trkseg:Ol(Rl(function(t,e,n){var i={node:t};i.geometryLayout=e.getLayout(),i.properties={},Vl(i,Vu,ju,e.getCoordinates(),n)}))}),ju=Nl("trkpt"),Vu=Dl(wu,{trkpt:Rl(th)}),qu=Dl(wu,["ele","time","magvar","geoidheight","name","cmt","desc","src","link","sym","type","fix","sat","hdop","vdop","pdop","ageofdgpsdata","dgpsid"]),Bu=Dl(wu,{ele:Rl(ru),time:Rl(function(t,e){var n=new Date(1e3*e),i=n.getUTCFullYear()+"-"+_i(n.getUTCMonth()+1,2)+"-"+_i(n.getUTCDate(),2)+"T"+_i(n.getUTCHours(),2)+":"+_i(n.getUTCMinutes(),2)+":"+_i(n.getUTCSeconds(),2)+"Z";t.appendChild(wl.createTextNode(i))}),magvar:Rl(ru),geoidheight:Rl(ru),name:Rl(au),cmt:Rl(au),desc:Rl(au),src:Rl(au),link:Rl($u),sym:Rl(au),type:Rl(au),fix:Rl(au),sat:Rl(ou),hdop:Rl(ru),vdop:Rl(ru),pdop:Rl(ru),ageofdgpsdata:Rl(ru),dgpsid:Rl(ou)}),Uu={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Wu(t,e,n){var i=t.getGeometry();if(i){var r=Uu[i.getType()];if(r)return Pl(e[e.length-1].node.namespaceURI,r)}}function Zu(t,e,n,i){return t.push(parseFloat(n.getAttribute("lon")),parseFloat(n.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 Xu(t,e,n){var i=Di,r=2;if(t.hasZ&&t.hasM?(i=ji,r=4):t.hasZ?(i=Fi,r=3):t.hasM&&(i=Gi,r=3),4!==r){for(var o=0,a=e.length/4;o<a;o++)e[o*r]=e[4*o],e[o*r+1]=e[4*o+1],t.hasZ&&(e[o*r+2]=e[4*o+2]),t.hasM&&(e[o*r+2]=e[4*o+3]);if(e.length=e.length/4*r,n)for(o=0,a=n.length;o<a;o++)n[o]=n[o]/4*r}return i}function Hu(t,e){var n=e[e.length-1],i=t.getAttribute("href");null!==i&&(n.link=i),Fl(Su,t,e)}function Yu(t,e){e[e.length-1].extensionsNode_=t}function Ku(t,e){var n=e[0],i=Gl({flatCoordinates:[],layoutOptions:{}},Tu,t,e);if(i){var r=i.flatCoordinates;delete i.flatCoordinates;var o=i.layoutOptions;delete i.layoutOptions;var a=Xu(o,r),s=new ss(r,a);Qa(s,!1,n);var l=new Ba(s);return l.setProperties(i,!0),l}}function Ju(t,e){var n=e[0],i=Gl({flatCoordinates:[],ends:[],layoutOptions:{}},Eu,t,e);if(i){var r=i.flatCoordinates;delete i.flatCoordinates;var o=i.ends;delete i.ends;var a=i.layoutOptions;delete i.layoutOptions;var s=Xu(a,r,o),l=new us(r,s,o);Qa(l,!1,n);var u=new Ba(l);return u.setProperties(i,!0),u}}function Qu(t,e){var n=e[0],i=Gl({},Ru,t,e);if(i){var r={},o=Zu([],r,t,i),a=Xu(r,o),s=new Cr(o,a);Qa(s,!1,n);var l=new Ba(s);return l.setProperties(i,!0),l}}function $u(t,e,n){t.setAttribute("href",e);var i=n[n.length-1].properties,r=[i.linkText,i.linkType];Vl({node:t},Nu,kl,r,n,Ou)}function th(t,e,n){var i=n[n.length-1],r=i.node.namespaceURI,o=i.properties;switch(t.setAttributeNS(null,"lat",String(e[1])),t.setAttributeNS(null,"lon",String(e[0])),i.geometryLayout){case ji:0!==e[3]&&(o.time=e[3]);case Fi:0!==e[2]&&(o.ele=e[2]);break;case Gi:0!==e[2]&&(o.time=e[2])}var a="rtept"==t.nodeName?Du[r]:qu[r],s=zl(o,a);Vl({node:t,properties:o},Bu,kl,s,n,a)}var eh=Mu,nh=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function ih(t){return"string"==typeof t?t:""}var rh=function(t){function e(){return t.call(this)||this}return nh(e,t),e.prototype.getType=function(){return Za},e.prototype.readFeature=function(t,e){return this.readFeatureFromText(ih(t),this.adaptOptions(e))},e.prototype.readFeatureFromText=function(t,e){return s()},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromText(ih(t),this.adaptOptions(e))},e.prototype.readFeaturesFromText=function(t,e){return s()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromText(ih(t),this.adaptOptions(e))},e.prototype.readGeometryFromText=function(t,e){return s()},e.prototype.readProjection=function(t){return this.readProjectionFromText(ih(t))},e.prototype.readProjectionFromText=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){return this.writeFeatureText(t,this.adaptOptions(e))},e.prototype.writeFeatureText=function(t,e){return s()},e.prototype.writeFeatures=function(t,e){return this.writeFeaturesText(t,this.adaptOptions(e))},e.prototype.writeFeaturesText=function(t,e){return s()},e.prototype.writeGeometry=function(t,e){return this.writeGeometryText(t,this.adaptOptions(e))},e.prototype.writeGeometryText=function(t,e){return s()},e}(Ja),oh=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ah="none",sh=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,lh=/^H.([A-Z]{3}).*?:(.*)/,uh=/^HFDTE(\d{2})(\d{2})(\d{2})/,hh=/\r\n|\r|\n/,ch=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.dataProjection=xn("EPSG:4326"),e.altitudeMode_=n.altitudeMode?n.altitudeMode:ah,e}return oh(t,i),t.prototype.readFeatureFromText=function(t,e){var n,i,r=this.altitudeMode_,o=t.split(hh),a={},s=[],l=2e3,u=0,h=1,c=-1;for(n=0,i=o.length;n<i;++n){var p=o[n],f=void 0;if("B"==p.charAt(0)){if(f=sh.exec(p)){var d=parseInt(f[1],10),y=parseInt(f[2],10),m=parseInt(f[3],10),g=parseInt(f[4],10)+parseInt(f[5],10)/6e4;"S"==f[6]&&(g=-g);var v=parseInt(f[7],10)+parseInt(f[8],10)/6e4;if("W"==f[9]&&(v=-v),s.push(v,g),r!=ah){var x=void 0;x="gps"==r?parseInt(f[11],10):"barometric"==r?parseInt(f[12],10):0,s.push(x)}var _=Date.UTC(l,u,h,d,y,m);_<c&&(_=Date.UTC(l,u,h+1,d,y,m)),s.push(_/1e3),c=_}}else"H"==p.charAt(0)&&((f=uh.exec(p))?(h=parseInt(f[1],10),u=parseInt(f[2],10)-1,l=2e3+parseInt(f[3],10)):(f=lh.exec(p))&&(a[f[1]]=f[2].trim()))}if(0===s.length)return null;var w=new ss(s,r==ah?Gi:ji),b=new Ba(Qa(w,!1,e));return b.setProperties(a,!0),b},t.prototype.readFeaturesFromText=function(t,e){var n=this.readFeatureFromText(t,e);return n?[n]:[]},t}(rh),ph="version1",fh="version2",dh="version3",yh={version1:{level0:{supports:[],formats:[],qualities:["native"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["native"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["native","color","grey","bitonal"]}},version2:{level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByDistortedWh","sizeByWh"],formats:["jpg","png"],qualities:["default","bitonal"]}},version3:{level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","regionSquare","sizeByW","sizeByH","sizeByWh"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionSquare","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["default"]}},none:{none:{supports:[],formats:[],qualities:[]}}},mh=new RegExp("^https?://library.stanford.edu/iiif/image-api/(1.1/)?compliance.html#level[0-2]$"),gh=new RegExp("^https?://iiif.io/api/image/2/level[0-2](.json)?$"),vh=new RegExp("(^https?://iiif.io/api/image/3/level[0-2](.json)?$)|(^level[0-2]$)"),xh={version1:function(t){var e=t.getComplianceLevelSupportedFeatures();return void 0===e&&(e=yh[ph].level0),{url:void 0===t.imageInfo["@id"]?void 0:t.imageInfo["@id"].replace(/\/?(info.json)?$/g,""),supports:e.supports,formats:e.formats.concat([void 0===t.imageInfo.formats?[]:t.imageInfo.formats]),qualities:e.qualities.concat([void 0===t.imageInfo.qualities?[]:t.imageInfo.qualities]),resolutions:t.imageInfo.scale_factors,tileSize:void 0!==t.imageInfo.tile_width?void 0!==t.imageInfo.tile_height?[t.imageInfo.tile_width,t.imageInfo.tile_height]:[t.imageInfo.tile_width,t.imageInfo.tile_width]:null!=t.imageInfo.tile_height?[t.imageInfo.tile_height,t.imageInfo.tile_height]:void 0}},version2:function(t){var e=t.getComplianceLevelSupportedFeatures(),n=Array.isArray(t.imageInfo.profile)&&1<t.imageInfo.profile.length,i=n&&t.imageInfo.profile[1].supports?t.imageInfo.profile[1].supports:[],r=n&&t.imageInfo.profile[1].formats?t.imageInfo.profile[1].formats:[],o=n&&t.imageInfo.profile[1].qualities?t.imageInfo.profile[1].qualities:[];return{url:t.imageInfo["@id"].replace(/\/?(info.json)?$/g,""),sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map(function(t){return[t.width,t.height]}),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map(function(t){return t.width})[0],t.imageInfo.tiles.map(function(t){return void 0===t.height?t.width:t.height})[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map(function(t){return t.scaleFactors})[0],supports:e.supports.concat(i),formats:e.formats.concat(r),qualities:e.qualities.concat(o)}},version3:function(t){var e=t.getComplianceLevelSupportedFeatures(),n=void 0===t.imageInfo.extraFormats?e.formats:e.formats.concat(t.imageInfo.extraFormats),i=void 0!==t.imageInfo.preferredFormats&&Array.isArray(t.imageInfo.preferredFormats)&&0<t.imageInfo.preferredFormats.length?t.imageInfo.preferredFormats.filter(function(t){return["jpg","png","gif"].includes(t)}).reduce(function(t,e){return void 0===t&&n.includes(e)?e:t},void 0):void 0;return{url:t.imageInfo.id,sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map(function(t){return[t.width,t.height]}),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map(function(t){return t.width})[0],t.imageInfo.tiles.map(function(t){return t.height})[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map(function(t){return t.scaleFactors})[0],supports:void 0===t.imageInfo.extraFeatures?e.supports:e.supports.concat(t.imageInfo.extraFeatures),formats:n,qualities:void 0===t.imageInfo.extraQualities?e.qualities:e.qualities.concat(t.imageInfo.extraQualities),preferredFormat:i}}},_h=function(){function t(t){this.setImageInfo(t)}return t.prototype.setImageInfo=function(t){this.imageInfo="string"==typeof t?JSON.parse(t):t},t.prototype.getImageApiVersion=function(){if(void 0!==this.imageInfo){var t=this.imageInfo["@context"]||"ol-no-context";"string"==typeof t&&(t=[t]);for(var e=0;e<t.length;e++)switch(t[e]){case"http://library.stanford.edu/iiif/image-api/1.1/context.json":case"http://iiif.io/api/image/1/context.json":return ph;case"http://iiif.io/api/image/2/context.json":return fh;case"http://iiif.io/api/image/3/context.json":return dh;case"ol-no-context":if(this.getComplianceLevelEntryFromProfile(ph)&&this.imageInfo.identifier)return ph}K(!1,61)}},t.prototype.getComplianceLevelEntryFromProfile=function(t){if(void 0!==this.imageInfo&&void 0!==this.imageInfo.profile)switch(void 0===t&&(t=this.getImageApiVersion()),t){case ph:if(mh.test(this.imageInfo.profile))return this.imageInfo.profile;break;case dh:if(vh.test(this.imageInfo.profile))return this.imageInfo.profile;break;case fh:if("string"==typeof this.imageInfo.profile&&gh.test(this.imageInfo.profile))return this.imageInfo.profile;if(Array.isArray(this.imageInfo.profile)&&0<this.imageInfo.profile.length&&"string"==typeof this.imageInfo.profile[0]&&gh.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0]}},t.prototype.getComplianceLevelFromProfile=function(t){var e=this.getComplianceLevelEntryFromProfile(t);if(void 0!==e){var n=e.match(/level[0-2](\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},t.prototype.getComplianceLevelSupportedFeatures=function(){if(void 0!==this.imageInfo){var t=this.getImageApiVersion(),e=this.getComplianceLevelFromProfile(t);return void 0===e?yh.none.none:yh[t][e]}},t.prototype.getTileSourceOptions=function(t){var e=t||{},n=this.getImageApiVersion();if(void 0!==n){var i=void 0===n?void 0:xh[n](this);if(void 0!==i)return{url:i.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:void 0!==e.format&&i.formats.includes(e.format)?e.format:void 0!==i.preferredFormat?i.preferredFormat:"jpg",supports:i.supports,quality:e.quality&&i.qualities.includes(e.quality)?e.quality:i.qualities.includes("native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(t,e){return e-t}):void 0,tileSize:i.tileSize}}},t}(),wh=function(){function e(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0})},e.prototype.getColor=function(){return this.color_},e.prototype.setColor=function(t){this.color_=t},e}(),bh="fraction",Ph="pixels",Sh=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ch=function(o){function t(t,e,n,i){var r=o.call(this)||this;return r.extent=t,r.pixelRatio_=n,r.resolution=e,r.state=i,r}return Sh(t,o),t.prototype.changed=function(){this.dispatchEvent(R)},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return s()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){s()},t}(L),Mh=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Th(t,e,n){var i=t;if(i.src&&Jn){var r=i.decode(),o=!0;return r.then(function(){o&&e()}).catch(function(t){o&&("EncodingError"===t.name&&"Invalid image type."===t.message?e():n())}),function(){o=!1}}var a=[d(i,"load",e),d(i,"error",n)];return function(){a.forEach(_)}}var Ah=function(s){function t(t,e,n,i,r,o){var a=s.call(this,t,e,n,No)||this;return a.src_=i,a.image_=new Image,null!==r&&(a.image_.crossOrigin=r),a.unlisten_=null,a.state=No,a.imageLoadFunction_=o,a}return Mh(t,s),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=zo,this.unlistenImage_(),this.changed()},t.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Ve(this.extent)/this.image_.height),this.state=ko,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state!=No&&this.state!=zo||(this.state=1,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Th(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.setImage=function(t){this.image_=t},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(Ch),Eh=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ih=function(s){function t(t,e,n,i,r,o){var a=s.call(this)||this;return a.hitDetectionImage_=null,a.image_=t||new Image,null!==i&&(a.image_.crossOrigin=i),a.canvas_=o?document.createElement("canvas"):null,a.color_=o,a.unlisten_=null,a.imageState_=r,a.size_=n,a.src_=e,a.tainted_,a}return Eh(t,s),t.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===ko){this.tainted_=!1;var t=xt(1,1);try{t.drawImage(this.image_,0,0),t.getImageData(0,0,1,1)}catch(t){this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(R)},t.prototype.handleImageError_=function(){this.imageState_=zo,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=ko,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],n=this.size_[1],i=xt(e,n);i.fillRect(0,0,e,n),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(this.imageState_==No){this.imageState_=1;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Th(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},t.prototype.replaceColor_=function(){if(this.color_&&!this.isTainted_()){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");t.drawImage(this.image_,0,0);for(var e=t.getImageData(0,0,this.image_.width,this.image_.height),n=e.data,i=this.color_[0]/255,r=this.color_[1]/255,o=this.color_[2]/255,a=0,s=n.length;a<s;a+=4)n[a]*=i,n[a+1]*=r,n[a+2]*=o;t.putImageData(e,0,0)}},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(L),Lh="bottom-left",Rh="bottom-right",Oh="top-left",Nh="top-right",kh=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale}return t.prototype.clone=function(){return new t({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getAnchor=function(){return s()},t.prototype.getImage=function(t){return s()},t.prototype.getHitDetectionImage=function(t){return s()},t.prototype.getImageState=function(){return s()},t.prototype.getImageSize=function(){return s()},t.prototype.getHitDetectionImageSize=function(){return s()},t.prototype.getOrigin=function(){return s()},t.prototype.getSize=function(){return s()},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t},t.prototype.listenImageChange=function(t){s()},t.prototype.load=function(){s()},t.prototype.unlistenImageChange=function(t){s()},t}(),zh=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Dh=function(c){function t(t){var e=this,n=t||{},i=void 0!==n.opacity?n.opacity:1,r=void 0!==n.rotation?n.rotation:0,o=void 0!==n.scale?n.scale:1,a=void 0!==n.rotateWithView&&n.rotateWithView;(e=c.call(this,{opacity:i,rotation:r,scale:o,rotateWithView:a})||this).anchor_=void 0!==n.anchor?n.anchor:[.5,.5],e.normalizedAnchor_=null,e.anchorOrigin_=void 0!==n.anchorOrigin?n.anchorOrigin:Oh,e.anchorXUnits_=void 0!==n.anchorXUnits?n.anchorXUnits:bh,e.anchorYUnits_=void 0!==n.anchorYUnits?n.anchorYUnits:bh,e.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null;var s=void 0!==n.img?n.img:null,l=void 0!==n.imgSize?n.imgSize:null,u=n.src;K(!(void 0!==u&&s),4),K(!s||s&&l,5),void 0!==u&&0!==u.length||!s||(u=s.src||dt(s)),K(void 0!==u&&0<u.length,6);var h=void 0!==n.src?No:ko;return e.color_=void 0!==n.color?pt(n.color):null,e.iconImage_=function(t,e,n,i,r,o){var a=uo.get(e,i,o);return a||(a=new Ih(t,e,n,i,r,o),uo.set(e,i,o,a)),a}(s,u,l,e.crossOrigin_,h,e.color_),e.offset_=void 0!==n.offset?n.offset:[0,0],e.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:Oh,e.origin_=null,e.size_=void 0!==n.size?n.size:null,e}return zh(t,c),t.prototype.clone=function(){return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},t.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==bh||this.anchorYUnits_==bh){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==bh&&(t[0]*=e[0]),this.anchorYUnits_==bh&&(t[1]*=e[1])}if(this.anchorOrigin_!=Oh){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=Nh&&this.anchorOrigin_!=Rh||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=Lh&&this.anchorOrigin_!=Rh||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},t.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(t){return this.iconImage_.getImage(t)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=Oh){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=Nh&&this.offsetOrigin_!=Rh||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=Lh&&this.offsetOrigin_!=Rh||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(R,t)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(R,t)},t}(kh),Fh=function(){function e(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},e.prototype.getColor=function(){return this.color_},e.prototype.getLineCap=function(){return this.lineCap_},e.prototype.getLineDash=function(){return this.lineDash_},e.prototype.getLineDashOffset=function(){return this.lineDashOffset_},e.prototype.getLineJoin=function(){return this.lineJoin_},e.prototype.getMiterLimit=function(){return this.miterLimit_},e.prototype.getWidth=function(){return this.width_},e.prototype.setColor=function(t){this.color_=t},e.prototype.setLineCap=function(t){this.lineCap_=t},e.prototype.setLineDash=function(t){this.lineDash_=t},e.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},e.prototype.setLineJoin=function(t){this.lineJoin_=t},e.prototype.setMiterLimit=function(t){this.miterLimit_=t},e.prototype.setWidth=function(t){this.width_=t},e}(),Gh=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),jh=function(i){function e(t){var e=this,n=void 0!==t.rotateWithView&&t.rotateWithView;return(e=i.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==t.rotation?t.rotation:0,scale:1})||this).canvas_=null,e.hitDetectionCanvas_=null,e.fill_=void 0!==t.fill?t.fill:null,e.origin_=[0,0],e.points_=t.points,e.radius_=void 0!==t.radius?t.radius:t.radius1,e.radius2_=t.radius2,e.angle_=void 0!==t.angle?t.angle:0,e.stroke_=void 0!==t.stroke?t.stroke:null,e.anchor_=null,e.size_=null,e.imageSize_=null,e.hitDetectionImageSize_=null,e.render(),e}return Gh(e,i),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return ko},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.render=function(){var t,e="round",n="round",i=0,r=null,o=0,a=0;this.stroke_&&(null===(t=this.stroke_.getColor())&&(t="#000"),t=gt(t),void 0===(a=this.stroke_.getWidth())&&(a=1),r=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset(),void 0===(n=this.stroke_.getLineJoin())&&(n="round"),void 0===(e=this.stroke_.getLineCap())&&(e="round"),void 0===(i=this.stroke_.getMiterLimit())&&(i=10));var s=2*(this.radius_+a)+1,l={strokeStyle:t,strokeWidth:a,size:s,lineCap:e,lineDash:r,lineDashOffset:o,lineJoin:n,miterLimit:i},u=xt(s,s);this.canvas_=u.canvas;var h=s=this.canvas_.width;this.draw_(l,u,0,0),this.createHitDetectionCanvas_(l),this.anchor_=[s/2,s/2],this.size_=[s,s],this.imageSize_=[h,h]},e.prototype.draw_=function(t,e,n,i){var r,o,a;e.setTransform(1,0,0,1,0,0),e.translate(n,i),e.beginPath();var s=this.points_;if(s===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var l=void 0!==this.radius2_?this.radius2_:this.radius_;for(l!==this.radius_&&(s*=2),r=0;r<=s;r++)o=2*r*Math.PI/s-Math.PI/2+this.angle_,a=r%2==0?this.radius_:l,e.lineTo(t.size/2+a*Math.cos(o),t.size/2+a*Math.sin(o))}if(this.fill_){var u=this.fill_.getColor();null===u&&(u="#000"),e.fillStyle=gt(u),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.hitDetectionCanvas_=this.canvas_,this.fill_){var e=this.fill_.getColor(),n=0;if("string"==typeof e&&(e=pt(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){var i=xt(t.size,t.size);this.hitDetectionCanvas_=i.canvas,this.drawHitDetectionCanvas_(t,i,0,0)}}},e.prototype.drawHitDetectionCanvas_=function(t,e,n,i){e.setTransform(1,0,0,1,0,0),e.translate(n,i),e.beginPath();var r=this.points_;if(r===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o=void 0!==this.radius2_?this.radius2_:this.radius_;o!==this.radius_&&(r*=2);var a=void 0,s=void 0,l=void 0;for(a=0;a<=r;a++)l=2*a*Math.PI/r-Math.PI/2+this.angle_,s=a%2==0?this.radius_:o,e.lineTo(t.size/2+s*Math.cos(l),t.size/2+s*Math.sin(l))}e.fillStyle="#000",e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e}(kh),Vh=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),qh=function(n){function e(t){var e=t||{};return n.call(this,{points:1/0,fill:e.fill,radius:e.radius,stroke:e.stroke})||this}return Vh(e,n),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(jh),Bh=function(){function e(t){var e=t||{};this.geometry_=null,this.geometryFunction_=Xh,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return e.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new e({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.setRenderer=function(t){this.renderer_=t},e.prototype.getGeometry=function(){return this.geometry_},e.prototype.getGeometryFunction=function(){return this.geometryFunction_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t},e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t},e.prototype.getText=function(){return this.text_},e.prototype.setText=function(t){this.text_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=Xh,this.geometry_=e},e.prototype.setZIndex=function(t){this.zIndex_=t},e}(),Uh=null;function Wh(t,e){if(!Uh){var n=new wh({color:"rgba(255,255,255,0.4)"}),i=new Fh({color:"#3399CC",width:1.25});Uh=[new Bh({image:new qh({fill:n,stroke:i,radius:5}),fill:n,stroke:i})]}return Uh}function Zh(){var t={},e=[255,255,255,1],n=[0,153,255,1];return t[re.POLYGON]=[new Bh({fill:new wh({color:[255,255,255,.5]})})],t[re.MULTI_POLYGON]=t[re.POLYGON],t[re.LINE_STRING]=[new Bh({stroke:new Fh({color:e,width:5})}),new Bh({stroke:new Fh({color:n,width:3})})],t[re.MULTI_LINE_STRING]=t[re.LINE_STRING],t[re.CIRCLE]=t[re.POLYGON].concat(t[re.LINE_STRING]),t[re.POINT]=[new Bh({image:new qh({radius:6,fill:new wh({color:n}),stroke:new Fh({color:e,width:1.5})}),zIndex:1/0})],t[re.MULTI_POINT]=t[re.POINT],t[re.GEOMETRY_COLLECTION]=t[re.POLYGON].concat(t[re.LINE_STRING],t[re.POINT]),t}function Xh(t){return t.getGeometry()}var Hh,Yh,Kh,Jh,Qh,$h,tc,ec,nc,ic=Bh,rc=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.text_=e.text,this.textAlign_=e.textAlign,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new wh({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}(),oc=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ac=["http://www.google.com/kml/ext/2.2"],sc=[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"],lc={fraction:bh,pixels:Ph,insetPixels:Ph},uc=Dl(sc,{ExtendedData:tp,Region:ep,MultiGeometry:Ll(Wc,"geometry"),LineString:Ll(qc,"geometry"),LinearRing:Ll(Bc,"geometry"),Point:Ll(Zc,"geometry"),Polygon:Ll(Hc,"geometry"),Style:Ll(Kc),StyleMap:function(t,e){var n=Ac(t,e);if(n){var i=e[e.length-1];Array.isArray(n)?i.Style=n:"string"==typeof n?i.styleUrl=n:K(!1,38)}},address:Ll(nu),description:Ll(nu),name:Ll(nu),open:Ll(Yl),phoneNumber:Ll(nu),styleUrl:Ll(Cc),visibility:Ll(Yl)},Dl(ac,{MultiTrack:Ll(function(t,e){var n=Gl([],kc,t,e);if(n)return new us(n)},"geometry"),Track:Ll(Dc,"geometry")})),hc=Dl(sc,{ExtendedData:tp,Region:ep,Link:function(t,e){Fl(cc,t,e)},address:Ll(nu),description:Ll(nu),name:Ll(nu),open:Ll(Yl),phoneNumber:Ll(nu),visibility:Ll(Yl)}),cc=Dl(sc,{href:Ll(Cc)}),pc=Dl(sc,{LatLonAltBox:function(t,e){var n=Gl({},rp,t,e);if(n){var i=e[e.length-1],r=[parseFloat(n.west),parseFloat(n.south),parseFloat(n.east),parseFloat(n.north)];i.extent=r,i.altitudeMode=n.altitudeMode,i.minAltitude=parseFloat(n.minAltitude),i.maxAltitude=parseFloat(n.maxAltitude)}},Lod:function(t,e){var n=Gl({},op,t,e);if(n){var i=e[e.length-1];i.minLodPixels=parseFloat(n.minLodPixels),i.maxLodPixels=parseFloat(n.maxLodPixels),i.minFadeExtent=parseFloat(n.minFadeExtent),i.maxFadeExtent=parseFloat(n.maxFadeExtent)}}}),fc=Dl(sc,["Document","Placemark"]),dc=Dl(sc,{Document:Rl(function(t,e,n){Vl({node:t},hp,cp,e,n,void 0,this)}),Placemark:Rl(kp)}),yc=null,mc=null,gc=null,vc=null,xc=null,_c=null,wc=function(i){function t(t){var e=i.call(this)||this,n=t||{};return _c||(yc=new wh({color:Hh=[255,255,255,1]}),mc=new Dh({anchor:Yh=[20,2],anchorOrigin:Lh,anchorXUnits:Kh=Ph,anchorYUnits:Jh=Ph,crossOrigin:"anonymous",rotation:0,scale:tc=.5,size:Qh=[64,64],src:$h="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),ec="NO_IMAGE",gc=new Fh({color:Hh,width:1}),nc=new Fh({color:[51,51,51,1],width:2}),vc=new rc({font:"bold 16px Helvetica",fill:yc,stroke:nc,scale:.8}),xc=new ic({fill:yc,image:mc,text:vc,stroke:gc,zIndex:0}),_c=[xc]),e.dataProjection=xn("EPSG:4326"),e.defaultStyle_=n.defaultStyle?n.defaultStyle:_c,e.extractStyles_=void 0===n.extractStyles||n.extractStyles,e.writeStyles_=void 0===n.writeStyles||n.writeStyles,e.sharedStyles_={},e.showPointNames_=void 0===n.showPointNames||n.showPointNames,e}return oc(t,i),t.prototype.readDocumentOrFolder_=function(t,e){var n=Gl([],Dl(sc,{Document:Tl(this.readDocumentOrFolder_,this),Folder:Tl(this.readDocumentOrFolder_,this),Placemark:Al(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),t,e,this);return n||void 0},t.prototype.readPlacemark_=function(t,e){var n=Gl({geometry:null},uc,t,e);if(n){var i=new Ba,r=t.getAttribute("id");null!==r&&i.setId(r);var o=e[0],a=n.geometry;if(a&&Qa(a,!1,o),i.setGeometry(a),delete n.geometry,this.extractStyles_){var s=function(s,l,u,h,c){return function(t,e){var n,i=c,r="";if(i){var o=t.getGeometry();o&&(i=o.getType()===re.POINT)}if(i&&(r=t.get("name"),i=i&&!!r),s)return i?(n=bc(s[0],r),s.concat(n)):s;if(l){var a=function t(e,n,i){return Array.isArray(e)?e:"string"==typeof e?(!(e in i)&&"#"+e in i&&(e="#"+e),t(i[e],n,i)):n}(l,u,h);return i?(n=bc(a[0],r),a.concat(n)):a}return i?(n=bc(u[0],r),u.concat(n)):u}}(n.Style,n.styleUrl,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);i.setStyle(s)}return delete n.Style,i.setProperties(n,!0),i}},t.prototype.readSharedStyle_=function(t,e){var n=t.getAttribute("id");if(null!==n){var i=Kc(t,e);if(i){var r=void 0,o=t.baseURI;o&&"about:blank"!=o||(o=window.location.href),r=o?new URL("#"+n,o).href:"#"+n,this.sharedStyles_[r]=i}}},t.prototype.readSharedStyleMap_=function(t,e){var n=t.getAttribute("id");if(null!==n){var i=Ac(t,e);if(i){var r,o=t.baseURI;o&&"about:blank"!=o||(o=window.location.href),r=o?new URL("#"+n,o).href:"#"+n,this.sharedStyles_[r]=i}}},t.prototype.readFeatureFromNode=function(t,e){if(!M(sc,t.namespaceURI))return null;var n=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return n||null},t.prototype.readFeaturesFromNode=function(t,e){if(!M(sc,t.namespaceURI))return[];var n,i=t.localName;if("Document"==i||"Folder"==i)return(n=this.readDocumentOrFolder_(t,[this.getReadOptions(t,e)]))||[];if("Placemark"==i){var r=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return r?[r]:[]}if("kml"!=i)return[];n=[];for(var o=t.firstElementChild;o;o=o.nextElementSibling){var a=this.readFeaturesFromNode(o,e);a&&g(n,a)}return n},t.prototype.readName=function(t){if(t){if("string"!=typeof t)return Cl(t)?this.readNameFromDocument(t):this.readNameFromNode(t);var e=Ml(t);return this.readNameFromDocument(e)}},t.prototype.readNameFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var n=this.readNameFromNode(e);if(n)return n}},t.prototype.readNameFromNode=function(t){for(var e=t.firstElementChild;e;e=e.nextElementSibling)if(M(sc,e.namespaceURI)&&"name"==e.localName)return nu(e);for(e=t.firstElementChild;e;e=e.nextElementSibling){var n=e.localName;if(M(sc,e.namespaceURI)&&("Document"==n||"Folder"==n||"Placemark"==n||"kml"==n)){var i=this.readNameFromNode(e);if(i)return i}}},t.prototype.readNetworkLinks=function(t){var e=[];if("string"==typeof t){var n=Ml(t);g(e,this.readNetworkLinksFromDocument(n))}else Cl(t)?g(e,this.readNetworkLinksFromDocument(t)):g(e,this.readNetworkLinksFromNode(t));return e},t.prototype.readNetworkLinksFromDocument=function(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&g(e,this.readNetworkLinksFromNode(n));return e},t.prototype.readNetworkLinksFromNode=function(t){for(var e=[],n=t.firstElementChild;n;n=n.nextElementSibling)if(M(sc,n.namespaceURI)&&"NetworkLink"==n.localName){var i=Gl({},hc,n,[]);e.push(i)}for(n=t.firstElementChild;n;n=n.nextElementSibling){var r=n.localName;!M(sc,n.namespaceURI)||"Document"!=r&&"Folder"!=r&&"kml"!=r||g(e,this.readNetworkLinksFromNode(n))}return e},t.prototype.readRegion=function(t){var e=[];if("string"==typeof t){var n=Ml(t);g(e,this.readRegionFromDocument(n))}else Cl(t)?g(e,this.readRegionFromDocument(t)):g(e,this.readRegionFromNode(t));return e},t.prototype.readRegionFromDocument=function(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&g(e,this.readRegionFromNode(n));return e},t.prototype.readRegionFromNode=function(t){for(var e=[],n=t.firstElementChild;n;n=n.nextElementSibling)if(M(sc,n.namespaceURI)&&"Region"==n.localName){var i=Gl({},pc,n,[]);e.push(i)}for(n=t.firstElementChild;n;n=n.nextElementSibling){var r=n.localName;!M(sc,n.namespaceURI)||"Document"!=r&&"Folder"!=r&&"kml"!=r||g(e,this.readRegionFromNode(n))}return e},t.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=Pl(sc[4],"kml"),i="http://www.w3.org/2000/xmlns/";n.setAttributeNS(i,"xmlns:gx",ac[0]),n.setAttributeNS(i,"xmlns:xsi",bl),n.setAttributeNS(bl,"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var r={node:n},o={};1<t.length?o.Document=t:1==t.length&&(o.Placemark=t[0]);var a=fc[n.namespaceURI],s=zl(o,a);return Vl(r,dc,kl,s,[e],a,this),n},t}(Bl);function bc(t,e){var n=null,i=[0,0],r="start";if(t.getImage()){var o=t.getImage().getImageSize();if(null===o&&(o=Qh),2==o.length){var a=t.getImage().getScale();i[0]=a*o[0]/2,i[1]=-a*o[1]/2,r="left"}}if(null!==t.getText()){var s=t.getText();(n=s.clone()).setFont(s.getFont()||vc.getFont()),n.setScale(s.getScale()||vc.getScale()),n.setFill(s.getFill()||vc.getFill()),n.setStroke(s.getStroke()||nc)}else n=vc.clone();return n.setText(e),n.setOffsetX(i[0]),n.setOffsetY(i[1]),n.setTextAlign(r),new ic({text:n})}function Pc(t){var e=Sl(t,!1),n=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(n){var i=n[1];return[parseInt(i.substr(6,2),16),parseInt(i.substr(4,2),16),parseInt(i.substr(2,2),16),parseInt(i.substr(0,2),16)/255]}}function Sc(t){for(var e,n=Sl(t,!1),i=[],r=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i;e=r.exec(n);){var o=parseFloat(e[1]),a=parseFloat(e[2]),s=e[3]?parseFloat(e[3]):0;i.push(o,a,s),n=n.substr(e[0].length)}if(""===n)return i}function Cc(t){var e=Sl(t,!1).trim(),n=t.baseURI;return n&&"about:blank"!=n||(n=window.location.href),n?new URL(e,n).href:e}function Mc(t){return Ql(t)}var Tc=Dl(sc,{Pair:function(t,e){var n=Gl({},np,t,e);if(n){var i=n.key;if(i&&"normal"==i){var r=n.styleUrl;r&&(e[e.length-1]=r);var o=n.Style;o&&(e[e.length-1]=o)}}}});function Ac(t,e){return Gl(void 0,Tc,t,e)}var Ec=Dl(sc,{Icon:Ll(function(t,e){var n=Gl({},Fc,t,e);return n||null}),heading:Ll(Ql),hotSpot:Ll(function(t){var e,n=t.getAttribute("xunits"),i=t.getAttribute("yunits");return e="insetPixels"!==n?"insetPixels"!==i?Lh:Oh:"insetPixels"!==i?Rh:Nh,{x:parseFloat(t.getAttribute("x")),xunits:lc[n],y:parseFloat(t.getAttribute("y")),yunits:lc[i],origin:e}}),scale:Ll(Mc)}),Ic=Dl(sc,{color:Ll(Pc),scale:Ll(Mc)}),Lc=Dl(sc,{color:Ll(Pc),width:Ll(Ql)}),Rc=Dl(sc,{color:Ll(Pc),fill:Ll(Yl),outline:Ll(Yl)}),Oc=Dl(sc,{coordinates:El(Sc)});function Nc(t,e){return Gl(null,Oc,t,e)}var kc=Dl(ac,{Track:Al(Dc)}),zc=Dl(sc,{when:function(t,e){var n=e[e.length-1].whens,i=Sl(t,!1),r=Date.parse(i);n.push(isNaN(r)?0:r)}},Dl(ac,{coord:function(t,e){var n=e[e.length-1].flatCoordinates,i=Sl(t,!1),r=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(i);if(r){var o=parseFloat(r[1]),a=parseFloat(r[2]),s=parseFloat(r[3]);n.push(o,a,s,0)}else n.push(0,0,0,0)}}));function Dc(t,e){var n=Gl({flatCoordinates:[],whens:[]},zc,t,e);if(n){for(var i=n.flatCoordinates,r=n.whens,o=0,a=Math.min(i.length,r.length);o<a;++o)i[4*o+3]=r[o];return new ss(i,ji)}}var Fc=Dl(sc,{href:Ll(Cc)},Dl(ac,{x:Ll(Ql),y:Ll(Ql),w:Ll(Ql),h:Ll(Ql)})),Gc=Dl(sc,{coordinates:El(Sc)});function jc(t,e){return Gl(null,Gc,t,e)}var Vc=Dl(sc,{extrude:Ll(Yl),tessellate:Ll(Yl),altitudeMode:Ll(nu)});function qc(t,e){var n=Gl({},Vc,t,e),i=jc(t,e);if(i){var r=new ss(i,Fi);return r.setProperties(n,!0),r}}function Bc(t,e){var n=Gl({},Vc,t,e),i=jc(t,e);if(i){var r=new Vr(i,Fi,[i.length]);return r.setProperties(n,!0),r}}var Uc=Dl(sc,{LineString:Al(qc),LinearRing:Al(Bc),MultiGeometry:Al(Wc),Point:Al(Zc),Polygon:Al(Hc)});function Wc(t,e){var n,i=Gl([],Uc,t,e);if(!i)return null;if(0===i.length)return new ml(i);for(var r=!0,o=i[0].getType(),a=1,s=i.length;a<s;++a)if(i[a].getType()!=o){r=!1;break}if(r){var l=void 0,u=void 0;if(o==re.POINT){var h=i[0];for(l=h.getLayout(),u=h.getFlatCoordinates(),a=1,s=i.length;a<s;++a)g(u,i[a].getFlatCoordinates());Jc(n=new cs(u,l),i)}else o==re.LINE_STRING?Jc(n=new us(i),i):o==re.POLYGON?Jc(n=new ds(i),i):o==re.GEOMETRY_COLLECTION?n=new ml(i):K(!1,37)}else n=new ml(i);return n}function Zc(t,e){var n=Gl({},Vc,t,e),i=jc(t,e);if(i){var r=new Cr(i,Fi);return r.setProperties(n,!0),r}}var Xc=Dl(sc,{innerBoundaryIs:function(t,e){var n=Gl(void 0,ap,t,e);n&&e[e.length-1].push(n)},outerBoundaryIs:function(t,e){var n=Gl(void 0,sp,t,e);n&&(e[e.length-1][0]=n)}});function Hc(t,e){var n=Gl({},Vc,t,e),i=Gl([null],Xc,t,e);if(i&&i[0]){for(var r=i[0],o=[r.length],a=1,s=i.length;a<s;++a)g(r,i[a]),o.push(r.length);var l=new Vr(r,Fi,o);return l.setProperties(n,!0),l}}var Yc=Dl(sc,{IconStyle:function(t,e){var n=Gl({},Ec,t,e);if(n){var i,r,o,a,s=e[e.length-1],l="Icon"in n?n.Icon:{},u=!("Icon"in n)||0<Object.keys(l).length,h=l.href;h?i=h:u&&(i=$h);var c,p=Lh,f=n.hotSpot;f?(r=[f.x,f.y],o=f.xunits,a=f.yunits,p=f.origin):i===$h?(r=Yh,o=Kh,a=Jh):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(r=[.5,0],a=o=bh);var d,y=l.x,m=l.y;void 0!==y&&void 0!==m&&(c=[y,m]);var g,v=l.w,x=l.h;void 0!==v&&void 0!==x&&(d=[v,x]);var _=n.heading;void 0!==_&&(g=nt(_));var w=n.scale;if(u){i==$h&&(d=Qh,void 0===w&&(w=tc));var b=new Dh({anchor:r,anchorOrigin:p,anchorXUnits:o,anchorYUnits:a,crossOrigin:"anonymous",offset:c,offsetOrigin:Lh,rotation:g,scale:w,size:d,src:i});s.imageStyle=b}else s.imageStyle=ec}},LabelStyle:function(t,e){var n=Gl({},Ic,t,e);if(n){var i=e[e.length-1],r=new rc({fill:new wh({color:"color"in n?n.color:Hh}),scale:n.scale});i.textStyle=r}},LineStyle:function(t,e){var n=Gl({},Lc,t,e);if(n){var i=e[e.length-1],r=new Fh({color:"color"in n?n.color:Hh,width:"width"in n?n.width:1});i.strokeStyle=r}},PolyStyle:function(t,e){var n=Gl({},Rc,t,e);if(n){var i=e[e.length-1],r=new wh({color:"color"in n?n.color:Hh});i.fillStyle=r;var o=n.fill;void 0!==o&&(i.fill=o);var a=n.outline;void 0!==a&&(i.outline=a)}}});function Kc(t,e){var n=Gl({},Yc,t,e);if(!n)return null;var i,r="fillStyle"in n?n.fillStyle:yc,o=n.fill;void 0===o||o||(r=null),"imageStyle"in n?n.imageStyle!=ec&&(i=n.imageStyle):i=mc;var a="textStyle"in n?n.textStyle:vc,s="strokeStyle"in n?n.strokeStyle:gc,l=n.outline;return void 0===l||l||(s=null),[new ic({fill:r,image:i,stroke:s,text:a,zIndex:void 0})]}function Jc(t,e){var n,i,r,o=e.length,a=new Array(e.length),s=new Array(e.length),l=new Array(e.length);r=i=n=!1;for(var u=0;u<o;++u){var h=e[u];a[u]=h.get("extrude"),s[u]=h.get("tessellate"),l[u]=h.get("altitudeMode"),n=n||void 0!==a[u],i=i||void 0!==s[u],r=r||l[u]}n&&t.set("extrude",a),i&&t.set("tessellate",s),r&&t.set("altitudeMode",l)}var Qc=Dl(sc,{displayName:Ll(nu),value:Ll(nu)}),$c=Dl(sc,{Data:function(t,e){var n=t.getAttribute("name");Fl(Qc,t,e);var i=e[e.length-1];n&&i.displayName?i[n]={value:i.value,displayName:i.displayName,toString:function(){return i.value}}:null!==n?i[n]=i.value:null!==i.displayName&&(i[i.displayName]=i.value),delete i.value},SchemaData:function(t,e){Fl(ip,t,e)}});function tp(t,e){Fl($c,t,e)}function ep(t,e){Fl(pc,t,e)}var np=Dl(sc,{Style:Ll(Kc),key:Ll(nu),styleUrl:Ll(Cc)}),ip=Dl(sc,{SimpleData:function(t,e){var n=t.getAttribute("name");if(null!==n){var i=nu(t);e[e.length-1][n]=i}}}),rp=Dl(sc,{altitudeMode:Ll(nu),minAltitude:Ll(Ql),maxAltitude:Ll(Ql),north:Ll(Ql),south:Ll(Ql),east:Ll(Ql),west:Ll(Ql)}),op=Dl(sc,{minLodPixels:Ll(Ql),maxLodPixels:Ll(Ql),minFadeExtent:Ll(Ql),maxFadeExtent:Ll(Ql)}),ap=Dl(sc,{LinearRing:El(Nc)}),sp=Dl(sc,{LinearRing:El(Nc)});function lp(t,e){for(var n=pt(e),i=[255*(4==n.length?n[3]:1),n[2],n[1],n[0]],r=0;r<4;++r){var o=Math.floor(i[r]).toString(16);i[r]=1==o.length?"0"+o:o}au(t,i.join(""))}var up=Dl(sc,{Data:Rl(function(t,e,n){t.setAttribute("name",e.name);var i={node:t},r=e.value;"object"==typeof r?(null!==r&&r.displayName&&Vl(i,up,kl,[r.displayName],n,["displayName"]),null!==r&&r.value&&Vl(i,up,kl,[r.value],n,["value"])):Vl(i,up,kl,[r],n,["value"])}),value:Rl(function(t,e){au(t,e)}),displayName:Rl(function(t,e){!function(t,e){t.appendChild(wl.createCDATASection(e))}(t,e)})}),hp=Dl(sc,{Placemark:Rl(kp)}),cp=function(t,e,n){return Pl(e[e.length-1].node.namespaceURI,"Placemark")},pp=Nl("Data"),fp=Dl(sc,["href"],Dl(ac,["x","y","w","h"])),dp=Dl(sc,{href:Rl(au)},Dl(ac,{x:Rl(ru),y:Rl(ru),w:Rl(ru),h:Rl(ru)})),yp=function(t,e,n){return Pl(ac[0],"gx:"+n)},mp=Dl(sc,["scale","heading","Icon","hotSpot"]),gp=Dl(sc,{Icon:Rl(function(t,e,n){var i={node:t},r=n[n.length-1].node,o=fp[r.namespaceURI],a=zl(e,o);Vl(i,dp,kl,a,n,o),a=zl(e,o=fp[ac[0]]),Vl(i,dp,yp,a,n,o)}),heading:Rl(ru),hotSpot:Rl(function(t,e){t.setAttribute("x",String(e.x)),t.setAttribute("y",String(e.y)),t.setAttribute("xunits",e.xunits),t.setAttribute("yunits",e.yunits)}),scale:Rl(Wp)}),vp=Dl(sc,["color","scale"]),xp=Dl(sc,{color:Rl(lp),scale:Rl(Wp)}),_p=Dl(sc,["color","width"]),wp=Dl(sc,{color:Rl(lp),width:Rl(ru)}),bp={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Pp=function(t,e,n){if(t)return Pl(e[e.length-1].node.namespaceURI,bp[t.getType()])},Sp=Nl("Point"),Cp=Nl("LineString"),Mp=Nl("LinearRing"),Tp=Nl("Polygon"),Ap=Dl(sc,{LineString:Rl(Fp),Point:Rl(Fp),Polygon:Rl(qp),GeometryCollection:Rl(Ep)});function Ep(t,e,n){var i,r,o={node:t},a=e.getType();a==re.GEOMETRY_COLLECTION?(i=e.getGeometries(),r=Pp):a==re.MULTI_POINT?(i=e.getPoints(),r=Sp):a==re.MULTI_LINE_STRING?(i=e.getLineStrings(),r=Cp):a==re.MULTI_POLYGON?(i=e.getPolygons(),r=Tp):K(!1,39),Vl(o,Ap,r,i,n)}var Ip=Dl(sc,{LinearRing:Rl(Fp)});function Lp(t,e,n){Vl({node:t},Ip,Mp,[e],n)}var Rp=Dl(sc,{ExtendedData:Rl(function(t,e,n){for(var i={node:t},r=e.names,o=e.values,a=r.length,s=0;s<a;s++)Vl(i,up,pp,[{name:r[s],value:o[s]}],n)}),MultiGeometry:Rl(Ep),LineString:Rl(Fp),LinearRing:Rl(Fp),Point:Rl(Fp),Polygon:Rl(qp),Style:Rl(function(t,e,n){var i={node:t},r={},o=e.getFill(),a=e.getStroke(),s=e.getImage(),l=e.getText();s&&"function"==typeof s.getSrc&&(r.IconStyle=s),l&&(r.LabelStyle=l),a&&(r.LineStyle=a),o&&(r.PolyStyle=o);var u=n[n.length-1].node,h=Zp[u.namespaceURI],c=zl(r,h);Vl(i,Xp,kl,c,n,h)}),address:Rl(au),description:Rl(au),name:Rl(au),open:Rl(iu),phoneNumber:Rl(au),styleUrl:Rl(au),visibility:Rl(iu)}),Op=Dl(sc,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Np=Nl("ExtendedData");function kp(t,e,n){var i={node:t};e.getId()&&t.setAttribute("id",e.getId());var r=e.getProperties(),o={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};o[e.getGeometryName()]=1;var a=Object.keys(r||{}).sort().filter(function(t){return!o[t]}),s=e.getStyleFunction();if(s){var l=s(e,0);if(l){var u=Array.isArray(l)?l[0]:l;this.writeStyles_&&(r.Style=u);var h=u.getText();h&&(r.name=h.getText())}}var c=n[n.length-1].node,p=Op[c.namespaceURI],f=zl(r,p);if(Vl(i,Rp,kl,f,n,p),0<a.length){var d=zl(r,a);Vl(i,Rp,Np,[{names:a,values:d}],n)}var y=n[0],m=e.getGeometry();m=m&&Qa(m,!0,y),Vl(i,Rp,Pp,[m],n)}var zp=Dl(sc,["extrude","tessellate","altitudeMode","coordinates"]),Dp=Dl(sc,{extrude:Rl(iu),tessellate:Rl(iu),altitudeMode:Rl(au),coordinates:Rl(function(t,e,n){var i,r=n[n.length-1],o=r.layout,a=r.stride;o==Di||o==Gi?i=2:o==Fi||o==ji?i=3:K(!1,34);var s=e.length,l="";if(0<s){l+=e[0];for(var u=1;u<i;++u)l+=","+e[u];for(var h=a;h<s;h+=a)for(l+=" "+e[h],u=1;u<i;++u)l+=","+e[h+u]}au(t,l)})});function Fp(t,e,n){var i=e.getFlatCoordinates(),r={node:t};r.layout=e.getLayout(),r.stride=e.getStride();var o=e.getProperties();o.coordinates=i;var a=n[n.length-1].node,s=zp[a.namespaceURI],l=zl(o,s);Vl(r,Dp,kl,l,n,s)}var Gp=Dl(sc,{outerBoundaryIs:Rl(Lp),innerBoundaryIs:Rl(Lp)}),jp=Nl("innerBoundaryIs"),Vp=Nl("outerBoundaryIs");function qp(t,e,n){var i=e.getLinearRings(),r=i.shift(),o={node:t};Vl(o,Gp,jp,i,n),Vl(o,Gp,Vp,[r],n)}var Bp=Dl(sc,{color:Rl(lp)}),Up=Nl("color");function Wp(t,e){ru(t,Math.round(1e6*e)/1e6)}var Zp=Dl(sc,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Xp=Dl(sc,{IconStyle:Rl(function(t,e,n){var i={node:t},r={},o=e.getSrc(),a=e.getSize(),s=e.getImageSize(),l={href:o};if(a){l.w=a[0],l.h=a[1];var u=e.getAnchor(),h=e.getOrigin();if(h&&s&&0!==h[0]&&h[1]!==a[1]&&(l.x=h[0],l.y=s[1]-(h[1]+a[1])),u&&(u[0]!==a[0]/2||u[1]!==a[1]/2)){var c={x:u[0],xunits:Ph,y:a[1]-u[1],yunits:Ph};r.hotSpot=c}}r.Icon=l;var p=e.getScale();1!==p&&(r.scale=p);var f=e.getRotation();0!==f&&(r.heading=f);var d=n[n.length-1].node,y=mp[d.namespaceURI],m=zl(r,y);Vl(i,gp,kl,m,n,y)}),LabelStyle:Rl(function(t,e,n){var i={node:t},r={},o=e.getFill();o&&(r.color=o.getColor());var a=e.getScale();a&&1!==a&&(r.scale=a);var s=n[n.length-1].node,l=vp[s.namespaceURI],u=zl(r,l);Vl(i,xp,kl,u,n,l)}),LineStyle:Rl(function(t,e,n){var i={node:t},r={color:e.getColor(),width:e.getWidth()},o=n[n.length-1].node,a=_p[o.namespaceURI],s=zl(r,a);Vl(i,wp,kl,s,n,a)}),PolyStyle:Rl(function(t,e,n){Vl({node:t},Bp,Up,[e.getColor()],n)})}),Hp=wc,Yp=n(2),Kp=n.n(Yp),Jp=[1,0,0,1,0,0],Qp=function(){function t(t,e,n,i,r){this.extent_,this.id_=r,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=i}return t.prototype.get=function(t){return this.properties_[t]},t.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===re.POINT?Ee(this.flatCoordinates_):Ie(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},t.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=Ge(this.getExtent());this.flatInteriorPoints_=Er(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=ps(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Ir(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=is(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},t.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,n=this.ends_,i=0,r=n.length;i<r;++i){var o=n[i],a=is(t,e,o,2,.5);g(this.flatMidpoints_,a),e=o}}return this.flatMidpoints_},t.prototype.getId=function(){return this.id_},t.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},t.prototype.getGeometry=function(){return this},t.prototype.getSimplifiedGeometry=function(t){return this},t.prototype.simplifyTransformed=function(t,e){return this},t.prototype.getProperties=function(){return this.properties_},t.prototype.getStride=function(){return 2},t.prototype.getStyleFunction=function(){},t.prototype.getType=function(){return this.type_},t.prototype.transform=function(t,e){var n=(t=xn(t)).getExtent(),i=t.getWorldExtent(),r=Ve(i)/Ve(n);Ki(Jp,i[0],i[3],r,-r,0,0,0),Vi(this.flatCoordinates_,0,this.flatCoordinates_.length,2,Jp,this.flatCoordinates_)},t}();Qp.prototype.getEnds=function(){return this.ends_},Qp.prototype.getEndss=Qp.prototype.getEnds,Qp.prototype.getFlatCoordinates=Qp.prototype.getOrientedFlatCoordinates;var $p=Qp,tf=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function ef(t,e,n){if(3===t){var i={keys:[],values:[],features:[]},r=n.readVarint()+n.pos;n.readFields(nf,i,r),i.length=i.features.length,i.length&&(e[i.name]=i)}}function nf(t,e,n){if(15===t)e.version=n.readVarint();else if(1===t)e.name=n.readString();else if(5===t)e.extent=n.readVarint();else if(2===t)e.features.push(n.pos);else if(3===t)e.keys.push(n.readString());else if(4===t){for(var i=null,r=n.readVarint()+n.pos;n.pos<r;)i=1==(t=n.readVarint()>>3)?n.readString():2===t?n.readFloat():3===t?n.readDouble():4===t?n.readVarint64():5===t?n.readVarint():6===t?n.readSVarint():7===t?n.readBoolean():null;e.values.push(i)}}function rf(t,e,n){if(1==t)e.id=n.readVarint();else if(2==t)for(var i=n.readVarint()+n.pos;n.pos<i;){var r=e.layer.keys[n.readVarint()],o=e.layer.values[n.readVarint()];e.properties[r]=o}else 3==t?e.type=n.readVarint():4==t&&(e.geometry=n.pos)}function of(t,e,n){t.pos=e.features[n];var i=t.readVarint()+t.pos,r={layer:e,type:0,properties:{}};return t.readFields(rf,r,i),r}var af=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.dataProjection=new $e({code:"",units:Qe.TILE_PIXELS}),e.featureClass_=n.featureClass?n.featureClass:$p,e.geometryName_=n.geometryName,e.layerName_=n.layerName?n.layerName:"layer",e.layers_=n.layers?n.layers:null,e.idProperty_=n.idProperty,e}return tf(t,i),t.prototype.readRawGeometry_=function(t,e,n,i){t.pos=e.geometry;for(var r=t.readVarint()+t.pos,o=1,a=0,s=0,l=0,u=0,h=0;t.pos<r;){if(!a){var c=t.readVarint();o=7&c,a=c>>3}a--,1===o||2===o?(s+=t.readSVarint(),l+=t.readSVarint(),1===o&&h<u&&(i.push(u),h=u),n.push(s,l),u+=2):7===o?h<u&&(n.push(n[h],n[h+1]),u+=2):K(!1,59)}h<u&&(i.push(u),h=u)},t.prototype.createFeature_=function(t,e,n){var i,r=e.type;if(0===r)return null;var o,a=e.properties;this.idProperty_?(o=a[this.idProperty_],delete a[this.idProperty_]):o=e.id,a[this.layerName_]=e.layer.name;var s=[],l=[];this.readRawGeometry_(t,e,s,l);var u=function(t,e){var n;return 1===t?n=1===e?re.POINT:re.MULTI_POINT:2===t?n=1===e?re.LINE_STRING:re.MULTI_LINE_STRING:3===t&&(n=re.POLYGON),n}(r,l.length);if(this.featureClass_===$p)(i=new this.featureClass_(u,s,l,a,o)).transform(n.dataProjection,n.featureProjection);else{var h=void 0;if(u==re.POLYGON){for(var c=[],p=0,f=0,d=0,y=l.length;d<y;++d){var m=l[d];kr(s,p,m,2)||(c.push(l.slice(f,d)),f=d),p=m}h=1<c.length?new ds(s,Di,c):new Vr(s,Di,l)}else h=u===re.POINT?new Cr(s,Di):u===re.LINE_STRING?new ss(s,Di):u===re.POLYGON?new Vr(s,Di,l):u===re.MULTI_POINT?new cs(s,Di):u===re.MULTI_LINE_STRING?new us(s,Di,l):null;i=new this.featureClass_,this.geometryName_&&i.setGeometryName(this.geometryName_);var g=Qa(h,!1,n);i.setGeometry(g),i.setId(o),i.setProperties(a,!0)}return i},t.prototype.getType=function(){return Ua},t.prototype.readFeatures=function(t,e){var n=this.layers_,i=this.adaptOptions(e),r=xn(i.dataProjection);r.setWorldExtent(i.extent),i.dataProjection=r;var o=new Kp.a(t),a=o.readFields(ef,{}),s=[];for(var l in a)if(!n||-1!=n.indexOf(l)){var u=a[l],h=u?[0,0,u.extent,u.extent]:null;r.setExtent(h);for(var c=0,p=u.length;c<p;++c){var f=of(o,u,c);s.push(this.createFeature_(o,f,i))}}return s},t.prototype.readProjection=function(t){return this.dataProjection},t.prototype.setLayers=function(t){this.layers_=t},t}(Ja),sf=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),lf=[null],uf=Dl(lf,{nd:function(t,e){e[e.length-1].ndrefs.push(t.getAttribute("ref"))},tag:ff}),hf=Dl(lf,{node:function(t,e){var n=e[0],i=e[e.length-1],r=t.getAttribute("id"),o=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))];i.nodes[r]=o;var a=Gl({tags:{}},pf,t,e);if(!f(a.tags)){var s=new Cr(o);Qa(s,!1,n);var l=new Ba(s);l.setId(r),l.setProperties(a.tags,!0),i.features.push(l)}},way:function(t,e){var n=Gl({id:t.getAttribute("id"),ndrefs:[],tags:{}},uf,t,e);e[e.length-1].ways.push(n)}}),cf=function(e){function t(){var t=e.call(this)||this;return t.dataProjection=xn("EPSG:4326"),t}return sf(t,e),t.prototype.readFeaturesFromNode=function(t,e){var n=this.getReadOptions(t,e);if("osm"==t.localName){for(var i=Gl({nodes:{},ways:[],features:[]},hf,t,[n]),r=0;r<i.ways.length;r++){for(var o=i.ways[r],a=[],s=0,l=o.ndrefs.length;s<l;s++)g(a,i.nodes[o.ndrefs[s]]);var u=void 0;Qa(u=o.ndrefs[0]==o.ndrefs[o.ndrefs.length-1]?new Vr(a,Di,[a.length]):new ss(a,Di),!1,n);var h=new Ba(u);h.setId(o.id),h.setProperties(o.tags,!0),i.features.push(h)}if(i.features)return i.features}return[]},t}(Bl),pf=Dl(lf,{tag:ff});function ff(t,e){e[e.length-1].tags[t.getAttribute("k")]=t.getAttribute("v")}var df=cf;function yf(t,e,n,i,r,o){var a,s;s=void 0!==r?(a=r,void 0!==o?o:0):(a=[],0);for(var l=e;l<n;){var u=t[l++];a[s++]=t[l++],a[s++]=u;for(var h=2;h<i;++h)a[s++]=t[l++]}return a.length=s,a}var mf=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function gf(t,e,n){var i,r=n||1e5,o=new Array(e);for(i=0;i<e;++i)o[i]=0;for(var a=0,s=t.length;a<s;)for(i=0;i<e;++i,++a){var l=t[a],u=l-o[i];o[i]=l,t[a]=u}return xf(t,r)}function vf(t,e,n){var i,r=n||1e5,o=new Array(e);for(i=0;i<e;++i)o[i]=0;for(var a=_f(t,r),s=0,l=a.length;s<l;)for(i=0;i<e;++i,++s)o[i]+=a[s],a[s]=o[i];return a}function xf(t,e){for(var n=e||1e5,i=0,r=t.length;i<r;++i)t[i]=Math.round(t[i]*n);return function(t){for(var e=0,n=t.length;e<n;++e){var i=t[e];t[e]=i<0?~(i<<1):i<<1}return function(t){for(var e="",n=0,i=t.length;n<i;++n)e+=wf(t[n]);return e}(t)}(t)}function _f(t,e){for(var n=e||1e5,i=function(t){for(var e=function(t){for(var e=[],n=0,i=0,r=0,o=t.length;r<o;++r){var a=t.charCodeAt(r)-63;n|=(31&a)<<i,a<32?(e.push(n),i=n=0):i+=5}return e}(t),n=0,i=e.length;n<i;++n){var r=e[n];e[n]=1&r?~(r>>1):r>>1}return e}(t),r=0,o=i.length;r<o;++r)i[r]/=n;return i}function wf(t){for(var e,n="";32<=t;)e=63+(32|31&t),n+=String.fromCharCode(e),t>>=5;return e=t+63,n+=String.fromCharCode(e)}var bf=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.dataProjection=xn("EPSG:4326"),e.factor_=n.factor?n.factor:1e5,e.geometryLayout_=n.geometryLayout?n.geometryLayout:Di,e}return mf(t,i),t.prototype.readFeatureFromText=function(t,e){var n=this.readGeometryFromText(t,e);return new Ba(n)},t.prototype.readFeaturesFromText=function(t,e){return[this.readFeatureFromText(t,e)]},t.prototype.readGeometryFromText=function(t,e){var n=ir(this.geometryLayout_),i=vf(t,n,this.factor_);yf(i,0,i.length,n,i);var r=yr(i,0,i.length,n);return Qa(new ss(r,this.geometryLayout_),!1,this.adaptOptions(e))},t.prototype.writeFeatureText=function(t,e){var n=t.getGeometry();return n?this.writeGeometryText(n,e):(K(!1,40),"")},t.prototype.writeFeaturesText=function(t,e){return this.writeFeatureText(t[0],e)},t.prototype.writeGeometryText=function(t,e){var n=(t=Qa(t,!0,this.adaptOptions(e))).getFlatCoordinates(),i=t.getStride();return yf(n,0,n.length,i,n),gf(n,i,this.factor_)},t}(rh),Pf=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sf=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.layerName_=n.layerName,e.layers_=n.layers?n.layers:null,e.dataProjection=xn(n.dataProjection?n.dataProjection:"EPSG:4326"),e}return Pf(t,i),t.prototype.readFeaturesFromObject=function(t,e){if("Topology"!=t.type)return[];var n=t,i=void 0,r=null,o=null;n.transform&&(r=(i=n.transform).scale,o=i.translate);var a=n.arcs;i&&function(t,e,n){for(var i=0,r=t.length;i<r;++i)Ef(t[i],e,n)}(a,r,o);var s=[],l=n.objects,u=this.layerName_,h=void 0;for(var c in l)this.layers_&&-1==this.layers_.indexOf(c)||("GeometryCollection"===l[c].type?(h=l[c],s.push.apply(s,Tf(h,a,r,o,u,c,e))):(h=l[c],s.push(Af(h,a,r,o,u,c,e))));return s},t.prototype.readProjectionFromObject=function(t){return this.dataProjection},t}(ns),Cf={Point:function(t,e,n){var i=t.coordinates;return e&&n&&If(i,e,n),new Cr(i)},LineString:function(t,e){var n=Mf(t.arcs,e);return new ss(n)},Polygon:function(t,e){for(var n=[],i=0,r=t.arcs.length;i<r;++i)n[i]=Mf(t.arcs[i],e);return new Vr(n)},MultiPoint:function(t,e,n){var i=t.coordinates;if(e&&n)for(var r=0,o=i.length;r<o;++r)If(i[r],e,n);return new cs(i)},MultiLineString:function(t,e){for(var n=[],i=0,r=t.arcs.length;i<r;++i)n[i]=Mf(t.arcs[i],e);return new us(n)},MultiPolygon:function(t,e){for(var n=[],i=0,r=t.arcs.length;i<r;++i){for(var o=t.arcs[i],a=[],s=0,l=o.length;s<l;++s)a[s]=Mf(o[s],e);n[i]=a}return new ds(n)}};function Mf(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;++o)n=t[o],0<o&&r.pop(),i=0<=n?e[n]:e[~n].slice().reverse(),r.push.apply(r,i);for(var s=0,l=r.length;s<l;++s)r[s]=r[s].slice();return r}function Tf(t,e,n,i,r,o,a){for(var s=t.geometries,l=[],u=0,h=s.length;u<h;++u)l[u]=Af(s[u],e,n,i,r,o,a);return l}function Af(t,e,n,i,r,o,a){var s,l=t.type,u=Cf[l];s="Point"===l||"MultiPoint"===l?u(t,n,i):u(t,e);var h=new Ba;h.setGeometry(Qa(s,!1,a)),void 0!==t.id&&h.setId(t.id);var c=t.properties;return r&&((c=c||{})[r]=o),c&&h.setProperties(c,!0),h}function Ef(t,e,n){for(var i=0,r=0,o=0,a=t.length;o<a;++o){var s=t[o];i+=s[0],r+=s[1],s[0]=i,s[1]=r,If(s,e,n)}}function If(t,e,n){t[0]=t[0]*e[0]+n[0],t[1]=t[1]*e[1]+n[1]}var Lf=Sf,Rf=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Of={"http://www.opengis.net/gml":{boundedBy:Ll(Hl.prototype.readGeometryElement,"bounds")}},Nf={"http://www.opengis.net/wfs":{totalInserted:Ll(tu),totalUpdated:Ll(tu),totalDeleted:Ll(tu)}},kf={"http://www.opengis.net/wfs":{TransactionSummary:Ll(function(t,e){return Gl({},Nf,t,e)},"transactionSummary"),InsertResults:Ll(function(t,e){return Gl([],Uf,t,e)},"insertIds")}},zf={"http://www.opengis.net/wfs":{PropertyName:Rl(au)}},Df={"http://www.opengis.net/wfs":{Insert:Rl(function(t,e,n){var i=n[n.length-1],r=i.featureType,o=i.featureNS,a=i.gmlVersion,s=Pl(o,r);t.appendChild(s),2===a?mu.prototype.writeFeatureElement(s,e,n):hu.prototype.writeFeatureElement(s,e,n)}),Update:Rl(function(t,e,n){var i=n[n.length-1];K(void 0!==e.getId(),27);var r=i.featureType,o=i.featurePrefix,a=i.featureNS,s=Zf(o,r),l=e.getGeometryName();t.setAttribute("typeName",s),t.setAttributeNS(Ff,"xmlns:"+o,a);var u=e.getId();if(void 0!==u){for(var h=e.getKeys(),c=[],p=0,f=h.length;p<f;p++){var d=e.get(h[p]);if(void 0!==d){var y=h[p];d&&"function"==typeof d.getSimplifiedGeometry&&(y=l),c.push({name:y,value:d})}}Vl({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},Df,Nl("Property"),c,n),Wf(t,u,n)}}),Delete:Rl(function(t,e,n){var i=n[n.length-1];K(void 0!==e.getId(),26);var r=i.featureType,o=i.featurePrefix,a=i.featureNS,s=Zf(o,r);t.setAttribute("typeName",s),t.setAttributeNS(Ff,"xmlns:"+o,a);var l=e.getId();void 0!==l&&Wf(t,l,n)}),Property:Rl(function(t,e,n){var i=Pl(jf,"Name"),r=n[n.length-1].gmlVersion;if(t.appendChild(i),au(i,e.name),void 0!==e.value&&null!==e.value){var o=Pl(jf,"Value");t.appendChild(o),e.value&&"function"==typeof e.value.getSimplifiedGeometry?2===r?mu.prototype.writeGeometryElement(o,e.value,n):hu.prototype.writeGeometryElement(o,e.value,n):au(o,e.value)}}),Native:Rl(function(t,e,n){e.vendorId&&t.setAttribute("vendorId",e.vendorId),void 0!==e.safeToIgnore&&t.setAttribute("safeToIgnore",String(e.safeToIgnore)),void 0!==e.value&&au(t,e.value)})}},Ff="http://www.w3.org/2000/xmlns/",Gf="http://www.opengis.net/ogc",jf="http://www.opengis.net/wfs",Vf={"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"},qf=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.featureType_=n.featureType,e.featureNS_=n.featureNS,e.gmlFormat_=n.gmlFormat?n.gmlFormat:new hu,e.schemaLocation_=n.schemaLocation?n.schemaLocation:Vf["1.1.0"],e}return Rf(t,i),t.prototype.getFeatureType=function(){return this.featureType_},t.prototype.setFeatureType=function(t){this.featureType_=t},t.prototype.readFeaturesFromNode=function(t,e){var n={node:t};v(n,{featureType:this.featureType_,featureNS:this.featureNS_}),v(n,this.getReadOptions(t,e||{}));var i=[n];this.gmlFormat_.FEATURE_COLLECTION_PARSERS[Wl].featureMember=Al(Hl.prototype.readFeaturesInternal);var r=Gl([],this.gmlFormat_.FEATURE_COLLECTION_PARSERS,t,i,this.gmlFormat_);return r=r||[]},t.prototype.readTransactionResponse=function(t){if(t){if("string"!=typeof t)return Cl(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t);var e=Ml(t);return this.readTransactionResponseFromDocument(e)}},t.prototype.readFeatureCollectionMetadata=function(t){if(t){if("string"!=typeof t)return Cl(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t);var e=Ml(t);return this.readFeatureCollectionMetadataFromDocument(e)}},t.prototype.readFeatureCollectionMetadataFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(e)},t.prototype.readFeatureCollectionMetadataFromNode=function(t){var e={},n=eu(t.getAttribute("numberOfFeatures"));return e.numberOfFeatures=n,Gl(e,Of,t,[],this.gmlFormat_)},t.prototype.readTransactionResponseFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(e)},t.prototype.readTransactionResponseFromNode=function(t){return Gl({},kf,t,[])},t.prototype.writeGetFeature=function(t){var e,n=Pl(jf,"GetFeature");if(n.setAttribute("service","WFS"),n.setAttribute("version","1.1.0"),t&&(t.handle&&n.setAttribute("handle",t.handle),t.outputFormat&&n.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&n.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&n.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&n.setAttribute("startIndex",String(t.startIndex)),void 0!==t.count&&n.setAttribute("count",String(t.count)),void 0!==t.viewParams&&n.setAttribute("viewParams",t.viewParams),e=t.filter,t.bbox)){K(t.geometryName,12);var i=fl(t.geometryName,t.bbox,t.srsName);e=e?pl(e,i):i}n.setAttributeNS(bl,"xsi:schemaLocation",this.schemaLocation_);var r={node:n};return v(r,{srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:e,propertyNames:t.propertyNames?t.propertyNames:[]}),K(Array.isArray(t.featureTypes),11),function(t,e,n){var i=n[n.length-1],r=v({},i);r.node=t,Vl(r,Xf,Nl("Query"),e,n)}(n,t.featureTypes,[r]),n},t.prototype.writeTransaction=function(t,e,n,i){var r,o,a=[],s=Pl(jf,"Transaction"),l=i.version?i.version:"1.1.0",u="1.0.0"===l?2:3;s.setAttribute("service","WFS"),s.setAttribute("version",l),i&&(r=i.gmlOptions?i.gmlOptions:{},i.handle&&s.setAttribute("handle",i.handle));var h=Vf[l];s.setAttributeNS(bl,"xsi:schemaLocation",h);var c=i.featurePrefix?i.featurePrefix:"feature";return t&&(o=v({node:s},{featureNS:i.featureNS,featureType:i.featureType,featurePrefix:c,gmlVersion:u,hasZ:i.hasZ,srsName:i.srsName}),v(o,r),Vl(o,Df,Nl("Insert"),t,a)),e&&(o=v({node:s},{featureNS:i.featureNS,featureType:i.featureType,featurePrefix:c,gmlVersion:u,hasZ:i.hasZ,srsName:i.srsName}),v(o,r),Vl(o,Df,Nl("Update"),e,a)),n&&Vl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:c,gmlVersion:u,srsName:i.srsName},Df,Nl("Delete"),n,a),i.nativeElements&&Vl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:c,gmlVersion:u,srsName:i.srsName},Df,Nl("Native"),i.nativeElements,a),s},t.prototype.readProjectionFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(e);return null},t.prototype.readProjectionFromNode=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(var e=(t=t.firstElementChild.firstElementChild).firstElementChild;e;e=e.nextElementSibling)if(0!==e.childNodes.length&&(1!==e.childNodes.length||3!==e.firstChild.nodeType)){var n=[{}];return this.gmlFormat_.readGeometryElement(e,n),xn(n.pop().srsName)}return null},t}(Bl),Bf={"http://www.opengis.net/ogc":{FeatureId:Al(function(t,e){return t.getAttribute("fid")})}},Uf={"http://www.opengis.net/wfs":{Feature:function(t,e){Fl(Bf,t,e)}}};function Wf(t,e,n){var i=Pl(Gf,"Filter"),r=Pl(Gf,"FeatureId");i.appendChild(r),r.setAttribute("fid",e),t.appendChild(i)}function Zf(t,e){var n=(t=t||"feature")+":";return 0===e.indexOf(n)?e:n+e}var Xf={"http://www.opengis.net/wfs":{Query:Rl(function(t,e,n){var i,r=n[n.length-1],o=r.featurePrefix,a=r.featureNS,s=r.propertyNames,l=r.srsName;i=o?Zf(o,e):e,t.setAttribute("typeName",i),l&&t.setAttribute("srsName",l),a&&t.setAttributeNS(Ff,"xmlns:"+o,a);var u=v({},r);u.node=t,Vl(u,zf,Nl("PropertyName"),s,n);var h=r.filter;if(h){var c=Pl(Gf,"Filter");t.appendChild(c),Hf(c,h,n)}})},"http://www.opengis.net/ogc":{During:Rl(function(t,e,n){var i=Pl("http://www.opengis.net/fes","ValueReference");au(i,e.propertyName),t.appendChild(i);var r=Pl(Wl,"TimePeriod");t.appendChild(r);var o=Pl(Wl,"begin");r.appendChild(o),td(o,e.begin);var a=Pl(Wl,"end");r.appendChild(a),td(a,e.end)}),And:Rl(Yf),Or:Rl(Yf),Not:Rl(function(t,e,n){var i={node:t},r=e.condition;Vl(i,Xf,Nl(r.getTagName()),[r],n)}),BBOX:Rl(function(t,e,n){n[n.length-1].srsName=e.srsName,Qf(t,e.geometryName),hu.prototype.writeGeometryElement(t,e.extent,n)}),Contains:Rl(function(t,e,n){n[n.length-1].srsName=e.srsName,Qf(t,e.geometryName),hu.prototype.writeGeometryElement(t,e.geometry,n)}),Intersects:Rl(function(t,e,n){n[n.length-1].srsName=e.srsName,Qf(t,e.geometryName),hu.prototype.writeGeometryElement(t,e.geometry,n)}),Within:Rl(function(t,e,n){n[n.length-1].srsName=e.srsName,Qf(t,e.geometryName),hu.prototype.writeGeometryElement(t,e.geometry,n)}),PropertyIsEqualTo:Rl(Kf),PropertyIsNotEqualTo:Rl(Kf),PropertyIsLessThan:Rl(Kf),PropertyIsLessThanOrEqualTo:Rl(Kf),PropertyIsGreaterThan:Rl(Kf),PropertyIsGreaterThanOrEqualTo:Rl(Kf),PropertyIsNull:Rl(function(t,e,n){Qf(t,e.propertyName)}),PropertyIsBetween:Rl(function(t,e,n){Qf(t,e.propertyName);var i=Pl(Gf,"LowerBoundary");t.appendChild(i),$f(i,""+e.lowerBoundary);var r=Pl(Gf,"UpperBoundary");t.appendChild(r),$f(r,""+e.upperBoundary)}),PropertyIsLike:Rl(function(t,e,n){t.setAttribute("wildCard",e.wildCard),t.setAttribute("singleChar",e.singleChar),t.setAttribute("escapeChar",e.escapeChar),void 0!==e.matchCase&&t.setAttribute("matchCase",e.matchCase.toString()),Qf(t,e.propertyName),$f(t,""+e.pattern)})}};function Hf(t,e,n){Vl({node:t},Xf,Nl(e.getTagName()),[e],n)}function Yf(t,e,n){for(var i={node:t},r=e.conditions,o=0,a=r.length;o<a;++o){var s=r[o];Vl(i,Xf,Nl(s.getTagName()),[s],n)}}function Kf(t,e,n){void 0!==e.matchCase&&t.setAttribute("matchCase",e.matchCase.toString()),Qf(t,e.propertyName),$f(t,""+e.expression)}function Jf(t,e,n){var i=Pl(Gf,t);au(i,n),e.appendChild(i)}function Qf(t,e){Jf("PropertyName",t,e)}function $f(t,e){Jf("Literal",t,e)}function td(t,e){var n=Pl(Wl,"TimeInstant");t.appendChild(n);var i=Pl(Wl,"timePosition");n.appendChild(i),au(i,e)}var ed=qf,nd=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),id={POINT:Cr,LINESTRING:ss,POLYGON:Vr,MULTIPOINT:cs,MULTILINESTRING:us,MULTIPOLYGON:ds},rd={};for(var od in re)rd[od]=re[od].toUpperCase();var ad=function(){function t(t){this.wkt=t,this.index_=-1}return t.prototype.isAlpha_=function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"},t.prototype.isNumeric_=function(t,e){return"0"<=t&&t<="9"||"."==t&&!(void 0!==e&&e)},t.prototype.isWhiteSpace_=function(t){return" "==t||"\t"==t||"\r"==t||"\n"==t},t.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},t.prototype.nextToken=function(){var t,e=this.nextChar_(),n=this.index_,i=e;if("("==e)t=2;else if(","==e)t=5;else if(")"==e)t=3;else if(this.isNumeric_(e)||"-"==e)t=4,i=this.readNumber_();else if(this.isAlpha_(e))t=1,i=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);t=6}return{position:n,value:i,type:t}},t.prototype.readNumber_=function(){for(var t,e=this.index_,n=!1,i=!1;"."==t?n=!0:"e"!=t&&"E"!=t||(i=!0),t=this.nextChar_(),this.isNumeric_(t,n)||!i&&("e"==t||"E"==t)||i&&("-"==t||"+"==t););return parseFloat(this.wkt.substring(e,this.index_--))},t.prototype.readText_=function(){for(var t,e=this.index_;t=this.nextChar_(),this.isAlpha_(t););return this.wkt.substring(e,this.index_--).toUpperCase()},t}(),sd=function(){function t(t){this.lexer_=t,this.token_,this.layout_=Di}return t.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},t.prototype.isTokenType=function(t){return this.token_.type==t},t.prototype.match=function(t){var e=this.isTokenType(t);return e&&this.consume_(),e},t.prototype.parse=function(){return this.consume_(),this.parseGeometry_()},t.prototype.parseGeometryLayout_=function(){var t=Di,e=this.token_;if(this.isTokenType(1)){var n=e.value;"Z"===n?t=Fi:"M"===n?t=Gi:"ZM"===n&&(t=ji),t!==Di&&this.consume_()}return t},t.prototype.parseGeometryCollectionText_=function(){if(this.match(2)){for(var t=[];t.push(this.parseGeometry_()),this.match(5););if(this.match(3))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},t.prototype.parsePointText_=function(){if(this.match(2)){var t=this.parsePoint_();if(this.match(3))return t}else if(this.isEmptyGeometry_())return null;throw new Error(this.formatErrorMessage_())},t.prototype.parseLineStringText_=function(){if(this.match(2)){var t=this.parsePointList_();if(this.match(3))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},t.prototype.parsePolygonText_=function(){if(this.match(2)){var t=this.parseLineStringTextList_();if(this.match(3))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiPointText_=function(){if(this.match(2)){var t=void 0;if(t=2==this.token_.type?this.parsePointTextList_():this.parsePointList_(),this.match(3))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiLineStringText_=function(){if(this.match(2)){var t=this.parseLineStringTextList_();if(this.match(3))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiPolygonText_=function(){if(this.match(2)){var t=this.parsePolygonTextList_();if(this.match(3))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},t.prototype.parsePoint_=function(){for(var t=[],e=this.layout_.length,n=0;n<e;++n){var i=this.token_;if(!this.match(4))break;t.push(i.value)}if(t.length==e)return t;throw new Error(this.formatErrorMessage_())},t.prototype.parsePointList_=function(){for(var t=[this.parsePoint_()];this.match(5);)t.push(this.parsePoint_());return t},t.prototype.parsePointTextList_=function(){for(var t=[this.parsePointText_()];this.match(5);)t.push(this.parsePointText_());return t},t.prototype.parseLineStringTextList_=function(){for(var t=[this.parseLineStringText_()];this.match(5);)t.push(this.parseLineStringText_());return t},t.prototype.parsePolygonTextList_=function(){for(var t=[this.parsePolygonText_()];this.match(5);)t.push(this.parsePolygonText_());return t},t.prototype.isEmptyGeometry_=function(){var t=this.isTokenType(1)&&"EMPTY"==this.token_.value;return t&&this.consume_(),t},t.prototype.formatErrorMessage_=function(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"},t.prototype.parseGeometry_=function(){var t=this.token_;if(this.match(1)){var e=t.value;if(this.layout_=this.parseGeometryLayout_(),"GEOMETRYCOLLECTION"==e){var n=this.parseGeometryCollectionText_();return new ml(n)}var i=id[e];if(!i)throw new Error("Invalid geometry type: "+e);var r=void 0;switch(e){case"POINT":r=this.parsePointText_();break;case"LINESTRING":r=this.parseLineStringText_();break;case"POLYGON":r=this.parsePolygonText_();break;case"MULTIPOINT":r=this.parseMultiPointText_();break;case"MULTILINESTRING":r=this.parseMultiLineStringText_();break;case"MULTIPOLYGON":r=this.parseMultiPolygonText_();break;default:throw new Error("Invalid geometry type: "+e)}return new i(r=r||(i===id.POINT?[NaN,NaN]:[]),this.layout_)}throw new Error(this.formatErrorMessage_())},t}(),ld=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.splitCollection_=void 0!==n.splitCollection&&n.splitCollection,e}return nd(t,i),t.prototype.parse_=function(t){var e=new ad(t);return new sd(e).parse()},t.prototype.readFeatureFromText=function(t,e){var n=this.readGeometryFromText(t,e);if(n){var i=new Ba;return i.setGeometry(n),i}return null},t.prototype.readFeaturesFromText=function(t,e){for(var n=[],i=this.readGeometryFromText(t,e),r=[],o=0,a=(n=this.splitCollection_&&i.getType()==re.GEOMETRY_COLLECTION?i.getGeometriesArray():[i]).length;o<a;++o){var s=new Ba;s.setGeometry(n[o]),r.push(s)}return r},t.prototype.readGeometryFromText=function(t,e){var n=this.parse_(t);return n?Qa(n,!1,e):null},t.prototype.writeFeatureText=function(t,e){var n=t.getGeometry();return n?this.writeGeometryText(n,e):""},t.prototype.writeFeaturesText=function(t,e){if(1==t.length)return this.writeFeatureText(t[0],e);for(var n=[],i=0,r=t.length;i<r;++i)n.push(t[i].getGeometry());var o=new ml(n);return this.writeGeometryText(o,e)},t.prototype.writeGeometryText=function(t,e){return fd(Qa(t,!0,e))},t}(rh);function ud(t){var e=t.getCoordinates();return 0===e.length?"":e.join(" ")}function hd(t){for(var e=t.getCoordinates(),n=[],i=0,r=e.length;i<r;++i)n.push(e[i].join(" "));return n.join(",")}function cd(t){for(var e=[],n=t.getLinearRings(),i=0,r=n.length;i<r;++i)e.push("("+hd(n[i])+")");return e.join(",")}var pd={Point:ud,LineString:hd,Polygon:cd,MultiPoint:function(t){for(var e=[],n=t.getPoints(),i=0,r=n.length;i<r;++i)e.push("("+ud(n[i])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],n=t.getLineStrings(),i=0,r=n.length;i<r;++i)e.push("("+hd(n[i])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],n=t.getPolygons(),i=0,r=n.length;i<r;++i)e.push("("+cd(n[i])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],n=t.getGeometries(),i=0,r=n.length;i<r;++i)e.push(fd(n[i]));return e.join(",")}};function fd(t){var e=t.getType(),n=(0,pd[e])(t);if(e=e.toUpperCase(),"function"==typeof t.getFlatCoordinates){var i=function(t){var e=t.getLayout(),n="";return e!==Fi&&e!==ji||(n+="Z"),e!==Gi&&e!==ji||(n+="M"),n}(t);0<i.length&&(e+=" "+i)}return 0===n.length?e+" EMPTY":e+"("+n+")"}var dd=ld;function yd(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}var md=function(){function t(){}return t.prototype.read=function(t){if(t){if("string"!=typeof t)return Cl(t)?this.readFromDocument(t):this.readFromNode(t);var e=Ml(t);return this.readFromDocument(e)}return null},t.prototype.readFromDocument=function(t){},t.prototype.readFromNode=function(t){},t}(),gd=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),vd=[null,"http://www.opengis.net/wms"],xd=Dl(vd,{Service:Ll(function(t,e){return Gl({},bd,t,e)}),Capability:Ll(function(t,e){return Gl({},_d,t,e)})}),_d=Dl(vd,{Request:Ll(function(t,e){return Gl({},Id,t,e)}),Exception:Ll(function(t,e){return Gl([],Md,t,e)}),Layer:Ll(function(t,e){return Gl({},Td,t,e)})}),wd=function(e){function t(){var t=e.call(this)||this;return t.version=void 0,t}return gd(t,e),t.prototype.readFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFromNode(e);return null},t.prototype.readFromNode=function(t){this.version=t.getAttribute("version").trim();var e=Gl({version:this.version},xd,t,[]);return e||null},t}(md),bd=Dl(vd,{Name:Ll(nu),Title:Ll(nu),Abstract:Ll(nu),KeywordList:Ll(jd),OnlineResource:Ll(yd),ContactInformation:Ll(function(t,e){return Gl({},Pd,t,e)}),Fees:Ll(nu),AccessConstraints:Ll(nu),LayerLimit:Ll(tu),MaxWidth:Ll(tu),MaxHeight:Ll(tu)}),Pd=Dl(vd,{ContactPersonPrimary:Ll(function(t,e){return Gl({},Sd,t,e)}),ContactPosition:Ll(nu),ContactAddress:Ll(function(t,e){return Gl({},Cd,t,e)}),ContactVoiceTelephone:Ll(nu),ContactFacsimileTelephone:Ll(nu),ContactElectronicMailAddress:Ll(nu)}),Sd=Dl(vd,{ContactPerson:Ll(nu),ContactOrganization:Ll(nu)}),Cd=Dl(vd,{AddressType:Ll(nu),Address:Ll(nu),City:Ll(nu),StateOrProvince:Ll(nu),PostCode:Ll(nu),Country:Ll(nu)}),Md=Dl(vd,{Format:Al(nu)}),Td=Dl(vd,{Name:Ll(nu),Title:Ll(nu),Abstract:Ll(nu),KeywordList:Ll(jd),CRS:Il(nu),EX_GeographicBoundingBox:Ll(function(t,e){var n=Gl({},Ed,t,e);if(n){var i=n.westBoundLongitude,r=n.southBoundLatitude,o=n.eastBoundLongitude,a=n.northBoundLatitude;if(void 0!==i&&void 0!==r&&void 0!==o&&void 0!==a)return[i,r,o,a]}}),BoundingBox:Il(function(t,e){var n=[$l(t.getAttribute("minx")),$l(t.getAttribute("miny")),$l(t.getAttribute("maxx")),$l(t.getAttribute("maxy"))],i=[$l(t.getAttribute("resx")),$l(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:n,res:i}}),Dimension:Il(function(t,e){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:Kl(t.getAttribute("multipleValues")),nearestValue:Kl(t.getAttribute("nearestValue")),current:Kl(t.getAttribute("current")),values:nu(t)}}),Attribution:Ll(function(t,e){return Gl({},Ad,t,e)}),AuthorityURL:Il(function(t,e){var n=Dd(t,e);if(n)return n.name=t.getAttribute("name"),n}),Identifier:Il(nu),MetadataURL:Il(function(t,e){var n=Dd(t,e);if(n)return n.type=t.getAttribute("type"),n}),DataURL:Il(Dd),FeatureListURL:Il(Dd),Style:Il(function(t,e){return Gl({},Nd,t,e)}),MinScaleDenominator:Ll(Ql),MaxScaleDenominator:Ll(Ql),Layer:Il(function(t,e){var n=e[e.length-1],i=Gl({},Td,t,e);if(i){var r=Kl(t.getAttribute("queryable"));void 0===r&&(r=n.queryable),i.queryable=void 0!==r&&r;var o=eu(t.getAttribute("cascaded"));void 0===o&&(o=n.cascaded),i.cascaded=o;var a=Kl(t.getAttribute("opaque"));void 0===a&&(a=n.opaque),i.opaque=void 0!==a&&a;var s=Kl(t.getAttribute("noSubsets"));void 0===s&&(s=n.noSubsets),i.noSubsets=void 0!==s&&s;var l=$l(t.getAttribute("fixedWidth"));l=l||n.fixedWidth,i.fixedWidth=l;var u=$l(t.getAttribute("fixedHeight"));return u=u||n.fixedHeight,i.fixedHeight=u,["Style","CRS","AuthorityURL"].forEach(function(t){if(t in n){var e=i[t]||[];i[t]=e.concat(n[t])}}),["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"].forEach(function(t){if(!(t in i)){var e=n[t];i[t]=e}}),i}})}),Ad=Dl(vd,{Title:Ll(nu),OnlineResource:Ll(yd),LogoURL:Ll(Gd)}),Ed=Dl(vd,{westBoundLongitude:Ll(Ql),eastBoundLongitude:Ll(Ql),southBoundLatitude:Ll(Ql),northBoundLatitude:Ll(Ql)}),Id=Dl(vd,{GetCapabilities:Ll(Fd),GetMap:Ll(Fd),GetFeatureInfo:Ll(Fd)}),Ld=Dl(vd,{Format:Il(nu),DCPType:Il(function(t,e){return Gl({},Rd,t,e)})}),Rd=Dl(vd,{HTTP:Ll(function(t,e){return Gl({},Od,t,e)})}),Od=Dl(vd,{Get:Ll(Dd),Post:Ll(Dd)}),Nd=Dl(vd,{Name:Ll(nu),Title:Ll(nu),Abstract:Ll(nu),LegendURL:Il(Gd),StyleSheetURL:Ll(Dd),StyleURL:Ll(Dd)}),kd=Dl(vd,{Format:Ll(nu),OnlineResource:Ll(yd)}),zd=Dl(vd,{Keyword:Al(nu)});function Dd(t,e){return Gl({},kd,t,e)}function Fd(t,e){return Gl({},Ld,t,e)}function Gd(t,e){var n=Dd(t,e);if(n){var i=[eu(t.getAttribute("width")),eu(t.getAttribute("height"))];return n.size=i,n}}function jd(t,e){return Gl([],zd,t,e)}var Vd=wd,qd=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bd=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.featureNS_="http://mapserver.gis.umn.edu/mapserver",e.gmlFormat_=new mu,e.layers_=n.layers?n.layers:null,e}return qd(t,i),t.prototype.getLayers=function(){return this.layers_},t.prototype.setLayers=function(t){this.layers_=t},t.prototype.readFeatures_=function(t,e){t.setAttribute("namespaceURI",this.featureNS_);var n=t.localName,i=[];if(0===t.childNodes.length)return i;if("msGMLOutput"==n)for(var r=0,o=t.childNodes.length;r<o;r++){var a=t.childNodes[r];if(a.nodeType===Node.ELEMENT_NODE){var s=a,l=e[0],u=s.localName.replace("_layer","");if(!this.layers_||M(this.layers_,u)){var h=u+"_feature";l.featureType=h,l.featureNS=this.featureNS_;var c={};c[h]=Al(this.gmlFormat_.readFeatureElement,this.gmlFormat_);var p=Dl([l.featureNS,null],c);s.setAttribute("namespaceURI",this.featureNS_);var f=Gl([],p,s,e,this.gmlFormat_);f&&g(i,f)}}}if("FeatureCollection"==n){var d=Gl([],this.gmlFormat_.FEATURE_COLLECTION_PARSERS,t,[{}],this.gmlFormat_);d&&(i=d)}return i},t.prototype.readFeaturesFromNode=function(t,e){var n={};return e&&v(n,this.getReadOptions(t,e)),this.readFeatures_(t,[n])},t}(Bl),Ud=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wd=[null,"http://www.opengis.net/ows/1.1"],Zd=Dl(Wd,{ServiceIdentification:Ll(function(t,e){return Gl({},oy,t,e)}),ServiceProvider:Ll(function(t,e){return Gl({},ay,t,e)}),OperationsMetadata:Ll(function(t,e){return Gl({},ey,t,e)})}),Xd=function(t){function e(){return t.call(this)||this}return Ud(e,t),e.prototype.readFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFromNode(e);return null},e.prototype.readFromNode=function(t){var e=Gl({},Zd,t,[]);return e||null},e}(md),Hd=Dl(Wd,{DeliveryPoint:Ll(nu),City:Ll(nu),AdministrativeArea:Ll(nu),PostalCode:Ll(nu),Country:Ll(nu),ElectronicMailAddress:Ll(nu)}),Yd=Dl(Wd,{Value:Il(function(t,e){return nu(t)})}),Kd=Dl(Wd,{AllowedValues:Ll(function(t,e){return Gl({},Yd,t,e)})}),Jd=Dl(Wd,{Phone:Ll(function(t,e){return Gl({},ny,t,e)}),Address:Ll(function(t,e){return Gl({},Hd,t,e)})}),Qd=Dl(Wd,{HTTP:Ll(function(t,e){return Gl({},$d,t,e)})}),$d=Dl(Wd,{Get:Il(function(t,e){var n=yd(t);if(n)return Gl({href:n},iy,t,e)}),Post:void 0}),ty=Dl(Wd,{DCP:Ll(function(t,e){return Gl({},Qd,t,e)})}),ey=Dl(Wd,{Operation:function(t,e){var n=t.getAttribute("name"),i=Gl({},ty,t,e);i&&(e[e.length-1][n]=i)}}),ny=Dl(Wd,{Voice:Ll(nu),Facsimile:Ll(nu)}),iy=Dl(Wd,{Constraint:Il(function(t,e){var n=t.getAttribute("name");if(n)return Gl({name:n},Kd,t,e)})}),ry=Dl(Wd,{IndividualName:Ll(nu),PositionName:Ll(nu),ContactInfo:Ll(function(t,e){return Gl({},Jd,t,e)})}),oy=Dl(Wd,{Abstract:Ll(nu),AccessConstraints:Ll(nu),Fees:Ll(nu),Title:Ll(nu),ServiceTypeVersion:Ll(nu),ServiceType:Ll(nu)}),ay=Dl(Wd,{ProviderName:Ll(nu),ProviderSite:Ll(yd),ServiceContact:Ll(function(t,e){return Gl({},ry,t,e)})}),sy=Xd,ly=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),uy=[null,"http://www.opengis.net/wmts/1.0"],hy=[null,"http://www.opengis.net/ows/1.1"],cy=Dl(uy,{Contents:Ll(function(t,e){return Gl({},fy,t,e)})}),py=function(e){function t(){var t=e.call(this)||this;return t.owsParser_=new sy,t}return ly(t,e),t.prototype.readFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFromNode(e);return null},t.prototype.readFromNode=function(t){var e=t.getAttribute("version").trim(),n=this.owsParser_.readFromNode(t);return n?(n.version=e,(n=Gl(n,cy,t,[]))||null):null},t}(md),fy=Dl(uy,{Layer:Il(function(t,e){return Gl({},dy,t,e)}),TileMatrixSet:Il(function(t,e){return Gl({},wy,t,e)})}),dy=Dl(uy,{Style:Il(function(t,e){var n=Gl({},yy,t,e);if(n){var i="true"===t.getAttribute("isDefault");return n.isDefault=i,n}}),Format:Il(nu),TileMatrixSetLink:Il(function(t,e){return Gl({},my,t,e)}),Dimension:Il(function(t,e){return Gl({},xy,t,e)}),ResourceURL:Il(function(t,e){var n=t.getAttribute("format"),i=t.getAttribute("template"),r=t.getAttribute("resourceType"),o={};return n&&(o.format=n),i&&(o.template=i),r&&(o.resourceType=r),o})},Dl(hy,{Title:Ll(nu),Abstract:Ll(nu),WGS84BoundingBox:Ll(function(t,e){var n=Gl([],_y,t,e);if(2==n.length)return ve(n)}),Identifier:Ll(nu)})),yy=Dl(uy,{LegendURL:Il(function(t,e){var n={};return n.format=t.getAttribute("format"),n.href=yd(t),n})},Dl(hy,{Title:Ll(nu),Identifier:Ll(nu)})),my=Dl(uy,{TileMatrixSet:Ll(nu),TileMatrixSetLimits:Ll(function(t,e){return Gl([],gy,t,e)})}),gy=Dl(uy,{TileMatrixLimits:Al(function(t,e){return Gl({},vy,t,e)})}),vy=Dl(uy,{TileMatrix:Ll(nu),MinTileRow:Ll(tu),MaxTileRow:Ll(tu),MinTileCol:Ll(tu),MaxTileCol:Ll(tu)}),xy=Dl(uy,{Default:Ll(nu),Value:Il(nu)},Dl(hy,{Identifier:Ll(nu)})),_y=Dl(hy,{LowerCorner:Al(Py),UpperCorner:Al(Py)}),wy=Dl(uy,{WellKnownScaleSet:Ll(nu),TileMatrix:Il(function(t,e){return Gl({},by,t,e)})},Dl(hy,{SupportedCRS:Ll(nu),Identifier:Ll(nu)})),by=Dl(uy,{TopLeftCorner:Ll(Py),ScaleDenominator:Ll(Ql),TileWidth:Ll(tu),TileHeight:Ll(tu),MatrixWidth:Ll(tu),MatrixHeight:Ll(tu)},Dl(hy,{Identifier:Ll(nu)}));function Py(t,e){var n=nu(t).split(/\s+/);if(n&&2==n.length){var i=+n[0],r=+n[1];if(!isNaN(i)&&!isNaN(r))return[i,r]}}var Sy=py,Cy=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),My="accuracyGeometry",Ty="altitudeAccuracy",Ay="position",Ey="projection",Iy="tracking",Ly="trackingOptions",Ry=function(n){function t(t){var e=n.call(this,"error")||this;return e.code=t.code,e.message=t.message,e}return Cy(t,n),t}(E),Oy=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.position_=null,e.transform_=gn,e.watchId_=void 0,e.addEventListener(W(Ey),e.handleProjectionChanged_),e.addEventListener(W(Iy),e.handleTrackingChanged_),void 0!==n.projection&&e.setProjection(n.projection),void 0!==n.trackingOptions&&e.setTrackingOptions(n.trackingOptions),e.setTracking(void 0!==n.tracking&&n.tracking),e}return Cy(t,i),t.prototype.disposeInternal=function(){this.setTracking(!1),i.prototype.disposeInternal.call(this)},t.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=Mn(xn("EPSG:4326"),t),this.position_&&this.set(Ay,this.transform_(this.position_)))},t.prototype.handleTrackingChanged_=function(){if("geolocation"in navigator){var t=this.getTracking();t&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):t||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},t.prototype.positionChange_=function(t){var e=t.coords;this.set("accuracy",e.accuracy),this.set("altitude",null===e.altitude?void 0:e.altitude),this.set(Ty,null===e.altitudeAccuracy?void 0:e.altitudeAccuracy),this.set("heading",null===e.heading?void 0:nt(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];var n=this.transform_(this.position_);this.set(Ay,n),this.set("speed",null===e.speed?void 0:e.speed);var i=qr(this.position_,e.accuracy);i.applyTransform(this.transform_),this.set(My,i),this.changed()},t.prototype.positionError_=function(t){this.setTracking(!1),this.dispatchEvent(new Ry(t))},t.prototype.getAccuracy=function(){return this.get("accuracy")},t.prototype.getAccuracyGeometry=function(){return this.get(My)||null},t.prototype.getAltitude=function(){return this.get("altitude")},t.prototype.getAltitudeAccuracy=function(){return this.get(Ty)},t.prototype.getHeading=function(){return this.get("heading")},t.prototype.getPosition=function(){return this.get(Ay)},t.prototype.getProjection=function(){return this.get(Ey)},t.prototype.getSpeed=function(){return this.get("speed")},t.prototype.getTracking=function(){return this.get(Iy)},t.prototype.getTrackingOptions=function(){return this.get(Ly)},t.prototype.setProjection=function(t){this.set(Ey,xn(t))},t.prototype.setTracking=function(t){this.set(Iy,t)},t.prototype.setTrackingOptions=function(t){this.set(Ly,t)},t}(Z),Ny=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ky=function(o){function t(t,e,n){var i=o.call(this)||this;if(void 0!==n&&void 0===e)i.setFlatCoordinates(n,t);else{var r=e||0;i.setCenterAndRadius(t,r,n)}return i}return Ny(t,o),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),void 0,this.layout)},t.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=t-r[0],a=e-r[1],s=o*o+a*a;if(s<i){if(0==s)for(var l=0;l<this.stride;++l)n[l]=r[l];else{var u=this.getRadius()/Math.sqrt(s);for(n[0]=r[0]+u*o,n[1]=r[1]+u*a,l=2;l<this.stride;++l)n[l]=r[l]}return n.length=this.stride,s}return i},t.prototype.containsXY=function(t,e){var n=this.flatCoordinates,i=t-n[0],r=e-n[1];return i*i+r*r<=this.getRadiusSquared_()},t.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.computeExtent=function(t){var e=this.flatCoordinates,n=e[this.stride]-e[0];return Te(e[0]-n,e[1]-n,e[0]+n,e[1]+n,t)},t.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},t.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},t.prototype.getType=function(){return re.CIRCLE},t.prototype.intersectsExtent=function(t){if(Ze(t,this.getExtent())){var e=this.getCenter();return t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||ke(t,this.intersectsCoordinate.bind(this))}return!1},t.prototype.setCenter=function(t){var e=this.stride,n=this.flatCoordinates[e]-this.flatCoordinates[0],i=t.slice();i[e]=i[0]+n;for(var r=1;r<e;++r)i[e+r]=t[r];this.setFlatCoordinates(this.layout,i),this.changed()},t.prototype.setCenterAndRadius=function(t,e,n){this.setLayout(n,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var i=this.flatCoordinates,r=pr(i,0,t,this.stride);i[r++]=i[0]+e;for(var o=1,a=this.stride;o<a;++o)i[r++]=i[o];i.length=r,this.changed()},t.prototype.getCoordinates=function(){return null},t.prototype.setCoordinates=function(t,e){},t.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},t.prototype.rotate=function(t,e){var n=this.getCenter(),i=this.getStride();this.setCenter(qi(n,0,n.length,i,t,e,n)),this.changed()},t.prototype.translate=function(t,e){var n=this.getCenter(),i=this.getStride();this.setCenter(Bi(n,0,n.length,i,t,e,n)),this.changed()},t}(rr);ky.prototype.transform;var zy=ky,Dy="active",Fy=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Gy(t,e,n,i){var r=t.getZoom();if(void 0!==r){var o=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==i?i:250,easing:Ni})}}var jy=function(n){function t(t){var e=n.call(this)||this;return t.handleEvent&&(e.handleEvent=t.handleEvent),e.map_=null,e.setActive(!0),e}return Fy(t,n),t.prototype.getActive=function(){return this.get(Dy)},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(t){return!0},t.prototype.setActive=function(t){this.set(Dy,t)},t.prototype.setMap=function(t){this.map_=t},t}(Z),Vy=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function qy(t){var e=!1;if(t.type==Qn.DBLCLICK){var n=t.originalEvent,i=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_;Gy(i.getView(),o,r,this.duration_),t.preventDefault(),e=!0}return!e}var By=function(i){function t(t){var e=i.call(this,{handleEvent:qy})||this,n=t||{};return e.delta_=n.delta?n.delta:1,e.duration_=void 0!==n.duration?n.duration:250,e}return Vy(t,i),t}(jy),Uy=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wy=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r.features=n,r.file=e,r.projection=i,r}return Uy(t,o),t}(E);function Zy(t){for(var e=t.dataTransfer.files,n=0,i=e.length;n<i;++n){var r=e.item(n),o=new FileReader;o.addEventListener("load",this.handleResult_.bind(this,r)),o.readAsText(r)}}function Xy(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}var Hy=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,{handleEvent:b})||this).formatConstructors_=n.formatConstructors?n.formatConstructors:[],e.projection_=n.projection?xn(n.projection):null,e.dropListenKeys_=null,e.source_=n.source||null,e.target=n.target?n.target:null,e}return Uy(t,i),t.prototype.handleResult_=function(t,e){var n=e.target.result,i=this.getMap(),r=this.projection_;r=r||i.getView().getProjection();for(var o=this.formatConstructors_,a=[],s=0,l=o.length;s<l;++s){var u=new o[s];if((a=this.tryReadFeatures_(u,n,{featureProjection:r}))&&0<a.length)break}this.source_&&(this.source_.clear(),this.source_.addFeatures(a)),this.dispatchEvent(new Wy("addfeatures",t,a,r))},t.prototype.registerListeners_=function(){var t=this.getMap();if(t){var e=this.target?this.target:t.getViewport();this.dropListenKeys_=[x(e,"drop",Zy,this),x(e,"dragenter",Xy,this),x(e,"dragover",Xy,this),x(e,"drop",Xy,this)]}},t.prototype.setActive=function(t){!this.getActive()&&t&&this.registerListeners_(),this.getActive()&&!t&&this.unregisterListeners_(),i.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.unregisterListeners_(),i.prototype.setMap.call(this,t),this.getActive()&&this.registerListeners_()},t.prototype.tryReadFeatures_=function(t,e,n){try{return t.readFeatures(e,n)}catch(t){return null}},t.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(_),this.dropListenKeys_=null)},t}(jy),Yy=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Ky(t){for(var e=t.length,n=0,i=0,r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return[n/e,i/e]}var Jy=function(i){function t(t){var e=this,n=t||{};return e=i.call(this,n)||this,n.handleDownEvent&&(e.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(e.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(e.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(e.handleUpEvent=n.handleUpEvent),n.stopDown&&(e.stopDown=n.stopDown),e.handlingDownUpSequence=!1,e.trackedPointers_={},e.targetPointers=[],e}return Yy(t,i),t.prototype.handleDownEvent=function(t){return!1},t.prototype.handleDragEvent=function(t){},t.prototype.handleEvent=function(t){if(!t.pointerEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==Qn.POINTERDRAG)this.handleDragEvent(t);else if(t.type==Qn.POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&0<this.targetPointers.length}}else if(t.type==Qn.POINTERDOWN){var i=this.handleDownEvent(t);i&&t.preventDefault(),this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==Qn.POINTERMOVE&&this.handleMoveEvent(t);return!e},t.prototype.handleMoveEvent=function(t){},t.prototype.handleUpEvent=function(t){return!1},t.prototype.stopDown=function(t){return t},t.prototype.updateTrackedPointers_=function(t){if(function(t){var e=t.type;return e===Qn.POINTERDOWN||e===Qn.POINTERDRAG||e===Qn.POINTERUP}(t)){var e=t.pointerEvent,n=e.pointerId.toString();t.type==Qn.POINTERUP?delete this.trackedPointers_[n]:(t.type==Qn.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=e),this.targetPointers=p(this.trackedPointers_)}},t}(jy),Qy=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),$y=function(n){function t(t){var e=n.call(this)||this;return e.geometry_=null,e.element_=document.createElement("div"),e.element_.style.position="absolute",e.element_.className="ol-box "+t,e.map_=null,e.startPixel_=null,e.endPixel_=null,e}return Qy(t,n),t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n=this.element_.style;n.left=Math.min(t[0],e[0])+"px",n.top=Math.min(t[1],e[1])+"px",n.width=Math.abs(e[0]-t[0])+"px",n.height=Math.abs(e[1]-t[1])+"px"},t.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Vr([n])},t.prototype.getGeometry=function(){return this.geometry_},t}(w),tm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),em=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.coordinate=e,i.mapBrowserEvent=n,i}return tm(t,r),t}(E),nm=function(i){function t(t){var e=i.call(this)||this,n=t||{};return e.box_=new $y(n.className||"ol-dragbox"),e.minArea_=void 0!==n.minArea?n.minArea:64,e.onBoxEnd_=n.onBoxEnd?n.onBoxEnd:C,e.startPixel_=null,e.condition_=n.condition?n.condition:Oa,e.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:e.defaultBoxEndCondition,e}return tm(t,i),t.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(t){ja(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new em("boxdrag",t.coordinate,t)))},t.prototype.handleUpEvent=function(t){return!ja(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new em("boxend",t.coordinate,t))),!1)},t.prototype.handleDownEvent=function(t){return!(!ja(t)||!Na(t)||!this.condition_(t)||(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new em("boxstart",t.coordinate,t)),0))},t}(Jy),im=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function rm(t){return Da(t)&&Va(t)}var om=function(i){function t(t){var e=i.call(this,{stopDown:P})||this,n=t||{};return e.kinetic_=n.kinetic,e.lastCentroid=null,e.lastPointersCount_,e.panning_=!1,e.condition_=n.condition?n.condition:rm,e.noKinetic_=!1,e}return im(t,i),t.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=Ky(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],r=t.map.getView();Ai(i,r.getResolution()),Ti(i,r.getRotation()),r.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length},t.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0!==this.targetPointers.length)return this.kinetic_&&this.kinetic_.begin(),!(this.lastCentroid=null);if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=e.getPixelFromCoordinateInternal(o),s=e.getCoordinateFromPixelInternal([a[0]-i*Math.cos(r),a[1]-i*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:Ni})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1},t.prototype.handleDownEvent=function(t){if(0<this.targetPointers.length&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=1<this.targetPointers.length,!0}return!1},t}(Jy),am=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),sm=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,{stopDown:P})||this).condition_=n.condition?n.condition:La,e.lastAngle_=void 0,e.duration_=void 0!==n.duration?n.duration:250,e}return am(t,i),t.prototype.handleDragEvent=function(t){if(ja(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==yi){var i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},t.prototype.handleUpEvent=function(t){return!ja(t)||(t.map.getView().endInteraction(this.duration_),!1)},t.prototype.handleDownEvent=function(t){return!(!ja(t)||!Na(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0))},t}(Jy),lm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),um=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,n)||this).condition_=n.condition?n.condition:Fa,e.lastAngle_=void 0,e.lastMagnitude_=void 0,e.lastScaleDelta_=0,e.duration_=void 0!==n.duration?n.duration:400,e}return lm(t,i),t.prototype.handleDragEvent=function(t){if(ja(t)){var e=t.map,n=e.getSize(),i=t.pixel,r=i[0]-n[0]/2,o=n[1]/2-i[1],a=Math.atan2(o,r),s=Math.sqrt(r*r+o*o),l=e.getView();if(void 0!==this.lastAngle_){var u=this.lastAngle_-a;l.adjustRotationInternal(u)}this.lastAngle_=a,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/s),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/s),this.lastMagnitude_=s}},t.prototype.handleUpEvent=function(t){if(!ja(t))return!0;var e=t.map.getView(),n=1<this.lastScaleDelta_?1:-1;return e.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1},t.prototype.handleDownEvent=function(t){return!(!ja(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0))},t}(Jy),hm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function cm(){var t,e=this.getMap(),n=e.getView(),i=e.getSize(),r=this.getGeometry().getExtent();if(this.out_){var o=n.calculateExtentInternal(i),a=(t=[e.getPixelFromCoordinateInternal(De(r)),e.getPixelFromCoordinateInternal(Ue(r))],function(t,e){for(var n=0,i=e.length;n<i;++n)Oe(t,e[n]);return t}(Ae(void 0),t));He(o,1/n.getResolutionForExtentInternal(a,i)),r=o}var s=n.getConstrainedResolution(n.getResolutionForExtentInternal(r,i)),l=n.getConstrainedCenter(Ge(r),s);n.animateInternal({resolution:s,center:l,duration:this.duration_,easing:Ni})}var pm=function(r){function t(t){var e=this,n=t||{},i=n.condition?n.condition:Fa;return(e=r.call(this,{condition:i,className:n.className||"ol-dragzoom",minArea:n.minArea,onBoxEnd:cm})||this).duration_=void 0!==n.duration?n.duration:200,e.out_=void 0!==n.out&&n.out,e}return hm(t,r),t}(nm),fm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),dm="renderOrder",ym=function(r){function t(t){var e=this,n=t||{},i=v({},n);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(e=r.call(this,i)||this).declutter_=void 0!==n.declutter&&n.declutter,e.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,e.style_=null,e.styleFunction_=void 0,e.setStyle(n.style),e.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,e.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,e}return fm(t,r),t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.getFeatures=function(t){return r.prototype.getFeatures.call(this,t)},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get(dm)},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.setRenderOrder=function(t){this.set(dm,t)},t.prototype.setStyle=function(t){this.style_=void 0!==t?t:Wh,this.styleFunction_=null===t?void 0:function(t){var e;return"function"==typeof t?t:(e=Array.isArray(t)?t:(K("function"==typeof t.getZIndex,41),[t]),function(){return e})}(this.style_),this.changed()},t}(Wt),mm={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},gm=[mm.FILL],vm=[mm.STROKE],xm=[mm.BEGIN_PATH],_m=[mm.CLOSE_PATH],wm=mm,bm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pm=function(o){function t(t,e,n,i){var r=o.call(this)||this;return r.tolerance=t,r.maxExtent=e,r.pixelRatio=i,r.maxLineWidth=0,r.resolution=n,r.beginGeometryInstruction1_=null,r.beginGeometryInstruction2_=null,r.bufferedMaxExtent_=null,r.instructions=[],r.coordinates=[],r.tmpCoordinate_=[],r.hitDetectionInstructions=[],r.state={},r}return bm(t,o),t.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},t.prototype.appendFlatCoordinates=function(t,e,n,i,r,o){var a=this.coordinates.length,s=this.getBufferedMaxExtent();o&&(e+=i);var l,u,h,c=t[e],p=t[e+1],f=this.tmpCoordinate_,d=!0;for(l=e+i;l<n;l+=i)f[0]=t[l],f[1]=t[l+1],d=(h=Ce(s,f))!==u?(d&&(this.coordinates[a++]=c,this.coordinates[a++]=p),this.coordinates[a++]=f[0],this.coordinates[a++]=f[1],!1):h!==fe||(this.coordinates[a++]=f[0],this.coordinates[a++]=f[1],!1),c=f[0],p=f[1],u=h;return(r&&d||l===e+i)&&(this.coordinates[a++]=c,this.coordinates[a++]=p),a},t.prototype.drawCustomCoordinates_=function(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatCoordinates(t,e,s,i,!1,!1);r.push(l),e=s}return e},t.prototype.drawCustom=function(t,e,n){this.beginGeometry(t,e);var i,r,o,a,s,l=t.getType(),u=t.getStride(),h=this.coordinates.length;if(l==re.MULTI_POLYGON){i=(t=t).getOrientedFlatCoordinates(),a=[];for(var c=t.getEndss(),p=s=0,f=c.length;p<f;++p){var d=[];s=this.drawCustomCoordinates_(i,s,c[p],u,d),a.push(d)}this.instructions.push([wm.CUSTOM,h,a,t,n,gr])}else l==re.POLYGON||l==re.MULTI_LINE_STRING?(o=[],i=l==re.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),s=this.drawCustomCoordinates_(i,0,t.getEnds(),u,o),this.instructions.push([wm.CUSTOM,h,o,t,n,mr])):l==re.LINE_STRING||l==re.MULTI_POINT?(i=t.getFlatCoordinates(),r=this.appendFlatCoordinates(i,0,i.length,u,!1,!1),this.instructions.push([wm.CUSTOM,h,r,t,n,yr])):l==re.POINT&&(i=t.getFlatCoordinates(),this.coordinates.push(i[0],i[1]),r=this.coordinates.length,this.instructions.push([wm.CUSTOM,h,r,t,n]));this.endGeometry(e)},t.prototype.beginGeometry=function(t,e){var n=t.getExtent();this.beginGeometryInstruction1_=[wm.BEGIN_GEOMETRY,e,0,n],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[wm.BEGIN_GEOMETRY,e,0,n],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},t.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var n,i,r=e.length,o=-1;for(t=0;t<r;++t)(i=(n=e[t])[0])==wm.END_GEOMETRY?o=t:i==wm.BEGIN_GEOMETRY&&(n[2]=t,a(this.hitDetectionInstructions,o,t),o=-1)},t.prototype.setFillStrokeStyle=function(t,e){var n=this.state;if(t){var i=t.getColor();n.fillStyle=gt(i||"#000")}else n.fillStyle=void 0;if(e){var r=e.getColor();n.strokeStyle=gt(r||"#000");var o=e.getLineCap();n.lineCap=void 0!==o?o:"round";var a=e.getLineDash();n.lineDash=a?a.slice():mo;var s=e.getLineDashOffset();n.lineDashOffset=s||0;var l=e.getLineJoin();n.lineJoin=void 0!==l?l:"round";var u=e.getWidth();n.lineWidth=void 0!==u?u:1;var h=e.getMiterLimit();n.miterLimit=void 0!==h?h:10,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},t.prototype.createFill=function(t,e){var n=t.fillStyle,i=[wm.SET_FILL_STYLE,n];return"string"!=typeof n&&n instanceof CanvasGradient&&e?i.push(e):i.push(!0),i},t.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},t.prototype.createStroke=function(t){return[wm.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(t,e,n){var i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t,n)),t.currentFillStyle=i)},t.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;t.currentStrokeStyle==n&&t.currentLineCap==i&&(r==t.currentLineDash||kt(t.currentLineDash,r))&&t.currentLineDashOffset==o&&t.currentLineJoin==a&&t.currentLineWidth==s&&t.currentMiterLimit==l||(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},t.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[wm.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},t.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=_e(this.maxExtent),0<this.maxLineWidth)){var t=this.resolution*(this.maxLineWidth+1)/2;xe(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t}(ho),Sm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cm=function(o){function t(t,e,n,i){var r=o.call(this,t,e,n,i)||this;return r.declutterGroups_=null,r.hitDetectionImage_=null,r.image_=null,r.anchorX_=void 0,r.anchorY_=void 0,r.height_=void 0,r.opacity_=void 0,r.originX_=void 0,r.originY_=void 0,r.rotateWithView_=void 0,r.rotation_=void 0,r.scale_=void 0,r.width_=void 0,r}return Sm(t,o),t.prototype.drawCoordinates_=function(t,e,n,i){return this.appendFlatCoordinates(t,e,n,i,!1,!1)},t.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([wm.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([wm.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},t.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([wm.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([wm.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},t.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,o.prototype.finish.call(this)},t.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(1),o=t.getImage(1),a=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroups_=e,this.hitDetectionImage_=r,this.image_=o,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=i[0]},t}(Pm),Mm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tm=function(r){function t(t,e,n,i){return r.call(this,t,e,n,i)||this}return Mm(t,r),t.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatCoordinates(t,e,n,i,!1,!1),a=[wm.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},t.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([wm.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],xm);var o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(vm),this.endGeometry(e)}},t.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([wm.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],xm);for(var o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride(),l=0,u=0,h=o.length;u<h;++u)l=this.drawFlatCoordinates_(a,l,o[u],s);this.hitDetectionInstructions.push(vm),this.endGeometry(e)}},t.prototype.finish=function(){var t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(vm),this.reverseHitDetectionInstructions(),this.state=null,r.prototype.finish.call(this)},t.prototype.applyStroke=function(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(vm),t.lastStroke=this.coordinates.length),t.lastStroke=0,r.prototype.applyStroke.call(this,t),this.instructions.push(xm)},t}(Pm),Am=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Em=function(r){function t(t,e,n,i){return r.call(this,t,e,n,i)||this}return Am(t,r),t.prototype.drawFlatCoordinatess_=function(t,e,n,i){var r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,s=n.length;this.instructions.push(xm),this.hitDetectionInstructions.push(xm);for(var l=0;l<s;++l){var u=n[l],h=this.coordinates.length,c=this.appendFlatCoordinates(t,e,u,i,!0,!a),p=[wm.MOVE_TO_LINE_TO,h,c];this.instructions.push(p),this.hitDetectionInstructions.push(p),a&&(this.instructions.push(_m),this.hitDetectionInstructions.push(_m)),e=u}return o&&(this.instructions.push(gm),this.hitDetectionInstructions.push(gm)),a&&(this.instructions.push(vm),this.hitDetectionInstructions.push(vm)),e},t.prototype.drawCircle=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(t.getExtent()),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([wm.SET_FILL_STYLE,"#000"]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([wm.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length;this.appendFlatCoordinates(o,0,o.length,a,!1,!1);var l=[wm.CIRCLE,s];this.instructions.push(xm,l),this.hitDetectionInstructions.push(xm,l),void 0!==n.fillStyle&&(this.instructions.push(gm),this.hitDetectionInstructions.push(gm)),void 0!==n.strokeStyle&&(this.instructions.push(vm),this.hitDetectionInstructions.push(vm)),this.endGeometry(e)}},t.prototype.drawPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(t.getExtent()),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([wm.SET_FILL_STYLE,"#000"]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([wm.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getEnds(),a=t.getOrientedFlatCoordinates(),s=t.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(e)}},t.prototype.drawMultiPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(t.getExtent()),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([wm.SET_FILL_STYLE,"#000"]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([wm.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride(),l=0,u=0,h=o.length;u<h;++u)l=this.drawFlatCoordinatess_(a,l,o[u],s);this.endGeometry(e)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var e=this.coordinates,n=0,i=e.length;n<i;++n)e[n]=xr(e[n],t);return r.prototype.finish.call(this)},t.prototype.setFillStrokeStyles_=function(t){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill,t),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},t}(Pm);function Im(t,e,n,i,r){var o,a,s,l,u,h,c,p,f,d=n,y=n,m=0,g=0,v=n;for(o=n;o<i;o+=r){var x=e[o],_=e[o+1];void 0!==l&&(p=x-l,f=_-u,s=Math.sqrt(p*p+f*f),void 0!==h&&(g+=a,Math.acos((h*p+c*f)/(a*s))>t&&(m<g&&(m=g,d=v,y=o),g=0,v=o-r)),a=s,h=p,c=f),l=x,u=_}return(g+=s)>m?[v,o]:[d,y]}var Lm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rm={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Om={Circle:Em,Default:Pm,Image:Cm,LineString:Tm,Polygon:Em,Text:function(o){function t(t,e,n,i){var r=o.call(this,t,e,n,i)||this;return r.declutterGroups_,r.labels_=null,r.text_="",r.textOffsetX_=0,r.textOffsetY_=0,r.textRotateWithView_=void 0,r.textRotation_=0,r.textFillState_=null,r.fillStates={},r.textStrokeState_=null,r.strokeStates={},r.textState_={},r.textStates={},r.textKey_="",r.fillKey_="",r.strokeKey_="",vo.prune(),r}return Lm(t,o),t.prototype.finish=function(){var t=o.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},t.prototype.drawText=function(t,e){var n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var o,a,s=this.coordinates.length,l=t.getType(),u=null,h=2,c=2;if("line"===r.placement){if(!Ze(this.getBufferedMaxExtent(),t.getExtent()))return;var p=void 0;if(u=t.getFlatCoordinates(),c=t.getStride(),l==re.LINE_STRING)p=[u.length];else if(l==re.MULTI_LINE_STRING)p=t.getEnds();else if(l==re.POLYGON)p=t.getEnds().slice(0,1);else if(l==re.MULTI_POLYGON){var f=t.getEndss();for(p=[],o=0,a=f.length;o<a;++o)p.push(f[o][0])}this.beginGeometry(t,e);for(var d=r.textAlign,y=0,m=void 0,g=0,v=p.length;g<v;++g){if(null==d){var x=Im(r.maxAngle,u,y,p[g],c);y=x[0],m=x[1]}else m=p[g];for(o=y;o<m;o+=c)this.coordinates.push(u[o],u[o+1]);h=this.coordinates.length,y=p[g];var _=this.declutterGroups_?0===g?this.declutterGroups_[0]:[].concat(this.declutterGroups_[0]):null;this.drawChars_(s,h,_),s=h}this.endGeometry(e)}else{var w=null;switch(r.overflow||(w=[]),l){case re.POINT:case re.MULTI_POINT:h=(u=t.getFlatCoordinates()).length;break;case re.LINE_STRING:u=t.getFlatMidpoint();break;case re.CIRCLE:u=t.getCenter();break;case re.MULTI_LINE_STRING:h=(u=t.getFlatMidpoints()).length;break;case re.POLYGON:u=t.getFlatInteriorPoint(),r.overflow||w.push(u[2]/this.resolution),c=3;break;case re.MULTI_POLYGON:var b=t.getFlatInteriorPoints();for(u=[],o=0,a=b.length;o<a;o+=3)r.overflow||w.push(b[o+2]/this.resolution),u.push(b[o],b[o+1]);if(0==(h=u.length))return}h=this.appendFlatCoordinates(u,0,h,c,!1,!1),this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var P=this.pixelRatio;this.instructions.push([wm.DRAW_IMAGE,s,h,null,NaN,NaN,this.declutterGroups_,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,1,NaN,r.padding==go?go:r.padding.map(function(t){return t*P}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,w]),this.hitDetectionInstructions.push([wm.DRAW_IMAGE,s,h,null,NaN,NaN,this.declutterGroups_,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,1/this.pixelRatio,NaN,r.padding,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,w]),this.endGeometry(e)}}},t.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||"center",textBaseline:e.textBaseline||"middle",scale:e.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},t.prototype.drawChars_=function(t,e,n){var i=this.textStrokeState_,r=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var l=this.pixelRatio,u=Rm[r.textBaseline],h=this.textOffsetY_*l,c=this.text_,p=r.scale,f=i?i.lineWidth*p/2:0;this.instructions.push([wm.DRAW_CHARS,t,e,u,n,r.overflow,s,r.maxAngle,l,h,o,f*l,c,a,1]),this.hitDetectionInstructions.push([wm.DRAW_CHARS,t,e,u,n,r.overflow,s,r.maxAngle,1,h,o,f,c,a,1/l])},t.prototype.setTextStyle=function(t,e){var n,i,r;if(t){this.declutterGroups_=e;var o=t.getFill();o?((i=this.textFillState_)||(i={},this.textFillState_=i),i.fillStyle=gt(o.getColor()||"#000")):(i=null,this.textFillState_=i);var a=t.getStroke();if(a){(r=this.textStrokeState_)||(r={},this.textStrokeState_=r);var s=a.getLineDash(),l=a.getLineDashOffset(),u=a.getWidth(),h=a.getMiterLimit();r.lineCap=a.getLineCap()||"round",r.lineDash=s?s.slice():mo,r.lineDashOffset=void 0===l?0:l,r.lineJoin=a.getLineJoin()||"round",r.lineWidth=void 0===u?1:u,r.miterLimit=void 0===h?10:h,r.strokeStyle=gt(a.getColor()||"#000")}else r=null,this.textStrokeState_=r;n=this.textState_;var c=t.getFont()||"10px sans-serif";bo(c);var p=t.getScale();n.overflow=t.getOverflow(),n.font=c,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.textBaseline=t.getTextBaseline()||"middle",n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||go,n.scale=void 0===p?1:p;var f=t.getOffsetX(),d=t.getOffsetY(),y=t.getRotateWithView(),m=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===d?0:d,this.textRotateWithView_=void 0!==y&&y,this.textRotation_=void 0===m?0:m,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:dt(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?"),this.fillKey_=i?"string"==typeof i.fillStyle?i.fillStyle:"|"+dt(i.fillStyle):""}else this.text_=""},t}(Pm)},Nm=function(){function t(t,e,n,i,r){this.declutter_=r,this.declutterGroups_=null,this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}return t.prototype.addDeclutter=function(t){var e=null;return this.declutter_&&(t?(e=this.declutterGroups_)[0][4]++:(e=[[1/0,1/0,-1/0,-1/0]],(this.declutterGroups_=e)[0].push(1))),e},t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var n=this.buildersByZIndex_[e];for(var i in n){var r=n[i].finish();t[e][i]=r}}return t},t.prototype.getBuilder=function(t,e){var n=void 0!==t?t.toString():"0",i=this.buildersByZIndex_[n];void 0===i&&(i={},this.buildersByZIndex_[n]=i);var r=i[e];return void 0===r&&(r=new Om[e](this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=r),r},t}();function km(t,e,n,i,r,o,a,s,l,u,h){for(var c,p,f=[],d=t[e]>t[n-i],y=r.length,m=t[e],g=t[e+1],v=t[e+=i],x=t[e+1],_=0,w=Math.sqrt(Math.pow(v-m,2)+Math.pow(x-g,2)),b=!1,P=0;P<y;++P){for(var S=r[c=d?y-P-1:P],C=s*l(u,S,h),M=o+C/2;e<n-i&&_+w<M;)m=v,g=x,v=t[e+=i],x=t[e+1],_+=w,w=Math.sqrt(Math.pow(v-m,2)+Math.pow(x-g,2));var T=M-_,A=Math.atan2(x-g,v-m);if(d&&(A+=0<A?-Math.PI:Math.PI),void 0!==p){var E=A-p;if(b=b||0!==E,E+=E>Math.PI?-2*Math.PI:E<-Math.PI?2*Math.PI:0,Math.abs(E)>a)return null}p=A;var I=T/w,L=rt(m,v,I),R=rt(g,x,I);f[c]=[L,R,C/2,A,S],o+=C}return b?f:[[f[0][0],f[0][1],f[0][2],f[0][3],r]]}var zm=n(0),Dm=n.n(zm),Fm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Gm=[1/0,1/0,-1/0,-1/0],jm=[1,0,0,1,0,0],Vm=[],qm=[],Bm=[],Um=[],Wm=function(o){function t(t,e,n,i){var r=o.call(this)||this;return r.overlaps=n,r.pixelRatio=e,r.resolution=t,r.alignFill_,r.declutterItems=[],r.instructions=i.instructions,r.coordinates=i.coordinates,r.coordinateCache_={},r.renderedTransform_=[1,0,0,1,0,0],r.hitDetectionInstructions=i.hitDetectionInstructions,r.pixelCoordinates_=null,r.viewRotation_=0,r.fillStates=i.fillStates||{},r.strokeStates=i.strokeStates||{},r.textStates=i.textStates||{},r.widths_={},r}return Fm(t,o),t.prototype.disposeInternal=function(){vo.release(this),o.prototype.disposeInternal.call(this)},t.prototype.getTextImage=function(t,e,n,i){var r,o=i+e+t+n+this.pixelRatio;if(!vo.containsKey(o)){var a=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,l=this.textStates[e],u=this.pixelRatio,h=l.scale*u,c=Rm[l.textAlign||"center"],p=i&&a.lineWidth?a.lineWidth:0,f=t.split("\n"),d=f.length,y=[],m=function(t,e,n){for(var i=e.length,r=0,o=0;o<i;++o){var a=To(t,e[o]);r=Math.max(r,a),n.push(a)}return r}(l.font,f,y),g=Mo(l.font),v=g*d,x=m+p,_=xt(Math.ceil((x+2)*h),Math.ceil((v+p)*h));r=_.canvas,vo.set(o,r),1!=h&&_.scale(h,h),_.font=l.font,i&&(_.strokeStyle=a.strokeStyle,_.lineWidth=p,_.lineCap=a.lineCap,_.lineJoin=a.lineJoin,_.miterLimit=a.miterLimit,_.setLineDash&&a.lineDash.length&&(_.setLineDash(a.lineDash),_.lineDashOffset=a.lineDashOffset)),n&&(_.fillStyle=s.fillStyle),_.textBaseline="middle",_.textAlign="center";var w=.5-c,b=c*x+w*p,P=void 0;if(i)for(P=0;P<d;++P)_.strokeText(f[P],b+w*y[P],.5*(p+g)+P*g);if(n)for(P=0;P<d;++P)_.fillText(f[P],b+w*y[P],.5*(p+g)+P*g)}return vo.get(o,this)},t.prototype.replayTextBackground_=function(t,e,n,i,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.replayImage_=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g){var v=m||g;e-=r*=p,n-=o*=p;var x=d+u>i.width?i.width-u:d,_=s+h>i.height?i.height-h:s,w=y[3]+x*p+y[1],b=y[0]+_*p+y[2],P=e-y[3],S=n-y[0];!v&&0===c||(Vm[0]=P,Um[0]=P,Vm[1]=S,qm[1]=S,qm[0]=P+w,Bm[0]=qm[0],Bm[1]=S+b,Um[1]=Bm[1]);var C=null;if(0!==c){var M=e+r,T=n+o;C=Ki(jm,M,T,1,1,c,-M,-T),Hi(jm,Vm),Hi(jm,qm),Hi(jm,Bm),Hi(jm,Um),Te(Math.min(Vm[0],qm[0],Bm[0],Um[0]),Math.min(Vm[1],qm[1],Bm[1],Um[1]),Math.max(Vm[0],qm[0],Bm[0],Um[0]),Math.max(Vm[1],qm[1],Bm[1],Um[1]),Gm)}else Te(P,S,P+w,S+b,Gm);var A=t.canvas,E=g?g[2]*p/2:0,I=Gm[0]-E<=A.width&&0<=Gm[2]+E&&Gm[1]-E<=A.height&&0<=Gm[3]+E;if(f&&(e=Math.round(e),n=Math.round(n)),a){if(!I&&1==a[4])return;Re(a,Gm);var L=I?[t,C?C.slice(0):null,l,i,u,h,x,_,e,n,p]:null;L&&(v&&L.push(m,g,Vm,qm,Bm,Um),a.push(L))}else I&&(v&&this.replayTextBackground_(t,Vm,qm,Bm,Um,m,g),Lo(t,C,l,i,u,h,x,_,e,n,p))},t.prototype.fill_=function(t){if(this.alignFill_ instanceof Array){var e=Hi(this.renderedTransform_,[this.alignFill_[0],this.alignFill_[3]]);t.save(),t.translate(e[0],e[1]),t.rotate(this.viewRotation_)}if("boolean"==typeof this.alignFill_){var n=Hi(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(n[0]%i,n[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.renderDeclutter=function(t,e,n,i){if(t&&5<t.length){var r=t[4];if(1==r||r==t.length-5){var o={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!(i=i||new Dm.a(9)).collides(o)){i.insert(o);for(var a=5,s=t.length;a<s;++a){var l=t[a],u=l[0],h=u.globalAlpha;h!==n&&(u.globalAlpha=n),11<l.length&&this.replayTextBackground_(l[0],l[13],l[14],l[15],l[16],l[11],l[12]),Lo.apply(void 0,l),h!==n&&(u.globalAlpha=h)}}t.length=5,Ae(t)}}return i},t.prototype.drawTextImageWithPointPlacement_=function(t,e,n,i){var r=this.textStates[e],o=this.getTextImage(t,e,i,n),a=this.strokeStates[n],s=this.pixelRatio,l=Rm[r.textAlign||"center"],u=Rm[r.textBaseline||"middle"],h=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:l*(o.width/s-2*r.scale)+2*(.5-l)*h,anchorY:u*o.height/s+2*(.5-u)*h}},t.prototype.execute_=function(t,e,n,i,r,o){var a,s,l;this.declutterItems.length=0,this.pixelCoordinates_&&kt(e,this.renderedTransform_)?a=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),a=Vi(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),s=this.renderedTransform_,l=e,s[0]=l[0],s[1]=l[1],s[2]=l[2],s[3]=l[3],s[4]=l[4],s[5]=l[5]);for(var u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C,M=0,T=n.length,A=0,E=0,I=0,L=null,R=null,O=this.coordinateCache_,N=this.viewRotation_,k=Math.round(1e12*Math.atan2(-e[1],e[0]))/1e12,z={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:N},D=this.instructions!=n||this.overlaps?0:200;M<T;){var F=n[M];switch(F[0]){case wm.BEGIN_GEOMETRY:(P=F[1]).getGeometry()?void 0===o||Ze(o,F[3])?++M:M=F[2]+1:M=F[2];break;case wm.BEGIN_PATH:D<E&&(this.fill_(t),E=0),D<I&&(t.stroke(),I=0),E||I||(t.beginPath(),f=p=NaN),++M;break;case wm.CIRCLE:var G=a[A=F[1]],j=a[A+1],V=a[A+2]-G,q=a[A+3]-j,B=Math.sqrt(V*V+q*q);t.moveTo(G+B,j),t.arc(G,j,B,0,2*Math.PI,!0),++M;break;case wm.CLOSE_PATH:t.closePath(),++M;break;case wm.CUSTOM:A=F[1],u=F[2];var U=F[3],W=F[4],Z=6==F.length?F[5]:void 0;z.geometry=U,z.feature=P,M in O||(O[M]=[]);var X=O[M];Z?Z(a,A,u,2,X):(X[0]=a[A],X[1]=a[A+1],X.length=2),W(X,z),++M;break;case wm.DRAW_IMAGE:A=F[1],u=F[2],v=F[3],h=F[4],c=F[5],g=r?null:F[6];var H=F[7],Y=F[8],K=F[9],J=F[10],Q=F[11],$=F[12],tt=F[13],et=F[14];if(!v&&19<=F.length){x=F[18],_=F[19],w=F[20],b=F[21];var nt=this.drawTextImageWithPointPlacement_(x,_,w,b);v=nt.label,F[3]=v;var it=F[22];h=(nt.anchorX-it)*this.pixelRatio,F[4]=h;var rt=F[23];c=(nt.anchorY-rt)*this.pixelRatio,F[5]=c,H=v.height,F[7]=H,et=v.width,F[14]=et}var ot=void 0;24<F.length&&(ot=F[24]);var at=void 0,st=void 0,lt=void 0;lt=16<F.length?(at=F[15],st=F[16],F[17]):(at=go,st=!1),Q&&k?$+=N:Q||k||($-=N);for(var ut=0,ht=0;A<u;A+=2)if(!(ot&&ot[ut++]<et/this.pixelRatio)){if(g){var ct=Math.floor(ht);g.length<ct+1&&((m=[1/0,1/0,-1/0,-1/0]).push(g[0][4]),g.push(m)),m=g[ct]}this.replayImage_(t,a[A],a[A+1],v,h,c,m,H,Y,K,J,$,tt,i,et,at,st?L:null,lt?R:null),m&&(ht===Math.floor(ht)&&this.declutterItems.push(this,m,P),ht+=1/m[4])}++M;break;case wm.DRAW_CHARS:var pt=F[1],ft=F[2],dt=F[3];m=r?null:F[4];var yt=F[5];b=F[6];var mt=F[7],gt=F[8],vt=F[9];w=F[10];var xt=F[11];x=F[12],_=F[13];var _t=F[14],wt=this.textStates[_],bt=wt.font,Pt=wt.scale*gt,St=void 0;bt in this.widths_?St=this.widths_[bt]:(St={},this.widths_[bt]=St);var Ct=os(a,pt,ft,2),Mt=Pt*Ao(bt,x,St);if(yt||Mt<=Ct){var Tt=this.textStates[_].textAlign,At=km(a,pt,ft,2,x,(Ct-Mt)*Rm[Tt],mt,Pt,Ao,bt,St);if(At){var Et=void 0,It=void 0,Lt=void 0,Rt=void 0,Ot=void 0;if(w)for(Et=0,It=At.length;Et<It;++Et)Lt=(Ot=At[Et])[4],Rt=this.getTextImage(Lt,_,"",w),h=Ot[2]+xt,c=dt*Rt.height+2*(.5-dt)*xt-vt,this.replayImage_(t,Ot[0],Ot[1],Rt,h,c,m,Rt.height,1,0,0,Ot[3],_t,!1,Rt.width,go,null,null);if(b)for(Et=0,It=At.length;Et<It;++Et)Lt=(Ot=At[Et])[4],Rt=this.getTextImage(Lt,_,b,""),h=Ot[2],c=dt*Rt.height-vt,this.replayImage_(t,Ot[0],Ot[1],Rt,h,c,m,Rt.height,1,0,0,Ot[3],_t,!1,Rt.width,go,null,null)}}this.declutterItems.push(this,m,P),++M;break;case wm.END_GEOMETRY:if(void 0!==r){var Nt=r(P=F[1]);if(Nt)return Nt}++M;break;case wm.FILL:D?E++:this.fill_(t),++M;break;case wm.MOVE_TO_LINE_TO:for(A=F[1],u=F[2],S=a[A],y=(C=a[A+1])+.5|0,(d=S+.5|0)===p&&y===f||(t.moveTo(S,C),p=d,f=y),A+=2;A<u;A+=2)d=(S=a[A])+.5|0,y=(C=a[A+1])+.5|0,A!=u-2&&d===p&&y===f||(t.lineTo(S,C),p=d,f=y);++M;break;case wm.SET_FILL_STYLE:L=F,this.alignFill_=F[2],E&&(this.fill_(t),E=0,I&&(t.stroke(),I=0)),t.fillStyle=F[1],++M;break;case wm.SET_STROKE_STYLE:R=F,I&&(t.stroke(),I=0),this.setStrokeStyle_(t,F),++M;break;case wm.STROKE:D?I++:t.stroke(),++M;break;default:++M}}E&&this.fill_(t),I&&t.stroke()},t.prototype.execute=function(t,e,n,i){this.viewRotation_=n,this.execute_(t,e,this.instructions,i,void 0,void 0)},t.prototype.executeHitDetection=function(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,e,this.hitDetectionInstructions,!0,i,r)},t}(w),Zm=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xm=[Vo,Do,jo,Go,qo,Fo],Hm=function(s){function t(t,e,n,i,r,o){var a=s.call(this)||this;return a.maxExtent_=t,a.overlaps_=i,a.pixelRatio_=n,a.resolution_=e,a.renderBuffer_=o,a.executorsByZIndex_={},a.hitDetectionContext_=null,a.hitDetectionTransform_=[1,0,0,1,0,0],a.createExecutors_(r),a}return Zm(t,s),t.prototype.clip=function(t,e){var n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);var i=t[e];for(var r in i){var o=i[r];n[r]=new Wm(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.disposeInternal=function(){for(var t in this.executorsByZIndex_){var e=this.executorsByZIndex_[t];for(var n in e)e[n].disposeInternal()}if(this.hitDetectionContext_){var i=this.hitDetectionContext_.canvas;i.width=0,i.height=0}s.prototype.disposeInternal.call(this)},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[e],i=0,r=t.length;i<r;++i)if(t[i]in n)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,o,a){var s=2*(i=Math.round(i))+1,r=Ki(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-n,-t[0],-t[1]);this.hitDetectionContext_||(this.hitDetectionContext_=xt(s,s));var l,u=this.hitDetectionContext_;u.canvas.width!==s||u.canvas.height!==s?(u.canvas.width=s,u.canvas.height=s):u.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(Oe(l=[1/0,1/0,-1/0,-1/0],t),xe(l,e*(this.renderBuffer_+i),l));var h,c=function(t){if(void 0!==Ym[t])return Ym[t];for(var e=2*t+1,n=new Array(e),i=0;i<e;i++)n[i]=new Array(e);for(var r=t,o=0,a=0;o<=r;)Km(n,t+r,t+o),Km(n,t+o,t+r),Km(n,t-o,t+r),Km(n,t-r,t+o),Km(n,t-r,t-o),Km(n,t-o,t-r),Km(n,t+o,t-r),Km(n,t+r,t-o),0<2*((a+=1+2*++o)-r)+1&&(a+=1-2*(r-=1));return Ym[t]=n}(i);function p(t){for(var e=u.getImageData(0,0,s,s).data,n=0;n<s;n++)for(var i=0;i<s;i++)if(c[n][i]&&0<e[4*(i*s+n)+3]){var r=void 0;return a&&(h==Go||h==qo)&&-1===a.indexOf(t)||(r=o(t)),r||void u.clearRect(0,0,s,s)}}var f,d,y,m,g,v=Object.keys(this.executorsByZIndex_).map(Number);for(v.sort(ft),f=v.length-1;0<=f;--f){var x=v[f].toString();for(y=this.executorsByZIndex_[x],d=Xm.length-1;0<=d;--d)if(void 0!==(m=y[h=Xm[d]])&&(g=m.executeHitDetection(u,r,n,p,l)))return g}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],i=e[1],r=e[2],o=e[3],a=[n,i,n,o,r,o,r,i];return Vi(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return f(this.executorsByZIndex_)},t.prototype.execute=function(t,e,n,i,r,o){var a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(ft),this.maxExtent_&&(t.save(),this.clip(t,e));var s,l,u,h,c,p,f=r||Xm;for(s=0,l=a.length;s<l;++s){var d=a[s].toString();for(c=this.executorsByZIndex_[d],u=0,h=f.length;u<h;++u){var y=f[u];if(void 0!==(p=c[y]))if(!o||y!=Go&&y!=qo)p.execute(t,e,n,i);else{var m=o[d];m?m.push(p,e.slice(0)):o[d]=[p,e.slice(0)]}}}this.maxExtent_&&t.restore()},t}(w),Ym={0:[[!0]]};function Km(t,e,n){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;i<e;i++)t[i][n]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][n]=!0}function Jm(t,e,n,i,r,o){for(var a=Object.keys(t).map(Number).sort(ft),s=0,l=a.length;s<l;++s)for(var u=t[a[s].toString()],h=void 0,c=0,p=u.length;c<p;){var f=u[c++];f!==h&&(h=f,o.push({items:f.declutterItems,opacity:i}));var d=u[c++];f.execute(e,d,n,r)}}var Qm=Hm,$m=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),tg=function(n){function t(t){var e=n.call(this)||this;return e.boundHandleImageChange_=e.handleImageChange_.bind(e),e.layer_=t,e}return $m(t,n),t.prototype.getFeatures=function(t){return s()},t.prototype.prepareFrame=function(t){return s()},t.prototype.renderFrame=function(t,e){return s()},t.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},t.prototype.createLoadedTileFinder=function(i,r,o){return function(t,e){var n=this.loadedTileCallback.bind(this,o,t);return i.forEachLoadedTile(r,t,e,n)}.bind(this)},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){},t.prototype.getDataAtPixel=function(t,e,n){return s()},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleFontsChanged=function(){},t.prototype.handleImageChange_=function(t){t.target.getState()===ko&&this.renderIfReadyAndVisible()},t.prototype.loadImage=function(t){var e=t.getState();return e!=ko&&e!=zo&&t.addEventListener(R,this.boundHandleImageChange_),e==No&&(t.load(),e=t.getState()),e==ko},t.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==Vt&&t.changed()},t}(j),eg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ng=function(n){function t(t){var e=n.call(this,t)||this;return e.container=null,e.renderedResolution,e.tempTransform_=[1,0,0,1,0,0],e.pixelTransform=[1,0,0,1,0,0],e.inversePixelTransform=[1,0,0,1,0,0],e.context=null,e.containerReused=!1,e.createTransformStringCanvas_=xt(1,1).canvas,e}return eg(t,n),t.prototype.useContainer=function(t,e,n){var i,r,o=this.getLayer().getClassName();if(t&&""===t.style.opacity&&t.className===o&&(s=t.firstElementChild)instanceof HTMLCanvasElement&&(r=s.getContext("2d")),r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(i=document.createElement("div")).className=o;var a=i.style;a.position="absolute",a.width="100%",a.height="100%";var s=(r=xt()).canvas;i.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=i,this.context=r}},t.prototype.clip=function(t,e,n){var i=e.pixelRatio,r=e.size[0]*i/2,o=e.size[1]*i/2,a=e.viewState.rotation,s=Be(n),l=Ue(n),u=Fe(n),h=De(n);Hi(e.coordinateToPixelTransform,s),Hi(e.coordinateToPixelTransform,l),Hi(e.coordinateToPixelTransform,u),Hi(e.coordinateToPixelTransform,h),t.save(),Eo(t,-a,r,o),t.beginPath(),t.moveTo(s[0]*i,s[1]*i),t.lineTo(l[0]*i,l[1]*i),t.lineTo(u[0]*i,u[1]*i),t.lineTo(h[0]*i,h[1]*i),t.clip(),Eo(t,a,r,o)},t.prototype.clipUnrotated=function(t,e,n){var i=Be(n),r=Ue(n),o=Fe(n),a=De(n);Hi(e.coordinateToPixelTransform,i),Hi(e.coordinateToPixelTransform,r),Hi(e.coordinateToPixelTransform,o),Hi(e.coordinateToPixelTransform,a);var s=this.inversePixelTransform;Hi(s,i),Hi(s,r),Hi(s,o),Hi(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},t.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();if(i.hasListener(t)){var r=new oo(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}},t.prototype.preRender=function(t,e){this.dispatchRenderEvent_("prerender",t,e)},t.prototype.postRender=function(t,e){this.dispatchRenderEvent_("postrender",t,e)},t.prototype.getRenderTransform=function(t,e,n,i,r,o,a){var s=r/2,l=o/2,u=i/e,h=-u,c=-t[0]+a,p=-t[1];return Ki(this.tempTransform_,s,l,u,h,-n,c,p)},t.prototype.getDataAtPixel=function(t,e,n){var i,r=Hi(this.inversePixelTransform,t.slice()),o=this.context;try{i=o.getImageData(Math.round(r[0]),Math.round(r[1]),1,1).data}catch(t){return"SecurityError"===t.name?new Uint8Array:i}return 0===i[3]?null:i},t.prototype.createTransformString=function(t){return this.createTransformStringCanvas_.style.transform=Qi(t),this.createTransformStringCanvas_.style.transform},t}(tg);function ig(t,e,n,i,r,o,a){var s=xt(t[0]/2,t[1]/2);s.imageSmoothingEnabled=!1;for(var l=s.canvas,u=new Oo(s,.5,r,null,a),h=n.length,c=Math.ceil(16777216/h),p={},f=0;f<h;++f){var d=n[f],y=d.getStyleFunction()||i;if(i){var m=y(d,o);Array.isArray(m)||(m=[m]);for(var g="#"+("000000"+(f*c).toString(16)).slice(-6),v=0,x=m.length;v<x;++v){var _=m[v],w=_.clone(),b=w.getFill();b&&b.setColor(g);var P=w.getStroke();P&&P.setColor(g),w.setText(void 0);var S=_.getImage();if(S){var C=S.getImageSize(),M=document.createElement("canvas");M.width=C[0],M.height=C[1];var T=M.getContext("2d",{alpha:!1});T.fillStyle=g;var A=T.canvas;T.fillRect(0,0,A.width,A.height),xt(C?C[0]:A.width,C?C[1]:A.height).drawImage(A,0,0),w.setImage(new Dh({img:A,imgSize:C,anchor:S.getAnchor(),anchorXUnits:Ph,anchorYUnits:Ph,offset:S.getOrigin(),size:S.getSize(),opacity:S.getOpacity(),scale:S.getScale(),rotation:S.getRotation(),rotateWithView:S.getRotateWithView()}))}var E=Number(w.getZIndex());(O=p[E])||(O={},(p[E]=O)[re.POLYGON]=[],O[re.CIRCLE]=[],O[re.LINE_STRING]=[],O[re.POINT]=[]);var I=w.getGeometryFunction()(d);I&&Ze(r,I.getExtent())&&O[I.getType().replace("Multi","")].push(I,w)}}}for(var L=Object.keys(p).map(Number).sort(ft),R=(f=0,L.length);f<R;++f){var O=p[L[f]];for(var N in O){var k=O[N];for(v=0,x=k.length;v<x;v+=2){u.setStyle(k[v+1]);for(var z=0,D=e.length;z<D;++z)u.setTransform(e[z]),u.drawGeometry(k[v])}}}return s.getImageData(0,0,l.width,l.height)}function rg(t,e,n){var i=[];if(n){var r=4*(Math.round(t[0]/2)+Math.round(t[1]/2)*n.width),o=n.data[r],a=n.data[1+r],s=n.data[2+r]+256*(a+256*o),l=Math.ceil(16777216/e.length);s%l==0&&i.push(e[s/l])}return i}var og=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ag=function(i){function t(t){var e=i.call(this,t)||this;return e.boundHandleStyleImageChange_=e.handleStyleImageChange_.bind(e),e.animatingOrInteracting_,e.dirty_=!1,e.hitDetectionImageData_=null,e.renderedFeatures_=null,e.renderedRevision_=-1,e.renderedResolution_=NaN,e.renderedExtent_=[1/0,1/0,-1/0,-1/0],e.renderedRotation_,e.renderedCenter_=null,e.renderedProjection_=null,e.renderedRenderOrder_=null,e.replayGroup_=null,e.replayGroupChanged=!0,e}return og(t,i),t.prototype.useContainer=function(t,e,n){n<1&&(t=null),i.prototype.useContainer.call(this,t,e,n)},t.prototype.renderFrame=function(t,e){var n=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];!function(t,e,n){Xi(t,e,0,0,n,0,0)}(this.pixelTransform,1/n,1/n),Ji(this.inversePixelTransform,this.pixelTransform);var r=Qi(this.pixelTransform);this.useContainer(e,r,i.opacity);var o=this.context,a=o.canvas,s=this.replayGroup_;if(!s||s.isEmpty())return!this.containerReused&&0<a.width&&(a.width=0),this.container;var l=Math.round(t.size[0]*n),u=Math.round(t.size[1]*n);a.width!=l||a.height!=u?(a.width=l,a.height=u,a.style.transform!==r&&(a.style.transform=r)):this.containerReused||o.clearRect(0,0,l,u),this.preRender(o,t);var h=t.extent,c=t.viewState,p=c.center,f=c.resolution,d=c.projection,y=c.rotation,m=d.getExtent(),g=this.getLayer().getSource(),v=!1;if(i.extent){var x=Fn(i.extent,d);(v=!Pe(x,t.extent)&&Ze(x,t.extent))&&this.clip(o,t,x)}var _=t.viewHints,w=!(_[0]||_[1]),b=this.getRenderTransform(p,f,y,n,l,u,0),P=this.getLayer().getDeclutter()?{}:null;if(s.execute(o,b,y,w,void 0,P),g.getWrapX()&&d.canWrapX()&&!Pe(m,h)){for(var S=h[0],C=We(m),M=0,T=void 0;S<m[0];){T=C*--M;var A=this.getRenderTransform(p,f,y,n,l,u,T);s.execute(o,A,y,w,void 0,P),S+=C}for(M=0,S=h[2];S>m[2];){T=C*++M;var E=this.getRenderTransform(p,f,y,n,l,u,T);s.execute(o,E,y,w,void 0,P),S-=C}}if(P){var I=t.viewHints;Jm(P,o,y,1,!(I[0]||I[1]),t.declutterItems)}v&&o.restore(),this.postRender(o,t);var L=i.opacity,R=this.container;return L!==parseFloat(R.style.opacity)&&(R.style.opacity=1===L?"":L),this.container},t.prototype.getFeatures=function(g){return new Promise(function(m,t){this.hitDetectionImageData_||this.animatingOrInteracting_?m(rg(g,this.renderedFeatures_,this.hitDetectionImageData_)):requestAnimationFrame(function(){var t=[this.context.canvas.width,this.context.canvas.height];Hi(this.pixelTransform,t);var e=this.renderedCenter_,n=this.renderedResolution_,i=this.renderedRotation_,r=this.renderedProjection_,o=this.renderedExtent_,a=this.getLayer(),s=[],l=t[0]/2,u=t[1]/2;s.push(this.getRenderTransform(e,n,i,.5,l,u,0).slice());var h=a.getSource(),c=r.getExtent();if(h.getWrapX()&&r.canWrapX()&&!Pe(c,o)){for(var p=o[0],f=We(c),d=0,y=void 0;p<c[0];)y=f*--d,s.push(this.getRenderTransform(e,n,i,.5,l,u,y).slice()),p+=f;for(d=0,p=o[2];p>c[2];)y=f*++d,s.push(this.getRenderTransform(e,n,i,.5,l,u,y).slice()),p-=f}this.hitDetectionImageData_=ig(t,s,this.renderedFeatures_,a.getStyleFunction(),o,n,i),m(rg(g,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))}.bind(this))},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){if(this.replayGroup_){var o=e.viewState.resolution,a=e.viewState.rotation,s=this.getLayer(),l={};return this.replayGroup_.forEachFeatureAtCoordinate(t,o,a,n,function(t){var e=dt(t);if(!(e in l))return l[e]=!0,i(t,s)},s.getDeclutter()?r:null)}},t.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},t.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(t){var r=this.getLayer(),e=r.getSource(),n=t.viewHints[0],i=t.viewHints[1],o=r.getUpdateWhileAnimating(),a=r.getUpdateWhileInteracting();if(!this.dirty_&&!o&&n||!a&&i)return this.animatingOrInteracting_=!0;this.animatingOrInteracting_=!1;var s=t.extent,l=t.viewState,u=l.projection,h=l.resolution,c=t.pixelRatio,p=r.getRevision(),f=r.getRenderBuffer(),d=r.getRenderOrder();void 0===d&&(d=Uo);var y=l.center.slice(),m=xe(s,f*h),g=l.projection.getExtent();if(e.getWrapX()&&l.projection.canWrapX()&&!Pe(g,t.extent)){var v=We(g),x=Math.max(We(m)/2,v);m[0]=g[0]-x,m[2]=g[2]+x;var _=Math.floor((y[0]-g[0])/v);y[0]-=_*v}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==p&&this.renderedRenderOrder_==d&&Pe(this.renderedExtent_,m))return!(this.replayGroupChanged=!1);this.replayGroup_&&this.replayGroup_.dispose(),this.replayGroup_=null,this.dirty_=!1;var w,b=new Nm(Zo(h,c),m,h,c,r.getDeclutter()),P=Nn();P?(e.loadFeatures(Dn(m,u),h,P),w=Mn(P,u)):e.loadFeatures(m,h,u);var S=Wo(h,c),C=function(t){var e,n=t.getStyleFunction()||r.getStyleFunction();if(n&&(e=n(t,h)),e){var i=this.renderFeature(t,S,e,b,w);this.dirty_=this.dirty_||i}}.bind(this),M=Dn(m,u),T=e.getFeaturesInExtent(M);d&&T.sort(d);for(var A=0,E=T.length;A<E;++A)C(T[A]);this.renderedFeatures_=T;var I=b.finish(),L=new Qm(m,h,c,e.getOverlaps(),I,r.getRenderBuffer());return this.renderedResolution_=h,this.renderedRevision_=p,this.renderedRenderOrder_=d,this.renderedExtent_=m,this.renderedRotation_=l.rotation,this.renderedCenter_=y,this.renderedProjection_=u,this.replayGroup_=L,this.hitDetectionImageData_=null,this.replayGroupChanged=!0},t.prototype.renderFeature=function(t,e,n,i,r){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var a=0,s=n.length;a<s;++a)o=Xo(i,t,n[a],e,this.boundHandleStyleImageChange_,r)||o;else o=Xo(i,t,n,e,this.boundHandleStyleImageChange_,r);return o},t}(ng),sg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),lg=function(e){function t(t){return e.call(this,t)||this}return sg(t,e),t.prototype.createRenderer=function(){return new ag(this)},t}(ym);function ug(t,e){return[[-1/0,-1/0,1/0,1/0]]}function hg(t,e){return[t]}var cg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function pg(e){return e?Array.isArray(e)?function(t){return e}:"function"==typeof e?e:function(t){return[e]}:null}var fg=function(n){function t(t){var e=n.call(this)||this;return e.projection_=xn(t.projection),e.attributions_=pg(t.attributions),e.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,e.loading=!1,e.state_=void 0!==t.state?t.state:Vt,e.wrapX_=void 0!==t.wrapX&&t.wrapX,e}return cg(t,n),t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolutions=function(){return s()},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(t){this.attributions_=pg(t),this.changed()},t.prototype.setState=function(t){this.state_=t,this.changed()},t}(Z),dg="addfeature",yg="changefeature",mg="removefeature",gg=function(){function t(t){this.rbush_=new Dm.a(t),this.items_={}}return t.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[dt(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i<r;i++){var o=t[i],a=e[i],s={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};n[i]=s,this.items_[dt(a)]=s}this.rbush_.load(n)},t.prototype.remove=function(t){var e=dt(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)},t.prototype.update=function(t,e){var n=this.items_[dt(e)];Le([n.minX,n.minY,n.maxX,n.maxY],t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){return this.rbush_.all().map(function(t){return t.value})},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map(function(t){return t.value})},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var n,i=0,r=t.length;i<r;i++)if(n=e(t[i]))return n;return n},t.prototype.isEmpty=function(){return f(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Te(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}(),vg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),xg=function(i){function t(t,e){var n=i.call(this,t)||this;return n.feature=e,n}return vg(t,i),t}(E),_g=function(a){function t(t){var e=this,n=t||{};(e=a.call(this,{attributions:n.attributions,projection:void 0,state:Vt,wrapX:void 0===n.wrapX||n.wrapX})||this).loader_=C,e.format_=n.format,e.overlaps_=null==n.overlaps||n.overlaps,e.url_=n.url,void 0!==n.loader?e.loader_=n.loader:void 0!==e.url_&&(K(e.format_,7),e.loader_=Ka(e.url_,e.format_)),e.strategy_=void 0!==n.strategy?n.strategy:ug;var i,r,o=void 0===n.useSpatialIndex||n.useSpatialIndex;return e.featuresRtree_=o?new gg:null,e.loadedExtentsRtree_=new gg,e.nullGeometryFeatures_={},e.idIndex_={},e.uidIndex_={},e.featureChangeKeys_={},e.featuresCollection_=null,Array.isArray(n.features)?r=n.features:n.features&&(r=(i=n.features).getArray()),o||void 0!==i||(i=new Y(r)),void 0!==r&&e.addFeaturesInternal(r),void 0!==i&&e.bindFeaturesCollection_(i),e}return vg(t,a),t.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},t.prototype.addFeatureInternal=function(t){var e=dt(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var n=t.getGeometry();if(n){var i=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new xg(dg,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},t.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[x(e,R,this.handleFeatureChange_,this),x(e,c,this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(t,e){var n=!0,i=e.getId();return void 0!==i&&(i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e),n&&(K(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n},t.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},t.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],i=[],r=0,o=t.length;r<o;r++){var a=dt(l=t[r]);this.addToIndex_(a,l)&&n.push(l)}r=0;for(var s=n.length;r<s;r++){var l;a=dt(l=n[r]),this.setupChangeEvents_(a,l);var u=l.getGeometry();if(u){var h=u.getExtent();e.push(h),i.push(l)}else this.nullGeometryFeatures_[a]=l}this.featuresRtree_&&this.featuresRtree_.load(e,i),r=0;for(var c=n.length;r<c;r++)this.dispatchEvent(new xg(dg,n[r]))},t.prototype.bindFeaturesCollection_=function(e){var n=!1;this.addEventListener(dg,function(t){n||(n=!0,e.push(t.feature),n=!1)}),this.addEventListener(mg,function(t){n||(n=!0,e.remove(t.feature),n=!1)}),e.addEventListener(u,function(t){n||(n=!0,this.addFeature(t.element),n=!1)}.bind(this)),e.addEventListener(h,function(t){n||(n=!0,this.removeFeature(t.element),n=!1)}.bind(this)),this.featuresCollection_=e},t.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(_);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(var n in this.featuresRtree_.forEach(this.removeFeatureInternal.bind(this)),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new xg("clear");this.dispatchEvent(i),this.changed()},t.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,n){var t=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(t,function(t){return t.getGeometry().intersectsCoordinate(e)?n(t):void 0})},t.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureIntersectingExtent=function(n,i){return this.forEachFeatureInExtent(n,function(t){if(t.getGeometry().intersectsExtent(n)){var e=i(t);if(e)return e}})},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray():this.featuresRtree_&&(t=this.featuresRtree_.getAll(),f(this.nullGeometryFeatures_)||g(t,p(this.nullGeometryFeatures_))),t},t.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,function(t){e.push(t)}),e},t.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_?this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray():[]},t.prototype.getClosestFeatureToCoordinate=function(t,e){var r=t[0],o=t[1],a=null,s=[NaN,NaN],l=1/0,u=[-1/0,-1/0,1/0,1/0],h=e||b;return this.featuresRtree_.forEachInExtent(u,function(t){if(h(t)){var e=t.getGeometry(),n=l;if((l=e.closestPointXY(r,o,s,l))<n){a=t;var i=Math.sqrt(l);u[0]=r-i,u[1]=o-i,u[2]=r+i,u[3]=o+i}}}),a},t.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},t.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},t.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(t){var e=t.target,n=dt(e),i=e.getGeometry();if(i){var r=i.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(r,e)):this.featuresRtree_&&this.featuresRtree_.update(r,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);var o=e.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new xg(yg,e))},t.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:dt(t)in this.uidIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&f(this.nullGeometryFeatures_)},t.prototype.loadFeatures=function(t,i,r){var o=this.loadedExtentsRtree_,a=this.strategy_(t,i);this.loading=!1;for(var e=function(t,e){var n=a[t];o.forEachInExtent(n,function(t){return Pe(t.extent,n)})||(s.loader_.call(s,n,i,r),o.insert(n,{extent:n.slice()}),s.loading=s.loader_!==C)},s=this,n=0,l=a.length;n<l;++n)e(n)},t.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),a.prototype.refresh.call(this)},t.prototype.removeLoadedExtent=function(e){var n,t=this.loadedExtentsRtree_;t.forEachInExtent(e,function(t){if(Le(t.extent,e))return n=t,!0}),n&&t.remove(n)},t.prototype.removeFeature=function(t){var e=dt(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},t.prototype.removeFeatures=function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e],r=dt(i);r in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[r]:this.featuresRtree_&&this.featuresRtree_.remove(i),this.removeFeatureInternal(i)}this.changed()},t.prototype.removeFeatureInternal=function(t){var e=dt(t);this.featureChangeKeys_[e].forEach(_),delete this.featureChangeKeys_[e];var n=t.getId();void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new xg(mg,t))},t.prototype.removeFromIdIndex_=function(t){var e=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e},t.prototype.setLoader=function(t){this.loader_=t},t.prototype.setUrl=function(t){K(this.format_,7),this.setLoader(Ka(t,this.format_))},t}(fg),wg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),bg="Point",Pg="LineString",Sg="Polygon",Cg=function(i){function t(t,e){var n=i.call(this,t)||this;return n.feature=e,n}return wg(t,i),t}(E),Mg=function(s){function t(t){var e=this,n=t;n.stopDown||(n.stopDown=P),(e=s.call(this,n)||this).shouldHandle_=!1,e.downPx_=null,e.downTimeout_,e.lastDragTime_,e.freehand_=!1,e.source_=t.source?t.source:null,e.features_=t.features?t.features:null,e.snapTolerance_=t.snapTolerance?t.snapTolerance:12,e.type_=t.type,e.mode_=function(t){var e;return t===re.POINT||t===re.MULTI_POINT?e=bg:t===re.LINE_STRING||t===re.MULTI_LINE_STRING?e=Pg:t===re.POLYGON||t===re.MULTI_POLYGON?e=Sg:t===re.CIRCLE&&(e="Circle"),e}(e.type_),e.stopClick_=!!t.stopClick,e.minPoints_=t.minPoints?t.minPoints:e.mode_===Sg?3:2,e.maxPoints_=t.maxPoints?t.maxPoints:1/0,e.finishCondition_=t.finishCondition?t.finishCondition:b;var i,r=t.geometryFunction;if(!r)if(e.type_===re.CIRCLE)r=function(t,e){var n=e||new zy([NaN,NaN]),i=Ei(t[0],t[1]);return n.setCenterAndRadius(t[0],Math.sqrt(i)),n};else{var o,a=e.mode_;a===bg?o=Cr:a===Pg?o=ss:a===Sg&&(o=Vr),r=function(t,e){var n=e;return n?a===Sg?t[0].length?n.setCoordinates([t[0].concat([t[0][0]])]):n.setCoordinates([]):n.setCoordinates(t):n=new o(t),n}}return e.geometryFunction_=r,e.dragVertexDelay_=void 0!==t.dragVertexDelay?t.dragVertexDelay:500,e.finishCoordinate_=null,e.sketchFeature_=null,e.sketchPoint_=null,e.sketchCoords_=null,e.sketchLine_=null,e.sketchLineCoords_=null,e.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,e.overlay_=new lg({source:new _g({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:(i=Zh(),function(t,e){return i[t.getGeometry().getType()]}),updateWhileInteracting:!0}),e.geometryName_=t.geometryName,e.condition_=t.condition?t.condition:Da,e.freehandCondition_,t.freehand?e.freehandCondition_=Oa:e.freehandCondition_=t.freehandCondition?t.freehandCondition:Fa,e.addEventListener(W(Dy),e.updateState_),e}return wg(t,s),t.prototype.setMap=function(t){s.prototype.setMap.call(this,t),this.updateState_()},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleEvent=function(t){t.originalEvent.type===O&&t.preventDefault(),this.freehand_=this.mode_!==bg&&this.freehandCondition_(t);var e=t.type===Qn.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&t.type===Qn.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,e=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&t.type===Qn.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),n=!1):this.freehand_&&t.type===Qn.POINTERDOWN?n=!1:e?(n=t.type===Qn.POINTERMOVE)&&this.freehand_?n=this.handlePointerMove_(t):("mouse"==t.pointerEvent.pointerType||t.type===Qn.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t):t.type===Qn.DBLCLICK&&(n=!1),s.prototype.handleEvent.call(this,t)&&n},t.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new ti(Qn.POINTERMOVE,t.map,t.pointerEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},t.prototype.handleUpEvent=function(t){var e=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t);var n="Circle"===this.mode_;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||n?this.finishDrawing():this.atFinish_(t)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t):(this.startDrawing_(t),this.mode_===bg&&this.finishDrawing()),e=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!e&&this.stopClick_&&t.stopPropagation(),e},t.prototype.handlePointerMove_=function(t){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,n=t.pixel,i=e[0]-n[0],r=e[1]-n[1],o=i*i+r*r;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(t):this.createOrUpdateSketchPoint_(t),!0},t.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var n=!1,i=[this.finishCoordinate_];if(this.mode_===Pg)n=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===Sg){var r=this.sketchCoords_;n=r[0].length>this.minPoints_,i=[r[0][0],r[0][r[0].length-2]]}if(n)for(var o=t.map,a=0,s=i.length;a<s;a++){var l=i[a],u=o.getPixelFromCoordinate(l),h=t.pixel,c=h[0]-u[0],p=h[1]-u[1],f=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(c*c+p*p)<=f){this.finishCoordinate_=l;break}}}return e},t.prototype.createOrUpdateSketchPoint_=function(t){var e=t.coordinate.slice();this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new Ba(new Cr(e)),this.updateSketchFeatures_())},t.prototype.startDrawing_=function(t){var e=t.coordinate;this.finishCoordinate_=e,this.mode_===bg?this.sketchCoords_=e.slice():this.mode_===Sg?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new Ba(new ss(this.sketchLineCoords_)));var n=this.geometryFunction_(this.sketchCoords_);this.sketchFeature_=new Ba,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(n),this.updateSketchFeatures_(),this.dispatchEvent(new Cg("drawstart",this.sketchFeature_))},t.prototype.modifyDrawing_=function(t){var e,n,i,r=t.coordinate,o=this.sketchFeature_.getGeometry();if(this.mode_===bg?n=this.sketchCoords_:this.mode_===Sg?(n=(e=this.sketchCoords_[0])[e.length-1],this.atFinish_(t)&&(r=this.finishCoordinate_.slice())):n=(e=this.sketchCoords_)[e.length-1],n[0]=r[0],n[1]=r[1],this.geometryFunction_(this.sketchCoords_,o),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(r),o.getType()==re.POLYGON&&this.mode_!==Sg){this.sketchLine_||(this.sketchLine_=new Ba);var a=o.getLinearRing(0);(i=this.sketchLine_.getGeometry())?(i.setFlatCoordinates(a.getLayout(),a.getFlatCoordinates()),i.changed()):(i=new ss(a.getFlatCoordinates(),a.getLayout()),this.sketchLine_.setGeometry(i))}else this.sketchLineCoords_&&(i=this.sketchLine_.getGeometry()).setCoordinates(this.sketchLineCoords_);this.updateSketchFeatures_()},t.prototype.addToDrawing_=function(t){var e,n,i=t.coordinate,r=this.sketchFeature_.getGeometry();this.mode_===Pg?(this.finishCoordinate_=i.slice(),(n=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(i.slice()),this.geometryFunction_(n,r)):this.mode_===Sg&&((n=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(i.slice()),e&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,r)),this.updateSketchFeatures_(),e&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry();this.mode_===Pg?((t=this.sketchCoords_).splice(-2,1),this.geometryFunction_(t,e),2<=t.length&&(this.finishCoordinate_=t[t.length-2].slice())):this.mode_===Sg&&((t=this.sketchCoords_[0]).splice(-2,1),this.sketchLine_.getGeometry().setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e)),0===t.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,n=t.getGeometry();this.mode_===Pg?(e.pop(),this.geometryFunction_(e,n)):this.mode_===Sg&&(e[0].pop(),this.geometryFunction_(e,n),e=n.getCoordinates()),this.type_===re.MULTI_POINT?t.setGeometry(new cs([e])):this.type_===re.MULTI_LINE_STRING?t.setGeometry(new us([e])):this.type_===re.MULTI_POLYGON&&t.setGeometry(new ds([e])),this.dispatchEvent(new Cg("drawend",t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return t&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),t},t.prototype.extend=function(t){var e=t.getGeometry();this.sketchFeature_=t,this.sketchCoords_=e.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new Cg("drawstart",this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},t.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing_(),this.overlay_.setMap(e?t:null)},t}(Jy),Tg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ag=function(n){function t(t){var e=n.call(this,"extentchanged")||this;return e.extent=t,e}return Tg(t,n),t}(E);function Eg(e){return function(t){return ve([e,t])}}function Ig(e,n){return e[0]==n[0]?function(t){return ve([e,[t[0],n[1]]])}:e[1]==n[1]?function(t){return ve([e,[n[0],t[1]]])}:null}var Lg=function(r){function t(t){var n,e=this,i=t||{};return(e=r.call(this,i)||this).extent_=null,e.pointerHandler_=null,e.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,e.snappedToVertex_=!1,e.extentFeature_=null,e.vertexFeature_=null,t=t||{},e.extentOverlay_=new lg({source:new _g({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle?t.boxStyle:(n=Zh(),function(t,e){return n[re.POLYGON]}),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.vertexOverlay_=new lg({source:new _g({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle?t.pointerStyle:function(){var n=Zh();return function(t,e){return n[re.POINT]}}(),updateWhileAnimating:!0,updateWhileInteracting:!0}),t.extent&&e.setExtent(t.extent),e}return Tg(t,r),t.prototype.snapToVertex_=function(t,e){var n=e.getCoordinateFromPixelInternal(t),i=this.getExtentInternal();if(i){var r=function(t){return[[[t[0],t[1]],[t[0],t[3]]],[[t[0],t[3]],[t[2],t[3]]],[[t[2],t[3]],[t[2],t[1]]],[[t[2],t[1]],[t[0],t[1]]]]}(i);r.sort(function(t,e){return Li(n,t)-Li(n,e)});var o=r[0],a=Pi(n,o),s=e.getPixelFromCoordinateInternal(a);if(Ii(t,s)<=this.pixelTolerance_){var l=e.getPixelFromCoordinateInternal(o[0]),u=e.getPixelFromCoordinateInternal(o[1]),h=Ei(s,l),c=Ei(s,u),p=Math.sqrt(Math.min(h,c));return this.snappedToVertex_=p<=this.pixelTolerance_,this.snappedToVertex_&&(a=c<h?o[1]:o[0]),a}}return null},t.prototype.handlePointerMove_=function(t){var e=t.pixel,n=t.map,i=this.snapToVertex_(e,n);i=i||n.getCoordinateFromPixelInternal(e),this.createOrUpdatePointerFeature_(i)},t.prototype.createOrUpdateExtentFeature_=function(t){var e=this.extentFeature_;return e?t?e.setGeometry(Br(t)):e.setGeometry(void 0):(e=new Ba(t?Br(t):{}),this.extentFeature_=e,this.extentOverlay_.getSource().addFeature(e)),e},t.prototype.createOrUpdatePointerFeature_=function(t){var e=this.vertexFeature_;return e?e.getGeometry().setCoordinates(t):(e=new Ba(new Cr(t)),this.vertexFeature_=e,this.vertexOverlay_.getSource().addFeature(e)),e},t.prototype.handleEvent=function(t){return!t.pointerEvent||(t.type!=Qn.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(t),r.prototype.handleEvent.call(this,t),!1)},t.prototype.handleDownEvent=function(t){var e=t.pixel,n=t.map,i=this.getExtentInternal(),r=this.snapToVertex_(e,n),o=function(t){var e=null,n=null;return t[0]==i[0]?e=i[2]:t[0]==i[2]&&(e=i[0]),t[1]==i[1]?n=i[3]:t[1]==i[3]&&(n=i[1]),null!==e&&null!==n?[e,n]:null};if(r&&i){var a=r[0]==i[0]||r[0]==i[2]?r[0]:null,s=r[1]==i[1]||r[1]==i[3]?r[1]:null;null!==a&&null!==s?this.pointerHandler_=Eg(o(r)):null!==a?this.pointerHandler_=Ig(o([a,i[1]]),o([a,i[3]])):null!==s&&(this.pointerHandler_=Ig(o([i[0],s]),o([i[2],s])))}else r=n.getCoordinateFromPixelInternal(e),this.setExtent([r[0],r[1],r[0],r[1]]),this.pointerHandler_=Eg(r);return!0},t.prototype.handleDragEvent=function(t){if(this.pointerHandler_){var e=t.coordinate;this.setExtent(this.pointerHandler_(e)),this.createOrUpdatePointerFeature_(e)}return!0},t.prototype.handleUpEvent=function(t){this.pointerHandler_=null;var e=this.getExtentInternal();return e&&0!==ze(e)||this.setExtent(null),!1},t.prototype.setMap=function(t){this.extentOverlay_.setMap(t),this.vertexOverlay_.setMap(t),r.prototype.setMap.call(this,t)},t.prototype.getExtent=function(){return Dn(this.getExtentInternal(),this.getMap().getView().getProjection())},t.prototype.getExtentInternal=function(){return this.extent_},t.prototype.setExtent=function(t){this.extent_=t||null,this.createOrUpdateExtentFeature_(t),this.dispatchEvent(new Ag(this.extent_))},t}(Jy),Rg=37,Og=38,Ng=39,kg=40,zg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Dg(t){var e=!1;if(t.type==k){var n=t.originalEvent.keyCode;if(this.condition_(t)&&(n==kg||n==Rg||n==Ng||n==Og)){var i=t.map.getView(),r=i.getResolution()*this.pixelDelta_,o=0,a=0;n==kg?a=-r:n==Rg?o=-r:n==Ng?o=r:a=r;var s=[o,a];Ti(s,i.getRotation()),function(t,e,n){var i=t.getCenterInternal();if(i){var r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:zi,center:t.getConstrainedCenter(r)})}}(i,s,this.duration_),t.preventDefault(),e=!0}}return!e}var Fg=function(i){function t(t){var e=i.call(this,{handleEvent:Dg})||this,n=t||{};return e.defaultCondition_=function(t){return Da(t)&&Ga(t)},e.condition_=void 0!==n.condition?n.condition:e.defaultCondition_,e.duration_=void 0!==n.duration?n.duration:100,e.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,e}return zg(t,i),t}(jy),Gg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function jg(t){var e=!1;if(t.type==k||t.type==z){var n=t.originalEvent.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var i=t.map,r=n=="+".charCodeAt(0)?this.delta_:-this.delta_;Gy(i.getView(),r,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var Vg=function(i){function t(t){var e=i.call(this,{handleEvent:jg})||this,n=t||{};return e.condition_=n.condition?n.condition:Ga,e.delta_=n.delta?n.delta:1,e.duration_=void 0!==n.duration?n.duration:100,e}return Gg(t,i),t}(jy),qg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bg=[0,0,0,0],Ug=[],Wg=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.features=e,i.mapBrowserEvent=n,i}return qg(t,r),t}(E);function Zg(t,e){return t.index-e.index}function Xg(t,e,n){var i=e.geometry;if(i.getType()===re.CIRCLE){var r=i;if(1===e.index){var o=Ei(r.getCenter(),t),a=Math.sqrt(o)-r.getRadius();return a*a}}var s=zn(t,n);return Ug[0]=zn(e.segment[0],n),Ug[1]=zn(e.segment[1],n),Li(s,Ug)}function Hg(t,e,n){var i=e.geometry;if(i.getType()===re.CIRCLE&&1===e.index)return i.getClosestPoint(t);var r=zn(t,n);return Ug[0]=zn(e.segment[0],n),Ug[1]=zn(e.segment[1],n),kn(Pi(r,Ug),n)}var Yg=function(r){function t(t){var n,e,i=r.call(this,t)||this;if(i.boundHandleFeatureChange_=i.handleFeatureChange_.bind(i),i.condition_=t.condition?t.condition:Va,i.defaultDeleteCondition_=function(t){return Ia(t)&&za(t)},i.deleteCondition_=t.deleteCondition?t.deleteCondition:i.defaultDeleteCondition_,i.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:Oa,i.vertexFeature_=null,i.vertexSegments_=null,i.lastPixel_=[0,0],i.ignoreNextSingleClick_=!1,i.modified_=!1,i.rBush_=new gg,i.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,i.snappedToVertex_=!1,i.changingFeature_=!1,i.dragSegments_=[],i.overlay_=new lg({source:new _g({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:(n=Zh(),function(t,e){return n[re.POINT]}),updateWhileAnimating:!0,updateWhileInteracting:!0}),i.SEGMENT_WRITERS_={Point:i.writePointGeometry_.bind(i),LineString:i.writeLineStringGeometry_.bind(i),LinearRing:i.writeLineStringGeometry_.bind(i),Polygon:i.writePolygonGeometry_.bind(i),MultiPoint:i.writeMultiPointGeometry_.bind(i),MultiLineString:i.writeMultiLineStringGeometry_.bind(i),MultiPolygon:i.writeMultiPolygonGeometry_.bind(i),Circle:i.writeCircleGeometry_.bind(i),GeometryCollection:i.writeGeometryCollectionGeometry_.bind(i)},i.source_=null,t.source?(i.source_=t.source,e=new Y(i.source_.getFeatures()),i.source_.addEventListener(dg,i.handleSourceAdd_.bind(i)),i.source_.addEventListener(mg,i.handleSourceRemove_.bind(i))):e=t.features,!e)throw new Error("The modify interaction requires features or a source");return i.features_=e,i.features_.forEach(i.addFeature_.bind(i)),i.features_.addEventListener(u,i.handleFeatureAdd_.bind(i)),i.features_.addEventListener(h,i.handleFeatureRemove_.bind(i)),i.lastPointerEvent_=null,i}return qg(t,r),t.prototype.addFeature_=function(t){var e=t.getGeometry();if(e){var n=this.SEGMENT_WRITERS_[e.getType()];n&&n(t,e)}var i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),t.addEventListener(R,this.boundHandleFeatureChange_)},t.prototype.willModifyFeatures_=function(t){this.modified_||(this.modified_=!0,this.dispatchEvent(new Wg("modifystart",this.features_,t)))},t.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.removeEventListener(R,this.boundHandleFeatureChange_)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,n=[];t.forEach(function(t){e===t.feature&&n.push(t)});for(var i=n.length-1;0<=i;--i){for(var r=n[i],o=this.dragSegments_.length-1;0<=o;--o)this.dragSegments_[o][0]===r&&this.dragSegments_.splice(o,1);t.remove(r)}},t.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),r.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.overlay_.setMap(t),r.prototype.setMap.call(this,t)},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},t.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},t.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},t.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},t.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},t.prototype.writePointGeometry_=function(t,e){var n=e.getCoordinates(),i={feature:t,geometry:e,segment:[n,n]};this.rBush_.insert(e.getExtent(),i)},t.prototype.writeMultiPointGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i){var o=n[i],a={feature:t,geometry:e,depth:[i],index:i,segment:[o,o]};this.rBush_.insert(e.getExtent(),a)}},t.prototype.writeLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length-1;i<r;++i){var o=n.slice(i,i+2),a={feature:t,geometry:e,index:i,segment:o};this.rBush_.insert(ve(o),a)}},t.prototype.writeMultiLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[i],index:a,segment:l};this.rBush_.insert(ve(l),u)}},t.prototype.writePolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[i],index:a,segment:l};this.rBush_.insert(ve(l),u)}},t.prototype.writeMultiPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,h=l.length-1;u<h;++u){var c=l.slice(u,u+2),p={feature:t,geometry:e,depth:[a,i],index:u,segment:c};this.rBush_.insert(ve(c),p)}},t.prototype.writeCircleGeometry_=function(t,e){var n=e.getCenter(),i={feature:t,geometry:e,index:0,segment:[n,n]},r={feature:t,geometry:e,index:1,segment:[n,n]},o=[i,r];i.featureSegments=o,r.featureSegments=o,this.rBush_.insert(Ee(n),i),this.rBush_.insert(e.getExtent(),r)},t.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var n=e.getGeometriesArray(),i=0;i<n.length;++i){var r=n[i];(0,this.SEGMENT_WRITERS_[r.getType()])(t,r)}},t.prototype.createOrUpdateVertexFeature_=function(t){var e=this.vertexFeature_;return e?e.getGeometry().setCoordinates(t):(e=new Ba(new Cr(t)),this.vertexFeature_=e,this.overlay_.getSource().addFeature(e)),e},t.prototype.handleEvent=function(t){return!t.pointerEvent||((this.lastPointerEvent_=t).map.getView().getInteracting()||t.type!=Qn.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(t),this.vertexFeature_&&this.deleteCondition_(t)&&(e=!(t.type!=Qn.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),t.type==Qn.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),r.prototype.handleEvent.call(this,t)&&!e);var e},t.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t);for(var e=t.coordinate,n=0,i=this.dragSegments_.length;n<i;++n){for(var r=this.dragSegments_[n],o=r[0],a=o.depth,s=o.geometry,l=void 0,u=o.segment,h=r[1];e.length<s.getStride();)e.push(u[h][e.length]);switch(s.getType()){case re.POINT:l=e,u[0]=e,u[1]=e;break;case re.MULTI_POINT:(l=s.getCoordinates())[o.index]=e,u[0]=e,u[1]=e;break;case re.LINE_STRING:(l=s.getCoordinates())[o.index+h]=e,u[h]=e;break;case re.MULTI_LINE_STRING:case re.POLYGON:(l=s.getCoordinates())[a[0]][o.index+h]=e,u[h]=e;break;case re.MULTI_POLYGON:(l=s.getCoordinates())[a[1]][a[0]][o.index+h]=e,u[h]=e;break;case re.CIRCLE:u[0]=e,u[1]=e,0===o.index?(this.changingFeature_=!0,s.setCenter(e)):(this.changingFeature_=!0,s.setRadius(Ii(s.getCenter(),e))),this.changingFeature_=!1}l&&this.setGeometryCoordinates_(s,l)}this.createOrUpdateVertexFeature_(e)},t.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;this.handlePointerAtPixel_(t.pixel,t.map);var e=t.coordinate;this.dragSegments_.length=0,this.modified_=!1;var n=this.vertexFeature_;if(n){var i=t.map.getView().getProjection(),r=[],o=n.getGeometry().getCoordinates(),a=ve([o]),s=this.rBush_.getInExtent(a),l={};s.sort(Zg);for(var u=0,h=s.length;u<h;++u){var c=s[u],p=c.segment,f=dt(c.feature),d=c.depth;if(d&&(f+="-"+d.join("-")),l[f]||(l[f]=new Array(2)),c.geometry.getType()!==re.CIRCLE||1!==c.index)if(!Mi(p[0],o)||l[f][0])if(!Mi(p[1],o)||l[f][1])dt(p)in this.vertexSegments_&&!l[f][0]&&!l[f][1]&&this.insertVertexCondition_(t)&&r.push([c,o]);else{if((c.geometry.getType()===re.LINE_STRING||c.geometry.getType()===re.MULTI_LINE_STRING)&&l[f][0]&&0===l[f][0].index)continue;this.dragSegments_.push([c,1]),l[f][1]=c}else this.dragSegments_.push([c,0]),l[f][0]=c;else Mi(Hg(e,c,i),o)&&!l[f][0]&&(this.dragSegments_.push([c,0]),l[f][0]=c)}r.length&&this.willModifyFeatures_(t);for(var y=r.length-1;0<=y;--y)this.insertVertex_.apply(this,r[y])}return!!this.vertexFeature_},t.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;0<=e;--e){var n=this.dragSegments_[e][0],i=n.geometry;if(i.getType()===re.CIRCLE){var r=i.getCenter(),o=n.featureSegments[0],a=n.featureSegments[1];o.segment[0]=r,o.segment[1]=r,a.segment[0]=r,a.segment[1]=r,this.rBush_.update(Ee(r),o),this.rBush_.update(i.getExtent(),a)}else this.rBush_.update(ve(n.segment),n)}return this.modified_&&(this.dispatchEvent(new Wg("modifyend",this.features_,t)),this.modified_=!1),!1},t.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map)},t.prototype.handlePointerAtPixel_=function(t,e){var n=e.getCoordinateFromPixel(t),i=e.getView().getProjection(),r=Dn(xe(Fn(Ee(n,Bg),i),e.getView().getResolution()*this.pixelTolerance_,Bg),i),o=this.rBush_.getInExtent(r);if(0<o.length){o.sort(function(t,e){return Xg(n,t,i)-Xg(n,e,i)});var a=o[0],s=a.segment,l=Hg(n,a,i),u=e.getPixelFromCoordinate(l),h=Ii(t,u);if(h<=this.pixelTolerance_){var c={};if(a.geometry.getType()===re.CIRCLE&&1===a.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(l);else{var p=e.getPixelFromCoordinate(s[0]),f=e.getPixelFromCoordinate(s[1]),d=Ei(u,p),y=Ei(u,f);h=Math.sqrt(Math.min(d,y)),this.snappedToVertex_=h<=this.pixelTolerance_,this.snappedToVertex_&&(l=y<d?s[1]:s[0]),this.createOrUpdateVertexFeature_(l);for(var m=1,g=o.length;m<g;++m){var v=o[m].segment;if(!(Mi(s[0],v[0])&&Mi(s[1],v[1])||Mi(s[0],v[1])&&Mi(s[1],v[0])))break;c[dt(v)]=!0}}return c[dt(s)]=!0,void(this.vertexSegments_=c)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},t.prototype.insertVertex_=function(t,e){for(var n,i=t.segment,r=t.feature,o=t.geometry,a=t.depth,s=t.index;e.length<o.getStride();)e.push(0);switch(o.getType()){case re.MULTI_LINE_STRING:case re.POLYGON:(n=o.getCoordinates())[a[0]].splice(s+1,0,e);break;case re.MULTI_POLYGON:(n=o.getCoordinates())[a[1]][a[0]].splice(s+1,0,e);break;case re.LINE_STRING:(n=o.getCoordinates()).splice(s+1,0,e);break;default:return}this.setGeometryCoordinates_(o,n);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,s,a,1);var u={segment:[i[0],e],feature:r,geometry:o,depth:a,index:s};l.insert(ve(u.segment),u),this.dragSegments_.push([u,1]);var h={segment:[e,i[1]],feature:r,geometry:o,depth:a,index:s+1};l.insert(ve(h.segment),h),this.dragSegments_.push([h,0]),this.ignoreNextSingleClick_=!0},t.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=Qn.POINTERDRAG){var t=this.lastPointerEvent_;this.willModifyFeatures_(t);var e=this.removeVertex_();return this.dispatchEvent(new Wg("modifyend",this.features_,t)),this.modified_=!1,e}return!1},t.prototype.removeVertex_=function(){var t,e,n,i,r,o,a,s,l,u,h,c=this.dragSegments_,p={},f=!1;for(r=c.length-1;0<=r;--r)h=dt((u=(n=c[r])[0]).feature),u.depth&&(h+="-"+u.depth.join("-")),h in p||(p[h]={}),0===n[1]?(p[h].right=u,p[h].index=u.index):1==n[1]&&(p[h].left=u,p[h].index=u.index+1);for(h in p){switch(l=p[h].right,a=p[h].left,(s=(o=p[h].index)-1)<0&&(s=0),t=e=(i=(u=void 0!==a?a:l).geometry).getCoordinates(),f=!1,i.getType()){case re.MULTI_LINE_STRING:2<e[u.depth[0]].length&&(e[u.depth[0]].splice(o,1),f=!0);break;case re.LINE_STRING:2<e.length&&(e.splice(o,1),f=!0);break;case re.MULTI_POLYGON:t=t[u.depth[1]];case re.POLYGON:4<(t=t[u.depth[0]]).length&&(o==t.length-1&&(o=0),t.splice(o,1),f=!0,0===o&&(t.pop(),t.push(t[0]),s=t.length-1))}if(f){this.setGeometryCoordinates_(i,e);var d=[];if(void 0!==a&&(this.rBush_.remove(a),d.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),d.push(l.segment[1])),void 0!==a&&void 0!==l){var y={depth:u.depth,feature:u.feature,geometry:u.geometry,index:s,segment:d};this.rBush_.insert(ve(y.segment),y)}this.updateSegmentIndices_(i,o,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),c.length=0}}return f},t.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},t.prototype.updateSegmentIndices_=function(e,n,i,r){this.rBush_.forEachInExtent(e.getExtent(),function(t){t.geometry===e&&(void 0===i||void 0===t.depth||kt(t.depth,i))&&t.index>n&&(t.index+=r)})},t}(Jy),Kg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Jg=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,n)||this).totalDelta_=0,e.lastDelta_=0,e.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,e.duration_=void 0!==n.duration?n.duration:800,e.timeout_=void 0!==n.timeout?n.timeout:300,e.useAnchor_=void 0===n.useAnchor||n.useAnchor,e.condition_=n.condition?n.condition:Oa,e.lastAnchor_=null,e.startTime_=void 0,e.timeoutId_,e.mode_=void 0,e.trackpadEventGap_=400,e.trackpadTimeoutId_,e.trackpadDeltaPerZoom_=300,e}return Kg(t,i),t.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,Math.sign(this.lastDelta_),this.lastAnchor_)},t.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==F)return!0;t.preventDefault();var e,n=t.map,i=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==F&&(e=i.deltaY,Xn&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=Kn),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var r=Date.now();if(void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?"trackpad":"wheel"),"trackpad"===this.mode_){var o=n.getView();return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):o.beginInteraction(),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.trackpadEventGap_),o.adjustZoom(-e/this.trackpadDeltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1}this.totalDelta_+=e;var a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),a),!1},t.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations(),Gy(e,-J(this.totalDelta_,-this.maxDelta_,this.maxDelta_),this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(t){(this.useAnchor_=t)||(this.lastAnchor_=null)},t}(jy),Qg=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),$g=function(r){function t(t){var e=this,n=t||{},i=n;return i.stopDown||(i.stopDown=P),(e=r.call(this,i)||this).anchor_=null,e.lastAngle_=void 0,e.rotating_=!1,e.rotationDelta_=0,e.threshold_=void 0!==n.threshold?n.threshold:.3,e.duration_=void 0!==n.duration?n.duration:250,e}return Qg(t,r),t.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==yi){var l=a.getViewport().getBoundingClientRect(),u=Ky(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},t.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2&&(t.map.getView().endInteraction(this.duration_),1))},t.prototype.handleDownEvent=function(t){if(2<=this.targetPointers.length){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},t}(Jy),tv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ev=function(r){function t(t){var e=this,n=t||{},i=n;return i.stopDown||(i.stopDown=P),(e=r.call(this,i)||this).anchor_=null,e.duration_=void 0!==n.duration?n.duration:400,e.lastDistance_=void 0,e.lastScaleDelta_=1,e}return tv(t,r),t.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,a=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e);var u=s.getViewport().getBoundingClientRect(),h=Ky(this.targetPointers);h[0]-=u.left,h[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(h),s.render(),l.adjustResolutionInternal(e,this.anchor_)},t.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),n=1<this.lastScaleDelta_?1:-1;return e.endInteraction(this.duration_,n),!1}return!0},t.prototype.handleDownEvent=function(t){if(2<=this.targetPointers.length){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},t}(Jy),nv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),iv="select",rv=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r.selected=e,r.deselected=n,r.mapBrowserEvent=i,r}return nv(t,o),t}(E);function ov(t){if(!this.condition_(t))return!0;var n=this.addCondition_(t),i=this.removeCondition_(t),r=this.toggleCondition_(t),e=!n&&!i&&!r,o=t.map,a=this.getFeatures(),s=[],l=[];if(e){y(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return l.push(t),this.addFeatureLayerAssociation_(t,e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var u=a.getLength()-1;0<=u;--u){var h=a.item(u),c=l.indexOf(h);-1<c?l.splice(c,1):(a.remove(h),s.push(h))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return!n&&!r||M(a.getArray(),t)?(i||r)&&M(a.getArray(),t)&&(s.push(t),this.removeFeatureLayerAssociation_(t)):(l.push(t),this.addFeatureLayerAssociation_(t,e)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=s.length-1;0<=p;--p)a.remove(s[p]);a.extend(l)}return(0<l.length||0<s.length)&&this.dispatchEvent(new rv(iv,l,s,t)),!0}var av=function(s){function t(t){var e,n,i=s.call(this,{handleEvent:ov})||this,r=t||{};if(i.condition_=r.condition?r.condition:za,i.addCondition_=r.addCondition?r.addCondition:ka,i.removeCondition_=r.removeCondition?r.removeCondition:ka,i.toggleCondition_=r.toggleCondition?r.toggleCondition:Fa,i.multi_=!!r.multi&&r.multi,i.filter_=r.filter?r.filter:b,i.hitTolerance_=r.hitTolerance?r.hitTolerance:0,i.style_=void 0!==r.style?r.style:(g((e=Zh())[re.POLYGON],e[re.LINE_STRING]),g(e[re.GEOMETRY_COLLECTION],e[re.LINE_STRING]),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}),i.featureStyleAssociation_={},i.features_=r.features||new Y,r.layers)if("function"==typeof r.layers)n=r.layers;else{var o=r.layers;n=function(t){return M(o,t)}}else n=b;i.layerFilter_=n,i.featureLayerAssociation_={};var a=i.getFeatures();return a.addEventListener(u,i.addFeature_.bind(i)),a.addEventListener(h,i.removeFeature_.bind(i)),i}return nv(t,s),t.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[dt(t)]=e},t.prototype.getFeatures=function(){return this.features_},t.prototype.getHitTolerance=function(){return this.hitTolerance_},t.prototype.getLayer=function(t){return this.featureLayerAssociation_[dt(t)]},t.prototype.setHitTolerance=function(t){this.hitTolerance_=t},t.prototype.setMap=function(t){this.getMap()&&this.style_&&this.features_.forEach(this.removeSelectedStyle_.bind(this)),s.prototype.setMap.call(this,t),t&&this.style_&&this.features_.forEach(this.giveSelectedStyle_.bind(this))},t.prototype.addFeature_=function(t){var e=t.element;this.style_&&this.giveSelectedStyle_(e)},t.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.removeSelectedStyle_(e)},t.prototype.giveSelectedStyle_=function(t){var e=dt(t);this.featureStyleAssociation_[e]=t.getStyle(),t.setStyle(this.style_)},t.prototype.removeSelectedStyle_=function(t){var e=dt(t);t.setStyle(this.featureStyleAssociation_[e]),delete this.featureStyleAssociation_[e]},t.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[dt(t)]},t}(jy),sv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function lv(t){return t.feature?t.feature:t.element?t.element:void 0}var uv=[],hv=function(r){function t(t){var e=this,n=t||{},i=n;return i.handleDownEvent||(i.handleDownEvent=b),i.stopDown||(i.stopDown=P),(e=r.call(this,i)||this).source_=n.source?n.source:null,e.vertex_=void 0===n.vertex||n.vertex,e.edge_=void 0===n.edge||n.edge,e.features_=n.features?n.features:null,e.featuresListenerKeys_=[],e.featureChangeListenerKeys_={},e.indexedFeaturesExtents_={},e.pendingFeatures_={},e.pixelTolerance_=void 0!==n.pixelTolerance?n.pixelTolerance:10,e.rBush_=new gg,e.SEGMENT_WRITERS_={Point:e.writePointGeometry_.bind(e),LineString:e.writeLineStringGeometry_.bind(e),LinearRing:e.writeLineStringGeometry_.bind(e),Polygon:e.writePolygonGeometry_.bind(e),MultiPoint:e.writeMultiPointGeometry_.bind(e),MultiLineString:e.writeMultiLineStringGeometry_.bind(e),MultiPolygon:e.writeMultiPolygonGeometry_.bind(e),GeometryCollection:e.writeGeometryCollectionGeometry_.bind(e),Circle:e.writeCircleGeometry_.bind(e)},e}return sv(t,r),t.prototype.addFeature=function(t,e){var n=void 0===e||e,i=dt(t),r=t.getGeometry();if(r){var o=this.SEGMENT_WRITERS_[r.getType()];o&&(this.indexedFeaturesExtents_[i]=r.getExtent([1/0,1/0,-1/0,-1/0]),o(t,r))}n&&(this.featureChangeListenerKeys_[i]=x(t,R,this.handleFeatureChange_,this))},t.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},t.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},t.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},t.prototype.handleEvent=function(t){var e=this.snapTo(t.pixel,t.coordinate,t.map);return e.snapped&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.vertexPixel),r.prototype.handleEvent.call(this,t)},t.prototype.handleFeatureAdd_=function(t){var e=lv(t);this.addFeature(e)},t.prototype.handleFeatureRemove_=function(t){var e=lv(t);this.removeFeature(e)},t.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var n=dt(e);n in this.pendingFeatures_||(this.pendingFeatures_[n]=e)}else this.updateFeature_(e)},t.prototype.handleUpEvent=function(t){var e=p(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},t.prototype.removeFeature=function(e,t){var n=void 0===t||t,i=dt(e),r=this.indexedFeaturesExtents_[i];if(r){var o=this.rBush_,a=[];o.forEachInExtent(r,function(t){e===t.feature&&a.push(t)});for(var s=a.length-1;0<=s;--s)o.remove(a[s])}n&&(_(this.featureChangeListenerKeys_[i]),delete this.featureChangeListenerKeys_[i])},t.prototype.setMap=function(t){var e=this.getMap(),n=this.featuresListenerKeys_,i=this.getFeatures_();e&&(n.forEach(_),n.length=0,i.forEach(this.forEachFeatureRemove_.bind(this))),r.prototype.setMap.call(this,t),t&&(this.features_?n.push(x(this.features_,u,this.handleFeatureAdd_,this),x(this.features_,h,this.handleFeatureRemove_,this)):this.source_&&n.push(x(this.source_,dg,this.handleFeatureAdd_,this),x(this.source_,mg,this.handleFeatureRemove_,this)),i.forEach(this.forEachFeatureAdd_.bind(this)))},t.prototype.snapTo=function(t,e,n){var i=ve([n.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),n.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_])]),r=this.rBush_.getInExtent(i);this.vertex_&&!this.edge_&&(r=r.filter(function(t){return t.feature.getGeometry().getType()!==re.CIRCLE}));var o=!1,a=null,s=null;if(0===r.length)return{snapped:o,vertex:a,vertexPixel:s};for(var l,u=n.getView().getProjection(),h=zn(e,u),c=1/0,p=0;p<r.length;++p){var f=r[p];uv[0]=zn(f.segment[0],u),uv[1]=zn(f.segment[1],u);var d=Li(h,uv);d<c&&(l=f,c=d)}var y=l.segment;if(this.vertex_&&!this.edge_){var m=n.getPixelFromCoordinate(y[0]),g=n.getPixelFromCoordinate(y[1]),v=Ei(t,m),x=Ei(t,g);Math.sqrt(Math.min(v,x))<=this.pixelTolerance_&&(o=!0,a=x<v?y[1]:y[0],s=n.getPixelFromCoordinate(a))}else if(this.edge_){var _=l.feature.getGeometry().getType()===re.CIRCLE;a=_?function(t,e){var n=e.getRadius(),i=e.getCenter(),r=i[0],o=i[1],a=t[0]-r,s=t[1]-o;0===a&&0==s&&(a=1);var l=Math.sqrt(a*a+s*s);return[r+n*a/l,o+n*s/l]}(e,l.feature.getGeometry()):(uv[0]=zn(y[0],u),uv[1]=zn(y[1],u),kn(Pi(h,uv),u)),Ii(t,s=n.getPixelFromCoordinate(a))<=this.pixelTolerance_&&(o=!0,this.vertex_&&!_)&&(m=n.getPixelFromCoordinate(y[0]),g=n.getPixelFromCoordinate(y[1]),v=Ei(s,m),x=Ei(s,g),Math.sqrt(Math.min(v,x))<=this.pixelTolerance_&&(a=x<v?y[1]:y[0],s=n.getPixelFromCoordinate(a)))}return o&&(s=[Math.round(s[0]),Math.round(s[1])]),{snapped:o,vertex:a,vertexPixel:s}},t.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},t.prototype.writeCircleGeometry_=function(t,e){for(var n=Ur(e).getCoordinates()[0],i=0,r=n.length-1;i<r;++i){var o=n.slice(i,i+2),a={feature:t,segment:o};this.rBush_.insert(ve(o),a)}},t.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var n=e.getGeometriesArray(),i=0;i<n.length;++i){var r=this.SEGMENT_WRITERS_[n[i].getType()];r&&r(t,n[i])}},t.prototype.writeLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length-1;i<r;++i){var o=n.slice(i,i+2),a={feature:t,segment:o};this.rBush_.insert(ve(o),a)}},t.prototype.writeMultiLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,segment:l};this.rBush_.insert(ve(l),u)}},t.prototype.writeMultiPointGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i){var o=n[i],a={feature:t,segment:[o,o]};this.rBush_.insert(e.getExtent(),a)}},t.prototype.writeMultiPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,h=l.length-1;u<h;++u){var c=l.slice(u,u+2),p={feature:t,segment:c};this.rBush_.insert(ve(c),p)}},t.prototype.writePointGeometry_=function(t,e){var n=e.getCoordinates(),i={feature:t,segment:[n,n]};this.rBush_.insert(e.getExtent(),i)},t.prototype.writePolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,segment:l};this.rBush_.insert(ve(l),u)}},t}(Jy),cv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),pv=function(a){function t(t,e,n,i,r){var o=a.call(this,t)||this;return o.features=e,o.coordinate=n,o.startCoordinate=i,o.mapBrowserEvent=r,o}return cv(t,a),t}(E),fv=function(o){function t(t){var e,n=this,i=t||{};if((n=o.call(this,i)||this).lastCoordinate_=null,n.startCoordinate_=null,n.features_=void 0!==i.features?i.features:null,i.layers)if("function"==typeof i.layers)e=i.layers;else{var r=i.layers;e=function(t){return M(r,t)}}else e=b;return n.layerFilter_=e,n.filter_=i.filter?i.filter:b,n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.lastFeature_=null,n.addEventListener(W(Dy),n.handleActiveChanged_),n}return cv(t,o),t.prototype.handleDownEvent=function(t){if(this.lastFeature_=this.featuresAtPixel_(t.pixel,t.map),this.lastCoordinate_||!this.lastFeature_)return!1;this.startCoordinate_=t.coordinate,this.lastCoordinate_=t.coordinate,this.handleMoveEvent(t);var e=this.features_||new Y([this.lastFeature_]);return this.dispatchEvent(new pv("translatestart",e,t.coordinate,this.startCoordinate_,t)),!0},t.prototype.handleUpEvent=function(t){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(t);var e=this.features_||new Y([this.lastFeature_]);return this.dispatchEvent(new pv("translateend",e,t.coordinate,this.startCoordinate_,t)),!(this.startCoordinate_=null)}return!1},t.prototype.handleDragEvent=function(t){if(this.lastCoordinate_){var e=t.coordinate,n=e[0]-this.lastCoordinate_[0],i=e[1]-this.lastCoordinate_[1],r=this.features_||new Y([this.lastFeature_]);r.forEach(function(t){var e=t.getGeometry();e.translate(n,i),t.setGeometry(e)}),this.lastCoordinate_=e,this.dispatchEvent(new pv("translating",r,e,this.startCoordinate_,t))}},t.prototype.handleMoveEvent=function(t){var e=t.map.getViewport();this.featuresAtPixel_(t.pixel,t.map)?(e.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),e.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")},t.prototype.featuresAtPixel_=function(t,e){return e.forEachFeatureAtPixel(t,function(t,e){if(this.filter_(t,e)&&(!this.features_||M(this.features_.getArray(),t)))return t}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})},t.prototype.getHitTolerance=function(){return this.hitTolerance_},t.prototype.setHitTolerance=function(t){this.hitTolerance_=t},t.prototype.setMap=function(t){var e=this.getMap();o.prototype.setMap.call(this,t),this.updateState_(e)},t.prototype.handleActiveChanged_=function(){this.updateState_(null)},t.prototype.updateState_=function(t){var e=this.getMap(),n=this.getActive();e&&n||(e=e||t)&&e.getViewport().classList.remove("ol-grab","ol-grabbing")},t}(Jy),dv=function(){function t(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[2+e]<t)return!1;for(var n=e-3;0<n&&this.points_[n+2]>t;)n-=3;var i=this.points_[2+e]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],o=this.points_[1+e]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}();function yv(t){var e=t||{},n=new Y,i=new dv(-.005,.05,100);return void 0!==e.altShiftDragRotate&&!e.altShiftDragRotate||n.push(new sm),void 0!==e.doubleClickZoom&&!e.doubleClickZoom||n.push(new By({delta:e.zoomDelta,duration:e.zoomDuration})),void 0!==e.dragPan&&!e.dragPan||n.push(new om({condition:e.onFocusOnly?Ra:void 0,kinetic:i})),void 0!==e.pinchRotate&&!e.pinchRotate||n.push(new $g),void 0!==e.pinchZoom&&!e.pinchZoom||n.push(new ev({duration:e.zoomDuration})),void 0!==e.keyboard&&!e.keyboard||(n.push(new Fg),n.push(new Vg({delta:e.zoomDelta,duration:e.zoomDuration}))),void 0!==e.mouseWheelZoom&&!e.mouseWheelZoom||n.push(new Jg({condition:e.onFocusOnly?Ra:void 0,duration:e.zoomDuration})),void 0!==e.shiftDragZoom&&!e.shiftDragZoom||n.push(new pm({duration:e.zoomDuration})),n}var mv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),gv=function(n){function t(t){var e=t||{};return n.call(this,e)||this}return mv(t,n),t}(Wt),vv="preload",xv="useInterimTilesOnError",_v=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),wv=function(r){function t(t){var e=this,n=t||{},i=v({},n);return delete i.preload,delete i.useInterimTilesOnError,(e=r.call(this,i)||this).setPreload(void 0!==n.preload?n.preload:0),e.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),e}return _v(t,r),t.prototype.getPreload=function(){return this.get(vv)},t.prototype.setPreload=function(t){this.set(vv,t)},t.prototype.getUseInterimTilesOnError=function(){return this.get(xv)},t.prototype.setUseInterimTilesOnError=function(t){this.set(xv,t)},t}(Wt);function bv(t,e,n){for(var i,r,o,a,s,l,u=[],h=t(0),c=t(1),p=e(h),f=e(c),d=[c,h],y=[f,p],m=[1,0],g={},v=1e5;0<--v&&0<m.length;)o=m.pop(),h=d.pop(),p=y.pop(),(l=o.toString())in g||(u.push(p[0],p[1]),g[l]=!0),a=m.pop(),c=d.pop(),f=y.pop(),$((r=e(i=t(s=(o+a)/2)))[0],r[1],p[0],p[1],f[0],f[1])<n?(u.push(f[0],f[1]),g[l=a.toString()]=!0):(m.push(a,s,s,o),y.push(f,r,r,p),d.push(c,i,i,h));return u}var Pv,Sv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cv=new Fh({color:"rgba(0,0,0,0.2)"}),Mv=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],Tv=function(r){function t(t){var e=this,n=t||{},i=v({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},n);return delete i.maxLines,delete i.strokeStyle,delete i.targetSize,delete i.showLabels,delete i.lonLabelFormatter,delete i.latLabelFormatter,delete i.lonLabelPosition,delete i.latLabelPosition,delete i.lonLabelStyle,delete i.latLabelStyle,delete i.intervals,(e=r.call(this,i)||this).projection_=null,e.maxLat_=1/0,e.maxLon_=1/0,e.minLat_=-1/0,e.minLon_=-1/0,e.maxLatP_=1/0,e.maxLonP_=1/0,e.minLatP_=-1/0,e.minLonP_=-1/0,e.targetSize_=void 0!==n.targetSize?n.targetSize:100,e.maxLines_=void 0!==n.maxLines?n.maxLines:100,e.meridians_=[],e.parallels_=[],e.strokeStyle_=void 0!==n.strokeStyle?n.strokeStyle:Cv,e.fromLonLatTransform_=void 0,e.toLonLatTransform_=void 0,e.projectionCenterLonLat_=null,e.meridiansLabels_=null,e.parallelsLabels_=null,n.showLabels&&(e.lonLabelFormatter_=null==n.lonLabelFormatter?Si.bind(e,"EW"):n.lonLabelFormatter,e.latLabelFormatter_=null==n.latLabelFormatter?Si.bind(e,"NS"):n.latLabelFormatter,e.lonLabelPosition_=null==n.lonLabelPosition?0:n.lonLabelPosition,e.latLabelPosition_=null==n.latLabelPosition?1:n.latLabelPosition,e.lonLabelStyleBase_=new ic({text:void 0!==n.lonLabelStyle?n.lonLabelStyle.clone():new rc({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new wh({color:"rgba(0,0,0,1)"}),stroke:new Fh({color:"rgba(255,255,255,1)",width:3})})}),e.lonLabelStyle_=function(t){var e=t.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(e),this.lonLabelStyleBase_}.bind(e),e.latLabelStyleBase_=new ic({text:void 0!==n.latLabelStyle?n.latLabelStyle.clone():new rc({font:"12px Calibri,sans-serif",textAlign:"right",fill:new wh({color:"rgba(0,0,0,1)"}),stroke:new Fh({color:"rgba(255,255,255,1)",width:3})})}),e.latLabelStyle_=function(t){var e=t.get("graticule_label");return this.latLabelStyleBase_.getText().setText(e),this.latLabelStyleBase_}.bind(e),e.meridiansLabels_=[],e.parallelsLabels_=[]),e.intervals_=void 0!==n.intervals?n.intervals:Mv,e.setSource(new _g({loader:e.loaderFunction.bind(e),strategy:hg,features:new Y,overlaps:!1,useSpatialIndex:!1,wrapX:n.wrapX})),e.featurePool_=[],e.lineStyle_=new ic({stroke:e.strokeStyle_}),e.renderedExtent_=null,e.setRenderOrder(null),e.tmpExtent_=null,e}return Sv(t,r),t.prototype.loaderFunction=function(t,e,n){var i=this.getSource(),r=qe(this.getExtent()||[-1/0,-1/0,1/0,1/0],t,this.tmpExtent_);if(setTimeout(function(){i.removeLoadedExtent(t)},0),!(this.renderedExtent_&&Le(this.renderedExtent_,r)||Xe(this.renderedExtent_=r))){var o=Ge(r),a=e*e/4;this.projection_&&Cn(this.projection_,n)||this.updateProjectionInfo_(n),this.createGraticule_(r,o,e,a);var s,l=this.meridians_.length+this.parallels_.length;for(this.meridiansLabels_&&(l+=this.meridiansLabels_.length),this.parallelsLabels_&&(l+=this.parallelsLabels_.length);l>this.featurePool_.length;)s=new Ba,this.featurePool_.push(s);var u=i.getFeaturesCollection();u.clear();var h,c,p,f=0;for(h=0,c=this.meridians_.length;h<c;++h)(s=this.featurePool_[f++]).setGeometry(this.meridians_[h]),s.setStyle(this.lineStyle_),u.push(s);for(h=0,c=this.parallels_.length;h<c;++h)(s=this.featurePool_[f++]).setGeometry(this.parallels_[h]),s.setStyle(this.lineStyle_),u.push(s);if(this.meridiansLabels_)for(h=0,c=this.meridiansLabels_.length;h<c;++h)p=this.meridiansLabels_[h],(s=this.featurePool_[f++]).setGeometry(p.geom),s.setStyle(this.lonLabelStyle_),s.set("graticule_label",p.text),u.push(s);if(this.parallelsLabels_)for(h=0,c=this.parallelsLabels_.length;h<c;++h)p=this.parallelsLabels_[h],(s=this.featurePool_[f++]).setGeometry(p.geom),s.setStyle(this.latLabelStyle_),s.set("graticule_label",p.text),u.push(s)}},t.prototype.addMeridian_=function(t,e,n,i,r,o){var a=this.getMeridian_(t,e,n,i,o);if(Ze(a.getExtent(),r)){if(this.meridiansLabels_){var s=this.getMeridianPoint_(a,r,o);this.meridiansLabels_[o]={geom:s,text:this.lonLabelFormatter_(t)}}this.meridians_[o++]=a}return o},t.prototype.addParallel_=function(t,e,n,i,r,o){var a=this.getParallel_(t,e,n,i,o);if(Ze(a.getExtent(),r)){if(this.parallelsLabels_){var s=this.getParallelPoint_(a,r,o);this.parallelsLabels_[o]={geom:s,text:this.latLabelFormatter_(t)}}this.parallels_[o++]=a}return o},t.prototype.createGraticule_=function(t,e,n,i){var r=this.getInterval_(n);if(-1==r)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o,a,s,l,u=this.toLonLatTransform_(e),h=u[0],c=u[1],p=this.maxLines_,f=[Math.max(t[0],this.minLonP_),Math.max(t[1],this.minLatP_),Math.min(t[2],this.maxLonP_),Math.min(t[3],this.maxLatP_)],d=(f=En(f,this.projection_,"EPSG:4326"))[3],y=f[2],m=f[1],g=f[0];for(l=J(h=Math.floor(h/r)*r,this.minLon_,this.maxLon_),a=this.addMeridian_(l,m,d,i,t,0),o=0;l!=this.minLon_&&o++<p;)l=Math.max(l-r,this.minLon_),a=this.addMeridian_(l,m,d,i,t,a);for(l=J(h,this.minLon_,this.maxLon_),o=0;l!=this.maxLon_&&o++<p;)l=Math.min(l+r,this.maxLon_),a=this.addMeridian_(l,m,d,i,t,a);for(this.meridians_.length=a,this.meridiansLabels_&&(this.meridiansLabels_.length=a),s=J(c=Math.floor(c/r)*r,this.minLat_,this.maxLat_),a=this.addParallel_(s,g,y,i,t,0),o=0;s!=this.minLat_&&o++<p;)s=Math.max(s-r,this.minLat_),a=this.addParallel_(s,g,y,i,t,a);for(s=J(c,this.minLat_,this.maxLat_),o=0;s!=this.maxLat_&&o++<p;)s=Math.min(s+r,this.maxLat_),a=this.addParallel_(s,g,y,i,t,a);this.parallels_.length=a,this.parallelsLabels_&&(this.parallelsLabels_.length=a)},t.prototype.getInterval_=function(t){for(var e=this.projectionCenterLonLat_[0],n=this.projectionCenterLonLat_[1],i=-1,r=Math.pow(this.targetSize_*t,2),o=[],a=[],s=0,l=this.intervals_.length;s<l;++s){var u=this.intervals_[s]/2;if(o[0]=e-u,o[1]=n-u,a[0]=e+u,a[1]=n+u,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a),Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)<=r)break;i=this.intervals_[s]}return i},t.prototype.getMeridian_=function(t,e,n,i,r){var o=function(e,n,i,t,r){return bv(function(t){return[e,n+(i-n)*t]},Tn(xn("EPSG:4326"),t),r)}(t,e,n,this.projection_,i),a=this.meridians_[r];return a?(a.setFlatCoordinates(Di,o),a.changed()):(a=new ss(o,Di),this.meridians_[r]=a),a},t.prototype.getMeridianPoint_=function(t,e,n){var i,r=t.getFlatCoordinates(),o=Math.max(e[1],r[1]),a=Math.min(e[3],r[r.length-1]),s=J(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,o,a),l=[r[0],s];return n in this.meridiansLabels_?(i=this.meridiansLabels_[n].geom).setCoordinates(l):i=new Cr(l),i},t.prototype.getMeridians=function(){return this.meridians_},t.prototype.getParallel_=function(t,e,n,i,r){var o=function(e,n,i,t,r){return bv(function(t){return[n+(i-n)*t,e]},Tn(xn("EPSG:4326"),t),r)}(t,e,n,this.projection_,i),a=this.parallels_[r];return a?(a.setFlatCoordinates(Di,o),a.changed()):a=new ss(o,Di),a},t.prototype.getParallelPoint_=function(t,e,n){var i,r=t.getFlatCoordinates(),o=Math.max(e[0],r[0]),a=Math.min(e[2],r[r.length-2]),s=[J(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,o,a),r[1]];return n in this.parallelsLabels_?(i=this.parallelsLabels_[n].geom).setCoordinates(s):i=new Cr(s),i},t.prototype.getParallels=function(){return this.parallels_},t.prototype.updateProjectionInfo_=function(t){var e=xn("EPSG:4326"),n=t.getWorldExtent(),i=En(n,e,t);this.maxLat_=n[3],this.maxLon_=n[2],this.minLat_=n[1],this.minLon_=n[0],this.maxLatP_=i[3],this.maxLonP_=i[2],this.minLatP_=i[1],this.minLonP_=i[0],this.fromLonLatTransform_=Tn(e,t),this.toLonLatTransform_=Tn(t,e),this.projectionCenterLonLat_=this.toLonLatTransform_(Ge(t.getExtent())),this.projection_=t},t}(lg),Av=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Ev(t,e){for(var n=Av.length,i=0;i<n;++i)try{(e=e||{}).preserveDrawingBuffer=!0;var r=t.getContext(Av[i],e);if(r)return r}catch(t){}return null}function Iv(t){switch(t){case 34962:return Float32Array;case 34963:return Uint32Array;default:return Float32Array}}var Lv=function(){function t(t,e){this.array=null,K(34962===(this.type=t)||34963===t,62),this.usage=void 0!==e?e:35044}return t.prototype.ofSize=function(t){this.array=new(Iv(this.type))(t)},t.prototype.fromArray=function(t){this.array=Iv(this.type).from(t)},t.prototype.fromArrayBuffer=function(t){this.array=new(Iv(this.type))(t)},t.prototype.getType=function(){return this.type},t.prototype.getArray=function(){return this.array},t.prototype.getUsage=function(){return this.usage},t.prototype.getSize=function(){return this.array?this.array.length:0},t}(),Rv="webglcontextlost",Ov="webglcontextrestored";function Nv(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}var kv=function(){function t(e){this.gl_=e.webGlContext;var n=this.gl_;this.scaleRatio_=e.scaleRatio||1,this.renderTargetTexture_=n.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=n.createFramebuffer();var t=n.createShader(n.VERTEX_SHADER);n.shaderSource(t,e.vertexShader||"\n precision mediump float;\n \n attribute vec2 a_position;\n varying vec2 v_texCoord;\n varying vec2 v_screenCoord;\n \n uniform vec2 u_screenSize;\n \n void main() {\n v_texCoord = a_position * 0.5 + 0.5;\n v_screenCoord = v_texCoord * u_screenSize;\n gl_Position = vec4(a_position, 0.0, 1.0);\n }\n"),n.compileShader(t);var i=n.createShader(n.FRAGMENT_SHADER);n.shaderSource(i,e.fragmentShader||"\n precision mediump float;\n \n uniform sampler2D u_image;\n \n varying vec2 v_texCoord;\n varying vec2 v_screenCoord;\n \n void main() {\n gl_FragColor = texture2D(u_image, v_texCoord);\n }\n"),n.compileShader(i),this.renderTargetProgram_=n.createProgram(),n.attachShader(this.renderTargetProgram_,t),n.attachShader(this.renderTargetProgram_,i),n.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=n.createBuffer(),n.bindBuffer(n.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,-1,1,1,-1,1]),n.STATIC_DRAW),this.renderTargetAttribLocation_=n.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=n.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetTextureLocation_=n.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],e.uniforms&&Object.keys(e.uniforms).forEach(function(t){this.uniforms_.push({value:e.uniforms[t],location:n.getUniformLocation(this.renderTargetProgram_,t)})}.bind(this))}return t.prototype.getGL=function(){return this.gl_},t.prototype.init=function(t){var e=this.getGL(),n=e.canvas,i=t.size;if(e.bindFramebuffer(e.FRAMEBUFFER,this.getFrameBuffer()),e.viewport(0,0,n.width*this.scaleRatio_,n.height*this.scaleRatio_),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==i[0]||this.renderTargetTextureSize_[1]!==i[1]){this.renderTargetTextureSize_=i;var r=e.RGBA,o=e.RGBA,a=e.UNSIGNED_BYTE;e.bindTexture(e.TEXTURE_2D,this.renderTargetTexture_),e.texImage2D(e.TEXTURE_2D,0,r,n.width*this.scaleRatio_,n.height*this.scaleRatio_,0,o,a,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.renderTargetTexture_,0)}},t.prototype.apply=function(t,e){var n=this.getGL(),i=n.canvas;n.bindFramebuffer(n.FRAMEBUFFER,e?e.getFrameBuffer():null),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,this.renderTargetTexture_),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,n.ONE_MINUS_SRC_ALPHA),n.viewport(0,0,i.width,i.height),n.bindBuffer(n.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),n.useProgram(this.renderTargetProgram_),n.enableVertexAttribArray(this.renderTargetAttribLocation_),n.vertexAttribPointer(this.renderTargetAttribLocation_,2,n.FLOAT,!1,0,0),n.uniform2f(this.renderTargetUniformLocation_,i.width,i.height),n.uniform1i(this.renderTargetTextureLocation_,0),this.applyUniforms(t),n.drawArrays(n.TRIANGLES,0,6)},t.prototype.getFrameBuffer=function(){return this.frameBuffer_},t.prototype.applyUniforms=function(e){var n,i=this.getGL(),r=1;this.uniforms_.forEach(function(t){if((n="function"==typeof t.value?t.value(e):t.value)instanceof HTMLCanvasElement||n instanceof ImageData)t.texture||(t.texture=i.createTexture()),i.activeTexture(i["TEXTURE"+r]),i.bindTexture(i.TEXTURE_2D,t.texture),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),n instanceof ImageData?i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,n.width,n.height,0,i.UNSIGNED_BYTE,new Uint8Array(n.data)):i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,n),i.uniform1i(t.location,r++);else if(Array.isArray(n))switch(n.length){case 2:return void i.uniform2f(t.location,n[0],n[1]);case 3:return void i.uniform3f(t.location,n[0],n[1],n[2]);case 4:return void i.uniform4f(t.location,n[0],n[1],n[2],n[3]);default:return}else"number"==typeof n&&i.uniform1f(t.location,n)})},t}(),zv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Dv={UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123,UNSIGNED_INT:5125,FLOAT:5126};function Fv(t){for(var e=0,n=0;n<t.length;n++){var i=t[n];e+=i.size*Gv(i.type)}return e}function Gv(t){switch(t){case Dv.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case Dv.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case Dv.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case Dv.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var jv=function(o){function t(t){var e=o.call(this)||this,n=t||{};e.boundHandleWebGLContextLost_=e.handleWebGLContextLost.bind(e),e.boundHandleWebGLContextRestored_=e.handleWebGLContextRestored.bind(e),e.canvas_=document.createElement("canvas"),e.canvas_.style.position="absolute",e.canvas_.style.left="0",e.gl_=Ev(e.canvas_);var i=e.getGL();if(e.bufferCache_={},e.currentProgram_=null,K(M(function(){if(!Pv){var t=Ev(document.createElement("canvas"));t&&(Pv=t.getSupportedExtensions())}return Pv}(),"OES_element_index_uint"),63),i.getExtension("OES_element_index_uint"),e.canvas_.addEventListener(Rv,e.boundHandleWebGLContextLost_),e.canvas_.addEventListener(Ov,e.boundHandleWebGLContextRestored_),e.offsetRotateMatrix_=[1,0,0,1,0,0],e.offsetScaleMatrix_=[1,0,0,1,0,0],e.tmpMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e.uniformLocations_={},e.attribLocations_={},e.uniforms_=[],n.uniforms)for(var r in n.uniforms)e.uniforms_.push({name:r,value:n.uniforms[r]});return e.postProcessPasses_=n.postProcesses?n.postProcesses.map(function(t){return new kv({webGlContext:i,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})}):[new kv({webGlContext:i})],e.shaderCompileErrors_=null,e.startTime_=Date.now(),e}return zv(t,o),t.prototype.bindBuffer=function(t){var e=this.getGL(),n=dt(t),i=this.bufferCache_[n];i||(i={buffer:t,webGlBuffer:e.createBuffer()},this.bufferCache_[n]=i),e.bindBuffer(t.getType(),i.webGlBuffer)},t.prototype.flushBufferData=function(t){var e=this.getGL();this.bindBuffer(t),e.bufferData(t.getType(),t.getArray(),t.getUsage())},t.prototype.deleteBuffer=function(t){var e=this.getGL(),n=dt(t),i=this.bufferCache_[n];e.isContextLost()||e.deleteBuffer(i.buffer),delete this.bufferCache_[n]},t.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Rv,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Ov,this.boundHandleWebGLContextRestored_)},t.prototype.prepareDraw=function(t){var e=this.getGL(),n=this.getCanvas(),i=t.size,r=t.pixelRatio;n.width=i[0]*r,n.height=i[1]*r,n.style.width=i[0]+"px",n.style.height=i[1]+"px",e.useProgram(this.currentProgram_);for(var o=this.postProcessPasses_.length-1;0<=o;o--)this.postProcessPasses_[o].init(t);e.bindTexture(e.TEXTURE_2D,null),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.BLEND),e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA),e.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},t.prototype.prepareDrawToRenderTarget=function(t,e,n){var i=this.getGL(),r=e.getSize();i.bindFramebuffer(i.FRAMEBUFFER,e.getFramebuffer()),i.viewport(0,0,r[0],r[1]),i.bindTexture(i.TEXTURE_2D,e.getTexture()),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,n?i.ZERO:i.ONE_MINUS_SRC_ALPHA),i.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},t.prototype.drawElements=function(t,e){var n=this.getGL(),i=n.UNSIGNED_INT,r=e-t,o=4*t;n.drawElements(n.TRIANGLES,r,i,o)},t.prototype.finalizeDraw=function(t){for(var e=0;e<this.postProcessPasses_.length;e++)this.postProcessPasses_[e].apply(t,this.postProcessPasses_[e+1]||null)},t.prototype.getCanvas=function(){return this.canvas_},t.prototype.getGL=function(){return this.gl_},t.prototype.applyFrameState=function(t){var e=t.size,n=t.viewState.rotation,i=Wi(this.offsetScaleMatrix_);Yi(i,2/e[0],2/e[1]);var r,o,a,s,l=Wi(this.offsetRotateMatrix_);0!==n&&(r=l,o=-n,a=Math.cos(o),s=Math.sin(o),Zi(r,Xi(Ui,a,s,-s,a,0,0))),this.setUniformMatrixValue("u_offsetScaleMatrix",Nv(this.tmpMat4_,i)),this.setUniformMatrixValue("u_offsetRotateMatrix",Nv(this.tmpMat4_,l)),this.setUniformFloatValue("u_time",.001*(Date.now()-this.startTime_)),this.setUniformFloatValue("u_zoom",t.viewState.zoom),this.setUniformFloatValue("u_resolution",t.viewState.resolution)},t.prototype.applyUniforms=function(e){var n,i=this.getGL(),r=0;this.uniforms_.forEach(function(t){if((n="function"==typeof t.value?t.value(e):t.value)instanceof HTMLCanvasElement||n instanceof HTMLImageElement||n instanceof ImageData)t.texture||(t.texture=i.createTexture()),i.activeTexture(i["TEXTURE"+r]),i.bindTexture(i.TEXTURE_2D,t.texture),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),n instanceof HTMLImageElement&&!n.complete||i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,n),i.uniform1i(this.getUniformLocation(t.name),r++);else if(Array.isArray(n)&&6===n.length)this.setUniformMatrixValue(t.name,Nv(this.tmpMat4_,n));else if(Array.isArray(n)&&n.length<=4)switch(n.length){case 2:return void i.uniform2f(this.getUniformLocation(t.name),n[0],n[1]);case 3:return void i.uniform3f(this.getUniformLocation(t.name),n[0],n[1],n[2]);case 4:return void i.uniform4f(this.getUniformLocation(t.name),n[0],n[1],n[2],n[3]);default:return}else"number"==typeof n&&i.uniform1f(this.getUniformLocation(t.name),n)}.bind(this))},t.prototype.useProgram=function(t){return t!=this.currentProgram_&&(this.getGL().useProgram(t),this.currentProgram_=t,this.uniformLocations_={},this.attribLocations_={},!0)},t.prototype.compileShader=function(t,e){var n=this.getGL(),i=n.createShader(e);return n.shaderSource(i,t),n.compileShader(i),i},t.prototype.getProgram=function(t,e){var n=this.getGL(),i=this.compileShader(t,n.FRAGMENT_SHADER),r=this.compileShader(e,n.VERTEX_SHADER);this.shaderCompileErrors_=null,n.getShaderInfoLog(i)&&(this.shaderCompileErrors_="Fragment shader compilation failed:\n"+n.getShaderInfoLog(i)),n.getShaderInfoLog(r)&&(this.shaderCompileErrors_=(this.shaderCompileErrors_||"")+"Vertex shader compilation failed:\n"+n.getShaderInfoLog(r));var o=n.createProgram();return n.attachShader(o,i),n.attachShader(o,r),n.linkProgram(o),o},t.prototype.getShaderCompileErrors=function(){return this.shaderCompileErrors_},t.prototype.getUniformLocation=function(t){return void 0===this.uniformLocations_[t]&&(this.uniformLocations_[t]=this.getGL().getUniformLocation(this.currentProgram_,t)),this.uniformLocations_[t]},t.prototype.getAttributeLocation=function(t){return void 0===this.attribLocations_[t]&&(this.attribLocations_[t]=this.getGL().getAttribLocation(this.currentProgram_,t)),this.attribLocations_[t]},t.prototype.makeProjectionTransform=function(t,e){var n=t.size,i=t.viewState.rotation,r=t.viewState.resolution,o=t.viewState.center;return Wi(e),Ki(e,0,0,2/(r*n[0]),2/(r*n[1]),-i,-o[0],-o[1]),e},t.prototype.setUniformFloatValue=function(t,e){this.getGL().uniform1f(this.getUniformLocation(t),e)},t.prototype.setUniformMatrixValue=function(t,e){this.getGL().uniformMatrix4fv(this.getUniformLocation(t),!1,e)},t.prototype.enableAttributeArray_=function(t,e,n,i,r){var o=this.getAttributeLocation(t);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,e,n,!1,i,r))},t.prototype.enableAttributes=function(t){for(var e=Fv(t),n=0,i=0;i<t.length;i++){var r=t[i];this.enableAttributeArray_(r.name,r.size,r.type||5126,e,n),n+=r.size*Gv(r.type)}},t.prototype.handleWebGLContextLost=function(){y(this.bufferCache_),this.currentProgram_=null},t.prototype.handleWebGLContextRestored=function(){},t.prototype.createTexture=function(t,e,n){var i=this.getGL(),r=n||i.createTexture(),o=i.RGBA,a=i.RGBA,s=i.UNSIGNED_BYTE;return i.bindTexture(i.TEXTURE_2D,r),e?i.texImage2D(i.TEXTURE_2D,0,o,a,s,e):i.texImage2D(i.TEXTURE_2D,0,o,t[0],t[1],0,a,s,null),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),r},t}(w),Vv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),qv="GENERATE_BUFFERS",Bv=function(r){function t(t,e){var n=r.call(this,t)||this,i=e||{};return n.helper=new jv({postProcesses:i.postProcesses,uniforms:i.uniforms}),n}return Vv(t,r),t.prototype.disposeInternal=function(){this.helper.dispose(),r.prototype.disposeInternal.call(this)},t.prototype.getShaderCompileErrors=function(){return this.helper.getShaderCompileErrors()},t}(tg),Uv=Bv,Wv=new Blob(['var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r<o;++r){var i=arguments[r];if(null!=i)for(var f in i)i.hasOwnProperty(f)&&(t[f]=i[f])}return t},n="GENERATE_BUFFERS",t=[],r={vertexPosition:0,indexPosition:0};function o(e,n,t,r,o){e[n+0]=t,e[n+1]=r,e[n+2]=o}function i(e,n,i,f,s,u){var a=3+s,l=e[n+0],v=e[n+1],c=t;c.length=s;for(var g=0;g<c.length;g++)c[g]=e[n+2+g];var b=u?u.vertexPosition:0,h=u?u.indexPosition:0,d=b/a;return o(i,b,l,v,0),c.length&&i.set(c,b+3),o(i,b+=a,l,v,1),c.length&&i.set(c,b+3),o(i,b+=a,l,v,2),c.length&&i.set(c,b+3),o(i,b+=a,l,v,3),c.length&&i.set(c,b+3),b+=a,f[h++]=d,f[h++]=d+1,f[h++]=d+3,f[h++]=d+1,f[h++]=d+2,f[h++]=d+3,r.vertexPosition=b,r.indexPosition=h,r}var f=self;f.onmessage=function(t){var r=t.data;if(r.type===n){for(var o=r.customAttributesCount,s=2+o,u=new Float32Array(r.renderInstructions),a=u.length/s,l=4*a*(o+3),v=new Uint32Array(6*a),c=new Float32Array(l),g=null,b=0;b<u.length;b+=s)g=i(u,b,c,v,o,g);var h=e({vertexBuffer:c.buffer,indexBuffer:v.buffer,renderInstructions:u.buffer},r);f.postMessage(h,[c.buffer,v.buffer,u.buffer])}};'],{type:"application/javascript"}),Zv=URL.createObjectURL(Wv),Xv=new Uint8Array(4),Hv=function(){function t(t,e){var n=(this.helper_=t).getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=e||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return t.prototype.setSize=function(t){kt(t,this.size_)||(this.size_[0]=t[0],this.size_[1]=t[1],this.updateSize_())},t.prototype.getSize=function(){return this.size_},t.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},t.prototype.readAll=function(){if(this.dataCacheDirty_){var t=this.size_,e=this.helper_.getGL();e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.readPixels(0,0,t[0],t[1],e.RGBA,e.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},t.prototype.readPixel=function(t,e){if(t<0||e<0||t>this.size_[0]||e>=this.size_[1])return Xv[0]=0,Xv[1]=0,Xv[2]=0,Xv[3]=0,Xv;this.readAll();var n=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return Xv[0]=this.data_[4*n],Xv[1]=this.data_[4*n+1],Xv[2]=this.data_[4*n+2],Xv[3]=this.data_[4*n+3],Xv},t.prototype.getTexture=function(){return this.texture_},t.prototype.getFramebuffer=function(){return this.framebuffer_},t.prototype.updateSize_=function(){var t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(t[0]*t[1]*4)},t}(),Yv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kv=function(s){function t(t,e){var n=this,i=e.uniforms||{},r=[1,0,0,1,0,0];if(i.u_projectionMatrix=r,(n=s.call(this,t,{uniforms:i,postProcesses:e.postProcesses})||this).sourceRevision_=-1,n.verticesBuffer_=new Lv(34962,35048),n.hitVerticesBuffer_=new Lv(34962,35048),n.indicesBuffer_=new Lv(34963,35048),n.program_=n.helper.getProgram(e.fragmentShader,e.vertexShader),n.getShaderCompileErrors())throw new Error(n.getShaderCompileErrors());if(n.hitDetectionEnabled_=!(!e.hitFragmentShader||!e.hitVertexShader),n.hitProgram_=n.hitDetectionEnabled_&&n.helper.getProgram(e.hitFragmentShader,e.hitVertexShader),n.getShaderCompileErrors())throw new Error(n.getShaderCompileErrors());var o=e.attributes?e.attributes.map(function(t){return{name:"a_"+t.name,size:1,type:Dv.FLOAT}}):[];n.attributes=[{name:"a_position",size:2,type:Dv.FLOAT},{name:"a_index",size:1,type:Dv.FLOAT}].concat(o),n.hitDetectionAttributes=[{name:"a_position",size:2,type:Dv.FLOAT},{name:"a_index",size:1,type:Dv.FLOAT},{name:"a_hitColor",size:4,type:Dv.FLOAT},{name:"a_featureUid",size:1,type:Dv.FLOAT}].concat(o),n.customAttributes=e.attributes?e.attributes:[],n.previousExtent_=[1/0,1/0,-1/0,-1/0],n.currentTransform_=r,n.renderTransform_=[1,0,0,1,0,0],n.invertRenderTransform_=[1,0,0,1,0,0],n.renderInstructions_=new Float32Array(0),n.hitRenderInstructions_=new Float32Array(0),n.hitRenderTarget_=n.hitDetectionEnabled_&&new Hv(n.helper),n.worker_=new Worker(Zv),n.worker_.addEventListener("message",function(t){var e=t.data;if(e.type===qv){var n=e.projectionTransform;e.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(e.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=n,Ji(this.invertRenderTransform_,this.renderTransform_),e.hitDetection?this.hitRenderInstructions_=new Float32Array(t.data.renderInstructions):this.renderInstructions_=new Float32Array(t.data.renderInstructions),this.getLayer().changed()}}.bind(n)),n.featureCache_={},n.featureCount_=0;var a=n.getLayer().getSource();return n.sourceListenKeys_=[x(a,dg,n.handleSourceFeatureAdded_,n),x(a,yg,n.handleSourceFeatureChanged_,n),x(a,mg,n.handleSourceFeatureDelete_,n)],a.forEachFeature(function(t){this.featureCache_[dt(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}.bind(n)),n}return Yv(t,s),t.prototype.handleSourceFeatureAdded_=function(t){var e=t.feature;this.featureCache_[dt(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++},t.prototype.handleSourceFeatureChanged_=function(t){var e=t.feature;this.featureCache_[dt(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}},t.prototype.handleSourceFeatureDelete_=function(t){var e=t.feature;delete this.featureCache_[dt(e)],this.featureCount_--},t.prototype.renderFrame=function(t){var e=this.indicesBuffer_.getSize();this.helper.drawElements(0,e),this.helper.finalizeDraw(t);var n=this.helper.getCanvas(),i=t.layerStatesArray[t.layerIndex].opacity;return i!==parseFloat(n.style.opacity)&&(n.style.opacity=i),this.hitDetectionEnabled_&&(this.renderHitDetection(t),this.hitRenderTarget_.clearCachedData()),n},t.prototype.prepareFrame=function(t){var e=this.getLayer(),n=e.getSource(),i=t.viewState,r=!t.viewHints[0]&&!t.viewHints[1],o=!Le(this.previousExtent_,t.extent),a=this.sourceRevision_<n.getRevision();if(a&&(this.sourceRevision_=n.getRevision()),r&&(o||a)){var s=i.projection,l=i.resolution,u=e instanceof ym?e.getRenderBuffer():0,h=xe(t.extent,u*l);n.loadFeatures(h,l,s),this.rebuildBuffers_(t),this.previousExtent_=t.extent.slice()}return this.helper.makeProjectionTransform(t,this.currentTransform_),Zi(this.currentTransform_,this.invertRenderTransform_),this.helper.useProgram(this.program_),this.helper.prepareDraw(t),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},t.prototype.rebuildBuffers_=function(t){var e=[1,0,0,1,0,0];this.helper.makeProjectionTransform(t,e);var n,i,r=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===r||(this.renderInstructions_=new Float32Array(r)),this.hitDetectionEnabled_){var o=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===o||(this.hitRenderInstructions_=new Float32Array(o))}var a,s,l,u=[],h=[],c=0,p=0;for(var f in this.featureCache_)if((i=(n=this.featureCache_[f]).geometry)&&i.getType()===re.POINT){u[0]=i.getFlatCoordinates()[0],u[1]=i.getFlatCoordinates()[1],Hi(e,u),s=p+6,l=void 0,(l=h)[0]=Math.floor(s/256/256/256)/255,l[1]=Math.floor(s/256/256)%256/255,l[2]=Math.floor(s/256)%256/255,l[3]=s%256/255,a=l,this.renderInstructions_[c++]=u[0],this.renderInstructions_[c++]=u[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[p++]=u[0],this.hitRenderInstructions_[p++]=u[1],this.hitRenderInstructions_[p++]=a[0],this.hitRenderInstructions_[p++]=a[1],this.hitRenderInstructions_[p++]=a[2],this.hitRenderInstructions_[p++]=a[3],this.hitRenderInstructions_[p++]=Number(f));for(var d=void 0,y=0;y<this.customAttributes.length;y++)d=this.customAttributes[y].callback(n.feature,n.properties),this.renderInstructions_[c++]=d,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[p++]=d)}var m={type:qv,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(m.projectionTransform=e,this.worker_.postMessage(m,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var g={type:qv,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};g.projectionTransform=e,g.hitDetection=!0,this.worker_.postMessage(g,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){if(K(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=Hi(e.coordinateToPixelTransform,t.slice()),a=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),s=function(t){var e=0;return e+=Math.round(256*t[0]*256*256*255),e+=Math.round(256*t[1]*256*255),e+=Math.round(256*t[2]*255),e+=Math.round(255*t[3])}([a[0]/255,a[1]/255,a[2]/255,a[3]/255]),l=this.hitRenderInstructions_[s],u=Math.floor(l).toString(),h=this.getLayer().getSource().getFeatureByUid(u);return h?i(h,this.getLayer()):void 0}},t.prototype.renderHitDetection=function(t){if(this.hitVerticesBuffer_.getSize()){this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);var e=this.indicesBuffer_.getSize();this.helper.drawElements(0,e)}},t.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach(function(t){_(t)}),this.sourceListenKeys_=null,s.prototype.disposeInternal.call(this)},t}(Uv),Jv=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qv="blur",$v="gradient",tx="radius",ex=["#00f","#0ff","#0f0","#ff0","#f00"],nx=function(o){function t(t){var e=this,n=t||{},i=v({},n);delete i.gradient,delete i.radius,delete i.blur,delete i.weight,(e=o.call(this,i)||this).gradient_=null,e.addEventListener(W($v),e.handleGradientChanged_),e.setGradient(n.gradient?n.gradient:ex),e.setBlur(void 0!==n.blur?n.blur:15),e.setRadius(void 0!==n.radius?n.radius:8);var r=n.weight?n.weight:"weight";return e.weightFunction_="string"==typeof r?function(t){return t.get(r)}:r,e.setRenderOrder(null),e}return Jv(t,o),t.prototype.getBlur=function(){return this.get(Qv)},t.prototype.getGradient=function(){return this.get($v)},t.prototype.getRadius=function(){return this.get(tx)},t.prototype.handleGradientChanged_=function(){this.gradient_=function(t){var e=xt(1,256),n=e.createLinearGradient(0,0,1,256);if(t instanceof Array)for(var i=1/(t.length-1),r=0,o=t.length;r<o;++r)n.addColorStop(r*i,t[r]);else for(var a in t){var s=parseFloat(a+"");n.addColorStop(s,t[a])}return e.fillStyle=n,e.fillRect(0,0,1,256),e.canvas}(this.getGradient())},t.prototype.setBlur=function(t){this.set(Qv,t)},t.prototype.setGradient=function(t){this.set($v,t)},t.prototype.setRadius=function(t){this.set(tx,t)},t.prototype.createRenderer=function(){return new Kv(this,{attributes:[{name:"weight",callback:function(t){var e=this.weightFunction_(t);return void 0!==e?J(e,0,1):1}.bind(this)}],vertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_weight = a_weight;\n }",fragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n }",hitVertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n attribute vec4 a_hitColor;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_hitColor = a_hitColor;\n v_weight = a_weight;\n }",hitFragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n if (alpha < 0.05) {\n discard;\n }\n\n gl_FragColor = v_hitColor;\n }",uniforms:{u_size:function(){return 2*(this.get(tx)+this.get(Qv))}.bind(this),u_blurSlope:function(){return this.get(tx)/Math.max(1,this.get(Qv))}.bind(this)},postProcesses:[{fragmentShader:"\n precision mediump float;\n\n uniform sampler2D u_image;\n uniform sampler2D u_gradientTexture;\n\n varying vec2 v_texCoord;\n\n void main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor.a = color.a;\n gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n gl_FragColor.rgb *= gl_FragColor.a;\n }",uniforms:{u_gradientTexture:this.gradient_}}]})},t}(lg),ix=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),rx=function(n){function t(t){var e=n.call(this,t)||this;return e.image_=null,e}return ix(t,n),t.prototype.getImage=function(){return this.image_?this.image_.getImage():null},t.prototype.prepareFrame=function(t){var e=t.layerStatesArray[t.layerIndex],n=t.pixelRatio,i=t.viewState,r=i.resolution,o=this.getLayer().getSource(),a=t.viewHints,s=t.extent;if(void 0!==e.extent&&(s=qe(s,Fn(e.extent,i.projection))),!a[0]&&!a[1]&&!Xe(s)){var l=i.projection,u=o.getImage(s,r,n,l);u&&this.loadImage(u)&&(this.image_=u)}return!!this.image_},t.prototype.renderFrame=function(t,e){var n=this.image_,i=n.getExtent(),r=n.getResolution(),o=n.getPixelRatio(),a=t.layerStatesArray[t.layerIndex],s=t.pixelRatio,l=t.viewState,u=l.center,h=l.resolution,c=t.size,p=s*r/(h*o),f=Math.round(c[0]*s),d=Math.round(c[1]*s),y=l.rotation;if(y){var m=Math.round(Math.sqrt(f*f+d*d));d=f=m}Ki(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/s,1/s,y,-f/2,-d/2),Ji(this.inversePixelTransform,this.pixelTransform);var g=this.createTransformString(this.pixelTransform);this.useContainer(e,g,a.opacity);var v=this.context,x=v.canvas;x.width!=f||x.height!=d?(x.width=f,x.height=d):this.containerReused||v.clearRect(0,0,f,d);var _=!1;if(a.extent){var w=Fn(a.extent,l.projection);(_=!Pe(w,t.extent)&&Ze(w,t.extent))&&this.clipUnrotated(v,t,w)}var b=n.getImage(),P=Ki(this.tempTransform_,f/2,d/2,p,p,0,o*(i[0]-u[0])/r,o*(u[1]-i[3])/r);this.renderedResolution=r*s/o;var S=P[4],C=P[5],M=b.width*P[0],T=b.height*P[3];if(this.preRender(v,t),.5<=M&&.5<=T){var A=a.opacity,E=void 0;1!==A&&(E=this.context.globalAlpha,this.context.globalAlpha=A),this.context.drawImage(b,0,0,+b.width,+b.height,Math.round(S),Math.round(C),Math.round(M),Math.round(T)),1!==A&&(this.context.globalAlpha=E)}return this.postRender(v,t),_&&v.restore(),g!==x.style.transform&&(x.style.transform=g),this.container},t}(ng),ox=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ax=function(e){function t(t){return e.call(this,t)||this}return ox(t,e),t.prototype.createRenderer=function(){return new rx(this)},t}(gv),sx=function(){function t(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function lx(t,e,n,i,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=n,r.maxY=i,r):new sx(t,e,n,i)}var ux=sx,hx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),cx=function(i){function t(t){var e=i.call(this,t)||this;return e.extentChanged=!0,e.renderedExtent_=null,e.renderedPixelRatio,e.renderedProjection=null,e.renderedRevision,e.renderedTiles=[],e.newTiles_=!1,e.tmpExtent=[1/0,1/0,-1/0,-1/0],e.tmpTileRange_=new ux(0,0,0,0),e}return hx(t,i),t.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return 2==n||4==n||3==n&&!i},t.prototype.getTile=function(t,e,n,i){var r=i.pixelRatio,o=i.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(t,e,n,r,o);return 3==s.getState()&&(a.getUseInterimTilesOnError()?0<a.getPreload()&&(this.newTiles_=!0):s.setState(2)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},t.prototype.loadedTileCallback=function(t,e,n){return!!this.isDrawableTile(n)&&i.prototype.loadedTileCallback.call(this,t,e,n)},t.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},t.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,o=i.resolution,a=i.center,s=i.rotation,l=t.pixelRatio,u=this.getLayer(),h=u.getSource(),c=h.getRevision(),p=h.getTileGridForProjection(r),f=p.getZForResolution(o,h.zDirection),d=p.getResolution(f),y=t.extent,m=n.extent&&Fn(n.extent,r);m&&(y=qe(y,Fn(n.extent,r)));var g=h.getTilePixelRatio(l),v=Math.round(t.size[0]*g),x=Math.round(t.size[1]*g);if(s){var _=Math.round(Math.sqrt(v*v+x*x));x=v=_}var w=d*v/2/g,b=d*x/2/g,P=[a[0]-w,a[1]-b,a[0]+w,a[1]+b],S=p.getTileRangeForExtentAndZ(y,f),C={};C[f]={};var M=this.createLoadedTileFinder(h,r,C),T=this.tmpExtent,A=this.tmpTileRange_;this.newTiles_=!1;for(var E=S.minX;E<=S.maxX;++E)for(var I=S.minY;I<=S.maxY;++I){var L=this.getTile(f,E,I,t);if(this.isDrawableTile(L)){var R=dt(this);if(2==L.getState()){var O=(C[f][L.tileCoord.toString()]=L).inTransition(R);this.newTiles_||!O&&-1!==this.renderedTiles.indexOf(L)||(this.newTiles_=!0)}if(1===L.getAlpha(R,t.time))continue}var N=p.getTileCoordChildTileRange(L.tileCoord,A,T),k=!1;N&&(k=M(f+1,N)),k||p.forEachTileCoordParentTileRange(L.tileCoord,M,A,T)}var z=d/o;Ki(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/g,1/g,s,-v/2,-x/2);var D=this.createTransformString(this.pixelTransform);this.useContainer(e,D,n.opacity);var F=this.context,G=F.canvas;Ji(this.inversePixelTransform,this.pixelTransform),Ki(this.tempTransform_,v/2,x/2,z,z,0,-v/2,-x/2),G.width!=v||G.height!=x?(G.width=v,G.height=x):this.containerReused||F.clearRect(0,0,v,x),m&&this.clipUnrotated(F,t,m),this.preRender(F,t),this.renderedTiles.length=0;var j,V,q,B=Object.keys(C).map(Number);B.sort(ft),1!==n.opacity||this.containerReused&&!h.getOpaque(t.viewState.projection)?(j=[],V=[]):B=B.reverse();for(var U=B.length-1;0<=U;--U){var W=B[U],Z=h.getTilePixelSize(W,l,r),X=p.getResolution(W)/d,H=Z[0]*X*z,Y=Z[1]*X*z,K=p.getTileCoordForCoordAndZ(Be(P),W),J=p.getTileCoordExtent(K),Q=Hi(this.tempTransform_,[g*(J[0]-P[0])/d,g*(P[3]-J[3])/d]),$=g*h.getGutterForProjection(r),tt=C[W];for(var et in tt){var nt=(L=tt[et]).tileCoord,it=Q[0]-(K[1]-nt[1])*H,rt=Math.round(it+H),ot=Q[1]-(K[2]-nt[2])*Y,at=Math.round(ot+Y),st=rt-(E=Math.round(it)),lt=at-(I=Math.round(ot)),ut=f===W;if(!(O=ut&&1!==L.getAlpha(dt(this),t.time)))if(j){F.save(),q=[E,I,E+st,I,E+st,I+lt,E,I+lt];for(var ht=0,ct=j.length;ht<ct;++ht)if(f!==W&&W<V[ht]){var pt=j[ht];F.beginPath(),F.moveTo(q[0],q[1]),F.lineTo(q[2],q[3]),F.lineTo(q[4],q[5]),F.lineTo(q[6],q[7]),F.moveTo(pt[6],pt[7]),F.lineTo(pt[4],pt[5]),F.lineTo(pt[2],pt[3]),F.lineTo(pt[0],pt[1]),F.clip()}j.push(q),V.push(W)}else F.clearRect(E,I,st,lt);this.drawTileImage(L,t,E,I,st,lt,$,ut,n.opacity),j&&!O&&F.restore(),this.renderedTiles.push(L),this.updateUsedTiles(t.usedTiles,h,L)}}return this.renderedRevision=c,this.renderedResolution=d,this.extentChanged=!this.renderedExtent_||!Le(this.renderedExtent_,P),this.renderedExtent_=P,this.renderedPixelRatio=l,this.renderedProjection=r,this.manageTilePyramid(t,h,p,l,r,y,f,u.getPreload()),this.updateCacheSize_(t,h),this.scheduleExpireCache(t,h),this.postRender(F,t),n.extent&&F.restore(),D!==G.style.transform&&(G.style.transform=D),this.container},t.prototype.drawTileImage=function(t,e,n,i,r,o,a,s,l){var u=this.getTileImage(t);if(u){var h=dt(this),c=s?t.getAlpha(h,e.time):1,p=l*c,f=p!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=p),this.context.drawImage(u,a,a,u.width-2*a,u.height-2*a,n,i,r,o),f&&this.context.restore(),1!==c?e.animate=!0:s&&t.endTransition(h)}},t.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},t.prototype.getTileImage=function(t){return t.getImage()},t.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var n=function(t,e,n){var i=dt(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e);t.postRenderFunctions.push(n)}},t.prototype.updateUsedTiles=function(t,e,n){var i=dt(e);i in t||(t[i]={}),t[i][n.getKey()]=!0},t.prototype.updateCacheSize_=function(t,e){var n=dt(e),i=0;n in t.usedTiles&&(i+=Object.keys(t.usedTiles[n]).length),n in t.wantedTiles&&(i+=Object.keys(t.wantedTiles[n]).length);var r=e.tileCache;r.highWaterMark<i&&(r.highWaterMark=i)},t.prototype.manageTilePyramid=function(t,e,n,i,r,o,a,s,l){var u=dt(e);u in t.wantedTiles||(t.wantedTiles[u]={});var h,c,p,f,d,y,m=t.wantedTiles[u],g=t.tileQueue;for(y=n.getMinZoom();y<=a;++y)for(c=n.getTileRangeForExtentAndZ(o,y,c),p=n.getResolution(y),f=c.minX;f<=c.maxX;++f)for(d=c.minY;d<=c.maxY;++d)a-y<=s?(0==(h=e.getTile(y,f,d,i,r)).getState()&&(m[h.getKey()]=!0,g.isKeyQueued(h.getKey())||g.enqueue([h,u,n.getTileCoordCenter(h.tileCoord),p])),void 0!==l&&l(h)):e.useTile(y,f,d,r)},t}(ng);cx.prototype.getLayer;var px=cx,fx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),dx=function(e){function t(t){return e.call(this,t)||this}return fx(t,e),t.prototype.createRenderer=function(){return new px(this)},t}(wv),yx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),mx=function(s){function t(t,e,n,i,r){var o=this,a=void 0!==r?No:ko;return(o=s.call(this,t,e,n,a)||this).loader_=void 0!==r?r:null,o.canvas_=i,o.error_=null,o}return yx(t,s),t.prototype.getError=function(){return this.error_},t.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=zo):this.state=ko,this.changed()},t.prototype.load=function(){this.state==No&&(this.state=1,this.changed(),this.loader_(this.handleLoad_.bind(this)))},t.prototype.getImage=function(){return this.canvas_},t}(Ch),gx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),vx=function(o){function t(t){var e=o.call(this,t)||this;return e.vectorRenderer_=new ag(t),e.layerImageRatio_=t.getImageRatio(),e.coordinateToVectorPixelTransform_=[1,0,0,1,0,0],e.renderedPixelToCoordinateTransform_=null,e}return gx(t,o),t.prototype.disposeInternal=function(){this.vectorRenderer_.dispose(),o.prototype.disposeInternal.call(this)},t.prototype.getFeatures=function(t){if(this.vectorRenderer_){var e=Hi(this.coordinateToVectorPixelTransform_,Hi(this.renderedPixelToCoordinateTransform_,t.slice()));return this.vectorRenderer_.getFeatures(e)}return new Promise(function(t,e){t([])})},t.prototype.handleFontsChanged=function(){this.vectorRenderer_.handleFontsChanged()},t.prototype.prepareFrame=function(t){var e=t.pixelRatio,n=t.viewState,i=n.resolution,r=t.viewHints,o=this.vectorRenderer_,a=t.extent;1!==this.layerImageRatio_&&He(a=a.slice(0),this.layerImageRatio_);var s=We(a)/i,l=Ve(a)/i;if(!r[0]&&!r[1]&&!Xe(a)){o.useContainer(null,null,1);var u=o.context,h=v({},t,{declutterItems:[],size:[s,l],viewState:v({},t.viewState,{rotation:0})}),c=new mx(a,i,e,u.canvas,function(t){o.prepareFrame(h)&&o.replayGroupChanged&&(o.renderFrame(h,null),Ho(h,null),t())});c.addEventListener(R,function(){c.getState()===ko&&(this.image_=c)}.bind(this)),c.load()}if(this.image_){var p=this.image_,f=p.getResolution()*e/p.getPixelRatio();this.renderedResolution=f,this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.coordinateToVectorPixelTransform_=Ki(this.coordinateToVectorPixelTransform_,s/2,l/2,1/f,-1/f,0,-n.center[0],-n.center[1])}return!!this.image_},t.prototype.preRender=function(){},t.prototype.postRender=function(){},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(t,e,n,i,r):o.prototype.forEachFeatureAtCoordinate.call(this,t,e,n,i,r)},t}(rx),xx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),_x=function(r){function t(t){var e=this,n=t||{},i=v({},n);return delete i.imageRatio,(e=r.call(this,i)||this).imageRatio_=void 0!==n.imageRatio?n.imageRatio:1,e}return xx(t,r),t.prototype.getImageRatio=function(){return this.imageRatio_},t.prototype.createRenderer=function(){return new vx(this)},t}(ym),wx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),bx={image:[Vo,Do,jo,Go,qo],hybrid:[Vo,jo]},Px={image:[Fo],hybrid:[Go,qo,Fo]},Sx=function(j){function t(t){var e=j.call(this,t)||this;return e.boundHandleStyleImageChange_=e.handleStyleImageChange_.bind(e),e.dirty_=!1,e.renderedLayerRevision_,e.renderedPixelToCoordinateTransform_=null,e.renderedRotation_,e.renderTileImageQueue_={},e.tileListenerKeys_={},e.tmpTransform_=[1,0,0,1,0,0],e}return wx(t,j),t.prototype.prepareTile=function(t,e,n,i){var r,o=dt(t),a=t.getState();return(2===a&&t.hifi||3===a||5===a)&&o in this.tileListenerKeys_&&(_(this.tileListenerKeys_[o]),delete this.tileListenerKeys_[o]),2!==a&&3!==a||(this.updateExecutorGroup_(t,e,n),this.tileImageNeedsRender_(t,e,n)&&(r=!0,i&&(this.renderTileImageQueue_[o]=t))),r},t.prototype.getTile=function(t,e,n,i){var r=j.prototype.getTile.call(this,t,e,n,i),o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection;if(r.getState()<2){r.wantedResolution=s;var u=dt(r);if(!(u in this.tileListenerKeys_)){var h=x(r,R,this.prepareTile.bind(this,r,o,l,!0));this.tileListenerKeys_[u]=h}}else{var c=i.viewHints;!(!c[0]&&!c[1])&&r.wantedResolution||(r.wantedResolution=s),this.prepareTile(r,o,l,!1)&&this.renderTileImage_(r,i)}return r},t.prototype.isDrawableTile=function(t){return j.prototype.isDrawableTile.call(this,t)&&t.hasContext(this.getLayer())},t.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},t.prototype.prepareFrame=function(t){var e=this.getLayer().getRevision();return this.renderedLayerRevision_!=e&&(this.renderedTiles.length=0),this.renderedLayerRevision_=e,j.prototype.prepareFrame.call(this,t)},t.prototype.updateExecutorGroup_=function(g,v,t){var x=this.getLayer(),e=x.getRevision(),_=x.getRenderOrder()||null,w=g.wantedResolution,b=g.getReplayState(x);if(b.dirty||b.renderedResolution!==w||b.renderedRevision!=e||b.renderedRenderOrder!=_||b.renderedZ!==g.sourceZ){var P=x.getSource(),S=P.getTileGrid(),C=P.getTileGridForProjection(t).getTileCoordExtent(g.wrappedTileCoord),M=P.getSourceTiles(v,t,g),T=dt(x),n=g.executorGroups[T];if(n)for(var i=0,r=n.length;i<r;++i)n[i].dispose();g.hitDetectionImageData=null,g.executorGroups[T]=[];for(var o=function(t,e){var n=M[t];if(2!=n.getState())return"continue";var i=n.tileCoord,r=S.getTileCoordExtent(i),o=qe(C,r),a=Le(r,o)?null:xe(o,x.getRenderBuffer()*w,A.tmpExtent);b.dirty=!1;var s=new Nm(0,o,w,v,x.getDeclutter()),l=Wo(w,v),u=function(t){var e,n=t.getStyleFunction()||x.getStyleFunction();if(n&&(e=n(t,w)),e){var i=this.renderFeature(t,l,e,s);this.dirty_=this.dirty_||i,b.dirty=b.dirty||i}},h=n.getFeatures();_&&_!==b.renderedRenderOrder&&h.sort(_);for(var c=0,p=h.length;c<p;++c){var f=h[c];a&&!Ze(a,f.getGeometry().getExtent())||u.call(A,f)}var d=s.finish(),y=x.getDeclutter()&&1===M.length?null:o,m=new Qm(y,w,v,P.getOverlaps(),d,x.getRenderBuffer());g.executorGroups[T].push(m)},A=this,a=0,s=M.length;a<s;++a)o(a);b.renderedRevision=e,b.renderedZ=g.sourceZ,b.renderedRenderOrder=_,b.renderedResolution=w}},t.prototype.forEachFeatureAtCoordinate=function(a,t,s,l,u){var h=t.viewState.resolution,c=t.viewState.rotation;s=null==s?0:s;var p,f,e,d=this.getLayer(),y=d.getDeclutter(),m=d.getSource().getTileGridForProjection(t.viewState.projection),g={},v=this.renderedTiles,n=function(){var t=v[f],n=be(m.getTileCoordExtent(t.wrappedTileCoord),a);if(!y&&!n)return"continue";for(var e=t.executorGroups[dt(d)],i=0,r=e.length;i<r;++i){var o=e[i];p=p||o.forEachFeatureAtCoordinate(a,h,c,s,function(t){if(n||u&&-1!==u.indexOf(t)){var e=t.getId();if(void 0===e&&(e=dt(t)),!(e in g))return g[e]=!0,l(t,d)}},d.getDeclutter()?u:null)}};for(f=0,e=v.length;f<e;++f)n();return p},t.prototype.getFeatures=function(P){return new Promise(function(t,e){for(var n,i=this.getLayer(),r=i.getSource(),o=this.renderedProjection,a=o.getExtent(),s=this.renderedResolution,l=r.getTileGridForProjection(o),u=Hi(this.renderedPixelToCoordinateTransform_,P.slice()),h=l.getTileCoordForCoordAndResolution(u,s),c=0,p=this.renderedTiles.length;c<p;++c)if(h.toString()===this.renderedTiles[c].tileCoord.toString()){if(2===(n=this.renderedTiles[c]).getState()&&n.hifi){var f=l.getTileCoordExtent(n.tileCoord);if(r.getWrapX()&&o.canWrapX()&&!Pe(a,f)){var d=We(a),y=Math.floor((u[0]-a[0])/d);u[0]-=y*d}break}n=void 0}if(n){var m=Be(l.getTileCoordExtent(n.wrappedTileCoord)),g=[(u[0]-m[0])/s,(m[1]-u[1])/s],v=n.getSourceTiles().reduce(function(t,e){return t.concat(e.getFeatures())},[]);if(n.hitDetectionImageData)t(rg(g,v,n.hitDetectionImageData));else{var x=to(l.getTileSize(l.getZForResolution(s))),_=[x[0]/2,x[1]/2],w=this.renderedRotation_,b=[this.getRenderTransform(l.getTileCoordCenter(n.wrappedTileCoord),s,0,.5,_[0],_[1],0)];requestAnimationFrame(function(){n.hitDetectionImageData=ig(x,b,v,i.getStyleFunction(),l.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,w),t(rg(g,v,n.hitDetectionImageData))})}}else t([])}.bind(this))},t.prototype.handleFontsChanged=function(){y(this.renderTileImageQueue_);var t=this.getLayer();t.getVisible()&&void 0!==this.renderedLayerRevision_&&t.changed()},t.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},t.prototype.renderFrame=function(t,e){var n=t.viewHints,i=!(n[0]||n[1]);this.renderQueuedTileImages_(i,t),j.prototype.renderFrame.call(this,t,e),this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation;var r=this.getLayer(),o=r.getRenderMode();if("image"===o)return this.container;var a=r.getSource(),s=t.usedTiles[dt(a)];for(var l in this.renderTileImageQueue_)s&&l in s||delete this.renderTileImageQueue_[l];for(var u=this.context,h=r.getDeclutter()?{}:null,c=Px[o],p=t.pixelRatio,f=t.viewState,d=f.center,y=f.resolution,m=f.rotation,g=t.size,v=Math.round(g[0]*p),x=Math.round(g[1]*p),_=this.renderedTiles,w=a.getTileGridForProjection(t.viewState.projection),b=[],P=[],S=_.length-1;0<=S;--S){var C=_[S];if(5!=C.getState())for(var M=C.tileCoord,T=w.getTileCoordExtent(C.wrappedTileCoord),A=w.getTileCoordExtent(M,this.tmpExtent)[0]-T[0],E=Zi(Yi(this.inversePixelTransform.slice(),1/p,1/p),this.getRenderTransform(d,y,m,p,v,x,A)),I=C.executorGroups[dt(r)],L=!1,R=0,O=I.length;R<O;++R){var N=I[R];if(N.hasExecutors(c)){var k=C.tileCoord[0],z=void 0;if(!h&&!L){z=N.getClipCoords(E),u.save();for(var D=0,F=b.length;D<F;++D){var G=b[D];k<P[D]&&(u.beginPath(),u.moveTo(z[0],z[1]),u.lineTo(z[2],z[3]),u.lineTo(z[4],z[5]),u.lineTo(z[6],z[7]),u.moveTo(G[6],G[7]),u.lineTo(G[4],G[5]),u.lineTo(G[2],G[3]),u.lineTo(G[0],G[1]),u.clip())}}N.execute(u,E,m,i,c,h),h||L||(u.restore(),b.push(z),P.push(k),L=!0)}}}return h&&Jm(h,u,m,t.layerStatesArray[t.layerIndex].opacity,i,t.declutterItems),this.container},t.prototype.renderQueuedTileImages_=function(t,e){for(var n in this.renderTileImageQueue_){if(!t&&8<Date.now()-e.time){e.animate=!0;break}var i=this.renderTileImageQueue_[n];delete this.renderTileImageQueue_[n],this.renderTileImage_(i,e)}},t.prototype.renderFeature=function(t,e,n,i){if(!n)return!1;var r=!1;if(Array.isArray(n))for(var o=0,a=n.length;o<a;++o)r=Xo(i,t,n[o],e,this.boundHandleStyleImageChange_)||r;else r=Xo(i,t,n,e,this.boundHandleStyleImageChange_);return r},t.prototype.tileImageNeedsRender_=function(t,e,n){var i=this.getLayer(),r=t.getReplayState(i),o=i.getRevision(),a=t.sourceZ,s=t.wantedResolution;return r.renderedTileResolution!==s||r.renderedTileRevision!==o||r.renderedTileZ!==a},t.prototype.renderTileImage_=function(t,e){var n=this.getLayer(),i=t.getReplayState(n),r=n.getRevision(),o=t.executorGroups[dt(n)];i.renderedTileRevision=r,i.renderedTileZ=t.sourceZ;var a=t.wrappedTileCoord,s=a[0],l=n.getSource(),u=e.pixelRatio,h=e.viewState.projection,c=l.getTileGridForProjection(h),p=c.getResolution(t.tileCoord[0]),f=e.pixelRatio/t.wantedResolution*p,d=c.getResolution(s),y=t.getContext(n);u=Math.max(u,f/u);var m=l.getTilePixelSize(s,u,h);y.canvas.width=m[0],y.canvas.height=m[1];var g=u/f;if(1!=g){var v=Wi(this.tmpTransform_);Yi(v,g,g),y.setTransform.apply(y,v)}var x=c.getTileCoordExtent(a,this.tmpExtent),_=f/d,w=Wi(this.tmpTransform_);Yi(w,_,-_),function(t,e,n){Zi(t,Xi(Ui,1,0,0,1,e,n))}(w,-x[0],-x[3]);for(var b=0,P=o.length;b<P;++b)o[b].execute(y,w,0,!0,bx[n.getRenderMode()]);i.renderedTileResolution=t.wantedResolution},t}(px),Cx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mx=function(o){function t(t){var e=this,n=t||{},i=v({},n);delete i.preload,delete i.useInterimTilesOnError,e=o.call(this,i)||this;var r=n.renderMode||"hybrid";return K(null==r||"image"==r||"hybrid"==r,28),e.renderMode_=r,e.setPreload(n.preload?n.preload:0),e.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),e}return Cx(t,o),t.prototype.createRenderer=function(){return new Sx(this)},t.prototype.getFeatures=function(t){return o.prototype.getFeatures.call(this,t)},t.prototype.getRenderMode=function(){return this.renderMode_},t.prototype.getPreload=function(){return this.get(vv)},t.prototype.getUseInterimTilesOnError=function(){return this.get(xv)},t.prototype.setPreload=function(t){this.set(vv,t)},t.prototype.setUseInterimTilesOnError=function(t){this.set(xv,t)},t}(ym),Tx=1,Ax=2,Ex=4,Ix=8,Lx=16,Rx={};function Ox(t){if("number"==typeof t)return Tx;if("boolean"==typeof t)return Ix;if("string"==typeof t)return e=t,at.test(e)&&(e=lt(e)),ot.test(e)||0===e.indexOf("rgba(")||0===e.indexOf("rgb(")?Ex|Ax:Ax;var e;if(!Array.isArray(t))throw new Error("Unhandled value type: "+JSON.stringify(t));var n=t;if(n.every(function(t){return"number"==typeof t}))return 3===n.length||4===n.length?Ex|Lx:Lx;if("string"!=typeof n[0])throw new Error("Expected an expression operator but received: "+JSON.stringify(n));var i=Rx[n[0]];if(void 0===i)throw new Error("Unrecognized expression operator: "+JSON.stringify(n));return i.getReturnType(n.slice(1))}function Nx(t){var e=t.toString();return-1===e.indexOf(".")?e+".0":e}function kx(t){if(t.length<2||4<t.length)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec"+t.length+"("+t.map(Nx).join(", ")+")"}function zx(t,e){return void 0===t.stringLiteralsMap[e]&&(t.stringLiteralsMap[e]=Object.keys(t.stringLiteralsMap).length),t.stringLiteralsMap[e]}function Dx(t,e,n){if(Array.isArray(e)&&"string"==typeof e[0]){var i=Rx[e[0]];if(void 0===i)throw new Error("Unrecognized expression operator: "+JSON.stringify(e));return i.toGlsl(t,e.slice(1),n)}return 0<(Ox(e)&Tx)?Nx(e):0<(Ox(e)&Ix)?e.toString():0<(Ox(e)&Ax)&&(void 0===n||n==Ax)?function(t,e){return Nx(zx(t,e))}(t,e.toString()):0<(Ox(e)&Ex)&&(void 0===n||n==Ex)?((r=pt(e).slice()).length<4&&r.push(1),kx(r.map(function(t,e){return e<3?t/255:t}))):0<(Ox(e)&Lx)?kx(e):void 0;var r}function Fx(t){if(!(Ox(t)&Tx))throw new Error("A numeric value was expected, got "+JSON.stringify(t)+" instead")}function Gx(t){for(var e=0;e<t.length;e++)Fx(t[e])}function jx(t){if(!(Ox(t)&Ax))throw new Error("A string value was expected, got "+JSON.stringify(t)+" instead")}function Vx(t){if(!(Ox(t)&Ix))throw new Error("A boolean value was expected, got "+JSON.stringify(t)+" instead")}function qx(t,e){if(t.length!==e)throw new Error("Exactly "+e+" arguments were expected, got "+t.length+" instead")}function Bx(t,e){if(t.length<e)throw new Error("At least "+e+" arguments were expected, got "+t.length+" instead")}function Ux(t,e){if(t.length>e)throw new Error("At most "+e+" arguments were expected, got "+t.length+" instead")}function Wx(t){if(t.length%2!=0)throw new Error("An even amount of arguments was expected, got "+t+" instead")}function Zx(t,e){if(!function(e){try{return Math.log2(e)%1==0}catch(t){return Math.log(e)%1==0}}(e))throw new Error("Could not infer only one type from the following expression: "+JSON.stringify(t))}function Xx(r){return{getReturnType:function(t){return Ix},toGlsl:function(t,e){qx(e,2);for(var n=31,i=0;i<e.length;i++)n&=Ox(e[i]);if(0===n)throw new Error("All arguments should be of compatible type, got "+JSON.stringify(e)+" instead");return"("+Dx(t,e[0],n)+" "+r+" "+Dx(t,e[1],n)+")"}}}Rx.get={getReturnType:function(t){return 31},toGlsl:function(t,e){qx(e,1),jx(e[0]);var n=e[0].toString();return-1===t.attributes.indexOf(n)&&t.attributes.push(n),(t.inFragmentShader?"v_":"a_")+n}},Rx.var={getReturnType:function(t){return 31},toGlsl:function(t,e){qx(e,1),jx(e[0]);var n=e[0].toString();return-1===t.variables.indexOf(n)&&t.variables.push(n),"u_"+n}},Rx.time={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,0),"u_time"}},Rx.zoom={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,0),"u_zoom"}},Rx.resolution={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,0),"u_resolution"}},Rx["*"]={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,2),Gx(e),"("+Dx(t,e[0])+" * "+Dx(t,e[1])+")"}},Rx["/"]={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,2),Gx(e),"("+Dx(t,e[0])+" / "+Dx(t,e[1])+")"}},Rx["+"]={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,2),Gx(e),"("+Dx(t,e[0])+" + "+Dx(t,e[1])+")"}},Rx["-"]={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,2),Gx(e),"("+Dx(t,e[0])+" - "+Dx(t,e[1])+")"}},Rx.clamp={getReturnType:function(t){return Tx},toGlsl:function(t,e){qx(e,3),Gx(e);var n=Dx(t,e[1]),i=Dx(t,e[2]);return"clamp("+Dx(t,e[0])+", "+n+", "+i+")"}},Rx["%"]={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,2),Gx(e),"mod("+Dx(t,e[0])+", "+Dx(t,e[1])+")"}},Rx["^"]={getReturnType:function(t){return Tx},toGlsl:function(t,e){return qx(e,2),Gx(e),"pow("+Dx(t,e[0])+", "+Dx(t,e[1])+")"}},Rx[">"]={getReturnType:function(t){return Ix},toGlsl:function(t,e){return qx(e,2),Gx(e),"("+Dx(t,e[0])+" > "+Dx(t,e[1])+")"}},Rx[">="]={getReturnType:function(t){return Ix},toGlsl:function(t,e){return qx(e,2),Gx(e),"("+Dx(t,e[0])+" >= "+Dx(t,e[1])+")"}},Rx["<"]={getReturnType:function(t){return Ix},toGlsl:function(t,e){return qx(e,2),Gx(e),"("+Dx(t,e[0])+" < "+Dx(t,e[1])+")"}},Rx["<="]={getReturnType:function(t){return Ix},toGlsl:function(t,e){return qx(e,2),Gx(e),"("+Dx(t,e[0])+" <= "+Dx(t,e[1])+")"}},Rx["=="]=Xx("=="),Rx["!="]=Xx("!="),Rx["!"]={getReturnType:function(t){return Ix},toGlsl:function(t,e){return qx(e,1),Vx(e[0]),"(!"+Dx(t,e[0])+")"}},Rx.between={getReturnType:function(t){return Ix},toGlsl:function(t,e){qx(e,3),Gx(e);var n=Dx(t,e[1]),i=Dx(t,e[2]),r=Dx(t,e[0]);return"("+r+" >= "+n+" && "+r+" <= "+i+")"}},Rx.array={getReturnType:function(t){return Lx},toGlsl:function(e,t){Bx(t,2),Ux(t,4),Gx(t);var n=t.map(function(t){return Dx(e,t,Tx)});return"vec"+t.length+"("+n.join(", ")+")"}},Rx.color={getReturnType:function(t){return Ex},toGlsl:function(n,t){Bx(t,3),Ux(t,4),Gx(t);var e=t;3===t.length&&e.push(1);var i=t.map(function(t,e){return Dx(n,t,Tx)+(e<3?" / 255.0":"")});return"vec"+t.length+"("+i.join(", ")+")"}},Rx.interpolate={getReturnType:function(t){for(var e=Ex|Tx,n=3;n<t.length;n+=2)e&=Ox(t[n]);return e},toGlsl:function(t,e,n){Wx(e),Bx(e,6);var i,r=e[0];switch(r[0]){case"linear":i=1;break;case"exponential":i=r[1];break;default:i=null}if(!i)throw new Error('Invalid interpolation type for "interpolate" operator, received: '+JSON.stringify(r));var o=void 0!==n?n:31,a=Rx.interpolate.getReturnType(e)&o;Zx(e,a);for(var s=Dx(t,e[1]),l=null,u=2;u<e.length-2;u+=2){var h=Dx(t,e[u]),c=Dx(t,e[u+1],a),p=Dx(t,e[u+2]);l="mix("+(l||c)+", "+Dx(t,e[u+3],a)+", pow(clamp(("+s+" - "+h+") / ("+p+" - "+h+"), 0.0, 1.0), "+Nx(i)+"))"}return l}},Rx.match={getReturnType:function(t){for(var e=31,n=2;n<t.length;n+=2)e&=Ox(t[n]);return e&=Ox(t[t.length-1])},toGlsl:function(t,e,n){Wx(e),Bx(e,4);var i=void 0!==n?n:31,r=Rx.match.getReturnType(e)&i;Zx(e,r);for(var o=Dx(t,e[0]),a=Dx(t,e[e.length-1],r),s=null,l=e.length-3;1<=l;l-=2)s="("+o+" == "+Dx(t,e[l])+" ? "+Dx(t,e[l+1],r)+" : "+(s||a)+")";return s}},Rx.case={getReturnType:function(t){for(var e=31,n=1;n<t.length;n+=2)e&=Ox(t[n]);return e&=Ox(t[t.length-1])},toGlsl:function(t,e,n){!function(t){if(t.length%2==0)throw new Error("An even amount of arguments was expected, got "+t+" instead")}(e),Bx(e,3);var i=void 0!==n?n:31,r=Rx.case.getReturnType(e)&i;Zx(e,r);for(var o=0;o<e.length-1;o+=2)Vx(e[o]);var a=Dx(t,e[e.length-1],r),s=null;for(o=e.length-3;0<=o;o-=2)s="("+Dx(t,e[o])+" ? "+Dx(t,e[o+1],r)+" : "+(s||a)+")";return s}};var Hx=function(){function t(){this.uniforms=[],this.attributes=[],this.varyings=[],this.sizeExpression="vec2(1.0)",this.offsetExpression="vec2(0.0)",this.colorExpression="vec4(1.0)",this.texCoordExpression="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression="false",this.rotateWithView=!1}return t.prototype.addUniform=function(t){return this.uniforms.push(t),this},t.prototype.addAttribute=function(t){return this.attributes.push(t),this},t.prototype.addVarying=function(t,e,n){return this.varyings.push({name:t,type:e,expression:n}),this},t.prototype.setSizeExpression=function(t){return this.sizeExpression=t,this},t.prototype.setSymbolOffsetExpression=function(t){return this.offsetExpression=t,this},t.prototype.setColorExpression=function(t){return this.colorExpression=t,this},t.prototype.setTextureCoordinateExpression=function(t){return this.texCoordExpression=t,this},t.prototype.setFragmentDiscardExpression=function(t){return this.discardExpression=t,this},t.prototype.setSymbolRotateWithView=function(t){return this.rotateWithView=t,this},t.prototype.getSizeExpression=function(){return this.sizeExpression},t.prototype.getOffsetExpression=function(){return this.offsetExpression},t.prototype.getColorExpression=function(){return this.colorExpression},t.prototype.getTextureCoordinateExpression=function(){return this.texCoordExpression},t.prototype.getFragmentDiscardExpression=function(){return this.discardExpression},t.prototype.getSymbolVertexShader=function(t){var e=this.rotateWithView?"u_offsetScaleMatrix * u_offsetRotateMatrix":"u_offsetScaleMatrix",n=this.attributes,i=this.varyings;return t&&(n=n.concat("vec4 a_hitColor"),i=i.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n"+this.uniforms.map(function(t){return"uniform "+t+";"}).join("\n")+"\nattribute vec2 a_position;\nattribute float a_index;\n"+n.map(function(t){return"attribute "+t+";"}).join("\n")+"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n"+i.map(function(t){return"varying "+t.type+" "+t.name+";"}).join("\n")+"\nvoid main(void) {\n mat4 offsetMatrix = "+e+";\n vec2 size = "+this.sizeExpression+";\n vec2 offset = "+this.offsetExpression+";\n float offsetX = a_index == 0.0 || a_index == 3.0 ? offset.x - size.x / 2.0 : offset.x + size.x / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? offset.y - size.y / 2.0 : offset.y + size.y / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n vec4 texCoord = "+this.texCoordExpression+";\n float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n v_texCoord = vec2(u, v);\n u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n v = a_index == 2.0 || a_index == 3.0 ? 0.0 : 1.0;\n v_quadCoord = vec2(u, v);\n"+i.map(function(t){return" "+t.name+" = "+t.expression+";"}).join("\n")+"\n}"},t.prototype.getSymbolFragmentShader=function(t){var e=t?" if (gl_FragColor.a < 0.1) { discard; } gl_FragColor = v_hitColor;":"",n=this.varyings;return t&&(n=n.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n"+this.uniforms.map(function(t){return"uniform "+t+";"}).join("\n")+"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n"+n.map(function(t){return"varying "+t.type+" "+t.name+";"}).join("\n")+"\nvoid main(void) {\n if ("+this.discardExpression+") { discard; }\n gl_FragColor = "+this.colorExpression+";\n gl_FragColor.rgb *= gl_FragColor.a;\n"+e+"\n}"},t}(),Yx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kx=function(i){function t(t){var e=this,n=v({},t);return(e=i.call(this,n)||this).parseResult_=function(n){var t=n.symbol,e=void 0!==t.size?t.size:1,i=t.color||"white",r=t.textureCoord||[0,0,1,1],o=t.offset||[0,0],a=void 0!==t.opacity?t.opacity:1,s={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{}},l=Dx(s,e,Lx|Tx),u=Dx(s,o,Lx),h=Dx(s,r,Lx),c={inFragmentShader:!0,variables:s.variables,attributes:[],stringLiteralsMap:s.stringLiteralsMap},p=Dx(c,i,Ex),f=Dx(c,a,Tx),d="1.0",y="vec2("+Dx(c,e,Lx|Tx)+").x";switch(t.symbolType){case"square":case"image":break;case"circle":d="(1.0-smoothstep(1.-4./"+y+",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))";break;case"triangle":var m="(v_quadCoord*2.-1.)",g="(atan("+m+".x,"+m+".y))";d="(1.0-smoothstep(.5-3./"+y+",.5,cos(floor(.5+"+g+"/2.094395102)*2.094395102-"+g+")*length("+m+")))";break;default:throw new Error("Unexpected symbol type: "+t.symbolType)}var v=(new Hx).setSizeExpression("vec2("+l+")").setSymbolOffsetExpression(u).setTextureCoordinateExpression(h).setSymbolRotateWithView(!!t.rotateWithView).setColorExpression("vec4("+p+".rgb, "+p+".a * "+f+" * "+d+")");if(n.filter){var x=Dx(c,n.filter,Ix);v.setFragmentDiscardExpression("!"+x)}var _={};if(c.variables.forEach(function(e){v.addUniform("float u_"+e),_["u_"+e]=function(){if(!n.variables||void 0===n.variables[e])throw new Error("The following variable is missing from the style: "+e);var t=n.variables[e];return"string"==typeof t&&(t=zx(s,t)),void 0!==t?t:-9999999}}),"image"===t.symbolType&&t.src){var w=new Image;w.src=t.src,v.addUniform("sampler2D u_texture").setColorExpression(v.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),_.u_texture=w}return c.attributes.forEach(function(t){-1===s.attributes.indexOf(t)&&s.attributes.push(t),v.addVarying("v_"+t,"float","a_"+t)}),s.attributes.forEach(function(t){v.addAttribute("float a_"+t)}),{builder:v,attributes:s.attributes.map(function(i){return{name:i,callback:function(t,e){var n=e[i];return"string"==typeof n&&(n=zx(s,n)),void 0!==n?n:-9999999}}}),uniforms:_}}(t.style),e.hitDetectionDisabled_=!!t.disableHitDetection,e}return Yx(t,i),t.prototype.createRenderer=function(){return new Kv(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},t.prototype.disposeInternal=function(){this.renderer_.dispose(),i.prototype.disposeInternal.call(this)},t}(Wt),Jx=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qx=function(e){function t(t){return(t=v({},t)).controls||(t.controls=Ea()),t.interactions||(t.interactions=yv()),e.call(this,t)||this}return Jx(t,e),t.prototype.createRenderer=function(){return new $o(this)},t}(io);function $x(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function t_(t,e,n){return t+"/"+e+"/"+n}function e_(t){return t_(t[0],t[1],t[2])}function n_(t){return(t[1]<<t[0])+t[2]}function i_(i,r){var o=/\{z\}/g,a=/\{x\}/g,s=/\{y\}/g,l=/\{-y\}/g;return function(n,t,e){return n?i.replace(o,n[0].toString()).replace(a,n[1].toString()).replace(s,n[2].toString()).replace(l,function(){var t=n[0],e=r.getFullTileRange(t);return K(e,55),(e.getHeight()-n[2]-1).toString()}):void 0}}function r_(t,e){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=i_(t[r],e);return o_(i)}function o_(r){return 1===r.length?r[0]:function(t,e,n){if(t){var i=it(n_(t),r.length);return r[i](t,e,n)}}}function a_(t,e,n){}function s_(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i=n[1].charCodeAt(0),r=n[2].charCodeAt(0),o=void 0;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}function l_(t,e,n,i){var r=document.createElement("script"),o="olc_"+dt(e);function a(){delete window[o],r.parentNode.removeChild(r)}r.async=!0,r.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+o;var s=setTimeout(function(){a(),n&&n()},1e4);window[o]=function(t){clearTimeout(s),a(),e(t)},document.getElementsByTagName("head")[0].appendChild(r)}var u_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),h_=function(o){function t(t,e,n){var i=o.call(this)||this,r=n||{};return i.tileCoord=t,i.state=e,i.interimTile=null,i.hifi=!0,i.key="",i.transition_=void 0===r.transition?250:r.transition,i.transitionStarts_={},i}return u_(t,o),t.prototype.changed=function(){this.dispatchEvent(R)},t.prototype.disposeInternal=function(){this.setState(5)},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(2==t.getState())return this.transition_=0,t;t=t.interimTile}while(t);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(2==t.getState()){t.interimTile=null;break}1==t.getState()?e=t:0==t.getState()?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(t){if(3!==this.state&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},t.prototype.load=function(){s()},t.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Oi(i/this.transition_)},t.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},t.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},t}(L),c_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function p_(){var t=xt(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var f_=function(s){function t(t,e,n,i,r,o){var a=s.call(this,t,e,o)||this;return a.crossOrigin_=i,a.src_=n,a.image_=new Image,null!==i&&(a.image_.crossOrigin=i),a.unlisten_=null,a.tileLoadFunction_=r,a}return c_(t,s),t.prototype.disposeInternal=function(){1==this.state&&(this.unlistenImage_(),this.image_=p_()),this.interimTile&&this.interimTile.dispose(),s.prototype.disposeInternal.call(this)},t.prototype.getImage=function(){return this.image_},t.prototype.getKey=function(){return this.src_},t.prototype.handleImageError_=function(){this.state=3,this.unlistenImage_(),this.image_=p_(),this.changed()},t.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=2:this.state=4,this.unlistenImage_(),this.changed()},t.prototype.load=function(){3==this.state&&(this.state=0,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),0==this.state&&(this.state=1,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Th(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(h_),d_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),y_=function(e){function t(t){return e.call(this,t)||this}return d_(t,e),t.prototype.expireCache=function(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().dispose()},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var e=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove(e_(t.tileCoord)),t.dispose())}.bind(this))}},t}(po);function m_(t,e,n,i){var r=An(n,e,t),o=_n(e,i,n),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var s=t.getMetersPerUnit();void 0!==s&&(o/=s);var l=t.getExtent();if(!l||be(l,r)){var u=_n(t,o,r)/o;isFinite(u)&&0<u&&(o/=u)}return o}function g_(t,e,n,i){var r=n-t,o=i-e,a=Math.sqrt(r*r+o*o);return[Math.round(n+r/a),Math.round(i+o/a)]}function v_(t,e,C,M,n,T,i,r,o,s,a){var A=xt(Math.round(C*t),Math.round(C*e));if(0===o.length)return A.canvas;A.scale(C,C);var E=[1/0,1/0,-1/0,-1/0];o.forEach(function(t,e,n){Re(E,t.extent)});var l=We(E),u=Ve(E),I=xt(Math.round(C*l/M),Math.round(C*u/M)),h=C/M;o.forEach(function(t,e,n){var i=t.extent[0]-E[0],r=-(t.extent[3]-E[3]),o=We(t.extent),a=Ve(t.extent);I.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,i*h,r*h,o*h,a*h)});var L=Be(i);return r.getTriangles().forEach(function(t,e,n){var i=t.source,r=t.target,o=i[0][0],a=i[0][1],s=i[1][0],l=i[1][1],u=i[2][0],h=i[2][1],c=(r[0][0]-L[0])/T,p=-(r[0][1]-L[1])/T,f=(r[1][0]-L[0])/T,d=-(r[1][1]-L[1])/T,y=(r[2][0]-L[0])/T,m=-(r[2][1]-L[1])/T,g=o,v=a,x=function(t){for(var e=t.length,n=0;n<e;n++){for(var i=n,r=Math.abs(t[n][n]),o=n+1;o<e;o++){var a=Math.abs(t[o][n]);r<a&&(r=a,i=o)}if(0===r)return null;var s=t[i];t[i]=t[n],t[n]=s;for(var l=n+1;l<e;l++)for(var u=-t[l][n]/t[n][n],h=n;h<e+1;h++)n==h?t[l][h]=0:t[l][h]+=u*t[n][h]}for(var c=new Array(e),p=e-1;0<=p;p--){c[p]=t[p][e]/t[p][p];for(var f=p-1;0<=f;f--)t[f][e]-=t[f][p]*c[p]}return c}([[s-=g,l-=v,a=o=0,0,f-c],[u-=g,h-=v,0,0,y-c],[0,0,s,l,d-p],[0,0,u,h,m-p]]);if(x){A.save(),A.beginPath();var _=(c+f+y)/3,w=(p+d+m)/3,b=g_(_,w,c,p),P=g_(_,w,f,d),S=g_(_,w,y,m);A.moveTo(P[0],P[1]),A.lineTo(b[0],b[1]),A.lineTo(S[0],S[1]),A.clip(),A.transform(x[0],x[2],x[1],x[3],c,p),A.translate(E[0]-g,E[3]-v),A.scale(M/C,-M/C),A.drawImage(I.canvas,0,0),A.restore()}}),a&&(A.save(),A.strokeStyle="black",A.lineWidth=1,r.getTriangles().forEach(function(t,e,n){var i=t.target,r=(i[0][0]-L[0])/T,o=-(i[0][1]-L[1])/T,a=(i[1][0]-L[0])/T,s=-(i[1][1]-L[1])/T,l=(i[2][0]-L[0])/T,u=-(i[2][1]-L[1])/T;A.beginPath(),A.moveTo(a,s),A.lineTo(r,o),A.lineTo(l,u),A.closePath(),A.stroke()}),A.restore()),A.canvas}var x_=function(){function t(t,e,n,i,r){this.sourceProj_=t,this.targetProj_=e;var o={},a=Tn(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=a(t)),o[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&We(i)==We(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?We(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?We(this.targetProj_.getExtent()):null;var s=Be(n),l=Ue(n),u=Fe(n),h=De(n),c=this.transformInv_(s),p=this.transformInv_(l),f=this.transformInv_(u),d=this.transformInv_(h);if(this.addQuad_(s,l,u,h,c,p,f,d,10),this.wrapsXInSource_){var y=1/0;this.triangles_.forEach(function(t,e,n){y=Math.min(y,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-y>this.sourceWorldWidth_/2){var 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]]];e[0][0]-y>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-y>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-y>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}o={}}return t.prototype.addTriangle_=function(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,i,r,o,a,s,l){var u=ve([r,o,a,s]),h=this.sourceWorldWidth_?We(u)/this.sourceWorldWidth_:null,c=this.sourceWorldWidth_,p=this.sourceProj_.canWrapX()&&.5<h&&h<1,f=!1;if(0<l&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(f=.25<We(ve([t,e,n,i]))/this.targetWorldWidth_||f),!p&&this.sourceProj_.isGlobal()&&h&&(f=.25<h||f)),f||!this.maxSourceExtent_||Ze(u,this.maxSourceExtent_)){if(!(f||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1]))){if(!(0<l))return;f=!0}if(0<l){if(!f){var d=[(t[0]+n[0])/2,(t[1]+n[1])/2],y=this.transformInv_(d),m=void 0;m=p?(it(r[0],c)+it(a[0],c))/2-it(y[0],c):(r[0]+a[0])/2-y[0];var g=(r[1]+a[1])/2-y[1];f=m*m+g*g>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var v=[(e[0]+n[0])/2,(e[1]+n[1])/2],x=this.transformInv_(v),_=[(i[0]+t[0])/2,(i[1]+t[1])/2],w=this.transformInv_(_);this.addQuad_(t,e,v,_,r,o,x,w,l-1),this.addQuad_(_,v,n,i,w,x,a,s,l-1)}else{var b=[(t[0]+e[0])/2,(t[1]+e[1])/2],P=this.transformInv_(b),S=[(n[0]+i[0])/2,(n[1]+i[1])/2],C=this.transformInv_(S);this.addQuad_(t,b,S,i,r,P,C,s,l-1),this.addQuad_(b,e,n,S,P,o,a,C,l-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,i,r,a,s),this.addTriangle_(t,e,n,r,o,a)}},t.prototype.calculateSourceExtent=function(){var r=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach(function(t,e,n){var i=t.source;Oe(r,i[0]),Oe(r,i[1]),Oe(r,i[2])}),r},t.prototype.getTriangles=function(){return this.triangles_},t}(),__=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),w_=function(C){function t(t,e,n,i,r,o,a,s,l,u,h){var c=C.call(this,r,0)||this;c.renderEdges_=void 0!==h&&h,c.pixelRatio_=a,c.gutter_=s,c.canvas_=null,c.sourceTileGrid_=e,c.targetTileGrid_=i,c.wrappedTileCoord_=o||r,c.sourceTiles_=[],c.sourcesListenerKeys_=null,c.sourceZ_=0;var p=i.getTileCoordExtent(c.wrappedTileCoord_),f=c.targetTileGrid_.getExtent(),d=c.sourceTileGrid_.getExtent(),y=f?qe(p,f):p;if(0===ze(y))return c.state=4,c;var m=t.getExtent();m&&(d=d?qe(d,m):m);var g=i.getResolution(c.wrappedTileCoord_[0]),v=m_(t,n,Ge(y),g);if(!isFinite(v)||v<=0)return c.state=4,c;var x=void 0!==u?u:.5;if(c.triangulation_=new x_(t,n,y,d,v*x),0===c.triangulation_.getTriangles().length)return c.state=4,c;c.sourceZ_=e.getZForResolution(v);var _=c.triangulation_.calculateSourceExtent();if(d&&(t.canWrapX()?(_[1]=J(_[1],d[1],d[3]),_[3]=J(_[3],d[1],d[3])):_=qe(_,d)),ze(_)){for(var w=e.getTileRangeForExtentAndZ(_,c.sourceZ_),b=w.minX;b<=w.maxX;b++)for(var P=w.minY;P<=w.maxY;P++){var S=l(c.sourceZ_,b,P,a);S&&c.sourceTiles_.push(S)}0===c.sourceTiles_.length&&(c.state=4)}else c.state=4;return c}return __(t,C),t.prototype.disposeInternal=function(){1==this.state&&this.unlistenSources_(),C.prototype.disposeInternal.call(this)},t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var i=[];if(this.sourceTiles_.forEach(function(t,e,n){t&&2==t.getState()&&i.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),(this.sourceTiles_.length=0)===i.length)this.state=3;else{var t=this.wrappedTileCoord_[0],e=this.targetTileGrid_.getTileSize(t),n="number"==typeof e?e:e[0],r="number"==typeof e?e:e[1],o=this.targetTileGrid_.getResolution(t),a=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=v_(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,s,this.triangulation_,i,this.gutter_,this.renderEdges_),this.state=2}this.changed()},t.prototype.load=function(){if(0==this.state){this.state=1,this.changed();var o=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(n,t,e){var i=n.getState();if(0==i||1==i){o++;var r=x(n,R,function(t){var e=n.getState();2!=e&&3!=e&&4!=e||(_(r),0==--o&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(r)}}.bind(this)),this.sourceTiles_.forEach(function(t,e,n){0==t.getState()&&t.load()}),0===o&&setTimeout(this.reproject_.bind(this),0)}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(_),this.sourcesListenerKeys_=null},t}(h_),b_=[0,0,0],P_=function(){function t(t){var i,r,e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,K((i=this.resolutions_,r=function(t,e){return e-t},i.every(function(t,e){if(0===e)return!0;var n=r(i[e-1],t);return!(0<n||0===n)})),17),!t.origins)for(var n=0,o=this.resolutions_.length-1;n<o;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,K(this.origins_.length==this.resolutions_.length,20));var a=t.extent;void 0===a||this.origin_||this.origins_||(this.origin_=Be(a)),K(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,K(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:256,K(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==a?a:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(function(t,e){return new ux(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):a&&this.calculateTileRanges_(a)}return t.prototype.forEachTileCoord=function(t,e,n){for(var i=this.getTileRangeForExtentAndZ(t,e),r=i.minX,o=i.maxX;r<=o;++r)for(var a=i.minY,s=i.maxY;a<=s;++a)n([e,r,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,i){var r,o,a=null,s=t[0]-1;for(2===this.zoomFactor_?(r=t[1],o=t[2]):a=this.getTileCoordExtent(t,i);s>=this.minZoom;){if(e(s,2===this.zoomFactor_?lx(r=Math.floor(r/2),r,o=Math.floor(o/2),o,n):this.getTileRangeForExtentAndZ(a,s,n)))return!0;--s}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],r=2*t[2];return lx(i,1+i,r,1+r,e)}var o=this.getTileCoordExtent(t,n);return this.getTileRangeForExtentAndZ(o,t[0]+1,e)}return null},t.prototype.getTileRangeExtent=function(t,e,n){var i=this.getOrigin(t),r=this.getResolution(t),o=to(this.getTileSize(t),this.tmpSize_),a=i[0]+e.minX*o[0]*r,s=i[0]+(e.maxX+1)*o[0]*r;return Te(a,i[1]+e.minY*o[1]*r,s,i[1]+(e.maxY+1)*o[1]*r,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var i=b_;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var r=i[1],o=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),lx(r,i[1],o,i[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=to(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]},t.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),i=this.getResolution(t[0]),r=to(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,a=n[1]-(t[2]+1)*r[1]*i;return Te(o,a,o+r[0]*i,a+r[1]*i,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,n,i,r){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),l=to(this.getTileSize(o),this.tmpSize_),u=i?.5:0,h=i?.5:0,c=Math.floor((t-s[0])/n+u),p=Math.floor((s[1]-e)/n+h),f=a*c/l[0],d=a*p/l[1];return d=i?(f=Math.ceil(f)-1,Math.ceil(d)-1):(f=Math.floor(f),Math.floor(d)),$x(o,f,d,r)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,i,r){var o=this.getOrigin(n),a=this.getResolution(n),s=to(this.getTileSize(n),this.tmpSize_),l=i?.5:0,u=i?.5:0,h=Math.floor((t-o[0])/a+l),c=Math.floor((o[1]-e)/a+u),p=h/s[0],f=c/s[1];return f=i?(p=Math.ceil(p)-1,Math.ceil(f)-1):(p=Math.floor(p),Math.floor(f)),$x(n,p,f,r)},t.prototype.getTileCoordForCoordAndZ=function(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:null},t.prototype.getZForResolution=function(t,e){return J(m(this.resolutions_,t,e||0),this.minZoom,this.maxZoom)},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n},t}();function S_(t){var e=t.getDefaultTileGrid();return e||(e=T_(t),t.setDefaultTileGrid(e)),e}function C_(t){var e=t||{},n=e.extent||xn("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:M_(n,e.maxZoom,e.tileSize)};return new P_(i)}function M_(t,e,n){for(var i=void 0!==e?e:42,r=Ve(t),o=We(t),a=to(void 0!==n?n:256),s=Math.max(o/a[0],r/a[1]),l=i+1,u=new Array(l),h=0;h<l;++h)u[h]=s/Math.pow(2,h);return u}function T_(t,e,n,i){return function(t,e,n,i){var r=void 0!==i?i:he,o=M_(t,e,n);return new P_({extent:t,origin:function(t,e){var n;return e===le?n=De(t):e===ue?n=Fe(t):e===he?n=Be(t):e===ce?n=Ue(t):K(!1,13),n}(t,r),resolutions:o,tileSize:n})}(A_(t),e,n,i)}function A_(t){var e=(t=xn(t)).getExtent();if(!e){var n=180*Je[Qe.DEGREES]/t.getMetersPerUnit();e=Te(-n,-n,n,n)}return e}var E_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),I_=function(l){function t(t){var e=l.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX})||this;e.opaque_=void 0!==t.opaque&&t.opaque,e.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,e.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;var n=t.cacheSize;if(void 0===n){var i=[256,256],r=t.tileGrid;r&&to(r.getTileSize(r.getMinZoom()),i);var o="undefined"!=typeof screen,a=o?screen.availWidth||screen.width:1920,s=o?screen.availHeight||screen.height:1080;n=4*Math.ceil(a/i[0])*Math.ceil(s/i[1])}return e.tileCache=new y_(n),e.tmpSize=[0,0],e.key_=t.key||"",e.tileOptions={transition:t.transition},e.zDirection=t.zDirection?t.zDirection:0,e}return E_(t,l),t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);n&&n.expireCache(e)},t.prototype.forEachLoadedTile=function(t,e,n,i){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var o,a,s,l=!0,u=n.minX;u<=n.maxX;++u)for(var h=n.minY;h<=n.maxY;++h)a=t_(e,u,h),s=!1,r.containsKey(a)&&(s=2===(o=r.get(a)).getState())&&(s=!1!==i(o)),s||(l=!1);return l},t.prototype.getGutterForProjection=function(t){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},t.prototype.getOpaque=function(t){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},t.prototype.getTile=function(t,e,n,i,r){return s()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:S_(t)},t.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return e&&!Cn(e,t)?null:this.tileCache},t.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(t,e,n){var i=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),o=to(i.getTileSize(t),this.tmpSize);return 1==r?o:$r(o,r,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),i=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=function(t,e,n){var i=e[0],r=t.getTileCoordCenter(e),o=A_(n);if(be(o,r))return e;var a=We(o),s=Math.ceil((o[0]-r[0])/a);return r[0]+=a*s,t.getTileCoordForCoordAndZ(r,i)}(i,t,n)),function(t,e){var n=t[0],i=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var o,a=e.getExtent();return!(o=a?e.getTileRangeForExtentAndZ(a,n):e.getFullTileRange(n))||o.containsXY(i,r)}(t,i)?t:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),l.prototype.refresh.call(this)},t.prototype.useTile=function(t,e,n,i){},t}(fg),L_=function(i){function t(t,e){var n=i.call(this,t)||this;return n.tile=e,n}return E_(t,i),t}(E),R_=I_,O_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),N_=function(n){function t(t){var e=n.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this;return e.generateTileUrlFunction_=!t.tileUrlFunction,e.tileLoadFunction=t.tileLoadFunction,e.tileUrlFunction=t.tileUrlFunction?t.tileUrlFunction.bind(e):a_,e.urls=null,t.urls?e.setUrls(t.urls):t.url&&e.setUrl(t.url),e.tileLoadingKeys_={},e}return O_(t,n),t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(t){var e,n=t.target,i=dt(n),r=n.getState();1==r?(this.tileLoadingKeys_[i]=!0,e="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=3==r?"tileloaderror":2==r||5==r?"tileloadend":void 0),null!=e&&this.dispatchEvent(new L_(e,n))},t.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},t.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},t.prototype.setUrl=function(t){var e=s_(t);this.urls=e,this.setUrls(e)},t.prototype.setUrls=function(t){var e=(this.urls=t).join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(r_(t,this.tileGrid),e):this.setKey(e)},t.prototype.useTile=function(t,e,n){var i=t_(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},t}(R_),k_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function z_(t,e){t.getImage().src=e}var D_=function(n){function t(t){var e=n.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:z_,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this;return e.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,e.tileClass=void 0!==t.tileClass?t.tileClass:f_,e.tileCacheForProjection={},e.tileGridForProjection={},e.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,e.renderReprojectionEdges_=!1,e}return k_(t,n),t.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},t.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==n?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[i];r.expireCache(r==n?e:{})}},t.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!Cn(this.getProjection(),t)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getOpaque=function(t){return!(this.getProjection()&&t&&!Cn(this.getProjection(),t))&&n.prototype.getOpaque.call(this,t)},t.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!Cn(e,t)){var n=dt(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=S_(t)),this.tileGridForProjection[n]}return this.tileGrid},t.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||Cn(e,t))return this.tileCache;var n=dt(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new y_(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},t.prototype.createTile_=function(t,e,n,i,r,o){var a=[t,e,n],s=this.getTileCoordForTileUrlFunction(a,r),l=s?this.tileUrlFunction(s,i,r):void 0,u=new this.tileClass(a,void 0!==l?0:4,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(R,this.handleTileChange.bind(this)),u},t.prototype.getTile=function(t,e,n,i,r){var o=this.getProjection();if(o&&r&&!Cn(o,r)){var a=this.getTileCacheForProjection(r),s=[t,e,n],l=void 0,u=e_(s);a.containsKey(u)&&(l=a.get(u));var h=this.getKey();if(l&&l.key==h)return l;var c=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(s,r),d=new w_(o,c,r,p,s,f,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return d.key=h,l?(d.interimTile=l,d.refreshInterimChain(),a.replace(u,d)):a.set(u,d),d}return this.getTileInternal(t,e,n,i,o||r)},t.prototype.getTileInternal=function(t,e,n,i,r){var o=null,a=t_(t,e,n),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var l=o;o=this.createTile_(t,e,n,i,r,s),0==l.getState()?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,n,i,r,s),this.tileCache.set(a,o);return o},t.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},t.prototype.setTileGridForProjection=function(t,e){var n=xn(t);if(n){var i=dt(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}},t}(N_),F_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),G_=function(i){function t(t){var e=this,n=void 0!==t.hidpi&&t.hidpi;return(e=i.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:xn("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:jt,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition})||this).hidpi_=n,e.culture_=void 0!==t.culture?t.culture:"en-us",e.maxZoom_=void 0!==t.maxZoom?t.maxZoom:-1,e.apiKey_=t.key,e.imagerySet_=t.imagerySet,l_("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+e.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+e.apiKey_+"&c="+e.culture_,e.handleImageryMetadataResponse.bind(e),void 0,"jsonp"),e}return F_(t,i),t.prototype.getApiKey=function(){return this.apiKey_},t.prototype.getImagerySet=function(){return this.imagerySet_},t.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var i=t.resourceSets[0].resources[0],e=-1==this.maxZoom_?i.zoomMax:this.maxZoom_,n=A_(this.getProjection()),r=this.hidpi_?2:1,o=i.imageWidth==i.imageHeight?i.imageWidth/r:[i.imageWidth/r,i.imageHeight/r],a=C_({extent:n,minZoom:i.zoomMin,maxZoom:e,tileSize:o});this.tileGrid=a;var s=this.culture_,l=this.hidpi_;if(this.tileUrlFunction=o_(i.imageUrlSubdomains.map(function(t){var r=[0,0,0],o=i.imageUrl.replace("{subdomain}",t).replace("{culture}",s);return function(t,e,n){if(t){$x(t[0],t[1],t[2],r);var i=o;return l&&(i+="&dpi=d1&device=mobile"),i.replace("{quadkey}",function(t){var e,n,i=t[0],r=new Array(i),o=1<<i-1;for(e=0;e<i;++e)n=48,t[1]&o&&(n+=1),t[2]&o&&(n+=2),r[e]=String.fromCharCode(n),o>>=1;return r.join("")}(r))}}})),i.imageryProviders){var h=Mn(xn("EPSG:4326"),this.getProjection());this.setAttributions(function(s){var l=[],t=s.viewState,e=this.getTileGrid(),n=e.getZForResolution(t.resolution,this.zDirection),u=e.getTileCoordForCoordAndZ(t.center,n)[0];return i.imageryProviders.map(function(t){for(var e=!1,n=t.coverageAreas,i=0,r=n.length;i<r;++i){var o=n[i];if(u>=o.zoomMin&&u<=o.zoomMax){var a=o.bbox;if(Ze(Ye([a[1],a[0],a[3],a[2]],h),s.extent)){e=!0;break}}}e&&l.push(t.attribution)}),l.push('<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>'),l}.bind(this))}this.setState(Vt)}else this.setState(qt)},t}(D_),j_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),V_=function(r){function t(t){var e=t||{},n=void 0!==e.projection?e.projection:"EPSG:3857",i=void 0!==e.tileGrid?e.tileGrid:C_({extent:A_(n),maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});return r.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,opaque:e.opaque,projection:n,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this}return j_(t,r),t}(D_),q_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),B_=function(n){function t(t){var e=n.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,wrapX:t.wrapX})||this;return e.account_=t.account,e.mapId_=t.map||"",e.config_=t.config||{},e.templateCache_={},e.initializeMap_(),e}return q_(t,n),t.prototype.getConfig=function(){return this.config_},t.prototype.updateConfig=function(t){v(this.config_,t),this.initializeMap_()},t.prototype.setConfig=function(t){this.config_=t||{},this.initializeMap_()},t.prototype.initializeMap_=function(){var t=JSON.stringify(this.config_);if(this.templateCache_[t])this.applyTemplate_(this.templateCache_[t]);else{var e="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(e+="/named/"+this.mapId_);var n=new XMLHttpRequest;n.addEventListener("load",this.handleInitResponse_.bind(this,t)),n.addEventListener("error",this.handleInitError_.bind(this)),n.open("POST",e),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(this.config_))}},t.prototype.handleInitResponse_=function(t,e){var n=e.target;if(!n.status||200<=n.status&&n.status<300){var i=void 0;try{i=JSON.parse(n.responseText)}catch(t){return void this.setState(qt)}this.applyTemplate_(i),this.templateCache_[t]=i,this.setState(Vt)}else this.setState(qt)},t.prototype.handleInitError_=function(t){this.setState(qt)},t.prototype.applyTemplate_=function(t){var e="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(e)},t}(V_),U_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),W_=function(n){function t(t){var e=n.call(this,{attributions:t.attributions,wrapX:t.wrapX})||this;return e.resolution=void 0,e.distance=void 0!==t.distance?t.distance:20,e.features=[],e.geometryFunction=t.geometryFunction||function(t){var e=t.getGeometry();return K(e.getType()==re.POINT,10),e},e.source=t.source,e.source.addEventListener(R,e.refresh.bind(e)),e}return U_(t,n),t.prototype.getDistance=function(){return this.distance},t.prototype.getSource=function(){return this.source},t.prototype.loadFeatures=function(t,e,n){this.source.loadFeatures(t,e,n),e!==this.resolution&&(this.clear(),this.resolution=e,this.cluster(),this.addFeatures(this.features))},t.prototype.setDistance=function(t){this.distance=t,this.refresh()},t.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},t.prototype.cluster=function(){if(void 0!==this.resolution)for(var t=[1/(this.features.length=0),1/0,-1/0,-1/0],e=this.distance*this.resolution,n=this.source.getFeatures(),i={},r=0,o=n.length;r<o;r++){var a=n[r];if(!(dt(a)in i)){var s=this.geometryFunction(a);if(s){Ee(s.getCoordinates(),t),xe(t,e,t);var l=this.source.getFeaturesInExtent(t);l=l.filter(function(t){var e=dt(t);return!(e in i||(i[e]=!0,0))}),this.features.push(this.createCluster(l))}}}},t.prototype.createCluster=function(t){for(var e=[0,0],n=t.length-1;0<=n;--n){var i=this.geometryFunction(t[n]);i?bi(e,i.getCoordinates()):t.splice(n,1)}Ai(e,1/t.length);var r=new Ba(new Cr(e));return r.set("features",t),r},t}(_g),Z_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),X_=function(u){function t(e,t,n,i,r,o,a,s){var l=u.call(this,n,i,r,o,a,s)||this;return l.zoomifyImage_=null,l.tileSize_=to(t.getTileSize(n[0])).map(function(t){return t*e}),l}return Z_(t,u),t.prototype.getImage=function(){if(this.zoomifyImage_)return this.zoomifyImage_;var t=u.prototype.getImage.call(this);if(2!=this.state)return t;var e=this.tileSize_;if(t.width==e[0]&&t.height==e[1])return this.zoomifyImage_=t;var n=xt(e[0],e[1]);return n.drawImage(t,0,0),this.zoomifyImage_=n.canvas,n.canvas},t}(f_),H_=function(b){function t(t){var e=this,n=t||{},i=n.size,r=void 0!==n.tierSizeCalculation?n.tierSizeCalculation:"default",o=i[0],a=i[1],s=n.extent||[0,-i[1],i[0],0],c=[],l=n.tileSize||256,u=n.tilePixelRatio||1,h=l;switch(r){case"default":for(;h<o||h<a;)c.push([Math.ceil(o/h),Math.ceil(a/h)]),h+=h;break;case"truncated":for(var p=o,f=a;h<p||h<f;)c.push([Math.ceil(p/h),Math.ceil(f/h)]),p>>=1,f>>=1;break;default:K(!1,53)}c.push([1,1]),c.reverse();for(var d=[1],y=[0],m=1,g=c.length;m<g;m++)d.push(1<<m),y.push(c[m-1][0]*c[m-1][1]+y[m-1]);d.reverse();var v=new P_({tileSize:l,extent:s,origin:Be(s),resolutions:d}),x=n.url;x&&-1==x.indexOf("{TileGroup}")&&-1==x.indexOf("{tileIndex}")&&(x+="{TileGroup}/{z}-{x}-{y}.jpg");var _=o_(s_(x).map(function(h){return function(t,e,n){if(t){var i=t[0],r=t[1],o=t[2],a=r+o*c[i][0],s=v.getTileSize(i),l=Array.isArray(s)?s[0]:s,u={z:i,x:r,y:o,tileIndex:a,TileGroup:"TileGroup"+((a+y[i])/l|0)};return h.replace(/\{(\w+?)\}/g,function(t,e){return u[e]})}}})),w=X_.bind(null,u,v);return(e=b.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,projection:n.projection,tilePixelRatio:u,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:w,tileGrid:v,tileUrlFunction:_,transition:n.transition})||this).zDirection=n.zDirection,e}return Z_(t,b),t}(D_),Y_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function K_(t){return t.toLocaleString("en",{maximumFractionDigits:10})}var J_=function(f){function t(t){var e=this,n=t||{},g=n.url||"";g+=g.lastIndexOf("/")===g.length-1||""===g?"":"/";var v=n.version||fh,x=n.sizes||[],i=n.size;K(null!=i&&Array.isArray(i)&&2==i.length&&!isNaN(i[0])&&0<i[0]&&!isNaN(i[1])&&0<i[1],60);var _,w,b,P=i[0],S=i[1],r=n.tileSize,o=n.tilePixelRatio||1,C=n.format||"jpg",M=n.quality||(n.version==ph?"native":"default"),T=n.resolutions||[],A=n.supports||[],a=n.extent||[0,-S,P,0],E=null!=x&&Array.isArray(x)&&0<x.length,I=null!=r&&("number"==typeof r&&Number.isInteger(r)&&0<r||Array.isArray(r)&&0<r.length),L=null!=A&&Array.isArray(A)&&(A.includes("regionByPx")||A.includes("regionByPct"))&&(A.includes("sizeByWh")||A.includes("sizeByH")||A.includes("sizeByW")||A.includes("sizeByPct"));if(T.sort(function(t,e){return e-t}),I||L)if(null!=r&&("number"==typeof r&&Number.isInteger(r)&&0<r?w=_=r:Array.isArray(r)&&0<r.length&&((1==r.length||null==r[1]&&Number.isInteger(r[0]))&&(_=r[0],w=r[0]),2==r.length&&(Number.isInteger(r[0])&&Number.isInteger(r[1])?(_=r[0],w=r[1]):null==r[0]&&Number.isInteger(r[1])&&(_=r[1],w=r[1])))),void 0!==_&&void 0!==w||(w=_=256),0==T.length)for(var s=b=Math.max(Math.ceil(Math.log(P/_)/Math.LN2),Math.ceil(Math.log(S/w)/Math.LN2));0<=s;s--)T.push(Math.pow(2,s));else{var l=Math.max.apply(Math,T);b=Math.round(Math.log(l)/Math.LN2)}else if(_=P,w=S,T=[],E){x.sort(function(t,e){return t[0]-e[0]}),b=-1;var u=[];for(s=0;s<x.length;s++){var h=P/x[s][0];0<T.length&&T[T.length-1]==h?u.push(s):(T.push(h),b++)}if(0<u.length)for(s=0;s<u.length;s++)x.splice(u[s]-s,1)}else T.push(1),x.push([P,S]),b=0;var c=new P_({tileSize:[_,w],extent:a,origin:Be(a),resolutions:T}),p=X_.bind(null,o,c);return(e=f.call(this,{attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,state:n.state,tileClass:p,tileGrid:c,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:function(t,e,n){var i,r,o=t[0];if(!(b<o)){var a=t[1],s=t[2],l=T[o];if(!(void 0===a||void 0===s||void 0===l||a<0||Math.ceil(P/l/_)<=a||s<0||Math.ceil(S/l/w)<=s)){if(L||I){var u=a*_*l,h=s*w*l,c=_*l,p=w*l,f=_,d=w;P<u+c&&(c=P-u),S<h+p&&(p=S-h),P<u+_*l&&(f=Math.floor((P-u+l-1)/l)),S<h+w*l&&(d=Math.floor((S-h+l-1)/l)),0==u&&c==P&&0==h&&p==S?i="full":!L||A.includes("regionByPx")?i=u+","+h+","+c+","+p:A.includes("regionByPct")&&(i="pct:"+K_(u/P*100)+","+K_(h/S*100)+","+K_(c/P*100)+","+K_(p/S*100)),v!=dh||L&&!A.includes("sizeByWh")?!L||A.includes("sizeByW")?r=f+",":A.includes("sizeByH")?r=","+d:A.includes("sizeByWh")?r=f+","+d:A.includes("sizeByPct")&&(r="pct:"+K_(100/l)):r=f+","+d}else if(i="full",E){var y=x[o][0],m=x[o][1];r=v==dh?y==P&&m==S?"max":y+","+m:y==P?"full":y+","}else r=v==dh?"max":"full";return g+i+"/"+r+"/0/"+M+"."+C}}},transition:n.transition})||this).zDirection=n.zDirection,e}return Y_(t,f),t}(D_),Q_=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),$_=function(y){function t(t,e,n,i,r,o){var a=this,s=t.getExtent(),l=e.getExtent(),u=l?qe(n,l):n,h=m_(t,e,Ge(u),i),c=new x_(t,e,u,s,.5*h),p=o(c.calculateSourceExtent(),h,r),f=p?No:4,d=p?p.getPixelRatio():1;return(a=y.call(this,n,i,d,f)||this).targetProj_=e,a.maxSourceExtent_=s,a.triangulation_=c,a.targetResolution_=i,a.targetExtent_=n,a.sourceImage_=p,a.sourcePixelRatio_=d,a.canvas_=null,a.sourceListenerKey_=null,a}return Q_(t,y),t.prototype.disposeInternal=function(){1==this.state&&this.unlistenSource_(),y.prototype.disposeInternal.call(this)},t.prototype.getImage=function(){return this.canvas_},t.prototype.getProjection=function(){return this.targetProj_},t.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==ko){var e=We(this.targetExtent_)/this.targetResolution_,n=Ve(this.targetExtent_)/this.targetResolution_;this.canvas_=v_(e,n,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0)}this.state=t,this.changed()},t.prototype.load=function(){if(this.state==No){this.state=1,this.changed();var t=this.sourceImage_.getState();t==ko||t==zo?this.reproject_():(this.sourceListenerKey_=x(this.sourceImage_,R,function(t){var e=this.sourceImage_.getState();e!=ko&&e!=zo||(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},t.prototype.unlistenSource_=function(){_(this.sourceListenerKey_),this.sourceListenerKey_=null},t}(Ch),tw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ew=function(i){function t(t,e){var n=i.call(this,t)||this;return n.image=e,n}return tw(t,i),t}(E);function nw(t,e){t.getImage().src=e}var iw=function(n){function t(t){var e=n.call(this,{attributions:t.attributions,projection:t.projection,state:t.state})||this;return e.resolutions_=void 0!==t.resolutions?t.resolutions:null,e.reprojectedImage_=null,e.reprojectedRevision_=0,e}return tw(t,n),t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=m(this.resolutions_,t,0);t=this.resolutions_[e]}return t},t.prototype.getImage=function(t,e,n,i){var r=this.getProjection();if(r&&i&&!Cn(r,i)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Cn(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==e&&Le(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new $_(r,i,t,e,n,function(t,e,n){return this.getImageInternal(t,e,n,r)}.bind(this)),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(i=r),this.getImageInternal(t,e,n,i)},t.prototype.getImageInternal=function(t,e,n,i){return s()},t.prototype.handleImageChange=function(t){var e=t.target;switch(e.getState()){case 1:this.loading=!0,this.dispatchEvent(new ew("imageloadstart",e));break;case ko:this.loading=!1,this.dispatchEvent(new ew("imageloadend",e));break;case zo:this.loading=!1,this.dispatchEvent(new ew("imageloaderror",e))}},t}(fg);function rw(t,e){var n=[];Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&n.push(t+"="+encodeURIComponent(e[t]))});var i=n.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}var ow=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),aw=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,{attributions:n.attributions,projection:n.projection,resolutions:n.resolutions})||this).crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,e.hidpi_=void 0===n.hidpi||n.hidpi,e.url_=n.url,e.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:nw,e.params_=n.params||{},e.image_=null,e.imageSize_=[0,0],e.renderedRevision_=0,e.ratio_=void 0!==n.ratio?n.ratio:1.5,e}return ow(t,i),t.prototype.getParams=function(){return this.params_},t.prototype.getImageInternal=function(t,e,n,i){if(void 0===this.url_)return null;e=this.findNearestResolution(e),n=this.hidpi_?n:1;var r=this.image_;if(r&&this.renderedRevision_==this.getRevision()&&r.getResolution()==e&&r.getPixelRatio()==n&&Pe(r.getExtent(),t))return r;var o={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};v(o,this.params_);var a=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2;if(1!=this.ratio_){var l=this.ratio_*We(t)/2,u=this.ratio_*Ve(t)/2;t[0]=a-l,t[1]=s-u,t[2]=a+l,t[3]=s+u}var h=e/n,c=Math.ceil(We(t)/h),p=Math.ceil(Ve(t)/h);t[0]=a-h*c/2,t[2]=a+h*c/2,t[1]=s-h*p/2,t[3]=s+h*p/2,this.imageSize_[0]=c,this.imageSize_[1]=p;var f=this.getRequestUrl_(t,this.imageSize_,n,i,o);return this.image_=new Ah(t,e,n,f,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(R,this.handleImageChange.bind(this)),this.image_},t.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},t.prototype.getRequestUrl_=function(t,e,n,i,r){var o=i.getCode().split(":").pop();r.SIZE=e[0]+","+e[1],r.BBOX=t.join(","),r.BBOXSR=o,r.IMAGESR=o,r.DPI=Math.round(90*n);var a=this.url_,s=a.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return s==a&&K(!1,50),rw(s,r)},t.prototype.getUrl=function(){return this.url_},t.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},t.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},t.prototype.updateParams=function(t){v(this.params_,t),this.image_=null,this.changed()},t}(iw),sw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),lw=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,{attributions:n.attributions,projection:n.projection,resolutions:n.resolutions,state:n.state})||this).canvasFunction_=n.canvasFunction,e.canvas_=null,e.renderedRevision_=0,e.ratio_=void 0!==n.ratio?n.ratio:1.5,e}return sw(t,i),t.prototype.getImageInternal=function(t,e,n,i){e=this.findNearestResolution(e);var r=this.canvas_;if(r&&this.renderedRevision_==this.getRevision()&&r.getResolution()==e&&r.getPixelRatio()==n&&Pe(r.getExtent(),t))return r;He(t=t.slice(),this.ratio_);var o=[We(t)/e*n,Ve(t)/e*n],a=this.canvasFunction_.call(this,t,e,n,o,i);return a&&(r=new mx(t,e,n,a)),this.canvas_=r,this.renderedRevision_=this.getRevision(),r},t}(iw),uw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),hw=function(n){function t(t){var e=n.call(this,{projection:t.projection,resolutions:t.resolutions})||this;return e.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null,e.displayDpi_=void 0!==t.displayDpi?t.displayDpi:96,e.params_=t.params||{},e.url_=t.url,e.imageLoadFunction_=void 0!==t.imageLoadFunction?t.imageLoadFunction:nw,e.hidpi_=void 0===t.hidpi||t.hidpi,e.metersPerUnit_=void 0!==t.metersPerUnit?t.metersPerUnit:1,e.ratio_=void 0!==t.ratio?t.ratio:1,e.useOverlay_=void 0!==t.useOverlay&&t.useOverlay,e.image_=null,e.renderedRevision_=0,e}return uw(t,n),t.prototype.getParams=function(){return this.params_},t.prototype.getImageInternal=function(t,e,n,i){e=this.findNearestResolution(e),n=this.hidpi_?n:1;var r=this.image_;if(r&&this.renderedRevision_==this.getRevision()&&r.getResolution()==e&&r.getPixelRatio()==n&&Pe(r.getExtent(),t))return r;1!=this.ratio_&&He(t=t.slice(),this.ratio_);var o=[We(t)/e*n,Ve(t)/e*n];if(void 0!==this.url_){var a=this.getUrl(this.url_,this.params_,t,o,i);(r=new Ah(t,e,n,a,this.crossOrigin_,this.imageLoadFunction_)).addEventListener(R,this.handleImageChange.bind(this))}else r=null;return this.image_=r,this.renderedRevision_=this.getRevision(),r},t.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},t.prototype.updateParams=function(t){v(this.params_,t),this.changed()},t.prototype.getUrl=function(t,e,n,i,r){var o=function(t,e,n,i){var r=We(t),o=Ve(t),a=e[0],s=e[1],l=.0254/i;return a*o<s*r?r*n/(a*l):o*n/(s*l)}(n,i,this.metersPerUnit_,this.displayDpi_),a=Ge(n),s={OPERATION:this.useOverlay_?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.displayDpi_,SETDISPLAYWIDTH:Math.round(i[0]),SETDISPLAYHEIGHT:Math.round(i[1]),SETVIEWSCALE:o,SETVIEWCENTERX:a[0],SETVIEWCENTERY:a[1]};return v(s,e),rw(t,s)},t.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},t}(iw),cw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),pw=function(u){function t(t){var e=this,n=void 0!==t.crossOrigin?t.crossOrigin:null,i=void 0!==t.imageLoadFunction?t.imageLoadFunction:nw;return(e=u.call(this,{attributions:t.attributions,projection:xn(t.projection)})||this).url_=t.url,e.imageExtent_=t.imageExtent,e.image_=new Ah(e.imageExtent_,void 0,1,e.url_,n,i),e.imageSize_=t.imageSize?t.imageSize:null,e.image_.addEventListener(R,e.handleImageChange.bind(e)),e}return cw(t,u),t.prototype.getImageExtent=function(){return this.imageExtent_},t.prototype.getImageInternal=function(t,e,n,i){return Ze(t,this.image_.getExtent())?this.image_:null},t.prototype.getUrl=function(){return this.url_},t.prototype.handleImageChange=function(t){if(this.image_.getState()==ko){var e=this.image_.getExtent(),n=this.image_.getImage(),i=void 0,r=void 0;r=this.imageSize_?(i=this.imageSize_[0],this.imageSize_[1]):(i=n.width,n.height);var o=Ve(e)/r,a=Math.ceil(We(e)/o);if(a!=i){var s=xt(a,r),l=s.canvas;s.drawImage(n,0,0,i,r,0,0,l.width,l.height),this.image_.setImage(l)}}u.prototype.handleImageChange.call(this,t)},t}(iw),fw="carmentaserver",dw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),yw=[101,101],mw=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,{attributions:n.attributions,projection:n.projection,resolutions:n.resolutions})||this).crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,e.url_=n.url,e.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:nw,e.params_=n.params||{},e.v13_=!0,e.updateV13_(),e.serverType_=n.serverType,e.hidpi_=void 0===n.hidpi||n.hidpi,e.image_=null,e.imageSize_=[0,0],e.renderedRevision_=0,e.ratio_=void 0!==n.ratio?n.ratio:1.5,e}return dw(t,i),t.prototype.getFeatureInfoUrl=function(t,e,n,i){if(void 0!==this.url_){var r=xn(n),o=this.getProjection();o&&o!==r&&(e=m_(o,r,t,e),t=An(t,r,o));var a=je(t,e,0,yw),s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};v(s,this.params_,i);var l=Math.floor((t[0]-a[0])/e),u=Math.floor((a[3]-t[1])/e);return s[this.v13_?"I":"X"]=l,s[this.v13_?"J":"Y"]=u,this.getRequestUrl_(a,yw,1,o||r,s)}},t.prototype.getLegendUrl=function(t,e){if(void 0!==this.url_){var n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var i=this.params_.LAYERS;if(Array.isArray(i)&&1!==i.length)return;n.LAYER=i}if(void 0!==t){var r=this.getProjection()?this.getProjection().getMetersPerUnit():1;n.SCALE=t*r*39.37*(25.4/.28)}return v(n,e),rw(this.url_,n)}},t.prototype.getParams=function(){return this.params_},t.prototype.getImageInternal=function(t,e,n,i){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==n||this.hidpi_&&void 0!==this.serverType_||(n=1);var r=e/n,o=Ge(t),a=je(o,r,0,[Math.ceil(We(t)/r),Math.ceil(Ve(t)/r)]),s=je(o,r,0,[Math.ceil(this.ratio_*We(t)/r),Math.ceil(this.ratio_*Ve(t)/r)]),l=this.image_;if(l&&this.renderedRevision_==this.getRevision()&&l.getResolution()==e&&l.getPixelRatio()==n&&Pe(l.getExtent(),a))return l;var u={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};v(u,this.params_),this.imageSize_[0]=Math.round(We(s)/r),this.imageSize_[1]=Math.round(Ve(s)/r);var h=this.getRequestUrl_(s,this.imageSize_,n,i,u);return this.image_=new Ah(s,e,n,h,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(R,this.handleImageChange.bind(this)),this.image_},t.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},t.prototype.getRequestUrl_=function(t,e,n,i,r){if(K(void 0!==this.url_,9),r[this.v13_?"CRS":"SRS"]=i.getCode(),"STYLES"in this.params_||(r.STYLES=""),1!=n)switch(this.serverType_){case"geoserver":var o=90*n+.5|0;"FORMAT_OPTIONS"in r?r.FORMAT_OPTIONS+=";dpi:"+o:r.FORMAT_OPTIONS="dpi:"+o;break;case"mapserver":r.MAP_RESOLUTION=90*n;break;case fw:case"qgis":r.DPI=90*n;break;default:K(!1,8)}r.WIDTH=e[0],r.HEIGHT=e[1];var a,s=i.getAxisOrientation();return a=this.v13_&&"ne"==s.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,r.BBOX=a.join(","),rw(this.url_,r)},t.prototype.getUrl=function(){return this.url_},t.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},t.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},t.prototype.updateParams=function(t){v(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},t.prototype.updateV13_=function(){var t=this.params_.VERSION||"1.3.0";this.v13_=0<=wi(t,"1.3")},t}(iw),gw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),vw='&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',xw=function(o){function t(t){var e,n=t||{};e=void 0!==n.attributions?n.attributions:[vw];var i=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",r=void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return o.call(this,{attributions:e,cacheSize:n.cacheSize,crossOrigin:i,opaque:void 0===n.opaque||n.opaque,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,url:r,wrapX:n.wrapX,attributionsCollapsible:!1})||this}return gw(t,o),t}(V_),_w=n(3),ww=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),bw=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.extent=e.extent,i.resolution=e.viewState.resolution/e.pixelRatio,i.data=n,i}return ww(t,r),t}(E),Pw=function(o){function t(s){var t=o.call(this,{projection:null})||this;t.worker_=null,t.operationType_=void 0!==s.operationType?s.operationType:"pixel",t.threads_=void 0!==s.threads?s.threads:1,t.layers_=function(t){for(var e=t.length,n=new Array(e),i=0;i<e;++i)n[i]=(r=t[i],o=void 0,r instanceof fg?r instanceof R_?o=new dx({source:r}):r instanceof iw&&(o=new ax({source:r})):o=r,o);var r,o;return n}(s.sources);for(var e,n=t.changed.bind(t),i=0,r=t.layers_.length;i<r;++i)t.layers_[i].addEventListener(R,n);return t.tileQueue_=new ui(function(){return 1},t.changed.bind(t)),t.requestedFrameState_,t.renderedImageCanvas_=null,t.renderedRevision_,t.frameState_={animate:!1,coordinateToPixelTransform:[1,0,0,1,0,0],extent:null,index:0,layerIndex:0,layerStatesArray:(e=t.layers_,e.map(function(t){return t.getLayerState()})),pixelRatio:1,pixelToCoordinateTransform:[1,0,0,1,0,0],postRenderFunctions:[],size:[0,0],tileQueue:t.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},declutterItems:[]},t.setAttributions(function(t){for(var e=[],n=0,i=s.sources.length;n<i;++n){var r=s.sources[n],o=(r instanceof fg?r:r.getSource()).getAttributions();if("function"==typeof o){var a=o(t);e.push.apply(e,a)}}return 0!==e.length?e:null}),void 0!==s.operation&&t.setOperation(s.operation,s.lib),t}return ww(t,o),t.prototype.setOperation=function(t,e){this.worker_=new _w.Processor({operation:t,imageOps:"image"===this.operationType_,queue:1,lib:e,threads:this.threads_}),this.changed()},t.prototype.updateFrameState_=function(t,e,n){var i=v({},this.frameState_);i.viewState=v({},i.viewState);var r=Ge(t);i.extent=t.slice(),i.size[0]=Math.round(We(t)/e),i.size[1]=Math.round(Ve(t)/e),i.time=1/0;var o=i.viewState;return o.center=r,o.projection=n,o.resolution=e,i},t.prototype.allSourcesReady_=function(){for(var t=!0,e=0,n=this.layers_.length;e<n;++e)if(this.layers_[e].getSource().getState()!==Vt){t=!1;break}return t},t.prototype.getImage=function(t,e,n,i){if(!this.allSourcesReady_())return null;var r=this.updateFrameState_(t,e,i);if(this.requestedFrameState_=r,this.renderedImageCanvas_){var o=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();e===o&&Le(t,a)||(this.renderedImageCanvas_=null)}return this.renderedImageCanvas_&&this.getRevision()===this.renderedRevision_||this.processSources_(),r.tileQueue.loadMoreTiles(16,16),r.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_},t.prototype.processSources_=function(){for(var t=this.requestedFrameState_,e=this.layers_.length,n=new Array(e),i=0;i<e;++i){t.layerIndex=i;var r=Cw(this.layers_[i],t);if(!r)return;n[i]=r}var o={};this.dispatchEvent(new bw("beforeoperations",t,o)),this.worker_.process(n,o,this.onWorkerComplete_.bind(this,t))},t.prototype.onWorkerComplete_=function(t,e,n,i){if(!e&&n){var r,o=t.extent,a=t.viewState.resolution;a===this.requestedFrameState_.viewState.resolution&&Le(o,this.requestedFrameState_.extent)&&(this.renderedImageCanvas_?r=this.renderedImageCanvas_.getImage().getContext("2d"):(r=xt(Math.round(We(o)/a),Math.round(Ve(o)/a)),this.renderedImageCanvas_=new mx(o,a,1,r.canvas)),r.putImageData(n,0,0),this.changed(),this.renderedRevision_=this.getRevision(),this.dispatchEvent(new bw("afteroperations",t,i)))}},t.prototype.getImageInternal=function(){return null},t}(iw),Sw=null;function Cw(t,e){var n=t.getRenderer();if(!n)throw new Error("Unsupported layer type: "+t);if(!n.prepareFrame(e))return null;var i,r=e.size[0],o=e.size[1],a=n.renderFrame(e,null);if(a&&(i=a.firstElementChild),!(i instanceof HTMLCanvasElement))throw new Error("Unsupported rendered element: "+i);if(i.width===r&&i.height===o)return i.getContext("2d").getImageData(0,0,r,o);if(Sw){var s=Sw.canvas;s.width!==r||s.height!==o?Sw=xt(r,o):Sw.clearRect(0,0,r,o)}else Sw=xt(r,o);return Sw.drawImage(i,0,0,r,o),Sw.getImageData(0,0,r,o)}var Mw=Pw,Tw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Aw=['Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.',vw],Ew={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},Iw={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}},Lw=function(a){function t(t){var e=t.layer.indexOf("-"),n=-1==e?t.layer:t.layer.slice(0,e),i=Iw[n],r=Ew[t.layer],o=void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+r.extension;return a.call(this,{attributions:Aw,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:null!=t.maxZoom?t.maxZoom:i.maxZoom,minZoom:null!=t.minZoom?t.minZoom:i.minZoom,opaque:r.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:o,wrapX:t.wrapX})||this}return Tw(t,a),t}(V_),Rw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Ow(t,e,n){var i=this.getTileGrid();if(!((i=i||this.getTileGridForProjection(n)).getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var r=i.getTileCoordExtent(t,this.tmpExtent_),o=to(i.getTileSize(t[0]),this.tmpSize);1!=e&&(o=$r(o,e,this.tmpSize));var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return v(a,this.params_),this.getRequestUrl_(t,o,r,e,n,a)}}var Nw=function(i){function t(t){var e=this,n=t||{};return(e=i.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,tileUrlFunction:Ow,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition})||this).params_=n.params||{},e.hidpi_=void 0===n.hidpi||n.hidpi,e.tmpExtent_=[1/0,1/0,-1/0,-1/0],e.setKey(e.getKeyForParams_()),e}return Rw(t,i),t.prototype.getKeyForParams_=function(){var t=0,e=[];for(var n in this.params_)e[t++]=n+"-"+this.params_[n];return e.join("/")},t.prototype.getParams=function(){return this.params_},t.prototype.getRequestUrl_=function(t,e,n,i,r,o){var a=this.urls;if(a){var s=r.getCode().split(":").pop();return o.SIZE=e[0]+","+e[1],o.BBOX=n.join(","),o.BBOXSR=s,o.IMAGESR=s,o.DPI=Math.round(o.DPI?o.DPI*i:90*i),rw((1==a.length?a[0]:a[it(n_(t),a.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),o)}},t.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},t.prototype.updateParams=function(t){v(this.params_,t),this.setKey(this.getKeyForParams_())},t}(D_),kw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),zw=function(r){function t(t,e,n){var i=r.call(this,t,2)||this;return i.tileSize_=e,i.text_=n,i.canvas_=null,i}return kw(t,r),t.prototype.getImage=function(){if(this.canvas_)return this.canvas_;var t=this.tileSize_,e=xt(t[0],t[1]);return e.strokeStyle="grey",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="grey",e.strokeStyle="white",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.lineWidth=4,e.strokeText(this.text_,t[0]/2,t[1]/2,t[0]),e.fillText(this.text_,t[0]/2,t[1]/2,t[0]),this.canvas_=e.canvas,e.canvas},t.prototype.load=function(){},t}(h_),Dw=function(n){function t(t){var e=t||{};return n.call(this,{opaque:!1,projection:e.projection,tileGrid:e.tileGrid,wrapX:void 0===e.wrapX||e.wrapX,zDirection:e.zDirection})||this}return kw(t,n),t.prototype.getTile=function(t,e,n){var i=t_(t,e,n);if(this.tileCache.containsKey(i))return this.tileCache.get(i);var r=to(this.tileGrid.getTileSize(t)),o=[t,e,n],a=this.getTileCoordForTileUrlFunction(o),s=void 0;s=a?"z:"+a[0]+" x:"+a[1]+" y:"+a[2]:"none";var l=new zw(o,r,s);return this.tileCache.set(i,l),l},t}(V_),Fw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Gw=function(i){function t(t){var e=i.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:xn("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:jt,tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition})||this;if(e.tileJSON_=null,e.tileSize_=t.tileSize,t.url)if(t.jsonp)l_(t.url,e.handleTileJSONResponse.bind(e),e.handleTileJSONError.bind(e));else{var n=new XMLHttpRequest;n.addEventListener("load",e.onXHRLoad_.bind(e)),n.addEventListener("error",e.onXHRError_.bind(e)),n.open("GET",t.url),n.send()}else t.tileJSON?e.handleTileJSONResponse(t.tileJSON):K(!1,51);return e}return Fw(t,i),t.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||200<=e.status&&e.status<300){var n=void 0;try{n=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(n)}else this.handleTileJSONError()},t.prototype.onXHRError_=function(t){this.handleTileJSONError()},t.prototype.getTileJSON=function(){return this.tileJSON_},t.prototype.handleTileJSONResponse=function(e){var t,n=xn("EPSG:4326"),i=this.getProjection();if(void 0!==e.bounds){var r=Mn(n,i);t=Ye(e.bounds,r)}var o=e.minzoom||0,a=e.maxzoom||22,s=C_({extent:A_(i),maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=r_(e.tiles,s),void 0!==e.attribution&&!this.getAttributions()){var l=void 0!==t?t:n.getExtent();this.setAttributions(function(t){return Ze(l,t.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState(Vt)},t.prototype.handleTileJSONError=function(){this.setState(qt)},t}(D_),jw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();function Vw(t,e,n){var i=this.getTileGrid();if(!((i=i||this.getTileGridForProjection(n)).getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var r=i.getResolution(t[0]),o=i.getTileCoordExtent(t,this.tmpExtent_),a=to(i.getTileSize(t[0]),this.tmpSize),s=this.gutter_;0!==s&&(a=Qr(a,s,this.tmpSize),o=xe(o,r*s,o)),1!=e&&(a=$r(a,e,this.tmpSize));var l={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return v(l,this.params_),this.getRequestUrl_(t,a,o,e,n,l)}}var qw=function(o){function t(t){var e=this,n=t||{},i=n.params||{},r=!("TRANSPARENT"in i)||i.TRANSPARENT;return(e=o.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,opaque:!r,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:n.tileClass,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,tileUrlFunction:Vw,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition})||this).gutter_=void 0!==n.gutter?n.gutter:0,e.params_=i,e.v13_=!0,e.serverType_=n.serverType,e.hidpi_=void 0===n.hidpi||n.hidpi,e.tmpExtent_=[1/0,1/0,-1/0,-1/0],e.updateV13_(),e.setKey(e.getKeyForParams_()),e}return jw(t,o),t.prototype.getFeatureInfoUrl=function(t,e,n,i){var r=xn(n),o=this.getProjection(),a=this.getTileGrid(),s=(a=a||this.getTileGridForProjection(r)).getZForResolution(e,this.zDirection),l=a.getTileCoordForCoordAndZ(t,s);if(!(a.getResolutions().length<=l[0])){var u=a.getResolution(l[0]),h=a.getTileCoordExtent(l,this.tmpExtent_),c=to(a.getTileSize(l[0]),this.tmpSize),p=this.gutter_;0!==p&&(c=Qr(c,p,this.tmpSize),h=xe(h,u*p,h)),o&&o!==r&&(u=m_(o,r,t,u),h=En(h,r,o),t=An(t,r,o));var f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};v(f,this.params_,i);var d=Math.floor((t[0]-h[0])/u),y=Math.floor((h[3]-t[1])/u);return f[this.v13_?"I":"X"]=d,f[this.v13_?"J":"Y"]=y,this.getRequestUrl_(l,c,h,1,o||r,f)}},t.prototype.getLegendUrl=function(t,e){if(void 0!==this.urls[0]){var n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var i=this.params_.LAYERS;if(Array.isArray(i)&&1!==i.length)return;n.LAYER=i}if(void 0!==t){var r=this.getProjection()?this.getProjection().getMetersPerUnit():1;n.SCALE=t*r*39.37*(25.4/.28)}return v(n,e),rw(this.urls[0],n)}},t.prototype.getGutter=function(){return this.gutter_},t.prototype.getParams=function(){return this.params_},t.prototype.getRequestUrl_=function(t,e,n,i,r,o){var a=this.urls;if(a){if(o.WIDTH=e[0],o.HEIGHT=e[1],o[this.v13_?"CRS":"SRS"]=r.getCode(),"STYLES"in this.params_||(o.STYLES=""),1!=i)switch(this.serverType_){case"geoserver":var s=90*i+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case"mapserver":o.MAP_RESOLUTION=90*i;break;case fw:case"qgis":o.DPI=90*i;break;default:K(!1,52)}var l=r.getAxisOrientation(),u=n;if(this.v13_&&"ne"==l.substr(0,2)){var h=void 0;h=n[0],u[0]=n[1],u[1]=h,h=n[2],u[2]=n[3],u[3]=h}return o.BBOX=u.join(","),rw(1==a.length?a[0]:a[it(n_(t),a.length)],o)}},t.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},t.prototype.getKeyForParams_=function(){var t=0,e=[];for(var n in this.params_)e[t++]=n+"-"+this.params_[n];return e.join("/")},t.prototype.updateParams=function(t){v(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},t.prototype.updateV13_=function(){var t=this.params_.VERSION||"1.3.0";this.v13_=0<=wi(t,"1.3")},t}(D_),Bw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Uw=function(s){function t(t,e,n,i,r,o){var a=s.call(this,t,e)||this;return a.src_=n,a.extent_=i,a.preemptive_=r,a.grid_=null,a.keys_=null,a.data_=null,a.jsonp_=o,a}return Bw(t,s),t.prototype.getImage=function(){return null},t.prototype.getData=function(t){if(!this.grid_||!this.keys_)return null;var e=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),n=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),i=this.grid_[Math.floor((1-n)*this.grid_.length)];if("string"!=typeof i)return null;var r=i.charCodeAt(Math.floor(e*i.length));93<=r&&r--,35<=r&&r--;var o=null;if((r-=32)in this.keys_){var a=this.keys_[r];o=this.data_&&a in this.data_?this.data_[a]:a}return o},t.prototype.forDataAtCoordinate=function(e,n,t){0==this.state&&!0===t?(d(this,R,function(t){n(this.getData(e))},this),this.loadInternal_()):!0===t?setTimeout(function(){n(this.getData(e))}.bind(this),0):n(this.getData(e))},t.prototype.getKey=function(){return this.src_},t.prototype.handleError_=function(){this.state=3,this.changed()},t.prototype.handleLoad_=function(t){this.grid_=t.grid,this.keys_=t.keys,this.data_=t.data,this.state=4,this.changed()},t.prototype.loadInternal_=function(){if(0==this.state)if(this.state=1,this.jsonp_)l_(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{var t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}},t.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||200<=e.status&&e.status<300){var n=void 0;try{n=JSON.parse(e.responseText)}catch(t){return void this.handleError_()}this.handleLoad_(n)}else this.handleError_()},t.prototype.onXHRError_=function(t){this.handleError_()},t.prototype.load=function(){this.preemptive_&&this.loadInternal_()},t}(h_),Ww=function(i){function t(t){var e=i.call(this,{projection:xn("EPSG:3857"),state:jt})||this;if(e.preemptive_=void 0===t.preemptive||t.preemptive,e.tileUrlFunction_=a_,e.template_=void 0,e.jsonp_=t.jsonp||!1,t.url)if(e.jsonp_)l_(t.url,e.handleTileJSONResponse.bind(e),e.handleTileJSONError.bind(e));else{var n=new XMLHttpRequest;n.addEventListener("load",e.onXHRLoad_.bind(e)),n.addEventListener("error",e.onXHRError_.bind(e)),n.open("GET",t.url),n.send()}else t.tileJSON?e.handleTileJSONResponse(t.tileJSON):K(!1,51);return e}return Bw(t,i),t.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||200<=e.status&&e.status<300){var n=void 0;try{n=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(n)}else this.handleTileJSONError()},t.prototype.onXHRError_=function(t){this.handleTileJSONError()},t.prototype.getTemplate=function(){return this.template_},t.prototype.forDataAtCoordinateAndResolution=function(t,e,n,i){if(this.tileGrid){var r=this.tileGrid.getZForResolution(e,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,r);this.getTile(o[0],o[1],o[2],1,this.getProjection()).forDataAtCoordinate(t,n,i)}else!0===i?setTimeout(function(){n(null)},0):n(null)},t.prototype.handleTileJSONError=function(){this.setState(qt)},t.prototype.handleTileJSONResponse=function(e){var t,n=xn("EPSG:4326"),i=this.getProjection();if(void 0!==e.bounds){var r=Mn(n,i);t=Ye(e.bounds,r)}var o=e.minzoom||0,a=e.maxzoom||22,s=C_({extent:A_(i),maxZoom:a,minZoom:o});this.tileGrid=s,this.template_=e.template;var l=e.grids;if(l){if(this.tileUrlFunction_=r_(l,s),void 0!==e.attribution){var u=void 0!==t?t:n.getExtent();this.setAttributions(function(t){return Ze(u,t.extent)?[e.attribution]:null})}this.setState(Vt)}else this.setState(qt)},t.prototype.getTile=function(t,e,n,i,r){var o=t_(t,e,n);if(this.tileCache.containsKey(o))return this.tileCache.get(o);var a=[t,e,n],s=this.getTileCoordForTileUrlFunction(a,r),l=this.tileUrlFunction_(s,i,r),u=new Uw(a,void 0!==l?0:4,void 0!==l?l:"",this.tileGrid.getTileCoordExtent(a),this.preemptive_,this.jsonp_);return this.tileCache.set(o,u),u},t.prototype.useTile=function(t,e,n){var i=t_(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},t}(R_),Zw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xw=function(s){function t(t,e,n,i,r,o){var a=s.call(this,t,e,{transition:0})||this;return a.context_={},a.executorGroups={},a.loadingSourceTiles=0,a.errorSourceTileKeys={},a.hitDetectionImageData=null,a.replayState_={},a.wantedResolution,a.getSourceTiles=r.bind(a,a),a.removeSourceTiles_=o,a.sourceTileGrid_=i,a.sourceTileListenerKeys=[],a.sourceZ=-1,a.hifi=!1,a.wrappedTileCoord=n,a}return Zw(t,s),t.prototype.disposeInternal=function(){for(var t in this.sourceTileListenerKeys.forEach(_),this.sourceTileListenerKeys.length=0,this.removeSourceTiles_(this),this.context_){var e=this.context_[t].canvas;e.width=0,e.height=0}for(var t in this.executorGroups)for(var n=this.executorGroups[t],i=0,r=n.length;i<r;++i)n[i].disposeInternal();s.prototype.disposeInternal.call(this)},t.prototype.getContext=function(t){var e=dt(t);return e in this.context_||(this.context_[e]=xt()),this.context_[e]},t.prototype.hasContext=function(t){return dt(t)in this.context_},t.prototype.getImage=function(t){return this.hasContext(t)?this.getContext(t).canvas:null},t.prototype.getReplayState=function(t){var e=dt(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedZ:-1,renderedTileZ:-1}),this.replayState_[e]},t.prototype.load=function(){this.getSourceTiles()},t}(h_),Hw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yw=function(s){function t(t,e,n,i,r,o){var a=s.call(this,t,e,o)||this;return a.consumers=0,a.extent=null,a.format_=i,a.features_=null,a.loader_,a.projection=null,a.resolution,a.tileLoadFunction_=r,a.url_=n,a}return Hw(t,s),t.prototype.getFormat=function(){return this.format_},t.prototype.getFeatures=function(){return this.features_},t.prototype.getKey=function(){return this.url_},t.prototype.load=function(){0==this.state&&(this.setState(1),this.tileLoadFunction_(this,this.url_),this.loader_(this.extent,this.resolution,this.projection))},t.prototype.onLoad=function(t,e){this.setFeatures(t)},t.prototype.onError=function(){this.setState(3)},t.prototype.setFeatures=function(t){this.features_=t,this.setState(2)},t.prototype.setLoader=function(t){this.loader_=t},t}(h_),Kw=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),Jw=function(o){function t(t){var e=this,n=t.projection||"EPSG:3857",i=t.extent||A_(n),r=t.tileGrid||C_({extent:i,maxZoom:void 0!==t.maxZoom?t.maxZoom:22,minZoom:t.minZoom,tileSize:t.tileSize||512});return(e=o.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,opaque:!1,projection:n,state:t.state,tileGrid:r,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:Qw,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:void 0===t.zDirection?1:t.zDirection})||this).format_=t.format?t.format:null,e.loadingTiles_={},e.sourceTileByCoordKey_={},e.sourceTilesByTileKey_={},e.overlaps_=null==t.overlaps||t.overlaps,e.tileClass=t.tileClass?t.tileClass:Yw,e.tileGrids_={},e}return Kw(t,o),t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.clear=function(){this.tileCache.clear(),this.sourceTileByCoordKey_={},this.sourceTilesByTileKey_={}},t.prototype.getSourceTiles=function(r,o,l){var t=l.wrappedTileCoord,e=this.getTileGridForProjection(o),n=e.getTileCoordExtent(t),i=t[0],a=e.getResolution(i);xe(n,-a,n);var u=this.tileGrid,s=u.getExtent();s&&qe(n,s,n);var h,c,p,f=u.getZForResolution(a,1),d=u.getMinZoom(),y=this.sourceTilesByTileKey_[l.getKey()];if(y&&0<y.length&&y[0].tileCoord[0]===f)h=y,c=!0,p=f;else for(h=[],p=f+1;--p,c=!0,u.forEachTileCoord(n,p,function(t){var a,e=e_(t);if(e in this.sourceTileByCoordKey_){var n=(a=this.sourceTileByCoordKey_[e]).getState();if(2===n||3===n||4===n)return void h.push(a)}else if(p===f){var i=this.tileUrlFunction(t,r,o);void 0!==i&&((a=new this.tileClass(t,0,i,this.format_,this.tileLoadFunction)).extent=u.getTileCoordExtent(t),a.projection=o,a.resolution=u.getResolution(t[0]),(this.sourceTileByCoordKey_[e]=a).addEventListener(R,this.handleTileChange.bind(this)),a.load())}if(c=!1,a&&4!==a.getState()&&0===l.getState()){l.loadingSourceTiles++;var s=x(a,R,function(){var t,e,n,i=a.getState(),r=a.getKey();if(2===i||3===i){2===i?(t=l.sourceTileListenerKeys,e=s,-1<(n=t.indexOf(e))&&t.splice(n,1),_(s),l.loadingSourceTiles--,delete l.errorSourceTileKeys[r]):3===i&&(l.errorSourceTileKeys[r]=!0);var o=Object.keys(l.errorSourceTileKeys).length;l.loadingSourceTiles-o==0&&(l.hifi=0===o,l.sourceZ=f,l.setState(2))}});l.sourceTileListenerKeys.push(s)}}.bind(this)),c||(h.length=0),!c&&d<p;);return 0===l.getState()&&l.setState(1),c&&(l.hifi=f===p,l.sourceZ=p,l.getState()<2?l.setState(2):y&&kt(h,y)||(this.removeSourceTiles(l),this.addSourceTiles(l,h))),h},t.prototype.addSourceTiles=function(t,e){this.sourceTilesByTileKey_[t.getKey()]=e;for(var n=0,i=e.length;n<i;++n)e[n].consumers++},t.prototype.removeSourceTiles=function(t){var e=t.getKey();if(e in this.sourceTilesByTileKey_)for(var n=this.sourceTilesByTileKey_[e],i=0,r=n.length;i<r;++i){var o=n[i];o.consumers--,0===o.consumers&&(o.dispose(),delete this.sourceTileByCoordKey_[e_(o.tileCoord)])}delete this.sourceTilesByTileKey_[e]},t.prototype.getTile=function(t,e,n,i,r){var o,a=t_(t,e,n),s=this.getKey();if(this.tileCache.containsKey(a)&&(o=this.tileCache.get(a)).key===s)return o;var l=[t,e,n],u=this.getTileCoordForTileUrlFunction(l,r),h=this.getTileGrid().getExtent(),c=this.getTileGridForProjection(r);if(u&&h){var p=c.getTileCoordExtent(u);xe(p,-c.getResolution(t),p),Ze(h,p)||(u=null)}var f=!0;if(null!==u){var d=this.tileGrid,y=c.getResolution(t),m=d.getZForResolution(y,1),g=c.getTileCoordExtent(u);xe(g,-y,g),d.forEachTileCoord(g,m,function(t){f=f&&!this.tileUrlFunction(t,i,r)}.bind(this))}var v=new Xw(l,f?4:0,u,this.tileGrid,this.getSourceTiles.bind(this,i,r),this.removeSourceTiles.bind(this));return v.key=s,o?(v.interimTile=o,v.refreshInterimChain(),this.tileCache.replace(a,v)):this.tileCache.set(a,v),v},t.prototype.getTileGridForProjection=function(t){var e=t.getCode(),n=this.tileGrids_[e];if(!n){var i=this.tileGrid;n=T_(t,void 0,i?i.getTileSize(i.getMinZoom()):void 0),this.tileGrids_[e]=n}return n},t.prototype.getTilePixelRatio=function(t){return t},t.prototype.getTilePixelSize=function(t,e,n){var i=to(this.getTileGridForProjection(n).getTileSize(t),this.tmpSize);return[Math.round(i[0]*e),Math.round(i[1]*e)]},t}(N_);function Qw(t,e){var n=Ya(e,t.getFormat(),t.onLoad.bind(t),t.onError.bind(t));t.setLoader(n)}var $w="KVP",tb=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),eb=function(n){function t(t){var e=n.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return e.matrixIds_=t.matrixIds,e}return tb(t,n),t.prototype.getMatrixId=function(t){return this.matrixIds_[t]},t.prototype.getMatrixIds=function(){return this.matrixIds_},t}(P_),nb=eb;function ib(r,t,e){var o=[],a=[],s=[],l=[],u=[],h=void 0!==e?e:[],n=r.SupportedCRS,i=xn(n.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||xn(n),c=i.getMetersPerUnit(),p="ne"==i.getAxisOrientation().substr(0,2);return r.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),r.TileMatrix.forEach(function(e){if(!(0<h.length)||T(h,function(t){return e.Identifier==t.TileMatrix||-1===e.Identifier.indexOf(":")&&r.Identifier+":"+e.Identifier===t.TileMatrix})){a.push(e.Identifier);var t=28e-5*e.ScaleDenominator/c,n=e.TileWidth,i=e.TileHeight;p?s.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):s.push(e.TopLeftCorner),o.push(t),l.push(n==i?n:[n,i]),u.push([e.MatrixWidth,e.MatrixHeight])}}),new eb({extent:t,origins:s,resolutions:o,matrixIds:a,tileSizes:l,sizes:u})}var rb=function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),ob=function(o){function t(t){var e=this,n=void 0!==t.requestEncoding?t.requestEncoding:$w,i=t.tileGrid,r=t.urls;return void 0===r&&void 0!==t.url&&(r=s_(t.url)),(e=o.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:a_,urls:r,wrapX:void 0!==t.wrapX&&t.wrapX,transition:t.transition})||this).version_=void 0!==t.version?t.version:"1.0.0",e.format_=void 0!==t.format?t.format:"image/jpeg",e.dimensions_=void 0!==t.dimensions?t.dimensions:{},e.layer_=t.layer,e.matrixSet_=t.matrixSet,e.style_=t.style,e.requestEncoding_=n,e.setKey(e.getKeyForDimensions_()),r&&0<r.length&&(e.tileUrlFunction=o_(r.map(ab.bind(e)))),e}return rb(t,o),t.prototype.setUrls=function(t){var e=(this.urls=t).join("\n");this.setTileUrlFunction(o_(t.map(ab.bind(this))),e)},t.prototype.getDimensions=function(){return this.dimensions_},t.prototype.getFormat=function(){return this.format_},t.prototype.getLayer=function(){return this.layer_},t.prototype.getMatrixSet=function(){return this.matrixSet_},t.prototype.getRequestEncoding=function(){return this.requestEncoding_},t.prototype.getStyle=function(){return this.style_},t.prototype.getVersion=function(){return this.version_},t.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var n in this.dimensions_)e[t++]=n+"-"+this.dimensions_[n];return e.join("/")},t.prototype.updateDimensions=function(t){v(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},t}(D_);function ab(o){var a=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};a==$w&&v(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),o=a==$w?rw(o,n):o.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in n?n[e.toLowerCase()]:t});var s=this.tileGrid,l=this.dimensions_;return function(t,e,n){if(t){var i={TileMatrix:s.getMatrixId(t[0]),TileCol:t[1],TileRow:t[2]};v(i,l);var r=o;return r=a==$w?rw(r,i):r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}}}var sb={array:{},color:{},colorlike:{},control:{},coordinate:{},easing:{},events:{}};sb.events.condition={},sb.extent={},sb.featureloader={},sb.format={},sb.format.filter={},sb.geom={},sb.has={},sb.interaction={},sb.layer={},sb.loadingstrategy={},sb.proj={},sb.proj.Units={},sb.proj.proj4={},sb.render={},sb.render.canvas={},sb.renderer={},sb.renderer.canvas={},sb.renderer.webgl={},sb.renderer.vector={},sb.size={},sb.source={},sb.sphere={},sb.style={},sb.style.IconImageCache={},sb.tilegrid={},sb.util={},sb.webgl={},sb.xml={},sb.Collection=Y,sb.Feature=Ba,sb.Geolocation=Oy,sb.Kinetic=dv,sb.Map=Qx,sb.Object=Z,sb.Observable=j,sb.Observable.unByKey=function(t){if(Array.isArray(t))for(var e=0,n=t.length;e<n;++e)_(t[e]);else _(t)},sb.Overlay=ua,sb.PluggableMap=io,sb.View=Hr,sb.array.stableSort=function(t,n){var e,i=t.length,r=Array(t.length);for(e=0;e<i;e++)r[e]={index:e,value:t[e]};for(r.sort(function(t,e){return n(t.value,e.value)||t.index-e.index}),e=0;e<t.length;e++)t[e]=r[e].value},sb.color.asArray=pt,sb.color.asString=st,sb.colorlike.asColorLike=gt,sb.control.Attribution=Ht,sb.control.Attribution.render=Xt,sb.control.Control=St,sb.control.FullScreen=te,sb.control.MousePosition=Vn,sb.control.MousePosition.render=jn,sb.control.OverviewMap=fa,sb.control.OverviewMap.render=pa,sb.control.Rotate=ma,sb.control.Rotate.render=ya,sb.control.ScaleLine=wa,sb.control.ScaleLine.render=_a,sb.control.Zoom=Pa,sb.control.ZoomSlider=Ma,sb.control.ZoomSlider.render=Ca,sb.control.ZoomToExtent=Aa,sb.control.defaults=Ea,sb.coordinate.add=bi,sb.coordinate.createStringXY=function(e){return function(t){return Ri(t,e)}},sb.coordinate.format=Ci,sb.coordinate.rotate=Ti,sb.coordinate.toStringHDMS=function(t,e){return t?Si("NS",t[1],e)+" "+Si("EW",t[0],e):""},sb.coordinate.toStringXY=Ri,sb.easing.easeIn=Oi,sb.easing.easeOut=Ni,sb.easing.inAndOut=ki,sb.easing.linear=zi,sb.easing.upAndDown=function(t){return t<.5?ki(2*t):1-ki(2*(t-.5))},sb.events.condition.altKeyOnly=Ia,sb.events.condition.altShiftKeysOnly=La,sb.events.condition.always=Oa,sb.events.condition.click=function(t){return t.type==Qn.CLICK},sb.events.condition.doubleClick=function(t){return t.type==Qn.DBLCLICK},sb.events.condition.focus=Ra,sb.events.condition.mouseOnly=ja,sb.events.condition.never=ka,sb.events.condition.noModifierKeys=Da,sb.events.condition.penOnly=function(t){var e=t.pointerEvent;return K(void 0!==e,56),"pen"===e.pointerType},sb.events.condition.platformModifierKeyOnly=function(t){var e=t.originalEvent;return!e.altKey&&(Yn?e.metaKey:e.ctrlKey)&&!e.shiftKey},sb.events.condition.pointerMove=function(t){return"pointermove"==t.type},sb.events.condition.primaryAction=Va,sb.events.condition.shiftKeyOnly=Fa,sb.events.condition.singleClick=za,sb.events.condition.targetNotEditable=Ga,sb.events.condition.touchOnly=function(t){var e=t.pointerEvent;return K(void 0!==e,56),"touch"===e.pointerType},sb.extent.applyTransform=Ye,sb.extent.boundingExtent=ve,sb.extent.buffer=xe,sb.extent.containsCoordinate=be,sb.extent.containsExtent=Pe,sb.extent.containsXY=Se,sb.extent.createEmpty=Me,sb.extent.equals=Le,sb.extent.extend=Re,sb.extent.getArea=ze,sb.extent.getBottomLeft=De,sb.extent.getBottomRight=Fe,sb.extent.getCenter=Ge,sb.extent.getHeight=Ve,sb.extent.getIntersection=qe,sb.extent.getSize=function(t){return[t[2]-t[0],t[3]-t[1]]},sb.extent.getTopLeft=Be,sb.extent.getTopRight=Ue,sb.extent.getWidth=We,sb.extent.intersects=Ze,sb.extent.isEmpty=Xe,sb.featureloader.setWithCredentials=function(t){Ha=t},sb.featureloader.xhr=Ka,sb.format.EsriJSON=bs,sb.format.Feature=Ja,sb.format.GML=pu,sb.format.GML2=mu,sb.format.GML3=hu,sb.format.GML32=xu,sb.format.GPX=eh,sb.format.GeoJSON=_l,sb.format.IGC=ch,sb.format.IIIFInfo=_h,sb.format.KML=Hp,sb.format.MVT=af,sb.format.OSMXML=df,sb.format.Polyline=bf,sb.format.Polyline.decodeDeltas=vf,sb.format.Polyline.decodeFloats=_f,sb.format.Polyline.encodeDeltas=gf,sb.format.Polyline.encodeFloats=xf,sb.format.TopoJSON=Lf,sb.format.WFS=ed,sb.format.WFS.writeFilter=function(t){var e=Pl(Gf,"Filter");return Hf(e,t,[]),e},sb.format.WKT=dd,sb.format.WMSCapabilities=Vd,sb.format.WMSGetFeatureInfo=Bd,sb.format.WMTSCapabilities=Sy,sb.format.filter.Bbox=Cs,sb.format.filter.Contains=Es,sb.format.filter.During=Os,sb.format.filter.EqualTo=Ds,sb.format.filter.GreaterThan=Gs,sb.format.filter.GreaterThanOrEqualTo=Vs,sb.format.filter.Intersects=Bs,sb.format.filter.IsBetween=Ws,sb.format.filter.IsLike=Xs,sb.format.filter.IsNull=Ys,sb.format.filter.LessThan=Js,sb.format.filter.LessThanOrEqualTo=$s,sb.format.filter.Not=el,sb.format.filter.NotEqualTo=il,sb.format.filter.Or=sl,sb.format.filter.Within=ul,sb.format.filter.and=pl,sb.format.filter.bbox=fl,sb.format.filter.between=function(t,e,n){return new Ws(t,e,n)},sb.format.filter.contains=function(t,e,n){return new Es(t,e,n)},sb.format.filter.during=function(t,e,n){return new Os(t,e,n)},sb.format.filter.equalTo=function(t,e,n){return new Ds(t,e,n)},sb.format.filter.greaterThan=function(t,e){return new Gs(t,e)},sb.format.filter.greaterThanOrEqualTo=function(t,e){return new Vs(t,e)},sb.format.filter.intersects=function(t,e,n){return new Bs(t,e,n)},sb.format.filter.isNull=function(t){return new Ys(t)},sb.format.filter.lessThan=function(t,e){return new Js(t,e)},sb.format.filter.lessThanOrEqualTo=function(t,e){return new $s(t,e)},sb.format.filter.like=function(t,e,n,i,r,o){return new Xs(t,e,n,i,r,o)},sb.format.filter.not=function(t){return new el(t)},sb.format.filter.notEqualTo=function(t,e,n){return new il(t,e,n)},sb.format.filter.or=function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(sl,e))},sb.format.filter.within=function(t,e,n){return new ul(t,e,n)},sb.geom.Circle=zy,sb.geom.Geometry=er,sb.geom.GeometryCollection=ml,sb.geom.LineString=ss,sb.geom.LinearRing=Pr,sb.geom.MultiLineString=us,sb.geom.MultiPoint=cs,sb.geom.MultiPolygon=ds,sb.geom.Point=Cr,sb.geom.Polygon=Vr,sb.geom.Polygon.circular=qr,sb.geom.Polygon.fromCircle=Ur,sb.geom.Polygon.fromExtent=Br,sb.geom.SimpleGeometry=rr,sb.has.DEVICE_PIXEL_RATIO=Kn,sb.interaction.DoubleClickZoom=By,sb.interaction.DragAndDrop=Hy,sb.interaction.DragBox=nm,sb.interaction.DragPan=om,sb.interaction.DragRotate=sm,sb.interaction.DragRotateAndZoom=um,sb.interaction.DragZoom=pm,sb.interaction.Draw=Mg,sb.interaction.Draw.createBox=function(){return function(t,e){var n=ve(t),i=[[De(n),Fe(n),Ue(n),Be(n),De(n)]],r=e;return r?r.setCoordinates(i):r=new Vr(i),r}},sb.interaction.Draw.createRegularPolygon=function(u,h){return function(t,e){var n=t[0],i=t[1],r=Math.sqrt(Ei(n,i)),o=e||Ur(new zy(n),u),a=h;if(!h){var s=i[0]-n[0],l=i[1]-n[1];a=Math.atan(l/s)-(s<0?Math.PI:0)}return Wr(o,n,r,a),o}},sb.interaction.Extent=Lg,sb.interaction.Interaction=jy,sb.interaction.KeyboardPan=Fg,sb.interaction.KeyboardZoom=Vg,sb.interaction.Modify=Yg,sb.interaction.MouseWheelZoom=Jg,sb.interaction.PinchRotate=$g,sb.interaction.PinchZoom=ev,sb.interaction.Pointer=Jy,sb.interaction.Select=av,sb.interaction.Snap=hv,sb.interaction.Translate=fv,sb.interaction.defaults=yv,sb.layer.Base=zt,sb.layer.BaseImage=gv,sb.layer.BaseTile=wv,sb.layer.BaseVector=ym,sb.layer.Graticule=Tv,sb.layer.Group=Jr,sb.layer.Heatmap=nx,sb.layer.Image=ax,sb.layer.Layer=Wt,sb.layer.Tile=dx,sb.layer.Vector=lg,sb.layer.VectorImage=_x,sb.layer.VectorTile=Mx,sb.layer.WebGLPoints=Kx,sb.loadingstrategy.all=ug,sb.loadingstrategy.bbox=hg,sb.loadingstrategy.tile=function(a){return function(t,e){var n=a.getZForResolution(e),i=a.getTileRangeForExtentAndZ(t,n),r=[],o=[n,0,0];for(o[1]=i.minX;o[1]<=i.maxX;++o[1])for(o[2]=i.minY;o[2]<=i.maxY;++o[2])r.push(a.getTileCoordExtent(o));return r}},sb.proj.Projection=$e,sb.proj.Units.METERS_PER_UNIT=Je,sb.proj.addCoordinateTransforms=Sn,sb.proj.addEquivalentProjections=wn,sb.proj.addProjection=vn,sb.proj.equivalent=Cn,sb.proj.fromLonLat=function(t,e){return An(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")},sb.proj.get=xn,sb.proj.getPointResolution=_n,sb.proj.getTransform=Tn,sb.proj.proj4.register=function(t){var e,n,i=Object.keys(t.defs),r=i.length;for(e=0;e<r;++e){var o=i[e];if(!xn(o)){var a=t.defs(o);vn(new $e({code:o,axisOrientation:a.axis,metersPerUnit:a.to_meter,units:a.units}))}}for(e=0;e<r;++e){var s=i[e],l=xn(s);for(n=0;n<r;++n){var u=i[n],h=xn(u);if(!dn(s,u))if(t.defs[s]===t.defs[u])wn([l,h]);else{var c=t(s,u);Sn(l,h,c.forward,c.inverse)}}}},sb.proj.toLonLat=function(t,e){var n=An(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),i=n[0];return(i<-180||180<i)&&(n[0]=it(i+180,360)-180),n},sb.proj.transform=An,sb.proj.transformExtent=En,sb.render.VectorContext=ho,sb.render.canvas.labelCache=vo,sb.render.BuilderGroup=Nm,sb.render.ExecutorGroup=Qm,sb.render.ExecutorGroup.replayDeclutter=Jm,sb.render.getRenderPixel=function(t,e){var n=e.slice(0);return Hi(t.inversePixelTransform.slice(),n),n},sb.render.getVectorContext=function(t){var e,n=t.frameState,i=Zi(t.inversePixelTransform.slice(),n.coordinateToPixelTransform),r=Wo(n.viewState.resolution,n.pixelRatio),o=Nn();return o&&(e=Mn(o,n.viewState.projection)),new Oo(t.context,n.pixelRatio,n.extent,i,n.viewState.rotation,r,e)},sb.render.toContext=function(t,e){var n=t.canvas,i=e||{},r=i.pixelRatio||Kn,o=i.size;o&&(n.width=o[0]*r,n.height=o[1]*r,n.style.width=o[0]+"px",n.style.height=o[1]+"px");var a=[0,0,n.width,n.height],s=Yi([1,0,0,1,0,0],r,r);return new Oo(t,r,a,s,0)},sb.renderer.vector.getSquaredTolerance=Wo,sb.renderer.vector.renderFeature=Xo,sb.renderer.Composite=$o,sb.renderer.canvas.ImageLayer=rx,sb.renderer.canvas.TileLayer=px,sb.renderer.canvas.VectorImageLayer=vx,sb.renderer.canvas.VectorLayer=ag,sb.renderer.canvas.VectorTileLayer=Sx,sb.renderer.webgl.PointsLayer=Kv,sb.size.toSize=to,sb.source.BingMaps=G_,sb.source.CartoDB=B_,sb.source.Cluster=W_,sb.source.IIIF=J_,sb.source.Image=iw,sb.source.ImageArcGISRest=aw,sb.source.ImageCanvas=lw,sb.source.ImageMapGuide=hw,sb.source.ImageStatic=pw,sb.source.ImageWMS=mw,sb.source.OSM=xw,sb.source.OSM.ATTRIBUTION=vw,sb.source.Raster=Mw,sb.source.Source=fg,sb.source.Stamen=Lw,sb.source.Tile=R_,sb.source.TileArcGISRest=Nw,sb.source.TileDebug=Dw,sb.source.TileImage=D_,sb.source.TileJSON=Gw,sb.source.TileWMS=qw,sb.source.UTFGrid=Ww,sb.source.Vector=_g,sb.source.VectorTile=Jw,sb.source.WMTS=ob,sb.source.WMTS.optionsFromCapabilities=function(t,a){var e=T(t.Contents.Layer,function(t,e,n){return t.Identifier==a.layer});if(null===e)return null;var n,s=t.Contents.TileMatrixSet;(n=1<e.TileMatrixSetLink.length?A(e.TileMatrixSetLink,"projection"in a?function(e,t,n){var i=T(s,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS,r=xn(i.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||xn(i),o=xn(a.projection);return r&&o?Cn(r,o):i==a.projection}:function(t,e,n){return t.TileMatrixSet==a.matrixSet}):0)<0&&(n=0);var i=e.TileMatrixSetLink[n].TileMatrixSet,r=e.TileMatrixSetLink[n].TileMatrixSetLimits,o=e.Format[0];"format"in a&&(o=a.format),(n=A(e.Style,function(t,e,n){return"style"in a?t.Title==a.style:t.isDefault}))<0&&(n=0);var l=e.Style[n].Identifier,u={};"Dimension"in e&&e.Dimension.forEach(function(t,e,n){var i=t.Identifier,r=t.Default;void 0===r&&(r=t.Value[0]),u[i]=r});var h,c=T(t.Contents.TileMatrixSet,function(t,e,n){return t.Identifier==i}),p=c.SupportedCRS;if(p&&(h=xn(p.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||xn(p)),"projection"in a){var f=xn(a.projection);f&&(h&&!Cn(f,h)||(h=f))}var d,y,m=e.WGS84BoundingBox;if(void 0!==m){var g=xn("EPSG:4326").getExtent();y=m[0]==g[0]&&m[2]==g[2],d=En(m,"EPSG:4326",h);var v=h.getExtent();v&&(Pe(v,d)||(d=void 0))}var x=ib(c,d,r),_=[],w=a.requestEncoding;if(w=void 0!==w?w:"","OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(var b=t.OperationsMetadata.GetTile.DCP.HTTP.Get,P=0,S=b.length;P<S;++P)if(b[P].Constraint){var C=T(b[P].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if(""===w&&(w=C[0]),w!==$w)break;M(C,$w)&&_.push(b[P].href)}else b[P].href&&(w=$w,_.push(b[P].href));return 0===_.length&&(w="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(o=t.format,_.push(t.template))})),{urls:_,layer:a.layer,matrixSet:i,format:o,projection:h,requestEncoding:w,tileGrid:x,style:l,dimensions:u,wrapX:y,crossOrigin:a.crossOrigin}},sb.source.XYZ=V_,sb.source.Zoomify=H_,sb.sphere.getArea=function t(e,n){var i=n||{},r=i.radius||6371008.8,o=i.projection||"EPSG:3857",a=e.getType();a!==re.GEOMETRY_COLLECTION&&(e=e.clone().transform(o,"EPSG:4326"));var s,l,u,h,c,p,f=0;switch(a){case re.POINT:case re.MULTI_POINT:case re.LINE_STRING:case re.MULTI_LINE_STRING:case re.LINEAR_RING:break;case re.POLYGON:for(s=e.getCoordinates(),f=Math.abs(se(s[0],r)),u=1,h=s.length;u<h;++u)f-=Math.abs(se(s[u],r));break;case re.MULTI_POLYGON:for(u=0,h=(s=e.getCoordinates()).length;u<h;++u)for(l=s[u],f+=Math.abs(se(l[0],r)),c=1,p=l.length;c<p;++c)f-=Math.abs(se(l[c],r));break;case re.GEOMETRY_COLLECTION:var d=e.getGeometries();for(u=0,h=d.length;u<h;++u)f+=t(d[u],n);break;default:throw new Error("Unsupported geometry type: "+a)}return f},sb.sphere.getDistance=oe,sb.sphere.getLength=function t(e,n){var i=n||{},r=i.radius||6371008.8,o=i.projection||"EPSG:3857",a=e.getType();a!==re.GEOMETRY_COLLECTION&&(e=e.clone().transform(o,"EPSG:4326"));var s,l,u,h,c,p,f=0;switch(a){case re.POINT:case re.MULTI_POINT:break;case re.LINE_STRING:case re.LINEAR_RING:f=ae(s=e.getCoordinates(),r);break;case re.MULTI_LINE_STRING:case re.POLYGON:for(u=0,h=(s=e.getCoordinates()).length;u<h;++u)f+=ae(s[u],r);break;case re.MULTI_POLYGON:for(u=0,h=(s=e.getCoordinates()).length;u<h;++u)for(c=0,p=(l=s[u]).length;c<p;++c)f+=ae(l[c],r);break;case re.GEOMETRY_COLLECTION:var d=e.getGeometries();for(u=0,h=d.length;u<h;++u)f+=t(d[u],n);break;default:throw new Error("Unsupported geometry type: "+a)}return f},sb.style.Circle=qh,sb.style.Fill=wh,sb.style.Icon=Dh,sb.style.IconImageCache.shared=uo,sb.style.Image=kh,sb.style.RegularShape=jh,sb.style.Stroke=Fh,sb.style.Style=ic,sb.style.Text=rc,sb.tilegrid.TileGrid=P_,sb.tilegrid.WMTS=nb,sb.tilegrid.WMTS.createFromCapabilitiesMatrixSet=ib,sb.tilegrid.createXYZ=C_,sb.util.getUid=dt,sb.webgl.ARRAY_BUFFER=34962,sb.webgl.Buffer=Lv,sb.webgl.DYNAMIC_DRAW=35048,sb.webgl.ELEMENT_ARRAY_BUFFER=34963,sb.webgl.Helper=jv,sb.webgl.Helper.computeAttributesStride=Fv,sb.webgl.PostProcessingPass=kv,sb.webgl.RenderTarget=Hv,sb.webgl.STATIC_DRAW=35044,sb.webgl.STREAM_DRAW=35040,sb.xml.getAllTextContent=Sl,sb.xml.parse=Ml,e.default=sb}]).default},function(t,e,n){var i;void 0===(i=function(t,e,n){var i=function(){try{return"x"in Object.defineProperty({},"x",{})}catch(t){return!1}}();var r=Object.defineProperties;return i&&null!=r||(r=function(t){return t}),n.exports=r}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.None=0,i.TileLayer=1,i.VectorLayer=2,i.FeatureLayer=3,i.ElementLayer=4,i.CanvasLayer=5,i.HeatMapLayer=6,i.ImageLayer=7,i.ClusterLayer=8,i.FeatureRenderLayer=11,i.ElementLayer3D=12,i.FeatureLayer3D=13,i.VectorTileLayer=14,i.FeatureClusterLayer3D=15,i.TraficLayer=16,i.TianDiTuLayer=17,i.WeaRadarLayer=18,i.WindLayer=19,i.WeaRadarImageLayer=20,i.WeaRadarFeatureLayer=21,i.TerrainLayer=30,i.ModelLayer=31,i.BuildingLayer=32,i.BIMLayer=33,i.ContourLayer=34,i.PipleLayer=35,i.ParticleLayer=36,i.AspectLayer=37,i.SlopeLayer=38,i.PointsLayer=39,i.WindLayer3D=40,i.GridLayer=81,i.HoneyCombLayer=82,i.GroupLayer=99,i.PatternLayer=100,i.LeadLabelLayer=101,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.$type="ServiceInput,http://www.Gs.com"}return i.prototype.getUrlTemplate=function(t){var e="",n=t||this;for(var i in n)"$type"!==i&&n.hasOwnProperty(i)&&void 0!==n[i]&&("object"==typeof n[i]||n[i]instanceof Array?e+="&"+i+"="+encodeURIComponent(JSON.stringify(n[i])):e+="&"+i+"="+encodeURIComponent(n[i]));return e=e.substr(1)},i.prototype.getVectorDataUrlTemplate=function(t){var e="",n=t||this;for(var i in n)"$type"!==i&&n.hasOwnProperty(i)&&void 0!==n[i]&&("object"==typeof n[i]||n[i]instanceof Array?e+="&"+i.toLocaleUpperCase()+"="+encodeURIComponent(JSON.stringify(n[i])):e+="&"+i.toLocaleUpperCase()+"="+encodeURIComponent(n[i]));return e=e.substr(1)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,a){var n,i;n=[a(0),a(8),a(22),a,e,t],void 0===(i=function(t,e,n,i,r,o){function h(t){n.call(this,t),t?(this.minx=t.minx,this.maxx=t.maxx,this.miny=t.miny,this.maxy=t.maxy,this.minz=t.minz||0,this.maxz=t.maxz||0,this.demision=t.demision||2):(this.minx=this.miny=this.minz=Number.MAX_VALUE,this.maxy=this.maxy=this.maxz=-Number.MAX_VALUE,this.demision=2),this.$type="Envelope,http://www.Gs.com"}return t.extend2(h,n),h.prototype.getGeometryType=function(){return e.Envelope},h.prototype.envelope=function(){return this},h.prototype.copy=function(){return new h(this)},h.prototype.getCoordinates=function(){return this.minx+","+this.miny+";"+this.maxx+","+this.maxy},h.prototype.fromCoordinates=function(t){return this.minx=t[0].lng,this.miny=t[0].lat,this.maxx=t[1].lng,this.maxy=t[1].lat,this},h.prototype.normalize=function(){if(2===this.demision){var t=this.minx,e=this.maxx,n=this.miny,i=this.maxy,r=this.minz,o=this.maxz;this.minx=Math.min(t,e),this.maxx=Math.max(t,e),this.miny=Math.min(n,i),this.maxy=Math.max(n,i),this.minz=Math.min(r,o),this.maxz=Math.max(r,o)}},h.prototype.offset=function(t){this.minx+=t.x,this.maxx+=t.x,this.miny+=t.y,this.maxy+=t.y,this.minz+=t.z,this.maxz+=t.z},h.prototype.expand=function(t){t=t||0;var e=this.width()*t,n=this.height()*t,i=this.depth()*t,r=this.minx-e,o=this.maxx+e,a=this.miny-n,s=this.maxy+n,l=this.minz-i,u=this.maxz+i;return new h({minx:r,maxx:o,miny:a,maxy:s,minz:l,maxz:u,spatialReference:this.spatialReference})},h.prototype.center=function(){return new(a(1))({x:(this.minx+this.maxx)/2,y:(this.miny+this.maxy)/2,z:(this.minz+this.maxz)/2,spatialReference:this.spatialReference})},h.prototype.width=function(){return this.maxx-this.minx},h.prototype.depth=function(){return this.maxz-this.minz},h.prototype.height=function(){return this.maxy-this.miny},h.prototype.union=function(t){return isNaN(this.minx)&&(this.minx=Number.MAX_VALUE),isNaN(this.miny)&&(this.miny=Number.MAX_VALUE),isNaN(this.minz)&&(this.minz=Number.MAX_VALUE),isNaN(this.maxx)&&(this.maxx=-Number.MAX_VALUE),isNaN(this.maxy)&&(this.maxy=-Number.MAX_VALUE),isNaN(this.maxz)&&(this.maxz=-Number.MAX_VALUE),this.minx=this.minx>t.minx?t.minx:this.minx,this.miny=this.miny>t.miny?t.miny:this.miny,this.minz=this.minz>t.minz?t.minz:this.minz,this.maxx=this.maxx>t.maxx?this.maxx:t.maxx,this.maxy=this.maxy>t.maxy?this.maxy:t.maxy,this.maxz=this.maxz>t.maxz?this.maxz:t.maxz,this.spatialReference=t.spatialReference,this},h.prototype.intersect=function(t){return isNaN(this.minx)&&(this.minx=Number.MAX_VALUE),isNaN(this.miny)&&(this.miny=Number.MAX_VALUE),isNaN(this.minz)&&(this.minz=Number.MAX_VALUE),isNaN(this.maxx)&&(this.maxx=-Number.MAX_VALUE),isNaN(this.maxy)&&(this.maxy=-Number.MAX_VALUE),isNaN(this.maxz)&&(this.maxz=-Number.MAX_VALUE),new h({minx:this.minx>t.minx?this.minx:t.minx,miny:this.miny>t.miny?this.miny:t.miny,minz:this.minz>t.minz?this.minz:t.minz,maxx:this.maxx>t.maxx?t.maxx:this.maxx,maxy:(this.maxy,t.maxy,t.maxy),maxz:this.maxz>t.maxz?t.maxz:this.maxz,spatialReference:this.spatialReference})},h.prototype.asWkt=function(t){var e=[],n=this;e.push({x:n.minx,y:n.miny}),e.push({x:n.minx,y:n.maxy}),e.push({x:n.maxx,y:n.maxy}),e.push({x:n.maxx,y:n.miny}),e.push({x:n.minx,y:n.miny});var i=n.points2WKT(e,t);return"polygon({0})".replace("{0}",i)},h.prototype.grid=function(t,e,n){var i=this.width(),r=this.height(),o=this.depth();t=t||i,e=e||r,n=n||o;var a,s,l,u,h=Math.ceil(i/t),c=Math.ceil(r/e),p=Math.ceil(o/n),f=new Map,d=this.minz,y=this.minz+n,m=this.constructor;h!=h&&(h=1),c!=c&&(c=1),p!=p&&(p=1);for(var g=0;g<p;g++){a=this.minx,s=this.minx+t,l=this.miny,u=this.miny+e,y=g===p-1?this.maxz:d+n;for(var v=0;v<c;v++){a=this.minx,s=this.minx+t,u=v===c-1?this.maxy:l+e;for(var x=0;x<h;x++){var _=new m({minx:a,maxx:s=x===h-1?this.maxx:a+t,miny:l,maxy:u,minz:d,maxz:y,demision:this.demision});a=s;var w=x+"/"+v+"/"+g;f.set(w,_)}l=u}d=y}return f},h.prototype.asGeoJson=function(t){var e={type:"Polygon",coordinates:[]},n=[];return t?(n.push([parseFloat(this.minx.toFixed(t)),parseFloat(this.miny.toFixed(t))]),n.push([parseFloat(this.minx.toFixed(t)),parseFloat(this.maxy.toFixed(t))]),n.push([parseFloat(this.maxx.toFixed(t)),parseFloat(this.maxy.toFixed(t))]),n.push([parseFloat(this.maxx.toFixed(t)),parseFloat(this.miny.toFixed(t))]),n.push([parseFloat(this.minx.toFixed(t)),parseFloat(this.miny.toFixed(t))])):(n.push([this.minx,this.miny]),n.push([this.minx,this.maxy]),n.push([this.maxx,this.maxy]),n.push([this.maxx,this.miny]),n.push([this.minx,this.miny])),e.coordinates.push(n),e},o.exports=h}.apply(e,n))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.Vector=1,i.Tile=2,i.Image=3,i.Terrain=4,i.Contour=5,i.TileImage=201,i.TileWMS=202,i.WMTS=203,i.BaiduMap=204,i.BingMaps=205,i.VectorTile=206,i.XYZ=207,i.Google=208,i.SuperMap=209,i.OSM=210,i.ArcGISRest=211,i.Tianditu=212,i.Tile3D=213,i.WDMS=214,i.WPMS=215,i.Offline=216,i.ImageWMS=301,i.ImageStatic=302,i.WFS=101,i.WBMS=102,i.WES=103,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function o(t){this.$type="Color,http://www.Gs.com";var e=t||{};this.r=null==e.r?0:e.r,this.g=null==e.g?0:e.g,this.b=null==e.b?0:e.b,this.a=null==e.a?255:e.a}var a=/^#([0-9a-fA-f]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;function i(t){var e=(t=Math.round(t)).toString(16);return 1==e.length?"0"+e:e}o.prototype.copy=function(){return new o(this)},o.prototype.toArray=function(){var t=[];return t.push(this.r),t.push(this.g),t.push(this.b),null!==this.a&&0<=this.a?t.push(this.a/255):t.push(1),t},o.prototype.toHex=function(){return this.a||0===this.a?null!=this.a?"#"+i(this.r)+i(this.g)+i(this.b)+i(this.a):void 0:"#"+i(this.r)+i(this.g)+i(this.b)},o.prototype.toHexExcludeAlpha=function(){return"#"+i(this.r)+i(this.g)+i(this.b)};o.prototype.toRgb=function(){return"rgb({0},{1},{2})".replace("{0}",this.r).replace("{1}",this.g).replace("{2}",this.b)};o.prototype.toRgba=function(){return"rgba({0},{1},{2},{3})".replace("{0}",this.r).replace("{1}",this.g).replace("{2}",this.b).replace("{3}",(this.a/255).toFixed(2))};var r=/\d*,\s*(\d*)\s*,\s*(\d*)\s*/g;o.fromRgb=function(t){var e=t.match(r)[0].split(",");return new o({r:parseInt(e[0]),g:parseInt(e[1]),b:parseInt(e[2])})};var s=/\d*,\s*(\d*)\s*,\s*(\d*)\s*,(\s*\d*[.]?\d+\s*|0|1)/g;return o.fromRgba=function(t){var e=t.match(s)[0].split(",");return new o({r:parseInt(e[0]),g:parseInt(e[1]),b:parseInt(e[2]),a:Math.round(255*parseFloat(e[3]))})},o.fromHex=function(t){var e=new o({r:0,g:0,b:0,a:255});(t=t.toLowerCase())&&a.test(t)&&(4===t.length?t="#"+t.slice(1,2)+t.slice(1,2)+t.slice(2,3)+t.slice(2,3)+t.slice(3,4)+t.slice(3,4):5===t.length&&(t="#"+t.slice(1,2)+t.slice(1,2)+t.slice(2,3)+t.slice(2,3)+t.slice(3,4)+t.slice(3,4)+t.slice(4,5)));for(var n=[],i=t.length,r=1;r<i;r+=2)n.push(parseInt("0x"+t.slice(r,r+2)));return 9==i?(e.a=n[0],e.r=n[1],e.g=n[2],e.b=n[3]):(e.r=n[0],e.g=n[1],e.b=n[2]),e},n.exports=o}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n(23),n(21),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){t=t||{},this.serviceFix=t.serviceFix,this.url=t.url,this.clientId=t.clientId,this.clientSecret=t.clientSecret,this._accessToken=null,this.authType=t.authType,this.tokenUrl=t.tokenUrl,t.http?this.http=t.http:"Basic"!==this.authType&&this.tokenUrl?"Token"===this.authType&&(this.http=new n({})):(this.http=new n({client_id:t.clientId,client_secret:t.clientSecret}),this.authType="Basic")}var l="{url}/{serviceName}",u="client_id={client_id}&access_token={access_token}";function h(e){var n=this,t=this.tokenUrl+"?client_id={client_id}&client_secret={client_secret}".replace("{client_id}",this.clientId).replace("{client_secret}",this.clientSecret);return this.http.get(t,"json",null).then(function(t){if(t)return n._accessToken=t.access_token,function(t,e){var n=e.clientId,i=e._accessToken;if(n&&i){var r=t.lastIndexOf("?");-1===r?t=t+"?"+u.replace("{client_id}",n).replace("{access_token}",i):r===t.length-1?t+=u.replace("{client_id}",n).replace("{access_token}",i):t=t+"&"+u.replace("{client_id}",n).replace("{access_token}",i)}return t}(e,n)})}function c(t,e){return t.then(function(t){return 0===t.status?t.result?e.createJsInstance(t.result):t:1===t.status?e.createJsInstance(t.result):-1===t.status?t:t?e.createJsInstance(t):void 0},function(t){throw console.error(t),t})}function p(t){return t.then(function(t){return 0===t.status?t.result:1===t.status?t.data:-1===t.status?t:t||void 0},function(t){throw console.error(t),t})}return t.extend2(s,e),s.prototype.getCapability=function(t){var e=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapability?layer="+t;return this._getRequestWithSerializer(e)},s.prototype.getCapabilityUrl=function(t){var e=i.defer(),n=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapability?layer="+t;return"Token"===this.authType?this._joinAccessToken(n):(e.resolve(n),e.promise)},s.prototype.getCapabilitiesUrl=function(){var t=i.defer(),e=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities";return"Token"===this.authType?this._joinAccessToken(e):(t.resolve(e),t.promise)},s.prototype.getCapabilities=function(){var t=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities";return this._getRequestWithSerializer(t)},s.prototype._getRequest=function(t,e,n,i){var r=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?this.http.get(t,n,e,i):h.call(this,t).then(function(t){return r.http.get(t,n,e,i)})},s.prototype._putRequest=function(t,e,n,i){var r=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?this.http.put(t,n,JSON.stringify(e),i):h.call(this,t).then(function(t){return r.http.put(t,n,"object"==typeof e?JSON.stringify(e):e,i)})},s.prototype._postRequest=function(t,e,n,i){var r,o=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?this.http.post(t,n,JSON.stringify(e),i):(r="object"==typeof e?JSON.stringify(e):e,h.call(this,t).then(function(t){return o.http.post(t,n,r,i)}))},s.prototype._deleteRequest=function(t,e,n,i){var r=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?this.http.delete(t,n,JSON.stringify(e),i):h.call(this,t).then(function(t){return r.http.delete(t,n,"object"==typeof e?JSON.stringify(e):e,i)})},s.prototype._deleteRequestWithCommon=function(t,e,n,i){var r=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?p(this.http.delete(t,n,JSON.stringify(e),i)):h.call(this,t).then(function(t){return p(r.http.delete(t,n,JSON.stringify(e),i))})},s.prototype._postRequestWithCommon=function(t,e,n,i){var r=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?p(this.http.post(t,n,JSON.stringify(e),i)):h.call(this,t).then(function(t){return p(r.http.post(t,n,JSON.stringify(e),i))})},s.prototype._putRequestWithCommon=function(t,e,n,i){var r=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?p(this.http.put(t,n,JSON.stringify(e),i)):h.call(this,t).then(function(t){return p(r.http.put(t,n,JSON.stringify(e),i))})},s.prototype._getRequestWithSerializer=function(t,e,n){return e=e||"json",n=n||"application/json",c(this.http.get(t,e,null,n),this.deserializer)},s.prototype._postRequestWithSerializer=function(t,e,n,i){var r=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?c(this.http.post(t,n,JSON.stringify(e),i),this.deserializer):h.call(this,t).then(function(t){return c(r.http.post(t,n,JSON.stringify(e),i),r.deserializer)})},s.prototype._putRequestWithSerializer=function(t,e,n,i){var r=this;return n=n||"json",i=i||"application/json","Token"!==this.authType?c(this.http.put(t,n,JSON.stringify(e),i),this.deserializer):h.call(this,t).then(function(t){return c(r.http.put(t,n,JSON.stringify(e),i),r.deserializer)})},s.prototype._deleteRequestWithSerializer=function(t,e,n){var i=this;return e=e||"json",n=n||"application/json","Token"!==this.authType?c(this.http.delete(t,e,null,n),this.deserializer):h.call(this,t).then(function(t){return c(i.http.delete(t,e,null,n),i.deserializer)})},s.prototype._getRequestWithSerializer=function(t,e,n){var i=this;return e=e||"json",n=n||"application/json","Token"!==this.authType?c(this.http.get(t,e,null,n),this.deserializer):h.call(this,t).then(function(t){return c(i.http.get(t,e,null,n),i.deserializer)})},s.prototype._joinAccessToken=function(t){return h.call(this,t)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(109),n(27),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.geometry=t.geometry,this.symbol=t.symbol,this.$type="Element,http://www.Gs.com"}return t.extend2(a,e),a.prototype.copy=function(){var t=new a;return t.clone(this),t},a.prototype.clone=function(t){a.prototype.uber.clone.call(this,t),this.geometry=null!=t.geometry?t.geometry.copy():null,this.symbol=null!=t.symbol?t.symbol.copy():null},a.prototype.accept=function(t){t.visit(this)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.getCapability=function(t){},i.prototype.getCapabilities=function(){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.events=function(){var t={click:[],mouseout:[],mouseover:[],mousedown:[],mouseup:[],dblclick:[],visible:[],opacity:[]};return t}();var e=t||{};this.name=e.name,this.id=e.id,this.opacity=e.opacity,this.visible=e.visible,this.zIndex=e.zIndex,this.map=null}return i.prototype.init=function(){void 0!==this._minZoom&&this.setMinZoom(this._minZoom),void 0!==this._maxZoom&&this.setMaxZoom(this._maxZoom)},i.prototype.unInit=function(){for(var t in this.events)for(var e=this.events[t],n=0;n<e.length;n++){var i=e[n].registerFunc;this.map&&("mouseover"==t||"mouseout"==t?this.map.un("mousemove",i):this.map.un(t,i))}delete this.map},i.prototype.setSource=function(t){},i.prototype.getLayerId=function(){return this.id},i.prototype.getZIndex=function(){return this.zIndex},i.prototype.setZIndex=function(t){this.zIndex=t},i.prototype.getLayerName=function(){return this.name},i.prototype.getLayerType=function(){},i.prototype.hitTest=function(t,e){},i.prototype.hitTestList=function(t,e){},i.prototype.select=function(t){},i.prototype.unSelect=function(t){},i.prototype.clear=function(){},i.prototype.getOffset=function(){},i.prototype.getLayer=function(){},i.prototype.setVisible=function(t){this.visible=t},i.prototype.setOpacity=function(t){this.opacity=t},i.prototype.setMinZoom=function(t){},i.prototype.setMaxZoom=function(t){},i.prototype.getMinZoom=function(){},i.prototype.getMaxZoom=function(){},i.prototype.on=function(t,e){if(t in this.events){var n=this.events[t];-1==n.indexOf(e)&&n.push(e)}},i.prototype.un=function(t,e){if(t in this.events){var n=this.events[t],i=n.indexOf(e);0<=i&&n.splice(i,1)}},i.prototype.formatLayer=function(){},i.prototype.onVisible=function(t,e){for(var n=0;n<this.events.visible.length;++n){(0,this.events.visible[n])(t,e)}},i.prototype.onOpacity=function(t,e){for(var n=0;n<this.events.opacity.length;++n){(0,this.events.opacity[n])(t,e)}},i.prototype.onMouseOver=function(t,e){for(var n=0;n<this.events.mouseover.length;++n){(0,this.events.mouseover[n])(t,e)}},i.prototype.onMouseOut=function(t,e){for(var n=0;n<this.events.mouseout.length;++n){(0,this.events.mouseout[n])(t,e)}},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.layer=t.layer,"geometry"in e&&(this.geometry=e.geometry),"feature"in e&&(this.feature=e.feature),"element"in e&&(this.element=e.element),"mesh"in e&&(this.mesh=e.mesh)}return i.prototype.getGeometry=function(){return this.geometry?this.geometry:this.feature?this.feature.geometry:this.element?this.element.geometry:null},i.prototype.contains=function(t){return this.getGeometry()===t},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;
/**
@license
when.js - https://github.com/cujojs/when
MIT License (c) copyright B Cavalier & J Hann
* A lightweight CommonJS Promises/A and when() implementation
* when is part of the cujo.js family of libraries (http://cujojs.com/)
*
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*
* @version 1.7.1
*/
/**
@license
when.js - https://github.com/cujojs/when
MIT License (c) copyright B Cavalier & J Hann
* A lightweight CommonJS Promises/A and when() implementation
* when is part of the cujo.js family of libraries (http://cujojs.com/)
*
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*
* @version 1.7.1
*/
!function(){"use strict";void 0===(i=function(){var n,i,h;function g(t,e,n,i){return c(t).then(e,n,i)}function c(t){var e;return t instanceof p?t:r(t)?(e=v(),t.then(function(t){e.resolve(t)},function(t){e.reject(t)},function(t){e.progress(t)}),e.promise):function(e){return new p(function(t){try{return c(t?t(e):e)}catch(t){return f(t)}})}(t)}function p(t){this.then=t}function f(n){return new p(function(t,e){try{return e?c(e(n)):f(n)}catch(t){return f(t)}})}function v(){var t,a,s,i,e,n;return t=new p(r),a=[],s=[],i=function(e,n,i){var r,o;return r=v(),o="function"==typeof i?function(t){try{r.progress(i(t))}catch(t){r.progress(t)}}:function(t){r.progress(t)},a.push(function(t){t.then(e,n).then(r.resolve,r.reject,o)}),s.push(o),r.promise},e=function(t){return d(s,t),t},n=function(t){return t=c(t),i=t.then,n=c,e=x,d(a,t),s=a=h,t},{then:r,resolve:o,reject:l,progress:u,promise:t,resolver:{resolve:o,reject:l,progress:u}};function r(t,e,n){return i(t,e,n)}function o(t){return n(t)}function l(t){return n(f(t))}function u(t){return e(t)}}function r(t){return t&&"function"==typeof t.then}function o(t,f,d,y,m){return l(2,arguments),g(t,function(t){var e,n,i,r,o,a,s,l,u,h;if(u=t.length>>>0,e=Math.max(0,Math.min(f,u)),i=[],n=u-e+1,r=[],o=v(),e)for(l=o.progress,s=function(t){r.push(t),--n||(a=s=x,o.reject(r))},a=function(t){i.push(t),--e||(a=s=x,o.resolve(i))},h=0;h<u;++h)h in t&&g(t[h],p,c,l);else o.resolve(i);return o.then(d,y,m);function c(t){s(t)}function p(t){a(t)}})}function a(t,e,n,i){return l(1,arguments),s(t,u).then(e,n,i)}function s(t,s){return g(t,function(t){var n,e,i,r,o,a;if(i=e=t.length>>>0,n=[],a=v(),i)for(r=function(t,e){g(t,s).then(function(t){n[e]=t,--i||a.resolve(n)},a.reject)},o=0;o<e;o++)o in t?r(t[o],o):--i;else a.resolve(n);return a.promise})}function d(t,e){for(var n,i=0;n=t[i++];)n(e)}function l(t,e){for(var n,i=e.length;t<i;)if(null!=(n=e[--i])&&"function"!=typeof n)throw new Error("arg "+i+" must be a function")}function x(){}function u(t){return t}return g.defer=v,g.resolve=c,g.reject=function(t){return g(t,f)},g.join=function(){return s(arguments,u)},g.all=a,g.map=s,g.reduce=function(t,o){var e=i.call(arguments,1);return g(t,function(t){var r;return r=t.length,e[0]=function(t,n,i){return g(t,function(e){return g(n,function(t){return o(e,t,i,r)})})},n.apply(t,e)})},g.any=function(t,e,n,i){return o(t,1,function(t){return e?e(t[0]):t[0]},n,i)},g.some=o,g.chain=function(t,e,n){var i=2<arguments.length;return g(t,function(t){return t=i?n:t,e.resolve(t),t},function(t){return e.reject(t),f(t)},e.progress)},g.isPromise=r,p.prototype={always:function(t,e){return this.then(t,t,e)},otherwise:function(t){return this.then(h,t)},yield:function(t){return this.then(function(){return t})},spread:function(e){return this.then(function(t){return a(t,function(t){return e.apply(h,t)})})}},i=[].slice,n=[].reduce||function(t){var e,n,i,r,o;if(o=0,r=(e=Object(this)).length>>>0,(n=arguments).length<=1)for(;;){if(o in e){i=e[o++];break}if(++o>=r)throw new TypeError}else i=n[1];for(;o<r;++o)o in e&&(i=t(i,e[o],o,e));return i},g}.call(e,n,e,t))||(t.exports=i)}(n(494))},function(t,e,n){var i,r;i=[n(0),n(8),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){this.$type="Geometry,http://www.Gs.com";var e=t||{};this.spatialReference=e.spatialReference,this.coordinateDimension=e.coordinateDimension}return o.prototype.getFlatInteriorPoint=function(){return[]},o.prototype.SRID=function(){return spatialReference},o.prototype.getCoordinateDimension=function(){return this.coordinateDimension},o.tolerate=1e-12,o.prototype.setSpatialReference=function(t){this.spatialReference=t},o.prototype.getSpatialReference=function(){return this.spatialReference},o.prototype.getGeometryType=function(){return e.Geometry},o.prototype.spatialReference=0,o.prototype.equals=function(t){return!1},o.prototype.normalize=function(){},o.prototype.offset=function(t){},o.prototype.copy=function(){return new o(this)},o.prototype.envelope=function(){},o.prototype.getBaryCenter=function(){},o.prototype.asWkt=function(t){},o.prototype.asGeoJson=function(t){},o.prototype.getCoordinates=function(){},o.prototype.fromCoordinates=function(){},o.prototype.points2WKT=function(t,e){for(var n="",i=0,r=t.length;i<r;++i){var o=t[i];n+=e?","+"{0} {1}".replace("{0}",o.x.toFixed(e)).replace("{1}",o.y.toFixed(e)):","+"{0} {1}".replace("{0}",o.x).replace("{1}",o.y)}return"({0})".replace("{0}",n.substr(1))},o.prototype.getPointsArray=function(t,e){for(var n=t.length,i=[],r=0;r<n;r++){var o=[];e?(o.push(parseFloat(t[r].x.toFixed(e))),o.push(parseFloat(t[r].y.toFixed(e)))):(o.push(t[r].x),o.push(t[r].y)),i.push(o)}return i},o.prototype.destroy=function(){t.destroyObject(this)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(492),n(0),n(21),n(112),n(244),n(245),n(246),n,e,t],void 0===(r=function(r,t,h,e,o,c,p,n,i,a){function s(t){var e=(t=t||{}).client_id,n=t.client_secret;if(e&&n){var i=e+":"+n;this._token="Basic "+r.encode(i)}o.call(this,t)}t.extend2(s,o),s.prototype.getToken=function(){return this._token},s.prototype.delete=function(t,e,n,i){return u.call(this,"delete",t,e,n,i)},s.prototype.get=function(t,e,n,i){return u.call(this,"get",t,e,n,i)},s.prototype.post=function(t,e,n,i){return u.call(this,"post",t,e,n,i)},s.prototype.put=function(t,e,n,i){return u.call(this,"put",t,e,n,i)};var l=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);l&&parseInt(l[1]);function u(t,e,r,n,i){var o=new XMLHttpRequest;o.open(t,e,!0),r&&(o.responseType=r);var a={};for(var s in i&&(a["Content-Type"]=i),this._token&&(a.Authorization=this._token,a["X-Requested-With"]="RUdJUy1TREs="),a)a.hasOwnProperty(s)&&o.setRequestHeader(s,a[s]);var l=!1;"string"==typeof e&&(l=0===e.indexOf("file://")||"file://"===window.location.origin);var u=h.defer();return o.onload=function(t){if(!(o.status<200||300<=o.status)||l&&0===o.status){var e=o.response,n=o.responseType;if(204===o.status)u.resolve();else if(void 0===e||r&&n!==r)if("json"===r&&"string"==typeof e)try{try{var i=JSON.parse(e);u.resolve(i)}catch(t){u.resolve(e)}}catch(t){u.reject(t)}else(""===n||"document"===n)&&o.responseXML&&o.responseXML.hasChildNodes()?u.resolve(o.responseXML):""!==n&&"text"!==n||o.responseText?u.reject(new c("Invalid XMLHttpRequest response type.")):u.resolve(o.responseText);else u.resolve(e)}else u.reject(new p(o.status,o.response,o.getAllResponseHeaders()))},o.onerror=function(t){u.reject(new p)},o.send(n),u.promise}return a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,p){var n,i;n=[p(0),p(93),p(47),p(219),p(8),p(1),p(13),p,e,t],void 0===(i=function(t,n,i,r,o,a,s,e,l,u){function h(t){var e=t||{};n.call(this,e),i.call(this,e),r.call(this,e),this.geometries=[],this.flatCoordinates=void 0,this.$type="MultiPolygon,http://www.Gs.com"}function c(t){for(var e,n=[],i=t.getGeometryCount(),r=0;r<i;++r){for(var o=[],a=0,s=(e=t.getGeometry(r).points).length;a<s;a++)o.push([e[a].x,e[a].y]);n.push(o)}return n}return t.extend2(h,n),t.extend2(h,i),t.extend2(h,r),h.prototype.getGeometryType=function(){return o.MultiPolygon},h.prototype.area=function(){return 0},h.prototype.numGeometries=function(){return this.geometries.length},h.prototype.geometryN=function(t){if(0<=t&&t<=this.geometries.length)return this.geometries[t]},h.prototype.addGeometry=function(t){this.geometries.push(t)},h.prototype.insertGeometry=function(t,e){this.geometries.splice(t,0,e)},h.prototype.removeGeometry=function(t){var e=this.geometries.indexOf(t);this.geometries.splice(e,1)},h.prototype.removeAll=function(){this.geometries.splice(0,this.geometries.length)},h.prototype.indexOf=function(t){return this.geometries.indexOf(t)},h.prototype.isGeometryEmpty=function(){return 0==this.geometries.length},h.prototype.isClose=function(){if(this.isGeometryEmpty())return!1;for(var t=0,e=this.geometries.length;t<e;++t){if(!this.geometries[t].isClose())return!1}return!0},h.prototype.close=function(){for(var t=0,e=this.geometries.length;t<e;++t){var n=this.geometries[t];n.isClose()||n.close()}},h.prototype.addGeometry=function(t){t.getGeometryType()==o.Polygon&&this.geometries.push(t)},h.prototype.insertGeometry=function(t,e){e.getGeometryType()==o.Polygon&&this.geometries.splice(t,0,e)},h.prototype.removeGeometry=function(t){if(t.getGeometryType()==o.Polygon){var e=this.geometries.indexOf(t);this.geometries.splice(e,1)}},h.prototype.removeAllGeometry=function(){this.geometries.splice(0,this.geometries.length)},h.prototype.getGeometryCount=function(){return this.geometries.length},h.prototype.getGeometry=function(t){return this.geometries[t]},h.prototype.indexOfGeometry=function(t){this.geometries.indexOf(t)},h.prototype.isGeometryEmpty=function(){return 0==this.geometries.length},h.prototype.addPoint=function(t){var e=this.last();null!=e&&e.addPoint(t)},h.prototype.insertPoint=function(t,e){var n=this.last();null!=n&&n.insertPoint(t,e)},h.prototype.removePoint=function(t){for(var e=0,n=this.geometries.length;e<n;++e){this.geometries[e].removePoint(t)}},h.prototype.removeAllPoint=function(){for(var t=0,e=this.geometries.length;t<e;++t){this.geometries[t].removeAllPoint(point)}},h.prototype.getPointCount=function(){for(var t=0,e=0,n=this.geometries.length;e<n;++e){t+=this.geometries[e].getPointCount()}return t},h.prototype.getPoint=function(t){for(var e=0,n=0,i=this.geometries.length;n<i;++n){var r=this.geometries[n];if(t<(e+=r.getPointCount()))return r.getPoint(r.getPointCount()-(e-t))}},h.prototype.indexOfPoint=function(t){for(var e=0,n=0,i=this.geometries.length;n<i;++n){var r=this.geometries[n],o=r.indexOf(t);if(-1!=o)return e+o;e+=r.getPointCount()}return-1},h.prototype.isPointEmpty=function(){return 0==this.getPointCount()},h.prototype.normalize=function(){for(var t=0,e=this.geometries.length;t<e;++t)this.geometries[t].normalize()},h.prototype.copy=function(){var t=new h;t.spatialReference=this.spatialReference;for(var e=0,n=this.geometries.length;e<n;++e)t.addGeometry(this.geometries[e].copy());return t},h.prototype.setSpatialReference=function(t){this.spatialReference=t;for(var e=0,n=this.geometries.length;e<n;++e)this.geometries[e].setSpatialReference(t)},h.prototype.first=function(){if(0<this.geometries.length)return this.getGeometry(0)},h.prototype.last=function(){if(0<this.geometries.length)return this.getGeometry(this.geometries.length-1)},h.prototype.envelope=function(){for(var t=new s({spatialReference:this.spatialReference}),e=0,n=this.geometries.length;e<n;++e)t=t.union(this.geometries[e].envelope());return t.spatialReference=this.spatialReference,t},h.prototype.offset=function(t){for(var e=0,n=this.geometries.length;e<n;++e)this.geometries[e].offset(t);return this},h.prototype.asWkt=function(t){for(var e=this.getGeometryCount(),n="",i=0;i<e;++i){n+=","+this.getGeometry(i).asWkt(t).replace("polygon","")}return"multipolygon({0})".replace("{0}",n.substr(1))},h.prototype.asGeoJson=function(t){for(var e={type:"MultiPolygon",coordinates:[]},n=this.getGeometryCount(),i=0;i<n;i++){for(var r=this.getGeometry(i),o=[],a=0,s=r.getGeometryCount();a<s;a++){var l=r.getGeometry(a).points,u=this.getPointsArray(l,t);o.push(u)}e.coordinates.push(o)}return e},h.prototype.getBaryCenter=function(){for(var t=0,e=0,n=0,i=0,r=this.getGeometryCount();i<r;++i){var o=this.geometryN(i),a=o.getBaryCenter(),s=o.area();n+=s,t+=a.x*s,e+=a.y*s}return{x:t/n,y:e/n}},h.prototype.getFlatInteriorPoint=function(){for(var t=function(t){for(var e=p(9),n=[],i=t.getGeometryCount(),r=0;r<i;++r){var o=c(t.getGeometry(r));n.push(o)}return new e.geom.MultiPolygon(n)}(this).getFlatInteriorPoints(),e=[],n=0;n<t.length;n+=3){var i=new a({spatialReference:this.spatialReference,x:t[n],y:t[n+1]});t[n+2],e.push(i)}return e},u.exports=h}.apply(e,n))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.GeometryBegin=100,i.Geometry=101,i.Point=102,i.LineString=103,i.Polygon=104,i.MultiPoint=105,i.MultiLineString=106,i.MultiPolygon=107,i.GeometryCollection=108,i.Lseg=109,i.Box=110,i.Path=111,i.Circle=112,i.LinearRing=113,i.Shape=181,i.Geocoder=182,i.GeometryEnd=200,i.RasterBegin=200,i.DEM=201,i.DOM=202,i.RasterEnd=300,i.ModelBegin=300,i.DAE=310,i.FileDAE=311,i.BinaryDAE=312,i.OBJ=320,i.FileOBJ=321,i.BinaryOBJ=322,i.GLTF=330,i.ModelEnd=400,i.ElementBegin=400,i.SimpleElement=401,i.ElementEnd=500,i.TileBegin=500,i.MapTile=501,i.VectorTile=502,i.TerrainTile=503,i.ModelTile=504,i.ObliqueTile=505,i.TileEnd=600,i.isPrimitiveType=function(t){return-1<t&&t<100},i.isGeometryType=function(t){return 100<t&&t<200},i.isModelType=function(t){return 300<t&&t<400},i.isElementType=function(t){return n.exports=400<t&&t<500,400<t&&t<500},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(141),n(42),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),n.call(this,t),this.cursor=t.cursor||"pointer",this.map=null}return t.extend2(a,e),t.extend2(a,n),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.map=t.map},a.prototype.onClick=function(t){this.map.currentTool(this),this.setCursor(this.cursor),this.checked=!0},a.prototype.setCursor=function(t){this.map.setCursor(t)},a.prototype.deactivate=function(){this.checked=!1},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.newGuid=function(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},n.exports=new i,new i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(108),n(15),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.color=null==t.color?new n({a:153,r:19,g:181,b:177}):t.color,this.style=null!=t.style?0===t.style?0:t.style:5,this.followModel=null!=t.followModel&&t.followModel,this.$type="SimpleLineSymbol,http://www.Gs.com"}return t.extend2(a,e),a.prototype.copy=function(){return new a({width:this.width,color:this.color?this.color.copy():void 0,style:this.style,followModel:this.followModel})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(91),n(13),n(1),n,e,t],void 0===(r=function(e,t,n,o,u,i,r,a){function s(t){var e=t||{};n.call(this,e),this.points=[],this.$type="LineString,http://www.Gs.com"}return e.extend2(s,n),s.prototype.getGeometryType=function(){return t.LineString},s.prototype.numPoints=function(){return this.points.length},s.prototype.pointN=function(t){if(0<=t&&t<this.points.length)return this.points[t]},s.prototype.startPoint=function(){return this.pointN(0)},s.prototype.endPoint=function(){return this.pointN(this.numPoints()-1)},s.prototype.length=function(){for(var t=0,e=0,n=this.points.length-1;e<n;e++)t+=Math.sqrt(Math.pow(this.points[e+1].x-this.points[e].x,2)+Math.pow(this.points[e+1].y-this.points[e].y,2));return t},s.prototype.getPartPoint=function(t){if(t<=0)return this.points[0];var e=this.points.length;if(this.length()<=t)return this.points[e-1];for(var n,i,r,o=0,a=0,s=e-1;a<s;++a){if(n=this.points[a],i=this.points[a+1],t<=o+(r=Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2)))){var l=(t-o)/r;return new u({x:n.x+(i.x-n.x)*l,y:n.y+(i.y-n.y)*l})}o+=r}return this.points[e-1]},s.prototype.isClose=function(){var t=this.startPoint(),e=this.endPoint();return!!(t&&e&&t.equals(e))},s.prototype.close=function(){},s.prototype.addPoint=function(t){e.isArray(t)?this.points=this.points.concat(t):this.points.push(t)},s.prototype.insertPoint=function(t,e){this.points.splice(t,0,e)},s.prototype.removePoint=function(t){var e=this.points.indexOf(t);this.points.splice(e,1)},s.prototype.indexOf=function(t){return this.points.indexOf(t)},s.prototype.normalize=function(){for(var t=[],e=0;e<this.points.length-1;++e){var n=this.points[e],i=this.points[e+1];n.equals(i)&&t.push(n)}for(var r=0;r<t.length;r++){var o=t[r];this.removePoint(o)}this.close()},s.prototype.removeAllPoint=function(){this.points.splice(0,this.points.length)},s.prototype.getPointCount=function(){return this.points.length},s.prototype.length=function(){for(var t=0,e=0,n=this.points.length-1;e<n;e++)t+=Math.sqrt(Math.pow(this.points[e+1].x-this.points[e].x,2)+Math.pow(this.points[e+1].y-this.points[e].y,2));return t},s.prototype.middlePoint=function(){var t=this.length()/2;if(t<=0)return this.points[0];for(var e,n,i,r=this.points.length,o=0,a=0,s=r-1;a<s;++a){if(e=this.points[a],n=this.points[a+1],t<=o+(i=Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2)))){var l=(t-o)/i;return new u({x:e.x+(n.x-e.x)*l,y:e.y+(n.y-e.y)*l})}o+=i}return this.points[r-1]},s.prototype.envelope=function(){for(var t=miny=minz=Number.MAX_VALUE,e=maxy=maxz=-Number.MAX_VALUE,n=0,i=this.points.length;n<i;++n){var r=this.points[n];t>r.x&&(t=r.x),e<r.x&&(e=r.x),miny>r.y&&(miny=r.y),maxy<r.y&&(maxy=r.y),minz>r.z&&(minz=r.z),maxz<r.z&&(maxz=r.z)}return new o({minx:t,maxx:e,miny:miny,maxy:maxy,minz:minz,maxz:maxz,spatialReference:this.spatialReference})},s.prototype.getPoint=function(t){return this.points[t]},s.prototype.copy=function(){for(var t=new s,e=0,n=this.points.length;e<n;++e)t.addPoint(this.points[e].copy());return t.setSpatialReference(this.getSpatialReference()),t},s.prototype.getCoordinates=function(){for(var t="",e=0,n=this.points.length;e<n;e++){var i=this.points[e];t+=e===n-1?i.x+","+i.y:i.x+","+i.y+";"}return t},s.prototype.fromCoordinates=function(t){for(var e=0,n=this.points.length;e<n;e++)this.points[e].x=t[e].lng,this.points[e].y=t[e].lat;return this},s.prototype.getBaryCenter=function(){var t=this.middlePoint();return{x:t.x,y:t.y}},s.prototype.asWkt=function(t){var e=this.points,n=this.points2WKT(e,t);return"linestring{0}".replace("{0}",n)},s.prototype.asGeoJson=function(t){var e={type:"",coordinates:[],type:"LineString"};return e.coordinates.push(this.getPointsArray(this.points,t)),e},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(38),n(160),n(73),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){t=t||{},e.call(this,t),this.algorithm=t.algorithm,this.plot=new n,this.$type="PlotElement,http://www.Gs.com"}return t.extend2(s,e),s.prototype.copy=function(){var t=new s;return t.clone(this),t},s.prototype.clone=function(t){s.prototype.uber.clone.call(this,t),this.plot=t.plot.copy(),this.algorithm=t.algorithm},s.prototype.accept=function(t){t.visit(this)},s.prototype.replace=function(t){if(t){this.algorithm=t.algorithm,this.plot=t.plot;for(var e=0;e<this.elements.length;e++){var n=this.elements[e],i=t.find(n.id);n.geometry=i.geometry,n.symbol=i.symbol,n.attributeSet=i.attributeSet}this.attributeSet=t.attributeSet}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(57),n(15),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.offsetX=void 0===t.offsetX?0:t.offsetX,this.offsetY=void 0===t.offsetY?0:t.offsetY,this.fillColor=null==t.fillColor?new n({a:153,r:19,g:181,b:177}):t.fillColor,this.size=null==t.size?5:t.size,this.style=t.style||"circle",this.borderColor=null==t.borderColor?new n({a:153,r:19,g:181,b:177}):t.borderColor,this.borderThickness=null==t.borderThickness?1:t.borderThickness,this.$type="SimpleMarkerSymbol,http://www.Gs.com"}return t.extend2(a,e),a.prototype.copy=function(){return new a({offsetX:this.offsetX,offsetY:this.offsetY,fillColor:this.fillColor?this.fillColor.copy():void 0,size:this.size,style:this.style,borderColor:this.borderColor?this.borderColor.copy():void 0,borderThickness:this.borderThickness})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(46),n(15),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.fillColor=null==e.fillColor?new i({a:153,r:19,g:181,b:177}):e.fillColor,this.$type="SimpleFillSymbol,http://www.Gs.com"}return t.extend2(a,n),a.prototype.copy=function(){return new a({borderColor:this.borderColor?this.borderColor.copy():void 0,borderThickness:this.borderThickness,opacity:this.opacity,fillColor:this.fillColor?this.fillColor.copy():void 0,style:this.style})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(147),n(8),n(1),n(74),n(2),n(3),n(6),n(5),n(24),n(110),n(58),n(29),n(59),n(48),n(9),n,e,t],void 0===(r=function(t,e,n,r,o,i,a,s,l,u,h,c,p,f,d,y,m,g,v){var x=Math.PI/180,_=_||function(){for(var t=[],e=0;e<=360;++e){var n=x*e;t.push([Math.sin(n),Math.cos(n)])}return t}();function w(t){for(var e,n=[],i=t.getGeometryCount(),r=0;r<i;++r){for(var o=[],a=0,s=(e=t.getGeometry(r).points).length;a<s;a++)o.push([e[a].x,e[a].y]);n.push(o)}return n}function b(t){if(!t)return null;switch(t.getGeometryType()){case n.Polyline:return function(t){for(var e,n,i=[],r=t.getGeometryCount(),o=0;o<r;++o){e=[];for(var a=0,s=(n=t.getGeometry(o).points).length;a<s;a++)e.push([n[a].x,n[a].y]);i.push(e)}return new y.geom.MultiLineString(i)}(t);case n.Polygon:return function(t){var e=w(t);return new y.geom.Polygon(e)}(t);case n.MultiPolygon:return function(t){for(var e=[],n=t.getGeometryCount(),i=0;i<n;++i){var r=w(t.getGeometry(i));e.push(r)}return new y.geom.MultiPolygon(e)}(t);case n.Point:return function(t){return null==t?null:new y.geom.Point([t.x,t.y])}(t);case n.Envelope:return function(t){var e=[];return e.push([t.minx,t.miny]),e.push([t.minx,t.maxy]),e.push([t.maxx,t.maxy]),e.push([t.maxx,t.miny]),e.push([t.minx,t.miny]),new y.geom.Polygon([e])}(t);case n.Circle:return function(t){if(t){var e=t.center;return new y.geom.Circle([e.x,e.y],t.radius)}return null}(t);case n.Ellipse:return function(t){if(t){for(var e=t.center,n=t.axisX,i=t.axisY,r=[],o=0,a=_.length;o<a;++o){var s=_[o];r.push([e.x+n*s[1],e.y+i*s[0]])}return new y.geom.Polygon([r])}return null}(t);case n.Square:return;case n.MultiPoint:return function(t){if(null==t)return null;for(var e=t.getPointCount(),n=[],i=0;i<e;i++){var r=t.getPoint(i);n.push([r.x,r.y])}return new y.geom.MultiPoint(n)}(t);case n.Ring||n.LinearRing:return function(t){if(t){var e=[];if(t instanceof s)for(var n=t.getPointCount(),i=0;i<n;i++){var r=t.getPoint(i);e.push([r.x,r.y])}if(t instanceof d)for(n=t.numPoints,i=0;i<n;i++){r=t.pointN(i);e.push([r.x,r.y])}return new y.geom.LinearRing(e)}}(t);case n.LineString:return function(t){var e=t.points;if(e&&0<e.length){for(var n=[],i=0,r=e.length;i<r;i++)n.push([e[i].x,e[i].y]);return new y.geom.LineString(n)}return null}(t);case n.GeometryBag:return function(t){for(var e=new y.geom.GeometryCollection,n=[],i=t.getGeometryCount(),r=0;r<i;r++)n.push(b(t.getGeometry(r)));return e.setGeometries(n),e}(t);case n.MultiLineString:return function(t){for(var e,n,i=[],r=t.numGeometries(),o=0;o<r;++o){e=[];for(var a=0,s=(n=t.geometryN(o).points).length;a<s;a++)e.push([n[a].x,n[a].y]);i.push(e)}return new y.geom.MultiLineString(i)}(t);default:return null}}function P(t){if(!t)return null;switch(t.getType()){case"Point":return C(t);case"MultiPoint":return function(t){for(var e=new o({spatialReference:4490}),n=t.getPoints(),i=n.length,r=0;r<i;r++)e.addPoint(C(n[r]));return e}(t);case"LineString":return A(t);case"MultiLineString":return function(t){for(var e=new f({spatialReference:4490}),n=t.getLineStrings().length,i=0;i<n;i++){var r=A(t.getLineString(i));e.addGeometry(r)}return e}(t);case"LinearRing":return M(t);case"Polygon":return T(t);case"MultiPolygon":return function(t){for(var e=new u({spatialReference:4490}),n=t.getPolygons().length,i=0;i<n;i++){var r=T(t.getPolygon(i));e.addGeometry(r)}return e}(t);case"Circle":return function(t){var e=t.getCenter(),n=t.getRadius(),i=new r({x:e.x,y:e.y,spatialReference:4490});return new h({center:i,radius:n,spatialReference:4490})}(t);case"GeometryCollection":return fromGeometryCollection(t);default:return null}}function S(t,e){switch(t){case 2:return new r({x:e[0],y:e[1],spatialReference:4490});case 3:return new r({x:e[0],y:e[1],z:e[2],spatialReference:4490})}}function C(t){var e=t.getCoordinates();return S(t.getStride(),e)}function M(t){for(var e=new d({spatialReference:4490}),n=t.getCoordinates(),i=t.getStride(),r=n.length,o=0;o<r;o++){var a=n[o];e.addPoint(S(i,a))}return e}function T(t){for(var e=new l({spatialReference:4490}),n=t.getLinearRingCount(),i=0;i<n;i++){var r=t.getLinearRing(i);e.addGeometry(M(r))}return e}function A(t){for(var e=new p({spatialReference:4490}),n=t.getCoordinates(),i=t.getStride(),r=n.length,o=0;o<r;o++){var a=n[o];e.addPoint(S(i,a))}return e}function E(){e.call(this)}return t.extend2(E,e),E.prototype.toGeometry=function(t){return b(t)},E.prototype.fromGeometry=function(t){return P(t)},v.exports=E}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(57),n(15),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.text=e.text,this.fontFamilyName=e.fontFamilyName||"Arial",this.fontSize=e.fontSize,this.fontWeight=e.fontWeight,this.foreground=void 0===e.foreground?new i({a:255,r:0,g:0,b:0}):e.foreground,this.textAlign=null==e.textAlign?"center":e.textAlign,this.rotation=null==e.rotation?0:e.rotation,this.borderColor=null==e.borderColor?new i({a:255,r:0,g:0,b:0}):e.borderColor,this.borderThickness=e.borderThickness,this.offsetX=null==e.offsetX?0:e.offsetX,this.offsetY=null==e.offsetY?0:e.offsetY,this.textBackgroundColor=null==e.textBackgroundColor?new i({a:0,r:0,g:0,b:0}):e.textBackgroundColor,this.textBackgroundBorderColor=null==e.textBackgroundBorderColor?new i({a:0,r:0,g:0,b:0}):e.textBackgroundBorderColor,this.textBackgroundBorderThickness=e.textBackgroundBorderThickness,this.padding=e.padding||[0,0,0,0],this.textBaseline=e.textBaseline,this.$type="TextSymbol,http://www.Gs.com"}return t.extend2(a,n),a.prototype.copy=function(){return new a({text:this.text,fontFamilyName:this.fontFamilyName,fontSize:this.fontSize,fontWeight:this.fontWeight,foreground:this.foreground?this.foreground.copy():void 0,textAlign:this.textAlign,rotation:this.rotation,borderColor:this.borderColor?this.borderColor.copy():void 0,borderThickness:this.borderThickness,offsetX:this.offsetX,offsetY:this.offsetY})},a.toImage=function(t){var e=t.padding;e instanceof Array||(e=[e,e,e,e]);var n=document.createElement("canvas"),i=t.fontSize+"px "+t.fontFamilyName,r=t.foreground.toRgba(),o="#00ffffff";t.borderColor&&(o=t.borderColor.toRgba());var a="#00ffffff";t.textBackgroundColor&&(a=t.textBackgroundColor.toRgba());var s="#00ffffff";t.textBackgroundBorderColor&&(s=t.textBackgroundBorderColor.toRgba());var l=t.textBackgroundBorderThickness;l=void 0===l?1:l,n.height=n.width=10;var u=n.getContext("2d");u.font=i,u.lineWidth=t.borderThickness;for(var h=0,c=function(t){var e=[],n=t.indexOf("\n");for(;0<=n;)e.push(t.substr(0,n)),t=t.substring(n+1),n=t.indexOf("\n");return e.push(t),e}(t.text),p=0,f=c.length;p<f;++p){var d=u.measureText(c[p]).width;h<d&&(h=d)}var y=t.fontSize*c.length+e[0]+e[2]+l;h+=e[1]+e[3]+l,n.width=h,n.height=y,u.fillStyle=a,u.fillRect(.5*l,.5*l,n.width-l,n.height-l),u.strokeStyle=s,u.lineWidth=l,u.strokeRect(.5*l,.5*l,n.width-l,n.height-l),u.font=i,u.fillStyle=r,u.strokeStyle=o,u.lineWidth=t.borderThickness;var m=.5*l,g=.15*l;m+=e[3],g+=e[0];for(p=0,f=c.length;p<f;++p)g+=t.fontSize,u.strokeText(c[p],m,g),u.fillText(c[p],m,g);return{image:n.toDataURL(),width:n.width,height:n.height}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.$type="Fields,http://www.Gs.com",this.fields=[]}return i.prototype.add=function(t){this.fields.push(t)},i.prototype.remove=function(t){for(var e=0,n=this.fields.length;e<n;++e)if(t===this.fields[e]){this.fields.splice(e,1);break}},i.prototype.getCount=function(){return this.fields.length},i.prototype.findIndex=function(t){for(var e=0,n=this.fields.length;e<n;++e)if(t.toUpperCase()===this.fields[e].name.toUpperCase())return e;return-1},i.prototype.findOIDIndex=function(){for(var t=0,e=this.fields.length;t<e;++t)if(this.fields[t].isOID())return t;return-1},i.prototype.findOID=function(){for(var t=0,e=this.fields.length;t<e;++t)if(this.fields[t].isOID())return this.fields[t];return null},i.prototype.findPK=function(){for(var t=0,e=this.fields.length;t<e;++t)if(this.fields[t].pk)return this.fields[t];return null},i.prototype.getField=function(t){if(0<=t&&t<this.fields.length)return this.fields[t]},i.prototype.getNames=function(){for(var t=[],e=0,n=this.fields.length;e<n;++e)t.push(this.fields[e].name);return t.join(",")},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(217),n(1),n(2),n(3),n(6),n(5),n(24),n(146),n(110),n(13),n(148),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(29),n(48),n(229),n(58),n(8),n(149),n,e,t],void 0===(r=function(t,e,f,s,l,n,u,h,d,c,p,y,r,o,a,i,m,g,v,x,_,w,b,P,S,C,M,T,A){function E(t){e.call(this,t)}t.extend2(E,e);function I(t,e,n){var i=t.getGeometryCount(),r=new u;r.setSpatialReference(e);for(var o=0;o<i;++o){var a=new w;R(t.getGeometry(o),e,n,a),r.addGeometry(a)}return r}function L(t,e,n){var i=n([t.x,t.y]);return new f({x:i[0],y:i[1],z:t.z,spatialReference:e})}function R(t,e,n,i){for(var r=t.points,o=0,a=r.length;o<a;o++)i.addPoint(L(r[o],e,n));return i}return E.prototype.transform=function(t,e){if(t){var n=t.getSpatialReference();if(n||console.log(n),e||console.log(e),n==e)return t;var i=function(i,r){return function(t){var e=new C.Point(t[0],t[1]),n=C.transform(i,r,e);return[n.x,n.y]}}(new C.Proj("EPSG:"+n),new C.Proj("EPSG:"+e));switch(t.getGeometryType()){case S.Polyline:return function(t,e,n){var i,r=new l;r.setSpatialReference(e);for(var o=t.getGeometryCount(),a=0;a<o;++a)i=new s,R(t.getGeometry(a),e,n,i),r.addGeometry(i);return r}(t,e,i);case S.Polygon:return I(t,e,i);case S.MultiPolygon:return function(t,e,n){var i=new h;i.setSpatialReference(e);for(var r=t.getGeometryCount(),o=0;o<r;++o){var a=t.getGeometry(o);i.addGeometry(I(a,e,n))}return i}(t,e,i);case S.Point:return L(t,e,i);case S.Circle:return function(t,e,n){var i=t.center,r=t.radius,o=new f({x:i.x+r,y:i.y,z:i.z,spatialReference:t.getSpatialReference()}),a=L(i,e,n),s=L(o,e,n).x-a.x;return new c({center:a,radius:s,spatialReference:e})}(t,e,i);case S.Ellipse:return function(t,e,n){var i=t.center,r=t.axisX,o=t.axisY,a=new f({x:i.x+r,y:i.y,z:i.z,spatialReference:t.getSpatialReference()}),s=new f({x:i.x,y:i.y-o,z:i.z,spatialReference:t.getSpatialReference()}),l=L(i,e,n),u=L(a,e,n),h=L(s,e,n),c=u.x-l.x,p=l.y-h.y;return new d({center:l,axisX:c,axisY:p,spatialReference:e})}(t,e,i);case S.Envelope:return function(t,e,n){var i=new f({x:t.maxx,y:t.maxy,spatialReference:t.getSpatialReference()}),r=new f({x:t.minx,y:t.miny,spatialReference:t.getSpatialReference()}),o=L(i,e,n),a=L(r,e,n);return new p({minx:a.x,miny:a.y,maxx:o.x,maxy:o.y,minz:t.minz,maxz:t.maxz,spatialReference:e})}(t,e,i);case S.Square:return function(t,e,n){var i=t.center,r=new f({x:i.x+.5*t.side,y:i.y,spatialReference:t.getSpatialReference()}),o=L(i,e,n),a=L(r,e,n);return new y({center:o,side:2*(a.x-o.x),spatialReference:e})}(t,e,i);case S.Cone:return function(t,e,n){var i=L(t.center,e,n);return new r({center:i,radius:t.radius,height:t.height,slices:t.slices})}(t,e,i);case S.Cube:return function(t,e,n){var i=L(t.center,e,n);return new o({center:i,depth:t.depth,height:t.height,width:t.width})}(t,e,i);case S.Cylinder:return function(t,e,n){var i=L(t.center,e,n);return new a({center:i,bottomRadius:t.bottomRadius,topRadius:t.topRadius,height:t.height,slices:t.slices})}(t,e,i);case S.Pipeline:return function(t,e,n){for(var i,r=new m({shape:t.shape,spatialReference:e}),o=t.getGeometryCount(),a=0;a<o;++a)i=new s,R(t.getGeometry(a),e,n,i),r.addGeometry(i);return r}(t,e,i);case S.Polyhedron:return function(t,e,n){var i,r=new g({extrudeHeight:t.extrudeHeight,perPositionHeight:t.perPositionHeight});r.setSpatialReference(e);for(var o=t.getGeometryCount(),a=0;a<o;++a)i=new w,R(t.getGeometry(a),e,n,i),r.addGeometry(i);return r}(t,e,i);case S.Sphere:return function(t,e,n){var i=L(t.center,e,n);return new v({center:i,radius:t.radius})}(t,e,i);case S.Wall:return function(t,e,n){for(var i=t.positions,r=[],o=0,a=i.length;o<a;++o)r.push(L(i[o],e,n));return new x({positions:r,minHeights:t.minHeights,maxHeights:t.maxHeights})}(t,e,i);case S.LineString:return function(t,e,n){var i=new _;i.setSpatialReference(e);for(var r=t.points,o=0,a=r.length;o<a;o++)i.addPoint(L(r[o],e,n));return i}(t,e,i);case S.ExtrudedLine:return function(t,e,n){var i=new b;i.setSpatialReference(e);for(var r=t.points,o=0,a=r.length;o<a;o++)i.addPoint(L(r[o],e,n));return i}(t,e,i);case S.GeometryBag:return function(t,e){var n=new P;n.setSpatialReference(e);for(var i=0,r=t.geometries.length;i<r;i++)n.geometries[i]=E.prototype.transform(t.geometries[i],e);return n}(t,e);default:return t}}},A.exports=E}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this._entrys=new Array,this.put=function(t,e){if(null!=t&&null!=t){var n=this._getIndex(t);if(-1==n){var i=new Object;i.key=t,i.value=e,this._entrys[this._entrys.length]=i}else this._entrys[n].value=e}},this.get=function(t){var e=this._getIndex(t);return-1!=e?this._entrys[e].value:null},this.remove=function(t){var e=this._getIndex(t);-1!=e&&this._entrys.splice(e,1)},this.clear=function(){this._entrys.length=0},this.contains=function(t){return-1!=this._getIndex(t)},this.getCount=function(){return this._entrys.length},this.getEntrys=function(){return this._entrys},this._getIndex=function(t){if(null==t||null==t)return-1;for(var e=this._entrys.length,n=0;n<e;n++){var i=this._entrys[n];if(null!=i&&null!=i&&i.key===t)return n}return-1}}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(109),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.elements=[],this.$type="CompositeElement,http://www.Gs.com"}return t.extend2(o,e),o.prototype.add=function(t){this.elements.push(t)},o.prototype.remove=function(t){var e=this.elements.indexOf(t);this.elements.splice(e,1)},o.prototype.getCount=function(){return this.elements.length},o.prototype.setName=function(t){for(var e=0,n=this.elements.length;e<n;++e){this.elements[e].setName(t)}},o.prototype.getItem=function(t){return this.elements[t]},o.prototype.copy=function(){var t=new o;return t.clone(this),t},o.prototype.clone=function(t){o.prototype.uber.clone.call(this,t);for(var e=0,n=t.elements.length;e<n;++e){var i=t.elements[e];this.elements.push(i.copy())}},o.prototype.reset=function(){for(var t=0,e=this.elements.length;t<e;++t){var n=this.elements[t];n&&(n.parent=this,n.reset())}},o.prototype.unReset=function(){for(var t=0,e=this.elements.length;t<e;++t){this.elements[t].unReset()}},o.prototype.accept=function(t){t.accept(this)},o.prototype.find=function(t){for(var e=0;e<this.elements.length;e++)if(this.elements[e].id==t)return this.elements[e];return null},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={Pattern:"Pattern",TextLabel:"TextLabel",PictureLabel:"PictureLabel",PictureLegend:"PictureLegend",LegendLabel:"LegendLabel",NorthArrow:"NorthArrow",ScaleBar:"ScaleBar"};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(27),n,e,t],void 0===(r=function(e,t,n,i){function r(t){this.anchor=t.anchor,this.content=t.content,this.id=t.id||e.newGuid(),this.layerId=t.layerId,this.onClose=t.onClose,this.offset=t.offset,this.title=t.title||"",this.stopEvent=null==t.stopEvent||t.stopEvent,this.autoPan=t.autoPan||!1,this.autoPanMargin=t.autoPanMargin||20,this.className=t.className}return r.prototype.creatTemplate=function(){return'<tr style="white-space: nowrap;"><td style="border-right: 0px">{0}</td><td style="border-left: 0px">{1}</td></tr>'},r.prototype.setContentFun=function(t){this.content='<table class="table table-striped table-bordered">{0}</table>'.replace("{0}",t)},r.prototype.pieceTemplate=function(t){for(var e,n="",i=t.length,r=this.creatTemplate(),o=0;o<i;++o)(e=t[o]).key&&e.value&&" "!==e.value&&(n+=r.replace("{0}",e.key).replace("{1}",e.value)+"");this.setContentFun(n)},r.prototype.destroy=function(){this.onClose=void 0},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(57),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.width=e.width,this.height=e.height,this.source=e.source,this.opacity=null==e.opacity?1:e.opacity,this.scale=void 0===e.scale?1:e.scale,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this.rotation=null==e.rotation?0:e.rotation,this.$type="PictureMarkerSymbol,http://www.Gs.com"}return t.extend2(o,n),o.prototype.copy=function(){return new o(this)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(106),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.enabled=!1,this.checked=!1,this.id=t.id}t.extend2(o,e);var a=null,s=null,l=null,u=null;return o.prototype.onCreate=function(t){a=t.commandNotify,s=t.localize,l=t.logwriter,u=t.messagebox},o.prototype.onClick=function(t){},o.prototype.isEnabled=function(){return this.enabled},o.prototype.isChecked=function(){return this.checked},o.prototype.localize=function(t){return s.localization(t)},o.prototype.log={info:function(t){l.info(t)},error:function(t){l.error(t)},warn:function(t){l.warn(t)}},o.prototype.activeCommand=function(t,e){a&&a.activeCommand(t,e)},o.prototype.messageBox=function(t,e,n){return u.show(t,e,n)},o.prototype.notify=function(){a&&a.notify()},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.WMS=101,i.WMTS=102,i.WDMS=103,i.XYZ=104,i.Google=201,i.BaiduMap=202,i.BingMaps=203,i.Tianditu=212,i.SuperMap=205,i.OpenStreetMap=206,i.ArcGisRest=207,i.SuperMapRest=208,i.TencentMap=209,i.GaodeMap=210,i.PatternLayer=301,i.OfflineLayer=401,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(94),n(96),n(9),n(43),n(10),n(23),n(14),n(13),n(161),n(264),n,e,t],void 0===(r=function(t,o,a,e,s,n,l,i,r,u,h,c,p,f){function d(t){var e=t||{};this._options=e,this._levelShift=e.levelShift,this.clientId=e.clientId,this.clientSecret=e.clientSecret,e.restHttp?this._restHttp=e.restHttp:(this._restHttp=new l({client_id:e.clientId,client_secret:e.clientSecret}),e.restHttp=this._restHttp),this._sourceCreator=new u;var n=new h({sourceCreator:this._sourceCreator});if(o.call(this,e),this._layer=n.createTileLayer(e),this.tileType=e.tileType,this.matrixSet=e.matrixSet,this.layers=e.layers,this.layerDefs=e.layerDefs,this.map=e.map,"number"==typeof t.maxZoom&&t.maxZoom==t.maxZoom&&this.setMaxZoom(t.maxZoom),"number"==typeof t.minZoom&&t.minZoom==t.minZoom&&this.setMinZoom(t.minZoom),this._visible=null==e.visible||e.visible,this._opacity=null==e.opacity?1:e.opacity,this._zIndex=null==e.zIndex?0:e.zIndex,this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex),this._options=e,this.level=e.level,this.printMaxZoom=e.printMaxZoom,window.gatherInfo){var i={};for(var r in e)i[r]=e[r];switch(i.restHttp=null,this.description=new a({options:JSON.stringify(i),name:e.layers,baseUrl:e.url}),e.tileType){case s.WMS:this.description.type="WMS",window.gatherInfo(this.description);break;case s.WMTS:this.description.type="WMTS",window.gatherInfo(this.description)}}}function y(t,e,n){return t.map.getView().getResolutionForZoom(e)/((n=n||256)/256)}function m(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=(n=n||256)/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}return t.extend2(d,o),n(d.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(t=Number(t),this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){var t=this._layer.getMaxResolution();return m(this.map,t,this._layer.tileSize)},set:function(t){var e=y(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e)}},maxZoom:{get:function(){var t=this._layer.getMaxResolution();return m(this.map,t,this._layer.tileSize)},set:function(t){var e=y(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}},slider:{set:function(t){this._layerSilder&&(t?(this._layerSilder.open(this._layer),this._oldVisible=this.visible,this.visible=!0):(this._layerSilder.close(this._layer),this.visible=this._oldVisible))}}}),d.prototype._getWMTSMatrices=function(t){var e=[],n=t.projection||"EPSG:4490",i=279541132.0143589,r=this._layer.getSource().getResolutions()[0],o=this._layer.getSource().getTileGrid().getOrigin();"EPSG:3857"===n&&(i=559082263.9508929);for(var a=void 0===t.matrixPrefix?"":t.matrixPrefix,s=0;s<20;++s){var l={},u=s;l.identifier=a+u.toString(),"EPSG:3857"===n?l.matrixSize=[Math.pow(2,s),Math.pow(2,s)]:"EPSG:4326"!==n&&"EPSG:4490"!==n||(l.matrixSize=[Math.pow(2,s+1),Math.pow(2,s)]),l.scaleDenominator=i/Math.pow(2,s),l.tileSize=[256,256],l.topLeftCorner=o,l.resolution=r/Math.pow(2,s),e.push(l)}return e},d.prototype._transWMTS=function(t,e){var n,i,r={},o=t.formatUrl||t.url,a=o.lastIndexOf("?"),s={};if(-1===a)i=o;else{i=o.substr(0,a);for(var l=o.substr(a+1,o.length-1).split("&"),u=0;u<l.length;++u)s[l[u].split("=")[0]]=l[u].split("=")[1]}return r.customParams=s,r.baseURL=i,r.type="WMTS",r.layer=t.layers,r.imageFormat=t.format,r.version=void 0===t.version?"1.0.0":t.version,r.dimensions=null,r.dimensionParams={},r.requestEncoding="KVP",r.opacity=t.opacity||1,r.matrixSet=t.matrixSet,18<e&&(e=18),n=this._getWMTSMatrices(t),r.matrices=e?[n[e-1]]:n,r},d.prototype.formatLayer=function(t,e){var n=this._options,i={};switch(n.tileType){case s.WMS:i=function(t){for(var e={},n=[],i=[],r=t.layers,o=t.style,a=r.split(","),s=a.length-1;0<=s;--s)n.push(a[s].trim());if(o){for(var l=o.split(","),u=l.length-1;0<=u;--u)i.push(l[u].trim());e.styles=i}e.layers=n,e.type="WMS";var h=t.url.lastIndexOf("?");return e.baseURL=-1===h?t.url:t.url.substr(0,h),e.imageFormat=t.format||"image/png",e.opacity=t.opacity||1,e.customParams={TRANSPARENT:!0},!0===t.tiled&&(e.type="tiledwms",e.tileSize=t.tileSize||[256,256]),t.version&&(e.version=t.version),t.serverType&&(e.serverType=t.serverType),e}(n);break;case s.WMTS:i=this._transWMTS(n,t);break;case s.XYZ:i=function(t,e){var n,i={},r=t.formatUrl||t.url,o=r.lastIndexOf("?"),a={};if(-1===o)n=r;else{n=r.substr(0,o+1);for(var s=r.substr(o+1,r.length-1).split("&"),l=0;l<s.length;++l){var u=s[l].split("=");"{x}"!==u[1]&&"{y}"!==u[1]&&"{z}"!==u[1]?a[s[l].split("=")[0]]=s[l].split("=")[1]:n+=s[l]+"&"}n=n.substr(0,n.length-1)}return i.type="google",i.baseURL=n,i.customParams=a,i.imageExtension="png",i.maxZoom=e||21,i}(n,e);break;case s.SuperMapRest:i=function(t,e){var n,i={},r=t.formatUrl||t.url,o=r.lastIndexOf("?"),a={};if(-1===o)n=r;else{n=r.substr(0,o);for(var s=r.substr(o+1,r.length-1).split("&"),l=0;l<s.length;++l)a[s[l].split("=")[0]]=s[l].split("=")[1]}return a.redirect=t.redirect||!1,a.transparent=t.transparent||!0,a.cacheEnabled=t.cacheEnabled||!0,a.overlapDisplayed=t.overlapDisplayed||!1,a._cache=t.cacheEnabled||!0,i.type="supermap",i.baseURL=n,i.customParams=a,i.imageExtension=t.format||"png",i.maxZoom=e||21,i.maxExtent=t.extent,i}(n,e)}var r=n.formatToken;return r||!this._token&&!this._restHttp||(r=this._token||this._restHttp.getToken()),r&&(i.accessMode="Basic",i.accessKey=r),i},d.prototype.enableFormat=function(){return!1!==this.visible&&0!==this.opacity},d.prototype.setPrintLevel=function(t){this.level=t},d.prototype.setPrintMaxZoom=function(t){this.printMaxZoom=t},d.prototype.setSource=function(t){t.restHttp=this._restHttp,t.levelShift=this._levelShift,(t=this._sourceCreator.create(t))&&this._layer.setSource(t)},d.prototype.hitTest=function(t,e){},d.prototype.select=function(t){},d.prototype.unSelect=function(t){},d.prototype.clear=function(t){var e=null!=t&&t;this._layer.getSource().clear(e)},d.prototype.getLayer=function(){return this._layer},d.prototype.setVisible=function(t){d.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},d.prototype.setOpacity=function(t){d.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},d.prototype.setZIndex=function(t){d.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},d.prototype.setMinZoom=function(t){if(this._minZoom=t,this.map){this._minZoom=t;var e=y(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e+.001)}},d.prototype.setMaxZoom=function(t){if(this._maxZoom=t,this.map){this._maxZoom=t;var e=y(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}},d.prototype.getMinZoom=function(){var t=this._layer.getMaxResolution();return m(this.map,t-.001,this._layer.tileSize)},d.prototype.getMaxZoom=function(){var t=this._layer.getMinResolution();return m(this.map,t,this._layer.tileSize)},d.prototype.on=function(t,e){"visible"===t||"opacity"===t?d.prototype.uber.on.call(this,t,e):this.map.on(t,e)},d.prototype.un=function(t,e){"visible"===t||"opacity"===t?d.prototype.uber.un.call(this,t,e):this.map.un(t,e)},f.exports=d}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n(8),n(107),n(1),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){switch(t){case n.Point:return 1;case n.Polyline:case n.Polygon:case n.Polyhedron:case n.Wall:case n.LineString:case n.LinearRing:return 99;case n.Circle:case n.Ellipse:case n.Sphere:case n.Envelope:case n.Cylinder:case n.Cube:case n.Cone:return 2}return-1}function u(t){(t=t||{}).cursor=t.cursor||"crosshair",e.call(this,t||{}),this.drawElement=null,this.map=null,this.srid=0,this.drawLayer=t.drawLayer,this.geoBuilder=new i,this.templateElement=t.templateElement,this.templateElement&&(this.maxcps=l(this.templateElement.geometry.getGeometryType())),this.isDraw=!1,this.canContinue=t.canContinue,this.finishCoordinate=null,this.activeCommandName=t.activeCommandName||"NoopTool",this.mapx=0,this.mapy=0,this.mapz=0}return t.extend2(u,e),u.prototype.onCreate=function(t){u.prototype.uber.onCreate(t),this.map=t.map,this.srid=this.map.getSrid()},u.prototype.onClick=function(t){u.prototype.uber.onClick.call(this,t),this.pushNum=0},u.prototype.isDrawing=function(){return this.isDraw},u.prototype.switch=function(t){this.templateElement=t,this.templateElement&&(this.maxcps=l(this.templateElement.geometry.getGeometryType()))},u.prototype.onMouseDown=function(t,e,n,i,r,o,a){99==this.pushNum?(this.pushNum=0,this.endDraw()):this.entryDraw(t,r,o,n,i)},u.prototype.onMouseUp=function(t,e,n,i,r,o,a){if(2===t)this.onDblclick(null);else{this.onSetPosition(r,o);var s=this.onGeneralPoint(this.mapx,this.mapy,this.mapz,n,i);this.pushNum>=this.maxcps&&this.endDraw(s)}},u.prototype.onMouseMove=function(t,e,n,i,r,o,a){if(this.isDraw&&1<=this.pushNum&&this.pushNum<99){this.onSetPosition(r,o);var s=this.onGeneralPoint(this.mapx,this.mapy,this.mapz,n,i);this.drawing(s)}this.cursor="crosshair",this.setCursor(this.cursor)},u.prototype.onMouseClick=function(t,e,n,i,r,o,a){},u.prototype.onDblclick=function(t){},u.prototype.entryDraw=function(t,e,n,i,r){this.onSetPosition(e,n);var o=this.onGeneralPoint(this.mapx,this.mapy,this.mapz,i,r);0==t?0==this.pushNum?this.beginDraw(o):1<=this.pushNum&&this.pushNum<99&&this.pauseDraw(o,[i,r]):this.endDraw()},u.prototype.onGeneralPoint=function(){return new r({x:this.mapx,y:this.mapy,z:this.mapz,spatialReference:this.srid})},u.prototype.onSetPosition=function(t,e){this.mapx=t,this.mapy=e},u.prototype.beginDraw=function(t){if(this.templateElement){this.map.stopDbClick(),this.isDraw=!0,this.pushNum++,this.drawElement=this.templateElement.copy();var e=this.drawElement.geometry;this.geoBuilder.build(e,t,1,this.pushNum),this.drawLayer.add(this.drawElement),this.pushNum==this.maxcps&&this.endDraw(),this.onBeginDraw()}},u.prototype.pauseDraw=function(t,e){this.pushNum++;var n=this.drawElement.geometry;this.atFinish(e)?this.endDraw():(this.geoBuilder.build(n,t,2,this.pushNum),this.drawLayer.update(this.drawElement),this.pushNum>=this.maxcps&&this.endDraw(),this.onPauseDraw())},u.prototype.drawing=function(t){var e=this.drawElement.geometry;this.geoBuilder.build(e,t,3,this.pushNum),this.drawLayer.update(this.drawElement),this.onDrawing(this.drawElement)},u.prototype.deactivate=function(){u.prototype.uber.deactivate(),this.isDraw&&(this.drawLayer.clear(),this.isDraw=!1,this.finishCoordinate=null,this.pushNum=0,this.map.resumeDbClick(),this.notify()),this.map.resumeDragPan()},u.prototype.endDraw=function(){if(this.isDraw=!1,this.drawElement){var t=this.drawElement.geometry;t.normalize(),this.geoBuilder.build(t,null,4,this.pushNum),this.drawLayer.remove(this.drawElement),this.canContinue?(this.onEndDraw(this.drawElement),this.drawElement=this.templateElement.copy()):(this.activeCommand(this.activeCommandName,null),this.onEndDraw(this.drawElement),this.drawElement=null),this.finishCoordinate=null,this.pushNum=0,this.map.resumeDbClick(),this.notify()}},u.prototype.atFinish=function(t){var e=!1;if(this.finishCoordinate){var n=t[0]-this.finishCoordinate[0],i=t[1]-this.finishCoordinate[1];e=Math.sqrt(n*n+i*i)<12}return this.finishCoordinate=t,e&&(this.finishCoordinate=null),e},u.prototype.onBeginDraw=function(){},u.prototype.onDrawing=function(t){},u.prototype.onPauseDraw=function(){},u.prototype.onEndDraw=function(t){},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(53),n(15),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.borderColor=null==e.borderColor?new i({a:153,r:19,g:181,b:177}):e.borderColor,this.borderThickness=null==e.borderThickness?1:e.borderThickness,this.style=null==e.style?5:e.style,this.opacity=null==e.opacity?1:e.opacity,this.$type="FillSymbol,http://www.Gs.com"}return t.extend2(a,n),a.prototype.copy=function(){return new a({borderColor:this.borderColor.copy(),borderThickness:this.borderThickness,opacity:this.opacity,style:this.style})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(22),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e)}return t.extend2(o,n),o.prototype.numGeometries=function(){return 0},o.prototype.geometryN=function(t){return null},o.prototype.addGeometry=function(t){},o.prototype.insertGeometry=function(t,e){},o.prototype.removeGeometry=function(t){},o.prototype.removeAllGeometry=function(){},o.prototype.indexOfGeometry=function(t){},o.prototype.isGeometryEmpty=function(){},o.prototype.getGeometryCount=function(){},o.prototype.getGeometry=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(29),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){var e=t||{};n.call(this,e),this.$type="LinearRing,http://www.Gs.com"}return t.extend2(a,n),a.prototype.getGeometryType=function(){return e.LinearRing},a.prototype.copy=function(){for(var t=new a,e=0,n=this.points.length;e<n;++e)t.addPoint(this.points[e].copy());return t.setSpatialReference(this.getSpatialReference()),t},a.prototype.close=function(){if(!this.isClose()&&this.points.length){var t=this.getPoint(0);this.addPoint(t.copy())}},a.prototype.getCoordinates=function(){for(var t="",e=0,n=this.points.length;e<n;e++){var i=this.points[e];t+=i.x+","+i.y+";"}return t},a.prototype.fromCoordinates=function(t){for(var e=0,n=this.points.length;e<n;e++)this.points[e].x=t[0].lng,this.points[e].y=t[0].lat;return this},a.prototype.area=function(){var t=this.points.length;if(t<3)return 0;for(var e=this.points[0].y*(this.points[t-1].x-this.points[1].x),n=1;n<t;n++)e+=this.points[n].y*(this.points[n-1].x-this.points[(n+1)%t].x);return.5*e},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.EPSG3857=3857,i.EPSG4326=4326,i.EPSG4509=4509,i.EPSG2436=2436,i.EPSG4490=4490,i.EPSG102100=102100,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.$type="Field,http://www.Gs.com",this.oidType=0,t&&(this.name=t.name,this.alias=t.alias,this.length=t.length,this.dataType=t.dataType,this.precision=t.precision,this.pk=void 0!==t.pk&&t.pk,this.editable=void 0===t.editable||t.editable,this.isShape=void 0!==t.isShape&&t.isShape,this.nullable=void 0!==t.nullable&&t.nullable)}return i.prototype.isType=function(t){return this.dataType==t},i.prototype.isOID=function(){return this.isType(this.oidType)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.canRender=function(){},i.prototype.createLegend=function(){},i.prototype.render=function(t){},i.prototype.renderSymbol=function(t,e){},i.prototype.unRender=function(){},i.prototype.show=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.convert=function(t,e){switch(e=e||4236){case 4490:case 4326:return 111194.8742964035*t;case 3857:return t}},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n,e,t],void 0===(r=function(t,e,n,i){function r(t){}return r.prototype.copy=function(){},r.prototype.destroy=function(){t.destroyObject(this)},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this.graphiclist=[]}return i.prototype.add=function(t){this.isExist(t)||this.graphiclist.push(t)},i.prototype.remove=function(t){for(var e=0,n=this.graphiclist.length;e<n;++e)if(t===this.graphiclist[e]){this.graphiclist.splice(e,1);break}},i.prototype.getGraphic=function(t){return this.graphiclist[t]},i.prototype.getCount=function(){return this.graphiclist.length},i.prototype.clear=function(){this.graphiclist=[]},i.prototype.isExist=function(t){for(var e=0;e<this.graphiclist.length;e++)if(this.graphiclist[e]===t)return!0;return!1},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(75),n(35),n(50),n(77),n(116),n(115),n(49),n(153),n(117),n(25),n(8),n,e,t],void 0===(r=function(p,f,d,t,y,m,h,g,c,v,x,e,n,i){function r(){}function _(t,e){var n=t.properties,i=new f,r=[];for(var o in n){var a=new d({name:o}),s=new y({value:n[o]});i.add(a),r.push(s)}var l=g.fromJson(t.geometry,e),u=new m({geometry:l}),h=function(t){if(!t)return null;switch(t.getGeometryType()){case x.Point:return v.Point;case x.MultiPoint:return v.MultiPoint;case x.LineString:return v.LineString;case x.MultiLineString:return v.MultiLineString;case x.LinearRing:return v.LinearRing;case x.Polygon:return v.Polygon;case x.MultiPolygon:return v.MultiPolygon;case x.Circle:return v.Circle;case x.GeometryBag:return v.GeometryCollection;default:return v.GeometryBegin}}(l),c=new d({name:"shape",dataType:h,isShape:!0});return r.push(u),i.add(c),new p({properties:r,fields:i,id:t.id?t.id.toString():""})}function s(t){var e=t.getGeometry(),n=null;e&&(n=e.asGeoJson());for(var i=t.getFields(),r={},o=0,a=i.getCount();o<a;o++){var s=i.getField(o);if(0==s.isShape){var l=s.name;r[l]=t.getValue(l)}}return{type:"Feature",id:t.getId(),geometry:n,properties:r}}return r.fromGeoJson=function(t,e){var n="";if(!t)return null;n=t.crs?function(t){return"urn:ogc:def:crs:EPSG::3857"===t||"urn:ogc:def:crs:EPSG:3857"===t||"EPSG:3857"===t||"EPSG:102100"===t||"EPSG:102113"===t||"EPSG:900913"===t||"urn:ogc:def:crs:EPSG:6.18:3:3857"===t||"http://www.opengis.net/gml/srs/epsg.xml#3857"===t?h.EPSG3857:"CRS:84"===t||"EPSG:4326"===t||"urn:ogc:def:crs:EPSG:6.6:4326"===t||"urn:ogc:def:crs:OGC:1.3:CRS84"===t||"urn:ogc:def:crs:OGC:2:84"===t||"http://www.opengis.net/gml/srs/epsg.xml#4326"===t||"urn:x-ogc:def:crs:EPSG:4326"===t||"urn:x-ogc:def:crs:EPSG::4326"===t?h.EPSG4326:"urn:ogc:def:crs:EPSG::4490"===t||"urn:ogc:def:crs:EPSG:4490"===t||"EPSG:4490"===t?h.EPSG4490:void 0}(t.crs.properties.name):e;var i=t;if("Feature"==i.type)return _(i,n);if(i.type="FeatureCollection"){var r=i.features,o=[];if(null!=r)for(var a=0,s=r.length;a<s;++a){var l=_(r[a],n);o.push(l)}if(0<o.length){var u=new c({fields:o[0].getFields()});for(a=0,s=o.length;a<s;a++)u.add(o[a]);return u}return new c}},r.toGeoJSON=function(t){for(var e={type:"FeatureCollection",features:[],crs:{type:"name",properties:{name:""}}},n=0,i=t.size();n<i;n++){var r=t.get(n),o=s(r);if(e.features.push(o),r){var a=r.getGeometry();e.crs.properties.name="EPSG:"+a.getSpatialReference()}}return e},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.encode=function(t){for(var e=atob(t),n=e.length,i=new Uint8Array(n);n--;)i[n]=e.charCodeAt(n);return i},i.decode=function(t){for(var e="",n=0,i=t.length;n<i;++n)e+=String.fromCharCode(t[n]);return btoa(e)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(53),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.$type="MarkerSymbol,http://www.Gs.com"}return t.extend2(o,n),o.prototype.copy=function(){return new o(this)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n(47),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){n.call(this,t),r.call(this,t),this.geometries=[],this.$type="GeometryBag,http://www.Gs.com"}return t.extend2(l,r),t.extend2(l,n),l.prototype.addGeometry=function(t){this.geometries.push(t)},l.prototype.insertGeometry=function(t,e){this.geometries.splice(t,0,e)},l.prototype.removeGeometry=function(t){var e=this.geometries.indexOf(t);this.geometries.splice(e,1)},l.prototype.removeAllGeometry=function(){this.geometries.splice(0,this.geometries.length)},l.prototype.indexOfGeometry=function(t){this.geometries.indexOf(t)},l.prototype.isGeometryEmpty=function(){return 0==this.geometries.length},l.prototype.getGeometryCount=function(){return this.geometries.length},l.prototype.getGeometry=function(t){return this.geometries[t]},l.prototype.setSpatialReference=function(t){this.spatialReference=t;for(var e=0,n=this.geometries.length;e<n;++e)this.geometries[e].setSpatialReference(t)},l.prototype.getSpatialReference=function(){return this.spatialReference},l.prototype.getGeometryType=function(){return e.GeometryBag},l.prototype.equals=function(t){return!1},l.prototype.normalize=function(){for(var t=0,e=this.geometries.length;t<e;++t)this.geometries[t].normalize()},l.prototype.offset=function(t){for(var e=0,n=this.geometries.length;e<n;++e)this.geometries[e].offset(t);return this},l.prototype.copy=function(){var t=new l;t.spatialReference=this.spatialReference;for(var e=0,n=this.geometries.length;e<n;++e)t.addGeometry(this.geometries[e].copy());return t},l.prototype.envelope=function(){for(var t=new i({spatialReference:this.spatialReference}),e=0,n=this.geometries.length;e<n;++e)t=t.union(this.geometries[e].envelope());return t},l.prototype.asWkt=function(t){for(var e=this.getGeometryCount(),n="",i=0;i<e;i++)n+=this.geometries[i].asWkt(t)+",";return"geometrycollection({0})".replace("{0}",n.substring(0,n.length-1))},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(220),n(13),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){var e=t||{};n.call(this,e),this.geometries=[],this.$type="MultiLineString,http://www.Gs.com"}return t.extend2(s,n),s.prototype.getGeometryType=function(){return e.MultiLineString},s.prototype.isClose=function(){return!1},s.prototype.numGeometries=function(){return this.geometries.length},s.prototype.geometryN=function(t){if(0<=t&&t<this.geometries.length)return this.geometries[t]},s.prototype.length=function(){return 0},s.prototype.addGeometry=function(t){this.geometries.push(t)},s.prototype.insertGeometry=function(t,e){this.geometries.splice(t,0,e)},s.prototype.removeGeometry=function(t){var e=this.geometries.indexOf(t);this.geometries.splice(e,1)},s.prototype.removeAll=function(){this.geometries.splice(0,this.geometries.length)},s.prototype.indexOf=function(t){return this.geometries.indexOf(t)},s.prototype.getPointCount=function(){for(var t=0,e=0,n=this.geometries.length;e<n;++e){t+=this.geometries[e].getPointCount()}return t},s.prototype.getPoint=function(t){for(var e=0,n=0,i=this.geometries.length;n<i;++n){var r=this.geometries[n];if(t<(e+=r.getPointCount()))return r.getPoint(r.getPointCount()-(e-t))}},s.prototype.copy=function(){var t=new s;t.spatialReference=this.spatialReference;for(var e=0,n=this.geometries.length;e<n;++e)t.addGeometry(this.geometries[e].copy());return t},s.prototype.envelope=function(){for(var t=new i({spatialReference:this.spatialReference}),e=0,n=this.geometries.length;e<n;++e)t=t.union(this.geometries[e].envelope());return t},s.prototype.asWkt=function(t){for(var e=this.numGeometries(),n="",i=0;i<e;++i){var r=this.geometryN(i).points;n+=","+this.points2WKT(r,t)}return"multilinestring({0})".replace("{0}",n.substr(1))},s.prototype.asGeoJson=function(t){var e={type:"",coordinates:[]},n=this.numGeometries();e.type="MultiLineString";for(var i=0;i<n;i++){var r=this.geometryN(i).points;e.coordinates.push(this.getPointsArray(r,t))}return e},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(149),n(9),n,e,t],void 0===(r=function(e,t,n,i,r){e.defs("EPSG:4490","+title=CGCS2000+proj=longlat +ellps=GRS80 +no_defs"),t.proj.addProjection(new t.proj.Projection({code:"EPSG:4490",units:"degress",worldExtent:[-180,-90,180,90],extent:[-180,-90,180,90],global:!0})),t.proj.addCoordinateTransforms("EPSG:4490","EPSG:3857",function(t){return e("EPSG:4490","EPSG:3857",t)},function(t){return e("EPSG:3857","EPSG:4490",t)});var o={},a=function(s){return function(t,e,n){var i,r=t.length,o=n||2;i=e||(2!==o?t.slice():new Array(r));for(var a=0;a<r;a+=o)s(t,i,a);return i}},p=function(t,e,n,i){var r=t[n],o=t[n+1],a=i[0]+i[1]*Math.abs(r),s=Math.abs(o)/i[9],l=i[2]+i[3]*s+i[4]*s*s+i[5]*s*s*s+i[6]*s*s*s*s+i[7]*s*s*s*s*s+i[8]*s*s*s*s*s*s;e[n]=a*(r<0?-1:1),e[n+1]=l*(o<0?-1:1)},s=function(t,e){var n,i,r,o,a,s,l=.006693421622965943,u=(r=2*(n=t-105)-100+3*(i=e-35)+.2*i*i+.1*n*i+.2*Math.sqrt(Math.abs(n)),r+=2*(20*Math.sin(6*n*Math.PI)+20*Math.sin(2*n*Math.PI))/3,r+=2*(20*Math.sin(i*Math.PI)+40*Math.sin(i/3*Math.PI))/3,r+=2*(160*Math.sin(i/12*Math.PI)+320*Math.sin(i*Math.PI/30))/3),h=(s=300+(o=t-105)+2*(a=e-35)+.1*o*o+.1*o*a+.1*Math.sqrt(Math.abs(o)),s+=2*(20*Math.sin(6*o*Math.PI)+20*Math.sin(2*o*Math.PI))/3,s+=2*(20*Math.sin(o*Math.PI)+40*Math.sin(o/3*Math.PI))/3,s+=2*(150*Math.sin(o/12*Math.PI)+300*Math.sin(o/30*Math.PI))/3),c=e/180*Math.PI,p=Math.sin(c);p=1-l*p*p;var f=Math.sqrt(p);return u=180*u/(6378245*(1-l)/(p*f)*Math.PI),[h=180*h/(6378245/f*Math.cos(c)*Math.PI),u]},l=function(t,e){return t<72.004||137.8347<t||(e<.8293||55.8271<e)},u={RADIUS:6378137,MAX_LATITUDE:85.0511287798,RAD_PER_DEG:Math.PI/180};u.forward=a(function(t,e,n){var i=Math.max(Math.min(u.MAX_LATITUDE,t[n+1]),-u.MAX_LATITUDE),r=Math.sin(i*u.RAD_PER_DEG);e[n]=u.RADIUS*t[n]*u.RAD_PER_DEG,e[n+1]=u.RADIUS*Math.log((1+r)/(1-r))/2}),u.inverse=a(function(t,e,n){e[n]=t[n]/u.RADIUS/u.RAD_PER_DEG,e[n+1]=(2*Math.atan(Math.exp(t[n+1]/u.RADIUS))-Math.PI/2)/u.RAD_PER_DEG});var h={};h.forward=a(function(t,e,n){var i,r,o,a,s=function(t,e,n){var i=n-e;for(;n<t;)t-=i;for(;t<e;)t+=i;return t}(t[n],-180,180),l=(i=t[n+1],r=-74,o=74,i=Math.max(i,r),i=Math.min(i,o)),u=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],h=[75,60,45,30,15,0],c=null;for(a=0;a<h.length;++a)if(h[a]<=l){c=u[a];break}if(null===c)for(a=h.length-1;0<=a;--a)if(l<=-h[a]){c=u[a];break}e[n]=s,e[n+1]=l,p(e,e,n,c)}),h.inverse=a(function(t,e,n){for(var i=Math.abs(t[n+1]),r=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],o=null,a=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],s=0;s<a.length;s++)if(a[s]<=i){o=r[s];break}p(t,e,n,o)});var c={};c.toWGS84=a(function(t,e,n){var i=t[n],r=t[n+1];if(!l(i,r)){var o=s(i,r);i-=o[0],r-=o[1]}e[n]=i,e[n+1]=r}),c.fromWGS84=a(function(t,e,n){var i=t[n],r=t[n+1];if(!l(i,r)){var o=s(i,r);i+=o[0],r+=o[1]}e[n]=i,e[n+1]=r});var f={toWGS84:function(t,e,n){var s=3e3*Math.PI/180;var i=a(function(t,e,n){var i=t[n]-.0065,r=t[n+1]-.006,o=Math.sqrt(i*i+r*r)-2e-5*Math.sin(r*s),a=Math.atan2(r,i)-3e-6*Math.cos(i*s);return e[n]=o*Math.cos(a),e[n+1]=o*Math.sin(a),e})(t,e,n);return c.toWGS84(i,i,n)},fromWGS84:function(t,e,n){var s=3e3*Math.PI/180,i=c.fromWGS84(t,e,n);return a(function(t,e,n){var i=t[n],r=t[n+1],o=Math.sqrt(i*i+r*r)+2e-5*Math.sin(r*s),a=Math.atan2(r,i)+3e-6*Math.cos(i*s);return e[n]=o*Math.cos(a)+.0065,e[n+1]=o*Math.sin(a)+.006,e})(i,i,n)}};o.smerc2bmerc=function(t,e,n){var i=u.inverse(t,e,n);return i=f.fromWGS84(i,i,n),h.forward(i,i,n)},o.bmerc2smerc=function(t,e,n){var i=h.inverse(t,e,n);return i=f.toWGS84(i,i,n),u.forward(i,i,n)},o.bmerc2ll=function(t,e,n){var i=h.inverse(t,e,n);return f.toWGS84(i,i,n)},o.ll2bmerc=function(t,e,n){var i=f.fromWGS84(t,e,n);return h.forward(i,i,n)},o.gcjmerc2ll=function(t,e,n){var i=u.inverse(t,e,n);return c.toWGS84(i,i,n)},o.ll2gcjmerc=function(t,e,n){var i=c.fromWGS84(t,e,n);return u.forward(i,i,n)},o.ll2smerc=u.forward,o.smerc2ll=u.inverse,o.ll2bll=f.fromWGS84,o.bll2ll=f.toWGS84,o.bmerc2GCJ02=function(t,e,n){var i=h.inverse(t,e,n);return i=f.toWGS84(i,i,n),c.fromWGS84(i,e,n)},o.GCJ022bmec=function(t,e,n){var i=c.toWGS84(i,i,n);return o.ll2bmerc(i,e,n)};var d=new t.proj.Projection({code:"baidu",extent:t.extent.applyTransform([72.004,.8293,137.8347,55.8271],o.ll2bmerc),units:"m"});t.proj.addProjection(d),t.proj.addCoordinateTransforms("EPSG:4490",d,o.ll2bmerc,o.bmerc2ll),t.proj.addCoordinateTransforms("EPSG:4326",d,o.ll2bmerc,o.bmerc2ll),t.proj.addCoordinateTransforms("EPSG:3857",d,o.smerc2bmerc,o.bmerc2smerc);var y=new t.proj.Projection({code:"gcj02",extent:t.extent.applyTransform([-180,-90,180,90],o.ll2gcjmerc),units:"m"});return t.proj.addProjection(y),t.proj.addCoordinateTransforms("EPSG:4490",y,o.ll2gcjmerc,o.gcjmerc2ll),t.proj.addCoordinateTransforms("EPSG:4326",y,o.ll2gcjmerc,o.gcjmerc2ll),t.proj.addCoordinateTransforms("EPSG:3857",y,o.ll2gcjmerc,o.gcjmerc2ll),o.ll2gcj02=c.fromWGS84,r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.None=-1,i.OID=0,i.Int=1,i.Long=2,i.Float=5,i.Double=6,i.Char=11,i.String=12,i.Text=13,i.Date=21,i.Time=22,i.Blob=31,i.Clob=32,i.Boolean=41,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(37),n(262),n(53),n(32),n(28),n(119),n(31),n(41),n(120),n(34),n(63),n(95),n(78),n(121),n(156),n(157),n(9),n,e,t],void 0===(r=function(t,n,i,e,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_){function w(t,e){if(!t)return new g.style.Style;if(t.tag)return t.tag;var n;if(t instanceof o)n=E(t);else if(t instanceof a)n=I(t);else if(t instanceof r)n=R(t);else if(t instanceof s)n=N(t);else if(t instanceof l)n=D(t);else if(t instanceof p)n=G(t);else if(t instanceof h)n=V(t);else if(t instanceof c)n=B(t);else{if(t instanceof f)return M(t,"linear");t instanceof d?n=A(t,e):t instanceof y||t instanceof m&&(n=N(t,"regular"))}return n}function b(t){i.call(this);var e=t||{};this.symbolCache=e.cache?new n:void 0}var P=Math.PI/180,S=document.createElement("canvas"),C=S.getContext("2d"),M=function(t,e){for(var r,o,a=t.stops,n=0,s=a.getCount();n<s;n++)(o=a.getItem(n)).color.a*=t.opacity;return function(t,e){r=C.createLinearGradient(0,0,e||1,0),t=t.Symbol?t.Symbol:t;for(var n=0;n<s;n++)o=a.getItem(n),r.addColorStop(o.step,o.color.toHex());var i=O(t);return i.fill.setColor(r),new g.style.Style(i)}},T=g.has.DEVICE_PIXEL_RATIO,A=function(t,e){S.width=t.width*T,S.height=t.height*T;var n=new Image,i=t.marker;n.width=i.width*T,n.height=i.height*T,n.src=i.source,t.backGround.a*=t.opacity;var r=t.backGround.toHex();C.fillStyle=r,C.fillRect(0,0,S.width,S.height);var o=(S.width-n.width)/2,a=(S.height-n.height)/2,s=O(t),l=new g.style.Style(s);return n.onload=function(){C.drawImage(n,o,a),s.fill.setColor(C.createPattern(S,"repeat")),e(l)},l},E=function(t){return new g.style.Style({stroke:L(t)})},I=function(t){for(var e=[],n=0;n<t.lineSymbols.length;n++){var i=new g.style.Style({stroke:L(t.lineSymbols[n])});e.push(i)}return e},L=function(t){for(var e=u[t.style],n=[],i=0,r=e.length;i<r;++i)6==t.style?n[i]=e[i]*t.width*.1:n[i]=e[i]*t.width*.8;return new g.style.Stroke({color:t.color.toArray(),width:t.width,lineDash:n})},R=function(t){var e=O(t);return new g.style.Style(e)},O=function(t){for(var e=u[t.style],n=[],i=0,r=e.length;i<r;++i)n[i]=e[i]*t.borderThickness*.8;return{fill:new g.style.Fill({color:void 0!==t.fillColor?t.fillColor.toArray():[1,0,0,1]}),stroke:new g.style.Stroke({color:t.borderColor.toArray(),width:t.borderThickness,lineDash:n})}},N=function(t,e){return new g.style.Style({image:k(t,e)})},k=function(t,e){var n=new g.style.Fill({color:t.fillColor.toArray()}),i=new g.style.Stroke({color:t.borderColor.toArray(),width:t.borderThickness});switch(e=e||t.style){case"triangle":return z(n,i,3,t.size,void 0,void 0,0);case"square":return z(n,i,4,t.size,void 0,void 0,45);case"x":return z(n,i,4,t.size,0,0,45);case"cross":return z(n,i,4,t.size,0,0,0);case"star":return z(n,i,5,t.size,0,t.size/2.618,t.angle);case"regular":return z(n,i,t.pointCount,t.size,t.radius1,t.radius2,t.angle);default:return new g.style.Circle({fill:n,radius:parseInt(t.size),stroke:i})}},z=function(t,e,n,i,r,o,a){return n=n||6,a=a||0,new g.style.RegularShape({fill:t,stroke:e,points:parseInt(n),radius:parseFloat(i),radius1:parseFloat(r),radius2:parseFloat(o),angle:a*P})},D=function(t){return new g.style.Style({image:F(t)})},F=function(t){return new g.style.Icon({anchor:[t.offsetX,t.offsetY],size:[t.width,t.height],opacity:t.opacity,anchorXUnits:"pixels",anchorYUnits:"pixels",rotation:t.rotation*P,src:t.source,scale:t.scale})},G=function(t){return new g.style.Style({image:j(t)})},j=function(t){return new g.style.Icon({anchor:[t.offsetX,t.offsetY],anchorXUnits:"fraction",anchorYUnits:"fraction",src:t.source,imgSize:[t.width,t.height],opacity:t.opacity,rotation:t.rotation*P,scale:t.scale})},V=function(t){return new g.style.Style({text:q(t)})},q=function(t){var e="normal "+t.fontSize+"px "+t.fontFamilyName,n=void 0!==t.borderColor?t.borderColor.toArray():void 0;return new g.style.Text({textAlign:t.textAlign,textBaseline:t.textBaseline||"middle",font:e,text:t.text,fill:new g.style.Fill({color:t.foreground.toArray()}),stroke:new g.style.Stroke({color:n,width:t.borderThickness}),offsetX:t.offsetX,offsetY:t.offsetY,rotation:t.rotation*P,backgroundFill:new g.style.Fill({color:t.textBackgroundColor.toArray()}),backgroundStroke:new g.style.Stroke({color:t.textBackgroundBorderColor.toArray(),width:t.textBackgroundBorderThickness}),padding:t.padding})},B=function(t){var e=t.fillSymbol?O(t.fillSymbol):void 0,n=null,i=t.markerSymbol;i instanceof s?n=k(i):i instanceof l?n=F(i):i instanceof m?n=k(i,"regular"):i instanceof p&&(n=j(i));var r=t.textSymbol?q(t.textSymbol):void 0;return new g.style.Style({fill:e?e.fill:void 0,stroke:e?e.stroke:void 0,image:n,text:r})};return t.extend2(b,i),b.prototype.fromSymbol=function(t){},b.prototype.toSymbol=function(t,e){if(this.symbolCache){if(this.symbolCache.contains(t))return this.symbolCache.get(t);var n=w(t,e);return this.symbolCache.put(t,n),n}return w(t,e)},_.exports=b}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(53),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.fillSymbol=e.fillSymbol,this.markerSymbol=e.markerSymbol,this.textSymbol=e.textSymbol,this.$type="CurrencySymbol,http://www.Gs.com"}return t.extend2(o,n),o.prototype.copy=function(){return new o({fillSymbol:void 0!==this.fillSymbol?this.fillSymbol.copy():void 0,markerSymbol:null!=this.markerSymbol?this.markerSymbol.copy():void 0,textSymbol:void 0!==this.textSymbol?this.textSymbol.copy():void 0})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(21),n(8),n(60),n(36),n(1),n(2),n(3),n(6),n(5),n(24),n(146),n(110),n(13),n(148),n(29),n(48),n(58),n(8),n,e,t],void 0===(r=function(t,e,l,r,n,p,a,s,i,u,h,f,c,d,y,m,g,o,l,v,x,_){function w(t){}var b=new n,P=this;function S(t,e){var n=t.copy();return n.width=n.width*n.scale,n.height=n.height*n.scale,n.scale=n.scale*e/1.3,n}function C(t,e){var n={type:"polygon"};return n.fillColor=t.fillColor.toHexExcludeAlpha(),n.fillOpacity=t.fillColor.a/255,n.strokeColor=t.borderColor.toHexExcludeAlpha(),n.strokeWidth=Math.ceil(t.borderThickness*e/1.3)||0,n.strokeOpacity=t.borderColor.a/255,n.strokeLinecap="round",n.strokeDashstyle={0:"dash",1:"dashdot",2:"longdashdot",3:"dot",5:"solid"}[t.style],n}function M(t,e){var n={};return n.type="line",n.strokeColor=t.color.toHexExcludeAlpha(),n.strokeWidth=Math.ceil(t.width*e/1.3)||0,n.strokeOpacity=t.color.a/255,n.strokeLinecap="round",n.strokeDashstyle={0:"dash",1:"dashdot",2:"longdashdot",3:"dot",5:"solid"}[t.style],n}function T(t,e,n){var i={type:"point"};if(i.externalGraphic=t.source,i.graphicOpacity=t.opacity,t.enableUrl)n&&(i.graphicFormat=n);else{var r=t.source.split(";")[0];if(r){var o=r.split(":")[1];i.graphicFormat=o||"image/png"}else i.graphicFormat="image/png"}return i.graphicWidth=parseInt(t.width*e/1.3),i.graphicHeight=parseInt(t.height*e/1.3),i.rotation=t.rotation,i.graphicXOffset=0,i.graphicYOffset=parseInt(-t.offsetY*e/2.6),i.scale=t.scale,i}function A(t,e){var n={type:"point"};return n.fillColor=t.fillColor.toHexExcludeAlpha(),n.fillOpacity=t.fillColor.a/255,n.graphicName=t.style,n.pointRadius=parseInt(t.size*e/1.3),n.strokeColor=t.borderColor.toHexExcludeAlpha(),n.strokeWidth=Math.ceil(t.borderThickness*e/1.3)||0,n.strokeOpacity=t.borderColor.a/255,n.labelXOffset=t.offsetX,n.labelYOffset=t.offsetY,n}function E(t,e){var n={type:"text"};n.fontColor=t.foreground.toHexExcludeAlpha(),n.fontFamily=t.fontFamilyName,n.fontSize=parseInt(t.fontSize/1.3*e)+"px",n.fontWeight=t.fontWeight,n.haloColor=t.borderColor.toHexExcludeAlpha(),n.haloRadius=Math.ceil(t.borderThickness/2.6*e)||0,n.haloOpacity=t.borderColor.a/255,n.label=t.text,n.fillColor=t.textBackgroundColor.toHexExcludeAlpha(),n.fillOpacity=t.textBackgroundColor.a/255;var i="",r="";if(t.textAlign)switch(t.textAlign){case"left":i="l";break;case"right":i="r";break;case"center":default:i="c"}if(t.textBaseline)switch(t.textBaseline){case"top":r="t";break;case"bottom":r="b";break;case"middle":default:r="m"}return t.textAlign&&t.textBaseline?n.labelAlign=i+r:(n.labelAnchorPointX=.5,n.labelAnchorPointY=.8),n.labelRotation=t.rotation,n.labelXOffset=t.offsetX,n.labelYOffset=t.offsetY,n}function I(t,e){var n=e([t.x,t.y]),i=new p({x:n[0],y:n[1],spatialReference:3857});return b.transform(i,t.getSpatialReference())}function L(t,e,n){for(var i=t.points,r=0,o=i.length;r<o;r++)n.addPoint(I(i[r],e));return n}function R(t,e){var n,i=t.getGeometryCount(),r=new u;r.setSpatialReference(t.getSpatialReference());for(var o=0;o<i;++o)n=new g,L(t.getGeometry(o),e,n),r.addGeometry(n);return r}return w.toGeoJSON=function(t,e,n,i){var r={type:"Feature"};if(r.properties=t,e.getGeometryType()===l.GeometryBag){n&&i&&(e=this.transGeometryToGCJ(e.copy(),i));var o=e.getGeometryCount(),a=[];if(o)for(var s=0;s<o;++s)a.push(e.getGeometry(s).asGeoJson());r.geometries=a}else n&&i&&(e=this.transGeometryToGCJ(e.copy(),i)),r.geometry=e.asGeoJson();return r},w.toGeoStyle=function(t,e){var n={},i=[];if(t.hasOwnProperty("$type")){switch(t.$type.split(",")[0].trim()){case"SimpleFillSymbol":i.push(C(t,e));break;case"SimpleLineSymbol":i.push(M(t,e));break;case"LineCombinedSymbol":for(var r=0;r<t.lineSymbols.length;++r){var o=t.lineSymbols[r];i.push(M(o,e))}break;case"SimpleMarkerSymbol":i.push(A(t,e));break;case"PictureMarkerSymbol":var a=S(t,e);i.push(T(a,e));break;case"VectorMarkerSymbol":var s="image/svg";a=S(t,e);i.push(T(a,e,s));break;case"TextSymbol":i.push(E(t,e));break;case"CurrencySymbol":if(t.fillSymbol&&i.push(C(t.fillSymbol,e)),t.markerSymbol){var l=t.markerSymbol;switch(t.markerSymbol.$type.split(",")[0].trim()){case"SimpleMarkerSymbol":i.push(A(l,e));break;case"PictureMarkerSymbol":i.push(T(l,e));break;case"VectorMarkerSymbol":s="image/svg",a=S(l,e);i.push(T(a,e,s))}}t.textSymbol&&i.push(E(t.textSymbol,e))}n.symbolizers=i}return n},w.transGeometryToGCJ=function(t,e){var n,i=t.getGeometryType();switch(e){case"gjc02":n=r.ll2gcjmerc;break;case"baidu":n=r.ll2bmerc}if(!n)return t;switch(i){case l.Polyline:return function(t,e){var n,i=new s;i.setSpatialReference(t.getSpatialReference());for(var r=t.getGeometryCount(),o=0;o<r;++o)n=new a,L(t.getGeometry(o),e,n),i.addGeometry(n);return i}(t,n);case l.Polygon:return R(t,n);case l.MultiPolygon:return function(t,e){var n=new h;n.setSpatialReference(t.getSpatialReference());for(var i=t.getGeometryCount(),r=0;r<i;++r){var o=t.getGeometry(r);n.addGeometry(R(o,e))}return n}(t,n);case l.Point:return I(t,n);case l.Circle:return function(t,e){var n=t.center,i=t.radius,r=new p({x:n.x+i,y:n.y,z:n.z,spatialReference:t.getSpatialReference()}),o=I(n,e),a=I(r,e).x-o.x;return new c({center:o,radius:a,spatialReference:t.getSpatialReference()})}(t,n);case l.Ellipse:return function(t,e){var n=t.center,i=t.axisX,r=t.axisY,o=new p({x:n.x+i,y:n.y,z:n.z,spatialReference:t.getSpatialReference()}),a=new p({x:n.x,y:n.y-r,z:n.z,spatialReference:t.getSpatialReference()}),s=I(n,e),l=I(o,e),u=I(a,e),h=l.x-s.x,c=s.y-u.y;return new f({center:s,axisX:h,axisY:c,spatialReference:target})}(t,n);case l.Envelope:return function(t,e){var n=new p({x:t.maxx,y:t.maxy,spatialReference:t.getSpatialReference()}),i=new p({x:t.minx,y:t.miny,spatialReference:t.getSpatialReference()}),r=I(n,e),o=I(i,e);return new d({minx:o.x,miny:o.y,maxx:r.x,maxy:r.y,minz:t.minz,maxz:t.maxz,spatialReference:t.getSpatialReference()})}(t,n);case l.Square:return function(t,e){var n=t.center,i=new p({x:n.x+.5*t.side,y:n.y,spatialReference:t.getSpatialReference()}),r=I(n,e),o=I(i,e);return new y({center:r,side:2*(o.x-r.x),spatialReference:t.getSpatialReference()})}(t,n);case l.LineString:return function(t,e){var n=new m;n.setSpatialReference(t.getSpatialReference());for(var i=t.points,r=0,o=i.length;r<o;r++)n.addPoint(I(i[r],e));return n}(t,n);case l.GeometryBag:return function(t,e){var n=new o;n.setSpatialReference(t.getSpatialReference());for(var i=0,r=t.geometries.length;i<r;i++)n.geometries[i]=P.transGeometryToGCJ(t.geometries[i],e);return n}(t,target,transform);default:return t}},_.exports=w}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(79),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.tileSize=t.tileSize,this.resolutions=t.resolutions,this.origin=t.origin,this.tileUrlFunction=t.tileUrlFunction}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.XYZ},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(79),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.crossOrigin=t.crossOrigin}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.TileImage},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.$type="ServiceCapability,http://www.Gs.com",this.name=e.name,this.alias=e.alias,this.srid=e.srid}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(83),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.expression=t.expression,this.matchCase=t.matchCase}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(27),n(39),n,e,t],void 0===(r=function(e,t,n,i,r){function o(t){t=t||{},this.id=e.newGuid(),this.x=t.x,this.y=t.y,this.width=t.width||10,this.height=t.height||10,this.name=t.name}return o.prototype.getPatternType=function(){return t.Pattern},o.prototype.toHtml=function(){},o.prototype.format=function(){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function l(t){var e=t||{};this.x=void 0===e.x?0:e.x,this.y=void 0===e.y?0:e.y,this.z=void 0===e.z?0:e.z}return l.prototype.normalize=function(t){var e=Math.sqrt(Math.pow(this.x,2)+Math.pow(this.y,2)+Math.pow(this.z,2));return(t=t||new l).x=this.x/e,t.y=this.y/e,t.z=this.z/e,t},l.fromPoint=function(t,e){return new l({x:e.x-t.x,y:e.y-t.y,z:e.z-t.z})},l.negate=function(t){if(!t)return new l;var e=-t.x,n=-t.y,i=-t.z;return new l({x:e,y:n,z:i})},l.add=function(t,e){t=t||new l,e=e||new l;var n=t.x+e.x,i=t.y+e.y,r=t.z+e.z;return new l({x:n,y:i,z:r})},l.subtract=function(t,e){return e=l.negate(e),l.add(t,e)},l.dot=function(t,e){return t&&e?t.x*e.x+t.y*e.y+t.z*e.z:0},l.cross=function(t,e){if(!t||!e)return new l;var n=t.x,i=t.y,r=t.z,o=e.x,a=e.y,s=e.z;return new l({x:i*s-r*a,y:r*o-n*s,z:n*a-i*o})},l.angleBetween=function(t,e){var n=t.normalize(),i=e.normalize(),r=l.dot(n,i),o=l.magnitude(l.cross(n,i));return Math.atan2(o,r)},l.magnitude=function(t){return t?Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2)+Math.pow(t.z,2)):0},l.applyMatrix3=function(t,e){var n=t.x,i=t.y,r=t.z;return t.x=e[0]*n+e[3]*i+e[6]*r,t.y=e[1]*n+e[4]*i+e[7]*r,t.z=e[2]*n+e[5]*i+e[8]*r,t},l.applyMatrix4=function(t,e){var n=t.x,i=t.y,r=t.z;return t.x=e[0]*n+e[4]*i+e[8]*r+e[12],t.y=e[1]*n+e[5]*i+e[9]*r+e[13],t.z=e[2]*n+e[6]*i+e[10]*r+e[14],t},n.exports=l}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(87),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).layerTypes=[n.ElementLayer,n.CanvasLayer,n.ClusterLayer],e.call(this,t)}return t.extend2(a,e),a.prototype.onSelectGraphic=function(t,e){this.onSelectElement(t,e.element)},a.prototype.onUnSelectGraphic=function(){this.onUnSelectElement()},a.prototype.onSelectElement=function(t,e){},a.prototype.onUnSelectElement=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(207),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=t.layer,this.running=!1,this.pasued=!1,this.gap=t.gap||0,this.count=t.count||0,this.loop=t.loop,this.done=null,this.canDelete=!1}return t.extend2(o,e),o.prototype.start=function(t,e){this.running||(this.running=!0,this.index=0,this.gapCount=0,this.done=t,this.doStart())},o.prototype.reStart=function(t){this.running&&(this.index=0,this.gapCount=0,this.done=t)},o.prototype.pause=function(){this.running&&!this.pasued&&(this.pasued=!0)},o.prototype.resume=function(){this.pasued&&(this.pasued=!1)},o.prototype.stop=function(){this.running&&(0==this.loop?(this.running=!1,this.doStop(),this.canDelete=!0,this.done()):this.reStart(this.done))},o.prototype._step=function(t){this.running&&!this.pasued&&(this.gapCount+=t,this.gapCount>=this.gap&&(this.gapCount=0,1===this.initialCount&&!0===this.loop&&this.index>=this.count&&(this.index=0),this.index>this.count?this.stop():this.doUpdate(this.index++,this.count)))},o.prototype.doStart=function(){},o.prototype.doUpdate=function(t,e){},o.prototype.doStop=function(){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function r(){this.attributes=[],this.$type="AttributeSet,http://www.Gs.com"}return r.prototype.copy=function(){for(var t=new r(this),e=0,n=this.attributes.length;e<n;++e){var i=this.attributes[e];t.add(i.copy())}return t},r.prototype.add=function(t){this.attributes.push(t)},r.prototype.remove=function(t){var e=this.attributes.indexOf(t);this.attributes.splice(e,1)},r.prototype.getCount=function(){return this.attributes.length},r.prototype.getItem=function(t){return this.attributes[t]},r.prototype.find=function(t){for(var e=0;e<this.attributes.length;++e){var n=this.attributes[e];if(n.name==t)return n}return null},r.prototype.findByDic=function(t){for(var e=0;e<this.attributes.length;++e){var n=this.attributes[e];if(n.value==t)return n}return null},r.prototype.contains=function(t){for(var e=0;e<this.attributes.length;++e){if(this.attributes[e].name==t)return!0}return!1},r.prototype.containsDic=function(t){for(var e=0;e<this.attributes.length;++e){if(this.attributes[e].dic==t)return!0}return!1},n.exports=r}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(92),n(47),n(22),n(8),n(13),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l){function u(t){i.call(this,t),e.call(this,t),n.call(this,t),this.geometries=[],this.$type="MultiPoint,http://www.Gs.com"}return t.extend2(u,e),t.extend2(u,n),u.prototype.numGeometries=function(){return this.geometries.length},u.prototype.geometryN=function(t){if(0<=t&&t<this.geometries.length)return this.geometries[t]},u.prototype.addGeometry=function(t){this.geometries.push(t)},u.prototype.insertGeometry=function(t,e){this.geometries.splice(t,0,e)},u.prototype.removeGeometry=function(t){var e=this.geometries.indexOf(t);this.geometries.splice(e,1)},u.prototype.removeAll=function(){this.geometries.splice(0,this.geometries.length)},u.prototype.indexOf=function(t){return this.geometries.indexOf(t)},u.prototype.getGeometryType=function(){return r.MultiPoint},u.prototype.addPoint=function(t){this.geometries.push(t)},u.prototype.insertPoint=function(t,e){this.geometries.splice(t,0,e)},u.prototype.removePoint=function(t){var e=this.geometries.indexOf(t);this.geometries.splice(e,1)},u.prototype.removeAllPoint=function(){this.geometries.splice(0,this.geometries.length)},u.prototype.getPointCount=function(){return this.geometries.length},u.prototype.getPoint=function(t){return this.geometries[t]},u.prototype.indexOfPoint=function(t){return this.geometries.indexOf(t)},u.prototype.isPointEmpty=function(){return 0==this.geometries.length},u.prototype.copy=function(){var t=new u;t.spatialReference=this.spatialReference;for(var e=0,n=this.geometries.length;e<n;++e)t.addPoint(this.geometries[e].copy());return t},u.prototype.setSpatialReference=function(t){this.spatialReference=t;for(var e=0,n=this.geometries.length;e<n;++e)this.geometries[e].setSpatialReference(t)},u.prototype.envelope=function(){for(var t=miny=minz=Number.MAX_VALUE,e=maxy=maxz=-Number.MAX_VALUE,n=0,i=this.geometries.length;n<i;++n){var r=this.geometries[n];t>r.x&&(t=r.x),e<r.x&&(e=r.x),miny>r.y&&(miny=r.y),maxy<r.y&&(maxy=r.y),minz>r.z&&(minz=r.z),maxz<r.z&&(maxz=r.z)}return new o({minx:t,maxx:e,miny:miny,maxy:maxy,minz:minz,maxz:maxz,spatialReference:this.spatialReference})},u.prototype.asWkt=function(t){var e=this.points2WKT(this.geometries,t);return"multipoint{0}".replace("{0}",e)},u.prototype.asGeoJson=function(t){var e={type:"MultiPoint",coordinates:[]},n=this.getPointsArray(this.geometries,t);return e.coordinates.push(n),e},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(114),n(25),n,e,t],void 0===(r=function(t,e,r,n,i,o){function a(t){t=t||{},e.call(this,t),this.$type="GFeature,http://www.Gs.com"}return t.extend2(a,e),a.prototype.getGeometry=function(){return this.getIdentity()},a.prototype.setGeometry=function(t){this.setIdentity(t)},a.prototype.getIdentityIndex=function(){for(var t=this.getFields(),e=0,n=t.getCount();e<n;e++){var i=t.getField(e);if(r.isGeometryType(i.dataType))return e}return-1},a.prototype.copy=function(){for(var t=[],e=0,n=this.properties.length;e<n;e++)t.push(this.properties[e].copy());return new a({fields:this.fields,properties:t})},a.prototype.unReset=function(){this.olFeature=void 0,delete this.olFeature},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(35),n(77),n(258),n(61),n,e,t],void 0===(r=function(t,i,e,r,n,o,a,s){function l(t){if(this.$type="Entity,http://www.Gs.com",this.state=0,t.fields instanceof i)if(this.fields=t.fields,t.properties)this.properties=t.properties;else{this.properties=[];for(var e=0,n=t.fields.getCount();e<n;++e)this.properties.push(r.createProperty(t.fields.fields[e].dataType))}this._id=t&&t.id?t.id:""}return l.prototype.getId=function(){return this._id.toString()},l.prototype.setId=function(t){this._id=t},l.prototype.getObjectId=function(){for(var t=0,e=this.fields.getCount();t<e;++t){if(this.fields.fields[t].dataType===n.OID)return this.properties[t].getValue()}},l.prototype.getProperty=function(t){var e=this.fields.findIndex(t);return-1!=e?this.properties[e]:null},l.prototype.setProperty=function(t,e){var n=this.fields.findIndex(t);-1!=n&&this.properties.splice(n,1,e)},l.prototype.getPropertyByIndex=function(t){return this.properties[t]?this.properties[t]:null},l.prototype.setPropertyByIndex=function(t,e){this.properties[t]&&this.properties.splice(t,1,e)},l.prototype.getValue=function(t){return this.getProperty(t).getValue()},l.prototype.setValue=function(t,e){var n=this.getProperty(t);n&&n.setValue(e)},l.prototype.getFields=function(){return this.fields},l.prototype.setFields=function(t){this.fields=t},l.prototype.copy=function(){return new l(this)},l.prototype.destroy=function(){t.destroyObject(this)},l.prototype.unReset=function(){},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.changed=t.changed||!1,this.$type="Property,http://www.Gs.com"}return i.prototype.setValue=function(t){},i.prototype.getValue=function(){},i.prototype.copy=function(){return new i(this)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(46),n(15),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.stops=e.stops,this.$type="LinearGradientFillSymbol,http://www.Gs.com"}return t.extend2(a,n),a.prototype.copy=function(){return new a({stops:this.stops.copy()})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(80),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.url=t.url}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.Tile},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.copy=function(){},i.prototype.getSourceType=function(){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(174),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.descriptor=t.descriptor,this.$type="RenderDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.tagName=t.tagName}return i.prototype.getTagName=function(){return this.tagName},i.prototype.format=function(){return this},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(82),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.propertyName=t.propertyName}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.id=e.id,this.items=[],this.layerId=e.layerId,this.name=e.name}return i.prototype.add=function(t){this.items.push(t)},i.prototype.getCount=function(){return this.items.length},i.prototype.getItem=function(t){return this.items[t]},i.prototype.clear=function(){this.items.length=0},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.color=t.color,this.svg=t.svg,this.image=t.image,this.content=t.content}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.$type="Primitive,http://www.Gs.com"}return i.prototype.copy=function(){return new i(this)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(26),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layerTypes=t.layerTypes,this.map=null,this.selectionSet=null,this.layers=[]}return t.extend2(o,e),o.prototype.deactivate=function(){this.cancelSelected(),this.onUnSelectGraphic()},o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.selectionSet=t.graphicSelectionSet,this.map=t.map},o.prototype.onClick=function(t){if(o.prototype.uber.onClick.call(this,t),t&&0==this.layers.length)for(var e=t,n=0;n<e.length;++n){var i=e[n],r=this.map.findLayer(i);this.layers.push(r)}},o.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.canContinue(this.selectionSet)||this.cancelSelected(),this.select(n,i)},o.prototype.canContinue=function(t){return!1},o.prototype.selectGraphic=function(t,e){(e.layer=t).select(e),this.selectionSet.add(e)},o.prototype.unSelectGraphic=function(t,e){t.unSelect(e),this.selectionSet.remove(e)},o.prototype.cancelSelected=function(){for(var t=0;t<this.selectionSet.getCount();++t){var e=this.selectionSet.getGraphic(t),n=e.layer;n&&n.unSelect(e)}this.selectionSet.clear()},o.prototype.getLayers=function(){for(var t=[],e=0;e<this.map.getLayerCount();++e){var n=this.map.getLayer(e),i=n.getLayerType();this.contains(i)&&t.push(n)}return t},o.prototype.select=function(t,e){if(0!=this.layers.length)this.selectLayers(this.layers,t,e);else{var n=this.getLayers();this.selectLayers(n,t,e)}},o.prototype.selectLayers=function(t,e,n){var i=this.getSelectedGraphic(t,e,n);return i?(this.onSelectGraphic(i.layer,i.graphic),!0):(this.onUnSelectGraphic(),!1)},o.prototype.getSelectedGraphic=function(t,e,n){for(var i=0;i<t.length;++i){var r=t[i],o=r.hitTest(e,n);if(o)return this.selectGraphic(r,o),{layer:r,graphic:o}}return null},o.prototype.contains=function(t){for(var e=0;e<this.layerTypes.length;++e){if(this.layerTypes[e]==t)return!0}return!1},o.prototype.onSelectGraphic=function(t,e){},o.prototype.onUnSelectGraphic=function(){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.normal=function(t){return t},i.easeIn=function(t){return t*t*t},i.easeOut=function(t){return 1-t*t*t},i.inAndOut=function(t){return t*t*(3-2*t)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.geometry=t.geometry,this.loop=t.loop}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(89),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.count=t.count,this.gap=t.gap}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){var e=t||{};n.call(this,e),this.$type="Curve,http://www.Gs.com"}return t.extend2(a,n),a.prototype.startPoint=function(){return null},a.prototype.length=function(){return 0},a.prototype.isClose=function(){return!1},a.prototype.isRing=function(){return!1},a.prototype.endPoint=function(){return null},a.prototype.getGeometryType=function(){return e.Curve},a.prototype.copy=function(){return new a(this)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.addPoint=function(t){},i.prototype.insertPoint=function(t,e){},i.prototype.removePoint=function(t){},i.prototype.removeAllPoint=function(){},i.prototype.getPointCount=function(){},i.prototype.getPoint=function(t){},i.prototype.indexOfPoint=function(t){},i.prototype.replacePoint=function(t,e){},i.prototype.isPointEmpty=function(){return!0},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(91),n(47),n(8),n(1),n(13),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l){function u(t){e.call(this,t),n.call(this,t),this.$type="PolyCurve,http://www.Gs.com"}return t.extend2(u,e),t.extend2(u,n),u.prototype.getGeometryType=function(){return i.PolyCurve},u.prototype.setSpatialReference=function(t){this.spatialReference=t;for(var e=0;e<this.getGeometryCount();++e){this.getGeometry(e).setSpatialReference(t)}},u.prototype.getSpatialReference=function(){return this.spatialReference},u.prototype.envelope=function(){for(var t=new o({minx:Number.MAX_VALUE,miny:Number.MAX_VALUE,maxx:-Number.MAX_VALUE,maxy:-Number.MAX_VALUE}),e=0;e<this.getPointCount();++e){var n=this.getPoint(e);t.minx=Math.min(n.x,t.minx),t.maxx=Math.max(n.x,t.maxx),t.miny=Math.min(n.y,t.miny),t.maxy=Math.max(n.y,t.maxy)}return t},u.prototype.copy=function(){return new u(this)},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.url=e.url}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.TileLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(57),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.width=t.width,this.height=t.height,this.source=t.source,this.opacity=null==t.opacity?1:t.opacity,this.offsetX=void 0===t.offsetX?.5:t.offsetX,this.offsetY=void 0===t.offsetY?1:t.offsetY,this.rotation=null==t.rotation?0:t.rotation,this.scale=null==t.scale?1:t.scale,this.enableUrl=void 0!==t.enableUrl&&t.enableUrl,this.$type="VectorMarkerSymbol,http://www.Gs.com"}return t.extend2(o,e),o.prototype.copy=function(){return new o({source:this.source,offsetX:this.offsetX,offsetY:this.offsetY,width:this.width,height:this.height,opacity:this.opacity,rotation:this.rotation,scale:this.scale,enableUrl:this.enableUrl})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.options=t.options,this.date=t.date,this.type=t.type,this.baseUrl=t.baseUrl,this.name=t.name}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(317),n(21),n(315),n(316),n(16),n(13),n,e,t],void 0===(r=function(t,e,r,n,u,i,o,a,s,l){function h(t){t=t||{},e.call(this,t),i.call(this,t),this.url=t.url}var c="{url}/{serviceName}";function p(t){if(t)return new n({name:t.name,srid:t.srid,extent:function(t,e){return e=e||4490,new o({minx:parseFloat(t[0]),miny:parseFloat(t[1]),maxx:parseFloat(t[2]),maxy:parseFloat(t[3]),spatialReference:e})}(t.extent,t.srid),createTime:t.createTime})}return t.extend2(h,e),t.extend2(h,i),h.prototype.getCapabilityUrl=function(t,e){var n=r.defer();e=e||"xml";var i=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapability?layer="+t+"&format="+e;return"Token"===this.authType?this._joinAccessToken(i):(n.resolve(i),n.promise)},h.prototype.getCapabilitiesUrl=function(t){var e=r.defer();t=t||"xml";var n=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities?format="+t;return"Token"===this.authType?this._joinAccessToken(n):(e.resolve(n),e.promise)},h.prototype.getCapability=function(t,e){e=e||"xml";var n=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapability?layer="+t+"&format="+e;return this._getRequest(n,null,"document").then(function(t){if(t)return t},function(t){throw console.error(t),t})},h.prototype.getCapabilities=function(t){t=t||"xml";var e=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities?format="+t;return this._getRequest(e,null,"document").then(function(t){if(t)return t},function(t){throw console.error(t),t})},h.prototype.queryByGeometry=function(t,e){for(var n=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getLayer",i={geometry:t.asWkt()},r=Object.keys(e||{}),o=0,a=r.length;o<a;o++){var s=r[o],l=e[s];null!=l&&(i[s]=l)}return this._postRequest(n,i).then(function(t){return t&&0===t.status?function(t){var e=[];if(t&&t.layers)for(var n=0;n<t.layers.length;++n){var i=p(t.layers[n]);e.push(i)}if(t)return new u({count:t.count,layers:e})}(t.result):t},function(t){throw console.error(t),t})},l.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.keyword=t.keyword,this.region=void 0===t.region?"全国":t.region,t.bounds&&"string"==typeof t.bounds?this.bounds=t.bounds:t.bounds&&"object"==typeof t.bounds?this.bounds=function(t){if(t&&4===t.getGeometryType())return t.minx+","+t.miny+","+t.maxx+","+t.maxy}(t.bounds):this.bounds="-180,-90,180,90",this.page_size=void 0===t.page_size?10:t.page_size,this.page_num=void 0===t.page_num?0:t.page_num,this.layer=void 0===t.layer?"baidu":t.layer,this.format=void 0===t.format?"json":t.format,this.scope=t.scope||1,this.type=t.type,this.level=t.level||3,this.query_type=t.query_type}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=void 0===t.layer?"baidu":t.layer,t.origin&&"string"==typeof t.origin?this.origin=t.origin:t.origin&&"object"==typeof t.origin&&(this.origin=a(t.origin)),t.destination&&"string"==typeof t.destination?this.destination=t.destination:t.destination&&"object"==typeof t.destination&&(this.destination=a(t.destination)),this.format=void 0===t.format?"json":t.format}function a(t){var e="";return(t=t||{})&&(e=t.x+","+t.y),e}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.distance=t.distance,this.duration=t.duration,this.steps=t.steps||[]}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.distance=t.distance,this.duration=t.duration,this.instruction=t.instruction,this.start_location=t.start_location,this.end_location=t.end_location,this.path=t.path}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(141),n(42),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),n.call(this,t),this.cursor=t.cursor||"pointer"}t.extend2(a,e),t.extend2(a,n);var s=null;return a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),s=t.pageLayout},a.prototype.onClick=function(t){s.currentTool(this),s.setCursor(this.cursor),this.checked=!0},a.prototype.setCursor=function(t){s.setCursor(t)},a.prototype.deactivate=function(){this.checked=!1},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(1),n(2),n(3),n,e,t],void 0===(r=function(t,n,e,i,l,u,r,o,a){function s(t){this.$type="CompletedStreetAlgorithm,http://www.Gs.com",this.newPoints=[];var e=t||{};e.minCpt=e.minCpt||3,e.maxCpt=e.maxCpt||30,n.call(this,e)}var h=t.extend2,c=e.bTypeline;return h(s,n),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1==i){var r=new u,o=new l,a=[n[0],e];return o.addPoint(a),r.addGeometry(o),[r]}this.newPoints=[];for(var s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||this.newPoints.push(n[s]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.newPoints=c(this.newPoints,this.newPoints.length),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e=new l,n=new u;return e.addPoint(this.newPoints),n.addGeometry(e),[n]},s.prototype.getDescription=function(){return"在地图上绘制多个点默认最少3个点最多30个点用于绘制建成主干道/支干道双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(1),n(2),n(6),n(3),n(5),n,e,t],void 0===(r=function(t,n,e,p,f,d,y,m,i,r,o){function a(t){this.$type="UncleusAirExplodeCircleAlgorithm,http://www.Gs.com",this.newPoints=[];var e=t||{};e.minCpt=e.minCpt||1,e.maxCpt=e.maxCpt||2,n.call(this,e)}var s=t.extend2,g=e.distance;return s(a,n),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints();n.length;return this.newPoints=[],this.newPoints=this.newPoints.concat(n),this.newPoints.push(e),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e=new y,n=new m,i=g(this.newPoints[0],this.newPoints[1])*t,r=i/4,o=new f,a=new d,s=0;s<=200;s++){var l=Math.PI*s/100,u=Math.sin(l),h=Math.cos(l);o.addPoint(new p({x:this.newPoints[0].x+i*u,y:this.newPoints[0].y+i*h})),a.addPoint(new p({x:this.newPoints[0].x+r*u,y:this.newPoints[0].y+r*h}))}var c=this.drawother(t);return null==c&&null==c||e.addGeometry(c),a.close(),n.addGeometry(a),e.addGeometry(o),[n,e]},a.prototype.drawother=function(t){},a.prototype.getDescription=function(){return"在地图上绘制多个点默认最少1个点最多2个点用于绘制核武器空中爆炸威力圈双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 2:return"完成绘制。";default:if(t<=1)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(435),n(31),n(28),n(120),n(32),n(34),n(41),n(78),n,e,t],void 0===(r=function(t,e,r,o,a,s,l,u,h,n,i,c){function p(t){t=t||{},e.call(this,t)}return t.extend2(p,e),p.prototype.toImage=function(t,e,n){var i=document.createElement("canvas");return i.width=e,i.height=n,t?t instanceof r?function(t,e){var n=e.getContext("2d"),i=t.fillColor.copy();i.a=null;var r=t.borderColor.copy();r.a=null,n.fillStyle=i.toHex(),n.strokeStyle=r.toHex(),n.lineWidth=t.borderThickness,n.beginPath();var o=e.width/2,a=e.height/2,s=t.size;return n.arc(o,a,s,0,2*Math.PI,!0),n.closePath(),n.stroke(),n.fill(),e.toDataURL()}(t,i):t instanceof o?function(t,e){var n=e.getContext("2d"),i=t.color.copy();return i.a=null,n.strokeStyle=i.toHex(),n.lineWidth=t.width,n.setLineDash(a[t.style]),n.beginPath(),n.moveTo(0,e.height/2),n.lineTo(e.width,e.height/2),n.closePath(),n.stroke(),e.toDataURL("image/png")}(t,i):t instanceof s?function(t,e){var n=e.getContext("2d"),i=t.fillColor.copy();i.a=null;var r=t.borderColor.copy();r.a=null,n.fillStyle=i.toHex(),n.strokeStyle=r.toHex(),n.lineWidth=t.borderThickness,n.beginPath();var o=e.width,a=e.height;return n.fillRect(0,0,o,a),n.strokeRect(0,0,o,a),n.closePath(),n.stroke(),n.fill(),e.toDataURL("image/png")}(t,i):t instanceof l?function(t,e){var n=e.getContext("2d"),i=t.fontSize+"px "+t.fontFamilyName,r=t.foreground.copy();r.a=null;var o=t.borderColor.copy();o.a=null,n.font=i,n.lineWidth=t.borderThickness;for(var a=0,s=function(t){var e=[],n=t.indexOf("\n");if(-1==n)e.push(t);else for(;0<=n;)e.push(t.substr(0,n)),t=t.substring(n+1),n=t.indexOf("\n");return e}(t.text),l=0,u=s.length;l<u;++l){var h=n.measureText(s[l]).width;a<h&&(a=h)}e.width=a,e.height=t.fontSize*s.length+2,n.font=i,n.fillStyle=r.toHex(),n.strokeStyle=o.toHex(),n.lineWidth=t.borderThickness;var c=startY=0;for(l=0,u=s.length;l<u;++l)startY+=t.fontSize,n.fillText(s[l],c,startY),n.strokeText(s[l],c,startY);return e.toDataURL("image/png")}(t,i):t instanceof u?function(t,e){var n=document.createElement("img");n.setAttribute("width",e.width),n.setAttribute("height",e.height);var i=t.source;return n.setAttribute("src",i),n.setAttribute("draggable","false"),n.src}(t,i):t instanceof h?function(t,e){for(var n=e.getContext("2d"),i=n.createLinearGradient(0,0,e.width||1,0),r=t.stops,o=0,a=r.getCount();o<a;o++){var s=r.getItem(o);i.addColorStop(s.step,s.color.toHexExcludeAlpha())}n.fillStyle=i,n.strokeStyle=i;var l=e.width,u=e.height;return n.fillRect(0,0,l,u),e.toDataURL("image/png")}(t.canvas):void 0:i},c.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.onCreate=function(t){},i.prototype.onClick=function(t){},i.prototype.isEnabled=function(){},i.prototype.isChecked=function(){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(8),n(52),n,e,t],void 0===(r=function(r,o,t,e,n){function i(t){}return i.prototype.build=function(t,e,n,i){if(e){switch(t.getGeometryType()){case r.Point:return function(t,e){return t.x=e.x,t.y=e.y,t}(t,e);case r.Polyline:return function(t,e,n){switch(n){case 1:t.addPoint(e.copy()),t.addPoint(e.copy());break;case 2:t.addPoint(e.copy());break;case 3:var i=t.last().endPoint();i.x=e.x,i.y=e.y;break;case 4:t.normalize()}}(t,e,n);case r.Polygon:case r.Polyhedron:return function(t,e,n){switch(n){case 1:t.addPoint(e.copy()),t.addPoint(e.copy()),t.addPoint(e.copy());break;case 2:t.addPoint(e.copy());break;case 3:var i=t.last().endPoint();i.x=e.x,i.y=e.y;break;case 4:t.normalize()}}(t,e,n);case r.Circle:return function(t,e,n){switch(n){case 1:t.center=e.copy(),t.radius=0;break;case 2:case 3:var i=t.center;t.radius=Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2));break;case 4:t.normalize()}}(t,e,n);case r.Ellipse:return function(t,e,n){switch(n){case 1:t.center=e.copy(),t.axisX=0,t.axisY=0;break;case 2:break;case 3:var i=t.center;t.axisX=Math.abs(i.x-e.x),t.axisY=Math.abs(i.y-e.y);break;case 4:t.normalize()}}(t,e,n);case r.Envelope:return function(t,e,n){switch(n){case 1:t.minx=e.x,t.miny=e.y,t.maxx=e.x,t.maxy=e.y;break;case 2:case 3:t.maxx=e.x,t.maxy=e.y;break;case 4:t.normalize()}}(t,e,n);case r.Square:return;case r.Sphere:return function(t,e,n){switch(n){case 1:t.center=e.copy(),t.radius=0;break;case 2:case 3:var i=t.center;t.radius=o.convert(Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2)),t.getSpatialReference());break;case 4:t.normalize()}}(t,e,n);case r.Cube:return function(t,e,n){switch(n){case 1:t.center=e.copy(),t.depth=0,t.width=0;break;case 2:case 3:var i=t.center;t.depth=o.convert(Math.abs(e.x-i.x),t.getSpatialReference()),t.width=o.convert(Math.abs(e.y-i.y),t.getSpatialReference());break;case 4:t.normalize()}}(t,e,n);case r.Cone:return function(t,e,n){switch(n){case 1:t.center=e.copy(),t.radius=0;break;case 2:case 3:var i=t.center;t.radius=o.convert(Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2)),t.getSpatialReference());break;case 4:t.normalize()}}(t,e,n);case r.Cylinder:return function(t,e,n){switch(n){case 1:t.center=e.copy(),t.radius=0;break;case 2:case 3:var i=t.center;t.bottomRadius=o.convert(Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2)),t.getSpatialReference()),t.topRadius=t.bottomRadius;break;case 4:t.normalize()}}(t,e,n);case r.Wall:return function(t,e,n){switch(n){case 1:t.positions.push(e.copy()),t.positions.push(e.copy());break;case 2:t.positions.push(e.copy());break;case 3:var i=t.positions,r=i[i.length-1];r.x=e.x,r.y=e.y}}(t,e,n);case r.LineString:return function(t,e,n){switch(n){case 1:t.addPoint(e.copy()),t.addPoint(e.copy());break;case 2:t.addPoint(e.copy());break;case 3:var i=t.endPoint();i.x=e.x,i.y=e.y}}(t,e,n)}return null}},n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(53),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.width=null==e.width?2:e.width,this.$type="LineSymbol,http://www.Gs.com"}return t.extend2(o,n),o.prototype.copy=function(){return new o({width:this.width})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(27),n(73),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},this.name=t.name,this.kind=t.kind,this.attributeSet=new n,this.id=t.id||e.newGuid(),this.tag=t.tag,this.parent=t.parent,this.$type="ElementBase,http://www.Gs.com"}return a.prototype.getCompositeElement=function(){return null},a.prototype.contains=function(t){return!1},a.prototype.copy=function(){var t=new a;return a.clone(t),t},a.prototype.clone=function(t){this.name=t.name,this.kind=t.kind,this.tag=t.tag,this.attributeSet=void 0!==t.attributeSet?t.attributeSet.copy():void 0,this.id=e.newGuid()},a.prototype.reset=function(){},a.prototype.unReset=function(){this.parent=null},a.prototype.setName=function(t){this.name=t},a.prototype.accept=function(t){t.accept(this)},a.prototype.replace=function(t){},a.prototype.destroy=function(){t.destroyObject(this)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(1),n(5),n(6),n(13),n(142),n(143),n(70),n(33),n,e,t],void 0===(r=function(t,e,n,o,a,s,i,r,l,u,h,c,p,f){function d(t){var e=t||{};n.call(this,e),this.center=e.center,this.radius=e.radius,this.$type="Circle,http://www.Gs.com"}return t.extend2(d,n),d.prototype.getGeometryType=function(){return e.Circle},d.prototype.setCenter=function(t){this.center=t},d.prototype.setRadius=function(t){this.radius=t},d.prototype.getCenter=function(){return this.center},d.prototype.getRadius=function(){return this.radius},d.prototype.envelope=function(){return new i({minx:this.center.x-this.radius,miny:this.center.y-this.radius,maxx:this.center.x+this.radius,maxy:this.center.y+this.radius,minz:this.center.z,maxz:this.center.z,spatialReference:this.spatialReference})},d.prototype.copy=function(){return new d({center:this.center.copy(),radius:this.radius,spatialReference:this.spatialReference})},d.prototype.move=function(t,e,n){var i=l.makeTransform(t,e,n);u.applyMatrix4(this.center,i)},d.prototype.rotate=function(t,e){var n=l.makeRotationAxis(t,e);u.applyMatrix4(this,n)},d.prototype.scale=function(t,e,n,i){var r=l.makeScale(t,e,n,i);u.applyMatrix4(this.center,r)},d.prototype.getCoordinates=function(){return this.center.x+","+this.center.y},d.prototype.fromCoordinates=function(t){return this.center.x=t[0].lng,this.center.y=t[0].lat,this},d.prototype.asGeoJson=function(t){return this.asPolygon(360).asGeoJson(t)},d.prototype.asWkt=function(t){return this.asPolygon(360).asWkt(t)},d.prototype.asPolygon=function(t){t=void 0===t?64:t;for(var e=new s({spatialReference:this.spatialReference}),n=new a({spatialReference:this.spatialReference}),i=function(i){for(var t=this.getRadius(),e=this.getRadius(),n=this.getCenter(),r=[],o=(Math.PI,o||function(){for(var t=[],e=0;e<=i;++e){var n=2*Math.PI*e/i;t.push([Math.sin(n),Math.cos(n)])}return t}()),a=0,s=o.length;a<s;++a){var l=o[a];r.push({x:n.x+t*l[1],y:n.y+e*l[0]})}return r}.call(this,t),r=0;r<t;++r)e.addPoint(new o({x:i[r].x,y:i[r].y,spatialReference:this.spatialReference}));return e.close(),n.addGeometry(e),n},f.exports=d}.apply(e,i))||(t.exports=r)},function(t,e,n){t.exports=function(){"use strict";var r,o,a;function t(t,e){if(r)if(o){var n="var sharedChunk = {}; ("+r+")(sharedChunk); ("+o+")(sharedChunk);",i={};r(i),(a=e(i)).workerUrl=window.URL.createObjectURL(new Blob([n],{type:"text/javascript"}))}else o=e;else r=e}return t(["exports"],function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var a=n;function n(t,e,n,i){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(i-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=i,this.p2x=n,this.p2y=i}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var n,i,r,o,a;for(void 0===e&&(e=1e-6),r=t,a=0;a<8;a++){if(o=this.sampleCurveX(r)-t,Math.abs(o)<e)return r;var s=this.sampleCurveDerivativeX(r);if(Math.abs(s)<1e-6)break;r-=o/s}if((r=t)<(n=0))return n;if(r>(i=1))return i;for(;n<i;){if(o=this.sampleCurveX(r),Math.abs(o-t)<e)return r;o<t?n=r:i=r,r=.5*(i-n)+n}return r},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var W=i;function i(t,e){this.x=t,this.y=e}function r(t,e,n,i){var r=new a(t,e,n,i);return function(t){return r.solve(t)}}i.prototype={clone:function(){return new i(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),i=n*this.x+e*this.y;return this.x=e*this.x-n*this.y,this.y=i,this},_rotateAround:function(t,e){var n=Math.cos(t),i=Math.sin(t),r=e.y+i*(this.x-e.x)+n*(this.y-e.y);return this.x=e.x+n*(this.x-e.x)-i*(this.y-e.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},i.convert=function(t){return t instanceof i?t:Array.isArray(t)?new i(t[0],t[1]):t};var o=r(.25,.1,.25,1);function s(t,e,n){return Math.min(n,Math.max(e,t))}function l(t,e,n){var i=n-e,r=((t-e)%i+i)%i+e;return r===e?n:r}function f(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];for(var i=0,r=e;i<r.length;i+=1){var o=r[i];for(var a in o)t[a]=o[a]}return t}var u=1;function h(){return u++}function c(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function p(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function d(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})}function y(t,e){return-1!==t.indexOf(e,t.length-e.length)}function m(t,e,n){var i={};for(var r in t)i[r]=e.call(n||this,t[r],r,t);return i}function g(t,e,n){var i={};for(var r in t)e.call(n||this,t[r],r,t)&&(i[r]=t[r]);return i}function v(t){return Array.isArray(t)?t.map(v):"object"==typeof t&&t?m(t,v):t}var x={};function ct(t){x[t]||("undefined"!=typeof console&&console.warn(t),x[t]=!0)}function _(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}function w(t){for(var e=0,n=0,i=t.length,r=i-1,o=void 0,a=void 0;n<i;r=n++)e+=((a=t[r]).x-(o=t[n]).x)*(o.y+a.y);return e}function b(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function P(t){var o={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(t,e,n,i){var r=n||i;return o[e]=!r||r.toLowerCase(),""}),o["max-age"]){var e=parseInt(o["max-age"],10);isNaN(e)?delete o["max-age"]:o["max-age"]=e}return o}var S=null;function C(t){if(null==S){var e=t.navigator?t.navigator.userAgent:null;S=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return S}function M(t){try{var e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var T,A,E,I,L=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),R=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,O=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,N={now:L,frame:function(t){var e=R(t);return{cancel:function(){return O(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var n=self.document.createElement("canvas"),i=n.getContext("2d");if(!i)throw new Error("failed to create canvas 2d context");return n.width=t.width,n.height=t.height,i.drawImage(t,0,0,t.width,t.height),i.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return(T=T||self.document.createElement("a")).href=t,T.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==A&&(A=self.matchMedia("(prefers-reduced-motion: reduce)")),A.matches)}},k={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16,CRS:"EPSG:4490"},z={supported:!1,testSupport:function(t){!D&&I&&(F?G(t):E=t)}},D=!1,F=!1;function G(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,I),t.isContextLost())return;z.supported=!0}catch(t){}t.deleteTexture(e),D=!0}function j(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()}self.document&&((I=self.document.createElement("img")).onload=function(){E&&G(E),F=!(E=null)},I.onerror=function(){D=!0,E=null},I.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var V="01";function q(t){return 0===t.indexOf("mapbox:")}j.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",V,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},j.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},j.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},j.prototype.normalizeStyleURL=function(t,e){if(!q(t))return t;var n=X(t);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},j.prototype.normalizeGlyphsURL=function(t,e){if(!q(t))return t;var n=X(t);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},j.prototype.normalizeSourceURL=function(t,e){if(!q(t))return t;var n=X(t);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||e)},j.prototype.normalizeSpriteURL=function(t,e,n,i){var r=X(t);return q(t)?(r.path="/styles/v1"+r.path+"/sprite"+e+n,this._makeAPIURL(r,this._customAccessToken||i)):(r.path+=""+e+n,H(r))},j.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!q(t))return t;var i=X(t);i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,(2<=N.devicePixelRatio||512===e?"@2x":"")+(z.supported?".webp":"$1")),i.path=i.path.replace(/^.+\/v4\//,"/"),i.path="/v4"+i.path;var n=this._customAccessToken||function(){for(var t=0,e=i.params;t<e.length;t+=1){var n=e[t].match(/^access_token=(.*)$/);if(n)return n[1]}return null}()||k.ACCESS_TOKEN;return k.REQUIRE_ACCESS_TOKEN&&n&&this._skuToken&&i.params.push("sku="+this._skuToken),this._makeAPIURL(i,n)},j.prototype.canonicalizeTileURL=function(t,e){var n=X(t);if(!n.path.match(/(^\/v4\/)/)||!n.path.match(/\.[\w]+$/))return t;var i="mapbox://tiles/";i+=n.path.replace("/v4/","");var r=n.params;return e&&(r=r.filter(function(t){return!t.match(/^access_token=/)})),r.length&&(i+="?"+r.join("&")),i},j.prototype.canonicalizeTileset=function(t,e){for(var n=!!e&&q(e),i=[],r=0,o=t.tiles||[];r<o.length;r+=1){var a=o[r];U(a)?i.push(this.canonicalizeTileURL(a,n)):i.push(a)}return i},j.prototype._makeAPIURL=function(t,e){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",i=X(k.API_URL);if(t.protocol=i.protocol,t.authority=i.authority,"/"!==i.path&&(t.path=""+i.path+t.path),!k.REQUIRE_ACCESS_TOKEN)return H(t);if(!(e=e||k.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return t.params=t.params.filter(function(t){return-1===t.indexOf("access_token")}),t.params.push("access_token="+e),H(t)};var B=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function U(t){return B.test(t)}var Z=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(Z);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function H(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}function Y(t){if(!t)return null;var e=t.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(self.atob(e[1]).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(t){return null}}function K(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}K.prototype.getStorageKey=function(t){var e,n=Y(k.ACCESS_TOKEN);return e=n&&n.u?self.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode(Number("0x"+e))})):k.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+e:"mapbox.eventData:"+e},K.prototype.fetchEventData=function(){var t=M("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{var i=self.localStorage.getItem(e);i&&(this.eventData=JSON.parse(i));var r=self.localStorage.getItem(n);r&&(this.anonId=r)}catch(t){ct("Unable to read from LocalStorage")}},K.prototype.saveEventData=function(){var t=M("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{self.localStorage.setItem(n,this.anonId),1<=Object.keys(this.eventData).length&&self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){ct("Unable to write to LocalStorage")}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,n,i){var r=this;if(k.EVENTS_URL){var o=X(k.EVENTS_URL);o.params.push("access_token="+(i||k.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.10.1",skuId:V,userId:this.anonId},s=e?f(a,e):a,l={url:H(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=Mt(l,function(t){r.pendingRequest=null,n(t),r.saveEventData(),r.processRequests(i)})}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var J,Q,$,tt,et=(ht.__proto__=tt=K,((ht.prototype=Object.create(tt&&tt.prototype)).constructor=ht).prototype.postMapLoadEvent=function(t,e,n,i){this.skuToken=n,(k.EVENTS_URL&&i||k.ACCESS_TOKEN&&Array.isArray(t)&&t.some(function(t){return q(t)||U(t)}))&&this.queueRequest({id:e,timestamp:Date.now()},i)},ht.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),i=n.id,r=n.timestamp;i&&this.success[i]||(this.anonId||this.fetchEventData(),p(this.anonId)||(this.anonId=c()),this.postEvent(r,{skuToken:this.skuToken},function(t){t||i&&(e.success[i]=!0)},t))}},ht),nt=(ut.__proto__=$=K,((ut.prototype=Object.create($&&$.prototype)).constructor=ut).prototype.postTurnstileEvent=function(t,e){k.EVENTS_URL&&k.ACCESS_TOKEN&&Array.isArray(t)&&t.some(function(t){return q(t)||U(t)})&&this.queueRequest(Date.now(),e)},ut.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=Y(k.ACCESS_TOKEN),i=n?n.u:k.ACCESS_TOKEN,r=i!==this.eventData.tokenU;p(this.anonId)||(this.anonId=c(),r=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),l=(o-this.eventData.lastSuccess)/864e5;r=r||1<=l||l<-1||a.getDate()!==s.getDate()}else r=!0;if(!r)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},function(t){t||(e.eventData.lastSuccess=o,e.eventData.tokenU=i)},t)}},new ut),it=nt.postTurnstileEvent.bind(nt),rt=new et,ot=rt.postMapLoadEvent.bind(rt),at="mapbox-tiles",st=500,lt=50;function ut(t){$.call(this,"appUserTurnstile"),this._customAccessToken=t}function ht(){tt.call(this,"map.load"),this.success={},this.skuToken=""}function pt(){self.caches&&!J&&(J=self.caches.open(at))}function ft(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var dt,yt=1/0;function mt(){return null==dt&&(dt=self.OffscreenCanvas&&new self.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),dt}var gt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(gt);var vt,xt=((vt=Error)&&(wt.__proto__=vt),((wt.prototype=Object.create(vt&&vt.prototype)).constructor=wt).prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},wt),_t=b()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href};function wt(t,e,n){401===e&&U(n)&&(t+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),vt.call(this,t),this.status=e,this.url=n,this.name=this.constructor.name,this.message=t}function bt(t,e){if(!(/^file:/.test(n=t.url)||/^file:/.test(_t())&&!/^\w+:/.test(n))){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return function(r,o){var t,e=new self.AbortController,a=new self.Request(r.url,{method:r.method||"GET",body:r.body,credentials:r.credentials,headers:r.headers,referrer:_t(),signal:e.signal}),s=!1,l=!1,u=0<(t=a.url).indexOf("sku=")&&U(t);function n(t,e,n){if(!l){if(t&&"SecurityError"!==t.message&&ct(t),e&&n)return h(e);var i=Date.now();self.fetch(a).then(function(t){if(t.ok){var e=u?t.clone():null;return h(t,e,i)}return o(new xt(t.statusText,t.status,r.url))}).catch(function(t){20!==t.code&&o(new Error(t.message))})}}"json"===r.type&&a.headers.set("Accept","application/json");var h=function(e,n,i){("arrayBuffer"===r.type?e.arrayBuffer():"json"===r.type?e.json():e.text()).then(function(t){l||(n&&i&&function(n,t,e){if(pt(),J){var i={status:t.status,statusText:t.statusText,headers:new self.Headers};t.headers.forEach(function(t,e){return i.headers.set(e,t)});var r=P(t.headers.get("Cache-Control")||"");r["no-store"]||(r["max-age"]&&i.headers.set("Expires",new Date(e+1e3*r["max-age"]).toUTCString()),new Date(i.headers.get("Expires")).getTime()-e<42e4||function(t,e){if(void 0===Q)try{new Response(new ReadableStream),Q=!0}catch(t){Q=!1}Q?e(t.body):t.blob().then(e)}(t,function(t){var e=new self.Response(t,i);pt(),J&&J.then(function(t){return t.put(ft(n.url),e)}).catch(function(t){return ct(t.message)})}))}}(a,n,i),s=!0,o(null,t,e.headers.get("Cache-Control"),e.headers.get("Expires")))}).catch(function(t){l||o(new Error(t.message))})};return u?function(t,i){if(pt(),!J)return i(null);var r=ft(t.url);J.then(function(n){n.match(r).then(function(t){var e=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),n=P(t.headers.get("Cache-Control")||"");return e>Date.now()&&!n["no-cache"]}(t);n.delete(r),e&&n.put(r,t.clone()),i(null,t,e)}).catch(i)}).catch(i)}(a,n):n(null,null),{cancel:function(){l=!0,s||e.abort()}}}(t,e);if(b()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var n;return function(e,n){var i=new self.XMLHttpRequest;for(var t in i.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(i.responseType="arraybuffer"),e.headers)i.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===e.credentials,i.onerror=function(){n(new Error(i.statusText))},i.onload=function(){if((200<=i.status&&i.status<300||0===i.status)&&null!==i.response){var t=i.response;if("json"===e.type)try{t=JSON.parse(i.response)}catch(t){return n(t)}n(null,t,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else n(new xt(i.statusText,i.status,e.url))},i.send(e.body),{cancel:function(){return i.abort()}}}(t,e)}function Pt(t,e){return bt(f(t,{type:"arrayBuffer"}),e)}var St,Ct,Mt=function(t,e){return bt(f(t,{method:"POST"}),e)};St=[],Ct=0;var Tt=function(s,l){if(z.supported&&(s.headers||(s.headers={}),s.headers.accept="image/webp,*/*"),Ct>=k.MAX_PARALLEL_IMAGE_REQUESTS){var t={requestParameters:s,callback:l,cancelled:!1,cancel:function(){this.cancelled=!0}};return St.push(t),t}function u(){if(!e)for(e=!0,Ct--;St.length&&Ct<k.MAX_PARALLEL_IMAGE_REQUESTS;){var t=St.shift();t.cancelled||(t.cancel=Tt(t.requestParameters,t.callback).cancel)}}Ct++;var e=!1,n=Pt(s,function(t,e,n,i){if(u(),t)l(t);else if(e){if(s.returnArrayBuffer)return void l(null,e);mt()?(r=e,o=l,a=new self.Blob([new Uint8Array(r)],{type:"image/png"}),self.createImageBitmap(a).then(function(t){o(null,t)}).catch(function(t){o(new Error("Could not load image because of "+t.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})):function(t,e,n,i){var r=new self.Image,o=self.URL;r.onload=function(){e(null,r),o.revokeObjectURL(r.src)},r.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var a=new self.Blob([new Uint8Array(t)],{type:"image/png"});r.cacheControl=n,r.expires=i,r.src=t.byteLength?o.createObjectURL(a):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}(e,l,n,i)}var r,o,a});return{cancel:function(){n.cancel(),u()}}};function At(t,e,n){n[t]&&-1!==n[t].indexOf(e)||(n[t]=n[t]||[],n[t].push(e))}function Et(t,e,n){if(n&&n[t]){var i=n[t].indexOf(e);-1!==i&&n[t].splice(i,1)}}function It(t,e){void 0===e&&(e={}),f(this,e),this.type=t}function Lt(){}var Rt,Ot=(Nt.__proto__=Rt=It,(Nt.prototype=Object.create(Rt&&Rt.prototype)).constructor=Nt);function Nt(t,e){void 0===e&&(e={}),Rt.call(this,"error",f({error:t},e))}Lt.prototype.on=function(t,e){return this._listeners=this._listeners||{},At(t,e,this._listeners),this},Lt.prototype.off=function(t,e){return Et(t,e,this._listeners),Et(t,e,this._oneTimeListeners),this},Lt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},At(t,e,this._oneTimeListeners),this},Lt.prototype.fire=function(t,e){"string"==typeof t&&(t=new It(t,e||{}));var n=t.type;if(this.listens(n)){for(var i=0,r=(t.target=this)._listeners&&this._listeners[n]?this._listeners[n].slice():[];i<r.length;i+=1)r[i].call(this,t);for(var o=0,a=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];o<a.length;o+=1){var s=a[o];Et(n,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&&(f(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof Ot&&console.error(t.error);return this},Lt.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&0<this._listeners[t].length||this._oneTimeListeners&&this._oneTimeListeners[t]&&0<this._oneTimeListeners[t].length||this._eventedParent&&this._eventedParent.listens(t)};var kt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:(Lt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this},!1)},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},zt=function(t,e,n,i){this.message=(t?t+": ":"")+n,i&&(this.identifier=i),null!=e&&e.__line__&&(this.line=e.__line__)};function Dt(t){var e=t.value;return e?[new zt(t.key,e,"constants have been deprecated as of v8")]:[]}function Ft(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];for(var i=0,r=e;i<r.length;i+=1){var o=r[i];for(var a in o)t[a]=o[a]}return t}function Gt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function jt(t){if(Array.isArray(t))return t.map(jt);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var n in t)e[n]=jt(t[n]);return e}return Gt(t)}function Vt(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var n=0,i=e;n<i.length;n+=1){var r=i[n];this.bindings[r[0]]=r[1]}}var qt,Bt=((qt=Error)&&(Ut.__proto__=qt),(Ut.prototype=Object.create(qt&&qt.prototype)).constructor=Ut);function Ut(t,e){qt.call(this,e),this.message=e,this.key=t}Vt.prototype.concat=function(t){return new Vt(this,t)},Vt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},Vt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var Wt={kind:"null"},Zt={kind:"number"},Xt={kind:"string"},Ht={kind:"boolean"},Yt={kind:"color"},Kt={kind:"object"},Jt={kind:"value"},Qt={kind:"collator"},$t={kind:"formatted"},te={kind:"resolvedImage"};function ee(t,e){return{kind:"array",itemType:t,N:e}}function ne(t){if("array"!==t.kind)return t.kind;var e=ne(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}var ie=[Wt,Zt,Xt,Ht,Yt,$t,Kt,ee(Jt),te];function re(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!re(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var n=0,i=ie;n<i.length;n+=1)if(!re(i[n],e))return null}return"Expected "+ne(t)+" but found "+ne(e)+" instead."}function oe(e,t){return t.some(function(t){return t.kind===e.kind})}function ae(e,t){return t.some(function(t){return"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e})}var se=e(function(t,e){var f={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function d(t){return(t=Math.round(t))<0?0:255<t?255:t}function y(t){return d("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function m(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:1<e?1:e;var e}function g(t,e,n){return n<0?n+=1:1<n&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.parseCSSColor=function(t){var e,n=t.replace(/ /g,"").toLowerCase();if(n in f)return f[n].slice();if("#"===n[0])return 4===n.length?0<=(e=parseInt(n.substr(1),16))&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===n.length&&0<=(e=parseInt(n.substr(1),16))&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var i=n.indexOf("("),r=n.indexOf(")");if(-1!==i&&r+1===n.length){var o=n.substr(0,i),a=n.substr(i+1,r-(i+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=m(a.pop());case"rgb":return 3!==a.length?null:[y(a[0]),y(a[1]),y(a[2]),s];case"hsla":if(4!==a.length)return null;s=m(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=m(a[1]),h=m(a[2]),c=h<=.5?h*(u+1):h+u-h*u,p=2*h-c;return[d(255*g(p,c,l+1/3)),d(255*g(p,c,l)),d(255*g(p,c,l-1/3)),s];default:return null}}return null}}catch(t){}}).parseCSSColor,le=function(t,e,n,i){void 0===i&&(i=1),this.r=t,this.g=e,this.b=n,this.a=i};le.parse=function(t){if(t){if(t instanceof le)return t;if("string"==typeof t){var e=se(t);if(e)return new le(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},le.prototype.toString=function(){var t=this.toArray(),e=t[1],n=t[2],i=t[3];return"rgba("+Math.round(t[0])+","+Math.round(e)+","+Math.round(n)+","+i+")"},le.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},le.black=new le(0,0,0,1),le.white=new le(1,1,1,1),le.transparent=new le(0,0,0,0),le.red=new le(1,0,0,1);var ue=function(t,e,n){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};function he(t,e,n,i,r){this.text=t,this.image=e,this.scale=n,this.fontStack=i,this.textColor=r}ue.prototype.compare=function(t,e){return this.collator.compare(t,e)},ue.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ce=function(t){this.sections=t};ce.fromString=function(t){return new ce([new he(t,null,null,null,null)])},ce.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some(function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length})},ce.factory=function(t){return t instanceof ce?t:ce.fromString(t)},ce.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map(function(t){return t.text}).join("")},ce.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e<n.length;e+=1){var i=n[e];if(i.image)t.push(["image",i.image.name]);else{t.push(i.text);var r={};i.fontStack&&(r["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(r["font-scale"]=i.scale),i.textColor&&(r["text-color"]=["rgba"].concat(i.textColor.toArray())),t.push(r)}}return t};var pe=function(t){this.name=t.name,this.available=t.available};function fe(t,e,n,i){return"number"==typeof t&&0<=t&&t<=255&&"number"==typeof e&&0<=e&&e<=255&&"number"==typeof n&&0<=n&&n<=255?void 0===i||"number"==typeof i&&0<=i&&i<=1?null:"Invalid rgba value ["+[t,e,n,i].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof i?[t,e,n,i]:[t,e,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function de(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof le)return!0;if(t instanceof ue)return!0;if(t instanceof ce)return!0;if(t instanceof pe)return!0;if(Array.isArray(t)){for(var e=0,n=t;e<n.length;e+=1)if(!de(n[e]))return!1;return!0}if("object"!=typeof t)return!1;for(var i in t)if(!de(t[i]))return!1;return!0}function ye(t){if(null===t)return Wt;if("string"==typeof t)return Xt;if("boolean"==typeof t)return Ht;if("number"==typeof t)return Zt;if(t instanceof le)return Yt;if(t instanceof ue)return Qt;if(t instanceof ce)return $t;if(t instanceof pe)return te;if(Array.isArray(t)){for(var e,n=t.length,i=0,r=t;i<r.length;i+=1){var o=ye(r[i]);if(e){if(e===o)continue;e=Jt;break}e=o}return ee(e||Jt,n)}return Kt}function me(t){var e=typeof t;return null===t?"":"string"==e||"number"==e||"boolean"==e?String(t):t instanceof le||t instanceof ce||t instanceof pe?t.toString():JSON.stringify(t)}function ge(t,e){this.type=t,this.value=e}pe.prototype.toString=function(){return this.name},pe.fromString=function(t){return t?new pe({name:t,available:!1}):null},pe.prototype.serialize=function(){return["image",this.name]},ge.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!de(t[1]))return e.error("invalid value");var n=t[1],i=ye(n),r=e.expectedType;return"array"!==i.kind||0!==i.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(i=r),new ge(i,n)},ge.prototype.evaluate=function(){return this.value},ge.prototype.eachChild=function(){},ge.prototype.outputDefined=function(){return!0},ge.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof le?["rgba"].concat(this.value.toArray()):this.value instanceof ce?this.value.serialize():this.value};var ve=function(t){this.name="ExpressionEvaluationError",this.message=t};function xe(t,e){this.type=t,this.args=e}ve.prototype.toJSON=function(){return this.message};var _e={string:Xt,number:Zt,boolean:Ht,object:Kt};function we(t){this.type=$t,this.sections=t}function be(t){this.type=te,this.input=t}function Pe(t,e){this.type=t,this.args=e}xe.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n,i=1,r=t[0];if("array"===r){var o,a;if(2<t.length){var s=t[1];if("string"!=typeof s||!(s in _e)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=_e[s],i++}else o=Jt;if(3<t.length){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],i++}n=ee(o,a)}else n=_e[r];for(var l=[];i<t.length;i++){var u=e.parse(t[i],i,Jt);if(!u)return null;l.push(u)}return new xe(n,l)},xe.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var n=this.args[e].evaluate(t);if(!re(this.type,ye(n)))return n;if(e===this.args.length-1)throw new ve("Expected value to be of type "+ne(this.type)+", but found "+ne(ye(n))+" instead.")}return null},xe.prototype.eachChild=function(t){this.args.forEach(t)},xe.prototype.outputDefined=function(){return this.args.every(function(t){return t.outputDefined()})},xe.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var n=t.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){e.push(n.kind);var i=t.N;("number"==typeof i||1<this.args.length)&&e.push(i)}}return e.concat(this.args.map(function(t){return t.serialize()}))},we.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return e.error("First argument must be an image or text section.");for(var i=[],r=!1,o=1;o<=t.length-1;++o){var a=t[o];if(r&&"object"==typeof a&&!Array.isArray(a)){r=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Zt)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,ee(Xt))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,Yt)))return null;var h=i[i.length-1];h.scale=s,h.font=l,h.textColor=u}else{var c=e.parse(t[o],1,Jt);if(!c)return null;var p=c.type.kind;if("string"!==p&&"value"!==p&&"null"!==p&&"resolvedImage"!==p)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");r=!0,i.push({content:c,scale:null,font:null,textColor:null})}}return new we(i)},we.prototype.evaluate=function(n){return new ce(this.sections.map(function(t){var e=t.content.evaluate(n);return ye(e)===te?new he("",e,null,null,null):new he(me(e),null,t.scale?t.scale.evaluate(n):null,t.font?t.font.evaluate(n).join(","):null,t.textColor?t.textColor.evaluate(n):null)}))},we.prototype.eachChild=function(t){for(var e=0,n=this.sections;e<n.length;e+=1){var i=n[e];t(i.content),i.scale&&t(i.scale),i.font&&t(i.font),i.textColor&&t(i.textColor)}},we.prototype.outputDefined=function(){return!1},we.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e<n.length;e+=1){var i=n[e];t.push(i.content.serialize());var r={};i.scale&&(r["font-scale"]=i.scale.serialize()),i.font&&(r["text-font"]=i.font.serialize()),i.textColor&&(r["text-color"]=i.textColor.serialize()),t.push(r)}return t},be.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Xt);return n?new be(n):e.error("No image name provided.")},be.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=pe.fromString(e);return n&&t.availableImages&&(n.available=-1<t.availableImages.indexOf(e)),n},be.prototype.eachChild=function(t){t(this.input)},be.prototype.outputDefined=function(){return!1},be.prototype.serialize=function(){return["image",this.input.serialize()]};var Se={"to-boolean":Ht,"to-color":Yt,"to-number":Zt,"to-string":Xt};function Ce(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}Pe.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return e.error("Expected one argument.");for(var i=Se[n],r=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,Jt);if(!a)return null;r.push(a)}return new Pe(i,r)},Pe.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,n,i=0,r=this.args;i<r.length;i+=1){if(n=null,(e=r[i].evaluate(t))instanceof le)return e;if("string"==typeof e){var o=t.parseColor(e);if(o)return o}else if(Array.isArray(e)&&!(n=e.length<3||4<e.length?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":fe(e[0],e[1],e[2],e[3])))return new le(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ve(n||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"!==this.type.kind)return"formatted"===this.type.kind?ce.fromString(me(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?pe.fromString(me(this.args[0].evaluate(t))):me(this.args[0].evaluate(t));for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(t)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new ve("Could not convert "+JSON.stringify(a)+" to number.")},Pe.prototype.eachChild=function(t){this.args.forEach(t)},Pe.prototype.outputDefined=function(){return this.args.every(function(t){return t.outputDefined()})},Pe.prototype.serialize=function(){if("formatted"===this.type.kind)return new we([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new be(this.args[0]).serialize();var e=["to-"+this.type.kind];return this.eachChild(function(t){e.push(t.serialize())}),e};var Me=["Unknown","Point","LineString","Polygon"];Ce.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},Ce.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?Me[this.feature.type]:this.feature.type:null},Ce.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},Ce.prototype.canonicalID=function(){return this.canonical},Ce.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Ce.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e=e||(this._parseColorCache[t]=le.parse(t))};var Te=function(t,e,n,i){this.name=t,this.type=e,this._evaluate=n,this.args=i};function Ae(t,e,n){this.type=Qt,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=e}Te.prototype.evaluate=function(t){return this._evaluate(t,this.args)},Te.prototype.eachChild=function(t){this.args.forEach(t)},Te.prototype.outputDefined=function(){return!1},Te.prototype.serialize=function(){return[this.name].concat(this.args.map(function(t){return t.serialize()}))},Te.parse=function(n,t){var e,i=n[0],r=Te.definitions[i];if(!r)return t.error('Unknown expression "'+i+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(r)?r[0]:r.type,a=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,s=a.filter(function(t){var e=t[0];return!Array.isArray(e)||e.length===n.length-1}),l=null,u=0,h=s;u<h.length;u+=1){var c=h[u],p=c[0],f=c[1];l=new un(t.registry,t.path,null,t.scope);for(var d=[],y=!1,m=1;m<n.length;m++){var g=n[m],v=Array.isArray(p)?p[m-1]:p.type,x=l.parse(g,1+d.length,v);if(!x){y=!0;break}d.push(x)}if(!y)if(Array.isArray(p)&&p.length!==d.length)l.error("Expected "+p.length+" arguments, but found "+d.length+" instead.");else{for(var _=0;_<d.length;_++){var w=Array.isArray(p)?p[_]:p.type,b=d[_];l.concat(_+1).checkSubtype(w,b.type)}if(0===l.errors.length)return new Te(i,o,f,d)}}if(1===s.length)(e=t.errors).push.apply(e,l.errors);else{for(var P=(s.length?s:a).map(function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(ne).join(", ")+")":"("+ne(e.type)+"...)"}).join(" | "),S=[],C=1;C<n.length;C++){var M=t.parse(n[C],1+S.length);if(!M)return null;S.push(ne(M.type))}t.error("Expected arguments of type "+P+", but found ("+S.join(", ")+") instead.")}return null},Te.register=function(t,e){for(var n in Te.definitions=e)t[n]=Te},Ae.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var n=t[1];if("object"!=typeof n||Array.isArray(n))return e.error("Collator options argument must be an object.");var i=e.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Ht);if(!i)return null;var r=e.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Ht);if(!r)return null;var o=null;return n.locale&&!(o=e.parse(n.locale,1,Xt))?null:new Ae(i,r,o)},Ae.prototype.evaluate=function(t){return new ue(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},Ae.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},Ae.prototype.outputDefined=function(){return!1},Ae.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};var Ee=Ie;function Ie(t,e,n,i,r){this.properties={},this.extent=n,this.type=0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=r,t.readFields(Le,this,e)}function Le(t,e,n){1==t?e.id=n.readVarint():2==t?function(t,e){for(var n=t.readVarint()+t.pos;t.pos<n;){var i=e._keys[t.readVarint()],r=e._values[t.readVarint()];e.properties[i]=r}}(n,e):3==t?e.type=n.readVarint():4==t&&(e._geometry=n.pos)}function Re(t){for(var e,n,i=0,r=0,o=t.length,a=o-1;r<o;a=r++)i+=((n=t[a]).x-(e=t[r]).x)*(e.y+n.y);return i}Ie.types=["Unknown","Point","LineString","Polygon"],Ie.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,n=t.readVarint()+t.pos,i=1,r=0,o=0,a=0,s=[];t.pos<n;){if(r<=0){var l=t.readVarint();i=7&l,r=l>>3}if(r--,1===i||2===i)o+=t.readSVarint(),a+=t.readSVarint(),1===i&&(e&&s.push(e),e=[]),e.push(new W(o,a));else{if(7!==i)throw new Error("unknown command "+i);e&&e.push(e[0].clone())}}return e&&s.push(e),s},Ie.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,i=0,r=0,o=0,a=1/0,s=-1/0,l=1/0,u=-1/0;t.pos<e;){if(i<=0){var h=t.readVarint();n=7&h,i=h>>3}if(i--,1===n||2===n)(r+=t.readSVarint())<a&&(a=r),s<r&&(s=r),(o+=t.readSVarint())<l&&(l=o),u<o&&(u=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,u]},Ie.prototype.toGeoJSON=function(t,e,n){var i,r,o=this.extent*Math.pow(2,n),a=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=Ie.types[this.type];function h(t){for(var e=0;e<t.length;e++){var n=t[e];t[e]=[360*(n.x+a)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+s)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var c=[];for(i=0;i<l.length;i++)c[i]=l[i][0];h(l=c);break;case 2:for(i=0;i<l.length;i++)h(l[i]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return[t];for(var n,i,r=[],o=0;o<e;o++){var a=Re(t[o]);0!==a&&(void 0===i&&(i=a<0),i===a<0?(n&&r.push(n),n=[t[o]]):n.push(t[o]))}return n&&r.push(n),r}(l),i=0;i<l.length;i++)for(r=0;r<l[i].length;r++)h(l[i][r])}1===l.length?l=l[0]:u="Multi"+u;var p={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var Oe=Ne;function Ne(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ke,this,e),this.length=this._features.length}function ke(t,e,n){15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){for(var e=null,n=t.readVarint()+t.pos;t.pos<n;){var i=t.readVarint()>>3;e=1==i?t.readString():2==i?t.readFloat():3==i?t.readDouble():4==i?t.readVarint64():5==i?t.readVarint():6==i?t.readSVarint():7==i?t.readBoolean():null}return e}(n))}function ze(t,e,n){if(3===t){var i=new Oe(n,n.readVarint()+n.pos);i.length&&(e[i.name]=i)}}Ne.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new Ee(this._pbf,e,this.extent,this._keys,this._values)};var De=Ee,Fe={VectorTile:function(t,e){this.layers=t.readFields(ze,{},e)},VectorTileFeature:De,VectorTileLayer:Oe};function Ge(t,e,n){return Math.min(n,Math.max(e,t))}var je={"EPSG:3857":{zoomOffset:0,yFromLat:function(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360},latFromY:function(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90},getMaxLat:function(){return 85.051129},project:function(t,e,n,i,r){return[360*(t+n)/r-180,360/Math.PI*Math.atan(Math.exp((180-360*(e+i)/r)*Math.PI/180))-90]},projectY:function(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:1<n?1:n}},"EPSG:4490":{zoomOffset:-1,yFromLat:function(t){return(90-t)/360},latFromY:function(t){return Ge(90-360*t,-90,90)},getMaxLat:function(){return 90},project:function(t,e,n,i,r){return[360*(t+n)/r-180,90-360*(e+i)/r]},projectY:function(t){var e=.25-t/360;return e<0?0:.5<e?.5:e}},"EPSG:4326":{zoomOffset:-1,yFromLat:function(t){return(90-t)/360},latFromY:function(t){return Ge(90-360*t,-90,90)},getMaxLat:function(){return 90},project:function(t,e,n,i,r){return[360*(t+n)/r-180,90-360*(e+i)/r]},projectY:function(t){var e=.25-t/360;return e<0?0:.5<e?.5:e}}},Ve={getProjection:function(t){return je[t]}};function qe(t){for(var e,n,i=0,r=0,o=t.length,a=o-1;r<o;a=r++)i+=((n=t[a]).x-(e=t[r]).x)*(e.y+n.y);return i}De.prototype.toGeoJSON=function(t,e,n){var i,r,l=this.extent*Math.pow(2,n),u=this.extent*t,h=this.extent*e,o=this.loadGeometry(),a=De.types[this.type];function s(t){for(var e=0;e<t.length;e++){var n=t[e];t[e]=(i=n.x,r=n.y,o=u,a=h,s=l,Ve.getProjection(k.CRS).project(i,r,o,a,s))}var i,r,o,a,s}switch(this.type){case 1:var c=[];for(i=0;i<o.length;i++)c[i]=o[i][0];s(o=c);break;case 2:for(i=0;i<o.length;i++)s(o[i]);break;case 3:for(o=function(t){var e=t.length;if(e<=1)return[t];for(var n,i,r=[],o=0;o<e;o++){var a=qe(t[o]);0!==a&&(void 0===i&&(i=a<0),i===a<0?(n&&r.push(n),n=[t[o]]):n.push(t[o]))}return n&&r.push(n),r}(o),i=0;i<o.length;i++)for(r=0;r<o[i].length;r++)s(o[i][r])}1===o.length?o=o[0]:a="Multi"+a;var p={type:"Feature",geometry:{type:a,coordinates:o},properties:this.properties};return"id"in this&&(p.id=this.id),p};var Be=8192;function Ue(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function We(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Ze(t,e){for(var n=!1,i=0,r=e.length;i<r;i++)for(var o=e[i],a=0,s=o.length;a<s-1;a++){if(c=t,p=o[a],f=o[a+1],d=c[0]-p[0],y=c[1]-p[1],m=c[0]-f[0],g=c[1]-f[1],d*g-m*y==0&&d*m<=0&&y*g<=0)return!1;l=t,u=o[a],h=o[a+1],u[1]>l[1]!=h[1]>l[1]&&l[0]<(h[0]-u[0])*(l[1]-u[1])/(h[1]-u[1])+u[0]&&(n=!n)}var l,u,h,c,p,f,d,y,m,g;return n}function Xe(t,e){for(var n=0;n<e.length;n++)if(Ze(t,e[n]))return!0;return!1}function He(t,e,n,i){var r=i[0]-n[0],o=i[1]-n[1],a=(t[0]-n[0])*o-r*(t[1]-n[1]),s=(e[0]-n[0])*o-r*(e[1]-n[1]);return 0<a&&s<0||a<0&&0<s}function Ye(t,e,n){for(var i=0,r=n;i<r.length;i+=1)for(var o=r[i],a=0;a<o.length-1;++a)if(0!=(c=[(h=o[a+1])[0]-(u=o[a])[0],h[1]-u[1]])[0]*(p=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-c[1]*p[0]&&He(s,l,u,h)&&He(u,h,s,l))return!0;var s,l,u,h,c,p;return!1}function Ke(t,e){for(var n=0;n<t.length;++n)if(!Ze(t[n],e))return!1;for(var i=0;i<t.length-1;++i)if(Ye(t[i],t[i+1],e))return!1;return!0}function Je(t,e){for(var n=0;n<e.length;n++)if(Ke(t,e[n]))return!0;return!1}function Qe(t,e,n){for(var i=[],r=0;r<t.length;r++){for(var o=[],a=0;a<t[r].length;a++){var s=(l=t[r][a],u=n,p=void 0,c=(180+l[0])/360,h=l[1],p=Ve.getProjection(k.CRS).yFromLat(h),f=Math.pow(2,u.z),[Math.round(c*f*Be),Math.round(p*f*Be)]);Ue(e,s),o.push(s)}i.push(o)}var l,u,h,c,p,f;return i}function $e(t,e,n){for(var i=[],r=0;r<t.length;r++){var o=Qe(t[r],e,n);i.push(o)}return i}function tn(t,e,n,i){if(t[0]<n[0]||t[0]>n[2]){var r=.5*i,o=t[0]-n[0]>r?-i:n[0]-t[0]>r?i:0;0===o&&(o=t[0]-n[2]>r?-i:n[2]-t[0]>r?i:0),t[0]+=o}Ue(e,t)}function en(t,e,n,i){for(var r=Math.pow(2,i.z)*Be,o=[i.x*Be,i.y*Be],a=[],s=0,l=t;s<l.length;s+=1)for(var u=0,h=l[s];u<h.length;u+=1){var c=h[u],p=[c.x+o[0],c.y+o[1]];tn(p,e,n,r),a.push(p)}return a}function nn(t,e,n,i){for(var r,o=Math.pow(2,i.z)*Be,a=[i.x*Be,i.y*Be],s=[],l=0,u=t;l<u.length;l+=1){for(var h=[],c=0,p=u[l];c<p.length;c+=1){var f=p[c],d=[f.x+a[0],f.y+a[1]];Ue(e,d),h.push(d)}s.push(h)}if(e[2]-e[0]<=o/2){(r=e)[0]=r[1]=1/0,r[2]=r[3]=-1/0;for(var y=0,m=s;y<m.length;y+=1)for(var g=0,v=m[y];g<v.length;g+=1)tn(v[g],e,n,o)}return s}var rn=function(t,e){this.type=Ht,this.geojson=t,this.geometries=e};function on(t){if(t instanceof Te){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof rn)return!1;var e=!0;return t.eachChild(function(t){e&&!on(t)&&(e=!1)}),e}function an(t){if(t instanceof Te&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild(function(t){e&&!an(t)&&(e=!1)}),e}function sn(t,e){if(t instanceof Te&&0<=e.indexOf(t.name))return!1;var n=!0;return t.eachChild(function(t){n&&!sn(t,e)&&(n=!1)}),n}function ln(t,e){this.type=e.type,this.name=t,this.boundExpression=e}rn.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(de(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var i=0;i<n.features.length;++i){var r=n.features[i].geometry.type;if("Polygon"===r||"MultiPolygon"===r)return new rn(n,n.features[i].geometry)}else if("Feature"===n.type){var o=n.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new rn(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new rn(n,n)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},rn.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){var n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=t.canonicalID();if("Polygon"===e.type){var o=Qe(e.coordinates,i,r),a=en(t.geometry(),n,i,r);if(!We(n,i))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!Ze(l[s],o))return!1}if("MultiPolygon"===e.type){var u=$e(e.coordinates,i,r),h=en(t.geometry(),n,i,r);if(!We(n,i))return!1;for(var c=0,p=h;c<p.length;c+=1)if(!Xe(p[c],u))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){var n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=t.canonicalID();if("Polygon"===e.type){var o=Qe(e.coordinates,i,r),a=nn(t.geometry(),n,i,r);if(!We(n,i))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!Ke(l[s],o))return!1}if("MultiPolygon"===e.type){var u=$e(e.coordinates,i,r),h=nn(t.geometry(),n,i,r);if(!We(n,i))return!1;for(var c=0,p=h;c<p.length;c+=1)if(!Je(p[c],u))return!1}return!0}(t,this.geometries)}return!1},rn.prototype.eachChild=function(){},rn.prototype.outputDefined=function(){return!0},rn.prototype.serialize=function(){return["within",this.geojson]},ln.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var n=t[1];return e.scope.has(n)?new ln(n,e.scope.get(n)):e.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},ln.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},ln.prototype.eachChild=function(){},ln.prototype.outputDefined=function(){return!1},ln.prototype.serialize=function(){return["var",this.name]};var un=function(t,e,n,i,r){void 0===e&&(e=[]),void 0===i&&(i=new Vt),void 0===r&&(r=[]),this.registry=t,this.path=e,this.key=e.map(function(t){return"["+t+"]"}).join(""),this.scope=i,this.errors=r,this.expectedType=n};function hn(t,e){for(var n,i=t.length-1,r=0,o=i,a=0;r<=o;)if((n=t[a=Math.floor((r+o)/2)])<=e){if(a===i||e<t[a+1])return a;r=a+1}else{if(!(e<n))throw new ve("Input is not a number.");o=a-1}return 0}un.prototype.parse=function(t,e,n,i,r){return void 0===r&&(r={}),e?this.concat(e,n,i)._parse(t,r):this._parse(t,r)},un.prototype._parse=function(t,e){function n(t,e,n){return"assert"===n?new xe(e,[t]):"coerce"===n?new Pe(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var i=t[0];if("string"!=typeof i)return this.error("Expression name must be a string, but found "+typeof i+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var r=this.registry[i];if(r){var o=r.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=n(o,a,e.typeAnnotation||"coerce");else o=n(o,a,e.typeAnnotation||"assert")}if(!(o instanceof ge)&&"resolvedImage"!==o.type.kind&&function e(t){if(t instanceof ln)return e(t.boundExpression);if(t instanceof Te&&"error"===t.name)return!1;if(t instanceof Ae)return!1;if(t instanceof rn)return!1;var n=t instanceof Pe||t instanceof xe,i=!0;return t.eachChild(function(t){i=n?i&&e(t):i&&t instanceof ge}),!!i&&on(t)&&sn(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var l=new Ce;try{o=new ge(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+i+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},un.prototype.concat=function(t,e,n){var i="number"==typeof t?this.path.concat(t):this.path,r=n?this.scope.concat(n):this.scope;return new un(this.registry,i,e||null,r,this.errors)},un.prototype.error=function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];var i=""+this.key+e.map(function(t){return"["+t+"]"}).join("");this.errors.push(new Bt(i,t))},un.prototype.checkSubtype=function(t,e){var n=re(t,e);return n&&this.error(n),n};var cn=function(t,e,n){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var i=0,r=n;i<r.length;i+=1){var o=r[i],a=o[1];this.labels.push(o[0]),this.outputs.push(a)}};function pn(t,e,n){return t*(1-n)+e*n}cn.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");var n=e.parse(t[1],1,Zt);if(!n)return null;var i=[],r=null;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var o=1;o<t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],l=o,u=o+1;if("number"!=typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(i.length&&i[i.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var h=e.parse(s,u,r);if(!h)return null;r=r||h.type,i.push([a,h])}return new cn(r,n,i)},cn.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var i=this.input.evaluate(t);if(i<=e[0])return n[0].evaluate(t);var r=e.length;return i>=e[r-1]?n[r-1].evaluate(t):n[hn(e,i)].evaluate(t)},cn.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e<n.length;e+=1)t(n[e])},cn.prototype.outputDefined=function(){return this.outputs.every(function(t){return t.outputDefined()})},cn.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)0<e&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var fn=Object.freeze({__proto__:null,number:pn,color:function(t,e,n){return new le(pn(t.r,e.r,n),pn(t.g,e.g,n),pn(t.b,e.b,n),pn(t.a,e.a,n))},array:function(t,n,i){return t.map(function(t,e){return pn(t,n[e],i)})}}),dn=4/29,yn=6/29,mn=3*yn*yn,gn=yn*yn*yn,vn=Math.PI/180,xn=180/Math.PI;function _n(t){return gn<t?Math.pow(t,1/3):t/mn+dn}function wn(t){return yn<t?t*t*t:mn*(t-dn)}function bn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Pn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Sn(t){var e=Pn(t.r),n=Pn(t.g),i=Pn(t.b),r=_n((.4124564*e+.3575761*n+.1804375*i)/.95047),o=_n((.2126729*e+.7151522*n+.072175*i)/1);return{l:116*o-16,a:500*(r-o),b:200*(o-_n((.0193339*e+.119192*n+.9503041*i)/1.08883)),alpha:t.a}}function Cn(t){var e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,i=isNaN(t.b)?e:e-t.b/200;return e=1*wn(e),n=.95047*wn(n),i=1.08883*wn(i),new le(bn(3.2404542*n-1.5371385*e-.4985314*i),bn(-.969266*n+1.8760108*e+.041556*i),bn(.0556434*n-.2040259*e+1.0572252*i),t.alpha)}var Mn={forward:Sn,reverse:Cn,interpolate:function(t,e,n){return{l:pn(t.l,e.l,n),a:pn(t.a,e.a,n),b:pn(t.b,e.b,n),alpha:pn(t.alpha,e.alpha,n)}}},Tn={forward:function(t){var e=Sn(t),n=e.l,i=e.a,r=e.b,o=Math.atan2(r,i)*xn;return{h:o<0?360+o:o,c:Math.sqrt(i*i+r*r),l:n,alpha:t.a}},reverse:function(t){var e=t.h*vn,n=t.c;return Cn({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:function(t,e,n){var i=e-t;return t+n*(180<i||i<-180?i-360*Math.round(i/360):i)}(t.h,e.h,n),c:pn(t.c,e.c,n),l:pn(t.l,e.l,n),alpha:pn(t.alpha,e.alpha,n)}}},An=Object.freeze({__proto__:null,lab:Mn,hcl:Tn}),En=function(t,e,n,i,r){this.type=t,this.operator=e,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];for(var o=0,a=r;o<a.length;o+=1){var s=a[o],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};function In(t,e,n,i){var r=i-n,o=t-n;return 0==r?0:1===e?o/r:(Math.pow(e,o)-1)/(Math.pow(e,r)-1)}En.interpolationFactor=function(t,e,n,i){var r=0;if("exponential"===t.name)r=In(e,t.base,n,i);else if("linear"===t.name)r=In(e,1,n,i);else if("cubic-bezier"===t.name){var o=t.controlPoints;r=new a(o[0],o[1],o[2],o[3]).solve(In(e,1,n,i))}return r},En.parse=function(t,e){var n=t[0],i=t[1],r=t[2],o=t.slice(3);if(!Array.isArray(i)||0===i.length)return e.error("Expected an interpolation type expression.",1);if("linear"===i[0])i={name:"linear"};else if("exponential"===i[0]){var a=i[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:a}}else{if("cubic-bezier"!==i[0])return e.error("Unknown interpolation type "+String(i[0]),1,0);var s=i.slice(1);if(4!==s.length||s.some(function(t){return"number"!=typeof t||t<0||1<t}))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(r=e.parse(r,2,Zt)))return null;var l=[],u=null;"interpolate-hcl"===n||"interpolate-lab"===n?u=Yt:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var h=0;h<o.length;h+=2){var c=o[h],p=o[h+1],f=h+3,d=h+4;if("number"!=typeof c)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',f);if(l.length&&l[l.length-1][0]>=c)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);var y=e.parse(p,d,u);if(!y)return null;u=u||y.type,l.push([c,y])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new En(u,n,i,r,l):e.error("Type "+ne(u)+" is not interpolatable.")},En.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var i=this.input.evaluate(t);if(i<=e[0])return n[0].evaluate(t);var r=e.length;if(i>=e[r-1])return n[r-1].evaluate(t);var o=hn(e,i),a=En.interpolationFactor(this.interpolation,i,e[o],e[o+1]),s=n[o].evaluate(t),l=n[o+1].evaluate(t);return"interpolate"===this.operator?fn[this.type.kind.toLowerCase()](s,l,a):"interpolate-hcl"===this.operator?Tn.reverse(Tn.interpolate(Tn.forward(s),Tn.forward(l),a)):Mn.reverse(Mn.interpolate(Mn.forward(s),Mn.forward(l),a))},En.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e<n.length;e+=1)t(n[e])},En.prototype.outputDefined=function(){return this.outputs.every(function(t){return t.outputDefined()})},En.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],n=0;n<this.labels.length;n++)e.push(this.labels[n],this.outputs[n].serialize());return e};var Ln=function(t,e){this.type=t,this.args=e};Ln.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var n=null,i=e.expectedType;i&&"value"!==i.kind&&(n=i);for(var r=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=e.parse(a[o],1+r.length,n,void 0,{typeAnnotation:"omit"});if(!s)return null;n=n||s.type,r.push(s)}var l=i&&r.some(function(t){return re(i,t.type)});return new Ln(l?Jt:n,r)},Ln.prototype.evaluate=function(t){for(var e,n=null,i=0,r=0,o=this.args;r<o.length&&(i++,(n=o[r].evaluate(t))&&n instanceof pe&&!n.available&&(e=e||n.name,n=null,i===this.args.length&&(n=e)),null===n);r+=1);return n},Ln.prototype.eachChild=function(t){this.args.forEach(t)},Ln.prototype.outputDefined=function(){return this.args.every(function(t){return t.outputDefined()})},Ln.prototype.serialize=function(){var e=["coalesce"];return this.eachChild(function(t){e.push(t.serialize())}),e};var Rn=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};function On(t,e,n){this.type=t,this.index=e,this.input=n}function Nn(t,e){this.type=Ht,this.needle=t,this.haystack=e}function kn(t,e,n){this.type=Zt,this.needle=t,this.haystack=e,this.fromIndex=n}function zn(t,e,n,i,r,o){this.inputType=t,this.type=e,this.input=n,this.cases=i,this.outputs=r,this.otherwise=o}function Dn(t,e,n){this.type=t,this.branches=e,this.otherwise=n}function Fn(t,e,n,i){this.type=t,this.input=e,this.beginIndex=n,this.endIndex=i}function Gn(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function jn(t,e,n,i){return 0===i.compare(e,n)}function Vn(s,l,u){var h="=="!==s&&"!="!==s;return a.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var n=t[0],i=e.parse(t[1],1,Jt);if(!i)return null;if(!Gn(n,i.type))return e.concat(1).error('"'+n+"\" comparisons are not supported for type '"+ne(i.type)+"'.");var r=e.parse(t[2],2,Jt);if(!r)return null;if(!Gn(n,r.type))return e.concat(2).error('"'+n+"\" comparisons are not supported for type '"+ne(r.type)+"'.");if(i.type.kind!==r.type.kind&&"value"!==i.type.kind&&"value"!==r.type.kind)return e.error("Cannot compare types '"+ne(i.type)+"' and '"+ne(r.type)+"'.");h&&("value"===i.type.kind&&"value"!==r.type.kind?i=new xe(r.type,[i]):"value"!==i.type.kind&&"value"===r.type.kind&&(r=new xe(i.type,[r])));var o=null;if(4===t.length){if("string"!==i.type.kind&&"string"!==r.type.kind&&"value"!==i.type.kind&&"value"!==r.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(o=e.parse(t[3],3,Qt)))return null}return new a(i,r,o)},a.prototype.evaluate=function(t){var e=this.lhs.evaluate(t),n=this.rhs.evaluate(t);if(h&&this.hasUntypedArgument){var i=ye(e),r=ye(n);if(i.kind!==r.kind||"string"!==i.kind&&"number"!==i.kind)throw new ve('Expected arguments for "'+s+'" to be (string, string) or (number, number), but found ('+i.kind+", "+r.kind+") instead.")}if(this.collator&&!h&&this.hasUntypedArgument){var o=ye(e),a=ye(n);if("string"!==o.kind||"string"!==a.kind)return l(t,e,n)}return this.collator?u(t,e,n,this.collator.evaluate(t)):l(t,e,n)},a.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},a.prototype.outputDefined=function(){return!0},a.prototype.serialize=function(){var e=[s];return this.eachChild(function(t){e.push(t.serialize())}),e},a;function a(t,e,n){this.type=Ht,this.lhs=t,this.rhs=e,this.collator=n,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}}function qn(t,e,n,i,r){this.type=Xt,this.number=t,this.locale=e,this.currency=n,this.minFractionDigits=i,this.maxFractionDigits=r}Rn.prototype.evaluate=function(t){return this.result.evaluate(t)},Rn.prototype.eachChild=function(t){for(var e=0,n=this.bindings;e<n.length;e+=1)t(n[e][1]);t(this.result)},Rn.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var n=[],i=1;i<t.length-1;i+=2){var r=t[i];if("string"!=typeof r)return e.error("Expected string, but found "+typeof r+" instead.",i);if(/[^a-zA-Z0-9_]/.test(r))return e.error("Variable names must contain only alphanumeric characters or '_'.",i);var o=e.parse(t[i+1],i+1);if(!o)return null;n.push([r,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,n);return a?new Rn(n,a):null},Rn.prototype.outputDefined=function(){return this.result.outputDefined()},Rn.prototype.serialize=function(){for(var t=["let"],e=0,n=this.bindings;e<n.length;e+=1){var i=n[e];t.push(i[0],i[1].serialize())}return t.push(this.result.serialize()),t},On.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Zt),i=e.parse(t[2],2,ee(e.expectedType||Jt));return n&&i?new On(i.type.itemType,n,i):null},On.prototype.evaluate=function(t){var e=this.index.evaluate(t),n=this.input.evaluate(t);if(e<0)throw new ve("Array index out of bounds: "+e+" < 0.");if(e>=n.length)throw new ve("Array index out of bounds: "+e+" > "+(n.length-1)+".");if(e!==Math.floor(e))throw new ve("Array index must be an integer, but found "+e+" instead.");return n[e]},On.prototype.eachChild=function(t){t(this.index),t(this.input)},On.prototype.outputDefined=function(){return!1},On.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]},Nn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Jt),i=e.parse(t[2],2,Jt);return n&&i?oe(n.type,[Ht,Xt,Zt,Wt,Jt])?new Nn(n,i):e.error("Expected first argument to be of type boolean, string, number or null, but found "+ne(n.type)+" instead"):null},Nn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!ae(e,["boolean","string","number","null"]))throw new ve("Expected first argument to be of type boolean, string, number or null, but found "+ne(ye(e))+" instead.");if(!ae(n,["string","array"]))throw new ve("Expected second argument to be of type array or string, but found "+ne(ye(n))+" instead.");return 0<=n.indexOf(e)},Nn.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},Nn.prototype.outputDefined=function(){return!0},Nn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]},kn.parse=function(t,e){if(t.length<=2||5<=t.length)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Jt),i=e.parse(t[2],2,Jt);if(!n||!i)return null;if(!oe(n.type,[Ht,Xt,Zt,Wt,Jt]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+ne(n.type)+" instead");if(4!==t.length)return new kn(n,i);var r=e.parse(t[3],3,Zt);return r?new kn(n,i,r):null},kn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!ae(e,["boolean","string","number","null"]))throw new ve("Expected first argument to be of type boolean, string, number or null, but found "+ne(ye(e))+" instead.");if(!ae(n,["string","array"]))throw new ve("Expected second argument to be of type array or string, but found "+ne(ye(n))+" instead.");if(this.fromIndex){var i=this.fromIndex.evaluate(t);return n.indexOf(e,i)}return n.indexOf(e)},kn.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},kn.prototype.outputDefined=function(){return!1},kn.prototype.serialize=function(){if(null==this.fromIndex||void 0===this.fromIndex)return["index-of",this.needle.serialize(),this.haystack.serialize()];var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]},zn.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var n,i;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var r={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var h=0,c=s;h<c.length;h+=1){var p=c[h];if("number"!=typeof p&&"string"!=typeof p)return u.error("Branch labels must be numbers or strings.");if("number"==typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof p&&Math.floor(p)!==p)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,ye(p)))return null}else n=ye(p);if(void 0!==r[String(p)])return u.error("Branch labels must be unique.");r[String(p)]=o.length}var f=e.parse(l,a,i);if(!f)return null;i=i||f.type,o.push(f)}var d=e.parse(t[1],1,Jt);if(!d)return null;var y=e.parse(t[t.length-1],t.length-1,i);return y?"value"!==d.type.kind&&e.concat(1).checkSubtype(n,d.type)?null:new zn(n,i,d,r,o,y):null},zn.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ye(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},zn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},zn.prototype.outputDefined=function(){return this.outputs.every(function(t){return t.outputDefined()})&&this.otherwise.outputDefined()},zn.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],i={},r=0,o=Object.keys(this.cases).sort();r<o.length;r+=1){var a=o[r];void 0===(c=i[this.cases[a]])?(i[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[c][1].push(a)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},l=0,u=n;l<u.length;l+=1){var h=u[l],c=h[0],p=h[1];t.push(1===p.length?s(p[0]):p.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t},Dn.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i=[],r=1;r<t.length-1;r+=2){var o=e.parse(t[r],r,Ht);if(!o)return null;var a=e.parse(t[r+1],r+1,n);if(!a)return null;i.push([o,a]),n=n||a.type}var s=e.parse(t[t.length-1],t.length-1,n);return s?new Dn(n,i,s):null},Dn.prototype.evaluate=function(t){for(var e=0,n=this.branches;e<n.length;e+=1){var i=n[e],r=i[1];if(i[0].evaluate(t))return r.evaluate(t)}return this.otherwise.evaluate(t)},Dn.prototype.eachChild=function(t){for(var e=0,n=this.branches;e<n.length;e+=1){var i=n[e],r=i[1];t(i[0]),t(r)}t(this.otherwise)},Dn.prototype.outputDefined=function(){return this.branches.every(function(t){return t[1].outputDefined()})&&this.otherwise.outputDefined()},Dn.prototype.serialize=function(){var e=["case"];return this.eachChild(function(t){e.push(t.serialize())}),e},Fn.parse=function(t,e){if(t.length<=2||5<=t.length)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Jt),i=e.parse(t[2],2,Zt);if(!n||!i)return null;if(!oe(n.type,[ee(Jt),Xt,Jt]))return e.error("Expected first argument to be of type array or string, but found "+ne(n.type)+" instead");if(4!==t.length)return new Fn(n.type,n,i);var r=e.parse(t[3],3,Zt);return r?new Fn(n.type,n,i,r):null},Fn.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(!ae(e,["string","array"]))throw new ve("Expected first argument to be of type array or string, but found "+ne(ye(e))+" instead.");if(this.endIndex){var i=this.endIndex.evaluate(t);return e.slice(n,i)}return e.slice(n)},Fn.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},Fn.prototype.outputDefined=function(){return!1},Fn.prototype.serialize=function(){if(null==this.endIndex||void 0===this.endIndex)return["slice",this.input.serialize(),this.beginIndex.serialize()];var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]};var Bn=Vn("==",function(t,e,n){return e===n},jn),Un=Vn("!=",function(t,e,n){return e!==n},function(t,e,n,i){return!jn(0,e,n,i)}),Wn=Vn("<",function(t,e,n){return e<n},function(t,e,n,i){return i.compare(e,n)<0}),Zn=Vn(">",function(t,e,n){return n<e},function(t,e,n,i){return 0<i.compare(e,n)}),Xn=Vn("<=",function(t,e,n){return e<=n},function(t,e,n,i){return i.compare(e,n)<=0}),Hn=Vn(">=",function(t,e,n){return n<=e},function(t,e,n,i){return 0<=i.compare(e,n)});function Yn(t){this.type=Zt,this.input=t}qn.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Zt);if(!n)return null;var i=t[2];if("object"!=typeof i||Array.isArray(i))return e.error("NumberFormat options argument must be an object.");var r=null;if(i.locale&&!(r=e.parse(i.locale,1,Xt)))return null;var o=null;if(i.currency&&!(o=e.parse(i.currency,1,Xt)))return null;var a=null;if(i["min-fraction-digits"]&&!(a=e.parse(i["min-fraction-digits"],1,Zt)))return null;var s=null;return i["max-fraction-digits"]&&!(s=e.parse(i["max-fraction-digits"],1,Zt))?null:new qn(n,r,o,a,s)},qn.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},qn.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},qn.prototype.outputDefined=function(){return!1},qn.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]},Yn.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error("Expected argument of type string or array, but found "+ne(n.type)+" instead."):new Yn(n):null},Yn.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ve("Expected value to be of type string or array, but found "+ne(ye(e))+" instead.")},Yn.prototype.eachChild=function(t){t(this.input)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){var e=["length"];return this.eachChild(function(t){e.push(t.serialize())}),e};var Kn={"==":Bn,"!=":Un,">":Zn,"<":Wn,">=":Hn,"<=":Xn,array:xe,at:On,boolean:xe,case:Dn,coalesce:Ln,collator:Ae,format:we,image:be,in:Nn,"index-of":kn,interpolate:En,"interpolate-hcl":En,"interpolate-lab":En,length:Yn,let:Rn,literal:ge,match:zn,number:xe,"number-format":qn,object:xe,slice:Fn,step:cn,string:xe,"to-boolean":Pe,"to-color":Pe,"to-number":Pe,"to-string":Pe,var:ln,within:rn};function Jn(t,e){var n=e[0],i=e[1],r=e[2],o=e[3];n=n.evaluate(t),i=i.evaluate(t),r=r.evaluate(t);var a=o?o.evaluate(t):1,s=fe(n,i,r,a);if(s)throw new ve(s);return new le(n/255*a,i/255*a,r/255*a,a)}function Qn(t,e){return t in e}function $n(t,e){var n=e[t];return void 0===n?null:n}function ti(t){return{type:t}}function ei(t){return{result:"success",value:t}}function ni(t){return{result:"error",value:t}}function ii(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function ri(t){return!!t.expression&&-1<t.expression.parameters.indexOf("zoom")}function oi(t){return!!t.expression&&t.expression.interpolated}function ai(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function si(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function li(t){return t}function ui(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function hi(t,e,n,i,r){return ui(typeof n===r?i[n]:void 0,t.default,e.default)}function ci(t,e,n){if("number"!==ai(n))return ui(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[i-1][0])return t.stops[i-1][1];var r=hn(t.stops.map(function(t){return t[0]}),n);return t.stops[r][1]}function pi(t,e,n){var i=void 0!==t.base?t.base:1;if("number"!==ai(n))return ui(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];var o,a,s,l,u,h=hn(t.stops.map(function(t){return t[0]}),n),c=(o=n,a=i,s=t.stops[h][0],l=t.stops[h+1][0]-s,u=o-s,0==l?0:1===a?u/l:(Math.pow(a,u)-1)/(Math.pow(a,l)-1)),p=t.stops[h][1],f=t.stops[h+1][1],d=fn[e.type]||li;if(t.colorSpace&&"rgb"!==t.colorSpace){var y=An[t.colorSpace];d=function(t,e){return y.reverse(y.interpolate(y.forward(t),y.forward(e),c))}}return"function"==typeof p.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=p.evaluate.apply(void 0,t),i=f.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==i)return d(n,i,c)}}:d(p,f,c)}function fi(t,e,n){return"color"===e.type?n=le.parse(n):"formatted"===e.type?n=ce.fromString(n.toString()):"resolvedImage"===e.type?n=pe.fromString(n.toString()):ai(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),ui(n,t.default,e.default)}Te.register(Kn,{error:[{kind:"error"},[Xt],function(t,e){throw new ve(e[0].evaluate(t))}],typeof:[Xt,[Jt],function(t,e){return ne(ye(e[0].evaluate(t)))}],"to-rgba":[ee(Zt,4),[Yt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Yt,[Zt,Zt,Zt],Jn],rgba:[Yt,[Zt,Zt,Zt,Zt],Jn],has:{type:Ht,overloads:[[[Xt],function(t,e){return Qn(e[0].evaluate(t),t.properties())}],[[Xt,Kt],function(t,e){var n=e[1];return Qn(e[0].evaluate(t),n.evaluate(t))}]]},get:{type:Jt,overloads:[[[Xt],function(t,e){return $n(e[0].evaluate(t),t.properties())}],[[Xt,Kt],function(t,e){var n=e[1];return $n(e[0].evaluate(t),n.evaluate(t))}]]},"feature-state":[Jt,[Xt],function(t,e){return $n(e[0].evaluate(t),t.featureState||{})}],properties:[Kt,[],function(t){return t.properties()}],"geometry-type":[Xt,[],function(t){return t.geometryType()}],id:[Jt,[],function(t){return t.id()}],zoom:[Zt,[],function(t){return t.globals.zoom}],"heatmap-density":[Zt,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Zt,[],function(t){return t.globals.lineProgress||0}],accumulated:[Jt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Zt,ti(Zt),function(t,e){for(var n=0,i=0,r=e;i<r.length;i+=1)n+=r[i].evaluate(t);return n}],"*":[Zt,ti(Zt),function(t,e){for(var n=1,i=0,r=e;i<r.length;i+=1)n*=r[i].evaluate(t);return n}],"-":{type:Zt,overloads:[[[Zt,Zt],function(t,e){var n=e[1];return e[0].evaluate(t)-n.evaluate(t)}],[[Zt],function(t,e){return-e[0].evaluate(t)}]]},"/":[Zt,[Zt,Zt],function(t,e){var n=e[1];return e[0].evaluate(t)/n.evaluate(t)}],"%":[Zt,[Zt,Zt],function(t,e){var n=e[1];return e[0].evaluate(t)%n.evaluate(t)}],ln2:[Zt,[],function(){return Math.LN2}],pi:[Zt,[],function(){return Math.PI}],e:[Zt,[],function(){return Math.E}],"^":[Zt,[Zt,Zt],function(t,e){var n=e[1];return Math.pow(e[0].evaluate(t),n.evaluate(t))}],sqrt:[Zt,[Zt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Zt,[Zt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Zt,[Zt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Zt,[Zt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Zt,[Zt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Zt,[Zt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Zt,[Zt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Zt,[Zt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Zt,[Zt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Zt,[Zt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Zt,ti(Zt),function(e,t){return Math.min.apply(Math,t.map(function(t){return t.evaluate(e)}))}],max:[Zt,ti(Zt),function(e,t){return Math.max.apply(Math,t.map(function(t){return t.evaluate(e)}))}],abs:[Zt,[Zt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Zt,[Zt],function(t,e){var n=e[0].evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[Zt,[Zt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Zt,[Zt],function(t,e){return Math.ceil(e[0].evaluate(t))}],"filter-==":[Ht,[Xt,Jt],function(t,e){var n=e[0],i=e[1];return t.properties()[n.value]===i.value}],"filter-id-==":[Ht,[Jt],function(t,e){var n=e[0];return t.id()===n.value}],"filter-type-==":[Ht,[Xt],function(t,e){var n=e[0];return t.geometryType()===n.value}],"filter-<":[Ht,[Xt,Jt],function(t,e){var n=e[0],i=e[1],r=t.properties()[n.value],o=i.value;return typeof r==typeof o&&r<o}],"filter-id-<":[Ht,[Jt],function(t,e){var n=e[0],i=t.id(),r=n.value;return typeof i==typeof r&&i<r}],"filter->":[Ht,[Xt,Jt],function(t,e){var n=e[0],i=e[1],r=t.properties()[n.value],o=i.value;return typeof r==typeof o&&o<r}],"filter-id->":[Ht,[Jt],function(t,e){var n=e[0],i=t.id(),r=n.value;return typeof i==typeof r&&r<i}],"filter-<=":[Ht,[Xt,Jt],function(t,e){var n=e[0],i=e[1],r=t.properties()[n.value],o=i.value;return typeof r==typeof o&&r<=o}],"filter-id-<=":[Ht,[Jt],function(t,e){var n=e[0],i=t.id(),r=n.value;return typeof i==typeof r&&i<=r}],"filter->=":[Ht,[Xt,Jt],function(t,e){var n=e[0],i=e[1],r=t.properties()[n.value],o=i.value;return typeof r==typeof o&&o<=r}],"filter-id->=":[Ht,[Jt],function(t,e){var n=e[0],i=t.id(),r=n.value;return typeof i==typeof r&&r<=i}],"filter-has":[Ht,[Jt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Ht,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[Ht,[ee(Xt)],function(t,e){return 0<=e[0].value.indexOf(t.geometryType())}],"filter-id-in":[Ht,[ee(Jt)],function(t,e){return 0<=e[0].value.indexOf(t.id())}],"filter-in-small":[Ht,[Xt,ee(Jt)],function(t,e){var n=e[0];return 0<=e[1].value.indexOf(t.properties()[n.value])}],"filter-in-large":[Ht,[Xt,ee(Jt)],function(t,e){var n=e[0],i=e[1];return function(t,e,n,i){for(;n<=i;){var r=n+i>>1;if(e[r]===t)return!0;e[r]>t?i=r-1:n=1+r}return!1}(t.properties()[n.value],i.value,0,i.value.length-1)}],all:{type:Ht,overloads:[[[Ht,Ht],function(t,e){var n=e[1];return e[0].evaluate(t)&&n.evaluate(t)}],[ti(Ht),function(t,e){for(var n=0,i=e;n<i.length;n+=1)if(!i[n].evaluate(t))return!1;return!0}]]},any:{type:Ht,overloads:[[[Ht,Ht],function(t,e){var n=e[1];return e[0].evaluate(t)||n.evaluate(t)}],[ti(Ht),function(t,e){for(var n=0,i=e;n<i.length;n+=1)if(i[n].evaluate(t))return!0;return!1}]]},"!":[Ht,[Ht],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[Ht,[Xt],function(t,e){var n=t.globals&&t.globals.isSupportedScript;return!n||n(e[0].evaluate(t))}],upcase:[Xt,[Xt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Xt,[Xt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Xt,ti(Jt),function(e,t){return t.map(function(t){return me(t.evaluate(e))}).join("")}],"resolved-locale":[Xt,[Qt],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var di=function(t,e){var n;this.expression=t,this._warningHistory={},this._evaluator=new Ce,this._defaultValue=e?"color"===(n=e).type&&si(n.default)?new le(0,0,0,0):"color"===n.type?le.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=e&&"enum"===e.type?e.values:null};function yi(t){return Array.isArray(t)&&0<t.length&&"string"==typeof t[0]&&t[0]in Kn}function mi(t,e){var n,i,r=new un(Kn,[],e?(i={color:Yt,string:Xt,number:Zt,enum:Xt,boolean:Ht,formatted:$t,resolvedImage:te},"array"===(n=e).type?ee(i[n.value]||Jt,n.length):i[n.type]):void 0),o=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return o?ei(new di(o,e)):ni(r.errors)}di.prototype.evaluateWithoutErrorHandling=function(t,e,n,i,r,o){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=n,this._evaluator.canonical=i,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)},di.prototype.evaluate=function(t,e,n,i,r,o){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new ve("Expected value to be one of "+Object.keys(this._enumValues).map(function(t){return JSON.stringify(t)}).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var gi=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!an(e.expression)};gi.prototype.evaluateWithoutErrorHandling=function(t,e,n,i,r,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,i,r,o)},gi.prototype.evaluate=function(t,e,n,i,r,o){return this._styleExpression.evaluate(t,e,n,i,r,o)};var vi=function(t,e,n,i){this.kind=t,this.zoomStops=n,this._styleExpression=e,this.isStateDependent="camera"!==t&&!an(e.expression),this.interpolationType=i};function xi(t,e){if("error"===(t=mi(t,e)).result)return t;var n=t.value.expression,i=on(n);if(!i&&!ii(e))return ni([new Bt("","data expressions not supported")]);var r=sn(n,["zoom"]);if(!r&&!ri(e))return ni([new Bt("","zoom expressions not supported")]);var o=function n(t){var i=null;if(t instanceof Rn)i=n(t.result);else if(t instanceof Ln)for(var e=0,r=t.args;e<r.length&&!(i=n(r[e]));e+=1);else(t instanceof cn||t instanceof En)&&t.input instanceof Te&&"zoom"===t.input.name&&(i=t);return i instanceof Bt||t.eachChild(function(t){var e=n(t);e instanceof Bt?i=e:!i&&e?i=new Bt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):i&&e&&i!==e&&(i=new Bt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),i}(n);return o||r?o instanceof Bt?ni([o]):o instanceof En&&!oi(e)?ni([new Bt("",'"interpolate" expressions cannot be used with this property')]):ei(o?new vi(i?"camera":"composite",t.value,o.labels,o instanceof En?o.interpolation:void 0):new gi(i?"constant":"source",t.value)):ni([new Bt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}function _i(t,e){this._parameters=t,this._specification=e,Ft(this,function t(i,r){var o,a,s,e="color"===r.type,n=i.stops&&"object"==typeof i.stops[0][0],l=n||!(n||void 0!==i.property),u=i.type||(oi(r)?"exponential":"interval");if(e&&((i=Ft({},i)).stops&&(i.stops=i.stops.map(function(t){return[t[0],le.parse(t[1])]})),i.default=le.parse(i.default?i.default:r.default)),i.colorSpace&&"rgb"!==i.colorSpace&&!An[i.colorSpace])throw new Error("Unknown color space: "+i.colorSpace);if("exponential"===u)o=pi;else if("interval"===u)o=ci;else if("categorical"===u){o=hi,a=Object.create(null);for(var h=0,c=i.stops;h<c.length;h+=1){var p=c[h];a[p[0]]=p[1]}s=typeof i.stops[0][0]}else{if("identity"!==u)throw new Error('Unknown function type "'+u+'"');o=fi}if(n){for(var f={},d=[],y=0;y<i.stops.length;y++){var m=i.stops[y],g=m[0].zoom;void 0===f[g]&&(f[g]={zoom:g,type:i.type,property:i.property,default:i.default,stops:[]},d.push(g)),f[g].stops.push([m[0].value,m[1]])}for(var v=[],x=0,_=d;x<_.length;x+=1){var w=_[x];v.push([f[w].zoom,t(f[w],r)])}var b={name:"linear"};return{kind:"composite",interpolationType:b,interpolationFactor:En.interpolationFactor.bind(void 0,b),zoomStops:v.map(function(t){return t[0]}),evaluate:function(t,e){var n=t.zoom;return pi({stops:v,base:i.base},r,n).evaluate(n,e)}}}if(l){var P="exponential"===u?{name:"exponential",base:void 0!==i.base?i.base:1}:null;return{kind:"camera",interpolationType:P,interpolationFactor:En.interpolationFactor.bind(void 0,P),zoomStops:i.stops.map(function(t){return t[0]}),evaluate:function(t){return o(i,r,t.zoom,a,s)}}}return{kind:"source",evaluate:function(t,e){var n=e&&e.properties?e.properties[i.property]:void 0;return void 0===n?ui(i.default,r.default):o(i,r,n,a,s)}}}(this._parameters,this._specification))}function wi(t){var e=t.key,n=t.value,i=t.valueSpec||{},r=t.objectElementValidators||{},o=t.style,a=t.styleSpec,s=[],l=ai(n);if("object"!==l)return[new zt(e,n,"object expected, "+l+" found")];for(var u in n){var h=u.split(".")[0],c=i[h]||i["*"],p=void 0;if(r[h])p=r[h];else if(i[h])p=Zi;else if(r["*"])p=r["*"];else{if(!i["*"]){s.push(new zt(e,n[u],'unknown property "'+u+'"'));continue}p=Zi}s=s.concat(p({key:(e?e+".":e)+u,value:n[u],valueSpec:c,style:o,styleSpec:a,object:n,objectKey:u},n))}for(var f in i)r[f]||i[f].required&&void 0===i[f].default&&void 0===n[f]&&s.push(new zt(e,n,'missing required property "'+f+'"'));return s}function bi(t){var e=t.value,n=t.valueSpec,i=t.style,r=t.styleSpec,o=t.key,a=t.arrayElementValidator||Zi;if("array"!==ai(e))return[new zt(o,e,"array expected, "+ai(e)+" found")];if(n.length&&e.length!==n.length)return[new zt(o,e,"array length "+n.length+" expected, length "+e.length+" found")];if(n["min-length"]&&e.length<n["min-length"])return[new zt(o,e,"array length at least "+n["min-length"]+" expected, length "+e.length+" found")];var s={type:n.value,values:n.values};r.$version<7&&(s.function=n.function),"object"===ai(n.value)&&(s=n.value);for(var l=[],u=0;u<e.length;u++)l=l.concat(a({array:e,arrayIndex:u,value:e[u],valueSpec:s,style:i,styleSpec:r,key:o+"["+u+"]"}));return l}function Pi(t){var e=t.key,n=t.value,i=t.valueSpec,r=ai(n);return"number"===r&&n!=n&&(r="NaN"),"number"!==r?[new zt(e,n,"number expected, "+r+" found")]:"minimum"in i&&n<i.minimum?[new zt(e,n,n+" is less than the minimum value "+i.minimum)]:"maximum"in i&&n>i.maximum?[new zt(e,n,n+" is greater than the maximum value "+i.maximum)]:[]}function Si(t){var a,s,r,l=t.valueSpec,u=Gt(t.value.type),h={},e="categorical"!==u&&void 0===t.value.property,n=!e,o="array"===ai(t.value.stops)&&"array"===ai(t.value.stops[0])&&"object"===ai(t.value.stops[0][0]),i=wi({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===u)return[new zt(t.key,t.value,'identity function may not have a "stops" property')];var e=[],n=t.value;return e=e.concat(bi({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:c})),"array"===ai(n)&&0===n.length&&e.push(new zt(t.key,n,"array must have at least one stop")),e},default:function(t){return Zi({key:t.key,value:t.value,valueSpec:l,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===u&&e&&i.push(new zt(t.key,t.value,'missing required property "property"')),"identity"===u||t.value.stops||i.push(new zt(t.key,t.value,'missing required property "stops"')),"exponential"===u&&t.valueSpec.expression&&!oi(t.valueSpec)&&i.push(new zt(t.key,t.value,"exponential functions not supported")),8<=t.styleSpec.$version&&(n&&!ii(t.valueSpec)?i.push(new zt(t.key,t.value,"property functions not supported")):e&&!ri(t.valueSpec)&&i.push(new zt(t.key,t.value,"zoom functions not supported"))),"categorical"!==u&&!o||void 0!==t.value.property||i.push(new zt(t.key,t.value,'"property" property is required')),i;function c(t){var e=[],n=t.value,i=t.key;if("array"!==ai(n))return[new zt(i,n,"array expected, "+ai(n)+" found")];if(2!==n.length)return[new zt(i,n,"array length 2 expected, length "+n.length+" found")];if(o){if("object"!==ai(n[0]))return[new zt(i,n,"object expected, "+ai(n[0])+" found")];if(void 0===n[0].zoom)return[new zt(i,n,"object stop key must have zoom")];if(void 0===n[0].value)return[new zt(i,n,"object stop key must have value")];if(r&&r>Gt(n[0].zoom))return[new zt(i,n[0].zoom,"stop zoom values must appear in ascending order")];Gt(n[0].zoom)!==r&&(r=Gt(n[0].zoom),s=void 0,h={}),e=e.concat(wi({key:i+"[0]",value:n[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Pi,value:p}}))}else e=e.concat(p({key:i+"[0]",value:n[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},n));return yi(jt(n[1]))?e.concat([new zt(i+"[1]",n[1],"expressions are not allowed in function stops.")]):e.concat(Zi({key:i+"[1]",value:n[1],valueSpec:l,style:t.style,styleSpec:t.styleSpec}))}function p(t,e){var n=ai(t.value),i=Gt(t.value),r=null!==t.value?t.value:e;if(a){if(n!==a)return[new zt(t.key,r,n+" stop domain type must match previous stop domain type "+a)]}else a=n;if("number"!==n&&"string"!==n&&"boolean"!==n)return[new zt(t.key,r,"stop domain value must be a number, string, or boolean")];if("number"===n||"categorical"===u)return"categorical"!==u||"number"!==n||isFinite(i)&&Math.floor(i)===i?"categorical"!==u&&"number"===n&&void 0!==s&&i<s?[new zt(t.key,r,"stop domain values must appear in ascending order")]:(s=i,"categorical"===u&&i in h?[new zt(t.key,r,"stop domain values must be unique")]:(h[i]=!0,[])):[new zt(t.key,r,"integer expected, found "+i)];var o="number expected, "+n+" found";return ii(l)&&void 0===u&&(o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new zt(t.key,r,o)]}}function Ci(e){var t=("property"===e.expressionContext?xi:mi)(jt(e.value),e.valueSpec);if("error"===t.result)return t.value.map(function(t){return new zt(""+e.key+t.key,e.value,t.message)});var n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new zt(e.key,e.value,'Invalid data expression for "'+e.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===e.expressionContext&&"layout"===e.propertyType&&!an(n))return[new zt(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!an(n))return[new zt(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!sn(n,["zoom","feature-state"]))return[new zt(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!on(n))return[new zt(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Mi(t){var e=t.key,n=t.value,i=t.valueSpec,r=[];return Array.isArray(i.values)?-1===i.values.indexOf(Gt(n))&&r.push(new zt(e,n,"expected one of ["+i.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(i.values).indexOf(Gt(n))&&r.push(new zt(e,n,"expected one of ["+Object.keys(i.values).join(", ")+"], "+JSON.stringify(n)+" found")),r}function Ti(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return 2<=t.length&&"$id"!==t[1]&&"$type"!==t[1];case"in":return 3<=t.length&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,n=t.slice(1);e<n.length;e+=1){var i=n[e];if(!Ti(i)&&"boolean"!=typeof i)return!1}return!0;default:return!0}}vi.prototype.evaluateWithoutErrorHandling=function(t,e,n,i,r,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,i,r,o)},vi.prototype.evaluate=function(t,e,n,i,r,o){return this._styleExpression.evaluate(t,e,n,i,r,o)},vi.prototype.interpolationFactor=function(t,e,n){return this.interpolationType?En.interpolationFactor(this.interpolationType,t,e,n):0},_i.deserialize=function(t){return new _i(t._parameters,t._specification)};var Ai={type:"boolean",default:(_i.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}},!1),transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Ei(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};Ti(t)||(t=Li(t));var i=mi(t,Ai);if("error"===i.result)throw new Error(i.value.map(function(t){return t.key+": "+t.message}).join(", "));return{filter:function(t,e,n){return i.value.evaluate(t,e,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(var n=1;n<e.length;n++)if(t(e[n]))return!0;return!1}(t)}}function Ii(t,e){return t<e?-1:e<t?1:0}function Li(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?Ri(t[1],t[2],"=="):"!="===n?ki(Ri(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?Ri(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(Li))):"all"===n?["all"].concat(t.slice(1).map(Li)):"none"===n?["all"].concat(t.slice(1).map(Li).map(ki)):"in"===n?Oi(t[1],t.slice(2)):"!in"===n?ki(Oi(t[1],t.slice(2))):"has"===n?Ni(t[1]):"!has"===n?ki(Ni(t[1])):"within"!==n||t}function Ri(t,e,n){switch(t){case"$type":return["filter-type-"+n,e];case"$id":return["filter-id-"+n,e];default:return["filter-"+n,t,e]}}function Oi(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return 200<e.length&&!e.some(function(t){return typeof t!=typeof e[0]})?["filter-in-large",t,["literal",e.sort(Ii)]]:["filter-in-small",t,["literal",e]]}}function Ni(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function ki(t){return["!",t]}function zi(t){return Ti(jt(t.value))?Ci(Ft({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var n=e.value,i=e.key;if("array"!==ai(n))return[new zt(i,n,"array expected, "+ai(n)+" found")];var r,o=e.styleSpec,a=[];if(n.length<1)return[new zt(i,n,"filter array must have at least 1 element")];switch(a=a.concat(Mi({key:i+"[0]",value:n[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),Gt(n[0])){case"<":case"<=":case">":case">=":2<=n.length&&"$type"===Gt(n[1])&&a.push(new zt(i,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new zt(i,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":2<=n.length&&"string"!==(r=ai(n[1]))&&a.push(new zt(i+"[1]",n[1],"string expected, "+r+" found"));for(var s=2;s<n.length;s++)r=ai(n[s]),"$type"===Gt(n[1])?a=a.concat(Mi({key:i+"["+s+"]",value:n[s],valueSpec:o.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==r&&"number"!==r&&"boolean"!==r&&a.push(new zt(i+"["+s+"]",n[s],"string, number, or boolean expected, "+r+" found"));break;case"any":case"all":case"none":for(var l=1;l<n.length;l++)a=a.concat(t({key:i+"["+l+"]",value:n[l],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":r=ai(n[1]),2!==n.length?a.push(new zt(i,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"string"!==r&&a.push(new zt(i+"[1]",n[1],"string expected, "+r+" found"));break;case"within":r=ai(n[1]),2!==n.length?a.push(new zt(i,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"object"!==r&&a.push(new zt(i+"[1]",n[1],"object expected, "+r+" found"))}return a}(t)}function Di(t,e){var n=t.key,i=t.style,r=t.styleSpec,o=t.value,a=t.objectKey,s=r[e+"_"+t.layerType];if(!s)return[];var l=a.match(/^(.*)-transition$/);if("paint"===e&&l&&s[l[1]]&&s[l[1]].transition)return Zi({key:n,value:o,valueSpec:r.transition,style:i,styleSpec:r});var u,h=t.valueSpec||s[a];if(!h)return[new zt(n,o,'unknown property "'+a+'"')];if("string"===ai(o)&&ii(h)&&!h.tokens&&(u=/^{([^}]+)}$/.exec(o)))return[new zt(n,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var c=[];return"symbol"===t.layerType&&("text-field"===a&&i&&!i.glyphs&&c.push(new zt(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&si(jt(o))&&"identity"===Gt(o.type)&&c.push(new zt(n,o,'"text-font" does not support identity functions'))),c.concat(Zi({key:t.key,value:o,valueSpec:h,style:i,styleSpec:r,expressionContext:"property",propertyType:e,propertyKey:a}))}function Fi(t){return Di(t,"paint")}function Gi(t){return Di(t,"layout")}function ji(t){var e=[],n=t.value,i=t.key,r=t.style,o=t.styleSpec;n.type||n.ref||e.push(new zt(i,n,'either "type" or "ref" is required'));var a,s=Gt(n.type),l=Gt(n.ref);if(n.id)for(var u=Gt(n.id),h=0;h<t.arrayIndex;h++){var c=r.layers[h];Gt(c.id)===u&&e.push(new zt(i,n.id,'duplicate layer id "'+n.id+'", previously used at line '+c.id.__line__))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach(function(t){t in n&&e.push(new zt(i,n[t],'"'+t+'" is prohibited for ref layers'))}),r.layers.forEach(function(t){Gt(t.id)===l&&(a=t)}),a?a.ref?e.push(new zt(i,n.ref,"ref cannot reference another ref layer")):s=Gt(a.type):e.push(new zt(i,n.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(n.source){var p=r.sources&&r.sources[n.source],f=p&&Gt(p.type);p?"vector"===f&&"raster"===s?e.push(new zt(i,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===f&&"raster"!==s?e.push(new zt(i,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==f||n["source-layer"]?"raster-dem"===f&&"hillshade"!==s?e.push(new zt(i,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]||"geojson"===f&&p.lineMetrics||e.push(new zt(i,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new zt(i,n,'layer "'+n.id+'" must specify a "source-layer"')):e.push(new zt(i,n.source,'source "'+n.source+'" not found'))}else e.push(new zt(i,n,'missing required property "source"'));return e=e.concat(wi({key:i,value:n,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Zi({key:i+".type",value:n.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,object:n,objectKey:"type"})},filter:zi,layout:function(t){return wi({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Gi(Ft({layerType:s},t))}}})},paint:function(t){return wi({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Fi(Ft({layerType:s},t))}}})}}}))}function Vi(t){var e=t.value,n=t.key,i=ai(e);return"string"!==i?[new zt(n,e,"string expected, "+i+" found")]:[]}var qi={promoteId:function(t){var e=t.key,n=t.value;if("string"===ai(n))return Vi({key:e,value:n});var i=[];for(var r in n)i.push.apply(i,Vi({key:e+"."+r,value:n[r]}));return i}};function Bi(t){var e=t.value,n=t.key,i=t.styleSpec,r=t.style;if(!e.type)return[new zt(n,e,'"type" is required')];var o,a=Gt(e.type);switch(a){case"vector":case"raster":case"raster-dem":return wi({key:n,value:e,valueSpec:i["source_"+a.replace("-","_")],style:t.style,styleSpec:i,objectElementValidators:qi});case"geojson":if(o=wi({key:n,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,objectElementValidators:qi}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],u=l[0],h="string"==typeof u?[u,["accumulated"],["get",s]]:u;o.push.apply(o,Ci({key:n+"."+s+".map",value:l[1],expressionContext:"cluster-map"})),o.push.apply(o,Ci({key:n+"."+s+".reduce",value:h,expressionContext:"cluster-reduce"}))}return o;case"video":return wi({key:n,value:e,valueSpec:i.source_video,style:r,styleSpec:i});case"image":return wi({key:n,value:e,valueSpec:i.source_image,style:r,styleSpec:i});case"canvas":return[new zt(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Mi({key:n+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:r,styleSpec:i})}}function Ui(t){var e=t.value,n=t.styleSpec,i=n.light,r=t.style,o=[],a=ai(e);if(void 0===e)return o;if("object"!==a)return o.concat([new zt("light",e,"object expected, "+a+" found")]);for(var s in e){var l=s.match(/^(.*)-transition$/);o=o.concat(l&&i[l[1]]&&i[l[1]].transition?Zi({key:s,value:e[s],valueSpec:n.transition,style:r,styleSpec:n}):i[s]?Zi({key:s,value:e[s],valueSpec:i[s],style:r,styleSpec:n}):[new zt(s,e[s],'unknown property "'+s+'"')])}return o}var Wi={"*":function(){return[]},array:bi,boolean:function(t){var e=t.value,n=t.key,i=ai(e);return"boolean"!==i?[new zt(n,e,"boolean expected, "+i+" found")]:[]},number:Pi,color:function(t){var e=t.key,n=t.value,i=ai(n);return"string"!==i?[new zt(e,n,"color expected, "+i+" found")]:null===se(n)?[new zt(e,n,'color expected, "'+n+'" found')]:[]},constants:Dt,enum:Mi,filter:zi,function:Si,layer:ji,object:wi,source:Bi,light:Ui,string:Vi,formatted:function(t){return 0===Vi(t).length?[]:Ci(t)},resolvedImage:function(t){return 0===Vi(t).length?[]:Ci(t)}};function Zi(t){var e=t.value,n=t.valueSpec,i=t.styleSpec;return n.expression&&si(Gt(e))?Si(t):n.expression&&yi(jt(e))?Ci(t):n.type&&Wi[n.type]?Wi[n.type](t):wi(Ft({},t,{valueSpec:n.type?i[n.type]:n}))}function Xi(t){var e=t.value,n=t.key,i=Vi(t);return i.length||(-1===e.indexOf("{fontstack}")&&i.push(new zt(n,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&i.push(new zt(n,e,'"glyphs" url must include a "{range}" token'))),i}function Hi(t,e){void 0===e&&(e=kt);var n=[];return n=n.concat(Zi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Xi,"*":function(){return[]}}})),t.constants&&(n=n.concat(Dt({key:"constants",value:t.constants,style:t,styleSpec:e}))),Yi(n)}function Yi(t){return[].concat(t).sort(function(t,e){return t.line-e.line})}function Ki(n){return function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Yi(n.apply(this,t))}}Hi.source=Ki(Bi),Hi.light=Ki(Ui),Hi.layer=Ki(ji),Hi.filter=Ki(zi),Hi.paintProperty=Ki(Fi),Hi.layoutProperty=Ki(Gi);var Ji=Hi,Qi=Ji.light,$i=Ji.paintProperty,tr=Ji.layoutProperty;function er(t,e){var n=!1;if(e&&e.length)for(var i=0,r=e;i<r.length;i+=1)t.fire(new Ot(new Error(r[i].message))),n=!0;return n}var nr=rr,ir=3;function rr(t,e,n){var i=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var r=new Int32Array(this.arrayBuffer);t=r[0],this.d=(e=r[1])+2*(n=r[2]);for(var o=0;o<this.d*this.d;o++){var a=r[ir+o],s=r[ir+o+1];i.push(a===s?null:r.subarray(a,s))}var l=r[ir+i.length+1];this.keys=r.subarray(r[ir+i.length],l),this.bboxes=r.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*n;for(var u=0;u<this.d*this.d;u++)i.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=n,this.scale=e/t,this.uid=0;var h=n/e*t;this.min=-h,this.max=t+h}rr.prototype.insert=function(t,e,n,i,r){this._forEachCell(e,n,i,r,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)},rr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},rr.prototype._insertCell=function(t,e,n,i,r,o){this.cells[r].push(o)},rr.prototype.query=function(t,e,n,i,r){var o=this.min,a=this.max;if(t<=o&&e<=o&&a<=n&&a<=i&&!r)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,n,i,this._queryCell,s,{},r),s},rr.prototype._queryCell=function(t,e,n,i,r,o,a,s){var l=this.cells[r];if(null!==l)for(var u=this.keys,h=this.bboxes,c=0;c<l.length;c++){var p=l[c];if(void 0===a[p]){var f=4*p;(s?s(h[0+f],h[1+f],h[2+f],h[3+f]):t<=h[2+f]&&e<=h[3+f]&&n>=h[0+f]&&i>=h[1+f])?(a[p]=!0,o.push(u[p])):a[p]=!1}}},rr.prototype._forEachCell=function(t,e,n,i,r,o,a,s){for(var l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),h=this._convertToCellCoord(n),c=this._convertToCellCoord(i),p=l;p<=h;p++)for(var f=u;f<=c;f++){var d=this.d*f+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(f),this._convertFromCellCoord(p+1),this._convertFromCellCoord(f+1)))&&r.call(this,t,e,n,i,d,o,a,s))return}},rr.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},rr.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},rr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=ir+this.cells.length+1+1,n=0,i=0;i<this.cells.length;i++)n+=this.cells[i].length;var r=new Int32Array(e+n+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;for(var o=e,a=0;a<t.length;a++){var s=t[a];r[ir+a]=o,r.set(s,o),o+=s.length}return r[ir+t.length]=o,r.set(this.keys,o),r[ir+t.length+1]=o+=this.keys.length,r.set(this.bboxes,o),o+=this.bboxes.length,r.buffer};var or=self.ImageData,ar=self.ImageBitmap,sr={};function lr(t,e,n){void 0===n&&(n={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),sr[t]={klass:e,omit:n.omit||[],shallow:n.shallow||[]}}for(var ur in lr("Object",Object),nr.serialize=function(t,e){var n=t.toArrayBuffer();return e&&e.push(n),{buffer:n}},nr.deserialize=function(t){return new nr(t.buffer)},lr("Grid",nr),lr("Color",le),lr("Error",Error),lr("ResolvedImage",pe),lr("StylePropertyFunction",_i),lr("StyleExpression",di,{omit:["_evaluator"]}),lr("ZoomDependentExpression",vi),lr("ZoomConstantExpression",gi),lr("CompoundExpression",Te,{omit:["_evaluate"]}),Kn)Kn[ur]._classRegistryKey||lr("Expression_"+ur,Kn[ur]);function hr(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function cr(t){return ar&&t instanceof ar}function pr(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(hr(t)||cr(t))return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var n=t;return e&&e.push(n.buffer),n}if(t instanceof or)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var i=[],r=0,o=t;r<o.length;r+=1)i.push(pr(o[r],e));return i}if("object"!=typeof t)throw new Error("can't serialize object of type "+typeof t);var a=t.constructor,s=a._classRegistryKey;if(!s)throw new Error("can't serialize object of unregistered class");var l=a.serialize?a.serialize(t,e):{};if(!a.serialize){for(var u in t)if(t.hasOwnProperty(u)&&!(0<=sr[s].omit.indexOf(u))){var h=t[u];l[u]=0<=sr[s].shallow.indexOf(u)?h:pr(h,e)}t instanceof Error&&(l.message=t.message)}if(l.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(l.$name=s),l}function fr(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||hr(t)||cr(t)||ArrayBuffer.isView(t)||t instanceof or)return t;if(Array.isArray(t))return t.map(fr);if("object"!=typeof t)throw new Error("can't deserialize object of type "+typeof t);var e=t.$name||"Object",n=sr[e].klass;if(!n)throw new Error("can't deserialize unregistered class "+e);if(n.deserialize)return n.deserialize(t);for(var i=Object.create(n.prototype),r=0,o=Object.keys(t);r<o.length;r+=1){var a=o[r];if("$name"!==a){var s=t[a];i[a]=0<=sr[e].shallow.indexOf(a)?s:fr(s)}}return i}function dr(){this.first=!0}dr.prototype.update=function(t,e){var n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=n,!0))};var yr={"Latin-1 Supplement":function(t){return 128<=t&&t<=255},Arabic:function(t){return 1536<=t&&t<=1791},"Arabic Supplement":function(t){return 1872<=t&&t<=1919},"Arabic Extended-A":function(t){return 2208<=t&&t<=2303},"Hangul Jamo":function(t){return 4352<=t&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return 5120<=t&&t<=5759},Khmer:function(t){return 6016<=t&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return 6320<=t&&t<=6399},"General Punctuation":function(t){return 8192<=t&&t<=8303},"Letterlike Symbols":function(t){return 8448<=t&&t<=8527},"Number Forms":function(t){return 8528<=t&&t<=8591},"Miscellaneous Technical":function(t){return 8960<=t&&t<=9215},"Control Pictures":function(t){return 9216<=t&&t<=9279},"Optical Character Recognition":function(t){return 9280<=t&&t<=9311},"Enclosed Alphanumerics":function(t){return 9312<=t&&t<=9471},"Geometric Shapes":function(t){return 9632<=t&&t<=9727},"Miscellaneous Symbols":function(t){return 9728<=t&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return 11008<=t&&t<=11263},"CJK Radicals Supplement":function(t){return 11904<=t&&t<=12031},"Kangxi Radicals":function(t){return 12032<=t&&t<=12255},"Ideographic Description Characters":function(t){return 12272<=t&&t<=12287},"CJK Symbols and Punctuation":function(t){return 12288<=t&&t<=12351},Hiragana:function(t){return 12352<=t&&t<=12447},Katakana:function(t){return 12448<=t&&t<=12543},Bopomofo:function(t){return 12544<=t&&t<=12591},"Hangul Compatibility Jamo":function(t){return 12592<=t&&t<=12687},Kanbun:function(t){return 12688<=t&&t<=12703},"Bopomofo Extended":function(t){return 12704<=t&&t<=12735},"CJK Strokes":function(t){return 12736<=t&&t<=12783},"Katakana Phonetic Extensions":function(t){return 12784<=t&&t<=12799},"Enclosed CJK Letters and Months":function(t){return 12800<=t&&t<=13055},"CJK Compatibility":function(t){return 13056<=t&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return 13312<=t&&t<=19903},"Yijing Hexagram Symbols":function(t){return 19904<=t&&t<=19967},"CJK Unified Ideographs":function(t){return 19968<=t&&t<=40959},"Yi Syllables":function(t){return 40960<=t&&t<=42127},"Yi Radicals":function(t){return 42128<=t&&t<=42191},"Hangul Jamo Extended-A":function(t){return 43360<=t&&t<=43391},"Hangul Syllables":function(t){return 44032<=t&&t<=55215},"Hangul Jamo Extended-B":function(t){return 55216<=t&&t<=55295},"Private Use Area":function(t){return 57344<=t&&t<=63743},"CJK Compatibility Ideographs":function(t){return 63744<=t&&t<=64255},"Arabic Presentation Forms-A":function(t){return 64336<=t&&t<=65023},"Vertical Forms":function(t){return 65040<=t&&t<=65055},"CJK Compatibility Forms":function(t){return 65072<=t&&t<=65103},"Small Form Variants":function(t){return 65104<=t&&t<=65135},"Arabic Presentation Forms-B":function(t){return 65136<=t&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return 65280<=t&&t<=65519}};function mr(t){for(var e=0,n=t;e<n.length;e+=1)if(gr(n[e].charCodeAt(0)))return!0;return!1}function gr(t){return!(746!==t&&747!==t&&(t<4352||!(yr["Bopomofo Extended"](t)||yr.Bopomofo(t)||yr["CJK Compatibility Forms"](t)&&!(65097<=t&&t<=65103)||yr["CJK Compatibility Ideographs"](t)||yr["CJK Compatibility"](t)||yr["CJK Radicals Supplement"](t)||yr["CJK Strokes"](t)||!(!yr["CJK Symbols and Punctuation"](t)||12296<=t&&t<=12305||12308<=t&&t<=12319||12336===t)||yr["CJK Unified Ideographs Extension A"](t)||yr["CJK Unified Ideographs"](t)||yr["Enclosed CJK Letters and Months"](t)||yr["Hangul Compatibility Jamo"](t)||yr["Hangul Jamo Extended-A"](t)||yr["Hangul Jamo Extended-B"](t)||yr["Hangul Jamo"](t)||yr["Hangul Syllables"](t)||yr.Hiragana(t)||yr["Ideographic Description Characters"](t)||yr.Kanbun(t)||yr["Kangxi Radicals"](t)||yr["Katakana Phonetic Extensions"](t)||yr.Katakana(t)&&12540!==t||!(!yr["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||65306<=t&&t<=65310||65339===t||65341===t||65343===t||65371<=t&&t<=65503||65507===t||65512<=t&&t<=65519)||!(!yr["Small Form Variants"](t)||65112<=t&&t<=65118||65123<=t&&t<=65126)||yr["Unified Canadian Aboriginal Syllabics"](t)||yr["Unified Canadian Aboriginal Syllabics Extended"](t)||yr["Vertical Forms"](t)||yr["Yijing Hexagram Symbols"](t)||yr["Yi Syllables"](t)||yr["Yi Radicals"](t))))}function vr(t){return!(gr(t)||(e=t,yr["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||yr["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||yr["Letterlike Symbols"](e)||yr["Number Forms"](e)||yr["Miscellaneous Technical"](e)&&(8960<=e&&e<=8967||8972<=e&&e<=8991||8996<=e&&e<=9e3||9003===e||9085<=e&&e<=9114||9150<=e&&e<=9165||9167===e||9169<=e&&e<=9179||9186<=e&&e<=9215)||yr["Control Pictures"](e)&&9251!==e||yr["Optical Character Recognition"](e)||yr["Enclosed Alphanumerics"](e)||yr["Geometric Shapes"](e)||yr["Miscellaneous Symbols"](e)&&!(9754<=e&&e<=9759)||yr["Miscellaneous Symbols and Arrows"](e)&&(11026<=e&&e<=11055||11088<=e&&e<=11097||11192<=e&&e<=11243)||yr["CJK Symbols and Punctuation"](e)||yr.Katakana(e)||yr["Private Use Area"](e)||yr["CJK Compatibility Forms"](e)||yr["Small Form Variants"](e)||yr["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||9984<=e&&e<=10087||10102<=e&&e<=10131||65532===e||65533===e));var e}function xr(t){return 1424<=t&&t<=2303||yr["Arabic Presentation Forms-A"](t)||yr["Arabic Presentation Forms-B"](t)}function _r(t){for(var e=0,n=t;e<n.length;e+=1)if(xr(n[e].charCodeAt(0)))return!0;return!1}function wr(t){t&&"string"==typeof t&&-1<t.indexOf("NetworkError")&&(Pr="error"),br&&br(t)}var br=null,Pr="unavailable",Sr=null;function Cr(){Er.fire(new It("pluginStateChange",{pluginStatus:Pr,pluginURL:Sr}))}function Mr(){return Pr}function Tr(){if("deferred"!==Pr||!Sr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Pr="loading",Cr(),Sr&&Pt({url:Sr},function(t){t?wr(t):(Pr="loaded",Cr())})}function Ar(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new dr,this.transition={})}var Er=new Lt,Ir={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Pr||null!=Ir.applyArabicShaping},isLoading:function(){return"loading"===Pr},setState:function(t){Pr=t.pluginStatus,Sr=t.pluginURL},isParsed:function(){return null!=Ir.applyArabicShaping&&null!=Ir.processBidirectionalText&&null!=Ir.processStyledBidirectionalText},getPluginURL:function(){return Sr}};function Lr(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(si(t))return new _i(t,e);if(yi(t)){var n=xi(t,e);if("error"===n.result)throw new Error(n.value.map(function(t){return t.key+": "+t.message}).join(", "));return n.value}var i=t;return"string"==typeof t&&"color"===e.type&&(i=le.parse(t)),{kind:"constant",evaluate:function(){return i}}}(void 0===e?t.specification.default:e,t.specification)}function Rr(t){this.property=t,this.value=new Lr(t,void 0)}function Or(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)}Ar.prototype.isSupportedScript=function(t){return function(t,e){for(var n=0,i=t;n<i.length;n+=1)if(r=i[n].charCodeAt(0),!e&&xr(r)||2304<=r&&r<=3583||3840<=r&&r<=4255||yr.Khmer(r))return!1;var r;return!0}(t,Ir.isLoaded())},Ar.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Ar.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),n=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*e}},Lr.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Lr.prototype.possiblyEvaluate=function(t,e,n){return this.property.possiblyEvaluate(this,t,e,n)},Rr.prototype.transitioned=function(t,e){return new Nr(this.property,this.value,e,f({},t.transition,this.transition),t.now)},Rr.prototype.untransitioned=function(){return new Nr(this.property,this.value,null,{},0)},Or.prototype.getValue=function(t){return v(this._values[t].value.value)},Or.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Rr(this._values[t].property)),this._values[t].value=new Lr(this._values[t].property,null===e?void 0:v(e))},Or.prototype.getTransition=function(t){return v(this._values[t].transition)},Or.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Rr(this._values[t].property)),this._values[t].transition=v(e)||void 0},Or.prototype.serialize=function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e+=1){var i=n[e],r=this.getValue(i);void 0!==r&&(t[i]=r);var o=this.getTransition(i);void 0!==o&&(t[i+"-transition"]=o)}return t},Or.prototype.transitioned=function(t,e){for(var n=new kr(this._properties),i=0,r=Object.keys(this._values);i<r.length;i+=1){var o=r[i];n._values[o]=this._values[o].transitioned(t,e._values[o])}return n},Or.prototype.untransitioned=function(){for(var t=new kr(this._properties),e=0,n=Object.keys(this._values);e<n.length;e+=1){var i=n[e];t._values[i]=this._values[i].untransitioned()}return t};var Nr=function(t,e,n,i,r){this.property=t,this.value=e,this.begin=r+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=n)};Nr.prototype.possiblyEvaluate=function(t,e,n){var i=t.now||0,r=this.value.possiblyEvaluate(t,e,n),o=this.prior;if(o){if(i>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(i<this.begin)return o.possiblyEvaluate(t,e,n);var a=(i-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(t,e,n),r,function(){if(a<=0)return 0;if(1<=a)return 1;var t=a*a,e=t*a;return 4*(a<.5?e:3*(a-t)+e-.75)}())}return r};var kr=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};function zr(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)}function Dr(t,e,n){this.property=t,this.value=e,this.parameters=n}kr.prototype.possiblyEvaluate=function(t,e,n){for(var i=new Fr(this._properties),r=0,o=Object.keys(this._values);r<o.length;r+=1){var a=o[r];i._values[a]=this._values[a].possiblyEvaluate(t,e,n)}return i},kr.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1},zr.prototype.getValue=function(t){return v(this._values[t].value)},zr.prototype.setValue=function(t,e){this._values[t]=new Lr(this._values[t].property,null===e?void 0:v(e))},zr.prototype.serialize=function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e+=1){var i=n[e],r=this.getValue(i);void 0!==r&&(t[i]=r)}return t},zr.prototype.possiblyEvaluate=function(t,e,n){for(var i=new Fr(this._properties),r=0,o=Object.keys(this._values);r<o.length;r+=1){var a=o[r];i._values[a]=this._values[a].possiblyEvaluate(t,e,n)}return i},Dr.prototype.isConstant=function(){return"constant"===this.value.kind},Dr.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},Dr.prototype.evaluate=function(t,e,n,i){return this.property.evaluate(this.value,this.parameters,t,e,n,i)};var Fr=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};function Gr(t){this.specification=t}function jr(t,e){this.specification=t,this.overrides=e}function Vr(t){this.specification=t}Fr.prototype.get=function(t){return this._values[t]},Gr.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},Gr.prototype.interpolate=function(t,e,n){var i=fn[this.specification.type];return i?i(t,e,n):t},jr.prototype.possiblyEvaluate=function(t,e,n,i){return new Dr(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},n,i)}:t.expression,e)},jr.prototype.interpolate=function(t,e,n){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new Dr(this,{kind:"constant",value:void 0},t.parameters);var i=fn[this.specification.type];return i?new Dr(this,{kind:"constant",value:i(t.value.value,e.value.value,n)},t.parameters):t},jr.prototype.evaluate=function(t,e,n,i,r,o){return"constant"===t.kind?t.value:t.evaluate(e,n,i,r,o)};var qr,Br=(Ur.__proto__=qr=jr,((Ur.prototype=Object.create(qr&&qr.prototype)).constructor=Ur).prototype.possiblyEvaluate=function(t,e,n,i){if(void 0===t.value)return new Dr(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var r=t.expression.evaluate(e,null,{},n,i),o="resolvedImage"===t.property.specification.type&&"string"!=typeof r?r.name:r,a=this._calculate(o,o,o,e);return new Dr(this,{kind:"constant",value:a},e)}if("camera"!==t.expression.kind)return new Dr(this,t.expression,e);var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new Dr(this,{kind:"constant",value:s},e)},Ur.prototype.evaluate=function(t,e,n,i,r,o){if("source"!==t.kind)return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},n,i),t.evaluate({zoom:Math.floor(e.zoom)},n,i),t.evaluate({zoom:Math.floor(e.zoom)+1},n,i),e):t.value;var a=t.evaluate(e,n,i,r,o);return this._calculate(a,a,a,e)},Ur.prototype._calculate=function(t,e,n,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},Ur.prototype.interpolate=function(t){return t},Ur);function Ur(){qr.apply(this,arguments)}function Wr(t){this.specification=t}function Zr(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var n=t[e];n.specification.overridable&&this.overridableProperties.push(e);var i=this.defaultPropertyValues[e]=new Lr(n,void 0),r=this.defaultTransitionablePropertyValues[e]=new Rr(n);this.defaultTransitioningPropertyValues[e]=r.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}}function Xr(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}function Hr(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}Vr.prototype.possiblyEvaluate=function(t,e,n,i){if(void 0!==t.value){if("constant"!==t.expression.kind)return this._calculate(t.expression.evaluate(new Ar(Math.floor(e.zoom-1),e)),t.expression.evaluate(new Ar(Math.floor(e.zoom),e)),t.expression.evaluate(new Ar(Math.floor(e.zoom+1),e)),e);var r=t.expression.evaluate(e,null,{},n,i);return this._calculate(r,r,r,e)}},Vr.prototype._calculate=function(t,e,n,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},Vr.prototype.interpolate=function(t){return t},Wr.prototype.possiblyEvaluate=function(t,e,n,i){return!!t.expression.evaluate(e,null,{},n,i)},Wr.prototype.interpolate=function(){return!1},lr("DataDrivenProperty",jr),lr("DataConstantProperty",Gr),lr("CrossFadedDataDrivenProperty",Br),lr("CrossFadedProperty",Vr),lr("ColorRampProperty",Wr);var Yr,Kr=(Qr.__proto__=Yr=Lt,((Qr.prototype=Object.create(Yr&&Yr.prototype)).constructor=Qr).prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},Qr.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},Qr.prototype.setLayoutProperty=function(t,e,n){void 0===n&&(n={}),null!=e&&this._validate(tr,"layers."+this.id+".layout."+t,t,e,n)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},Qr.prototype.getPaintProperty=function(t){return y(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},Qr.prototype.setPaintProperty=function(t,e,n){if(void 0===n&&(n={}),null!=e&&this._validate($i,"layers."+this.id+".paint."+t,t,e,n))return!1;if(y(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var i=this._transitionablePaint._values[t],r="cross-faded-data-driven"===i.property.specification["property-type"],o=i.value.isDataDriven(),a=i.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||o||r||this._handleOverridablePaintPropertyUpdate(t,a,s)},Qr.prototype._handleSpecialPaintPropertyUpdate=function(t){},Qr.prototype._handleOverridablePaintPropertyUpdate=function(t,e,n){return!1},Qr.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility},Qr.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},Qr.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},Qr.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},Qr.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),g(t,function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)})},Qr.prototype._validate=function(t,e,n,i,r){return void 0===r&&(r={}),(!r||!1!==r.validate)&&er(this,t.call(Ji,{key:e,layerType:this.type,objectKey:n,value:i,styleSpec:kt,style:{glyphs:!0,sprite:!0}}))},Qr.prototype.is3D=function(){return!1},Qr.prototype.isTileClipped=function(){return!1},Qr.prototype.hasOffscreenPass=function(){return!1},Qr.prototype.resize=function(){},Qr.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof Dr&&ii(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},Qr),Jr={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};function Qr(t,e){if(Yr.call(this),this.id=t.id,this.type=t.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==t.type&&(this.metadata=(t=t).metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),e.layout&&(this._unevaluatedLayout=new zr(e.layout)),e.paint)){for(var n in this._transitionablePaint=new Or(e.paint),t.paint)this.setPaintProperty(n,t.paint[n],{validate:!1});for(var i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Fr(e.paint)}}function $r(t,r){void 0===r&&(r=1);var o=0,a=0;return{members:t.map(function(t){var e=Jr[t.type].BYTES_PER_ELEMENT,n=o=to(o,Math.max(r,e)),i=t.components||1;return a=Math.max(a,e),o+=e*i,{name:t.name,type:t.type,components:i,offset:n}}),size:to(o,Math.max(a,r)),alignment:r}}function to(t,e){return Math.ceil(t/e)*e}Hr.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Hr.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Hr.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Hr.prototype.clear=function(){this.length=0},Hr.prototype.resize=function(t){this.reserve(t),this.length=t},Hr.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Hr.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var eo,no=(io.__proto__=eo=Hr,((io.prototype=Object.create(eo&&eo.prototype)).constructor=io).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},io.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},io.prototype.emplace=function(t,e,n){var i=2*t;return this.int16[0+i]=e,this.int16[1+i]=n,t},io);function io(){eo.apply(this,arguments)}no.prototype.bytesPerElement=4,lr("StructArrayLayout2i4",no);var ro,oo=(ao.__proto__=ro=Hr,((ao.prototype=Object.create(ro&&ro.prototype)).constructor=ao).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},ao.prototype.emplaceBack=function(t,e,n,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n,i)},ao.prototype.emplace=function(t,e,n,i,r){var o=4*t;return this.int16[0+o]=e,this.int16[1+o]=n,this.int16[2+o]=i,this.int16[3+o]=r,t},ao);function ao(){ro.apply(this,arguments)}oo.prototype.bytesPerElement=8,lr("StructArrayLayout4i8",oo);var so,lo=(uo.__proto__=so=Hr,((uo.prototype=Object.create(so&&so.prototype)).constructor=uo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},uo.prototype.emplaceBack=function(t,e,n,i,r,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,i,r,o)},uo.prototype.emplace=function(t,e,n,i,r,o,a){var s=6*t;return this.int16[0+s]=e,this.int16[1+s]=n,this.int16[2+s]=i,this.int16[3+s]=r,this.int16[4+s]=o,this.int16[5+s]=a,t},uo);function uo(){so.apply(this,arguments)}lo.prototype.bytesPerElement=12,lr("StructArrayLayout2i4i12",lo);var ho,co=(po.__proto__=ho=Hr,((po.prototype=Object.create(ho&&ho.prototype)).constructor=po).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},po.prototype.emplaceBack=function(t,e,n,i,r,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,i,r,o)},po.prototype.emplace=function(t,e,n,i,r,o,a){var s=4*t,l=8*t;return this.int16[0+s]=e,this.int16[1+s]=n,this.uint8[4+l]=i,this.uint8[5+l]=r,this.uint8[6+l]=o,this.uint8[7+l]=a,t},po);function po(){ho.apply(this,arguments)}co.prototype.bytesPerElement=8,lr("StructArrayLayout2i4ub8",co);var fo,yo=(mo.__proto__=fo=Hr,((mo.prototype=Object.create(fo&&fo.prototype)).constructor=mo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},mo.prototype.emplaceBack=function(t,e,n,i,r,o,a,s,l,u){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,n,i,r,o,a,s,l,u)},mo.prototype.emplace=function(t,e,n,i,r,o,a,s,l,u,h){var c=9*t,p=18*t;return this.uint16[0+c]=e,this.uint16[1+c]=n,this.uint16[2+c]=i,this.uint16[3+c]=r,this.uint16[4+c]=o,this.uint16[5+c]=a,this.uint16[6+c]=s,this.uint16[7+c]=l,this.uint8[16+p]=u,this.uint8[17+p]=h,t},mo);function mo(){fo.apply(this,arguments)}yo.prototype.bytesPerElement=18,lr("StructArrayLayout8ui2ub18",yo);var go,vo=(xo.__proto__=go=Hr,((xo.prototype=Object.create(go&&go.prototype)).constructor=xo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},xo.prototype.emplaceBack=function(t,e,n,i,r,o,a,s,l,u,h,c){var p=this.length;return this.resize(p+1),this.emplace(p,t,e,n,i,r,o,a,s,l,u,h,c)},xo.prototype.emplace=function(t,e,n,i,r,o,a,s,l,u,h,c,p){var f=12*t;return this.int16[0+f]=e,this.int16[1+f]=n,this.int16[2+f]=i,this.int16[3+f]=r,this.uint16[4+f]=o,this.uint16[5+f]=a,this.uint16[6+f]=s,this.uint16[7+f]=l,this.int16[8+f]=u,this.int16[9+f]=h,this.int16[10+f]=c,this.int16[11+f]=p,t},xo);function xo(){go.apply(this,arguments)}vo.prototype.bytesPerElement=24,lr("StructArrayLayout4i4ui4i24",vo);var _o,wo=(bo.__proto__=_o=Hr,((bo.prototype=Object.create(_o&&_o.prototype)).constructor=bo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},bo.prototype.emplaceBack=function(t,e,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n)},bo.prototype.emplace=function(t,e,n,i){var r=3*t;return this.float32[0+r]=e,this.float32[1+r]=n,this.float32[2+r]=i,t},bo);function bo(){_o.apply(this,arguments)}wo.prototype.bytesPerElement=12,lr("StructArrayLayout3f12",wo);var Po,So=(Co.__proto__=Po=Hr,((Co.prototype=Object.create(Po&&Po.prototype)).constructor=Co).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},Co.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},Co.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},Co);function Co(){Po.apply(this,arguments)}So.prototype.bytesPerElement=4,lr("StructArrayLayout1ul4",So);var Mo,To=(Ao.__proto__=Mo=Hr,((Ao.prototype=Object.create(Mo&&Mo.prototype)).constructor=Ao).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Ao.prototype.emplaceBack=function(t,e,n,i,r,o,a,s,l){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,n,i,r,o,a,s,l)},Ao.prototype.emplace=function(t,e,n,i,r,o,a,s,l,u){var h=10*t,c=5*t;return this.int16[0+h]=e,this.int16[1+h]=n,this.int16[2+h]=i,this.int16[3+h]=r,this.int16[4+h]=o,this.int16[5+h]=a,this.uint32[3+c]=s,this.uint16[8+h]=l,this.uint16[9+h]=u,t},Ao);function Ao(){Mo.apply(this,arguments)}To.prototype.bytesPerElement=20,lr("StructArrayLayout6i1ul2ui20",To);var Eo,Io=(Lo.__proto__=Eo=Hr,((Lo.prototype=Object.create(Eo&&Eo.prototype)).constructor=Lo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Lo.prototype.emplaceBack=function(t,e,n,i,r,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,i,r,o)},Lo.prototype.emplace=function(t,e,n,i,r,o,a){var s=6*t;return this.int16[0+s]=e,this.int16[1+s]=n,this.int16[2+s]=i,this.int16[3+s]=r,this.int16[4+s]=o,this.int16[5+s]=a,t},Lo);function Lo(){Eo.apply(this,arguments)}Io.prototype.bytesPerElement=12,lr("StructArrayLayout2i2i2i12",Io);var Ro,Oo=(No.__proto__=Ro=Hr,((No.prototype=Object.create(Ro&&Ro.prototype)).constructor=No).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},No.prototype.emplaceBack=function(t,e,n,i,r){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,i,r)},No.prototype.emplace=function(t,e,n,i,r,o){var a=4*t,s=8*t;return this.float32[0+a]=e,this.float32[1+a]=n,this.float32[2+a]=i,this.int16[6+s]=r,this.int16[7+s]=o,t},No);function No(){Ro.apply(this,arguments)}Oo.prototype.bytesPerElement=16,lr("StructArrayLayout2f1f2i16",Oo);var ko,zo=(Do.__proto__=ko=Hr,((Do.prototype=Object.create(ko&&ko.prototype)).constructor=Do).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Do.prototype.emplaceBack=function(t,e,n,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n,i)},Do.prototype.emplace=function(t,e,n,i,r){var o=12*t,a=3*t;return this.uint8[0+o]=e,this.uint8[1+o]=n,this.float32[1+a]=i,this.float32[2+a]=r,t},Do);function Do(){ko.apply(this,arguments)}zo.prototype.bytesPerElement=12,lr("StructArrayLayout2ub2f12",zo);var Fo,Go=(jo.__proto__=Fo=Hr,((jo.prototype=Object.create(Fo&&Fo.prototype)).constructor=jo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},jo.prototype.emplaceBack=function(t,e,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n)},jo.prototype.emplace=function(t,e,n,i){var r=3*t;return this.uint16[0+r]=e,this.uint16[1+r]=n,this.uint16[2+r]=i,t},jo);function jo(){Fo.apply(this,arguments)}Go.prototype.bytesPerElement=6,lr("StructArrayLayout3ui6",Go);var Vo,qo=(Bo.__proto__=Vo=Hr,((Bo.prototype=Object.create(Vo&&Vo.prototype)).constructor=Bo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bo.prototype.emplaceBack=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m){var g=this.length;return this.resize(g+1),this.emplace(g,t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m)},Bo.prototype.emplace=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g){var v=24*t,x=12*t,_=48*t;return this.int16[0+v]=e,this.int16[1+v]=n,this.uint16[2+v]=i,this.uint16[3+v]=r,this.uint32[2+x]=o,this.uint32[3+x]=a,this.uint32[4+x]=s,this.uint16[10+v]=l,this.uint16[11+v]=u,this.uint16[12+v]=h,this.float32[7+x]=c,this.float32[8+x]=p,this.uint8[36+_]=f,this.uint8[37+_]=d,this.uint8[38+_]=y,this.uint32[10+x]=m,this.int16[22+v]=g,t},Bo);function Bo(){Vo.apply(this,arguments)}qo.prototype.bytesPerElement=48,lr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",qo);var Uo,Wo=(Zo.__proto__=Uo=Hr,((Zo.prototype=Object.create(Uo&&Uo.prototype)).constructor=Zo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Zo.prototype.emplaceBack=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C,M,T){var A=this.length;return this.resize(A+1),this.emplace(A,t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C,M,T)},Zo.prototype.emplace=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C,M,T,A){var E=34*t,I=17*t;return this.int16[0+E]=e,this.int16[1+E]=n,this.int16[2+E]=i,this.int16[3+E]=r,this.int16[4+E]=o,this.int16[5+E]=a,this.int16[6+E]=s,this.int16[7+E]=l,this.uint16[8+E]=u,this.uint16[9+E]=h,this.uint16[10+E]=c,this.uint16[11+E]=p,this.uint16[12+E]=f,this.uint16[13+E]=d,this.uint16[14+E]=y,this.uint16[15+E]=m,this.uint16[16+E]=g,this.uint16[17+E]=v,this.uint16[18+E]=x,this.uint16[19+E]=_,this.uint16[20+E]=w,this.uint16[21+E]=b,this.uint16[22+E]=P,this.uint32[12+I]=S,this.float32[13+I]=C,this.float32[14+I]=M,this.float32[15+I]=T,this.float32[16+I]=A,t},Zo);function Zo(){Uo.apply(this,arguments)}Wo.prototype.bytesPerElement=68,lr("StructArrayLayout8i15ui1ul4f68",Wo);var Xo,Ho=(Yo.__proto__=Xo=Hr,((Yo.prototype=Object.create(Xo&&Xo.prototype)).constructor=Yo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Yo.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},Yo.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},Yo);function Yo(){Xo.apply(this,arguments)}Ho.prototype.bytesPerElement=4,lr("StructArrayLayout1f4",Ho);var Ko,Jo=(Qo.__proto__=Ko=Hr,((Qo.prototype=Object.create(Ko&&Ko.prototype)).constructor=Qo).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Qo.prototype.emplaceBack=function(t,e,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n)},Qo.prototype.emplace=function(t,e,n,i){var r=3*t;return this.int16[0+r]=e,this.int16[1+r]=n,this.int16[2+r]=i,t},Qo);function Qo(){Ko.apply(this,arguments)}Jo.prototype.bytesPerElement=6,lr("StructArrayLayout3i6",Jo);var $o,ta=(ea.__proto__=$o=Hr,((ea.prototype=Object.create($o&&$o.prototype)).constructor=ea).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},ea.prototype.emplaceBack=function(t,e,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n)},ea.prototype.emplace=function(t,e,n,i){var r=4*t;return this.uint32[2*t+0]=e,this.uint16[2+r]=n,this.uint16[3+r]=i,t},ea);function ea(){$o.apply(this,arguments)}ta.prototype.bytesPerElement=8,lr("StructArrayLayout1ul2ui8",ta);var na,ia=(ra.__proto__=na=Hr,((ra.prototype=Object.create(na&&na.prototype)).constructor=ra).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},ra.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},ra.prototype.emplace=function(t,e,n){var i=2*t;return this.uint16[0+i]=e,this.uint16[1+i]=n,t},ra);function ra(){na.apply(this,arguments)}ia.prototype.bytesPerElement=4,lr("StructArrayLayout2ui4",ia);var oa,aa=(sa.__proto__=oa=Hr,((sa.prototype=Object.create(oa&&oa.prototype)).constructor=sa).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},sa.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},sa.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},sa);function sa(){oa.apply(this,arguments)}aa.prototype.bytesPerElement=2,lr("StructArrayLayout1ui2",aa);var la,ua=(ha.__proto__=la=Hr,((ha.prototype=Object.create(la&&la.prototype)).constructor=ha).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},ha.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},ha.prototype.emplace=function(t,e,n){var i=2*t;return this.float32[0+i]=e,this.float32[1+i]=n,t},ha);function ha(){la.apply(this,arguments)}ua.prototype.bytesPerElement=8,lr("StructArrayLayout2f8",ua);var ca,pa=(fa.__proto__=ca=Hr,((fa.prototype=Object.create(ca&&ca.prototype)).constructor=fa).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},fa.prototype.emplaceBack=function(t,e,n,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n,i)},fa.prototype.emplace=function(t,e,n,i,r){var o=4*t;return this.float32[0+o]=e,this.float32[1+o]=n,this.float32[2+o]=i,this.float32[3+o]=r,t},fa);function fa(){ca.apply(this,arguments)}pa.prototype.bytesPerElement=16,lr("StructArrayLayout4f16",pa);var da=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new W(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,n),e}(Xr);da.prototype.size=20;var ya,ma=((ya=To)&&(ga.__proto__=ya),((ga.prototype=Object.create(ya&&ya.prototype)).constructor=ga).prototype.get=function(t){return new da(this,t)},ga);function ga(){ya.apply(this,arguments)}lr("CollisionBoxArray",ma);var va=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,n),e}(Xr);va.prototype.size=48;var xa,_a=((xa=qo)&&(wa.__proto__=xa),((wa.prototype=Object.create(xa&&xa.prototype)).constructor=wa).prototype.get=function(t){return new va(this,t)},wa);function wa(){xa.apply(this,arguments)}lr("PlacedSymbolArray",_a);var ba=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,n),e}(Xr);ba.prototype.size=68;var Pa,Sa=((Pa=Wo)&&(Ca.__proto__=Pa),((Ca.prototype=Object.create(Pa&&Pa.prototype)).constructor=Ca).prototype.get=function(t){return new ba(this,t)},Ca);function Ca(){Pa.apply(this,arguments)}lr("SymbolInstanceArray",Sa);var Ma,Ta=((Ma=Ho)&&(Aa.__proto__=Ma),((Aa.prototype=Object.create(Ma&&Ma.prototype)).constructor=Aa).prototype.getoffsetX=function(t){return this.float32[1*t+0]},Aa);function Aa(){Ma.apply(this,arguments)}lr("GlyphOffsetArray",Ta);var Ea,Ia=((Ea=Jo)&&(La.__proto__=Ea),((La.prototype=Object.create(Ea&&Ea.prototype)).constructor=La).prototype.getx=function(t){return this.int16[3*t+0]},La.prototype.gety=function(t){return this.int16[3*t+1]},La.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},La);function La(){Ea.apply(this,arguments)}lr("SymbolLineVertexArray",Ia);var Ra=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,n),e}(Xr);Ra.prototype.size=8;var Oa,Na=((Oa=ta)&&(ka.__proto__=Oa),((ka.prototype=Object.create(Oa&&Oa.prototype)).constructor=ka).prototype.get=function(t){return new Ra(this,t)},ka);function ka(){Oa.apply(this,arguments)}function za(t){void 0===t&&(t=[]),this.segments=t}lr("FeatureIndexArray",Na);var Da=$r([{name:"a_pos",components:2,type:"Int16"}],4).members;function Fa(t,e){return 256*(t=s(Math.floor(t),0,255))+s(Math.floor(e),0,255)}za.prototype.prepareSegment=function(t,e,n,i){var r=this.segments[this.segments.length-1];return za.MAX_VERTEX_ARRAY_LENGTH<t&&ct("Max vertices per segment is "+za.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!r||r.vertexLength+t>za.MAX_VERTEX_ARRAY_LENGTH||r.sortKey!==i)&&(r={vertexOffset:e.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==i&&(r.sortKey=i),this.segments.push(r)),r},za.prototype.get=function(){return this.segments},za.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var n=e[t];for(var i in n.vaos)n.vaos[i].destroy()}},za.simpleSegment=function(t,e,n,i){return new za([{vertexOffset:t,primitiveOffset:e,vertexLength:n,primitiveLength:i,vaos:{},sortKey:0}])},za.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,lr("SegmentVector",za);var Ga=$r([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint8"},{name:"a_pixel_ratio_to",components:1,type:"Uint8"}]),ja=e(function(t){t.exports=function(t,e){var n,i,r,o,a,s,l,u;for(i=t.length-(n=3&t.length),r=e,a=3432918353,s=461845907,u=0;u<i;)l=255&t.charCodeAt(u)|(255&t.charCodeAt(++u))<<8|(255&t.charCodeAt(++u))<<16|(255&t.charCodeAt(++u))<<24,++u,r=27492+(65535&(o=5*(65535&(r=(r^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:r^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return r^=t.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}}),Va=e(function(t){t.exports=function(t,e){for(var n,i=t.length,r=e^i,o=0;4<=i;)n=1540483477*(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),i-=4,++o;switch(i){case 3:r^=(255&t.charCodeAt(o+2))<<16;case 2:r^=(255&t.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}}),qa=ja,Ba=Va;function Ua(){this.ids=[],this.positions=[],this.indexed=!1}qa.murmur3=ja,qa.murmur2=Ba,Ua.prototype.add=function(t,e,n,i){this.ids.push(Za(t)),this.positions.push(e,n,i)},Ua.prototype.getPositions=function(t){for(var e=Za(t),n=0,i=this.ids.length-1;n<i;){var r=n+i>>1;this.ids[r]>=e?i=r:n=1+r}for(var o=[];this.ids[n]===e;)o.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return o},Ua.serialize=function(t,e){var n=new Float64Array(t.ids),i=new Uint32Array(t.positions);return function t(e,n,i,r){for(;i<r;){for(var o=e[i+r>>1],a=i-1,s=r+1;;){for(;e[++a]<o;);for(;e[--s]>o;);if(s<=a)break;Xa(e,a,s),Xa(n,3*a,3*s),Xa(n,3*a+1,3*s+1),Xa(n,3*a+2,3*s+2)}s-i<r-s?(t(e,n,i,s),i=s+1):(t(e,n,s+1,r),r=s)}}(n,i,0,n.length-1),e&&e.push(n.buffer,i.buffer),{ids:n,positions:i}},Ua.deserialize=function(t){var e=new Ua;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var Wa=Math.pow(2,53)-1;function Za(t){var e=+t;return!isNaN(e)&&e<=Wa?e:qa(String(t))}function Xa(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function Ha(t,e){this.gl=t.gl,this.location=e}lr("FeaturePositionMap",Ua);var Ya,Ka,Ja,Qa,$a,ts,es,ns=(ms.__proto__=es=Ha,((ms.prototype=Object.create(es&&es.prototype)).constructor=ms).prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))},ms),is=(ys.__proto__=ts=Ha,((ys.prototype=Object.create(ts&&ts.prototype)).constructor=ys).prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))},ys),rs=(ds.__proto__=$a=Ha,((ds.prototype=Object.create($a&&$a.prototype)).constructor=ds).prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},ds),os=(fs.__proto__=Qa=Ha,((fs.prototype=Object.create(Qa&&Qa.prototype)).constructor=fs).prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},fs),as=(ps.__proto__=Ja=Ha,((ps.prototype=Object.create(Ja&&Ja.prototype)).constructor=ps).prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},ps),ss=(cs.__proto__=Ka=Ha,((cs.prototype=Object.create(Ka&&Ka.prototype)).constructor=cs).prototype.set=function(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},cs),ls=new Float32Array(16),us=(hs.__proto__=Ya=Ha,((hs.prototype=Object.create(Ya&&Ya.prototype)).constructor=hs).prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},hs);function hs(t,e){Ya.call(this,t,e),this.current=ls}function cs(t,e){Ka.call(this,t,e),this.current=le.transparent}function ps(t,e){Ja.call(this,t,e),this.current=[0,0,0,0]}function fs(t,e){Qa.call(this,t,e),this.current=[0,0,0]}function ds(t,e){$a.call(this,t,e),this.current=[0,0]}function ys(t,e){ts.call(this,t,e),this.current=0}function ms(t,e){es.call(this,t,e),this.current=0}function gs(t){return[Fa(255*t.r,255*t.g),Fa(255*t.b,255*t.a)]}function vs(t,e,n){this.value=t,this.uniformNames=e.map(function(t){return"u_"+t}),this.type=n}function xs(t,e){this.uniformNames=e.map(function(t){return"u_"+t}),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}function _s(t,e,n,i){this.expression=t,this.type=n,this.maxValue=0,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Float32",components:"color"===n?2:1,offset:0}}),this.paintVertexArray=new i}function ws(t,e,n,i,r,o){this.expression=t,this.uniformNames=e.map(function(t){return"u_"+t+"_t"}),this.type=n,this.useIntegerZoom=i,this.zoom=r,this.maxValue=0,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Float32",components:"color"===n?4:2,offset:0}}),this.paintVertexArray=new o}function bs(t,e,n,i,r,o){this.expression=t,this.type=e,this.useIntegerZoom=n,this.zoom=i,this.layerId=o,this.zoomInPaintVertexArray=new r,this.zoomOutPaintVertexArray=new r}function Ps(t,e,n,i){this.binders={},this.layoutAttributes=i,this._buffers=[];var r,o,a=[];for(var s in t.paint._values)if(n(s)){var l=t.paint.get(s);if(l instanceof Dr&&ii(l.property.specification)){var u=(r=s,o=t.type,{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[r]||[r.replace(o+"-","").replace(/-/g,"_")]),h=l.value,c=l.property.specification.type,p=l.property.useIntegerZoom,f=l.property.specification["property-type"],d="cross-faded"===f||"cross-faded-data-driven"===f;if("constant"===h.kind)this.binders[s]=d?new xs(h.value,u):new vs(h.value,u,c),a.push("/u_"+s);else if("source"===h.kind||d){var y=Cs(s,c,"source");this.binders[s]=d?new bs(h,c,p,e,y,t.id):new _s(h,u,c,y),a.push("/a_"+s)}else{var m=Cs(s,c,"composite");this.binders[s]=new ws(h,u,c,p,e,m),a.push("/z_"+s)}}}this.cacheKey=a.sort().join("")}function Ss(t,e,n,i){void 0===i&&(i=function(){return!0}),this.programConfigurations={};for(var r=0,o=e;r<o.length;r+=1){var a=o[r];this.programConfigurations[a.id]=new Ps(a,n,i,t)}this.needsUpload=!1,this._featureMap=new Ua,this._bufferOffset=0}function Cs(t,e,n){var i={color:{source:ua,composite:pa},number:{source:Ho,composite:ua}},r={"line-pattern":{source:yo,composite:yo},"fill-pattern":{source:yo,composite:yo},"fill-extrusion-pattern":{source:yo,composite:yo}}[t];return r&&r[n]||i[e][n]}vs.prototype.setUniform=function(t,e,n){t.set(n.constantOr(this.value))},vs.prototype.getBinding=function(t,e,n){return"color"===this.type?new ss(t,e):new is(t,e)},xs.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},xs.prototype.setUniform=function(t,e,n,i){var r="u_pattern_to"===i?this.patternTo:"u_pattern_from"===i?this.patternFrom:"u_pixel_ratio_to"===i?this.pixelRatioTo:"u_pixel_ratio_from"===i?this.pixelRatioFrom:null;r&&t.set(r)},xs.prototype.getBinding=function(t,e,n){return"u_pattern"===n.substr(0,9)?new as(t,e):new is(t,e)},_s.prototype.populatePaintArray=function(t,e,n,i,r){var o=this.paintVertexArray.length,a=this.expression.evaluate(new Ar(0),e,{},i,[],r);this.paintVertexArray.resize(t),this._setPaintValue(o,t,a)},_s.prototype.updatePaintArray=function(t,e,n,i){var r=this.expression.evaluate({zoom:0},n,i);this._setPaintValue(t,e,r)},_s.prototype._setPaintValue=function(t,e,n){if("color"===this.type)for(var i=gs(n),r=t;r<e;r++)this.paintVertexArray.emplace(r,i[0],i[1]);else{for(var o=t;o<e;o++)this.paintVertexArray.emplace(o,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}},_s.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},_s.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},ws.prototype.populatePaintArray=function(t,e,n,i,r){var o=this.expression.evaluate(new Ar(this.zoom),e,{},i,[],r),a=this.expression.evaluate(new Ar(this.zoom+1),e,{},i,[],r),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,o,a)},ws.prototype.updatePaintArray=function(t,e,n,i){var r=this.expression.evaluate({zoom:this.zoom},n,i),o=this.expression.evaluate({zoom:this.zoom+1},n,i);this._setPaintValue(t,e,r,o)},ws.prototype._setPaintValue=function(t,e,n,i){if("color"===this.type)for(var r=gs(n),o=gs(i),a=t;a<e;a++)this.paintVertexArray.emplace(a,r[0],r[1],o[0],o[1]);else{for(var s=t;s<e;s++)this.paintVertexArray.emplace(s,n,i);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(i))}},ws.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},ws.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},ws.prototype.setUniform=function(t,e){var n=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,i=s(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);t.set(i)},ws.prototype.getBinding=function(t,e,n){return new is(t,e)},bs.prototype.populatePaintArray=function(t,e,n){var i=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(i,t,e.patterns&&e.patterns[this.layerId],n)},bs.prototype.updatePaintArray=function(t,e,n,i,r){this._setPaintValues(t,e,n.patterns&&n.patterns[this.layerId],r)},bs.prototype._setPaintValues=function(t,e,n,i){if(i&&n){var r=i[n.min],o=i[n.mid],a=i[n.max];if(r&&o&&a)for(var s=t;s<e;s++)this.zoomInPaintVertexArray.emplace(s,o.tl[0],o.tl[1],o.br[0],o.br[1],r.tl[0],r.tl[1],r.br[0],r.br[1],o.pixelRatio,r.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,o.tl[0],o.tl[1],o.br[0],o.br[1],a.tl[0],a.tl[1],a.br[0],a.br[1],o.pixelRatio,a.pixelRatio)}},bs.prototype.upload=function(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,Ga.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,Ga.members,this.expression.isStateDependent))},bs.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()},Ps.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof _s||e instanceof ws?e.maxValue:0},Ps.prototype.populatePaintArrays=function(t,e,n,i,r){for(var o in this.binders){var a=this.binders[o];(a instanceof _s||a instanceof ws||a instanceof bs)&&a.populatePaintArray(t,e,n,i,r)}},Ps.prototype.setConstantPatternPositions=function(t,e){for(var n in this.binders){var i=this.binders[n];i instanceof xs&&i.setConstantPatternPositions(t,e)}},Ps.prototype.updatePaintArrays=function(t,e,n,i,r){var o=!1;for(var a in t)for(var s=0,l=e.getPositions(a);s<l.length;s+=1){var u=l[s],h=n.feature(u.index);for(var c in this.binders){var p=this.binders[c];if((p instanceof _s||p instanceof ws||p instanceof bs)&&!0===p.expression.isStateDependent){var f=i.paint.get(c);p.expression=f.value,p.updatePaintArray(u.start,u.end,h,t[a],r),o=!0}}}return o},Ps.prototype.defines=function(){var t=[];for(var e in this.binders){var n=this.binders[e];(n instanceof vs||n instanceof xs)&&t.push.apply(t,n.uniformNames.map(function(t){return"#define HAS_UNIFORM_"+t}))}return t},Ps.prototype.getPaintVertexBuffers=function(){return this._buffers},Ps.prototype.getUniforms=function(t,e){var n=[];for(var i in this.binders){var r=this.binders[i];if(r instanceof vs||r instanceof xs||r instanceof ws)for(var o=0,a=r.uniformNames;o<a.length;o+=1){var s=a[o];if(e[s]){var l=r.getBinding(t,e[s],s);n.push({name:s,property:i,binding:l})}}}return n},Ps.prototype.setUniforms=function(t,e,n,i){for(var r=0,o=e;r<o.length;r+=1){var a=o[r],s=a.name,l=a.property;this.binders[l].setUniform(a.binding,i,n.get(l),s)}},Ps.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var n=this.binders[e];if(t&&n instanceof bs){var i=2===t.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(n instanceof _s||n instanceof ws)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}},Ps.prototype.upload=function(t){for(var e in this.binders){var n=this.binders[e];(n instanceof _s||n instanceof ws||n instanceof bs)&&n.upload(t)}this.updatePaintBuffers()},Ps.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof _s||e instanceof ws||e instanceof bs)&&e.destroy()}},Ss.prototype.populatePaintArrays=function(t,e,n,i,r,o){for(var a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(t,e,i,r,o);void 0!==e.id&&this._featureMap.add(e.id,n,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ss.prototype.updatePaintArrays=function(t,e,n,i){for(var r=0,o=n;r<o.length;r+=1){var a=o[r];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,this._featureMap,e,a,i)||this.needsUpload}},Ss.prototype.get=function(t){return this.programConfigurations[t]},Ss.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ss.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},lr("ConstantBinder",vs),lr("CrossFadedConstantBinder",xs),lr("SourceExpressionBinder",_s),lr("CrossFadedCompositeBinder",bs),lr("CompositeExpressionBinder",ws),lr("ProgramConfiguration",Ps,{omit:["_buffers"]}),lr("ProgramConfigurationSet",Ss);var Ms=8192,Ts={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function As(t){for(var e=Ms/t.extent,n=t.loadGeometry(),i=0;i<n.length;i++)for(var r=n[i],o=0;o<r.length;o++){var a=r[o];a.x=Math.round(a.x*e),a.y=Math.round(a.y*e),(a.x<Ts.min||a.x>Ts.max||a.y<Ts.min||a.y>Ts.max)&&(ct("Geometry exceeds allowed extent, reduce your vector tile buffer size"),a.x=s(a.x,Ts.min,Ts.max),a.y=s(a.y,Ts.min,Ts.max))}return n}function Es(t,e,n,i,r){t.emplaceBack(2*e+(i+1)/2,2*n+(r+1)/2)}function Is(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new no,this.indexArray=new Go,this.segments=new za,this.programConfigurations=new Ss(Da,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})}function Ls(t,e){for(var n=0;n<t.length;n++)if(Fs(e,t[n]))return!0;for(var i=0;i<e.length;i++)if(Fs(t,e[i]))return!0;return!!Ns(t,e)}function Rs(t,e){if(1===t.length)return Ds(e,t[0]);for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;r++)if(Fs(t,i[r]))return!0;for(var o=0;o<t.length;o++)if(Ds(e,t[o]))return!0;for(var a=0;a<e.length;a++)if(Ns(t,e[a]))return!0;return!1}function Os(t,e,n){if(1<t.length){if(Ns(t,e))return!0;for(var i=0;i<e.length;i++)if(ks(e[i],t,n))return!0}for(var r=0;r<t.length;r++)if(ks(t[r],e,n))return!0;return!1}function Ns(t,e){if(0===t.length||0===e.length)return!1;for(var n=0;n<t.length-1;n++)for(var i=t[n],r=t[n+1],o=0;o<e.length-1;o++)if(a=i,s=r,l=e[o],u=e[o+1],_(a,l,u)!==_(s,l,u)&&_(a,s,l)!==_(a,s,u))return!0;var a,s,l,u;return!1}function ks(t,e,n){var i=n*n;if(1===e.length)return t.distSqr(e[0])<i;for(var r=1;r<e.length;r++)if(zs(t,e[r-1],e[r])<i)return!0;return!1}function zs(t,e,n){var i=e.distSqr(n);if(0===i)return t.distSqr(e);var r=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/i;return t.distSqr(r<0?e:1<r?n:n.sub(e)._mult(r)._add(e))}function Ds(t,e){for(var n,i,r,o=!1,a=0;a<t.length;a++)for(var s=0,l=(n=t[a]).length-1;s<n.length;l=s++)(i=n[s]).y>e.y!=(r=n[l]).y>e.y&&e.x<(r.x-i.x)*(e.y-i.y)/(r.y-i.y)+i.x&&(o=!o);return o}function Fs(t,e){for(var n=!1,i=0,r=t.length-1;i<t.length;r=i++){var o=t[i],a=t[r];o.y>e.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function Gs(t,e,n){var i=n[0],r=n[2];if(t.x<i.x&&e.x<i.x||t.x>r.x&&e.x>r.x||t.y<i.y&&e.y<i.y||t.y>r.y&&e.y>r.y)return!1;var o=_(t,e,n[0]);return o!==_(t,e,n[1])||o!==_(t,e,n[2])||o!==_(t,e,n[3])}function js(t,e,n){var i=e.paint.get(t).value;return"constant"===i.kind?i.value:n.programConfigurations.get(e.id).getMaxValue(t)}function Vs(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function qs(t,e,n,i,r){if(!e[0]&&!e[1])return t;var o=W.convert(e)._mult(r);"viewport"===n&&o._rotate(-i);for(var a=[],s=0;s<t.length;s++)a.push(t[s].sub(o));return a}Is.prototype.populate=function(t,e,n){var i=this.layers[0],r=[],o=null;"circle"===i.type&&(o=i.layout.get("circle-sort-key"));for(var a=0,s=t;a<s.length;a+=1){var l=s[a],u=l.feature,h=l.id,c=l.index,p=l.sourceLayerIndex,f=this.layers[0]._featureFilter.needGeometry,d={type:u.type,id:h,properties:u.properties,geometry:f?As(u):[]};if(this.layers[0]._featureFilter.filter(new Ar(this.zoom),d,n)){f||(d.geometry=As(u));var y=o?o.evaluate(d,{},n):void 0;r.push({id:h,properties:u.properties,type:u.type,sourceLayerIndex:p,index:c,geometry:d.geometry,patterns:{},sortKey:y})}}o&&r.sort(function(t,e){return t.sortKey-e.sortKey});for(var m=0,g=r;m<g.length;m+=1){var v=g[m],x=v.geometry,_=v.index,w=v.sourceLayerIndex,b=t[_].feature;this.addFeature(v,x,_,n),e.featureIndex.insert(b,x,_,w,this.index)}},Is.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},Is.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Is.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Is.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Da),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Is.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Is.prototype.addFeature=function(t,e,n,i){for(var r=0,o=e;r<o.length;r+=1)for(var a=0,s=o[r];a<s.length;a+=1){var l=s[a],u=l.x,h=l.y;if(!(u<0||Ms<=u||h<0||Ms<=h)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;Es(this.layoutVertexArray,u,h,-1,-1),Es(this.layoutVertexArray,u,h,1,-1),Es(this.layoutVertexArray,u,h,1,1),Es(this.layoutVertexArray,u,h,-1,1),this.indexArray.emplaceBack(p,p+1,p+2),this.indexArray.emplaceBack(p,p+3,p+2),c.vertexLength+=4,c.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{},i)},lr("CircleBucket",Is,{omit:["layers"]});var Bs=new Zr({"circle-sort-key":new jr(kt.layout_circle["circle-sort-key"])}),Us={paint:new Zr({"circle-radius":new jr(kt.paint_circle["circle-radius"]),"circle-color":new jr(kt.paint_circle["circle-color"]),"circle-blur":new jr(kt.paint_circle["circle-blur"]),"circle-opacity":new jr(kt.paint_circle["circle-opacity"]),"circle-translate":new Gr(kt.paint_circle["circle-translate"]),"circle-translate-anchor":new Gr(kt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Gr(kt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Gr(kt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new jr(kt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new jr(kt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new jr(kt.paint_circle["circle-stroke-opacity"])}),layout:Bs},Ws="undefined"!=typeof Float32Array?Float32Array:Array;function Zs(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Xs(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],h=e[7],c=e[8],p=e[9],f=e[10],d=e[11],y=e[12],m=e[13],g=e[14],v=e[15],x=n[0],_=n[1],w=n[2],b=n[3];return t[0]=x*i+_*s+w*c+b*y,t[1]=x*r+_*l+w*p+b*m,t[2]=x*o+_*u+w*f+b*g,t[3]=x*a+_*h+w*d+b*v,t[4]=(x=n[4])*i+(_=n[5])*s+(w=n[6])*c+(b=n[7])*y,t[5]=x*r+_*l+w*p+b*m,t[6]=x*o+_*u+w*f+b*g,t[7]=x*a+_*h+w*d+b*v,t[8]=(x=n[8])*i+(_=n[9])*s+(w=n[10])*c+(b=n[11])*y,t[9]=x*r+_*l+w*p+b*m,t[10]=x*o+_*u+w*f+b*g,t[11]=x*a+_*h+w*d+b*v,t[12]=(x=n[12])*i+(_=n[13])*s+(w=n[14])*c+(b=n[15])*y,t[13]=x*r+_*l+w*p+b*m,t[14]=x*o+_*u+w*f+b*g,t[15]=x*a+_*h+w*d+b*v,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,n=arguments.length;n--;)e+=t[n]*t[n];return Math.sqrt(e)});var Hs,Ys,Ks=Xs;function Js(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12]*a,t[1]=n[1]*i+n[5]*r+n[9]*o+n[13]*a,t[2]=n[2]*i+n[6]*r+n[10]*o+n[14]*a,t[3]=n[3]*i+n[7]*r+n[11]*o+n[15]*a,t}Hs=new Ws(3),Ws!=Float32Array&&(Hs[0]=0,Hs[1]=0,Hs[2]=0),Ys=new Ws(4),Ws!=Float32Array&&(Ys[0]=0,Ys[1]=0,Ys[2]=0,Ys[3]=0);var Qs,$s,tl=($s=new Ws(2),Ws!=Float32Array&&($s[0]=0,$s[1]=0),el.__proto__=Qs=Kr,((el.prototype=Object.create(Qs&&Qs.prototype)).constructor=el).prototype.createBucket=function(t){return new Is(t)},el.prototype.queryRadius=function(t){var e=t;return js("circle-radius",this,e)+js("circle-stroke-width",this,e)+Vs(this.paint.get("circle-translate"))},el.prototype.queryIntersectsFeature=function(t,e,n,i,r,o,a,s){for(var l=qs(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),u=this.paint.get("circle-radius").evaluate(e,n)+this.paint.get("circle-stroke-width").evaluate(e,n),h="map"===this.paint.get("circle-pitch-alignment"),c=h?l:function(t,e){return l.map(function(t){return nl(t,e)})}(0,s),p=h?u*a:u,f=0,d=i;f<d.length;f+=1)for(var y=0,m=d[f];y<m.length;y+=1){var g=m[y],v=h?g:nl(g,s),x=p,_=Js([],[g.x,g.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?x*=_[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(x*=o.cameraToCenterDistance/_[3]),P=x,Fs(w=c,b=v)||ks(b,w,P))return!0}var w,b,P;return!1},el);function el(t){Qs.call(this,t,Us)}function nl(t,e){var n=Js([],[t.x,t.y,0,1],e);return new W(n[0]/n[3],n[1]/n[3])}var il,rl=(ol.__proto__=il=Is,(ol.prototype=Object.create(il&&il.prototype)).constructor=ol);function ol(){il.apply(this,arguments)}function al(t,e,n,i){var r=e.width,o=e.height;if(i){if(i instanceof Uint8ClampedArray)i=new Uint8Array(i.buffer);else if(i.length!==r*o*n)throw new RangeError("mismatched image size")}else i=new Uint8Array(r*o*n);return t.width=r,t.height=o,t.data=i,t}function sl(t,e,n){var i=e.width,r=e.height;if(i!==t.width||r!==t.height){var o=al({},{width:i,height:r},n);ll(t,o,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,i),height:Math.min(t.height,r)},n),t.width=i,t.height=r,t.data=o.data}}function ll(t,e,n,i,r,o){if(0===r.width||0===r.height)return e;if(r.width>t.width||r.height>t.height||n.x>t.width-r.width||n.y>t.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>e.width||r.height>e.height||i.x>e.width-r.width||i.y>e.height-r.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,l=0;l<r.height;l++)for(var u=((n.y+l)*t.width+n.x)*o,h=((i.y+l)*e.width+i.x)*o,c=0;c<r.width*o;c++)s[h+c]=a[u+c];return e}lr("HeatmapBucket",rl,{omit:["layers"]});var ul=function(t,e){al(this,t,1,e)};function hl(t,e){al(this,t,4,e)}ul.prototype.resize=function(t){sl(this,t,1)},ul.prototype.clone=function(){return new ul({width:this.width,height:this.height},new Uint8Array(this.data))},ul.copy=function(t,e,n,i,r){ll(t,e,n,i,r,1)},hl.prototype.resize=function(t){sl(this,t,4)},hl.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},hl.prototype.clone=function(){return new hl({width:this.width,height:this.height},new Uint8Array(this.data))},hl.copy=function(t,e,n,i,r){ll(t,e,n,i,r,4)},lr("AlphaImage",ul),lr("RGBAImage",hl);var cl={paint:new Zr({"heatmap-radius":new jr(kt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new jr(kt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Gr(kt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Wr(kt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Gr(kt.paint_heatmap["heatmap-opacity"])})};function pl(t,e){for(var n=new Uint8Array(1024),i={},r=0,o=0;r<256;r++,o+=4){i[e]=r/255;var a=t.evaluate(i);n[o+0]=Math.floor(255*a.r/a.a),n[o+1]=Math.floor(255*a.g/a.a),n[o+2]=Math.floor(255*a.b/a.a),n[o+3]=Math.floor(255*a.a)}return new hl({width:256,height:1},n)}var fl,dl,yl=(bl.__proto__=dl=Kr,((bl.prototype=Object.create(dl&&dl.prototype)).constructor=bl).prototype.createBucket=function(t){return new rl(t)},bl.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&&this._updateColorRamp()},bl.prototype._updateColorRamp=function(){this.colorRamp=pl(this._transitionablePaint._values["heatmap-color"].value.expression,"heatmapDensity"),this.colorRampTexture=null},bl.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},bl.prototype.queryRadius=function(){return 0},bl.prototype.queryIntersectsFeature=function(){return!1},bl.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},bl),ml={paint:new Zr({"hillshade-illumination-direction":new Gr(kt.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Gr(kt.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Gr(kt.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Gr(kt.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Gr(kt.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Gr(kt.paint_hillshade["hillshade-accent-color"])})},gl=(wl.__proto__=fl=Kr,((wl.prototype=Object.create(fl&&fl.prototype)).constructor=wl).prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},wl),vl=$r([{name:"a_pos",components:2,type:"Int16"}],4).members,xl=Pl,_l=Pl;function wl(t){fl.call(this,t,ml)}function bl(t){dl.call(this,t,cl),this._updateColorRamp()}function Pl(t,e,n){n=n||2;var i,r,o,a,s,l,u,h=e&&e.length,c=h?e[0]*n:t.length,p=Sl(t,0,c,n,!0),f=[];if(!p||p.next===p.prev)return f;if(h&&(p=function(t,e,n,i){var r,o,a,s=[];for(r=0,o=e.length;r<o;r++)(a=Sl(t,e[r]*i,r<o-1?e[r+1]*i:t.length,i,!1))===a.next&&(a.steiner=!0),s.push(Nl(a));for(s.sort(Ll),r=0;r<s.length;r++)Rl(s[r],n),n=Cl(n,n.next);return n}(t,e,p,n)),t.length>80*n){i=o=t[0],r=a=t[1];for(var d=n;d<c;d+=n)(s=t[d])<i&&(i=s),(l=t[d+1])<r&&(r=l),o<s&&(o=s),a<l&&(a=l);u=0!==(u=Math.max(o-i,a-r))?1/u:0}return Ml(p,f,n,i,r,u),f}function Sl(t,e,n,i,r){var o,a;if(r===0<Zl(t,e,n,i))for(o=e;o<n;o+=i)a=Bl(o,t[o],t[o+1],a);else for(o=n-i;e<=o;o-=i)a=Bl(o,t[o],t[o+1],a);return a&&Dl(a,a.next)&&(Ul(a),a=a.next),a}function Cl(t,e){if(!t)return t;e=e||t;var n,i=t;do{if(n=!1,i.steiner||!Dl(i,i.next)&&0!==zl(i.prev,i,i.next))i=i.next;else{if(Ul(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function Ml(t,e,n,i,r,o,a){if(t){!a&&o&&function(t,e,n,i){for(var r=t;null===r.z&&(r.z=Ol(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,(r=r.next)!==t;);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,l,u=1;do{for(n=t,o=t=null,a=0;n;){for(a++,i=n,e=s=0;e<u&&(s++,i=i.nextZ);e++);for(l=u;0<s||0<l&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(n=(r=n).nextZ,s--):(i=(r=i).nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,u*=2}while(1<a)}(r)}(t,i,r,o);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?Al(t,i,r,o):Tl(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),Ul(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?Ml(t=El(Cl(t),e,n),e,n,i,r,o,2):2===a&&Il(t,e,n,i,r,o):Ml(Cl(t),e,n,i,r,o,1);break}}}function Tl(t){var e=t.prev,n=t,i=t.next;if(0<=zl(e,n,i))return!1;for(var r=t.next.next;r!==t.prev;){if(kl(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&0<=zl(r.prev,r,r.next))return!1;r=r.next}return!0}function Al(t,e,n,i){var r=t.prev,o=t,a=t.next;if(0<=zl(r,o,a))return!1;for(var s=r.x>o.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,l=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,u=Ol(r.x<o.x?r.x<a.x?r.x:a.x:o.x<a.x?o.x:a.x,r.y<o.y?r.y<a.y?r.y:a.y:o.y<a.y?o.y:a.y,e,n,i),h=Ol(s,l,e,n,i),c=t.prevZ,p=t.nextZ;c&&c.z>=u&&p&&p.z<=h;){if(c!==t.prev&&c!==t.next&&kl(r.x,r.y,o.x,o.y,a.x,a.y,c.x,c.y)&&0<=zl(c.prev,c,c.next))return!1;if(c=c.prevZ,p!==t.prev&&p!==t.next&&kl(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&0<=zl(p.prev,p,p.next))return!1;p=p.nextZ}for(;c&&c.z>=u;){if(c!==t.prev&&c!==t.next&&kl(r.x,r.y,o.x,o.y,a.x,a.y,c.x,c.y)&&0<=zl(c.prev,c,c.next))return!1;c=c.prevZ}for(;p&&p.z<=h;){if(p!==t.prev&&p!==t.next&&kl(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&0<=zl(p.prev,p,p.next))return!1;p=p.nextZ}return!0}function El(t,e,n){var i=t;do{var r=i.prev,o=i.next.next;!Dl(r,o)&&Fl(r,i,i.next,o)&&Vl(r,o)&&Vl(o,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(o.i/n),Ul(i),Ul(i.next),i=t=o),i=i.next}while(i!==t);return Cl(i)}function Il(t,e,n,i,r,o){var a,s,l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&(s=u,(a=l).next.i!==s.i&&a.prev.i!==s.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Fl(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(a,s)&&(Vl(a,s)&&Vl(s,a)&&function(t,e){for(var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),(n=n.next)!==t;);return i}(a,s)&&(zl(a.prev,a,s.prev)||zl(a,s.prev,s))||Dl(a,s)&&0<zl(a.prev,a,a.next)&&0<zl(s.prev,s,s.next)))){var h=ql(l,u);return l=Cl(l,l.next),h=Cl(h,h.next),Ml(l,e,n,i,r,o),void Ml(h,e,n,i,r,o)}u=u.next}l=l.next}while(l!==t)}function Ll(t,e){return t.x-e.x}function Rl(t,e){if(e=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&a<s){if((a=s)===r){if(o===i.y)return i;if(o===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!n)return null;if(r===a)return n;var l,u,h,c=n,p=n.x,f=n.y,d=1/0;for(i=n;r>=i.x&&i.x>=p&&r!==i.x&&kl(o<f?r:a,o,p,f,o<f?a:r,o,i.x,i.y)&&(l=Math.abs(o-i.y)/(r-i.x),Vl(i,t)&&(l<d||l===d&&(i.x>n.x||i.x===n.x&&(h=i,zl((u=n).prev,u,h.prev)<0&&zl(h.next,u,u.next)<0)))&&(n=i,d=l)),(i=i.next)!==c;);return n}(t,e)){var n=ql(e,t);Cl(e,e.next),Cl(n,n.next)}}function Ol(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Nl(t){for(var e=t,n=t;(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),(e=e.next)!==t;);return n}function kl(t,e,n,i,r,o,a,s){return 0<=(r-a)*(e-s)-(t-a)*(o-s)&&0<=(t-a)*(i-s)-(n-a)*(e-s)&&0<=(n-a)*(o-s)-(r-a)*(i-s)}function zl(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Dl(t,e){return t.x===e.x&&t.y===e.y}function Fl(t,e,n,i){var r=jl(zl(t,e,n)),o=jl(zl(t,e,i)),a=jl(zl(n,i,t)),s=jl(zl(n,i,e));return r!==o&&a!==s||!(0!==r||!Gl(t,n,e))||!(0!==o||!Gl(t,i,e))||!(0!==a||!Gl(n,t,i))||!(0!==s||!Gl(n,e,i))}function Gl(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function jl(t){return 0<t?1:t<0?-1:0}function Vl(t,e){return zl(t.prev,t,t.next)<0?0<=zl(t,e,t.next)&&0<=zl(t,t.prev,e):zl(t,e,t.prev)<0||zl(t,t.next,e)<0}function ql(t,e){var n=new Wl(t.i,t.x,t.y),i=new Wl(e.i,e.x,e.y),r=t.next,o=e.prev;return(t.next=e).prev=t,(n.next=r).prev=n,(i.next=n).prev=i,(o.next=i).prev=o,i}function Bl(t,e,n,i){var r=new Wl(t,e,n);return i?(r.next=i.next,(r.prev=i).next.prev=r,i.next=r):(r.prev=r).next=r,r}function Ul(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Wl(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Zl(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}function Xl(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function Hl(t,e){return t<e?-1:e<t?1:0}function Yl(t,e){var n,i,r,o,a,s=t.length;if(s<=1)return[t];for(var l,u,h=[],c=0;c<s;c++){var p=w(t[c]);0!==p&&(t[c].area=Math.abs(p),void 0===u&&(u=p<0),u===p<0?(l&&h.push(l),l=[t[c]]):l.push(t[c]))}if(l&&h.push(l),1<e)for(var f=0;f<h.length;f++)h[f].length<=e||(n=h[f],i=e,r=1,o=h[f].length-1,a=Kl,function t(e,n,i,r,o){for(;i<r;){if(600<r-i){var a=r-i+1,s=n-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(i,Math.floor(n-s*u/a+h)),Math.min(r,Math.floor(n+(a-s)*u/a+h)),o)}var c=e[n],p=i,f=r;for(Xl(e,i,n),0<o(e[r],c)&&Xl(e,i,r);p<f;){for(Xl(e,p,f),p++,f--;o(e[p],c)<0;)p++;for(;0<o(e[f],c);)f--}0===o(e[i],c)?Xl(e,i,f):Xl(e,++f,r),f<=n&&(i=f+1),n<=f&&(r=f-1)}}(n,i,r||0,o||n.length-1,a||Hl),h[f]=h[f].slice(0,e));return h}function Kl(t,e){return e.area-t.area}function Jl(t,e,n){for(var i=n.patternDependencies,r=!1,o=0,a=e;o<a.length;o+=1){var s=a[o].paint.get(t+"-pattern");s.isConstant()||(r=!0);var l=s.constantOr(null);l&&(r=!0,i[l.to]=!0,i[l.from]=!0)}return r}function Ql(t,e,n,i,r){for(var o=r.patternDependencies,a=0,s=e;a<s.length;a+=1){var l=s[a],u=l.paint.get(t+"-pattern").value;if("constant"!==u.kind){var h=u.evaluate({zoom:i-1},n,{},r.availableImages),c=u.evaluate({zoom:i},n,{},r.availableImages),p=u.evaluate({zoom:i+1},n,{},r.availableImages);c=c&&c.name?c.name:c,p=p&&p.name?p.name:p,o[h=h&&h.name?h.name:h]=!0,o[c]=!0,o[p]=!0,n.patterns[l.id]={min:h,mid:c,max:p}}}return n}function $l(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new no,this.indexArray=new Go,this.indexArray2=new ia,this.programConfigurations=new Ss(vl,t.layers,t.zoom),this.segments=new za,this.segments2=new za,this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})}Pl.deviation=function(t,e,n,i){var r=e&&e.length,o=Math.abs(Zl(t,0,r?e[0]*n:t.length,n));if(r)for(var a=0,s=e.length;a<s;a++)o-=Math.abs(Zl(t,e[a]*n,a<s-1?e[a+1]*n:t.length,n));var l=0;for(a=0;a<i.length;a+=3){var u=i[a]*n,h=i[a+1]*n,c=i[a+2]*n;l+=Math.abs((t[u]-t[c])*(t[1+h]-t[1+u])-(t[u]-t[h])*(t[1+c]-t[1+u]))}return 0===o&&0===l?0:Math.abs((l-o)/o)},Pl.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[r][o][a]);0<r&&n.holes.push(i+=t[r-1].length)}return n},xl.default=_l,$l.prototype.populate=function(t,e,n){this.hasPattern=Jl("fill",this.layers,e);for(var i=this.layers[0].layout.get("fill-sort-key"),r=[],o=0,a=t;o<a.length;o+=1){var s=a[o],l=s.feature,u=s.id,h=s.index,c=s.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,f={type:l.type,id:u,properties:l.properties,geometry:p?As(l):[]};if(this.layers[0]._featureFilter.filter(new Ar(this.zoom),f,n)){p||(f.geometry=As(l));var d=i?i.evaluate(f,{},n,e.availableImages):void 0;r.push({id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:f.geometry,patterns:{},sortKey:d})}}i&&r.sort(function(t,e){return t.sortKey-e.sortKey});for(var y=0,m=r;y<m.length;y+=1){var g=m[y],v=g.geometry,x=g.index,_=g.sourceLayerIndex;if(this.hasPattern){var w=Ql("fill",this.layers,g,this.zoom,e);this.patternFeatures.push(w)}else this.addFeature(g,v,x,n,{});e.featureIndex.insert(t[x].feature,v,x,_,this.index)}},$l.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},$l.prototype.addFeatures=function(t,e,n){for(var i=0,r=this.patternFeatures;i<r.length;i+=1){var o=r[i];this.addFeature(o,o.geometry,o.index,e,n)}},$l.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},$l.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},$l.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,vl),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},$l.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},$l.prototype.addFeature=function(t,e,n,i,r){for(var o=0,a=Yl(e,500);o<a.length;o+=1){for(var s=a[o],l=0,u=0,h=s;u<h.length;u+=1)l+=h[u].length;for(var c=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),p=c.vertexLength,f=[],d=[],y=0,m=s;y<m.length;y+=1){var g=m[y];if(0!==g.length){g!==s[0]&&d.push(f.length/2);var v=this.segments2.prepareSegment(g.length,this.layoutVertexArray,this.indexArray2),x=v.vertexLength;this.layoutVertexArray.emplaceBack(g[0].x,g[0].y),this.indexArray2.emplaceBack(x+g.length-1,x),f.push(g[0].x),f.push(g[0].y);for(var _=1;_<g.length;_++)this.layoutVertexArray.emplaceBack(g[_].x,g[_].y),this.indexArray2.emplaceBack(x+_-1,x+_),f.push(g[_].x),f.push(g[_].y);v.vertexLength+=g.length,v.primitiveLength+=g.length}}for(var w=xl(f,d),b=0;b<w.length;b+=3)this.indexArray.emplaceBack(p+w[b],p+w[b+1],p+w[b+2]);c.vertexLength+=l,c.primitiveLength+=w.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,r,i)},lr("FillBucket",$l,{omit:["layers","patternFeatures"]});var tu,eu=new Zr({"fill-sort-key":new jr(kt.layout_fill["fill-sort-key"])}),nu={paint:new Zr({"fill-antialias":new Gr(kt.paint_fill["fill-antialias"]),"fill-opacity":new jr(kt.paint_fill["fill-opacity"]),"fill-color":new jr(kt.paint_fill["fill-color"]),"fill-outline-color":new jr(kt.paint_fill["fill-outline-color"]),"fill-translate":new Gr(kt.paint_fill["fill-translate"]),"fill-translate-anchor":new Gr(kt.paint_fill["fill-translate-anchor"]),"fill-pattern":new Br(kt.paint_fill["fill-pattern"])}),layout:eu},iu=(su.__proto__=tu=Kr,((su.prototype=Object.create(tu&&tu.prototype)).constructor=su).prototype.recalculate=function(t,e){tu.prototype.recalculate.call(this,t,e);var n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},su.prototype.createBucket=function(t){return new $l(t)},su.prototype.queryRadius=function(){return Vs(this.paint.get("fill-translate"))},su.prototype.queryIntersectsFeature=function(t,e,n,i,r,o,a){return Rs(qs(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),i)},su.prototype.isTileClipped=function(){return!0},su),ru=$r([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,ou=Fe.VectorTileFeature.types,au=Math.pow(2,13);function su(t){tu.call(this,t,nu)}function lu(t,e,n,i,r,o,a,s){t.emplaceBack(e,n,2*Math.floor(i*au)+a,r*au*2,o*au*2,Math.round(s))}function uu(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new lo,this.indexArray=new Go,this.programConfigurations=new Ss(ru,t.layers,t.zoom),this.segments=new za,this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})}uu.prototype.populate=function(t,e,n){this.features=[],this.hasPattern=Jl("fill-extrusion",this.layers,e);for(var i=0,r=t;i<r.length;i+=1){var o=r[i],a=o.feature,s=o.id,l=o.index,u=o.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,c={type:a.type,id:s,properties:a.properties,geometry:h?As(a):[]};if(this.layers[0]._featureFilter.filter(new Ar(this.zoom),c,n)){var p={id:s,sourceLayerIndex:u,index:l,geometry:h?c.geometry:As(a),properties:a.properties,type:a.type,patterns:{}};void 0!==a.id&&(p.id=a.id),this.hasPattern?this.features.push(Ql("fill-extrusion",this.layers,p,this.zoom,e)):this.addFeature(p,p.geometry,l,n,{}),e.featureIndex.insert(a,p.geometry,l,u,this.index,!0)}}},uu.prototype.addFeatures=function(t,e,n){for(var i=0,r=this.features;i<r.length;i+=1){var o=r[i];this.addFeature(o,o.geometry,o.index,e,n)}},uu.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},uu.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},uu.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},uu.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ru),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},uu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},uu.prototype.addFeature=function(t,e,n,i,r){for(var o=0,a=Yl(e,500);o<a.length;o+=1){for(var s=a[o],l=0,u=0,h=s;u<h.length;u+=1)l+=h[u].length;for(var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),p=0,f=s;p<f.length;p+=1){var d=f[p];if(0!==d.length&&!((N=d).every(function(t){return t.x<0})||N.every(function(t){return t.x>Ms})||N.every(function(t){return t.y<0})||N.every(function(t){return t.y>Ms})))for(var y=0,m=0;m<d.length;m++){var g=d[m];if(1<=m){var v=d[m-1];if(O=v,!((R=g).x===O.x&&(R.x<0||R.x>Ms)||R.y===O.y&&(R.y<0||R.y>Ms))){c.vertexLength+4>za.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=g.sub(v)._perp()._unit(),_=v.dist(g);32768<y+_&&(y=0),lu(this.layoutVertexArray,g.x,g.y,x.x,x.y,0,0,y),lu(this.layoutVertexArray,g.x,g.y,x.x,x.y,0,1,y),lu(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,y+=_),lu(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,y);var w=c.vertexLength;this.indexArray.emplaceBack(w,w+2,w+1),this.indexArray.emplaceBack(w+1,w+2,w+3),c.vertexLength+=4,c.primitiveLength+=2}}}}if(c.vertexLength+l>za.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===ou[t.type]){for(var b=[],P=[],S=c.vertexLength,C=0,M=s;C<M.length;C+=1){var T=M[C];if(0!==T.length){T!==s[0]&&P.push(b.length/2);for(var A=0;A<T.length;A++){var E=T[A];lu(this.layoutVertexArray,E.x,E.y,0,0,1,1,0),b.push(E.x),b.push(E.y)}}}for(var I=xl(b,P),L=0;L<I.length;L+=3)this.indexArray.emplaceBack(S+I[L],S+I[L+2],S+I[L+1]);c.primitiveLength+=I.length/3,c.vertexLength+=l}}var R,O,N;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,r,i)},lr("FillExtrusionBucket",uu,{omit:["layers","features"]});var hu,cu={paint:new Zr({"fill-extrusion-opacity":new Gr(kt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new jr(kt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Gr(kt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Gr(kt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Br(kt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new jr(kt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new jr(kt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Gr(kt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},pu=(fu.__proto__=hu=Kr,((fu.prototype=Object.create(hu&&hu.prototype)).constructor=fu).prototype.createBucket=function(t){return new uu(t)},fu.prototype.queryRadius=function(){return Vs(this.paint.get("fill-extrusion-translate"))},fu.prototype.is3D=function(){return!0},fu.prototype.queryIntersectsFeature=function(t,e,n,i,r,o,a,s){var l=qs(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,a),u=this.paint.get("fill-extrusion-height").evaluate(e,n),h=this.paint.get("fill-extrusion-base").evaluate(e,n),c=function(t,e){for(var n=[],i=0,r=l;i<r.length;i+=1){var o=r[i],a=[o.x,o.y,0,1];Js(a,a,e),n.push(new W(a[0]/a[3],a[1]/a[3]))}return n}(0,s),p=function(t,e,n,i){for(var r=[],o=[],a=i[8]*e,s=i[9]*e,l=i[10]*e,u=i[11]*e,h=i[8]*n,c=i[9]*n,p=i[10]*n,f=i[11]*n,d=0,y=t;d<y.length;d+=1){for(var m=[],g=[],v=0,x=y[d];v<x.length;v+=1){var _=x[v],w=_.x,b=_.y,P=i[0]*w+i[4]*b+i[12],S=i[1]*w+i[5]*b+i[13],C=i[2]*w+i[6]*b+i[14],M=i[3]*w+i[7]*b+i[15],T=C+l,A=M+u,E=P+h,I=S+c,L=C+p,R=M+f,O=new W((P+a)/A,(S+s)/A);O.z=T/A,m.push(O);var N=new W(E/R,I/R);N.z=L/R,g.push(N)}r.push(m),o.push(g)}return[r,o]}(i,h,u,s);return function(t,e,n){var i=1/0;Rs(n,e)&&(i=yu(n,e[0]));for(var r=0;r<e.length;r++)for(var o=e[r],a=t[r],s=0;s<o.length-1;s++){var l=o[s],u=[l,o[s+1],a[s+1],a[s],l];Ls(n,u)&&(i=Math.min(i,yu(n,u)))}return i!==1/0&&i}(p[0],p[1],c)},fu);function fu(t){hu.call(this,t,cu)}function du(t,e){return t.x*e.x+t.y*e.y}function yu(t,e){if(1===t.length){for(var n,i=0,r=e[i++];!n||r.equals(n);)if(!(n=e[i++]))return 1/0;for(;i<e.length;i++){var o=e[i],a=t[0],s=n.sub(r),l=o.sub(r),u=a.sub(r),h=du(s,s),c=du(s,l),p=du(l,l),f=du(u,s),d=du(u,l),y=h*p-c*c,m=(p*f-c*d)/y,g=(h*d-c*f)/y,v=r.z*(1-m-g)+n.z*m+o.z*g;if(isFinite(v))return v}return 1/0}for(var x=1/0,_=0,w=e;_<w.length;_+=1)x=Math.min(x,w[_].z);return x}function mu(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new co,this.indexArray=new Go,this.programConfigurations=new Ss(gu,t.layers,t.zoom),this.segments=new za,this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})}var gu=$r([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,vu=Fe.VectorTileFeature.types,xu=Math.cos(Math.PI/180*37.5),_u=Math.pow(2,14)/.5;mu.prototype.populate=function(t,e,n){this.hasPattern=Jl("line",this.layers,e);for(var i=this.layers[0].layout.get("line-sort-key"),r=[],o=0,a=t;o<a.length;o+=1){var s=a[o],l=s.feature,u=s.id,h=s.index,c=s.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,f={type:l.type,id:u,properties:l.properties,geometry:p?As(l):[]};if(this.layers[0]._featureFilter.filter(new Ar(this.zoom),f,n)){p||(f.geometry=As(l));var d=i?i.evaluate(f,{},n):void 0;r.push({id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:f.geometry,patterns:{},sortKey:d})}}i&&r.sort(function(t,e){return t.sortKey-e.sortKey});for(var y=0,m=r;y<m.length;y+=1){var g=m[y],v=g.geometry,x=g.index,_=g.sourceLayerIndex;if(this.hasPattern){var w=Ql("line",this.layers,g,this.zoom,e);this.patternFeatures.push(w)}else this.addFeature(g,v,x,n,{});e.featureIndex.insert(t[x].feature,v,x,_,this.index)}},mu.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},mu.prototype.addFeatures=function(t,e,n){for(var i=0,r=this.patternFeatures;i<r.length;i+=1){var o=r[i];this.addFeature(o,o.geometry,o.index,e,n)}},mu.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},mu.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},mu.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,gu),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},mu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},mu.prototype.addFeature=function(t,e,n,i,r){for(var o=this.layers[0].layout,a=o.get("line-join").evaluate(t,{}),s=o.get("line-cap"),l=o.get("line-miter-limit"),u=o.get("line-round-limit"),h=0,c=e;h<c.length;h+=1)this.addLine(c[h],t,a,s,l,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,r,i)},mu.prototype.addLine=function(t,e,n,i,r,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end")){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var a=0;a<t.length-1;a++)this.totalDistance+=t[a].dist(t[a+1]);this.updateScaledDistance()}for(var s="Polygon"===vu[e.type],l=t.length;2<=l&&t[l-1].equals(t[l-2]);)l--;for(var u=0;u<l-1&&t[u].equals(t[u+1]);)u++;if(!(l<(s?3:2))){"bevel"===n&&(r=1.05);var h,c=this.overscaling<=16?15*Ms/(512*this.overscaling):0,p=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),f=void 0,d=void 0,y=void 0,m=void 0;this.e1=this.e2=-1,s&&(m=t[u].sub(h=t[l-2])._unit()._perp());for(var g=u;g<l;g++)if(!(d=g===l-1?s?t[u+1]:void 0:t[g+1])||!t[g].equals(d)){m&&(y=m),h&&(f=h),h=t[g],m=d?d.sub(h)._unit()._perp():y;var v=(y=y||m).add(m);0===v.x&&0===v.y||v._unit();var x=y.x*m.x+y.y*m.y,_=v.x*m.x+v.y*m.y,w=0!=_?1/_:1/0,b=2*Math.sqrt(2-2*_),P=_<xu&&f&&d,S=0<y.x*m.y-y.y*m.x;if(P&&u<g){var C=h.dist(f);if(2*c<C){var M=h.sub(h.sub(f)._mult(c/C)._round());this.updateDistance(f,M),this.addCurrentVertex(M,y,0,0,p),f=M}}var T=f&&d,A=T?n:s?"butt":i;if(T&&"round"===A&&(w<o?A="miter":w<=2&&(A="fakeround")),"miter"===A&&r<w&&(A="bevel"),"bevel"===A&&(2<w&&(A="flipbevel"),w<r&&(A="miter")),f&&this.updateDistance(f,h),"miter"===A)v._mult(w),this.addCurrentVertex(h,v,0,0,p);else if("flipbevel"===A){if(100<w)v=m.mult(-1);else{var E=w*y.add(m).mag()/y.sub(m).mag();v._perp()._mult(E*(S?-1:1))}this.addCurrentVertex(h,v,0,0,p),this.addCurrentVertex(h,v.mult(-1),0,0,p)}else if("bevel"===A||"fakeround"===A){var I=-Math.sqrt(w*w-1),L=S?I:0,R=S?0:I;if(f&&this.addCurrentVertex(h,y,L,R,p),"fakeround"===A)for(var O=Math.round(180*b/Math.PI/20),N=1;N<O;N++){var k=N/O;if(.5!==k){var z=k-.5;k+=k*z*(k-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*z*z+(.848013+x*(.215638*x-1.06021)))}var D=m.sub(y)._mult(k)._add(y)._unit()._mult(S?-1:1);this.addHalfVertex(h,D.x,D.y,!1,S,0,p)}d&&this.addCurrentVertex(h,m,-L,-R,p)}else if("butt"===A)this.addCurrentVertex(h,v,0,0,p);else if("square"===A){var F=f?1:-1;this.addCurrentVertex(h,v,F,F,p)}else"round"===A&&(f&&(this.addCurrentVertex(h,y,0,0,p),this.addCurrentVertex(h,y,1,1,p,!0)),d&&(this.addCurrentVertex(h,m,-1,-1,p,!0),this.addCurrentVertex(h,m,0,0,p)));if(P&&g<l-1){var G=h.dist(d);if(2*c<G){var j=h.add(d.sub(h)._mult(c/G)._round());this.updateDistance(h,j),this.addCurrentVertex(j,m,0,0,p),h=j}}}}},mu.prototype.addCurrentVertex=function(t,e,n,i,r,o){void 0===o&&(o=!1);var a=e.y*i-e.x,s=-e.y-e.x*i;this.addHalfVertex(t,e.x+e.y*n,e.y-e.x*n,o,!1,n,r),this.addHalfVertex(t,a,s,o,!0,-i,r),this.distance>_u/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,n,i,r,o))},mu.prototype.addHalfVertex=function(t,e,n,i,r,o,a){var s=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((t.x<<1)+(i?1:0),(t.y<<1)+(r?1:0),Math.round(63*e)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&s)<<2,s>>6);var l=a.vertexLength++;0<=this.e1&&0<=this.e2&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),r?this.e2=l:this.e1=l},mu.prototype.updateScaledDistance=function(){this.scaledDistance=0<this.totalDistance?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(_u-1):this.distance},mu.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},lr("LineBucket",mu,{omit:["layers","patternFeatures"]});var wu,bu=new Zr({"line-cap":new Gr(kt.layout_line["line-cap"]),"line-join":new jr(kt.layout_line["line-join"]),"line-miter-limit":new Gr(kt.layout_line["line-miter-limit"]),"line-round-limit":new Gr(kt.layout_line["line-round-limit"]),"line-sort-key":new jr(kt.layout_line["line-sort-key"])}),Pu={paint:new Zr({"line-opacity":new jr(kt.paint_line["line-opacity"]),"line-color":new jr(kt.paint_line["line-color"]),"line-translate":new Gr(kt.paint_line["line-translate"]),"line-translate-anchor":new Gr(kt.paint_line["line-translate-anchor"]),"line-width":new jr(kt.paint_line["line-width"]),"line-gap-width":new jr(kt.paint_line["line-gap-width"]),"line-offset":new jr(kt.paint_line["line-offset"]),"line-blur":new jr(kt.paint_line["line-blur"]),"line-dasharray":new Vr(kt.paint_line["line-dasharray"]),"line-pattern":new Br(kt.paint_line["line-pattern"]),"line-gradient":new Wr(kt.paint_line["line-gradient"])}),layout:bu},Su=(Cu.__proto__=wu=jr,((Cu.prototype=Object.create(wu&&wu.prototype)).constructor=Cu).prototype.possiblyEvaluate=function(t,e){return e=new Ar(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),wu.prototype.possiblyEvaluate.call(this,t,e)},Cu.prototype.evaluate=function(t,e,n,i){return e=f({},e,{zoom:Math.floor(e.zoom)}),wu.prototype.evaluate.call(this,t,e,n,i)},new Cu(Pu.paint.properties["line-width"].specification));function Cu(){wu.apply(this,arguments)}Su.useIntegerZoom=!0;var Mu,Tu=(Au.__proto__=Mu=Kr,((Au.prototype=Object.create(Mu&&Mu.prototype)).constructor=Au).prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&this._updateGradient()},Au.prototype._updateGradient=function(){this.gradient=pl(this._transitionablePaint._values["line-gradient"].value.expression,"lineProgress"),this.gradientTexture=null},Au.prototype.recalculate=function(t,e){Mu.prototype.recalculate.call(this,t,e),this.paint._values["line-floorwidth"]=Su.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},Au.prototype.createBucket=function(t){return new mu(t)},Au.prototype.queryRadius=function(t){var e=t,n=Eu(js("line-width",this,e),js("line-gap-width",this,e)),i=js("line-offset",this,e);return n/2+Math.abs(i)+Vs(this.paint.get("line-translate"))},Au.prototype.queryIntersectsFeature=function(t,e,n,i,r,o,a){var s=qs(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,a),l=a/2*Eu(this.paint.get("line-width").evaluate(e,n),this.paint.get("line-gap-width").evaluate(e,n)),u=this.paint.get("line-offset").evaluate(e,n);return u&&(i=function(t,e){for(var n=[],i=new W(0,0),r=0;r<t.length;r++){for(var o=t[r],a=[],s=0;s<o.length;s++){var l=o[s],u=o[s+1],h=0===s?i:l.sub(o[s-1])._unit()._perp(),c=s===o.length-1?i:u.sub(l)._unit()._perp(),p=h._add(c)._unit();p._mult(1/(p.x*c.x+p.y*c.y)),a.push(p._mult(e)._add(l))}n.push(a)}return n}(i,u*a)),function(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];if(3<=t.length)for(var o=0;o<r.length;o++)if(Fs(t,r[o]))return!0;if(Os(t,r,n))return!0}return!1}(s,i,l)},Au.prototype.isTileClipped=function(){return!0},Au);function Au(t){Mu.call(this,t,Pu)}function Eu(t,e){return 0<e?e+2*t:t}var Iu=$r([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Lu=$r([{name:"a_projected_pos",components:3,type:"Float32"}],4),Ru=($r([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),$r([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Ou=($r([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),$r([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Nu=$r([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ku(t,r,o){return t.sections.forEach(function(t){var e,n,i;t.text=(e=t.text,n=o,"uppercase"===(i=r.layout.get("text-transform").evaluate(n,{}))?e=e.toLocaleUpperCase():"lowercase"===i&&(e=e.toLocaleLowerCase()),Ir.applyArabicShaping&&(e=Ir.applyArabicShaping(e)),e)}),t}function zu(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=n?r-1:0,p=n?-1:1,f=t[e+c];for(c+=p,o=f&(1<<-h)-1,f>>=-h,h+=s;0<h;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)}function Du(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,h=(1<<u)-1,c=h>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,d=i?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(e+=1<=a+c?p/l:p*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));8<=r;t[n+f]=255&s,f+=d,s/=256,r-=8);for(a=a<<r|s,u+=r;0<u;t[n+f]=255&a,f+=d,a/=256,u-=8);t[n+f-d]|=128*y}$r([{name:"triangle",components:3,type:"Uint16"}]),$r([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),$r([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),$r([{type:"Float32",name:"offsetX"}]),$r([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Fu={"!":"︕","#":"",$:"","%":"","&":"","(":"︵",")":"︶","*":"","+":"",",":"︐","-":"︲",".":"・","/":"",":":"︓",";":"︔","<":"︿","=":"",">":"﹀","?":"︖","@":"","[":"﹇","\\":"","]":"﹈","^":"",_:"︳","`":"","{":"︷","|":"―","}":"︸","~":"","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","":"︲","—":"︱","":"﹃","":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","":"︹","":"︺","〖":"︗","〗":"︘","":"︕","":"︵","":"︶","":"︐","":"︲","":"・","":"︓","":"︔","":"︿","":"﹀","":"︖","":"﹇","":"﹈","_":"︳","":"︷","":"―","":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Gu=24,ju=Vu;function Vu(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Vu.Varint=0,Vu.Fixed64=1,Vu.Bytes=2,Vu.Fixed32=5;var qu="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Bu(t){return t.type===Vu.Bytes?t.readVarint()+t.pos:t.pos+1}function Uu(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function Wu(t,e,n){var i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(i);for(var r=n.pos-1;t<=r;r--)n.buf[r+i]=n.buf[r]}function Zu(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function Xu(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function Hu(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function Yu(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function Ku(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function Ju(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function Qu(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function $u(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function th(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function eh(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function nh(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function ih(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}Vu.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var i=this.readVarint(),r=i>>3,o=this.pos;this.type=7&i,t(r,e,this),this.pos===o&&this.skip(i)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=eh(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=ih(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=eh(this.buf,this.pos)+4294967296*eh(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=eh(this.buf,this.pos)+4294967296*ih(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=zu(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=zu(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,i=this.buf;return e=127&(n=i[this.pos++]),n<128?e:(e|=(127&(n=i[this.pos++]))<<7,n<128?e:(e|=(127&(n=i[this.pos++]))<<14,n<128?e:(e|=(127&(n=i[this.pos++]))<<21,n<128?e:function(t,e,n){var i,r,o=n.buf;if(i=(112&(r=o[n.pos++]))>>4,r<128)return Uu(t,i,e);if(i|=(127&(r=o[n.pos++]))<<3,r<128)return Uu(t,i,e);if(i|=(127&(r=o[n.pos++]))<<10,r<128)return Uu(t,i,e);if(i|=(127&(r=o[n.pos++]))<<17,r<128)return Uu(t,i,e);if(i|=(127&(r=o[n.pos++]))<<24,r<128)return Uu(t,i,e);if(i|=(1&(r=o[n.pos++]))<<31,r<128)return Uu(t,i,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=i[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t,e,n,i=this.readVarint()+this.pos,c=this.pos;return 12<=(this.pos=i)-c&&qu?(t=this.buf,e=c,n=i,qu.decode(t.subarray(e,n))):function(t,e,n){for(var i="",r=c;r<n;){var o,a,s,l=t[r],u=null,h=239<l?4:223<l?3:191<l?2:1;if(n<r+h)break;1===h?l<128&&(u=l):2===h?128==(192&(o=t[r+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===h?(a=t[r+2],128==(192&(o=t[r+1]))&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||55296<=u&&u<=57343)&&(u=null)):4===h&&(a=t[r+2],s=t[r+3],128==(192&(o=t[r+1]))&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||1114112<=u)&&(u=null)),null===u?(u=65533,h=1):65535<u&&(u-=65536,i+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),i+=String.fromCharCode(u),r+=h}return i}(this.buf,0,i)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Vu.Bytes)return t.push(this.readVarint(e));var n=Bu(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Vu.Bytes)return t.push(this.readSVarint());var e=Bu(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Vu.Bytes)return t.push(this.readBoolean());var e=Bu(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Vu.Bytes)return t.push(this.readFloat());var e=Bu(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Vu.Bytes)return t.push(this.readDouble());var e=Bu(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Vu.Bytes)return t.push(this.readFixed32());var e=Bu(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Vu.Bytes)return t.push(this.readSFixed32());var e=Bu(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Vu.Bytes)return t.push(this.readFixed64());var e=Bu(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Vu.Bytes)return t.push(this.readSFixed64());var e=Bu(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Vu.Varint)for(;127<this.buf[this.pos++];);else if(e===Vu.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Vu.Fixed32)this.pos+=4;else{if(e!==Vu.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),nh(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),nh(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),nh(this.buf,-1&t,this.pos),nh(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),nh(this.buf,-1&t,this.pos),nh(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(u){268435455<(u=+u||0)||u<0?function(t,e){var n,i,r,o,a,s,l;if(0<=u?(n=u%4294967296|0,i=u/4294967296|0):(i=~(-u/4294967296),4294967295^(n=~(-u%4294967296))?n=n+1|0:i=i+1|(n=0)),0x10000000000000000<=u||u<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),s=n,(l=e).buf[l.pos++]=127&s|128,s>>>=7,l.buf[l.pos++]=127&s|128,s>>>=7,l.buf[l.pos++]=127&s|128,s>>>=7,l.buf[l.pos++]=127&s|128,l.buf[l.pos]=127&(s>>>=7),a=(7&(r=i))<<4,(o=e).buf[o.pos++]|=a|((r>>>=3)?128:0),r&&(o.buf[o.pos++]=127&r|((r>>>=7)?128:0),r&&(o.buf[o.pos++]=127&r|((r>>>=7)?128:0),r&&(o.buf[o.pos++]=127&r|((r>>>=7)?128:0),r&&(o.buf[o.pos++]=127&r|((r>>>=7)?128:0),r&&(o.buf[o.pos++]=127&r)))))}(0,this):(this.realloc(4),this.buf[this.pos++]=127&u|(127<u?128:0),u<=127||(this.buf[this.pos++]=127&(u>>>=7)|(127<u?128:0),u<=127||(this.buf[this.pos++]=127&(u>>>=7)|(127<u?128:0),u<=127||(this.buf[this.pos++]=u>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var i,r,o=0;o<e.length;o++){if(55295<(i=e.charCodeAt(o))&&i<57344){if(!r){56319<i||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):r=i;continue}if(i<56320){t[n++]=239,t[n++]=191,t[n++]=189,r=i;continue}i=r-55296<<10|i-56320|65536,r=null}else r&&(t[n++]=239,t[n++]=191,t[n++]=189,r=null);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:(i<65536?t[n++]=i>>12|224:(t[n++]=i>>18|240,t[n++]=i>>12&63|128),t[n++]=i>>6&63|128),t[n++]=63&i|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;128<=n&&Wu(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),Du(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Du(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var i=this.pos-n;128<=i&&Wu(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i},writeMessage:function(t,e,n){this.writeTag(t,Vu.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,Zu,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,Xu,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,Ku,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,Hu,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,Yu,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,Ju,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,Qu,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,$u,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,th,e)},writeBytesField:function(t,e){this.writeTag(t,Vu.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Vu.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Vu.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Vu.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Vu.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Vu.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Vu.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Vu.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Vu.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Vu.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var rh=3;function oh(t,e,n){1===t&&n.readMessage(ah,e)}function ah(t,e,n){if(3===t){var i=n.readMessage(sh,{}),r=i.width,o=i.height,a=i.left,s=i.top,l=i.advance;e.push({id:i.id,bitmap:new ul({width:r+2*rh,height:o+2*rh},i.bitmap),metrics:{width:r,height:o,left:a,top:s,advance:l}})}}function sh(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}var lh=rh;function uh(t){for(var e=0,n=0,i=0,r=t;i<r.length;i+=1){var o=r[i];e+=o.w*o.h,n=Math.max(n,o.w)}t.sort(function(t,e){return e.h-t.h});for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),n),h:1/0}],s=0,l=0,u=0,h=t;u<h.length;u+=1)for(var c=h[u],p=a.length-1;0<=p;p--){var f=a[p];if(!(c.w>f.w||c.h>f.h)){if(c.x=f.x,c.y=f.y,l=Math.max(l,c.y+c.h),s=Math.max(s,c.x+c.w),c.w===f.w&&c.h===f.h){var d=a.pop();p<a.length&&(a[p]=d)}else c.h===f.h?(f.x+=c.w,f.w-=c.w):(c.w===f.w||a.push({x:f.x+c.w,y:f.y,w:f.w-c.w,h:c.h}),f.y+=c.h,f.h-=c.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}function hh(t,e){var n=e.pixelRatio,i=e.version,r=e.stretchX,o=e.stretchY,a=e.content;this.paddedRect=t,this.pixelRatio=n,this.stretchX=r,this.stretchY=o,this.content=a,this.version=i}var ch=1,ph={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};function fh(t,e){var n={},i={};this.haveRenderCallbacks=[];var r=[];this.addImages(t,n,r),this.addImages(e,i,r);var o=uh(r),a=new hl({width:o.w||1,height:o.h||1});for(var s in t){var l=t[s],u=n[s].paddedRect;hl.copy(l.data,a,{x:0,y:0},{x:u.x+ch,y:u.y+ch},l.data)}for(var h in e){var c=e[h],p=i[h].paddedRect,f=p.x+ch,d=p.y+ch,y=c.data.width,m=c.data.height;hl.copy(c.data,a,{x:0,y:0},{x:f,y:d},c.data),hl.copy(c.data,a,{x:0,y:m-1},{x:f,y:d-1},{width:y,height:1}),hl.copy(c.data,a,{x:0,y:0},{x:f,y:d+m},{width:y,height:1}),hl.copy(c.data,a,{x:y-1,y:0},{x:f-1,y:d},{width:1,height:m}),hl.copy(c.data,a,{x:0,y:0},{x:f+y,y:d},{width:1,height:m})}this.image=a,this.iconPositions=n,this.patternPositions=i}function dh(){this.scale=1,this.fontStack="",this.imageName=null}ph.tl.get=function(){return[this.paddedRect.x+ch,this.paddedRect.y+ch]},ph.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-ch,this.paddedRect.y+this.paddedRect.h-ch]},ph.tlbr.get=function(){return this.tl.concat(this.br)},ph.displaySize.get=function(){return[(this.paddedRect.w-2*ch)/this.pixelRatio,(this.paddedRect.h-2*ch)/this.pixelRatio]},Object.defineProperties(hh.prototype,ph),fh.prototype.addImages=function(t,e,n){for(var i in t){var r=t[i],o={x:0,y:0,w:r.data.width+2*ch,h:r.data.height+2*ch};n.push(o),e[i]=new hh(o,r),r.hasRenderCallback&&this.haveRenderCallbacks.push(i)}},fh.prototype.patchUpdatedImages=function(t,e){for(var n in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),e),this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),e)},fh.prototype.patchUpdatedImage=function(t,e,n){if(t&&e&&t.version!==e.version){t.version=e.version;var i=t.tl;n.update(e.data,void 0,{x:i[0],y:i[1]})}},lr("ImagePosition",hh),lr("ImageAtlas",fh);var yh={horizontal:1,vertical:2,horizontalOnly:3},mh=-17;function gh(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}function vh(t,e,n,i,r,o,a,s,Y,l,u,h,c,p,f,d){var y,m=gh.fromFeature(t,r);h===yh.vertical&&m.verticalizePunctuation();var g=Ir.processBidirectionalText,v=Ir.processStyledBidirectionalText;if(g&&1===m.sections.length){y=[];for(var x=0,_=g(m.toString(),Sh(m,l,o,e,i,p,f));x<_.length;x+=1){var w=_[x],b=new gh;b.text=w,b.sections=m.sections;for(var P=0;P<w.length;P++)b.sectionIndex.push(0);y.push(b)}}else if(v){y=[];for(var S=0,C=v(m.text,m.sectionIndex,Sh(m,l,o,e,i,p,f));S<C.length;S+=1){var M=C[S],T=new gh;T.text=M[0],T.sectionIndex=M[1],T.sections=m.sections,y.push(T)}}else y=function(t,e){for(var n=[],i=t.text,r=0,o=0,a=e;o<a.length;o+=1){var s=a[o];n.push(t.substring(r,s)),r=s}return r<i.length&&n.push(t.substring(r,i.length)),n}(m,Sh(m,l,o,e,i,p,f));var A=[],E={positionedLines:A,text:m.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:h,iconsInText:!1,verticalizable:!1};return function(t,e,n,i,r,o,a,s,l,u,h,c){for(var p=0,f=mh,d=0,y=0,m="right"===Y?1:"left"===Y?0:.5,g=0,v=0,x=r;v<x.length;v+=1){var _=x[v];_.trim();var w=_.getMaxScale(),b=(w-1)*Gu,P={positionedGlyphs:[],lineOffset:0},S=(t.positionedLines[g]=P).positionedGlyphs,C=0;if(_.length()){for(var M=0;M<_.length();M++){var T=_.getSection(M),A=_.getSectionIndex(M),E=_.getCharCode(M),I=0,L=null,R=null,O=null,N=Gu,k=!(l===yh.horizontal||!h&&!gr(E)||h&&(xh[E]||(U=E,yr.Arabic(U)||yr["Arabic Supplement"](U)||yr["Arabic Extended-A"](U)||yr["Arabic Presentation Forms-A"](U)||yr["Arabic Presentation Forms-B"](U))));if(T.imageName){var z=i[T.imageName];if(!z)continue;O=T.imageName,t.iconsInText=t.iconsInText||!0,R=z.paddedRect;var D=z.displaySize;T.scale=T.scale*Gu/c,I=b+(Gu-D[1]*T.scale),N=(L={width:D[0],height:D[1],left:ch,top:-lh,advance:k?D[1]:D[0]}).advance;var F=k?D[0]*T.scale-Gu*w:D[1]*T.scale-Gu*w;0<F&&C<F&&(C=F)}else{var G=n[T.fontStack],j=G&&G[E];if(j&&j.rect)R=j.rect,L=j.metrics;else{var V=e[T.fontStack],q=V&&V[E];if(!q)continue;L=q.metrics}I=(w-T.scale)*Gu}k?(t.verticalizable=!0,S.push({glyph:E,imageName:O,x:p,y:f+I,vertical:k,scale:T.scale,fontStack:T.fontStack,sectionIndex:A,metrics:L,rect:R}),p+=N*T.scale+u):(S.push({glyph:E,imageName:O,x:p,y:f+I,vertical:k,scale:T.scale,fontStack:T.fontStack,sectionIndex:A,metrics:L,rect:R}),p+=L.advance*T.scale+u)}0!==S.length&&(d=Math.max(p-u,d),Mh(S,0,S.length-1,m,C)),p=0;var B=o*w+C;P.lineOffset=Math.max(C,b),f+=B,y=Math.max(B,y),++g}else f+=o,++g}var U,W=f-mh,Z=Ch(a),X=Z.horizontalAlign,H=Z.verticalAlign;(function(t,e,n,i,r,o,a,s,l){var u,h=(e-n)*r;u=o!==a?-s*i-mh:(-i*l+.5)*a;for(var c=0,p=t;c<p.length;c+=1)for(var f=0,d=p[c].positionedGlyphs;f<d.length;f+=1){var y=d[f];y.x+=h,y.y+=u}})(t.positionedLines,m,X,H,d,y,o,W,r.length),t.top+=-H*W,t.bottom=t.top+W,t.left+=-X*d,t.right=t.left+d}(E,e,n,i,y,a,s,0,h,l,c,d),!function(){for(var t=0,e=A;t<e.length;t+=1)if(0!==e[t].positionedGlyphs.length)return!1;return!0}()&&E}dh.forText=function(t,e){var n=new dh;return n.scale=t||1,n.fontStack=e,n},dh.forImage=function(t){var e=new dh;return e.imageName=t,e},gh.fromFeature=function(t,e){for(var n=new gh,i=0;i<t.sections.length;i++){var r=t.sections[i];r.image?n.addImageSection(r):n.addTextSection(r,e)}return n},gh.prototype.length=function(){return this.text.length},gh.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},gh.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},gh.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},gh.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n+1)||null,r=t.charCodeAt(n-1)||null;e+=i&&vr(i)&&!Fu[t[n+1]]||r&&vr(r)&&!Fu[t[n-1]]||!Fu[t[n]]?t[n]:Fu[t[n]]}return e}(this.text)},gh.prototype.trim=function(){for(var t=0,e=0;e<this.text.length&&xh[this.text.charCodeAt(e)];e++)t++;for(var n=this.text.length,i=this.text.length-1;0<=i&&t<=i&&xh[this.text.charCodeAt(i)];i--)n--;this.text=this.text.substring(t,n),this.sectionIndex=this.sectionIndex.slice(t,n)},gh.prototype.substring=function(t,e){var n=new gh;return n.text=this.text.substring(t,e),n.sectionIndex=this.sectionIndex.slice(t,e),n.sections=this.sections,n},gh.prototype.toString=function(){return this.text},gh.prototype.getMaxScale=function(){var n=this;return this.sectionIndex.reduce(function(t,e){return Math.max(t,n.sections[e].scale)},0)},gh.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(dh.forText(t.scale,t.fontStack||e));for(var n=this.sections.length-1,i=0;i<t.text.length;++i)this.sectionIndex.push(n)},gh.prototype.addImageSection=function(t){var e=t.image?t.image.name:"";if(0!==e.length){var n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(dh.forImage(e)),this.sectionIndex.push(this.sections.length-1)):ct("Reached maximum number of images 6401")}else ct("Can't add FormattedSection with an empty image.")},gh.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?63743<=this.imageSectionID?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var xh={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},_h={};function wh(t,e,n,i,r,o){if(e.imageName){var a=i[e.imageName];return a?a.displaySize[0]*e.scale*Gu/o+r:0}var s=n[e.fontStack],l=s&&s[t];return l?l.metrics.advance*e.scale+r:0}function bh(t,e,n,i){var r=Math.pow(t-e,2);return i?t<e?r/2:2*r:r+Math.abs(n)*n}function Ph(t,e,n,i,r,o){for(var a=null,s=bh(e,n,r,o),l=0,u=i;l<u.length;l+=1){var h=u[l],c=bh(e-h.x,n,r,o)+h.badness;c<=s&&(a=h,s=c)}return{index:t,x:e,priorBreak:a,badness:s}}function Sh(t,e,n,i,r,o,a){if("point"!==o)return[];if(!t)return[];for(var s,l=[],u=function(t,e,n,i,r,o){for(var a=0,s=0;s<t.length();s++){var l=t.getSection(s);a+=wh(t.getCharCode(s),l,i,r,e,o)}return a/Math.max(1,Math.ceil(a/n))}(t,e,n,i,r,a),h=0<=t.text.indexOf(""),c=0,p=0;p<t.length();p++){var f=t.getSection(p),d=t.getCharCode(p);if(xh[d]||(c+=wh(d,f,i,r,e,a)),p<t.length()-1){var y=!((s=d)<11904||!(yr["Bopomofo Extended"](s)||yr.Bopomofo(s)||yr["CJK Compatibility Forms"](s)||yr["CJK Compatibility Ideographs"](s)||yr["CJK Compatibility"](s)||yr["CJK Radicals Supplement"](s)||yr["CJK Strokes"](s)||yr["CJK Symbols and Punctuation"](s)||yr["CJK Unified Ideographs Extension A"](s)||yr["CJK Unified Ideographs"](s)||yr["Enclosed CJK Letters and Months"](s)||yr["Halfwidth and Fullwidth Forms"](s)||yr.Hiragana(s)||yr["Ideographic Description Characters"](s)||yr["Kangxi Radicals"](s)||yr["Katakana Phonetic Extensions"](s)||yr.Katakana(s)||yr["Vertical Forms"](s)||yr["Yi Radicals"](s)||yr["Yi Syllables"](s)));(_h[d]||y||f.imageName)&&l.push(Ph(p+1,c,u,l,(m=d,g=t.getCharCode(p+1),v=void 0,v=0,10===m&&(v-=1e4),y&&h&&(v+=150),40!==m&&65288!==m||(v+=50),41!==g&&65289!==g||(v+=50),v),!1))}}var m,g,v;return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Ph(t.length(),c,u,l,0,!0))}function Ch(t){var e=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:e,verticalAlign:n}}function Mh(t,e,n,i,r){if(i||r)for(var o=t[n],a=(t[n].x+o.metrics.advance*o.scale)*i,s=e;s<=n;s++)t[s].x-=a,t[s].y+=r}function Th(t,e,n,i,r,o){var a,s=t.image;if(s.content){var l=s.content,u=s.pixelRatio||1;a=[l[0]/u,l[1]/u,s.displaySize[0]-l[2]/u,s.displaySize[1]-l[3]/u]}var h,c,p,f,d=e.left*o,y=e.right*o;c="width"===n||"both"===n?(f=r[0]+d-i[3],r[0]+y+i[1]):(f=r[0]+(d+y-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*o,g=e.bottom*o;return p="height"===n||"both"===n?(h=r[1]+m-i[0],r[1]+g+i[2]):(h=r[1]+(m+g-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:h,right:c,bottom:p,left:f,collisionPadding:a}}_h[10]=!0,_h[32]=!0,_h[38]=!0,_h[40]=!0,_h[41]=!0,_h[43]=!0,_h[45]=!0,_h[47]=!0,_h[173]=!0,_h[183]=!0,_h[8203]=!0,_h[8208]=!0,_h[8211]=!0,_h[8231]=!0;var Ah,Eh=((Ah=W)&&(Ih.__proto__=Ah),((Ih.prototype=Object.create(Ah&&Ah.prototype)).constructor=Ih).prototype.clone=function(){return new Ih(this.x,this.y,this.angle,this.segment)},Ih);function Ih(t,e,n,i){Ah.call(this,t,e),this.angle=n,void 0!==i&&(this.segment=i)}lr("Anchor",Eh);var Lh=128;function Rh(t,e){var n=e.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new Ar(t+1))};if("source"===n.kind)return{kind:"source"};for(var i=n.zoomStops,r=n.interpolationType,o=0;o<i.length&&i[o]<=t;)o++;for(var a=o=Math.max(0,o-1);a<i.length&&i[a]<t+1;)a++;a=Math.min(i.length-1,a);var s=i[o],l=i[a];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:r}:{kind:"camera",minZoom:s,maxZoom:l,minSize:n.evaluate(new Ar(s)),maxSize:n.evaluate(new Ar(l)),interpolationType:r}}function Oh(t,e,n){var i=e.uSize,r=n.lowerSize;return"source"===t.kind?r/Lh:"composite"===t.kind?pn(r/Lh,n.upperSize/Lh,e.uSizeT):i}function Nh(t,e){var n=0,i=0;if("constant"===t.kind)i=t.layoutSize;else if("source"!==t.kind){var r=t.interpolationType,o=r?s(En.interpolationFactor(r,e,t.minZoom,t.maxZoom),0,1):0;"camera"===t.kind?i=pn(t.minSize,t.maxSize,o):n=o}return{uSizeT:n,uSize:i}}var kh=Object.freeze({__proto__:null,getSizeData:Rh,evaluateSizeForFeature:Oh,evaluateSizeForZoom:Nh,SIZE_PACK_FACTOR:Lh});function zh(t,e,n,i,r){if(void 0===e.segment)return!0;for(var o=e,a=e.segment+1,s=0;-n/2<s;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var l=[],u=0;s<n/2;){var h=t[a],c=t[a+1];if(!c)return!1;var p=t[a-1].angleTo(h)-h.angleTo(c);for(p=Math.abs((p+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:p}),u+=p;s-l[0].distance>i;)u-=l.shift().angleDelta;if(r<u)return!1;a++,s+=h.dist(c)}return!0}function Dh(t){for(var e=0,n=0;n<t.length-1;n++)e+=t[n].dist(t[n+1]);return e}function Fh(t,e,n){return t?.6*e*n:0}function Gh(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function jh(t,e,n,i,r,o){for(var a=Fh(n,r,o),s=Gh(n,i)*o,l=0,u=Dh(t)/2,h=0;h<t.length-1;h++){var c=t[h],p=t[h+1],f=c.dist(p);if(u<l+f){var d=(u-l)/f,y=pn(c.x,p.x,d),m=pn(c.y,p.y,d),g=new Eh(y,m,p.angleTo(c),h);return g._round(),!a||zh(t,g,s,a,e)?g:void 0}l+=f}}function Vh(t,e,n,i,r){for(var o=[],a=0;a<t.length;a++)for(var s=t[a],l=void 0,u=0;u<s.length-1;u++){var h=s[u],c=s[u+1];h.x<e&&c.x<e||(h.x<e?h=new W(e,h.y+(e-h.x)/(c.x-h.x)*(c.y-h.y))._round():c.x<e&&(c=new W(e,h.y+(e-h.x)/(c.x-h.x)*(c.y-h.y))._round()),h.y<n&&c.y<n||(h.y<n?h=new W(h.x+(n-h.y)/(c.y-h.y)*(c.x-h.x),n)._round():c.y<n&&(c=new W(h.x+(n-h.y)/(c.y-h.y)*(c.x-h.x),n)._round()),h.x>=i&&c.x>=i||(h.x>=i?h=new W(i,h.y+(i-h.x)/(c.x-h.x)*(c.y-h.y))._round():c.x>=i&&(c=new W(i,h.y+(i-h.x)/(c.x-h.x)*(c.y-h.y))._round()),h.y>=r&&c.y>=r||(h.y>=r?h=new W(h.x+(r-h.y)/(c.y-h.y)*(c.x-h.x),r)._round():c.y>=r&&(c=new W(h.x+(r-h.y)/(c.y-h.y)*(c.x-h.x),r)._round()),l&&h.equals(l[l.length-1])||o.push(l=[h]),l.push(c)))))}return o}var qh=ch;function Bh(S,C,M,t){function e(t,e){return t+e[1]-e[0]}var n=[],T=S.image,A=T.pixelRatio,i=T.paddedRect.w-2*qh,r=T.paddedRect.h-2*qh,E=S.right-S.left,I=S.bottom-S.top,o=T.stretchX||[[0,i]],a=T.stretchY||[[0,r]],L=o.reduce(e,0),R=a.reduce(e,0),s=i-L,l=r-R,O=0,N=L,k=0,z=R,D=0,F=s,G=0,j=l;if(T.content&&t){var u=T.content;O=Uh(o,0,u[0]),k=Uh(a,0,u[1]),N=Uh(o,u[0],u[2]),z=Uh(a,u[1],u[3]),D=u[0]-O,G=u[1]-k,F=u[2]-u[0]-N,j=u[3]-u[1]-z}function h(t,e,n,i){var r=Zh(t.stretch-O,N,E,S.left),o=Xh(t.fixed-D,F,t.stretch,L),a=Zh(e.stretch-k,z,I,S.top),s=Xh(e.fixed-G,j,e.stretch,R),l=Zh(n.stretch-O,N,E,S.left),u=Xh(n.fixed-D,F,n.stretch,L),h=Zh(i.stretch-k,z,I,S.top),c=Xh(i.fixed-G,j,i.stretch,R),p=new W(r,a),f=new W(l,a),d=new W(l,h),y=new W(r,h),m=new W(o/A,s/A),g=new W(u/A,c/A),v=C*Math.PI/180;if(v){var x=Math.sin(v),_=Math.cos(v),w=[_,-x,x,_];p._matMult(w),f._matMult(w),y._matMult(w),d._matMult(w)}var b=t.stretch+t.fixed,P=e.stretch+e.fixed;return{tl:p,tr:f,bl:y,br:d,tex:{x:T.paddedRect.x+qh+b,y:T.paddedRect.y+qh+P,w:n.stretch+n.fixed-b,h:i.stretch+i.fixed-P},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:m,pixelOffsetBR:g,minFontScaleX:F/A/E,minFontScaleY:j/A/I,isSDF:M}}if(t&&(T.stretchX||T.stretchY))for(var c=Wh(o,s,L),p=Wh(a,l,R),f=0;f<c.length-1;f++)for(var d=c[f],y=c[f+1],m=0;m<p.length-1;m++)n.push(h(d,p[m],y,p[m+1]));else n.push(h({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:1+i},{fixed:0,stretch:1+r}));return n}function Uh(t,e,n){for(var i=0,r=0,o=t;r<o.length;r+=1){var a=o[r];i+=Math.max(e,Math.min(n,a[1]))-Math.max(e,Math.min(n,a[0]))}return i}function Wh(t,e,n){for(var i=[{fixed:-qh,stretch:0}],r=0,o=t;r<o.length;r+=1){var a=o[r],s=a[0],l=a[1],u=i[i.length-1];i.push({fixed:s-u.stretch,stretch:u.stretch}),i.push({fixed:s-u.stretch,stretch:u.stretch+(l-s)})}return i.push({fixed:e+qh,stretch:n}),i}function Zh(t,e,n,i){return t/e*n+i}function Xh(t,e,n,i){return t-e*n/i}function Hh(t,e,n,i,r,o,a,s,l,u){if(this.boxStartIndex=t.length,l){var h=o.top,c=o.bottom,p=o.collisionPadding;p&&(h-=p[1],c+=p[3]);var f=c-h;0<f&&(f=Math.max(10,f),this.circleDiameter=f)}else{var d=o.top*a-s,y=o.bottom*a+s,m=o.left*a-s,g=o.right*a+s,v=o.collisionPadding;if(v&&(m-=v[0]*a,d-=v[1]*a,g+=v[2]*a,y+=v[3]*a),u){var x=new W(m,d),_=new W(g,d),w=new W(m,y),b=new W(g,y),P=u*Math.PI/180;x._rotate(P),_._rotate(P),w._rotate(P),b._rotate(P),m=Math.min(x.x,_.x,w.x,b.x),g=Math.max(x.x,_.x,w.x,b.x),d=Math.min(x.y,_.y,w.y,b.y),y=Math.max(x.y,_.y,w.y,b.y)}t.emplaceBack(e.x,e.y,m,d,g,y,n,i,r)}this.boxEndIndex=t.length}var Yh=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=Kh),this.data=t,this.length=this.data.length,this.compare=e,0<this.length)for(var n=(this.length>>1)-1;0<=n;n--)this._down(n)};function Kh(t,e){return t<e?-1:e<t?1:0}function Jh(t,e,n){void 0===e&&(e=1),void 0===n&&(n=!1);for(var i=1/0,r=1/0,o=-1/0,a=-1/0,s=t[0],l=0;l<s.length;l++){var u=s[l];(!l||u.x<i)&&(i=u.x),(!l||u.y<r)&&(r=u.y),(!l||u.x>o)&&(o=u.x),(!l||u.y>a)&&(a=u.y)}var h=Math.min(o-i,a-r),c=h/2,p=new Yh([],Qh);if(0===h)return new W(i,r);for(var f=i;f<o;f+=h)for(var d=r;d<a;d+=h)p.push(new $h(f+c,d+c,c,t));for(var y=function(t){for(var e=0,n=0,i=0,r=t[0],o=0,a=r.length,s=a-1;o<a;s=o++){var l=r[o],u=r[s],h=l.x*u.y-u.x*l.y;n+=(l.x+u.x)*h,i+=(l.y+u.y)*h,e+=3*h}return new $h(n/e,i/e,0,t)}(t),m=p.length;p.length;){var g=p.pop();(g.d>y.d||!y.d)&&(y=g,n&&console.log("found best %d after %d probes",Math.round(1e4*g.d)/1e4,m)),g.max-y.d<=e||(p.push(new $h(g.p.x-(c=g.h/2),g.p.y-c,c,t)),p.push(new $h(g.p.x+c,g.p.y-c,c,t)),p.push(new $h(g.p.x-c,g.p.y+c,c,t)),p.push(new $h(g.p.x+c,g.p.y+c,c,t)),m+=4)}return n&&(console.log("num probes: "+m),console.log("best distance: "+y.d)),y.p}function Qh(t,e){return e.max-t.max}function $h(t,e,n,i){this.p=new W(t,e),this.h=n,this.d=function(t,e){for(var n=!1,i=1/0,r=0;r<e.length;r++)for(var o=e[r],a=0,s=o.length,l=s-1;a<s;l=a++){var u=o[a],h=o[l];u.y>t.y!=h.y>t.y&&t.x<(h.x-u.x)*(t.y-u.y)/(h.y-u.y)+u.x&&(n=!n),i=Math.min(i,zs(t,u,h))}return(n?1:-1)*Math.sqrt(i)}(this.p,i),this.max=this.d+this.h*Math.SQRT2}Yh.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Yh.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,0<this.length&&(this.data[0]=e,this._down(0)),t}},Yh.prototype.peek=function(){return this.data[0]},Yh.prototype._up=function(t){for(var e=this.data,n=this.compare,i=e[t];0<t;){var r=t-1>>1,o=e[r];if(0<=n(i,o))break;e[t]=o,t=r}e[t]=i},Yh.prototype._down=function(t){for(var e=this.data,n=this.compare,i=this.length>>1,r=e[t];t<i;){var o=1+(t<<1),a=e[o],s=o+1;if(s<this.length&&n(e[s],a)<0&&(a=e[o=s]),0<=n(a,r))break;e[t]=a,t=o}e[t]=r};var tc=Number.POSITIVE_INFINITY;function ec(t,e){return e[1]!==tc?function(t,e,n){var i=0,r=0;switch(e=Math.abs(e),n=Math.abs(n),t){case"top-right":case"top-left":case"top":r=n-7;break;case"bottom-right":case"bottom-left":case"bottom":r=7-n}switch(t){case"top-right":case"bottom-right":case"right":i=-e;break;case"top-left":case"bottom-left":case"left":i=e}return[i,r]}(t,e[0],e[1]):function(t,e){var n=0,i=0;e<0&&(e=0);var r=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":i=r-7;break;case"bottom-right":case"bottom-left":i=7-r;break;case"bottom":i=7-e;break;case"top":i=e-7}switch(t){case"top-right":case"bottom-right":n=-r;break;case"top-left":case"bottom-left":n=r;break;case"left":n=e;break;case"right":n=-e}return[n,i]}(t,e[0])}function nc(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var ic=255,rc=ic*Lh;function oc(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d){var y=function(t,e,n,i,r,o,a,s){for(var l=i.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=[],h=0,c=e.positionedLines;h<c.length;h+=1)for(var p=c[h],f=0,d=p.positionedGlyphs;f<d.length;f+=1){var y=d[f];if(y.rect){var m=y.rect||{},g=lh+1,v=!0,x=1,_=0,w=(r||s)&&y.vertical,b=y.metrics.advance*y.scale/2;if(s&&e.verticalizable&&(_=p.lineOffset/2-(y.imageName?-(Gu-y.metrics.width*y.scale)/2:(y.scale-1)*Gu)),y.imageName){var P=a[y.imageName];v=P.sdf,g=ch/(x=P.pixelRatio)}var S=r?[y.x+b,y.y]:[0,0],C=r?[0,0]:[y.x+b+n[0],y.y+n[1]-_],M=[0,0];w&&(M=C,C=[0,0]);var T=(y.metrics.left-g)*y.scale-b+C[0],A=(-y.metrics.top-g)*y.scale+C[1],E=T+m.w*y.scale/x,I=A+m.h*y.scale/x,L=new W(T,A),R=new W(E,A),O=new W(T,I),N=new W(E,I);if(w){var k=new W(-b,b-mh),z=-Math.PI/2,D=Gu/2-b,F=new W(5-mh-D,-(y.imageName?D:0)),G=new(Function.prototype.bind.apply(W,[null].concat(M)));L._rotateAround(z,k)._add(F)._add(G),R._rotateAround(z,k)._add(F)._add(G),O._rotateAround(z,k)._add(F)._add(G),N._rotateAround(z,k)._add(F)._add(G)}if(l){var j=Math.sin(l),V=Math.cos(l),q=[V,-j,j,V];L._matMult(q),R._matMult(q),O._matMult(q),N._matMult(q)}var B=new W(0,0),U=new W(0,0);u.push({tl:L,tr:R,bl:O,br:N,tex:m,writingMode:e.writingMode,glyphOffset:S,sectionIndex:y.sectionIndex,isSDF:v,pixelOffsetTL:B,pixelOffsetBR:U,minFontScaleX:0,minFontScaleY:0})}}return u}(0,n,s,r,o,a,i,t.allowVerticalPlacement),m=t.textSizeData,g=null;"source"===m.kind?(g=[Lh*r.layout.get("text-size").evaluate(a,{})])[0]>rc&&ct(t.layerIds[0]+': Value for "text-size" is >= '+ic+'. Reduce your "text-size".'):"composite"===m.kind&&((g=[Lh*f.compositeTextSizes[0].evaluate(a,{},d),Lh*f.compositeTextSizes[1].evaluate(a,{},d)])[0]>rc||g[1]>rc)&&ct(t.layerIds[0]+': Value for "text-size" is >= '+ic+'. Reduce your "text-size".'),t.addSymbols(t.text,y,g,s,o,a,u,e,l.lineStartIndex,l.lineLength,p,d);for(var v=0,x=h;v<x.length;v+=1)c[x[v]]=t.text.placedSymbolArray.length-1;return 4*y.length}function ac(t){for(var e in t)return t[e];return null}function sc(t,e,n,i){var r=t.compareText;if(e in r){for(var o=r[e],a=o.length-1;0<=a;a--)if(i.dist(o[a])<n)return!0}else r[e]=[];return r[e].push(i),!1}var lc=Fe.VectorTileFeature.types,uc=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function hc(t,e,n,i,r,o,a,s,l,u,h,c,p){var f=s?Math.min(rc,Math.round(s[0])):0,d=s?Math.min(rc,Math.round(s[1])):0;t.emplaceBack(e,n,Math.round(32*i),Math.round(32*r),o,a,(f<<1)+(l?1:0),d,16*u,16*h,256*c,256*p)}function cc(t,e,n){t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n)}function pc(t){for(var e=0,n=t.sections;e<n.length;e+=1)if(_r(n[e].text))return!0;return!1}function fc(t){this.layoutVertexArray=new vo,this.indexArray=new Go,this.programConfigurations=t,this.segments=new za,this.dynamicLayoutVertexArray=new wo,this.opacityVertexArray=new So,this.placedSymbolArray=new _a}function dc(t,e,n){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new n,this.segments=new za,this.collisionVertexArray=new zo}function yc(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Zs([]),this.placementViewportMatrix=Zs([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Rh(this.zoom,e["text-size"]),this.iconSizeData=Rh(this.zoom,e["icon-size"]);var n=this.layers[0].layout,i=n.get("symbol-sort-key"),r=n.get("symbol-z-order");this.sortFeaturesByKey="viewport-y"!==r&&void 0!==i.constantOr(1),this.sortFeaturesByY=("viewport-y"===r||"auto"===r&&!this.sortFeaturesByKey)&&(n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement")),"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map(function(t){return yh[t]})),this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id}),this.sourceID=t.sourceID}function mc(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Wt,this.defaultValue=t}fc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},fc.prototype.upload=function(t,e,n,i){this.isEmpty()||(n&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Iu.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Lu.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,uc,!0),this.opacityVertexBuffer.itemSize=1),(n||i)&&this.programConfigurations.upload(t))},fc.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},lr("SymbolBuffers",fc),dc.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Ru.members,!0)},dc.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},lr("CollisionBuffers",dc),yc.prototype.createArrays=function(){this.text=new fc(new Ss(Iu.members,this.layers,this.zoom,function(t){return/^text/.test(t)})),this.icon=new fc(new Ss(Iu.members,this.layers,this.zoom,function(t){return/^icon/.test(t)})),this.glyphOffsetArray=new Ta,this.lineVertexArray=new Ia,this.symbolInstances=new Sa},yc.prototype.calculateGlyphDependencies=function(t,e,n,i,r){for(var o=0;o<t.length;o++)if(e[t.charCodeAt(o)]=!0,(n||i)&&r){var a=Fu[t.charAt(o)];a&&(e[a.charCodeAt(0)]=!0)}},yc.prototype.populate=function(t,e,n){var i=this.layers[0],r=i.layout,o=r.get("text-font"),a=r.get("text-field"),s=r.get("icon-image"),l=("constant"!==a.value.kind||a.value.value instanceof ce&&!a.value.value.isEmpty()||0<a.value.value.toString().length)&&("constant"!==o.value.kind||0<o.value.value.length),u="constant"!==s.value.kind||!!s.value.value||0<Object.keys(s.parameters).length,h=r.get("symbol-sort-key");if(this.features=[],l||u){for(var c=e.iconDependencies,p=e.glyphDependencies,f=e.availableImages,d=new Ar(this.zoom),y=0,m=t;y<m.length;y+=1){var g=m[y],v=g.feature,x=g.id,_=g.index,w=g.sourceLayerIndex,b=i._featureFilter.needGeometry,P={type:v.type,id:x,properties:v.properties,geometry:b?As(v):[]};if(i._featureFilter.filter(d,P,n)){b||(P.geometry=As(v));var S=void 0;if(l){var C=i.getValueAndResolveTokens("text-field",P,n,f),M=ce.factory(C);pc(M)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Mr()||this.hasRTLText&&Ir.isParsed())&&(S=ku(M,i,P))}var T=void 0;if(u){var A=i.getValueAndResolveTokens("icon-image",P,n,f);T=A instanceof pe?A:pe.fromString(A)}if(S||T){var E=this.sortFeaturesByKey?h.evaluate(P,{},n):void 0,I={id:x,text:S,icon:T,index:_,sourceLayerIndex:w,geometry:As(v),properties:v.properties,type:lc[v.type],sortKey:E};if(this.features.push(I),T&&(c[T.name]=!0),S){var L=o.evaluate(P,{},n).join(","),R="map"===r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&0<=this.writingModes.indexOf(yh.vertical);for(var O=0,N=S.sections;O<N.length;O+=1){var k=N[O];if(k.image)c[k.image.name]=!0;else{var z=mr(S.toString()),D=k.fontStack||L,F=p[D]=p[D]||{};this.calculateGlyphDependencies(k.text,F,R,this.allowVerticalPlacement,z)}}}}}}"line"===r.get("symbol-placement")&&(this.features=function(e){var r={},o={},a=[],n=0;function t(t){a.push(e[t]),n++}function i(t,e,n){var i=o[t];return delete o[t],o[e]=i,a[i].geometry[0].pop(),a[i].geometry[0]=a[i].geometry[0].concat(n[0]),i}function s(t,e,n){var i=r[e];return delete r[e],r[t]=i,a[i].geometry[0].shift(),a[i].geometry[0]=n[0].concat(a[i].geometry[0]),i}function l(t,e,n){var i=n?e[0][e[0].length-1]:e[0][0];return t+":"+i.x+":"+i.y}for(var u=0;u<e.length;u++){var h=e[u],c=h.geometry,p=h.text?h.text.toString():null;if(p){var f=l(p,c),d=l(p,c,!0);if(f in o&&d in r&&o[f]!==r[d]){var y=s(f,d,c),m=i(f,d,a[y].geometry);delete r[f],delete o[d],o[l(p,a[m].geometry,!0)]=m,a[y].geometry=null}else f in o?i(f,d,c):d in r?s(f,d,c):(t(u),r[f]=n-1,o[d]=n-1)}else t(u)}return a.filter(function(t){return t.geometry})}(this.features)),this.sortFeaturesByKey&&this.features.sort(function(t,e){return t.sortKey-e.sortKey})}},yc.prototype.update=function(t,e,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,n),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,n))},yc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},yc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},yc.prototype.upload=function(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},yc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},yc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},yc.prototype.addToLineVertexArray=function(t,e){var n=this.lineVertexArray.length;if(void 0!==t.segment){for(var i=t.dist(e[t.segment+1]),r=t.dist(e[t.segment]),o={},a=t.segment+1;a<e.length;a++)o[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:i},a<e.length-1&&(i+=e[a+1].dist(e[a]));for(var s=t.segment||0;0<=s;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:r},0<s&&(r+=e[s-1].dist(e[s]));for(var l=0;l<e.length;l++){var u=o[l];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},yc.prototype.addSymbols=function(t,e,n,i,r,o,a,s,l,u,h,c){for(var p=t.indexArray,f=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,f,p,o.sortKey),y=this.glyphOffsetArray.length,m=d.vertexLength,g=this.allowVerticalPlacement&&a===yh.vertical?Math.PI/2:0,v=o.text&&o.text.sections,x=0;x<e.length;x++){var _=e[x],w=_.tl,b=_.tr,P=_.bl,S=_.br,C=_.tex,M=_.pixelOffsetTL,T=_.pixelOffsetBR,A=_.minFontScaleX,E=_.minFontScaleY,I=_.glyphOffset,L=_.isSDF,R=_.sectionIndex,O=d.vertexLength,N=I[1];hc(f,s.x,s.y,w.x,N+w.y,C.x,C.y,n,L,M.x,M.y,A,E),hc(f,s.x,s.y,b.x,N+b.y,C.x+C.w,C.y,n,L,T.x,M.y,A,E),hc(f,s.x,s.y,P.x,N+P.y,C.x,C.y+C.h,n,L,M.x,T.y,A,E),hc(f,s.x,s.y,S.x,N+S.y,C.x+C.w,C.y+C.h,n,L,T.x,T.y,A,E),cc(t.dynamicLayoutVertexArray,s,g),p.emplaceBack(O,O+1,O+2),p.emplaceBack(O+1,O+2,O+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(I[0]),x!==e.length-1&&R===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(f.length,o,o.index,{},c,v&&v[R])}t.placedSymbolArray.emplaceBack(s.x,s.y,y,this.glyphOffsetArray.length-y,m,l,u,s.segment,n?n[0]:0,n?n[1]:0,i[0],i[1],a,0,!1,0,h)},yc.prototype._addCollisionDebugVertex=function(t,e,n,i,r,o){return e.emplaceBack(0,0),t.emplaceBack(n.x,n.y,i,r,Math.round(o.x),Math.round(o.y))},yc.prototype.addCollisionDebugVertices=function(t,e,n,i,r,o,a){var s=r.segments.prepareSegment(4,r.layoutVertexArray,r.indexArray),l=s.vertexLength,u=r.layoutVertexArray,h=r.collisionVertexArray,c=a.anchorX,p=a.anchorY;this._addCollisionDebugVertex(u,h,o,c,p,new W(t,e)),this._addCollisionDebugVertex(u,h,o,c,p,new W(n,e)),this._addCollisionDebugVertex(u,h,o,c,p,new W(n,i)),this._addCollisionDebugVertex(u,h,o,c,p,new W(t,i)),s.vertexLength+=4;var f=r.indexArray;f.emplaceBack(l,l+1),f.emplaceBack(l+1,l+2),f.emplaceBack(l+2,l+3),f.emplaceBack(l+3,l),s.primitiveLength+=4},yc.prototype.addDebugCollisionBoxes=function(t,e,n,i){for(var r=t;r<e;r++){var o=this.collisionBoxArray.get(r);this.addCollisionDebugVertices(o.x1,o.y1,o.x2,o.y2,i?this.textCollisionBox:this.iconCollisionBox,o.anchorPoint,n)}},yc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new dc(Io,Ou.members,ia),this.iconCollisionBox=new dc(Io,Ou.members,ia);for(var t=0;t<this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},yc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,n,i,r,o,a,s,l){for(var u={},h=e;h<n;h++){var c=t.get(h);u.textBox={x1:c.x1,y1:c.y1,x2:c.x2,y2:c.y2,anchorPointX:c.anchorPointX,anchorPointY:c.anchorPointY},u.textFeatureIndex=c.featureIndex;break}for(var p=i;p<r;p++){var f=t.get(p);u.verticalTextBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},u.verticalTextFeatureIndex=f.featureIndex;break}for(var d=o;d<a;d++){var y=t.get(d);u.iconBox={x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,anchorPointX:y.anchorPointX,anchorPointY:y.anchorPointY},u.iconFeatureIndex=y.featureIndex;break}for(var m=s;m<l;m++){var g=t.get(m);u.verticalIconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},u.verticalIconFeatureIndex=g.featureIndex;break}return u},yc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e<this.symbolInstances.length;e++){var n=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}},yc.prototype.hasTextData=function(){return 0<this.text.segments.get().length},yc.prototype.hasIconData=function(){return 0<this.icon.segments.get().length},yc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},yc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&0<this.textCollisionBox.segments.get().length},yc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&0<this.iconCollisionBox.segments.get().length},yc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var n=t.placedSymbolArray.get(e),i=n.vertexStartIndex+4*n.numGlyphs,r=n.vertexStartIndex;r<i;r+=4)t.indexArray.emplaceBack(r,r+1,r+2),t.indexArray.emplaceBack(r+1,r+2,r+3)},yc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),n=Math.cos(t),i=[],r=[],o=[],a=0;a<this.symbolInstances.length;++a){o.push(a);var s=this.symbolInstances.get(a);i.push(0|Math.round(e*s.anchorX+n*s.anchorY)),r.push(s.featureIndex)}return o.sort(function(t,e){return i[t]-i[e]||r[e]-r[t]}),o},yc.prototype.addToSortKeyRanges=function(t,e){var n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===e?n.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},yc.prototype.sortFeatures=function(t){var i=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(1<this.text.segments.get().length||1<this.icon.segments.get().length)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var e=0,n=this.symbolInstanceIndexes;e<n.length;e+=1){var r=this.symbolInstances.get(n[e]);this.featureSortOrder.push(r.featureIndex),[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex].forEach(function(t,e,n){0<=t&&n.indexOf(t)===e&&i.addIndicesForPlacedSymbol(i.text,t)}),0<=r.verticalPlacedTextSymbolIndex&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),0<=r.placedIconSymbolIndex&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),0<=r.verticalPlacedIconSymbolIndex&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},lr("SymbolBucket",yc,{omit:["layers","collisionBoxArray","features","compareText"]}),yc.MAX_GLYPHS=65535,yc.addDynamicAttributes=cc;var gc=new Zr({"symbol-placement":new Gr(kt.layout_symbol["symbol-placement"]),"symbol-spacing":new Gr(kt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Gr(kt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new jr(kt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Gr(kt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Gr(kt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Gr(kt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Gr(kt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Gr(kt.layout_symbol["icon-rotation-alignment"]),"icon-size":new jr(kt.layout_symbol["icon-size"]),"icon-text-fit":new Gr(kt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Gr(kt.layout_symbol["icon-text-fit-padding"]),"icon-image":new jr(kt.layout_symbol["icon-image"]),"icon-rotate":new jr(kt.layout_symbol["icon-rotate"]),"icon-padding":new Gr(kt.layout_symbol["icon-padding"]),"icon-keep-upright":new Gr(kt.layout_symbol["icon-keep-upright"]),"icon-offset":new jr(kt.layout_symbol["icon-offset"]),"icon-anchor":new jr(kt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Gr(kt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Gr(kt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Gr(kt.layout_symbol["text-rotation-alignment"]),"text-field":new jr(kt.layout_symbol["text-field"]),"text-font":new jr(kt.layout_symbol["text-font"]),"text-size":new jr(kt.layout_symbol["text-size"]),"text-max-width":new jr(kt.layout_symbol["text-max-width"]),"text-line-height":new Gr(kt.layout_symbol["text-line-height"]),"text-letter-spacing":new jr(kt.layout_symbol["text-letter-spacing"]),"text-justify":new jr(kt.layout_symbol["text-justify"]),"text-radial-offset":new jr(kt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Gr(kt.layout_symbol["text-variable-anchor"]),"text-anchor":new jr(kt.layout_symbol["text-anchor"]),"text-max-angle":new Gr(kt.layout_symbol["text-max-angle"]),"text-writing-mode":new Gr(kt.layout_symbol["text-writing-mode"]),"text-rotate":new jr(kt.layout_symbol["text-rotate"]),"text-padding":new Gr(kt.layout_symbol["text-padding"]),"text-keep-upright":new Gr(kt.layout_symbol["text-keep-upright"]),"text-transform":new jr(kt.layout_symbol["text-transform"]),"text-offset":new jr(kt.layout_symbol["text-offset"]),"text-allow-overlap":new Gr(kt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Gr(kt.layout_symbol["text-ignore-placement"]),"text-optional":new Gr(kt.layout_symbol["text-optional"])}),vc={paint:new Zr({"icon-opacity":new jr(kt.paint_symbol["icon-opacity"]),"icon-color":new jr(kt.paint_symbol["icon-color"]),"icon-halo-color":new jr(kt.paint_symbol["icon-halo-color"]),"icon-halo-width":new jr(kt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new jr(kt.paint_symbol["icon-halo-blur"]),"icon-translate":new Gr(kt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Gr(kt.paint_symbol["icon-translate-anchor"]),"text-opacity":new jr(kt.paint_symbol["text-opacity"]),"text-color":new jr(kt.paint_symbol["text-color"],{runtimeType:Yt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new jr(kt.paint_symbol["text-halo-color"]),"text-halo-width":new jr(kt.paint_symbol["text-halo-width"]),"text-halo-blur":new jr(kt.paint_symbol["text-halo-blur"]),"text-translate":new Gr(kt.paint_symbol["text-translate"]),"text-translate-anchor":new Gr(kt.paint_symbol["text-translate-anchor"])}),layout:gc};function xc(t,e,n,i){this.context=t,this.format=n,this.texture=t.gl.createTexture(),this.update(e,i)}mc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},mc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},mc.prototype.outputDefined=function(){return!1},mc.prototype.serialize=function(){return null},lr("FormatSectionOverride",mc,{omit:["defaultValue"]});var _c,wc,bc,Pc,Sc=(Gc.__proto__=Pc=Kr,((Gc.prototype=Object.create(Pc&&Pc.prototype)).constructor=Gc).prototype.recalculate=function(t,e){if(Pc.prototype.recalculate.call(this,t,e),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var n=this.layout.get("text-writing-mode");if(n){for(var i=[],r=0,o=n;r<o.length;r+=1){var a=o[r];i.indexOf(a)<0&&i.push(a)}this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},Gc.prototype.getValueAndResolveTokens=function(t,e,n,i){var r,o=this.layout.get(t).evaluate(e,{},n,i),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||yi(a.value)||!o?o:(r=e.properties,o.replace(/{([^{}]+)}/g,function(t,e){return e in r?String(r[e]):""}))},Gc.prototype.createBucket=function(t){return new yc(t)},Gc.prototype.queryRadius=function(){return 0},Gc.prototype.queryIntersectsFeature=function(){return!1},Gc.prototype._setPaintOverrides=function(){for(var t=0,e=vc.paint.overridableProperties;t<e.length;t+=1){var n=e[t];if(Gc.hasPaintOverride(this.layout,n)){var i,r=this.paint.get(n),o=new mc(r),a=new di(o,r.property.specification);i="constant"===r.value.kind||"source"===r.value.kind?new gi("source",a):new vi("composite",a,r.value.zoomStops,r.value._interpolationType),this.paint._values[n]=new Dr(r.property,i,r.parameters)}}},Gc.prototype._handleOverridablePaintPropertyUpdate=function(t,e,n){return!(!this.layout||e.isDataDriven()||n.isDataDriven())&&Gc.hasPaintOverride(this.layout,t)},Gc.hasPaintOverride=function(t,e){function n(t){for(var e=0,n=t;e<n.length;e+=1)if(r.overrides&&r.overrides.hasOverride(n[e]))return void(o=!0)}var i=t.get("text-field"),r=vc.paint.properties[e],o=!1;if("constant"===i.value.kind&&i.value.value instanceof ce)n(i.value.value.sections);else if("source"===i.value.kind){var a=function(t){o||(t instanceof ge&&ye(t.value)===$t?n(t.value.sections):t instanceof we?n(t.sections):t.eachChild(a))},s=i.value;s._styleExpression&&a(s._styleExpression.expression)}return o},Gc),Cc={paint:new Zr({"background-color":new Gr(kt.paint_background["background-color"]),"background-pattern":new Vr(kt.paint_background["background-pattern"]),"background-opacity":new Gr(kt.paint_background["background-opacity"])})},Mc=(Fc.__proto__=bc=Kr,(Fc.prototype=Object.create(bc&&bc.prototype)).constructor=Fc),Tc={paint:new Zr({"raster-opacity":new Gr(kt.paint_raster["raster-opacity"]),"raster-hue-rotate":new Gr(kt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Gr(kt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Gr(kt.paint_raster["raster-brightness-max"]),"raster-saturation":new Gr(kt.paint_raster["raster-saturation"]),"raster-contrast":new Gr(kt.paint_raster["raster-contrast"]),"raster-resampling":new Gr(kt.paint_raster["raster-resampling"]),"raster-fade-duration":new Gr(kt.paint_raster["raster-fade-duration"])})},Ac=(Dc.__proto__=wc=Kr,(Dc.prototype=Object.create(wc&&wc.prototype)).constructor=Dc),Ec=(zc.__proto__=_c=Kr,((zc.prototype=Object.create(_c&&_c.prototype)).constructor=zc).prototype.is3D=function(){return"3d"===this.implementation.renderingMode},zc.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},zc.prototype.recalculate=function(){},zc.prototype.updateTransitions=function(){},zc.prototype.hasTransition=function(){},zc.prototype.serialize=function(){},zc.prototype.onAdd=function(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},zc.prototype.onRemove=function(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},zc),Ic={circle:tl,heatmap:yl,hillshade:gl,fill:iu,"fill-extrusion":pu,line:Tu,symbol:Sc,background:Mc,raster:Ac},Lc=self.HTMLImageElement,Rc=self.HTMLCanvasElement,Oc=self.HTMLVideoElement,Nc=self.ImageData,kc=self.ImageBitmap;function zc(t){_c.call(this,t,{}),this.implementation=t}function Dc(t){wc.call(this,t,Tc)}function Fc(t){bc.call(this,t,Cc)}function Gc(t){Pc.call(this,t,vc)}function jc(t){var e=this;this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})}function Vc(t,e,n){this.target=t,this.parent=e,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},d(["receive","process"],this),this.invoker=new jc(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=b()?t:self}function qc(t,e,n){var i=2*Math.PI*6378137/256/Math.pow(2,n);return[t*i-2*Math.PI*6378137/2,e*i-2*Math.PI*6378137/2]}function Bc(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))}xc.prototype.update=function(t,e,n){var i=t.width,r=t.height,o=!(this.size&&this.size[0]===i&&this.size[1]===r||n),a=this.context,s=a.gl;if(this.useMipmap=Boolean(e&&e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!e||!1!==e.premultiply)),o)this.size=[i,r],t instanceof Lc||t instanceof Rc||t instanceof Oc||t instanceof Nc||kc&&t instanceof kc?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,i,r,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=n||{x:0,y:0},u=l.x,h=l.y;t instanceof Lc||t instanceof Rc||t instanceof Oc||t instanceof Nc||kc&&t instanceof kc?s.texSubImage2D(s.TEXTURE_2D,0,u,h,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,u,h,i,r,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},xc.prototype.bind=function(t,e,n){var i=this.context.gl;i.bindTexture(i.TEXTURE_2D,this.texture),n!==i.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=i.LINEAR),t!==this.filter&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n||t),this.filter=t),e!==this.wrap&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,e),this.wrap=e)},xc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},xc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null},jc.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(function(){t._triggered=!1,t._callback()},0))},jc.prototype.remove=function(){delete this._channel,this._callback=function(){}},Vc.prototype.send=function(t,e,n,i,r){var o=this;void 0===r&&(r=!1);var a=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[a]=n);var s=C(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:t,hasCallback:!!n,targetMapId:i,mustQueue:r,sourceMapId:this.mapId,data:pr(e,s)},s),{cancel:function(){n&&delete o.callbacks[a],o.target.postMessage({id:a,type:"<cancel>",targetMapId:i,sourceMapId:o.mapId})}}},Vc.prototype.receive=function(t){var e=t.data,n=e.id;if(n&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){delete this.tasks[n];var i=this.cancelCallbacks[n];delete this.cancelCallbacks[n],i&&i()}else b()||e.mustQueue?(this.tasks[n]=e,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,e)},Vc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},Vc.prototype.processTask=function(n,t){var i=this;if("<response>"===t.type){var e=this.callbacks[n];delete this.callbacks[n],e&&(t.error?e(fr(t.error)):e(null,fr(t.data)))}else{var r=!1,o=C(this.globalScope)?void 0:[],a=t.hasCallback?function(t,e){r=!0,delete i.cancelCallbacks[n],i.target.postMessage({id:n,type:"<response>",sourceMapId:i.mapId,error:t?pr(t):null,data:pr(e,o)},o)}:function(t){r=!0},s=null,l=fr(t.data);if(this.parent[t.type])s=this.parent[t.type](t.sourceMapId,l,a);else if(this.parent.getWorkerSource){var u=t.type.split(".");s=this.parent.getWorkerSource(t.sourceMapId,u[0],l.source)[u[1]](l,a)}else a(new Error("Could not find function "+t.type));!r&&s&&s.cancel&&(this.cancelCallbacks[n]=s.cancel)}},Vc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)},Bc.prototype.setNorthEast=function(t){return this._ne=t instanceof Uc?new Uc(t.lng,t.lat):Uc.convert(t),this},Bc.prototype.setSouthWest=function(t){return this._sw=t instanceof Uc?new Uc(t.lng,t.lat):Uc.convert(t),this},Bc.prototype.extend=function(t){var e,n,i=this._sw,r=this._ne;if(t instanceof Uc)n=e=t;else{if(!(t instanceof Bc))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Bc.convert(t)):this.extend(Uc.convert(t)):this;if(n=t._ne,!(e=t._sw)||!n)return this}return i||r?(i.lng=Math.min(e.lng,i.lng),i.lat=Math.min(e.lat,i.lat),r.lng=Math.max(n.lng,r.lng),r.lat=Math.max(n.lat,r.lat)):(this._sw=new Uc(e.lng,e.lat),this._ne=new Uc(n.lng,n.lat)),this},Bc.prototype.getCenter=function(){return new Uc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Bc.prototype.getSouthWest=function(){return this._sw},Bc.prototype.getNorthEast=function(){return this._ne},Bc.prototype.getNorthWest=function(){return new Uc(this.getWest(),this.getNorth())},Bc.prototype.getSouthEast=function(){return new Uc(this.getEast(),this.getSouth())},Bc.prototype.getWest=function(){return this._sw.lng},Bc.prototype.getSouth=function(){return this._sw.lat},Bc.prototype.getEast=function(){return this._ne.lng},Bc.prototype.getNorth=function(){return this._ne.lat},Bc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Bc.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Bc.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Bc.prototype.contains=function(t){var e=Uc.convert(t),n=e.lng,i=e.lat,r=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(r=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=i&&i<=this._ne.lat&&r},Bc.convert=function(t){return!t||t instanceof Bc?t:new Bc(t)};var Uc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,90<this.lat||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Uc.prototype.wrap=function(){return new Uc(l(this.lng,-180,180),this.lat)},Uc.prototype.toArray=function(){return[this.lng,this.lat]},Uc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Uc.prototype.distanceTo=function(t){var e=Math.PI/180,n=this.lat*e,i=t.lat*e,r=Math.sin(n)*Math.sin(i)+Math.cos(n)*Math.cos(i)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(r,1))},Uc.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return new Bc(new Uc(this.lng-n,this.lat-e),new Uc(this.lng+n,this.lat+e))},Uc.convert=function(t){if(t instanceof Uc)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Uc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Uc(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Wc=2*Math.PI*6371008.8;function Zc(t){return Wc*Math.cos(t*Math.PI/180)}function Xc(t){return(180+t)/360}function Hc(t){return e=t,Ve.getProjection(k.CRS).yFromLat(e);var e}function Yc(t,e){return t/Zc(e)}function Kc(t){return e=t,Ve.getProjection(k.CRS).latFromY(e);var e}function Jc(t,e,n){void 0===n&&(n=0),this.x=+t,this.y=+e,this.z=+n}function Qc(t,e,n){this.z=t,this.x=e,this.y=n,this.key=ep(0,t,t,e,n)}function $c(t,e){this.wrap=t,this.canonical=e,this.key=ep(t,e.z,e.z,e.x,e.y)}function tp(t,e,n,i,r){this.overscaledZ=t,this.wrap=e,this.canonical=new Qc(n,+i,+r),this.key=ep(e,t,n,i,r)}function ep(t,e,n,i,r){(t*=2)<0&&(t=-1*t-1);var o=1<<n;return(o*o*t+o*r+i).toString(36)+n.toString(36)+e.toString(36)}function np(t,e,n){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return ct('"'+n+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=e.height;var i=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=n||"mapbox";for(var r=0;r<i;r++)this.data[this._idx(-1,r)]=this.data[this._idx(0,r)],this.data[this._idx(i,r)]=this.data[this._idx(i-1,r)],this.data[this._idx(r,-1)]=this.data[this._idx(r,0)],this.data[this._idx(r,i)]=this.data[this._idx(r,i-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(i,-1)]=this.data[this._idx(i-1,0)],this.data[this._idx(-1,i)]=this.data[this._idx(0,i-1)],this.data[this._idx(i,i)]=this.data[this._idx(i-1,i-1)]}function ip(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var n=t[e];this._stringToNumber[n]=e,this._numberToString[e]=n}}function rp(t,e,n,i,r){this.type="Feature",(this._vectorTileFeature=t)._z=e,t._x=n,t._y=i,this.properties=t.properties,this.id=r}Jc.fromLngLat=function(t,e){void 0===e&&(e=0);var n=Uc.convert(t);return new Jc(Xc(n.lng),Hc(n.lat),Yc(e,n.lat))},Jc.prototype.toLngLat=function(){return new Uc(360*this.x-180,Kc(this.y))},Jc.prototype.toAltitude=function(){return this.z*Zc(Kc(this.y))},Jc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Wc*(t=Kc(this.y),1/Math.cos(t*Math.PI/180));var t},Qc.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Qc.prototype.url=function(t,e,n){var i=function(t,e,n){if("EPSG:3857"===k.CRS)return r=e,o=n,a=qc(256*(i=t),256*(r=Math.pow(2,o)-r-1),o),s=qc(256*(i+1),256*(r+1),o),a[0]+","+a[1]+","+s[0]+","+s[1];var i,r,o,a,s;if("EPSG:4490"===k.CRS||"EPSG:4326"===k.CRS){var l=360/Math.pow(2,n);return[t*l-180,90-(e+1)*l,(t+1)*l-180,90-e*l].join(",")}}(this.x,this.y,this.z),r=function(t,e,n){for(var i,r="",o=t;0<o;o--)r+=(e&(i=1<<o-1)?1:0)+(n&i?2:0);return r}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z+n)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",r).replace("{bbox-epsg-3857}",i)},Qc.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new W((t.x*e-this.x)*Ms,(t.y*e-this.y)*Ms)},Qc.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y},tp.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},tp.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new tp(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new tp(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},tp.prototype.calculateScaledKey=function(t,e){var n=this.canonical.z-t;return t>this.canonical.z?ep(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):ep(this.wrap*+e,t,t,this.canonical.x>>n,this.canonical.y>>n)},tp.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},tp.prototype.children=function(t){if(this.overscaledZ>=t)return[new tp(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,n=2*this.canonical.x,i=2*this.canonical.y;return[new tp(e,this.wrap,e,n,i),new tp(e,this.wrap,e,1+n,i),new tp(e,this.wrap,e,n,1+i),new tp(e,this.wrap,e,1+n,1+i)]},tp.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},tp.prototype.wrapped=function(){return new tp(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},tp.prototype.unwrapTo=function(t){return new tp(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},tp.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},tp.prototype.toUnwrapped=function(){return new $c(this.wrap,this.canonical)},tp.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},tp.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Jc(t.x-this.wrap,t.y))},lr("CanonicalTileID",Qc),lr("OverscaledTileID",tp,{omit:["posMatrix"]}),np.prototype.get=function(t,e){var n=new Uint8Array(this.data.buffer),i=4*this._idx(t,e);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(n[i],n[1+i],n[2+i])},np.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},np.prototype._idx=function(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},np.prototype._unpackMapbox=function(t,e,n){return(256*t*256+256*e+n)/10-1e4},np.prototype._unpackTerrarium=function(t,e,n){return 256*t+e+n/256-32768},np.prototype.getPixels=function(){return new hl({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},np.prototype.backfillBorder=function(t,e,n){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var i=e*this.dim,r=e*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(e){case-1:i=r-1;break;case 1:r=i+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}for(var s=-e*this.dim,l=-n*this.dim,u=o;u<a;u++)for(var h=i;h<r;h++)this.data[this._idx(h,u)]=t.data[this._idx(h+s,u+l)]},lr("DEMData",np),ip.prototype.encode=function(t){return this._stringToNumber[t]},ip.prototype.decode=function(t){return this._numberToString[t]};var op={geometry:{configurable:!0}};function ap(){this.state={},this.stateChanges={},this.deletedStates={}}function sp(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new nr(Ms,16,0),this.grid3D=new nr(Ms,16,0),this.featureIndexArray=new Na,this.promoteId=e}function lp(t,i,r,o,a){return m(t,function(t,e){var n=i instanceof Fr?i.get(e):null;return n&&n.evaluate?n.evaluate(r,o,a):n})}function up(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0,a=t;o<a.length;o+=1){var s=a[o];e=Math.min(e,s.x),n=Math.min(n,s.y),i=Math.max(i,s.x),r=Math.max(r,s.y)}return{minX:e,minY:n,maxX:i,maxY:r}}function hp(t,e){return e-t}function cp(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"}function pp(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},fp.mark(this._marks.start)}op.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},op.geometry.set=function(t){this._geometry=t},rp.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t},Object.defineProperties(rp.prototype,op),ap.prototype.updateState=function(t,e,n){var i=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][i]=this.stateChanges[t][i]||{},f(this.stateChanges[t][i],n),null===this.deletedStates[t])for(var r in this.deletedStates[t]={},this.state[t])r!==i&&(this.deletedStates[t][r]=null);else if(this.deletedStates[t]&&null===this.deletedStates[t][i])for(var o in this.deletedStates[t][i]={},this.state[t][i])n[o]||(this.deletedStates[t][i][o]=null);else for(var a in n)this.deletedStates[t]&&this.deletedStates[t][i]&&null===this.deletedStates[t][i][a]&&delete this.deletedStates[t][i][a]},ap.prototype.removeFeatureState=function(t,e,n){if(null!==this.deletedStates[t]){var i=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},n&&void 0!==e)null!==this.deletedStates[t][i]&&(this.deletedStates[t][i]=this.deletedStates[t][i]||{},this.deletedStates[t][i][n]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][i])for(n in this.deletedStates[t][i]={},this.stateChanges[t][i])this.deletedStates[t][i][n]=null;else this.deletedStates[t][i]=null;else this.deletedStates[t]=null}},ap.prototype.getState=function(t,e){var n=String(e),i=f({},(this.state[t]||{})[n],(this.stateChanges[t]||{})[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var r=this.deletedStates[t][e];if(null===r)return{};for(var o in r)delete i[o]}return i},ap.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},ap.prototype.coalesceChanges=function(t,e){var n={};for(var i in this.stateChanges){this.state[i]=this.state[i]||{};var r={};for(var o in this.stateChanges[i])this.state[i][o]||(this.state[i][o]={}),f(this.state[i][o],this.stateChanges[i][o]),r[o]=this.state[i][o];n[i]=r}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var l in this.state[a])s[l]={},this.state[a][l]={};else for(var u in this.deletedStates[a]){if(null===this.deletedStates[a][u])this.state[a][u]={};else for(var h=0,c=Object.keys(this.deletedStates[a][u]);h<c.length;h+=1)delete this.state[a][u][c[h]];s[u]=this.state[a][u]}n[a]=n[a]||{},f(n[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var p in t)t[p].setFeatureState(n,e)},sp.prototype.insert=function(t,e,n,i,r,o){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,i,r);for(var s=o?this.grid3D:this.grid,l=0;l<e.length;l++){for(var u=e[l],h=[1/0,1/0,-1/0,-1/0],c=0;c<u.length;c++){var p=u[c];h[0]=Math.min(h[0],p.x),h[1]=Math.min(h[1],p.y),h[2]=Math.max(h[2],p.x),h[3]=Math.max(h[3],p.y)}h[0]<Ms&&h[1]<Ms&&0<=h[2]&&0<=h[3]&&s.insert(a,h[0],h[1],h[2],h[3])}},sp.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Fe.VectorTile(new ju(this.rawTileData)).layers,this.sourceLayerCoder=new ip(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},sp.prototype.query=function(r,o,a,s){var l=this;this.loadVTLayers();for(var u=r.params||{},h=Ms/r.tileSize/r.scale,c=Ei(u.filter),p=r.queryGeometry,f=r.queryPadding*h,t=up(p),d=this.grid.query(t.minX-f,t.minY-f,t.maxX+f,t.maxY+f),e=up(r.cameraQueryGeometry),n=0,i=this.grid3D.query(e.minX-f,e.minY-f,e.maxX+f,e.maxY+f,function(t,e,n,i){return function(t,e,n,i,r){for(var o=0,a=t;o<a.length;o+=1){var s=a[o];if(e<=s.x&&n<=s.y&&i>=s.x&&r>=s.y)return!0}var l=[new W(e,n),new W(e,r),new W(i,r),new W(i,n)];if(2<t.length)for(var u=0,h=l;u<h.length;u+=1)if(Fs(t,h[u]))return!0;for(var c=0;c<t.length-1;c++)if(Gs(t[c],t[c+1],l))return!0;return!1}(r.cameraQueryGeometry,t-f,e-f,n+f,i+f)});n<i.length;n+=1)d.push(i[n]);d.sort(hp);for(var y,m={},g=function(t){var e=d[t];if(e!==y){y=e;var n=l.featureIndexArray.get(e),i=null;l.loadMatchingFeature(m,n.bucketIndex,n.sourceLayerIndex,n.featureIndex,c,u.layers,u.availableImages,o,a,s,function(t,e,n){return i=i||As(t),e.queryIntersectsFeature(p,t,n,i,l.z,r.transform,h,r.pixelPosMatrix)})}},v=0;v<d.length;v++)g(v);return m},sp.prototype.loadMatchingFeature=function(t,e,n,i,r,o,a,s,l,u,h){var c=this.bucketLayerIDs[e];if(!o||function(t,e){for(var n=0;n<t.length;n++)if(0<=e.indexOf(t[n]))return!0;return!1}(o,c)){var p=this.sourceLayerCoder.decode(n),f=this.vtLayers[p].feature(i);if(r.filter(new Ar(this.tileID.overscaledZ),f))for(var d=this.getId(f,p),y=0;y<c.length;y++){var m=c[y];if(!(o&&o.indexOf(m)<0)){var g=s[m];if(g){var v={};void 0!==d&&u&&(v=u.getState(g.sourceLayer||"_geojsonTileLayer",d));var x=l[m];x.paint=lp(x.paint,g.paint,f,v,a),x.layout=lp(x.layout,g.layout,f,v,a);var _=!h||h(f,g,v);if(_){var w=new rp(f,this.z,this.x,this.y,d);w.layer=x;var b=t[m];void 0===b&&(b=t[m]=[]),b.push({featureIndex:i,feature:w,intersectionZ:_})}}}}}},sp.prototype.lookupSymbolFeatures=function(t,e,n,i,r,o,a,s){var l={};this.loadVTLayers();for(var u=Ei(r),h=0,c=t;h<c.length;h+=1)this.loadMatchingFeature(l,n,i,c[h],u,o,a,s,e);return l},sp.prototype.hasLayer=function(t){for(var e=0,n=this.bucketLayerIDs;e<n.length;e+=1)for(var i=0,r=n[e];i<r.length;i+=1)if(t===r[i])return!0;return!1},sp.prototype.getId=function(t,e){var n=t.id;return this.promoteId&&"boolean"==typeof(n=t.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[e]])&&(n=Number(n)),n},lr("FeatureIndex",sp,{omit:["rawTileData","sourceLayerCoder"]}),cp.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<N.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},cp.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},cp.prototype.loadVectorData=function(t,e,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){for(var i in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,r){var o={};if(!r)return o;for(var e=function(){var t=s[a],n=t.layerIds.map(function(t){return r.getLayer(t)}).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&&(t.stateDependentLayers=t.stateDependentLayerIds.map(function(e){return n.filter(function(t){return t.id===e})[0]}));for(var e=0,i=n;e<i.length;e+=1)o[i[e].id]=t}},a=0,s=t;a<s.length;a+=1)e();return o}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var r=this.buckets[i];if(r instanceof yc){if(this.hasSymbolBuckets=!0,!n)break;r.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var o in this.buckets){var a=this.buckets[o];if(a instanceof yc&&a.hasRTLText){this.hasRTLText=!0,Ir.isLoading()||Ir.isLoaded()||"deferred"!==Mr()||Tr();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new ma},cp.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},cp.prototype.getBucket=function(t){return this.buckets[t.id]},cp.prototype.upload=function(t){for(var e in this.buckets){var n=this.buckets[e];n.uploadPending()&&n.upload(t)}var i=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new xc(t,this.imageAtlas.image,i.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new xc(t,this.glyphAtlasImage,i.ALPHA),this.glyphAtlasImage=null)},cp.prototype.prepare=function(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},cp.prototype.queryRenderedFeatures=function(t,e,n,i,r,o,a,s,l,u){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,cameraQueryGeometry:r,scale:o,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:a,queryPadding:this.queryPadding*l},t,e,n):{}},cp.prototype.querySourceFeatures=function(t,e){var n=this.latestFeatureIndex;if(n&&n.rawTileData){var i=n.loadVTLayers(),r=e?e.sourceLayer:"",o=i._geojsonTileLayer||i[r];if(o)for(var a=Ei(e&&e.filter),s=this.tileID.canonical,l=s.z,u=s.x,h=s.y,c={z:l,x:u,y:h},p=0;p<o.length;p++){var f=o.feature(p);if(a.filter(new Ar(this.tileID.overscaledZ),f)){var d=n.getId(f,r),y=new rp(f,l,u,h,d);y.tile=c,t.push(y)}}}},cp.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},cp.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},cp.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var n=P(t.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var i=Date.now(),r=!1;if(this.expirationTime>i)r=!1;else if(e)if(this.expirationTime<e)r=!0;else{var o=this.expirationTime-e;o?this.expirationTime=i+Math.max(o,3e4):r=!0}else r=!0;r?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},cp.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},cp.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(t).length){var n=this.latestFeatureIndex.loadVTLayers();for(var i in this.buckets)if(e.style.hasLayer(i)){var r=this.buckets[i],o=r.layers[0].sourceLayer||"_geojsonTileLayer",a=n[o],s=t[o];if(a&&s&&0!==Object.keys(s).length){r.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{});var l=e&&e.style&&e.style.getLayer(i);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(r)))}}}},cp.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},cp.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<N.now()},cp.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},cp.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=N.now()+t},cp.prototype.setDependencies=function(t,e){for(var n={},i=0,r=e;i<r.length;i+=1)n[r[i]]=!0;this.dependencies[t]=n},cp.prototype.hasDependency=function(t,e){for(var n=0,i=t;n<i.length;n+=1){var r=this.dependencies[i[n]];if(r)for(var o=0,a=e;o<a.length;o+=1)if(r[a[o]])return!0}return!1};var fp=self.performance;pp.prototype.finish=function(){fp.mark(this._marks.end);var t=fp.getEntriesByName(this._marks.measure);return 0===t.length&&(fp.measure(this._marks.measure,this._marks.start,this._marks.end),t=fp.getEntriesByName(this._marks.measure),fp.clearMarks(this._marks.start),fp.clearMarks(this._marks.end),fp.clearMeasures(this._marks.measure)),t},t.Actor=Vc,t.AlphaImage=ul,t.CanonicalTileID=Qc,t.CollisionBoxArray=ma,t.Color=le,t.DEMData=np,t.DataConstantProperty=Gr,t.DictionaryCoder=ip,t.EXTENT=Ms,t.ErrorEvent=Ot,t.EvaluationParameters=Ar,t.Event=It,t.Evented=Lt,t.FeatureIndex=sp,t.FillBucket=$l,t.FillExtrusionBucket=uu,t.ImageAtlas=fh,t.ImagePosition=hh,t.LineBucket=mu,t.LngLat=Uc,t.LngLatBounds=Bc,t.MercatorCoordinate=Jc,t.ONE_EM=Gu,t.OverscaledTileID=tp,t.Point=W,t.Point$1=W,t.Properties=Zr,t.Protobuf=ju,t.RGBAImage=hl,t.RequestManager=j,t.RequestPerformance=pp,t.ResourceType=gt,t.SegmentVector=za,t.SourceFeatureState=ap,t.StructArrayLayout1ui2=aa,t.StructArrayLayout2f1f2i16=Oo,t.StructArrayLayout2i4=no,t.StructArrayLayout3ui6=Go,t.StructArrayLayout4i8=oo,t.SymbolBucket=yc,t.Texture=xc,t.Tile=cp,t.Transitionable=Or,t.Uniform1f=is,t.Uniform1i=ns,t.Uniform2f=rs,t.Uniform3f=os,t.Uniform4f=as,t.UniformColor=ss,t.UniformMatrix4f=us,t.UnwrappedTileID=$c,t.ValidationError=zt,t.WritingMode=yh,t.ZoomHistory=dr,t.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},t.addDynamicAttributes=cc,t.asyncAll=function(t,e,i){if(!t.length)return i(null,[]);var r=t.length,o=new Array(t.length),a=null;t.forEach(function(t,n){e(t,function(t,e){t&&(a=t),o[n]=e,0==--r&&i(a,o)})})},t.bezier=r,t.bindAll=d,t.browser=N,t.cacheEntryPossiblyAdded=function(t){++yt>lt&&(t.getActor().send("enforceCacheSizeLimit",st),yt=0)},t.clamp=s,t.clearTileCache=function(t){var e=self.caches.delete(at);t&&e.catch(t).then(function(){return t()})},t.clipLine=Vh,t.clone=function(t){var e=new Ws(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=v,t.clone$2=function(t){var e=new Ws(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Nu,t.config=k,t.create=function(){var t=new Ws(16);return Ws!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new Ws(9);return Ws!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new Ws(4);return Ws!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=mi,t.createLayout=$r,t.createStyleLayer=function(t){return"custom"===t.type?new Ec(t):new Ic[t.type](t)},t.cross=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t},t.deepEqual=function t(e,n){if(Array.isArray(e)){if(!Array.isArray(n)||e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(!t(e[i],n[i]))return!1;return!0}if("object"!=typeof e||null===e||null===n)return e===n;if("object"!=typeof n)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var r in e)if(!t(e[r],n[r]))return!1;return!0},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=o,t.emitValidationErrors=er,t.endsWith=y,t.enforceCacheSizeLimit=function(i){pt(),J&&J.then(function(n){n.keys().then(function(t){for(var e=0;e<t.length-i;e++)n.delete(t[e])})})},t.evaluateSizeForFeature=Oh,t.evaluateSizeForZoom=Nh,t.evaluateVariableOffset=ec,t.evented=Er,t.extend=f,t.featureFilter=Ei,t.filterObject=g,t.fromRotation=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Ch,t.getAnchorJustification=nc,t.getArrayBuffer=Pt,t.getDefaultZoomOffset=function(){return Ve.getProjection(k.CRS).zoomOffset},t.getImage=Tt,t.getJSON=function(t,e){return bt(f(t,{type:"json"}),e)},t.getMaxLat=function(){return Ve.getProjection(k.CRS).getMaxLat()},t.getRTLTextPluginStatus=Mr,t.getReferrer=_t,t.getVideo=function(t,e){var n,i,r=self.document.createElement("video");r.muted=!0,r.onloadstart=function(){e(null,r)};for(var o=0;o<t.length;o++){var a=self.document.createElement("source");n=t[o],i=void 0,(i=self.document.createElement("a")).href=n,i.protocol===self.document.location.protocol&&i.host===self.document.location.host||(r.crossOrigin="Anonymous"),a.src=t[o],r.appendChild(a)}return{cancel:function(){}}},t.hs=Ve,t.identity=Zs,t.invert=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],h=e[8],c=e[9],p=e[10],f=e[11],d=e[12],y=e[13],m=e[14],g=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,w=i*l-r*s,b=i*u-o*s,P=r*u-o*l,S=h*y-c*d,C=h*m-p*d,M=h*g-f*d,T=c*m-p*y,A=c*g-f*y,E=p*g-f*m,I=v*E-x*A+_*T+w*M-b*C+P*S;return I?(t[0]=(s*E-l*A+u*T)*(I=1/I),t[1]=(r*A-i*E-o*T)*I,t[2]=(y*P-m*b+g*w)*I,t[3]=(p*b-c*P-f*w)*I,t[4]=(l*M-a*E-u*C)*I,t[5]=(n*E-r*M+o*C)*I,t[6]=(m*_-d*P-g*x)*I,t[7]=(h*P-p*_+f*x)*I,t[8]=(a*A-s*M+u*S)*I,t[9]=(i*M-n*A-o*S)*I,t[10]=(d*b-y*_+g*v)*I,t[11]=(c*_-h*b-f*v)*I,t[12]=(s*C-a*T-l*S)*I,t[13]=(n*T-i*C+r*S)*I,t[14]=(y*x-d*w-m*v)*I,t[15]=(h*w-c*x+p*v)*I,t):null},t.isChar=yr,t.isMapboxURL=q,t.keysDifference=function(t,e){var n=[];for(var i in t)i in e||n.push(i);return n},t.makeRequest=bt,t.mapObject=m,t.mercatorXfromLng=Xc,t.mercatorYfromLat=Hc,t.mercatorZfromAltitude=Yc,t.mul=Ks,t.multiply=Xs,t.mvt=Fe,t.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;return 0<o&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t},t.number=pn,t.offscreenCanvasSupported=mt,t.ortho=function(t,e,n,i,r,o,a){var s=1/(e-n),l=1/(i-r),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(a+o)*u,t[15]=1,t},t.parseGlyphPBF=function(t){return new ju(t).readFields(oh,[])},t.pbf=ju,t.performSymbolLayout=function(O,N,k,z,D,t,F){O.createArrays(),O.tilePixelRatio=Ms/(512*O.overscaling),O.compareText={},O.iconsNeedLinear=!1;var G=O.layers[0].layout,e=O.layers[0]._unevaluatedLayout._values,j={};if("composite"===O.textSizeData.kind){var n=O.textSizeData,i=n.maxZoom;j.compositeTextSizes=[e["text-size"].possiblyEvaluate(new Ar(n.minZoom),F),e["text-size"].possiblyEvaluate(new Ar(i),F)]}if("composite"===O.iconSizeData.kind){var r=O.iconSizeData,o=r.maxZoom;j.compositeIconSizes=[e["icon-size"].possiblyEvaluate(new Ar(r.minZoom),F),e["icon-size"].possiblyEvaluate(new Ar(o),F)]}j.layoutTextSize=e["text-size"].possiblyEvaluate(new Ar(O.zoom+1),F),j.layoutIconSize=e["icon-size"].possiblyEvaluate(new Ar(O.zoom+1),F),j.textMaxSize=e["text-size"].possiblyEvaluate(new Ar(18));for(var V=G.get("text-line-height")*Gu,q="map"===G.get("text-rotation-alignment")&&"point"!==G.get("symbol-placement"),B=G.get("text-keep-upright"),U=G.get("text-size"),a=function(){var t=Z[W],e=G.get("text-font").evaluate(t,{},F).join(","),n=U.evaluate(t,{},F),i=j.layoutTextSize.evaluate(t,{},F),r=j.layoutIconSize.evaluate(t,{},F),o={horizontal:{},vertical:void 0},a=t.text,s=[0,0];if(a){var l=a.toString(),u=G.get("text-letter-spacing").evaluate(t,{},F)*Gu,h=function(){for(var t=0,e=l;t<e.length;t+=1)if(n=e[t].charCodeAt(0),yr.Arabic(n)||yr["Arabic Supplement"](n)||yr["Arabic Extended-A"](n)||yr["Arabic Presentation Forms-A"](n)||yr["Arabic Presentation Forms-B"](n))return!1;var n;return!0}()?u:0,c=G.get("text-anchor").evaluate(t,{},F),p=G.get("text-variable-anchor");if(!p){var f=G.get("text-radial-offset").evaluate(t,{},F);s=f?ec(c,[f*Gu,tc]):G.get("text-offset").evaluate(t,{},F).map(function(t){return t*Gu})}var d=q?"center":G.get("text-justify").evaluate(t,{},F),y=G.get("symbol-placement"),m="point"===y?G.get("text-max-width").evaluate(t,{},F)*Gu:0,g=function(){O.allowVerticalPlacement&&mr(l)&&(o.vertical=vh(a,N,k,D,e,m,V,c,"left",h,s,yh.vertical,!0,y,i,n))};if(!q&&p){for(var v="auto"===d?p.map(function(t){return nc(t)}):[d],x=!1,_=0;_<v.length;_++){var w=v[_];if(!o.horizontal[w])if(x)o.horizontal[w]=o.horizontal[0];else{var b=vh(a,N,k,D,e,m,V,"center",w,h,s,yh.horizontal,!1,y,i,n);b&&(x=1===(o.horizontal[w]=b).positionedLines.length)}}g()}else{"auto"===d&&(d=nc(c));var P=vh(a,N,k,D,e,m,V,c,d,h,s,yh.horizontal,!1,y,i,n);P&&(o.horizontal[d]=P),g(),mr(l)&&q&&B&&(o.vertical=vh(a,N,k,D,e,m,V,c,d,h,s,yh.vertical,!1,y,i,n))}}var S,C,M,T,A,E=void 0,I=!1;if(t.icon&&t.icon.name){var L=z[t.icon.name];L&&(S=D[t.icon.name],C=G.get("icon-offset").evaluate(t,{},F),M=Ch(G.get("icon-anchor").evaluate(t,{},F)),T=C[0]-S.displaySize[0]*M.horizontalAlign,A=C[1]-S.displaySize[1]*M.verticalAlign,E={image:S,top:A,bottom:A+S.displaySize[1],left:T,right:T+S.displaySize[0]},I=L.sdf,void 0===O.sdfIcons?O.sdfIcons=L.sdf:O.sdfIcons!==L.sdf&&ct("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),L.pixelRatio!==O.pixelRatio?O.iconsNeedLinear=!0:0!==G.get("icon-rotate").constantOr(1)&&(O.iconsNeedLinear=!0))}var R=ac(o.horizontal)||o.vertical;O.iconsInText=!!R&&R.iconsInText,(R||E)&&function(n,i,r,o,a,s,l,t,u,h,c){var e=s.textMaxSize.evaluate(i,{});void 0===e&&(e=l);var p,f,d,y,m,g,v,x,_,w,b,P,S,C,M=n.layers[0].layout,T=M.get("icon-offset").evaluate(i,{},c),A=ac(r.horizontal),E=l/24,I=n.tilePixelRatio*E,L=n.tilePixelRatio*e/24,R=n.tilePixelRatio*t,O=n.tilePixelRatio*M.get("symbol-spacing"),N=M.get("text-padding")*n.tilePixelRatio,k=M.get("icon-padding")*n.tilePixelRatio,z=M.get("text-max-angle")/180*Math.PI,D="map"===M.get("text-rotation-alignment")&&"point"!==M.get("symbol-placement"),F="map"===M.get("icon-rotation-alignment")&&"point"!==M.get("symbol-placement"),G=M.get("symbol-placement"),j=O/2,V=M.get("icon-text-fit");function q(t,e){e.x<0||e.x>=Ms||e.y<0||e.y>=Ms||function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S){var C,M,T,A,E,I=t.addToLineVertexArray(e,n),L=0,R=0,O=0,N=0,k=-1,z=-1,D={},F=qa(""),G=0,j=0;if(j=void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(G=(C=s.layout.get("text-offset").evaluate(_,{},P).map(function(t){return t*Gu}))[0],C[1]):(G=s.layout.get("text-radial-offset").evaluate(_,{},P)*Gu,tc),t.allowVerticalPlacement&&i.vertical){var V=s.layout.get("text-rotate").evaluate(_,{},P)+90;A=new Hh(l,e,u,h,c,i.vertical,p,f,d,V),a&&(E=new Hh(l,e,u,h,c,a,m,g,d,V))}if(r){var q=s.layout.get("icon-rotate").evaluate(_,{}),B="none"!==s.layout.get("icon-text-fit"),U=Bh(r,q,b,B),W=a?Bh(a,q,b,B):void 0;T=new Hh(l,e,u,h,c,r,m,g,!1,q),L=4*U.length;var Z=t.iconSizeData,X=null;"source"===Z.kind?(X=[Lh*s.layout.get("icon-size").evaluate(_,{})])[0]>rc&&ct(t.layerIds[0]+': Value for "icon-size" is >= '+ic+'. Reduce your "icon-size".'):"composite"===Z.kind&&((X=[Lh*w.compositeIconSizes[0].evaluate(_,{},P),Lh*w.compositeIconSizes[1].evaluate(_,{},P)])[0]>rc||X[1]>rc)&&ct(t.layerIds[0]+': Value for "icon-size" is >= '+ic+'. Reduce your "icon-size".'),t.addSymbols(t.icon,U,X,x,v,_,!1,e,I.lineStartIndex,I.lineLength,-1,P),k=t.icon.placedSymbolArray.length-1,W&&(R=4*W.length,t.addSymbols(t.icon,W,X,x,v,_,yh.vertical,e,I.lineStartIndex,I.lineLength,-1,P),z=t.icon.placedSymbolArray.length-1)}for(var H in i.horizontal){var Y=i.horizontal[H];if(!M){F=qa(Y.text);var K=s.layout.get("text-rotate").evaluate(_,{},P);M=new Hh(l,e,u,h,c,Y,p,f,d,K)}var J=1===Y.positionedLines.length;if(O+=oc(t,e,Y,o,s,d,_,y,I,i.vertical?yh.horizontal:yh.horizontalOnly,J?Object.keys(i.horizontal):[H],D,k,w,P),J)break}function Q(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e}i.vertical&&(N+=oc(t,e,i.vertical,o,s,d,_,y,I,yh.vertical,["vertical"],D,z,w,P));var $=M?M.boxStartIndex:t.collisionBoxArray.length,tt=M?M.boxEndIndex:t.collisionBoxArray.length,et=A?A.boxStartIndex:t.collisionBoxArray.length,nt=A?A.boxEndIndex:t.collisionBoxArray.length,it=T?T.boxStartIndex:t.collisionBoxArray.length,rt=T?T.boxEndIndex:t.collisionBoxArray.length,ot=E?E.boxStartIndex:t.collisionBoxArray.length,at=E?E.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=-1<(st=Q(E,st=Q(T,st=Q(A,st=Q(M,st)))))?1:0;lt&&(st*=S/Gu),t.glyphOffsetArray.length>=yc.MAX_GLYPHS&&ct("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,_.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,0<=D.right?D.right:-1,0<=D.center?D.center:-1,0<=D.left?D.left:-1,D.vertical||-1,k,z,F,$,tt,et,nt,it,rt,ot,at,u,O,N,L,R,lt,0,p,G,j,st)}(n,e,t,r,o,a,p,n.layers[0],n.collisionBoxArray,i.index,i.sourceLayerIndex,n.index,I,N,D,u,R,k,F,T,i,s,h,c,l)}if(o&&"none"!==V&&(n.allowVerticalPlacement&&r.vertical&&(p=Th(o,r.vertical,V,M.get("icon-text-fit-padding"),T,E)),A&&(o=Th(o,A,V,M.get("icon-text-fit-padding"),T,E))),"line"===G)for(var B=0,U=Vh(i.geometry,0,0,Ms,Ms);B<U.length;B+=1)for(var W=U[B],Z=0,X=(f=W,d=O,y=z,m=r.vertical||A,g=o,v=24,x=L,_=n.overscaling,w=Ms,b=Fh(m,v,x),P=Gh(m,g),S=P*x,C=0===f[0].x||f[0].x===w||0===f[0].y||f[0].y===w,d-S<d/4&&(d=S+d/4),function t(e,n,i,r,o,a,s,l,u){for(var h=a/2,c=Dh(e),p=0,f=n-i,d=[],y=0;y<e.length-1;y++){for(var m=e[y],g=e[y+1],v=m.dist(g),x=g.angleTo(m);f+i<p+v;){var _=((f+=i)-p)/v,w=pn(m.x,g.x,_),b=pn(m.y,g.y,_);if(0<=w&&w<u&&0<=b&&b<u&&0<=f-h&&f+h<=c){var P=new Eh(w,b,x,y);P._round(),r&&!zh(e,P,a,r,o)||d.push(P)}}p+=v}return l||d.length||s||(d=t(e,p/2,i,r,o,a,s,!0,u)),d}(f,C?d/2*_%d:(P/2+2*v)*x*_%d,d,b,y,S,C,!1,w));Z<X.length;Z+=1){var H=X[Z];A&&sc(n,A.text,j,H)||q(W,H)}else if("line-center"===G)for(var Y=0,K=i.geometry;Y<K.length;Y+=1){var J=K[Y];if(1<J.length){var Q=jh(J,z,r.vertical||A,o,24,L);Q&&q(J,Q)}}else if("Polygon"===i.type)for(var $=0,tt=Yl(i.geometry,0);$<tt.length;$+=1){var et=tt[$],nt=Jh(et,16);q(et[0],new Eh(nt.x,nt.y,0))}else if("LineString"===i.type)for(var it=0,rt=i.geometry;it<rt.length;it+=1){var ot=rt[it];q(ot,new Eh(ot[0].x,ot[0].y,0))}else if("Point"===i.type)for(var at=0,st=i.geometry;at<st.length;at+=1)for(var lt=0,ut=st[at];lt<ut.length;lt+=1){var ht=ut[lt];q([ht],new Eh(ht.x,ht.y,0))}}(O,t,o,E,z,j,i,r,s,I,F)},W=0,Z=O.features;W<Z.length;W+=1)a();t&&O.generateCollisionDebugBuffers()},t.perspective=function(t,e,n,i,r){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(t[10]=(r+i)*(o=1/(i-r)),t[14]=2*r*i*o):(t[10]=-1,t[14]=-2*i),t},t.pick=function(t,e){for(var n={},i=0;i<e.length;i++){var r=e[i];r in t&&(n[r]=t[r])}return n},t.plugin=Ir,t.polygonIntersectsPolygon=Ls,t.postMapLoadEvent=ot,t.postTurnstileEvent=it,t.potpack=uh,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.register=lr,t.registerForPluginStateChange=function(t){return t({pluginStatus:Pr,pluginURL:Sr}),Er.on("pluginStateChange",t),t},t.rotate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+o*s,t[1]=r*l+a*s,t[2]=i*-s+o*l,t[3]=r*-s+a*l,t},t.rotateX=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],p=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*r+u*i,t[5]=a*r+h*i,t[6]=s*r+c*i,t[7]=l*r+p*i,t[8]=u*r-o*i,t[9]=h*r-a*i,t[10]=c*r-s*i,t[11]=p*r-l*i,t},t.rotateZ=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],h=e[5],c=e[6],p=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r+u*i,t[1]=a*r+h*i,t[2]=s*r+c*i,t[3]=l*r+p*i,t[4]=u*r-o*i,t[5]=h*r-a*i,t[6]=c*r-s*i,t[7]=p*r-l*i,t},t.scale=function(t,e,n){var i=n[0],r=n[1],o=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},t.scale$2=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},t.setCacheLimits=function(t,e){st=t,lt=e},t.setRTLTextPlugin=function(t,e,n){if(void 0===n&&(n=!1),"deferred"===Pr||"loading"===Pr||"loaded"===Pr)throw new Error("setRTLTextPlugin cannot be called multiple times.");Sr=N.resolveURL(t),Pr="deferred",br=e,Cr(),n||Tr()},t.sphericalToCartesian=function(t){var e=t[0],n=t[1],i=t[2];return n+=90,n*=Math.PI/180,i*=Math.PI/180,{x:e*Math.cos(n)*Math.sin(i),y:e*Math.sin(n)*Math.sin(i),z:e*Math.cos(i)}},t.sqrLen=function(t){var e=t[0],n=t[1];return e*e+n*n},t.styleSpec=kt,t.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t},t.symbolSize=kh,t.transformMat3=function(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t},t.transformMat4=Js,t.translate=function(t,e,n){var i,r,o,a,s,l,u,h,c,p,f,d,y=n[0],m=n[1],g=n[2];return e===t?(t[12]=e[0]*y+e[4]*m+e[8]*g+e[12],t[13]=e[1]*y+e[5]*m+e[9]*g+e[13],t[14]=e[2]*y+e[6]*m+e[10]*g+e[14],t[15]=e[3]*y+e[7]*m+e[11]*g+e[15]):(r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],h=e[7],c=e[8],p=e[9],f=e[10],d=e[11],t[0]=i=e[0],t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=h,t[8]=c,t[9]=p,t[10]=f,t[11]=d,t[12]=i*y+s*m+c*g+e[12],t[13]=r*y+l*m+p*g+e[13],t[14]=o*y+u*m+f*g+e[14],t[15]=a*y+h*m+d*g+e[15]),t},t.triggerPluginCompletionEvent=wr,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],n=t.id;return void 0===n&&e.push({message:"layers."+n+': missing required property "id"'}),void 0===t.render&&e.push({message:"layers."+n+': missing required method "render"'}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:"layers."+n+': property "renderingMode" must be either "2d" or "3d"'}),e},t.validateLight=Qi,t.validateStyle=Ji,t.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},t.vectorTile=Fe,t.version="1.10.1",t.warnOnce=ct,t.webpSupported=z,t.window=self,t.wrap=l}),t(["./shared"],function(I){function l(t){var e=typeof t;if("number"==e||"boolean"==e||"string"==e||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n="[",i=0,r=t;i<r.length;i+=1)n+=l(r[i])+",";return n+"]"}for(var o=Object.keys(t).sort(),a="{",s=0;s<o.length;s++)a+=JSON.stringify(o[s])+":"+l(t[o[s]])+",";return a+"}"}function v(t){for(var e="",n=0,i=I.refProperties;n<i.length;n+=1)e+="/"+l(t[i[n]]);return e}function n(t){this.keyCache={},t&&this.replace(t)}function L(t){var e={},n=[];for(var i in t){var r=t[i],o=e[i]={};for(var a in r){var s=r[+a];if(s&&0!==s.bitmap.width&&0!==s.bitmap.height){var l={x:0,y:0,w:s.bitmap.width+2,h:s.bitmap.height+2};n.push(l),o[a]={rect:l,metrics:s.metrics}}}}var u=I.potpack(n),h=new I.AlphaImage({width:u.w||1,height:u.h||1});for(var c in t){var p=t[c];for(var f in p){var d=p[+f];if(d&&0!==d.bitmap.width&&0!==d.bitmap.height){var y=e[c][f].rect;I.AlphaImage.copy(d.bitmap,h,{x:0,y:0},{x:y.x+1,y:y.y+1},d.bitmap)}}}this.image=h,this.positions=e}function e(t){this.tileID=new I.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId}function R(t,e,n){for(var i=new I.EvaluationParameters(e),r=0,o=t;r<o.length;r+=1)o[r].recalculate(i,n)}function r(t,r){var e=I.getArrayBuffer(t.request,function(t,e,n,i){t?r(t):e&&r(null,{vectorTile:new I.vectorTile.VectorTile(new I.pbf(e)),rawData:e,cacheControl:n,expires:i})});return function(){e.cancel(),r()}}function i(t,e,n,i){this.actor=t,this.layerIndex=e,this.availableImages=n,this.loadVectorData=i||r,this.loading={},this.loaded={}}function o(){this.loaded={}}n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(t,e){for(var n=this,i=0,r=t;i<r.length;i+=1){var o=r[i];this._layerConfigs[o.id]=o;var a=this._layers[o.id]=I.createStyleLayer(o);a._featureFilter=I.featureFilter(a.filter),this.keyCache[o.id]&&delete this.keyCache[o.id]}for(var s=0,l=e;s<l.length;s+=1){var u=l[s];delete this.keyCache[u],delete this._layerConfigs[u],delete this._layers[u]}this.familiesBySource={};for(var h=0,c=function(t,e){for(var n={},i=0;i<t.length;i++){var r=e&&e[t[i].id]||v(t[i]);e&&(e[t[i].id]=r);var o=n[r];(o=o||(n[r]=[])).push(t[i])}var a=[];for(var s in n)a.push(n[s]);return a}(I.values(this._layerConfigs),this.keyCache);h<c.length;h+=1){var p=c[h].map(function(t){return n._layers[t.id]}),f=p[0];if("none"!==f.visibility){var d=f.source||"",y=this.familiesBySource[d];y=y||(this.familiesBySource[d]={});var m=f.sourceLayer||"_geojsonTileLayer",g=y[m];(g=g||(y[m]=[])).push(p)}}},I.register("GlyphAtlas",L),e.prototype.parse=function(t,e,r,n,o){var i=this;this.status="parsing",this.data=t,this.collisionBoxArray=new I.CollisionBoxArray;var a=new I.DictionaryCoder(Object.keys(t.layers).sort()),s=new I.FeatureIndex(this.tileID,this.promoteId);s.bucketLayerIDs=[];var l,u,h,c,p={},f={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},d=e.familiesBySource[this.source];for(var y in d){var m=t.layers[y];if(m){1===m.version&&I.warnOnce('Vector tile source "'+this.source+'" layer "'+y+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var g=a.encode(y),v=[],x=0;x<m.length;x++){var _=m.feature(x),w=s.getId(_,y);v.push({feature:_,id:w,index:x,sourceLayerIndex:g})}for(var b=0,P=d[y];b<P.length;b+=1){var S=P[b],C=S[0];C.minzoom&&this.zoom<Math.floor(C.minzoom)||C.maxzoom&&this.zoom>=C.maxzoom||"none"!==C.visibility&&(R(S,this.zoom,r),(p[C.id]=C.createBucket({index:s.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:g,sourceID:this.source})).populate(v,f,this.tileID.canonical),s.bucketLayerIDs.push(S.map(function(t){return t.id})))}}}var M=I.mapObject(f.glyphDependencies,function(t){return Object.keys(t).map(Number)});Object.keys(M).length?n.send("getGlyphs",{uid:this.uid,stacks:M},function(t,e){l||(l=t,u=e,E.call(i))}):u={};var T=Object.keys(f.iconDependencies);T.length?n.send("getImages",{icons:T,source:this.source,tileID:this.tileID,type:"icons"},function(t,e){l||(l=t,h=e,E.call(i))}):h={};var A=Object.keys(f.patternDependencies);function E(){if(l)return o(l);if(u&&h&&c){var t=new L(u),e=new I.ImageAtlas(h,c);for(var n in p){var i=p[n];i instanceof I.SymbolBucket?(R(i.layers,this.zoom,r),I.performSymbolLayout(i,u,t.positions,h,e.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):i.hasPattern&&(i instanceof I.LineBucket||i instanceof I.FillBucket||i instanceof I.FillExtrusionBucket)&&(R(i.layers,this.zoom,r),i.addFeatures(f,this.tileID.canonical,e.patternPositions))}this.status="done",o(null,{buckets:I.values(p).filter(function(t){return!t.isEmpty()}),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:e,glyphMap:this.returnDependencies?u:null,iconMap:this.returnDependencies?h:null,glyphPositions:this.returnDependencies?t.positions:null})}}A.length?n.send("getImages",{icons:A,source:this.source,tileID:this.tileID,type:"patterns"},function(t,e){l||(l=t,c=e,E.call(i))}):c={},E.call(this)},i.prototype.loadTile=function(t,a){var s=this,l=t.uid;this.loading||(this.loading={});var u=!!(t&&t.request&&t.request.collectResourceTiming)&&new I.RequestPerformance(t.request),h=this.loading[l]=new e(t);h.abort=this.loadVectorData(t,function(t,e){if(delete s.loading[l],t||!e)return h.status="done",s.loaded[l]=h,a(t);var n=e.rawData,i={};e.expires&&(i.expires=e.expires),e.cacheControl&&(i.cacheControl=e.cacheControl);var r={};if(u){var o=u.finish();o&&(r.resourceTiming=JSON.parse(JSON.stringify(o)))}h.vectorTile=e.vectorTile,h.parse(e.vectorTile,s.layerIndex,s.availableImages,s.actor,function(t,e){if(t||!e)return a(t);a(null,I.extend({rawTileData:n.slice(0)},e,i,r))}),s.loaded=s.loaded||{},s.loaded[l]=h})},i.prototype.reloadTile=function(t,i){var r=this,e=this.loaded,n=t.uid,o=this;if(e&&e[n]){var a=e[n];a.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,e){var n=a.reloadCallback;n&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,r.availableImages,o.actor,n)),i(t,e)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},i.prototype.abortTile=function(t,e){var n=this.loading,i=t.uid;n&&n[i]&&n[i].abort&&(n[i].abort(),delete n[i]),e()},i.prototype.removeTile=function(t,e){var n=this.loaded,i=t.uid;n&&n[i]&&delete n[i],e()};var s=I.window.ImageBitmap;function u(t,e){if(0!==t.length){a(t[0],e);for(var n=1;n<t.length;n++)a(t[n],!e)}}function a(t,e){for(var n=0,i=0,r=t.length,o=r-1;i<r;o=i++)n+=(t[i][0]-t[o][0])*(t[o][1]+t[i][1]);0<=n!=!!e&&t.reverse()}function h(t){this._feature=t,this.extent=I.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}o.prototype.loadTile=function(t,e){var n=t.uid,i=t.encoding,r=t.rawImageData,o=s&&r instanceof s?this.getImageData(r):r,a=new I.DEMData(n,o,i);this.loaded=this.loaded||{},e(null,this.loaded[n]=a)},o.prototype.getImageData=function(t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);var e=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new I.RGBAImage({width:e.width,height:e.height},e.data)},o.prototype.removeTile=function(t){var e=this.loaded,n=t.uid;e&&e[n]&&delete e[n]};var c=I.vectorTile.VectorTileFeature.prototype.toGeoJSON;h.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],e=0,n=this._feature.geometry;e<n.length;e+=1){var i=n[e];t.push([new I.Point$1(i[0],i[1])])}return t}for(var r=[],o=0,a=this._feature.geometry;o<a.length;o+=1){for(var s=[],l=0,u=a[o];l<u.length;l+=1){var h=u[l];s.push(new I.Point$1(h[0],h[1]))}r.push(s)}return r},h.prototype.toGeoJSON=function(t,e,n){return c.call(this,t,e,n)};var p=function(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=I.EXTENT,this.length=t.length,this._features=t};p.prototype.feature=function(t){return new h(this._features[t])};var t=I.vectorTile.VectorTileFeature,f=d;function d(t,e){this.options=e||{},this.features=t,this.length=t.length}function y(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}d.prototype.feature=function(t){return new y(this.features[t],this.options.extent)},y.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var n=t[e],i=[],r=0;r<n.length;r++)i.push(new I.Point$1(n[r][0],n[r][1]));this.geometry.push(i)}return this.geometry},y.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,n=-1/0,i=1/0,r=-1/0,o=0;o<t.length;o++)for(var a=t[o],s=0;s<a.length;s++){var l=a[s];e=Math.min(e,l.x),n=Math.max(n,l.x),i=Math.min(i,l.y),r=Math.max(r,l.y)}return[e,i,n,r]},y.prototype.toGeoJSON=t.prototype.toGeoJSON;var m=x,g=f;function x(t){var e=new I.pbf;return function(t,e){for(var n in t.layers)e.writeMessage(3,_,t.layers[n])}(t,e),e.finish()}function _(t,e){var n;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var i={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<t.length;n++)i.feature=t.feature(n),e.writeMessage(2,w,i);var r=i.keys;for(n=0;n<r.length;n++)e.writeStringField(3,r[n]);var o=i.values;for(n=0;n<o.length;n++)e.writeMessage(4,M,o[n])}function w(t,e){var n=t.feature;void 0!==n.id&&e.writeVarintField(1,n.id),e.writeMessage(2,b,t),e.writeVarintField(3,n.type),e.writeMessage(4,C,n)}function b(t,e){var n=t.feature,i=t.keys,r=t.values,o=t.keycache,a=t.valuecache;for(var s in n.properties){var l=o[s];void 0===l&&(i.push(s),o[s]=l=i.length-1),e.writeVarint(l);var u=n.properties[s],h=typeof u;"string"!=h&&"boolean"!=h&&"number"!=h&&(u=JSON.stringify(u));var c=h+":"+u,p=a[c];void 0===p&&(r.push(u),a[c]=p=r.length-1),e.writeVarint(p)}}function P(t,e){return(e<<3)+(7&t)}function S(t){return t<<1^t>>31}function C(t,e){for(var n=t.loadGeometry(),i=t.type,r=0,o=0,a=n.length,s=0;s<a;s++){var l=n[s],u=1;1===i&&(u=l.length),e.writeVarint(P(1,u));for(var h=3===i?l.length-1:l.length,c=0;c<h;c++){1===c&&1!==i&&e.writeVarint(P(2,h-1));var p=l[c].x-r,f=l[c].y-o;e.writeVarint(S(p)),e.writeVarint(S(f)),r+=p,o+=f}3===i&&e.writeVarint(P(7,1))}}function M(t,e){var n=typeof t;"string"==n?e.writeStringField(1,t):"boolean"==n?e.writeBooleanField(7,t):"number"==n&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function T(t,e,n,i){A(t,n,i),A(e,2*n,2*i),A(e,2*n+1,2*i+1)}function A(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function E(t,e,n,i){var r=t-n,o=e-i;return r*r+o*o}function O(t){return t[0]}function N(t){return t[1]}function k(t,e,n,i,r){void 0===e&&(e=O),void 0===n&&(n=N),void 0===i&&(i=64),void 0===r&&(r=Float64Array),this.nodeSize=i;for(var o=(this.points=t).length<65536?Uint16Array:Uint32Array,a=this.ids=new o(t.length),s=this.coords=new r(2*t.length),l=0;l<t.length;l++)s[2*(a[l]=l)]=e(t[l]),s[2*l+1]=n(t[l]);!function t(e,n,i,r,o,a){if(!(o-r<=i)){var s=r+o>>1;!function t(e,n,i,r,o,a){for(;r<o;){if(600<o-r){var s=o-r+1,l=i-r+1,u=Math.log(s),h=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*h*(s-h)/s)*(l-s/2<0?-1:1);t(e,n,i,Math.max(r,Math.floor(i-l*h/s+c)),Math.min(o,Math.floor(i+(s-l)*h/s+c)),a)}var p=n[2*i+a],f=r,d=o;for(T(e,n,r,i),n[2*o+a]>p&&T(e,n,r,o);f<d;){for(T(e,n,f,d),f++,d--;n[2*f+a]<p;)f++;for(;n[2*d+a]>p;)d--}n[2*r+a]===p?T(e,n,r,d):T(e,n,++d,o),d<=i&&(r=d+1),i<=d&&(o=d-1)}}(e,n,s,r,o,a%2),t(e,n,i,r,s-1,a+1),t(e,n,i,1+s,o,a+1)}}(a,s,i,0,a.length-1,0)}function z(t){F=t.crs,this.options=B(Object.create(D),t),this.trees=new Array(this.options.maxZoom+1)}m.fromVectorTileJs=x,m.fromGeojsonVt=function(t,e){e=e||{};var n={};for(var i in t)n[i]=new f(t[i].features,e),n[i].name=i,n[i].version=e.version,n[i].extent=e.extent;return x({layers:n})},m.GeoJSONWrapper=g,k.prototype.range=function(t,e,n,i){return function(t,e,n,i,r,o,a){for(var s,l,u=[0,t.length-1,0],h=[];u.length;){var c=u.pop(),p=u.pop(),f=u.pop();if(p-f<=a)for(var d=f;d<=p;d++)l=e[2*d+1],(s=e[2*d])>=n&&s<=r&&i<=l&&l<=o&&h.push(t[d]);else{var y=Math.floor((f+p)/2);l=e[2*y+1],(s=e[2*y])>=n&&s<=r&&i<=l&&l<=o&&h.push(t[y]);var m=(c+1)%2;(0===c?n<=s:i<=l)&&(u.push(f),u.push(y-1),u.push(m)),(0===c?s<=r:l<=o)&&(u.push(y+1),u.push(p),u.push(m))}}return h}(this.ids,this.coords,t,e,n,i,this.nodeSize)};var D={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:(k.prototype.within=function(t,e,n){return function(t,e,n,i,r,o){for(var a=[0,t.length-1,0],s=[],l=r*r;a.length;){var u=a.pop(),h=a.pop(),c=a.pop();if(h-c<=o)for(var p=c;p<=h;p++)E(e[2*p],e[2*p+1],n,i)<=l&&s.push(t[p]);else{var f=Math.floor((c+h)/2),d=e[2*f],y=e[2*f+1];E(d,y,n,i)<=l&&s.push(t[f]);var m=(u+1)%2;(0===u?n-r<=d:i-r<=y)&&(a.push(c),a.push(f-1),a.push(m)),(0===u?d<=n+r:y<=i+r)&&(a.push(f+1),a.push(h),a.push(m))}}return s}(this.ids,this.coords,t,e,n,this.nodeSize)},!1),generateId:!1,reduce:null,map:function(t){return t}},F="";function G(t){return{type:"Feature",id:t.id,properties:j(t),geometry:{type:"Point",coordinates:[(n=t.x,360*(n-.5)),(e=t.y,I.hs.getProjection(F).yFromLat(e))]}};var e,n}function j(t){var e=t.numPoints,n=1e4<=e?Math.round(e/1e3)+"k":1e3<=e?Math.round(e/100)/10+"k":e;return B(B({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function V(t){return t/360+.5}function q(t){return I.hs.getProjection(F).projectY(t)}function B(t,e){for(var n in e)t[n]=e[n];return t}function U(t){return t.x}function W(t){return t.y}function Z(t,e,n,i,r,o){var a=r-n,s=o-i;if(0!==a||0!==s){var l=((t-n)*a+(e-i)*s)/(a*a+s*s);1<l?(n=r,i=o):0<l&&(n+=a*l,i+=s*l)}return(a=t-n)*a+(s=e-i)*s}function X(t,e,n,i){var r={id:void 0===t?null:t,type:e,geometry:n,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)H(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var i=0;i<e.length;i++)H(t,e[i]);else if("MultiPolygon"===n)for(i=0;i<e.length;i++)for(var r=0;r<e[i].length;r++)H(t,e[i][r])}(r),r}function H(t,e){for(var n=0;n<e.length;n+=3)t.minX=Math.min(t.minX,e[n]),t.minY=Math.min(t.minY,e[n+1]),t.maxX=Math.max(t.maxX,e[n]),t.maxY=Math.max(t.maxY,e[n+1])}z.prototype.load=function(t){var e=this.options,n=e.log,i=e.minZoom,r=e.maxZoom,o=e.nodeSize;n&&console.time("total time");var a,s,l,u,h="prepare "+t.length+" points";n&&console.time(h),this.points=t;for(var c=[],p=0;p<t.length;p++)t[p].geometry&&c.push((a=t[p],s=p,l=a.geometry.coordinates,u=l[1],{x:V(l[0]),y:q(u),zoom:1/0,index:s,parentId:-1}));this.trees[r+1]=new k(c,U,W,o,Float32Array),n&&console.timeEnd(h);for(var f=r;i<=f;f--){var d=+Date.now();c=this._cluster(c,f),this.trees[f]=new k(c,U,W,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",f,c.length,+Date.now()-d)}return n&&console.timeEnd("total time"),this},z.prototype.getClusters=function(t,e){var n=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),r=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(360<=t[2]-t[0])n=-180,r=180;else if(r<n){var a=this.getClusters([n,i,180,o],e),s=this.getClusters([-180,i,r,o],e);return a.concat(s)}for(var l=this.trees[this._limitZoom(e)],u=[],h=0,c=l.range(V(n),q(o),V(r),q(i));h<c.length;h+=1){var p=l.points[c[h]];u.push(p.numPoints?G(p):this.points[p.index])}return u},z.prototype.getChildren=function(t){var e=this._getOriginId(t),n=this._getOriginZoom(t),i="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(i);var o=r.points[e];if(!o)throw new Error(i);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],l=0,u=r.within(o.x,o.y,a);l<u.length;l+=1){var h=r.points[u[l]];h.parentId===t&&s.push(h.numPoints?G(h):this.points[h.index])}if(0===s.length)throw new Error(i);return s},z.prototype.getLeaves=function(t,e,n){var i=[];return this._appendLeaves(i,t,e=e||10,n=n||0,0),i},z.prototype.getTile=function(t,e,n){var i=this.trees[this._limitZoom(t)],r=Math.pow(2,t),o=this.options,a=o.radius/o.extent,s=(n-a)/r,l=(n+1+a)/r,u={features:[]};return this._addTileFeatures(i.range((e-a)/r,s,(e+1+a)/r,l),i.points,e,n,r,u),0===e&&this._addTileFeatures(i.range(1-a/r,s,1,l),i.points,r,n,r,u),e===r-1&&this._addTileFeatures(i.range(0,s,a/r,l),i.points,-1,n,r,u),u.features.length?u:null},z.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e},z.prototype._appendLeaves=function(t,e,n,i,r){for(var o=0,a=this.getChildren(e);o<a.length;o+=1){var s=a[o],l=s.properties;if(l&&l.cluster?r+l.point_count<=i?r+=l.point_count:r=this._appendLeaves(t,l.cluster_id,n,i,r):r<i?r++:t.push(s),t.length===n)break}return r},z.prototype._addTileFeatures=function(t,e,n,i,r,o){for(var a=0,s=t;a<s.length;a+=1){var l=e[s[a]],u=l.numPoints,h={type:1,geometry:[[Math.round(this.options.extent*(l.x*r-n)),Math.round(this.options.extent*(l.y*r-i))]],tags:u?j(l):this.points[l.index].properties},c=void 0;u?c=l.id:this.options.generateId?c=l.index:this.points[l.index].id&&(c=this.points[l.index].id),void 0!==c&&(h.id=c),o.features.push(h)}},z.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},z.prototype._cluster=function(t,e){for(var n=[],i=this.options,r=i.reduce,o=i.radius/(i.extent*Math.pow(2,e)),a=0;a<t.length;a++){var s=t[a];if(!(s.zoom<=e)){s.zoom=e;for(var l=this.trees[e+1],u=l.within(s.x,s.y,o),h=s.numPoints||1,c=s.x*h,p=s.y*h,f=r&&1<h?this._map(s,!0):null,d=(a<<5)+(e+1)+this.points.length,y=0,m=u;y<m.length;y+=1){var g=l.points[m[y]];if(!(g.zoom<=e)){g.zoom=e;var v=g.numPoints||1;c+=g.x*v,p+=g.y*v,h+=v,g.parentId=d,r&&r(f=f||this._map(s,!0),this._map(g))}}1===h?n.push(s):(s.parentId=d,n.push({x:c/h,y:p/h,zoom:1/0,id:d,parentId:-1,numPoints:h,properties:f}))}}return n},z.prototype._getOriginId=function(t){return t-this.points.length>>5},z.prototype._getOriginZoom=function(t){return(t-this.points.length)%32};var Y="";function K(t,e,n,i){if(e.geometry){var r=e.geometry.coordinates,o=e.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],l=e.id;if(n.promoteId?l=e.properties[n.promoteId]:n.generateId&&(l=i||0),"Point"===o)J(r,s);else if("MultiPoint"===o)for(var u=0;u<r.length;u++)J(r[u],s);else if("LineString"===o)Q(r,s,a,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(u=0;u<r.length;u++)Q(r[u],s=[],a,!1),t.push(X(l,"LineString",s,e.properties));return}$(r,s,a,!1)}else if("Polygon"===o)$(r,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"!==o)throw new Error("Input data is not a valid GeoJSON object.");for(u=0;u<e.geometry.geometries.length;u++)K(t,{id:l,geometry:e.geometry.geometries[u],properties:e.properties},n,i);return}for(u=0;u<r.length;u++){var h=[];$(r[u],h,a,!0),s.push(h)}}t.push(X(l,o,s,e.properties))}}function J(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function Q(t,e,n,i){for(var r,o,a=0,s=0;s<t.length;s++){var l=tt(t[s][0]),u=et(t[s][1]);e.push(l),e.push(u),e.push(0),0<s&&(a+=i?(r*u-l*o)/2:Math.sqrt(Math.pow(l-r,2)+Math.pow(u-o,2))),r=l,o=u}var h=e.length-3;e[2]=1,function t(e,n,i,r){for(var o,a=r,s=i-n>>1,l=i-n,u=e[n],h=e[n+1],c=e[i],p=e[i+1],f=n+3;f<i;f+=3){var d=Z(e[f],e[f+1],u,h,c,p);if(a<d)o=f,a=d;else if(d===a){var y=Math.abs(f-s);y<l&&(o=f,l=y)}}r<a&&(3<o-n&&t(e,n,o,r),e[o+2]=a,3<i-o&&t(e,o,i,r))}(e,0,h,n),e[2+h]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function $(t,e,n,i){for(var r=0;r<t.length;r++){var o=[];Q(t[r],o,n,i),e.push(o)}}function tt(t){return t/360+.5}function et(t){return I.hs.getProjection(Y).projectY(t)}function nt(t,e,n,i,r,o,a,s){if(i/=e,o>=(n/=e)&&a<i)return t;if(a<n||i<=o)return null;for(var l=[],u=0;u<t.length;u++){var h=t[u],c=h.geometry,p=h.type,f=0===r?h.minX:h.minY,d=0===r?h.maxX:h.maxY;if(n<=f&&d<i)l.push(h);else if(!(d<n||i<=f)){var y=[];if("Point"===p||"MultiPoint"===p)it(c,y,n,i,r);else if("LineString"===p)rt(c,y,n,i,r,!1,s.lineMetrics);else if("MultiLineString"===p)at(c,y,n,i,r,!1);else if("Polygon"===p)at(c,y,n,i,r,!0);else if("MultiPolygon"===p)for(var m=0;m<c.length;m++){var g=[];at(c[m],g,n,i,r,!0),g.length&&y.push(g)}if(y.length){if(s.lineMetrics&&"LineString"===p){for(m=0;m<y.length;m++)l.push(X(h.id,p,y[m],h.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===y.length?(p="LineString",y=y[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===y.length?"Point":"MultiPoint"),l.push(X(h.id,p,y,h.tags))}}}return l.length?l:null}function it(t,e,n,i,r){for(var o=0;o<t.length;o+=3){var a=t[o+r];n<=a&&a<=i&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function rt(t,e,n,i,r,o,a){for(var s,l,u=ot(t),h=0===r?lt:ut,c=t.start,p=0;p<t.length-3;p+=3){var f=t[p],d=t[p+1],y=t[p+2],m=t[p+3],g=t[p+4],v=0===r?f:d,x=0===r?m:g,_=!1;a&&(s=Math.sqrt(Math.pow(f-m,2)+Math.pow(d-g,2))),v<n?n<x&&(l=h(u,f,d,m,g,n),a&&(u.start=c+s*l)):i<v?x<i&&(l=h(u,f,d,m,g,i),a&&(u.start=c+s*l)):st(u,f,d,y),x<n&&n<=v&&(l=h(u,f,d,m,g,n),_=!0),i<x&&v<=i&&(l=h(u,f,d,m,g,i),_=!0),!o&&_&&(a&&(u.end=c+s*l),e.push(u),u=ot(t)),a&&(c+=s)}var w=t.length-3;f=t[w],d=t[w+1],y=t[w+2],(v=0===r?f:d)>=n&&v<=i&&st(u,f,d,y),w=u.length-3,o&&3<=w&&(u[w]!==u[0]||u[w+1]!==u[1])&&st(u,u[0],u[1],u[2]),u.length&&e.push(u)}function ot(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function at(t,e,n,i,r,o){for(var a=0;a<t.length;a++)rt(t[a],e,n,i,r,o,!1)}function st(t,e,n,i){t.push(e),t.push(n),t.push(i)}function lt(t,e,n,i,r,o){var a=(o-e)/(i-e);return t.push(o),t.push(n+(r-n)*a),t.push(1),a}function ut(t,e,n,i,r,o){var a=(o-n)/(r-n);return t.push(e+(i-e)*a),t.push(o),t.push(1),a}function ht(t,e){for(var n=[],i=0;i<t.length;i++){var r,o=t[i],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)r=ct(o.geometry,e);else if("MultiLineString"===a||"Polygon"===a){r=[];for(var s=0;s<o.geometry.length;s++)r.push(ct(o.geometry[s],e))}else if("MultiPolygon"===a)for(r=[],s=0;s<o.geometry.length;s++){for(var l=[],u=0;u<o.geometry[s].length;u++)l.push(ct(o.geometry[s][u],e));r.push(l)}n.push(X(o.id,a,r,o.tags))}return n}function ct(t,e){var n=[];n.size=t.size,void 0!==t.start&&(n.start=t.start,n.end=t.end);for(var i=0;i<t.length;i+=3)n.push(t[i]+e,t[i+1],t[i+2]);return n}function pt(t,e){if(t.transformed)return t;var n,i,r,o=1<<t.z,a=t.x,s=t.y;for(n=0;n<t.features.length;n++){var l=t.features[n],u=l.geometry,h=l.type;if(l.geometry=[],1===h)for(i=0;i<u.length;i+=2)l.geometry.push(ft(u[i],u[i+1],e,o,a,s));else for(i=0;i<u.length;i++){var c=[];for(r=0;r<u[i].length;r+=2)c.push(ft(u[i][r],u[i][r+1],e,o,a,s));l.geometry.push(c)}}return t.transformed=!0,t}function ft(t,e,n,i,r,o){return[Math.round(n*(t*i-r)),Math.round(n*(e*i-o))]}function dt(t,e,n,i,r){for(var o=e===r.maxZoom?0:r.tolerance/((1<<e)*r.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:i,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){a.numFeatures++,yt(a,t[s],o,r);var l=t[s].minX,u=t[s].minY,h=t[s].maxX,c=t[s].maxY;l<a.minX&&(a.minX=l),u<a.minY&&(a.minY=u),h>a.maxX&&(a.maxX=h),c>a.maxY&&(a.maxY=c)}return a}function yt(t,e,n,i){var r=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<r.length;s+=3)a.push(r[s]),a.push(r[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)mt(a,r,t,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<r.length;s++)mt(a,r[s],t,n,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var l=0;l<r.length;l++){var u=r[l];for(s=0;s<u.length;s++)mt(a,u[s],t,n,!0,0===s)}if(a.length){var h=e.tags||null;if("LineString"===o&&i.lineMetrics){for(var c in h={},e.tags)h[c]=e.tags[c];h.mapbox_clip_start=r.start/r.size,h.mapbox_clip_end=r.end/r.size}var p={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:h};null!==e.id&&(p.id=e.id),t.features.push(p)}}function mt(t,e,n,i,r,o){var a=i*i;if(0<i&&e.size<(r?a:i))n.numPoints+=e.length/3;else{for(var s=[],l=0;l<e.length;l+=3)(0===i||e[l+2]>a)&&(n.numSimplified++,s.push(e[l]),s.push(e[l+1])),n.numPoints++;r&&function(t,e){for(var n=0,i=0,r=t.length,o=r-2;i<r;o=i,i+=2)n+=(t[i]-t[o])*(t[i+1]+t[o+1]);if(0<n===e)for(i=0,r=t.length;i<r/2;i+=2){var a=t[i],s=t[i+1];t[i]=t[r-2-i],t[i+1]=t[r-1-i],t[r-2-i]=a,t[r-1-i]=s}}(s,o),t.push(s)}}function gt(t,e){var n=(e=this.options=function(t,e){for(var n in e)t[n]=e[n];return t}(Object.create(this.options),e)).debug;if(n&&console.time("preprocess data"),e.maxZoom<0||24<e.maxZoom)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var i,r,o,a,s,l,u=function(t,e){var n=[];if(Y=e.crs,"FeatureCollection"===t.type)for(var i=0;i<t.features.length;i++)K(n,t.features[i],e,i);else K(n,"Feature"===t.type?t:{geometry:t},e);return n}(t,e);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(i=u,o=(r=e).buffer/r.extent,s=nt(a=i,1,-1-o,o,0,-1,2,r),l=nt(i,1,1-o,2+o,0,-1,2,r),(s||l)&&(a=nt(i,1,-o,1+o,0,-1,2,r)||[],s&&(a=ht(s,1).concat(a)),l&&(a=a.concat(ht(l,-1)))),u=a).length&&this.splitTile(u,0,0,0),n&&(u.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function vt(t,e,n){return 32*((1<<t)*n+e)+t}function xt(t,e){var n=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var i=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!i)return e(null,null);var r=new p(i.features),o=m(r);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),e(null,{vectorTile:r,rawData:o.buffer})}function _t(t){var n=this;this.self=t,this.actor=new I.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:i,geojson:bt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(n.workerSourceTypes[t])throw new Error('Worker source with name "'+t+'" already registered.');n.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(t){if(I.plugin.isParsed())throw new Error("RTL text plugin already registered.");I.plugin.applyArabicShaping=t.applyArabicShaping,I.plugin.processBidirectionalText=t.processBidirectionalText,I.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}}gt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:(z.prototype._map=function(t,e){if(t.numPoints)return e?B({},t.properties):t.properties;var n=this.points[t.index].properties,i=this.options.map(n);return e&&i===n?B({},i):i},!1),promoteId:null,generateId:!1,debug:0},gt.prototype.splitTile=function(t,e,n,i,r,o,a){for(var s=[t,e,n,i],l=this.options,u=l.debug;s.length;){i=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var h=1<<e,c=vt(e,n,i),p=this.tiles[c];if(!p&&(1<u&&console.time("creation"),p=this.tiles[c]=dt(t,e,n,i,l),this.tileCoords.push({z:e,x:n,y:i}),u)){1<u&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var f="z"+e;this.stats[f]=(this.stats[f]||0)+1,this.total++}if(p.source=t,r){if(e===l.maxZoom||e===r)continue;var d=1<<r-e;if(n!==Math.floor(o/d)||i!==Math.floor(a/d))continue}else if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==t.length){1<u&&console.time("clipping");var y,m,g,v,x,_,w=.5*l.buffer/l.extent,b=.5-w,P=.5+w,S=1+w;y=m=g=v=null,x=nt(t,h,n-w,n+P,0,p.minX,p.maxX,l),_=nt(t,h,n+b,n+S,0,p.minX,p.maxX,l),t=null,x&&(y=nt(x,h,i-w,i+P,1,p.minY,p.maxY,l),m=nt(x,h,i+b,i+S,1,p.minY,p.maxY,l),x=null),_&&(g=nt(_,h,i-w,i+P,1,p.minY,p.maxY,l),v=nt(_,h,i+b,i+S,1,p.minY,p.maxY,l),_=null),1<u&&console.timeEnd("clipping"),s.push(y||[],e+1,2*n,2*i),s.push(m||[],e+1,2*n,2*i+1),s.push(g||[],e+1,2*n+1,2*i),s.push(v||[],e+1,2*n+1,2*i+1)}}},gt.prototype.getTile=function(t,e,n){var i=this.options,r=i.extent,o=i.debug;if(t<0||24<t)return null;var a=1<<t,s=vt(t,e=(e%a+a)%a,n);if(this.tiles[s])return pt(this.tiles[s],r);1<o&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var l,u=t,h=e,c=n;!l&&0<u;)u--,h=Math.floor(h/2),c=Math.floor(c/2),l=this.tiles[vt(u,h,c)];return l&&l.source?(1<o&&console.log("found parent tile z%d-%d-%d",u,h,c),1<o&&console.time("drilling down"),this.splitTile(l.source,u,h,c,t,e,n),1<o&&console.timeEnd("drilling down"),this.tiles[s]?pt(this.tiles[s],r):null):null};var wt,bt=(Pt.__proto__=wt=i,((Pt.prototype=Object.create(wt&&wt.prototype)).constructor=Pt).prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Pt.prototype._loadData=function(){var r=this;if(this._pendingCallback&&this._pendingLoadDataParams){var o=this._pendingCallback,a=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var s=!!(a&&a.request&&a.request.collectResourceTiming)&&new I.RequestPerformance(a.request);this.loadGeoJSON(a,function(t,e){if(t||!e)return o(t);if("object"!=typeof e)return o(new Error("Input data given to '"+a.source+"' is not a valid GeoJSON object."));!function t(e,n){var i,r=e&&e.type;if("FeatureCollection"===r)for(i=0;i<e.features.length;i++)t(e.features[i],n);else if("GeometryCollection"===r)for(i=0;i<e.geometries.length;i++)t(e.geometries[i],n);else if("Feature"===r)t(e.geometry,n);else if("Polygon"===r)u(e.coordinates,n);else if("MultiPolygon"===r)for(i=0;i<e.coordinates.length;i++)u(e.coordinates[i],n);return e}(e,!0);try{r._geoJSONIndex=a.cluster?new z(function(t){var e=t.superclusterOptions,n=t.clusterProperties;if(!n||!e)return e;for(var o={},a={},s={accumulated:null,zoom:0},l={properties:null},u=Object.keys(n),i=0,r=u;i<r.length;i+=1){var h=r[i],c=n[h],p=c[0],f=I.createExpression(c[1]),d=I.createExpression("string"==typeof p?[p,["accumulated"],["get",h]]:p);o[h]=f.value,a[h]=d.value}return e.map=function(t){l.properties=t;for(var e={},n=0,i=u;n<i.length;n+=1){var r=i[n];e[r]=o[r].evaluate(s,l)}return e},e.reduce=function(t,e){l.properties=e;for(var n=0,i=u;n<i.length;n+=1){var r=i[n];s.accumulated=t[r],t[r]=a[r].evaluate(s,l)}},e}(a)).load(e.features):new gt(e,a.geojsonVtOptions)}catch(t){return o(t)}r.loaded={};var n={};if(s){var i=s.finish();i&&(n.resourceTiming={},n.resourceTiming[a.source]=JSON.parse(JSON.stringify(i)))}o(null,n)})}},Pt.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},Pt.prototype.reloadTile=function(t,e){var n=this.loaded;return n&&n[t.uid]?wt.prototype.reloadTile.call(this,t,e):this.loadTile(t,e)},Pt.prototype.loadGeoJSON=function(e,n){if(e.request)I.getJSON(e.request,n);else{if("string"!=typeof e.data)return n(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."));try{return n(null,JSON.parse(e.data))}catch(t){return n(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."))}}},Pt.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},Pt.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},Pt.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},Pt.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},Pt);function Pt(t,e,n,i){wt.call(this,t,e,n,xt),i&&(this.loadGeoJSON=i)}return _t.prototype.setReferrer=function(t,e){this.referrer=e},_t.prototype.setImages=function(t,e,n){for(var i in this.availableImages[t]=e,this.workerSources[t]){var r=this.workerSources[t][i];for(var o in r)r[o].availableImages=e}n()},_t.prototype.setLayers=function(t,e,n){this.getLayerIndex(t).replace(e),n()},_t.prototype.updateLayers=function(t,e,n){this.getLayerIndex(t).update(e.layers,e.removedIds),n()},_t.prototype.loadTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).loadTile(e,n)},_t.prototype.loadDEMTile=function(t,e,n){this.getDEMWorkerSource(t,e.source).loadTile(e,n)},_t.prototype.reloadTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).reloadTile(e,n)},_t.prototype.abortTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).abortTile(e,n)},_t.prototype.removeTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).removeTile(e,n)},_t.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},_t.prototype.removeSource=function(t,e,n){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var i=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==i.removeSource?i.removeSource(e,n):n()}},_t.prototype.loadWorkerSource=function(t,e,n){try{this.self.importScripts(e.url),n()}catch(t){n(t.toString())}},_t.prototype.syncRTLPluginState=function(t,e,n){try{I.plugin.setState(e);var i=I.plugin.getPluginURL();if(I.plugin.isLoaded()&&!I.plugin.isParsed()&&null!=i){this.self.importScripts(i);var r=I.plugin.isParsed();n(r?void 0:new Error("RTL Text Plugin failed to import scripts from "+i),r)}}catch(t){n(t.toString())}},_t.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e=e||[]},_t.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e=e||(this.layerIndexes[t]=new n)},_t.prototype.getWorkerSource=function(i,t,e){var r=this;return this.workerSources[i]||(this.workerSources[i]={}),this.workerSources[i][t]||(this.workerSources[i][t]={}),this.workerSources[i][t][e]||(this.workerSources[i][t][e]=new this.workerSourceTypes[t]({send:function(t,e,n){r.actor.send(t,e,n,i)}},this.getLayerIndex(i),this.getAvailableImages(i))),this.workerSources[i][t][e]},_t.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new o),this.demWorkerSources[t][e]},_t.prototype.enforceCacheSizeLimit=function(t,e){I.enforceCacheSizeLimit(e)},"undefined"!=typeof WorkerGlobalScope&&void 0!==I.window&&I.window instanceof WorkerGlobalScope&&(I.window.worker=new _t(I.window)),_t}),t(["./shared"],function(vt){var n=vt.createCommonjsModule(function(t){function a(t){return!e(t)}function e(t){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,n=new Blob([""],{type:"text/javascript"}),i=URL.createObjectURL(n);try{e=new Worker(i),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(i),t}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return!1;var n=e.getImageData(0,0,1,1);return n&&n.width===t.width}()?(void 0===n[o=t&&t.failIfMajorPerformanceCaveat]&&(n[o]=function(){var t,e,n,i=(t=o,e=document.createElement("canvas"),(n=Object.create(a.webGLContextAttributes)).failIfMajorPerformanceCaveat=t,e.probablySupportsContext?e.probablySupportsContext("webgl",n)||e.probablySupportsContext("experimental-webgl",n):e.supportsContext?e.supportsContext("webgl",n)||e.supportsContext("experimental-webgl",n):e.getContext("webgl",n)||e.getContext("experimental-webgl",n));if(!i)return!1;var r=i.createShader(i.VERTEX_SHADER);return!(!r||i.isContextLost())&&(i.shaderSource(r,"void main() {}"),i.compileShader(r),!0===i.getShaderParameter(r,i.COMPILE_STATUS))}()),n[o]?void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var o}t.exports?t.exports=a:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=a,window.mapboxgl.notSupportedReason=e);var n={};a.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),x={create:function(t,e,n){var i=vt.window.document.createElement(t);return void 0!==e&&(i.className=e),n&&n.appendChild(i),i},createNS:function(t,e){return vt.window.document.createElementNS(t,e)}},i=vt.window.document.documentElement.style;function t(t){if(!i)return t[0];for(var e=0;e<t.length;e++)if(t[e]in i)return t[e];return t[0]}var e,r=t(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);x.disableDrag=function(){i&&r&&(e=i[r],i[r]="none")},x.enableDrag=function(){i&&r&&(i[r]=e)};var o=t(["transform","WebkitTransform"]),a=!(x.setTransform=function(t,e){t.style[o]=e});try{var s=Object.defineProperty({},"passive",{get:function(){a=!0}});vt.window.addEventListener("test",s,s),vt.window.removeEventListener("test",s,s)}catch(vt){a=!1}x.addEventListener=function(t,e,n,i){void 0===i&&(i={}),t.addEventListener(e,n,"passive"in i&&a?i:i.capture)},x.removeEventListener=function(t,e,n,i){void 0===i&&(i={}),t.removeEventListener(e,n,"passive"in i&&a?i:i.capture)};var l=function(t){t.preventDefault(),t.stopPropagation(),vt.window.removeEventListener("click",l,!0)};x.suppressClick=function(){vt.window.addEventListener("click",l,!0),vt.window.setTimeout(function(){vt.window.removeEventListener("click",l,!0)},0)},x.mousePos=function(t,e){var n=t.getBoundingClientRect();return new vt.Point(e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop)},x.touchPos=function(t,e){for(var n=t.getBoundingClientRect(),i=[],r=0;r<e.length;r++)i.push(new vt.Point(e[r].clientX-n.left-t.clientLeft,e[r].clientY-n.top-t.clientTop));return i},x.mouseButton=function(t){return void 0!==vt.window.InstallTrigger&&2===t.button&&t.ctrlKey&&0<=vt.window.navigator.platform.toUpperCase().indexOf("MAC")?0:t.button},x.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var u,h=((u=vt.Evented)&&(d.__proto__=u),((d.prototype=Object.create(u&&u.prototype)).constructor=d).prototype.isLoaded=function(){return this.loaded},d.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t)){for(var e=0,n=this.requestors;e<n.length;e+=1){var i=n[e];this._notify(i.ids,i.callback)}this.requestors=[]}},d.prototype.getImage=function(t){return this.images[t]},d.prototype.addImage=function(t,e){this._validate(t,e)&&(this.images[t]=e)},d.prototype._validate=function(t,e){var n=!0;return this._validateStretch(e.stretchX,e.data&&e.data.width)||(this.fire(new vt.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchX" value'))),n=!1),this._validateStretch(e.stretchY,e.data&&e.data.height)||(this.fire(new vt.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchY" value'))),n=!1),this._validateContent(e.content,e)||(this.fire(new vt.ErrorEvent(new Error('Image "'+t+'" has invalid "content" value'))),n=!1),n},d.prototype._validateStretch=function(t,e){if(!t)return!0;for(var n=0,i=0,r=t;i<r.length;i+=1){var o=r[i];if(o[0]<n||o[1]<o[0]||e<o[1])return!1;n=o[1]}return!0},d.prototype._validateContent=function(t,e){return!(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))},d.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},d.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()},d.prototype.listImages=function(){return Object.keys(this.images)},d.prototype.getImages=function(t,e){var n=!0;if(!this.isLoaded())for(var i=0,r=t;i<r.length;i+=1)this.images[r[i]]||(n=!1);this.isLoaded()||n?this._notify(t,e):this.requestors.push({ids:t,callback:e})},d.prototype._notify=function(t,e){for(var n={},i=0,r=t;i<r.length;i+=1){var o=r[i];this.images[o]||this.fire(new vt.Event("styleimagemissing",{id:o}));var a=this.images[o];a?n[o]={data:a.data.clone(),pixelRatio:a.pixelRatio,sdf:a.sdf,version:a.version,stretchX:a.stretchX,stretchY:a.stretchY,content:a.content,hasRenderCallback:Boolean(a.userImage&&a.userImage.render)}:vt.warnOnce('Image "'+o+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}e(null,n)},d.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},d.prototype.getPattern=function(t){var e=this.patterns[t],n=this.getImage(t);if(!n)return null;if(e&&e.position.version===n.version)return e.position;if(e)e.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},r=new vt.ImagePosition(i,n);this.patterns[t]={bin:i,position:r}}return this._updatePatternAtlas(),this.patterns[t].position},d.prototype.bind=function(t){var e=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new vt.Texture(t,this.atlasImage,e.RGBA),this.atlasTexture.bind(e.LINEAR,e.CLAMP_TO_EDGE)},d.prototype._updatePatternAtlas=function(){var t=[];for(var e in this.patterns)t.push(this.patterns[e].bin);var n=vt.potpack(t),i=n.w,r=n.h,o=this.atlasImage;for(var a in o.resize({width:i||1,height:r||1}),this.patterns){var s=this.patterns[a].bin,l=s.x+1,u=s.y+1,h=this.images[a].data,c=h.width,p=h.height;vt.RGBAImage.copy(h,o,{x:0,y:0},{x:l,y:u},{width:c,height:p}),vt.RGBAImage.copy(h,o,{x:0,y:p-1},{x:l,y:u-1},{width:c,height:1}),vt.RGBAImage.copy(h,o,{x:0,y:0},{x:l,y:u+p},{width:c,height:1}),vt.RGBAImage.copy(h,o,{x:c-1,y:0},{x:l-1,y:u},{width:1,height:p}),vt.RGBAImage.copy(h,o,{x:0,y:0},{x:l+c,y:u},{width:1,height:p})}this.dirty=!0},d.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},d.prototype.dispatchRenderCallbacks=function(t){for(var e=0,n=t;e<n.length;e+=1){var i=n[e];if(!this.callbackDispatchedThisFrame[i]){this.callbackDispatchedThisFrame[i]=!0;var r=this.images[i];a=void 0,(a=(o=r).userImage)&&a.render&&a.render()&&(o.data.replace(new Uint8Array(a.data.buffer)),1)&&this.updateImage(i,r)}}var o,a},d),c=y,p=y,f=1e20;function d(){u.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new vt.RGBAImage({width:1,height:1}),this.dirty=!0}function y(t,e,n,i,r,o){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=i||.25,this.fontFamily=r||"sans-serif",this.fontWeight=o||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(0<=navigator.userAgent.indexOf("Gecko/")?1.2:1))}function m(t,e,n,i,r,o,a){for(var s=0;s<e;s++){for(var l=0;l<n;l++)i[l]=t[l*e+s];for(g(i,r,o,a,n),l=0;l<n;l++)t[l*e+s]=r[l]}for(l=0;l<n;l++){for(s=0;s<e;s++)i[s]=t[l*e+s];for(g(i,r,o,a,e),s=0;s<e;s++)t[l*e+s]=Math.sqrt(r[s])}}function g(t,e,n,i,r){i[n[0]=0]=-f,i[1]=+f;for(var o=1,a=0;o<r;o++){for(var s=(t[o]+o*o-(t[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);s<=i[a];)a--,s=(t[o]+o*o-(t[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);n[++a]=o,i[a]=s,i[a+1]=+f}for(a=o=0;o<r;o++){for(;i[a+1]<o;)a++;e[o]=(o-n[a])*(o-n[a])+t[n[a]]}}function v(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}}function _(){this.specification=vt.styleSpec.light.position}function w(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}y.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),n=new Uint8ClampedArray(this.size*this.size),i=0;i<this.size*this.size;i++){var r=e.data[4*i+3]/255;this.gridOuter[i]=1==r?0:0==r?f:Math.pow(Math.max(0,.5-r),2),this.gridInner[i]=1==r?f:0==r?0:Math.pow(Math.max(0,r-.5),2)}for(m(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),m(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),i=0;i<this.size*this.size;i++)n[i]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[i]-this.gridInner[i])/this.radius+this.cutoff))));return n},c.default=p,v.prototype.setURL=function(t){this.url=t},v.prototype.getGlyphs=function(t,u){var l=this,e=[];for(var n in t)for(var i=0,r=t[n];i<r.length;i+=1)e.push({stack:n,id:r[i]});vt.asyncAll(e,function(t,n){var i=t.stack,r=t.id,o=l.entries[i],e=(o=o||(l.entries[i]={glyphs:{},requests:{},ranges:{}})).glyphs[r];if(void 0===e){if(e=l._tinySDF(o,i,r))return o.glyphs[r]=e,void n(null,{stack:i,id:r,glyph:e});var a=Math.floor(r/256);if(65535<256*a)n(new Error("glyphs > 65535 not supported"));else if(o.ranges[a])n(null,{stack:i,id:r,glyph:e});else{var s=o.requests[a];s||(s=o.requests[a]=[],v.loadGlyphRange(i,a,l.url,l.requestManager,function(t,e){if(e){for(var n in e)l._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=e[+n]);o.ranges[a]=!0}for(var i=0,r=s;i<r.length;i+=1)(0,r[i])(t,e);delete o.requests[a]})),s.push(function(t,e){t?n(t):e&&n(null,{stack:i,id:r,glyph:e[r]||null})})}}else n(null,{stack:i,id:r,glyph:e})},function(t,e){if(t)u(t);else if(e){for(var n={},i=0,r=e;i<r.length;i+=1){var o=r[i],a=o.stack,s=o.id,l=o.glyph;(n[a]||(n[a]={}))[s]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics}}u(null,n)}})},v.prototype._doesCharSupportLocalGlyph=function(t){return!!this.localIdeographFontFamily&&(vt.isChar["CJK Unified Ideographs"](t)||vt.isChar["Hangul Syllables"](t)||vt.isChar.Hiragana(t)||vt.isChar.Katakana(t))},v.prototype._tinySDF=function(t,e,n){var i=this.localIdeographFontFamily;if(i&&this._doesCharSupportLocalGlyph(n)){var r=t.tinySDF;if(!r){var o="400";/bold/i.test(e)?o="900":/medium/i.test(e)?o="500":/light/i.test(e)&&(o="200"),r=t.tinySDF=new v.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new vt.AlphaImage({width:30,height:30},r.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},v.loadGlyphRange=function(t,e,n,i,a){var r=256*e,o=255+r,s=i.transformRequest(i.normalizeGlyphsURL(n).replace("{fontstack}",t).replace("{range}",r+"-"+o),vt.ResourceType.Glyphs);vt.getArrayBuffer(s,function(t,e){if(t)a(t);else if(e){for(var n={},i=0,r=vt.parseGlyphPBF(e);i<r.length;i+=1){var o=r[i];n[o.id]=o}a(null,n)}})},v.TinySDF=c,_.prototype.possiblyEvaluate=function(t,e){return vt.sphericalToCartesian(t.expression.evaluate(e))},_.prototype.interpolate=function(t,e,n){return{x:vt.number(t.x,e.x,n),y:vt.number(t.y,e.y,n),z:vt.number(t.z,e.z,n)}};var b,P=new vt.Properties({anchor:new vt.DataConstantProperty(vt.styleSpec.light.anchor),position:new _,color:new vt.DataConstantProperty(vt.styleSpec.light.color),intensity:new vt.DataConstantProperty(vt.styleSpec.light.intensity)}),S=((b=vt.Evented)&&(C.__proto__=b),((C.prototype=Object.create(b&&b.prototype)).constructor=C).prototype.getLight=function(){return this._transitionable.serialize()},C.prototype.setLight=function(t,e){if(void 0===e&&(e={}),!this._validate(vt.validateLight,t,e))for(var n in t){var i=t[n];vt.endsWith(n,"-transition")?this._transitionable.setTransition(n.slice(0,-"-transition".length),i):this._transitionable.setValue(n,i)}},C.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},C.prototype.hasTransition=function(){return this._transitioning.hasTransition()},C.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},C.prototype._validate=function(t,e,n){return(!n||!1!==n.validate)&&vt.emitValidationErrors(this,t.call(vt.validateStyle,vt.extend({value:e,style:{glyphs:!0,sprite:!0},styleSpec:vt.styleSpec})))},C);function C(t){b.call(this),this._transitionable=new vt.Transitionable(P),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}function M(t,e){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=vt.uniqueId();for(var n=this.workerPool.acquire(this.id),i=0;i<n.length;i++){var r=new M.Actor(n[i],e,this.id);r.name="Worker "+i,this.actors.push(r)}}function T(i,r,o){function t(t,e){if(t)return o(t);if(e){var n=vt.pick(vt.extend(e,i),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);e.vector_layers&&(n.vectorLayers=e.vector_layers,n.vectorLayerIds=n.vectorLayers.map(function(t){return t.id})),n.tiles=r.canonicalizeTileset(n,i.url),o(null,n)}}return i.url?vt.getJSON(r.transformRequest(r.normalizeSourceURL(i.url),vt.ResourceType.Source),t):vt.browser.frame(function(){return t(null,i)})}function A(t,e,n){this.bounds=vt.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=e||0,this.maxzoom=n||24}w.prototype.getDash=function(t,e){var n=t.join(",")+String(e);return this.dashEntry[n]||(this.dashEntry[n]=this.addDash(t,e)),this.dashEntry[n]},w.prototype.getDashRanges=function(t,e,n){var i=[],r=t.length%2==1?-t[t.length-1]*n:0,o=t[0]*n,a=!0;i.push({left:r,right:o,isDash:a,zeroLength:0===t[0]});for(var s=t[0],l=1;l<t.length;l++){var u=t[l];i.push({left:r=s*n,right:o=(s+=u)*n,isDash:a=!a,zeroLength:0===u})}return i},w.prototype.addRoundDash=function(t,e,n){for(var i=e/2,r=-n;r<=n;r++)for(var o=this.width*(this.nextRow+n+r),a=0,s=t[a],l=0;l<this.width;l++){1<l/s.right&&(s=t[++a]);var u=Math.abs(l-s.left),h=Math.abs(l-s.right),c=Math.min(u,h),p=void 0,f=r/n*(1+i);if(s.isDash){var d=i-Math.abs(f);p=Math.sqrt(c*c+d*d)}else p=i-Math.sqrt(c*c+f*f);this.data[o+l]=Math.max(0,Math.min(255,p+128))}},w.prototype.addRegularDash=function(t){for(var e=t.length-1;0<=e;--e){var n=t[e],i=t[e+1];n.zeroLength?t.splice(e,1):i&&i.isDash===n.isDash&&(i.left=n.left,t.splice(e,1))}var r=t[0],o=t[t.length-1];r.isDash===o.isDash&&(r.left=o.left-this.width,o.right=r.right+this.width);for(var a=this.width*this.nextRow,s=0,l=t[s],u=0;u<this.width;u++){1<u/l.right&&(l=t[++s]);var h=Math.abs(u-l.left),c=Math.abs(u-l.right),p=Math.min(h,c);this.data[a+u]=Math.max(0,Math.min(255,(l.isDash?p:-p)+128))}},w.prototype.addDash=function(t,e){var n=e?7:0,i=2*n+1;if(this.nextRow+i>this.height)return vt.warnOnce("LineAtlas out of space"),null;for(var r=0,o=0;o<t.length;o++)r+=t[o];if(0!==r){var a=this.width/r,s=this.getDashRanges(t,this.width,a);e?this.addRoundDash(s,a,n):this.addRegularDash(s)}var l={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:r};return this.nextRow+=i,this.dirty=!0,l},w.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))},M.prototype.broadcast=function(n,i,t){vt.asyncAll(this.actors,function(t,e){t.send(n,i,e)},t=t||function(){})},M.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},M.prototype.remove=function(){this.actors.forEach(function(t){t.remove()}),this.actors=[],this.workerPool.release(this.id)},M.Actor=vt.Actor,A.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},A.prototype.contains=function(t){var e=Math.pow(2,t.z),n=Math.floor(vt.mercatorXfromLng(this.bounds.getWest())*e),i=Math.floor(vt.mercatorYfromLat(this.bounds.getNorth())*e),r=Math.ceil(vt.mercatorXfromLng(this.bounds.getEast())*e),o=Math.ceil(vt.mercatorYfromLat(this.bounds.getSouth())*e);return t.x>=n&&t.x<r&&t.y>=i&&t.y<o};var E,I,L,R,O,N,k,z=((k=vt.Evented)&&(J.__proto__=k),((J.prototype=Object.create(k&&k.prototype)).constructor=J).prototype.load=function(){var n=this;this._loaded=!1,this.fire(new vt.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=T(this._options,this.map._requestManager,function(t,e){n._tileJSONRequest=null,n._loaded=!0,t?n.fire(new vt.ErrorEvent(t)):e&&(vt.extend(n,e),e.bounds&&(n.tileBounds=new A(e.bounds,n.minzoom,n.maxzoom)),vt.postTurnstileEvent(e.tiles,n.map._requestManager._customAccessToken),vt.postMapLoadEvent(e.tiles,n.map._getMapId(),n.map._requestManager._skuToken,n.map._requestManager._customAccessToken),n.fire(new vt.Event("data",{dataType:"source",sourceDataType:"metadata"})),n.fire(new vt.Event("data",{dataType:"source",sourceDataType:"content"})))})},J.prototype.loaded=function(){return this._loaded},J.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},J.prototype.onAdd=function(t){this.map=t,this.load()},J.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},J.prototype.serialize=function(){return vt.extend({},this._options)},J.prototype.loadTile=function(n,i){var t=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme,this._zoomOffset)),e={request:this.map._requestManager.transformRequest(t,vt.ResourceType.Tile),uid:n.uid,tileID:n.tileID,zoom:n.tileID.overscaledZ,tileSize:this.tileSize*n.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:vt.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function r(t,e){return delete n.request,n.aborted?i(null):t&&404!==t.status?i(t):(e&&e.resourceTiming&&(n.resourceTiming=e.resourceTiming),this.map._refreshExpiredTiles&&e&&n.setExpiryData(e),n.loadVectorData(e,this.map.painter),vt.cacheEntryPossiblyAdded(this.dispatcher),i(null),void(n.reloadCallback&&(this.loadTile(n,n.reloadCallback),n.reloadCallback=null)))}e.request.collectResourceTiming=this._collectResourceTiming,n.actor&&"expired"!==n.state?"loading"===n.state?n.reloadCallback=i:n.request=n.actor.send("reloadTile",e,r.bind(this)):(n.actor=this.dispatcher.getActor(),n.request=n.actor.send("loadTile",e,r.bind(this)))},J.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)},J.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)},J.prototype.hasTransition=function(){return!1},J),D=((N=vt.Evented)&&(K.__proto__=N),((K.prototype=Object.create(N&&N.prototype)).constructor=K).prototype.load=function(){var n=this;this._loaded=!1,this.fire(new vt.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=T(this._options,this.map._requestManager,function(t,e){n._tileJSONRequest=null,n._loaded=!0,t?n.fire(new vt.ErrorEvent(t)):e&&(vt.extend(n,e),e.bounds&&(n.tileBounds=new A(e.bounds,n.minzoom,n.maxzoom)),vt.postTurnstileEvent(e.tiles),vt.postMapLoadEvent(e.tiles,n.map._getMapId(),n.map._requestManager._skuToken),n.fire(new vt.Event("data",{dataType:"source",sourceDataType:"metadata"})),n.fire(new vt.Event("data",{dataType:"source",sourceDataType:"content"})))})},K.prototype.loaded=function(){return this._loaded},K.prototype.onAdd=function(t){this.map=t,this.load()},K.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},K.prototype.serialize=function(){return vt.extend({},this._options)},K.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},K.prototype._loadTilefunction=function(t,e,n,i){if(delete e.request,e.aborted)e.state="unloaded",i(null);else if(t)e.state="errored",i(t);else if(n){this.map._refreshExpiredTiles&&e.setExpiryData(n),delete n.cacheControl,delete n.expires;var r=this.map.painter.context,o=r.gl;e.texture=this.map.painter.getTileTexture(n.width),e.texture?e.texture.update(n,{useMipmap:!0}):(e.texture=new vt.Texture(r,n,o.RGBA,{useMipmap:!0}),e.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),r.extTextureFilterAnisotropic&&o.texParameterf(o.TEXTURE_2D,r.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,r.extTextureFilterAnisotropicMax)),e.state="loaded",vt.cacheEntryPossiblyAdded(this.dispatcher),i(null)}},K.prototype.loadTile=function(l,u){var h=this,c=this.map._requestManager.normalizeTileURL(l.tileID.canonical.url(this.tiles,this.scheme,this._zoomOffset),this.url,this.tileSize),p=this.map._requestManager.transformRequest(c,vt.ResourceType.Tile);h.blankTaker&&(p.returnArrayBuffer=h.blankTaker.need(l.tileID.canonical.z)),l.request=vt.getImage(p,function(t,e){if(p.returnArrayBuffer){var n=new Uint8Array(e);if(h.blankTaker&&h.blankTaker.isWhite(e)){var i=h.blankTaker.take(c),r=h.map._requestManager.transformRequest(i,vt.ResourceType.Tile);return void(l.request=vt.getImage(r,function(t,e){h._loadTilefunction.call(h,t,l,e,u)}))}var o=new vt.window.Image,a=vt.window.URL||vt.window.webkitURL;o.onload=function(){h._loadTilefunction.call(h,t,l,o,u),a.revokeObjectURL(o.src)};var s=new vt.window.Blob([n],{type:"image/png"});o.src=a.createObjectURL(s)}else h._loadTilefunction.call(h,t,l,e,u)})},K.prototype.abortTile=function(t,e){t.request&&(t.request.cancel(),delete t.request),e()},K.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},K.prototype.hasTransition=function(){return!1},K),F=(Y.__proto__=O=D,((Y.prototype=Object.create(O&&O.prototype)).constructor=Y).prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},Y.prototype.loadTile=function(r,o){var t=this.map._requestManager.normalizeTileURL(r.tileID.canonical.url(this.tiles,this.scheme,this._zoomOffset),this.tileSize);r.request=vt.getImage(this.map._requestManager.transformRequest(t,vt.ResourceType.Tile),function(t,e){if(delete r.request,r.aborted)r.state="unloaded",o(null);else if(t)r.state="errored",o(t);else if(e){this.map._refreshExpiredTiles&&r.setExpiryData(e),delete e.cacheControl,delete e.expires;var n=vt.window.ImageBitmap&&e instanceof vt.window.ImageBitmap&&vt.offscreenCanvasSupported()?e:vt.browser.getImageData(e,1),i={uid:r.uid,coord:r.tileID,source:this.id,rawImageData:n,encoding:this.encoding};r.actor&&"expired"!==r.state||(r.actor=this.dispatcher.getActor(),r.actor.send("loadDEMTile",i,function(t,e){t&&(r.state="errored",o(t)),e&&(r.dem=e,r.needsHillshadePrepare=!0,r.state="loaded",o(null))}.bind(this)))}}.bind(this)),r.neighboringTiles=this._getNeighboringTiles(r.tileID)},Y.prototype._getNeighboringTiles=function(t){var e=t.canonical,n=Math.pow(2,e.z),i=(e.x-1+n)%n,r=0===e.x?t.wrap-1:t.wrap,o=(e.x+1+n)%n,a=e.x+1===n?t.wrap+1:t.wrap,s={};return s[new vt.OverscaledTileID(t.overscaledZ,r,e.z,i,e.y).key]={backfilled:!1},s[new vt.OverscaledTileID(t.overscaledZ,a,e.z,o,e.y).key]={backfilled:!1},0<e.y&&(s[new vt.OverscaledTileID(t.overscaledZ,r,e.z,i,e.y-1).key]={backfilled:!1},s[new vt.OverscaledTileID(t.overscaledZ,t.wrap,e.z,e.x,e.y-1).key]={backfilled:!1},s[new vt.OverscaledTileID(t.overscaledZ,a,e.z,o,e.y-1).key]={backfilled:!1}),e.y+1<n&&(s[new vt.OverscaledTileID(t.overscaledZ,r,e.z,i,e.y+1).key]={backfilled:!1},s[new vt.OverscaledTileID(t.overscaledZ,t.wrap,e.z,e.x,e.y+1).key]={backfilled:!1},s[new vt.OverscaledTileID(t.overscaledZ,a,e.z,o,e.y+1).key]={backfilled:!1}),s},Y.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&t.actor.send("removeDEMTile",{uid:t.uid,source:this.id})},Y),G=((R=vt.Evented)&&(H.__proto__=R),((H.prototype=Object.create(R&&R.prototype)).constructor=H).prototype.load=function(){var n=this;this.fire(new vt.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(t){if(t)n.fire(new vt.ErrorEvent(t));else{var e={dataType:"source",sourceDataType:"metadata"};n._collectResourceTiming&&n._resourceTiming&&0<n._resourceTiming.length&&(e.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new vt.Event("data",e))}})},H.prototype.onAdd=function(t){this.map=t,this.load()},H.prototype.setData=function(t){var n=this;return this._data=t,this.fire(new vt.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(t){if(t)n.fire(new vt.ErrorEvent(t));else{var e={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&0<n._resourceTiming.length&&(e.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new vt.Event("data",e))}}),this},H.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},H.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},H.prototype.getClusterLeaves=function(t,e,n,i){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:n},i),this},H.prototype._updateWorkerData=function(n){var i=this;this._loaded=!1;var r=vt.extend({},this.workerOptions),t=this._data;"string"==typeof t?(r.request=this.map._requestManager.transformRequest(vt.browser.resolveURL(t),vt.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(t),this.actor.send(this.type+".loadData",r,function(t,e){i._removed||e&&e.abandoned||(i._loaded=!0,e&&e.resourceTiming&&e.resourceTiming[i.id]&&(i._resourceTiming=e.resourceTiming[i.id].slice(0)),i.actor.send(i.type+".coalesce",{source:r.source},null),n(t))})},H.prototype.loaded=function(){return this._loaded},H.prototype.loadTile=function(n,i){var r=this,o=n.actor?"reloadTile":"loadTile";n.actor=this.actor,n.request=this.actor.send(o,{type:this.type,uid:n.uid,tileID:n.tileID,zoom:n.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:vt.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(t,e){return delete n.request,n.unloadVectorData(),n.aborted?i(null):t?i(t):(n.loadVectorData(e,r.map.painter,"reloadTile"==o),i(null))})},H.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},H.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},H.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},H.prototype.serialize=function(){return vt.extend({},this._options,{type:this.type,data:this._data})},H.prototype.hasTransition=function(){return!1},H),j=vt.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),V=((L=vt.Evented)&&(X.__proto__=L),((X.prototype=Object.create(L&&L.prototype)).constructor=X).prototype.load=function(n,i){var r=this;this._loaded=!1,this.fire(new vt.Event("dataloading",{dataType:"source"})),this.url=this.options.url,vt.getImage(this.map._requestManager.transformRequest(this.url,vt.ResourceType.Image),function(t,e){r._loaded=!0,t?r.fire(new vt.ErrorEvent(t)):e&&(r.image=e,n&&(r.coordinates=n),i&&i(),r._finishLoading())})},X.prototype.loaded=function(){return this._loaded},X.prototype.updateImage=function(t){var e=this;return this.image&&t.url&&(this.options.url=t.url,this.load(t.coordinates,function(){e.texture=null})),this},X.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new vt.Event("data",{dataType:"source",sourceDataType:"metadata"})))},X.prototype.onAdd=function(t){this.map=t,this.load()},X.prototype.setCoordinates=function(t){var e=this,h=(this.coordinates=t).map(vt.MercatorCoordinate.fromLngLat);this.tileID=function(){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,r=0,o=h;r<o.length;r+=1){var a=o[r];t=Math.min(t,a.x),e=Math.min(e,a.y),n=Math.max(n,a.x),i=Math.max(i,a.y)}var s=Math.max(n-t,i-e),l=Math.max(0,Math.floor(-Math.log(s)/Math.LN2)),u=Math.pow(2,l);return new vt.CanonicalTileID(l,Math.floor((t+n)/2*u),Math.floor((e+i)/2*u))}(),this.minzoom=this.maxzoom=this.tileID.z;var n=h.map(function(t){return e.tileID.getTilePoint(t)._round()});return this._boundsArray=new vt.StructArrayLayout4i8,this._boundsArray.emplaceBack(n[0].x,n[0].y,0,0),this._boundsArray.emplaceBack(n[1].x,n[1].y,vt.EXTENT,0),this._boundsArray.emplaceBack(n[3].x,n[3].y,0,vt.EXTENT),this._boundsArray.emplaceBack(n[2].x,n[2].y,vt.EXTENT,vt.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new vt.Event("data",{dataType:"source",sourceDataType:"content"})),this},X.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,e=t.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,j.members)),this.boundsSegments||(this.boundsSegments=vt.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new vt.Texture(t,this.image,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},X.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t).buckets={}:t.state="errored",e(null)},X.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},X.prototype.hasTransition=function(){return!1},X),q=(Z.__proto__=I=V,((Z.prototype=Object.create(I&&I.prototype)).constructor=Z).prototype.load=function(){var n=this;this._loaded=!1;var t=this.options;this.urls=[];for(var e=0,i=t.urls;e<i.length;e+=1)this.urls.push(this.map._requestManager.transformRequest(i[e],vt.ResourceType.Source).url);vt.getVideo(this.urls,function(t,e){n._loaded=!0,t?n.fire(new vt.ErrorEvent(t)):e&&(n.video=e,n.video.loop=!0,n.video.addEventListener("playing",function(){n.map.triggerRepaint()}),n.map&&n.video.play(),n._finishLoading())})},Z.prototype.pause=function(){this.video&&this.video.pause()},Z.prototype.play=function(){this.video&&this.video.play()},Z.prototype.seek=function(t){if(this.video){var e=this.video.seekable;t<e.start(0)||t>e.end(0)?this.fire(new vt.ErrorEvent(new vt.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+e.start(0)+" and "+e.end(0)+"-second mark."))):this.video.currentTime=t}},Z.prototype.getVideo=function(){return this.video},Z.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},Z.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,e=t.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,j.members)),this.boundsSegments||(this.boundsSegments=vt.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE),e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,this.video)):(this.texture=new vt.Texture(t,this.video,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},Z.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},Z.prototype.hasTransition=function(){return this.video&&!this.video.paused},Z),B=(W.__proto__=E=V,((W.prototype=Object.create(E&&E.prototype)).constructor=W).prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof vt.window.HTMLCanvasElement?this.options.canvas:vt.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new vt.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},W.prototype.getCanvas=function(){return this.canvas},W.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},W.prototype.onRemove=function(){this.pause()},W.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var e=this.map.painter.context,n=e.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,j.members)),this.boundsSegments||(this.boundsSegments=vt.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new vt.Texture(e,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var r=this.tiles[i];"loaded"!==r.state&&(r.state="loaded",r.texture=this.texture)}}},W.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},W.prototype.hasTransition=function(){return this._playing},W.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var n=e[t];if(isNaN(n)||n<=0)return!0}return!1},W),U={vector:z,raster:D,"raster-dem":F,geojson:G,video:q,image:V,canvas:B};function W(t,e,n,i){E.call(this,t,e,n,i),e.coordinates?Array.isArray(e.coordinates)&&4===e.coordinates.length&&!e.coordinates.some(function(t){return!Array.isArray(t)||2!==t.length||t.some(function(t){return"number"!=typeof t})})||this.fire(new vt.ErrorEvent(new vt.ValidationError("sources."+t,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new vt.ErrorEvent(new vt.ValidationError("sources."+t,null,'missing required property "coordinates"'))),e.animate&&"boolean"!=typeof e.animate&&this.fire(new vt.ErrorEvent(new vt.ValidationError("sources."+t,null,'optional "animate" property must be a boolean value'))),e.canvas?"string"==typeof e.canvas||e.canvas instanceof vt.window.HTMLCanvasElement||this.fire(new vt.ErrorEvent(new vt.ValidationError("sources."+t,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new vt.ErrorEvent(new vt.ValidationError("sources."+t,null,'missing required property "canvas"'))),this.options=e,this.animate=void 0===e.animate||e.animate}function Z(t,e,n,i){I.call(this,t,e,n,i),this.roundZoom=!0,this.type="video",this.options=e}function X(t,e,n,i){L.call(this),this.id=t,this.dispatcher=n,this.coordinates=e.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=e}function H(t,e,n,i){R.call(this),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=n.getActor(),this.setEventedParent(i),this._data=e.data,this._options=vt.extend({},e),this._collectResourceTiming=e.collectResourceTiming,this._resourceTiming=[],void 0!==e.maxzoom&&(this.maxzoom=e.maxzoom),e.type&&(this.type=e.type),e.attribution&&(this.attribution=e.attribution),this.promoteId=e.promoteId;var r=vt.EXTENT/this.tileSize;this.workerOptions=vt.extend({source:this.id,cluster:e.cluster||!1,geojsonVtOptions:{buffer:(void 0!==e.buffer?e.buffer:128)*r,tolerance:(void 0!==e.tolerance?e.tolerance:.375)*r,extent:vt.EXTENT,maxZoom:this.maxzoom,lineMetrics:e.lineMetrics||!1,generateId:e.generateId||!1,crs:vt.config.CRS},superclusterOptions:{maxZoom:void 0!==e.clusterMaxZoom?Math.min(e.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:vt.EXTENT,radius:(e.clusterRadius||50)*r,log:!1,generateId:e.generateId||!1,crs:vt.config.CRS},clusterProperties:e.clusterProperties},e.workerOptions)}function Y(t,e,n,i){O.call(this,t,e,n,i),this.type="raster-dem",this.maxzoom=22,this._options=vt.extend({type:"raster-dem"},e),this.encoding=e.encoding||"mapbox"}function K(t,e,n,i){N.call(this),this.id=t,this.dispatcher=n,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this.zoomOffset=0,this._zoomOffset=void 0!==e.zoomOffset?e.zoomOffset:vt.getDefaultZoomOffset(),this.blankTaker=e.blankTaker,this._options=vt.extend({type:"raster"},e),vt.extend(this,vt.pick(e,["url","scheme","tileSize"]))}function J(t,e,n,i){if(k.call(this),this.id=t,this.dispatcher=n,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,this.zoomOffset=0,this._zoomOffset=void 0!==e.zoomOffset?e.zoomOffset:vt.getDefaultZoomOffset(),vt.extend(this,vt.pick(e,["url","scheme","tileSize","promoteId","zoomOffset"])),this._options=vt.extend({type:"vector"},e),this._collectResourceTiming=e.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i)}function Q(i,t,e,n,r,o){var a,s,l,u=function(t,e,n){if(t)for(var i=0,r=t;i<r.length;i+=1){var o=e[r[i]];if(o&&o.source===n&&"fill-extrusion"===o.type)return!0}else for(var a in e){var s=e[a];if(s.source===n&&"fill-extrusion"===s.type)return!0}return!1}(r&&r.layers,t,i.id),h=o.maxPitchScaleFactor(),c=i.tilesIn(n,h,u);c.sort($);for(var y=[],p=0,f=c;p<f.length;p+=1){var d=f[p];y.push({wrappedTileID:d.tileID.wrapped().key,queryResults:d.tile.queryRenderedFeatures(t,e,i._state,d.queryGeometry,d.cameraQueryGeometry,d.scale,r,o,h,(a=i.transform,s=d.tileID,l=vt.identity([]),vt.translate(l,l,[1,1,0]),vt.scale(l,l,[.5*a.width,.5*a.height,1]),vt.multiply(l,l,a.calculatePosMatrix(s.toUnwrapped()))))})}var m=function(){for(var t={},e={},n=0,i=y;n<i.length;n+=1){var r=i[n],o=r.queryResults,a=r.wrappedTileID,s=e[a]=e[a]||{};for(var l in o)for(var u=o[l],h=s[l]=s[l]||{},c=t[l]=t[l]||[],p=0,f=u;p<f.length;p+=1){var d=f[p];h[d.featureIndex]||(h[d.featureIndex]=!0,c.push(d))}}return t}();for(var g in m)m[g].forEach(function(t){var e=t.feature,n=i.getFeatureState(e.layer["source-layer"],e.id);e.source=e.layer.source,e.layer["source-layer"]&&(e.sourceLayer=e.layer["source-layer"]),e.state=n});return m}function $(t,e){var n=t.tileID,i=e.tileID;return n.overscaledZ-i.overscaledZ||n.canonical.y-i.canonical.y||n.wrap-i.wrap||n.canonical.x-i.canonical.x}function tt(t,e){this.max=t,this.onRemove=e,this.reset()}function et(t,e,n){var i=(this.context=t).gl;this.buffer=i.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer}function nt(t,e,n,i){this.length=e.length,this.attributes=n,this.itemSize=e.bytesPerElement,this.dynamicDraw=i;var r=(this.context=t).gl;this.buffer=r.createBuffer(),t.bindVertexBuffer.set(this.buffer),r.bufferData(r.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer}tt.prototype.reset=function(){for(var t in this.data)for(var e=0,n=this.data[t];e<n.length;e+=1){var i=n[e];i.timeout&&clearTimeout(i.timeout),this.onRemove(i.value)}return this.data={},this.order=[],this},tt.prototype.add=function(t,e,n){var i=this,r=t.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);var o={value:e,timeout:void 0};if(void 0!==n&&(o.timeout=setTimeout(function(){i.remove(t,o)},n)),this.data[r].push(o),this.order.push(r),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},tt.prototype.has=function(t){return t.wrapped().key in this.data},tt.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},tt.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},tt.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},tt.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},tt.prototype.remove=function(t,e){if(!this.has(t))return this;var n=t.wrapped().key,i=void 0===e?0:this.data[n].indexOf(e),r=this.data[n][i];return this.data[n].splice(i,1),r.timeout&&clearTimeout(r.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(r.value),this.order.splice(this.order.indexOf(n),1),this},tt.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},tt.prototype.filter=function(t){var e=[];for(var n in this.data)for(var i=0,r=this.data[n];i<r.length;i+=1){var o=r[i];t(o.value)||e.push(o)}for(var a=0,s=e;a<s.length;a+=1){var l=s[a];this.remove(l.value.tileID,l)}},et.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},et.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},et.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var it={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};function rt(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}function ot(t,e,n,i){this.context=t,this.width=e,this.height=n;var r=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new xe(t,r),i&&(this.depthAttachment=new _e(t,r))}nt.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},nt.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},nt.prototype.enableAttributes=function(t,e){for(var n=0;n<this.attributes.length;n++){var i=e.attributes[this.attributes[n].name];void 0!==i&&t.enableVertexAttribArray(i)}},nt.prototype.setVertexAttribPointers=function(t,e,n){for(var i=0;i<this.attributes.length;i++){var r=this.attributes[i],o=e.attributes[r.name];void 0!==o&&t.vertexAttribPointer(o,r.components,t[it[r.type]],!1,this.itemSize,r.offset+this.itemSize*(n||0))}},nt.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)},rt.prototype.get=function(){return this.current},rt.prototype.set=function(t){},rt.prototype.getDefault=function(){return this.default},rt.prototype.setDefault=function(){this.set(this.default)};var at,st,lt,ut,ht,ct,pt,ft,dt,yt,mt,gt,xt,_t,wt,bt,Pt,St,Ct,Mt,Tt,At,Et,It,Lt,Rt,Ot,Nt,kt,zt,Dt,Ft,Gt,jt,Vt=(tn.__proto__=jt=rt,((tn.prototype=Object.create(jt&&jt.prototype)).constructor=tn).prototype.getDefault=function(){return vt.Color.transparent},tn.prototype.set=function(t){var e=this.current;t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a&&!this.dirty||(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},tn),qt=($e.__proto__=Gt=rt,(($e.prototype=Object.create(Gt&&Gt.prototype)).constructor=$e).prototype.getDefault=function(){return 1},$e.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},$e),Bt=(Qe.__proto__=Ft=rt,((Qe.prototype=Object.create(Ft&&Ft.prototype)).constructor=Qe).prototype.getDefault=function(){return 0},Qe.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},Qe),Ut=(Je.__proto__=Dt=rt,((Je.prototype=Object.create(Dt&&Dt.prototype)).constructor=Je).prototype.getDefault=function(){return[!0,!0,!0,!0]},Je.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&!this.dirty||(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},Je),Wt=(Ke.__proto__=zt=rt,((Ke.prototype=Object.create(zt&&zt.prototype)).constructor=Ke).prototype.getDefault=function(){return!0},Ke.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.depthMask(t),this.current=t,this.dirty=!1)},Ke),Zt=(Ye.__proto__=kt=rt,((Ye.prototype=Object.create(kt&&kt.prototype)).constructor=Ye).prototype.getDefault=function(){return 255},Ye.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},Ye),Xt=(He.__proto__=Nt=rt,((He.prototype=Object.create(Nt&&Nt.prototype)).constructor=He).prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},He.prototype.set=function(t){var e=this.current;t.func===e.func&&t.ref===e.ref&&t.mask===e.mask&&!this.dirty||(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},He),Ht=(Xe.__proto__=Ot=rt,((Xe.prototype=Object.create(Ot&&Ot.prototype)).constructor=Xe).prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},Xe.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&!this.dirty||(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},Xe),Yt=(Ze.__proto__=Rt=rt,((Ze.prototype=Object.create(Rt&&Rt.prototype)).constructor=Ze).prototype.getDefault=function(){return!1},Ze.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},Ze),Kt=(We.__proto__=Lt=rt,((We.prototype=Object.create(Lt&&Lt.prototype)).constructor=We).prototype.getDefault=function(){return[0,1]},We.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&!this.dirty||(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},We),Jt=(Ue.__proto__=It=rt,((Ue.prototype=Object.create(It&&It.prototype)).constructor=Ue).prototype.getDefault=function(){return!1},Ue.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},Ue),Qt=(Be.__proto__=Et=rt,((Be.prototype=Object.create(Et&&Et.prototype)).constructor=Be).prototype.getDefault=function(){return this.gl.LESS},Be.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},Be),$t=(qe.__proto__=At=rt,((qe.prototype=Object.create(At&&At.prototype)).constructor=qe).prototype.getDefault=function(){return!1},qe.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},qe),te=(Ve.__proto__=Tt=rt,((Ve.prototype=Object.create(Tt&&Tt.prototype)).constructor=Ve).prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},Ve.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&!this.dirty||(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},Ve),ee=(je.__proto__=Mt=rt,((je.prototype=Object.create(Mt&&Mt.prototype)).constructor=je).prototype.getDefault=function(){return vt.Color.transparent},je.prototype.set=function(t){var e=this.current;t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a&&!this.dirty||(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},je),ne=(Ge.__proto__=Ct=rt,((Ge.prototype=Object.create(Ct&&Ct.prototype)).constructor=Ge).prototype.getDefault=function(){return this.gl.FUNC_ADD},Ge.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},Ge),ie=(Fe.__proto__=St=rt,((Fe.prototype=Object.create(St&&St.prototype)).constructor=Fe).prototype.getDefault=function(){return!1},Fe.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},Fe),re=(De.__proto__=Pt=rt,((De.prototype=Object.create(Pt&&Pt.prototype)).constructor=De).prototype.getDefault=function(){return this.gl.BACK},De.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.cullFace(t),this.current=t,this.dirty=!1)},De),oe=(ze.__proto__=bt=rt,((ze.prototype=Object.create(bt&&bt.prototype)).constructor=ze).prototype.getDefault=function(){return this.gl.CCW},ze.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.frontFace(t),this.current=t,this.dirty=!1)},ze),ae=(ke.__proto__=wt=rt,((ke.prototype=Object.create(wt&&wt.prototype)).constructor=ke).prototype.getDefault=function(){return null},ke.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.useProgram(t),this.current=t,this.dirty=!1)},ke),se=(Ne.__proto__=_t=rt,((Ne.prototype=Object.create(_t&&_t.prototype)).constructor=Ne).prototype.getDefault=function(){return this.gl.TEXTURE0},Ne.prototype.set=function(t){t===this.current&&!this.dirty||(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},Ne),le=(Oe.__proto__=xt=rt,((Oe.prototype=Object.create(xt&&xt.prototype)).constructor=Oe).prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},Oe.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&!this.dirty||(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},Oe),ue=(Re.__proto__=gt=rt,((Re.prototype=Object.create(gt&&gt.prototype)).constructor=Re).prototype.getDefault=function(){return null},Re.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},Re),he=(Le.__proto__=mt=rt,((Le.prototype=Object.create(mt&&mt.prototype)).constructor=Le).prototype.getDefault=function(){return null},Le.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},Le),ce=(Ie.__proto__=yt=rt,((Ie.prototype=Object.create(yt&&yt.prototype)).constructor=Ie).prototype.getDefault=function(){return null},Ie.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},Ie),pe=(Ee.__proto__=dt=rt,((Ee.prototype=Object.create(dt&&dt.prototype)).constructor=Ee).prototype.getDefault=function(){return null},Ee.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},Ee),fe=(Ae.__proto__=ft=rt,((Ae.prototype=Object.create(ft&&ft.prototype)).constructor=Ae).prototype.getDefault=function(){return null},Ae.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},Ae),de=(Te.__proto__=pt=rt,((Te.prototype=Object.create(pt&&pt.prototype)).constructor=Te).prototype.getDefault=function(){return null},Te.prototype.set=function(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},Te),ye=(Me.__proto__=ct=rt,((Me.prototype=Object.create(ct&&ct.prototype)).constructor=Me).prototype.getDefault=function(){return 4},Me.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},Me),me=(Ce.__proto__=ht=rt,((Ce.prototype=Object.create(ht&&ht.prototype)).constructor=Ce).prototype.getDefault=function(){return!1},Ce.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},Ce),ge=(Se.__proto__=ut=rt,((Se.prototype=Object.create(ut&&ut.prototype)).constructor=Se).prototype.getDefault=function(){return!1},Se.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},Se),ve=(Pe.__proto__=lt=rt,((Pe.prototype=Object.create(lt&&lt.prototype)).constructor=Pe).prototype.getDefault=function(){return null},Pe),xe=(be.__proto__=st=ve,((be.prototype=Object.create(st&&st.prototype)).constructor=be).prototype.setDirty=function(){this.dirty=!0},be.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},be),_e=(we.__proto__=at=ve,((we.prototype=Object.create(at&&at.prototype)).constructor=we).prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},we);function we(){at.apply(this,arguments)}function be(){st.apply(this,arguments)}function Pe(t,e){lt.call(this,t),this.context=t,this.parent=e}function Se(){ut.apply(this,arguments)}function Ce(){ht.apply(this,arguments)}function Me(){ct.apply(this,arguments)}function Te(t){pt.call(this,t),this.vao=t.extVertexArrayObject}function Ae(){ft.apply(this,arguments)}function Ee(){dt.apply(this,arguments)}function Ie(){yt.apply(this,arguments)}function Le(){mt.apply(this,arguments)}function Re(){gt.apply(this,arguments)}function Oe(){xt.apply(this,arguments)}function Ne(){_t.apply(this,arguments)}function ke(){wt.apply(this,arguments)}function ze(){bt.apply(this,arguments)}function De(){Pt.apply(this,arguments)}function Fe(){St.apply(this,arguments)}function Ge(){Ct.apply(this,arguments)}function je(){Mt.apply(this,arguments)}function Ve(){Tt.apply(this,arguments)}function qe(){At.apply(this,arguments)}function Be(){Et.apply(this,arguments)}function Ue(){It.apply(this,arguments)}function We(){Lt.apply(this,arguments)}function Ze(){Rt.apply(this,arguments)}function Xe(){Ot.apply(this,arguments)}function He(){Nt.apply(this,arguments)}function Ye(){kt.apply(this,arguments)}function Ke(){zt.apply(this,arguments)}function Je(){Dt.apply(this,arguments)}function Qe(){Ft.apply(this,arguments)}function $e(){Gt.apply(this,arguments)}function tn(){jt.apply(this,arguments)}ot.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){var n=this.depthAttachment.get();n&&t.deleteRenderbuffer(n)}t.deleteFramebuffer(this.framebuffer)};var en=function(t,e,n){this.func=t,this.mask=e,this.range=n};en.ReadOnly=!1,en.ReadWrite=!0,en.disabled=new en(519,en.ReadOnly,[0,1]);var nn=function(t,e,n,i,r,o){this.test=t,this.ref=e,this.mask=n,this.fail=i,this.depthFail=r,this.pass=o};nn.disabled=new nn({func:519,mask:0},0,0,7680,7680,7680);var rn=function(t,e,n){this.blendFunction=t,this.blendColor=e,this.mask=n};rn.Replace=[1,0],rn.disabled=new rn(rn.Replace,vt.Color.transparent,[!1,!1,!1,!1]),rn.unblended=new rn(rn.Replace,vt.Color.transparent,[!0,!0,!0,!0]),rn.alphaBlended=new rn([1,771],vt.Color.transparent,[!0,!0,!0,!0]);var on=function(t,e,n){this.enable=t,this.mode=e,this.frontFace=n};function an(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new Vt(this),this.clearDepth=new qt(this),this.clearStencil=new Bt(this),this.colorMask=new Ut(this),this.depthMask=new Wt(this),this.stencilMask=new Zt(this),this.stencilFunc=new Xt(this),this.stencilOp=new Ht(this),this.stencilTest=new Yt(this),this.depthRange=new Kt(this),this.depthTest=new Jt(this),this.depthFunc=new Qt(this),this.blend=new $t(this),this.blendFunc=new te(this),this.blendColor=new ee(this),this.blendEquation=new ne(this),this.cullFace=new ie(this),this.cullFaceSide=new re(this),this.frontFace=new oe(this),this.program=new ae(this),this.activeTexture=new se(this),this.viewport=new le(this),this.bindFramebuffer=new ue(this),this.bindRenderbuffer=new he(this),this.bindTexture=new ce(this),this.bindVertexBuffer=new pe(this),this.bindElementBuffer=new fe(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new de(this),this.pixelStoreUnpack=new ye(this),this.pixelStoreUnpackPremultiplyAlpha=new me(this),this.pixelStoreUnpackFlipY=new ge(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(t.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query")}on.disabled=new on(!1,1029,2305),on.backCCW=new on(!0,1029,2305),an.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},an.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},an.prototype.createIndexBuffer=function(t,e){return new et(this,t,e)},an.prototype.createVertexBuffer=function(t,e,n){return new nt(this,t,e,n)},an.prototype.createRenderbuffer=function(t,e,n){var i=this.gl,r=i.createRenderbuffer();return this.bindRenderbuffer.set(r),i.renderbufferStorage(i.RENDERBUFFER,t,e,n),this.bindRenderbuffer.set(null),r},an.prototype.createFramebuffer=function(t,e,n){return new ot(this,t,e,n)},an.prototype.clear=function(t){var e=t.color,n=t.depth,i=this.gl,r=0;e&&(r|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(r|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),i.clear(r)},an.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},an.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},an.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},an.prototype.setColorMode=function(t){vt.deepEqual(t.blendFunction,rn.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)},an.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var sn,ln=((sn=vt.Evented)&&(un.__proto__=sn),((un.prototype=Object.create(sn&&sn.prototype)).constructor=un).prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},un.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},un.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0},un.prototype.getSource=function(){return this._source},un.prototype.pause=function(){this._paused=!0},un.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},un.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},un.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,function(){})},un.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,function(){})},un.prototype.serialize=function(){return this._source.serialize()},un.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var n=this._tiles[e];n.upload(t),n.prepare(this.map.style.imageManager)}},un.prototype.getIds=function(){return vt.values(this._tiles).map(function(t){return t.tileID}).sort(hn).map(function(t){return t.key})},un.prototype.getRenderableIds=function(t){var a=this,e=[];for(var n in this._tiles)this._isIdRenderable(n,t)&&e.push(this._tiles[n]);return t?e.sort(function(t,e){var n=t.tileID,i=e.tileID,r=new vt.Point(n.canonical.x,n.canonical.y)._rotate(a.transform.angle),o=new vt.Point(i.canonical.x,i.canonical.y)._rotate(a.transform.angle);return n.overscaledZ-i.overscaledZ||o.y-r.y||o.x-r.x}).map(function(t){return t.tileID.key}):e.map(function(t){return t.tileID}).sort(hn).map(function(t){return t.key})},un.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)},un.prototype._isIdRenderable=function(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())},un.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")},un.prototype._reloadTile=function(t,e){var n=this._tiles[t];n&&("loading"!==n.state&&(n.state=e),this._loadTile(n,this._tileLoaded.bind(this,n,t,e)))},un.prototype._tileLoaded=function(t,e,n,i){if(i)return t.state="errored",void(404!==i.status?this._source.fire(new vt.ErrorEvent(i,{tile:t})):this.update(this.transform));t.timeAdded=vt.browser.now(),"expired"===n&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(e,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new vt.Event("data",{dataType:"source",tile:t,coord:t.tileID}))},un.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),n=0;n<e.length;n++){var i=e[n];if(t.neighboringTiles&&t.neighboringTiles[i]){var r=this.getTileByID(i);o(t,r),o(r,t)}}function o(t,e){t.needsHillshadePrepare=!0;var n=e.tileID.canonical.x-t.tileID.canonical.x,i=e.tileID.canonical.y-t.tileID.canonical.y,r=Math.pow(2,t.tileID.canonical.z),o=e.tileID.key;0===n&&0==i||1<Math.abs(i)||(1<Math.abs(n)&&(1===Math.abs(n+r)?n+=r:1===Math.abs(n-r)&&(n-=r)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,n,i),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}},un.prototype.getTile=function(t){return this.getTileByID(t.key)},un.prototype.getTileByID=function(t){return this._tiles[t]},un.prototype._retainLoadedChildren=function(t,e,n,i){for(var r in this._tiles){var o=this._tiles[r];if(!(i[r]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>n)){for(var a=o.tileID;o&&o.tileID.overscaledZ>e+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var l=a;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){i[a.key]=a;break}}}},un.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var n=this._loadedParentTiles[t.key];return n&&n.tileID.overscaledZ>=e?n:null}for(var i=t.overscaledZ-1;e<=i;i--){var r=t.scaledTo(i),o=this._getLoadedTile(r);if(o)return o}},un.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},un.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,n=Math.ceil(t.height/this._source.tileSize)+1,i=Math.floor(e*n*5),r="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._cache.setMaxSize(r)},un.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var n={};for(var i in this._tiles){var r=this._tiles[i];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+e),n[r.tileID.key]=r}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},un.prototype.update=function(t){var e=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var n;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?n=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(t){return new vt.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)}):(n=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(n=n.filter(function(t){return e._source.hasTile(t)}))):n=[];var i=t.coveringZoomLevel(this._source),r=Math.max(i-un.maxOverzooming,this._source.minzoom),o=Math.max(i+un.maxUnderzooming,this._source.minzoom),a=this._updateRetainedTiles(n,i);if(cn(this._source.type)){for(var s={},l={},u=0,h=Object.keys(a);u<h.length;u+=1){var c=h[u],p=a[c],f=this._tiles[c];if(f&&!(f.fadeEndTime&&f.fadeEndTime<=vt.browser.now())){var d=this.findLoadedParent(p,r);d&&(this._addTile(d.tileID),s[d.tileID.key]=d.tileID),l[c]=p}}for(var y in this._retainLoadedChildren(l,i,o,a),s)a[y]||(this._coveredTiles[y]=!0,a[y]=s[y])}for(var m in a)this._tiles[m].clearFadeHold();for(var g=0,v=vt.keysDifference(this._tiles,a);g<v.length;g+=1){var x=v[g],_=this._tiles[x];_.hasSymbolBuckets&&!_.holdingForFade()?_.setHoldDuration(this.map._fadeDuration):_.hasSymbolBuckets&&!_.symbolFadeFinished()||this._removeTile(x)}this._updateLoadedParentTileCache()}},un.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)},un.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},r=Math.max(e-un.maxOverzooming,this._source.minzoom),o=Math.max(e+un.maxUnderzooming,this._source.minzoom),a={},s=0,l=t;s<l.length;s+=1){var u=l[s],h=this._addTile(u);n[u.key]=u,h.hasData()||e<this._source.maxzoom&&(a[u.key]=u)}this._retainLoadedChildren(a,e,o,n);for(var c=0,p=t;c<p.length;c+=1){var f=p[c],d=this._tiles[f.key];if(!d.hasData()){if(e+1>this._source.maxzoom){var y=f.children(this._source.maxzoom)[0],m=this.getTile(y);if(m&&m.hasData()){n[y.key]=y;continue}}else{var g=f.children(this._source.maxzoom);if(n[g[0].key]&&n[g[1].key]&&n[g[2].key]&&n[g[3].key])continue}for(var v=d.wasRequested(),x=f.overscaledZ-1;r<=x;--x){var _=f.scaledTo(x);if(i[_.key])break;if(i[_.key]=!0,!(d=this.getTile(_))&&v&&(d=this._addTile(_)),d&&(n[_.key]=_,v=d.wasRequested(),d.hasData()))break}}}return n},un.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],n=void 0,i=this._tiles[t].tileID;0<i.overscaledZ;){if(i.key in this._loadedParentTiles){n=this._loadedParentTiles[i.key];break}e.push(i.key);var r=i.scaledTo(i.overscaledZ-1);if(n=this._getLoadedTile(r))break;i=r}for(var o=0,a=e;o<a.length;o+=1)this._loadedParentTiles[a[o]]=n}},un.prototype._addTile=function(t){var e=this._tiles[t.key];if(e)return e;(e=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,e),e.tileID=t,this._state.initializeTileState(e,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,e)));var n=Boolean(e);return n||(e=new vt.Tile(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(e,this._tileLoaded.bind(this,e,t.key,e.state))),e?(e.uses++,this._tiles[t.key]=e,n||this._source.fire(new vt.Event("dataloading",{tile:e,coord:e.tileID,dataType:"source"})),e):null},un.prototype._setTileReloadTimer=function(t,e){var n=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var i=e.getExpiryTimeout();i&&(this._timers[t]=setTimeout(function(){n._reloadTile(t,"expired"),delete n._timers[t]},i))},un.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),0<e.uses||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},un.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},un.prototype.tilesIn=function(t,l,e){var u=this,h=[],c=this.transform;if(!c)return h;for(var n=e?c.getCameraQueryGeometry(t):t,p=t.map(function(t){return c.pointCoordinate(t)}),f=n.map(function(t){return c.pointCoordinate(t)}),d=this.getIds(),y=1/0,m=1/0,g=-1/0,v=-1/0,i=0,r=f;i<r.length;i+=1){var o=r[i];y=Math.min(y,o.x),m=Math.min(m,o.y),g=Math.max(g,o.x),v=Math.max(v,o.y)}for(var a=function(t){var e=u._tiles[d[t]];if(!e.holdingForFade()){var n=e.tileID,i=Math.pow(2,c.zoom-e.tileID.overscaledZ),r=l*e.queryPadding*vt.EXTENT/e.tileSize/i,o=[n.getTilePoint(new vt.MercatorCoordinate(y,m)),n.getTilePoint(new vt.MercatorCoordinate(g,v))];if(o[0].x-r<vt.EXTENT&&o[0].y-r<vt.EXTENT&&0<=o[1].x+r&&0<=o[1].y+r){var a=p.map(function(t){return n.getTilePoint(t)}),s=f.map(function(t){return n.getTilePoint(t)});h.push({tile:e,tileID:n,queryGeometry:a,cameraQueryGeometry:s,scale:i})}}},s=0;s<d.length;s++)a(s);return h},un.prototype.getVisibleCoordinates=function(t){for(var e=this,n=this.getRenderableIds(t).map(function(t){return e._tiles[t].tileID}),i=0,r=n;i<r.length;i+=1){var o=r[i];o.posMatrix=this.transform.calculatePosMatrix(o.toUnwrapped())}return n},un.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(cn(this._source.type))for(var t in this._tiles){var e=this._tiles[t];if(void 0!==e.fadeEndTime&&e.fadeEndTime>=vt.browser.now())return!0}return!1},un.prototype.setFeatureState=function(t,e,n){this._state.updateState(t=t||"_geojsonTileLayer",e,n)},un.prototype.removeFeatureState=function(t,e,n){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,n)},un.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)},un.prototype.setDependencies=function(t,e,n){var i=this._tiles[t];i&&i.setDependencies(e,n)},un.prototype.reloadTilesForDependencies=function(e,n){for(var t in this._tiles)this._tiles[t].hasDependency(e,n)&&this._reloadTile(t,"reloading");this._cache.filter(function(t){return!t.hasDependency(e,n)})},un);function un(t,e,n){var i=this;sn.call(this),this.id=t,this.dispatcher=n,this.on("data",function(t){"source"===t.dataType&&"metadata"===t.sourceDataType&&(i._sourceLoaded=!0),i._sourceLoaded&&!i._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(i.reload(),i.transform&&i.update(i.transform))}),this.on("error",function(){i._sourceErrored=!0}),this._source=function(t,e,n,i){var r=new U[e.type](t,e,n,i);if(r.id!==t)throw new Error("Expected Source id to be "+t+" instead of "+r.id);return vt.bindAll(["load","abort","unload","serialize","prepare"],r),r}(t,e,n,this),this._tiles={},this._cache=new tt(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new vt.SourceFeatureState}function hn(t,e){var n=Math.abs(2*t.wrap)-+(t.wrap<0),i=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||i-n||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function cn(t){return"raster"===t||"image"===t||"video"===t}function pn(){return new vt.window.Worker(Oa.workerUrl)}ln.maxOverzooming=10,ln.maxUnderzooming=3;var fn="mapboxgl_preloaded_worker_pool",dn=function(){this.active={}};dn.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length<dn.workerCount;)this.workers.push(new pn);return this.active[t]=!0,this.workers.slice()},dn.prototype.release=function(t){delete this.active[t],0===this.numActive()&&(this.workers.forEach(function(t){t.terminate()}),this.workers=null)},dn.prototype.isPreloaded=function(){return!!this.active[fn]},dn.prototype.numActive=function(){return Object.keys(this.active).length};var yn,mn=Math.floor(vt.browser.hardwareConcurrency/2);function gn(){return yn=yn||new dn}function vn(t,e){var n={};for(var i in t)"ref"!==i&&(n[i]=t[i]);return vt.refProperties.forEach(function(t){t in e&&(n[t]=e[t])}),n}function xn(t){t=t.slice();for(var e=Object.create(null),n=0;n<t.length;n++)e[t[n].id]=t[n];for(var i=0;i<t.length;i++)"ref"in t[i]&&(t[i]=vn(t[i],e[t[i].ref]));return t}dn.workerCount=Math.max(Math.min(mn,6),1);var _n={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function wn(t,e,n){n.push({command:_n.addSource,args:[t,e[t]]})}function bn(t,e,n){e.push({command:_n.removeSource,args:[t]}),n[t]=!0}function Pn(t,e,n){var i;for(i in t[n])if(t[n].hasOwnProperty(i)&&"data"!==i&&!vt.deepEqual(t[n][i],e[n][i]))return!1;for(i in e[n])if(e[n].hasOwnProperty(i)&&"data"!==i&&!vt.deepEqual(t[n][i],e[n][i]))return!1;return!0}function Sn(t,e,n,i,r,o){var a;for(a in e=e||{},t=t||{})t.hasOwnProperty(a)&&(vt.deepEqual(t[a],e[a])||n.push({command:o,args:[i,a,e[a],r]}));for(a in e)e.hasOwnProperty(a)&&!t.hasOwnProperty(a)&&(vt.deepEqual(t[a],e[a])||n.push({command:o,args:[i,a,e[a],r]}))}function Cn(t){return t.id}function Mn(t,e){return t[e.id]=e,t}function Tn(t,e){this.reset(t,e)}function An(t,e,n){var i=this.boxCells=[],r=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(e/n);for(var o=0;o<this.xCellCount*this.yCellCount;o++)i.push([]),r.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0}function En(t,e,n,i,r){var o=vt.create();return e?(vt.scale(o,o,[1/r,1/r,1]),n||vt.rotateZ(o,o,i.angle)):vt.multiply(o,i.labelPlaneMatrix,t),o}function In(t,e,n,i,r){if(e){var o=vt.clone(t);return vt.scale(o,o,[r,r,1]),n||vt.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function Ln(t,e){var n=[t.x,t.y,0,1];Vn(n,n,e);var i=n[3];return{point:new vt.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function Rn(t,e){return.5+t/e*.5}function On(t,e,n,i,r,o,a,s){var l,u,h,c,p=i?t.textSizeData:t.iconSizeData,f=vt.evaluateSizeForZoom(p,n.transform.zoom),d=[256/n.width*2+1,256/n.height*2+1],y=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;y.clear();for(var m=t.lineVertexArray,g=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,v=n.transform.width/n.transform.height,x=!1,_=0;_<g.length;_++){var w=g.get(_);if(w.hidden||w.writingMode===vt.WritingMode.vertical&&!x)jn(w.numGlyphs,y);else{x=!1;var b=[w.anchorX,w.anchorY,0,1];if(vt.transformMat4(b,b,e),u=d,h=(l=b)[0]/l[3],c=l[1]/l[3],h>=-u[0]&&h<=u[0]&&c>=-u[1]&&c<=u[1]){var P=Rn(n.transform.cameraToCenterDistance,b[3]),S=vt.evaluateSizeForFeature(p,f,w),C=a?S/P:S*P,M=new vt.Point(w.anchorX,w.anchorY),T=Ln(M,r).point,A={},E=zn(w,C,!1,s,e,r,o,t.glyphOffsetArray,m,y,T,M,A,v);x=E.useVertical,(E.notEnoughRoom||x||E.needsFlipping&&zn(w,C,!0,s,e,r,o,t.glyphOffsetArray,m,y,T,M,A,v).notEnoughRoom)&&jn(w.numGlyphs,y)}else jn(w.numGlyphs,y)}}i?t.text.dynamicLayoutVertexBuffer.updateData(y):t.icon.dynamicLayoutVertexBuffer.updateData(y)}function Nn(t,e,n,i,r,o,a,s,l,u,h){var c=s.glyphStartIndex+s.numGlyphs,p=s.lineStartIndex,f=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),y=e.getoffsetX(c-1),m=Fn(t*d,n,i,r,o,a,s.segment,p,f,l,u,h);if(!m)return null;var g=Fn(t*y,n,i,r,o,a,s.segment,p,f,l,u,h);return g?{first:m,last:g}:null}function kn(t,e,n,i){return t===vt.WritingMode.horizontal&&Math.abs(n.y-e.y)>Math.abs(n.x-e.x)*i?{useVertical:!0}:(t===vt.WritingMode.vertical?e.y<n.y:e.x>n.x)?{needsFlipping:!0}:null}function zn(t,e,n,i,r,o,a,s,l,u,h,c,p,f){var d,y=e/24,m=t.lineOffsetX*y,g=t.lineOffsetY*y;if(1<t.numGlyphs){var v=t.glyphStartIndex+t.numGlyphs,x=t.lineStartIndex,_=t.lineStartIndex+t.lineLength,w=Nn(y,s,m,g,n,h,c,t,l,o,p);if(!w)return{notEnoughRoom:!0};var b=Ln(w.first.point,a).point,P=Ln(w.last.point,a).point;if(i&&!n){var S=kn(t.writingMode,b,P,f);if(S)return S}d=[w.first];for(var C=t.glyphStartIndex+1;C<v-1;C++)d.push(Fn(y*s.getoffsetX(C),m,g,n,h,c,t.segment,x,_,l,o,p));d.push(w.last)}else{if(i&&!n){var M=Ln(c,r).point,T=t.lineStartIndex+t.segment+1,A=new vt.Point(l.getx(T),l.gety(T)),E=Ln(A,r),I=0<E.signedDistanceFromCamera?E.point:Dn(c,A,M,1,r),L=kn(t.writingMode,M,I,f);if(L)return L}var R=Fn(y*s.getoffsetX(t.glyphStartIndex),m,g,n,h,c,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,l,o,p);if(!R)return{notEnoughRoom:!0};d=[R]}for(var O=0,N=d;O<N.length;O+=1){var k=N[O];vt.addDynamicAttributes(u,k.point,k.angle)}return{}}function Dn(t,e,n,i,r){var o=Ln(t.add(t.sub(e)._unit()),r).point,a=n.sub(o);return n.add(a._mult(i/a.mag()))}function Fn(t,e,n,i,r,o,a,s,l,u,h,c){var p=i?t-e:t+e,f=0<p?1:-1,d=0;i&&(f*=-1,d=Math.PI),f<0&&(d+=Math.PI);for(var y=0<f?s+a:s+a+1,m=r,g=r,v=0,x=0,_=Math.abs(p),w=[];v+x<=_;){if((y+=f)<s||l<=y)return null;if(g=m,w.push(m),void 0===(m=c[y])){var b=new vt.Point(u.getx(y),u.gety(y)),P=Ln(b,h);if(0<P.signedDistanceFromCamera)m=c[y]=P.point;else{var S=y-f;m=Dn(0===v?o:new vt.Point(u.getx(S),u.gety(S)),b,g,_-v+1,h)}}v+=x,x=g.dist(m)}var C=(_-v)/x,M=m.sub(g),T=M.mult(C)._add(g);T._add(M._unit()._perp()._mult(n*f));var A=d+Math.atan2(m.y-g.y,m.x-g.x);return w.push(T),{point:T,angle:A,path:w}}Tn.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Tn.prototype.lerp=function(t){if(1===this.points.length)return this.points[0];t=vt.clamp(t,0,1);for(var e=1,n=this._distances[e],i=t*this.paddedLength+this.padding;n<i&&e<this._distances.length;)n=this._distances[++e];var r=e-1,o=this._distances[r],a=n-o,s=0<a?(i-o)/a:0;return this.points[r].mult(1-s).add(this.points[e].mult(s))},An.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},An.prototype.insert=function(t,e,n,i,r){this._forEachCell(e,n,i,r,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)},An.prototype.insertCircle=function(t,e,n,i){this._forEachCell(e-i,n-i,e+i,n+i,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(n),this.circles.push(i)},An.prototype._insertBoxCell=function(t,e,n,i,r,o){this.boxCells[r].push(o)},An.prototype._insertCircleCell=function(t,e,n,i,r,o){this.circleCells[r].push(o)},An.prototype._query=function(t,e,n,i,r,o){if(n<0||t>this.width||i<0||e>this.height)return!r&&[];var a=[];if(t<=0&&e<=0&&this.width<=n&&this.height<=i){if(r)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l<this.circleKeys.length;l++){var u=this.circles[3*l],h=this.circles[3*l+1],c=this.circles[3*l+2];a.push({key:this.circleKeys[l],x1:u-c,y1:h-c,x2:u+c,y2:h+c})}return o?a.filter(o):a}return this._forEachCell(t,e,n,i,this._queryCell,a,{hitTest:r,seenUids:{box:{},circle:{}}},o),r?0<a.length:a},An.prototype._queryCircle=function(t,e,n,i,r){var o=t-n,a=t+n,s=e-n,l=e+n;if(a<0||o>this.width||l<0||s>this.height)return!i&&[];var u=[];return this._forEachCell(o,s,a,l,this._queryCellCircle,u,{hitTest:i,circle:{x:t,y:e,radius:n},seenUids:{box:{},circle:{}}},r),i?0<u.length:u},An.prototype.query=function(t,e,n,i,r){return this._query(t,e,n,i,!1,r)},An.prototype.hitTest=function(t,e,n,i,r){return this._query(t,e,n,i,!0,r)},An.prototype.hitTestCircle=function(t,e,n,i){return this._queryCircle(t,e,n,!0,i)},An.prototype._queryCell=function(t,e,n,i,r,o,a,s){var l=a.seenUids,u=this.boxCells[r];if(null!==u)for(var h=this.bboxes,c=0,p=u;c<p.length;c+=1){var f=p[c];if(!l.box[f]){l.box[f]=!0;var d=4*f;if(t<=h[2+d]&&e<=h[3+d]&&n>=h[0+d]&&i>=h[1+d]&&(!s||s(this.boxKeys[f]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[f],x1:h[d],y1:h[1+d],x2:h[2+d],y2:h[3+d]})}}}var y=this.circleCells[r];if(null!==y)for(var m=this.circles,g=0,v=y;g<v.length;g+=1){var x=v[g];if(!l.circle[x]){l.circle[x]=!0;var _=3*x;if(this._circleAndRectCollide(m[_],m[1+_],m[2+_],t,e,n,i)&&(!s||s(this.circleKeys[x]))){if(a.hitTest)return o.push(!0),!0;var w=m[_],b=m[1+_],P=m[2+_];o.push({key:this.circleKeys[x],x1:w-P,y1:b-P,x2:w+P,y2:b+P})}}}},An.prototype._queryCellCircle=function(t,e,n,i,r,o,a,s){var l=a.circle,u=a.seenUids,h=this.boxCells[r];if(null!==h)for(var c=this.bboxes,p=0,f=h;p<f.length;p+=1){var d=f[p];if(!u.box[d]){u.box[d]=!0;var y=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,c[0+y],c[1+y],c[2+y],c[3+y])&&(!s||s(this.boxKeys[d])))return o.push(!0),!0}}var m=this.circleCells[r];if(null!==m)for(var g=this.circles,v=0,x=m;v<x.length;v+=1){var _=x[v];if(!u.circle[_]){u.circle[_]=!0;var w=3*_;if(this._circlesCollide(g[w],g[1+w],g[2+w],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[_])))return o.push(!0),!0}}},An.prototype._forEachCell=function(t,e,n,i,r,o,a,s){for(var l=this._convertToXCellCoord(t),u=this._convertToYCellCoord(e),h=this._convertToXCellCoord(n),c=this._convertToYCellCoord(i),p=l;p<=h;p++)for(var f=u;f<=c;f++)if(r.call(this,t,e,n,i,this.xCellCount*f+p,o,a,s))return},An.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},An.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},An.prototype._circlesCollide=function(t,e,n,i,r,o){var a=i-t,s=r-e,l=n+o;return a*a+s*s<l*l},An.prototype._circleAndRectCollide=function(t,e,n,i,r,o,a){var s=(o-i)/2,l=Math.abs(t-(i+s));if(s+n<l)return!1;var u=(a-r)/2,h=Math.abs(e-(r+u));if(u+n<h)return!1;if(l<=s||h<=u)return!0;var c=l-s,p=h-u;return c*c+p*p<=n*n};var Gn=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function jn(t,e){for(var n=0;n<t;n++){var i=e.length;e.resize(i+4),e.float32.set(Gn,3*i)}}function Vn(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t[3]=n[3]*i+n[7]*r+n[15],t}function qn(t,e,n){void 0===e&&(e=new An(t.width+200,t.height+200,25)),void 0===n&&(n=new An(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=n,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200}function Bn(t,e,n){return e*(vt.EXTENT/(t.tileSize*Math.pow(2,n-t.tileID.overscaledZ)))}function Un(t,e,n,i){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):i&&n?1:0,this.placed=n}function Wn(t,e,n,i,r){this.text=new Un(t?t.text:null,e,n,r),this.icon=new Un(t?t.icon:null,e,i,r)}function Zn(t,e,n){this.text=t,this.icon=e,this.skipFade=n}function Xn(){this.invProjMatrix=vt.create(),this.viewportMatrix=vt.create(),this.circles=[]}function Hn(t,e,n,i,r){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=n,this.bucketIndex=i,this.tileID=r}function Yn(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}function Kn(t,e,n,i,r){var o=vt.getAnchorAlignment(t),a=-(o.horizontalAlign-.5)*e,s=-(o.verticalAlign-.5)*n,l=vt.evaluateVariableOffset(t,i);return new vt.Point(a+l[0]*r,s+l[1]*r)}function Jn(t,e,n,i,r,o){var a=t.x1,s=t.x2,l=t.y1,u=t.y2,h=t.anchorPointX,c=t.anchorPointY,p=new vt.Point(e,n);return i&&p._rotate(r?o:-o),{x1:a+p.x,y1:l+p.y,x2:s+p.x,y2:u+p.y,anchorPointX:h,anchorPointY:c}}function Qn(t,e,n,i){this.transform=t.clone(),this.collisionIndex=new qn(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new Yn(n),this.collisionCircleArrays={},(this.prevPlacement=i)&&(i.prevPlacement=void 0),this.placedOrientations={}}function $n(t,e,n,i,r){t.emplaceBack(e?1:0,n?1:0,i||0,r||0),t.emplaceBack(e?1:0,n?1:0,i||0,r||0),t.emplaceBack(e?1:0,n?1:0,i||0,r||0),t.emplaceBack(e?1:0,n?1:0,i||0,r||0)}qn.prototype.placeCollisionBox=function(t,e,n,i,r){var o=this.projectAndGetPerspectiveRatio(i,t.anchorPointX,t.anchorPointY),a=n*o.perspectiveRatio,s=t.x1*a+o.point.x,l=t.y1*a+o.point.y,u=t.x2*a+o.point.x,h=t.y2*a+o.point.y;return!this.isInsideGrid(s,l,u,h)||!e&&this.grid.hitTest(s,l,u,h,r)?{box:[],offscreen:!1}:{box:[s,l,u,h],offscreen:this.isOffscreen(s,l,u,h)}},qn.prototype.placeCollisionCircles=function(t,e,n,i,r,o,a,s,l,u,h,c,p){var f=[],d=new vt.Point(e.anchorX,e.anchorY),y=Ln(d,o),m=Rn(this.transform.cameraToCenterDistance,y.signedDistanceFromCamera),g=(u?r/m:r*m)/vt.ONE_EM,v=Ln(d,a).point,x=Nn(g,i,e.lineOffsetX*g,e.lineOffsetY*g,!1,v,d,e,n,a,{}),_=!1,w=!1,b=!0;if(x){for(var P=.5*c*m+p,S=new vt.Point(-100,-100),C=new vt.Point(this.screenRightBoundary,this.screenBottomBoundary),M=new Tn,T=x.first,A=x.last,E=[],I=T.path.length-1;1<=I;I--)E.push(T.path[I]);for(var L=1;L<A.path.length;L++)E.push(A.path[L]);var R=2.5*P;if(s){var O=E.map(function(t){return Ln(t,s)});E=O.some(function(t){return t.signedDistanceFromCamera<=0})?[]:O.map(function(t){return t.point})}var N=[];if(0<E.length){for(var k=E[0].clone(),z=E[0].clone(),D=1;D<E.length;D++)k.x=Math.min(k.x,E[D].x),k.y=Math.min(k.y,E[D].y),z.x=Math.max(z.x,E[D].x),z.y=Math.max(z.y,E[D].y);N=k.x>=S.x&&z.x<=C.x&&k.y>=S.y&&z.y<=C.y?[E]:z.x<S.x||k.x>C.x||z.y<S.y||k.y>C.y?[]:vt.clipLine([E],S.x,S.y,C.x,C.y)}for(var F=0,G=N;F<G.length;F+=1){var j;M.reset(G[F],.25*P),j=M.length<=.5*P?1:Math.ceil(M.paddedLength/R)+1;for(var V=0;V<j;V++){var q=V/Math.max(j-1,1),B=M.lerp(q),U=B.x+100,W=B.y+100;f.push(U,W,P,0);var Z=U-P,X=W-P,H=U+P,Y=W+P;if(b=b&&this.isOffscreen(Z,X,H,Y),w=w||this.isInsideGrid(Z,X,H,Y),!t&&this.grid.hitTestCircle(U,W,P,h)&&(_=!0,!l))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!l&&_||!w?[]:f,offscreen:b,collisionDetected:_}},qn.prototype.queryRenderedSymbols=function(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var e=[],n=1/0,i=1/0,r=-1/0,o=-1/0,a=0,s=t;a<s.length;a+=1){var l=s[a],u=new vt.Point(l.x+100,l.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),r=Math.max(r,u.x),o=Math.max(o,u.y),e.push(u)}for(var h={},c={},p=0,f=this.grid.query(n,i,r,o).concat(this.ignoredGrid.query(n,i,r,o));p<f.length;p+=1){var d=f[p],y=d.key;if(void 0===h[y.bucketInstanceId]&&(h[y.bucketInstanceId]={}),!h[y.bucketInstanceId][y.featureIndex]){var m=[new vt.Point(d.x1,d.y1),new vt.Point(d.x2,d.y1),new vt.Point(d.x2,d.y2),new vt.Point(d.x1,d.y2)];vt.polygonIntersectsPolygon(e,m)&&(h[y.bucketInstanceId][y.featureIndex]=!0,void 0===c[y.bucketInstanceId]&&(c[y.bucketInstanceId]=[]),c[y.bucketInstanceId].push(y.featureIndex))}}return c},qn.prototype.insertCollisionBox=function(t,e,n,i,r){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:i,collisionGroupID:r},t[0],t[1],t[2],t[3])},qn.prototype.insertCollisionCircles=function(t,e,n,i,r){for(var o=e?this.ignoredGrid:this.grid,a={bucketInstanceId:n,featureIndex:i,collisionGroupID:r},s=0;s<t.length;s+=4)o.insertCircle(a,t[s],t[s+1],t[s+2])},qn.prototype.projectAndGetPerspectiveRatio=function(t,e,n){var i=[e,n,0,1];return Vn(i,i,t),{point:new vt.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},qn.prototype.isOffscreen=function(t,e,n,i){return n<100||t>=this.screenRightBoundary||i<100||e>this.screenBottomBoundary},qn.prototype.isInsideGrid=function(t,e,n,i){return 0<=n&&t<this.gridRightBoundary&&0<=i&&e<this.gridBottomBoundary},qn.prototype.getViewportMatrix=function(){var t=vt.identity([]);return vt.translate(t,t,[-100,-100,0]),t},Un.prototype.isHidden=function(){return 0===this.opacity&&!this.placed},Wn.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()},Yn.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]},Qn.prototype.getBucketParts=function(t,e,n,i){var r=n.getBucket(e),o=n.latestFeatureIndex;if(r&&o&&e.id===r.layerIds[0]){var a=n.collisionBoxArray,s=r.layers[0].layout,l=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/vt.EXTENT,h=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),c="map"===s.get("text-pitch-alignment"),p="map"===s.get("text-rotation-alignment"),f=Bn(n,1,this.transform.zoom),d=En(h,c,p,this.transform,f),y=null;if(c){var m=In(h,c,p,this.transform,f);y=vt.multiply([],this.transform.labelPlaneMatrix,m)}this.retainedQueryData[r.bucketInstanceId]=new Hn(r.bucketInstanceId,o,r.sourceLayerIndex,r.index,n.tileID);var g={bucket:r,layout:s,posMatrix:h,textLabelPlaneMatrix:d,labelToScreenMatrix:y,scale:l,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:a,partiallyEvaluatedTextSize:vt.evaluateSizeForZoom(r.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(r.sourceID)};if(i)for(var v=0,x=r.sortKeyRanges;v<x.length;v+=1){var _=x[v];t.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:g})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:r.symbolInstances.length,parameters:g})}},Qn.prototype.attemptAnchorPlacement=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d){var y,m=[c.textOffset0,c.textOffset1],g=Kn(t,n,i,m,r),v=this.collisionIndex.placeCollisionBox(Jn(e,g.x,g.y,o,a,this.transform.angle),h,s,l,u.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(Jn(d,g.x,g.y,o,a,this.transform.angle),h,s,l,u.predicate).box.length)return 0<v.box.length?(this.prevPlacement&&this.prevPlacement.variableOffsets[c.crossTileID]&&this.prevPlacement.placements[c.crossTileID]&&this.prevPlacement.placements[c.crossTileID].text&&(y=this.prevPlacement.variableOffsets[c.crossTileID].anchor),this.variableOffsets[c.crossTileID]={textOffset:m,width:n,height:i,anchor:t,textBoxScale:r,prevAnchor:y},this.markUsedJustification(p,t,c,f),p.allowVerticalPlacement&&(this.markUsedOrientation(p,f,c),this.placedOrientations[c.crossTileID]=f),{shift:g,placedGlyphBoxes:v}):void 0},Qn.prototype.placeLayerBucketPart=function(t,R,O){var N=this,e=t.parameters,k=e.bucket,z=e.layout,D=e.posMatrix,F=e.textLabelPlaneMatrix,G=e.labelToScreenMatrix,j=e.textPixelRatio,V=e.holdingForFade,n=e.collisionBoxArray,q=e.partiallyEvaluatedTextSize,B=e.collisionGroup,U=z.get("text-optional"),W=z.get("icon-optional"),Z=z.get("text-allow-overlap"),X=z.get("icon-allow-overlap"),H="map"===z.get("text-rotation-alignment"),Y="map"===z.get("text-pitch-alignment"),K="none"!==z.get("icon-text-fit"),i="viewport-y"===z.get("symbol-z-order"),J=Z&&(X||!k.hasIconData()||W),Q=X&&(Z||!k.hasTextData()||U);function r(c,r){if(!R[c.crossTileID])if(V)N.placements[c.crossTileID]=new Zn(!1,!1,!1);else{var t,p=!1,e=!1,n=!0,f=null,o={box:null,offscreen:null},a={box:null,offscreen:null},i=null,s=null,l=0,u=0,h=0;r.textFeatureIndex?l=r.textFeatureIndex:c.useRuntimeCollisionCircles&&(l=c.featureIndex),r.verticalTextFeatureIndex&&(u=r.verticalTextFeatureIndex);var d=r.textBox;if(d){var y=function(t){var e=vt.WritingMode.horizontal;if(k.allowVerticalPlacement&&!t&&N.prevPlacement){var n=N.prevPlacement.placedOrientations[c.crossTileID];n&&(N.placedOrientations[c.crossTileID]=n,N.markUsedOrientation(k,e=n,c))}return e},m=function(t,e){if(k.allowVerticalPlacement&&0<c.numVerticalGlyphVertices&&r.verticalTextBox)for(var n=0,i=k.writingModes;n<i.length&&(i[n]===vt.WritingMode.vertical?(o=e(),a=o):o=t(),!(o&&o.box&&o.box.length));n+=1);else o=t()};if(z.get("text-variable-anchor")){var g=z.get("text-variable-anchor");if(N.prevPlacement&&N.prevPlacement.variableOffsets[c.crossTileID]){var v=N.prevPlacement.variableOffsets[c.crossTileID];0<g.indexOf(v.anchor)&&(g=g.filter(function(t){return t!==v.anchor})).unshift(v.anchor)}var x=function(t,e,n){for(var i=t.x2-t.x1,r=t.y2-t.y1,o=c.textBoxScale,a=K&&!X?e:null,s={box:[],offscreen:!1},l=Z?2*g.length:g.length,u=0;u<l;++u){var h=N.attemptAnchorPlacement(g[u%g.length],t,i,r,o,H,Y,j,D,B,u>=g.length,c,k,n,a);if(h&&(s=h.placedGlyphBoxes)&&s.box&&s.box.length){p=!0,f=h.shift;break}}return s};m(function(){return x(d,r.iconBox,vt.WritingMode.horizontal)},function(){var t=r.verticalTextBox;return k.allowVerticalPlacement&&!(o&&o.box&&o.box.length)&&0<c.numVerticalGlyphVertices&&t?x(t,r.verticalIconBox,vt.WritingMode.vertical):{box:null,offscreen:null}}),o&&(p=o.box,n=o.offscreen);var _=y(o&&o.box);if(!p&&N.prevPlacement){var w=N.prevPlacement.variableOffsets[c.crossTileID];w&&(N.variableOffsets[c.crossTileID]=w,N.markUsedJustification(k,w.anchor,c,_))}}else{var b=function(t,e){var n=N.collisionIndex.placeCollisionBox(t,Z,j,D,B.predicate);return n&&n.box&&n.box.length&&(N.markUsedOrientation(k,e,c),N.placedOrientations[c.crossTileID]=e),n};m(function(){return b(d,vt.WritingMode.horizontal)},function(){var t=r.verticalTextBox;return k.allowVerticalPlacement&&0<c.numVerticalGlyphVertices&&t?b(t,vt.WritingMode.vertical):{box:null,offscreen:null}}),y(o&&o.box&&o.box.length)}}if(p=(t=o)&&t.box&&0<t.box.length,n=t&&t.offscreen,c.useRuntimeCollisionCircles){var P=k.text.placedSymbolArray.get(c.centerJustifiedTextSymbolIndex),S=vt.evaluateSizeForFeature(k.textSizeData,q,P),C=z.get("text-padding");i=N.collisionIndex.placeCollisionCircles(Z,P,k.lineVertexArray,k.glyphOffsetArray,S,D,F,G,O,Y,B.predicate,c.collisionCircleDiameter,C),p=Z||0<i.circles.length&&!i.collisionDetected,n=n&&i.offscreen}if(r.iconFeatureIndex&&(h=r.iconFeatureIndex),r.iconBox){var M=function(t){var e=K&&f?Jn(t,f.x,f.y,H,Y,N.transform.angle):t;return N.collisionIndex.placeCollisionBox(e,X,j,D,B.predicate)};e=a&&a.box&&a.box.length&&r.verticalIconBox?0<(s=M(r.verticalIconBox)).box.length:0<(s=M(r.iconBox)).box.length,n=n&&s.offscreen}var T=U||0===c.numHorizontalGlyphVertices&&0===c.numVerticalGlyphVertices,A=W||0===c.numIconVertices;if(T||A?A?T||(e=e&&p):p=e&&p:e=p=e&&p,p&&t&&t.box&&N.collisionIndex.insertCollisionBox(t.box,z.get("text-ignore-placement"),k.bucketInstanceId,a&&a.box&&u?u:l,B.ID),e&&s&&N.collisionIndex.insertCollisionBox(s.box,z.get("icon-ignore-placement"),k.bucketInstanceId,h,B.ID),i&&(p&&N.collisionIndex.insertCollisionCircles(i.circles,z.get("text-ignore-placement"),k.bucketInstanceId,l,B.ID),O)){var E=k.bucketInstanceId,I=N.collisionCircleArrays[E];void 0===I&&(I=N.collisionCircleArrays[E]=new Xn);for(var L=0;L<i.circles.length;L+=4)I.circles.push(i.circles[L+0]),I.circles.push(i.circles[L+1]),I.circles.push(i.circles[L+2]),I.circles.push(i.collisionDetected?1:0)}N.placements[c.crossTileID]=new Zn(p||J,e||Q,n||k.justReloaded),R[c.crossTileID]=!0}}if(!k.collisionArrays&&n&&k.deserializeCollisionBoxes(n),i)for(var o=k.getSortedSymbolIndexes(this.transform.angle),a=o.length-1;0<=a;--a){var s=o[a];r(k.symbolInstances.get(s),k.collisionArrays[s])}else for(var l=t.symbolInstanceStart;l<t.symbolInstanceEnd;l++)r(k.symbolInstances.get(l),k.collisionArrays[l]);if(O&&k.bucketInstanceId in this.collisionCircleArrays){var u=this.collisionCircleArrays[k.bucketInstanceId];vt.invert(u.invProjMatrix,D),u.viewportMatrix=this.collisionIndex.getViewportMatrix()}k.justReloaded=!1},Qn.prototype.markUsedJustification=function(t,e,n,i){var r;r=i===vt.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[vt.getAnchorJustification(e)];for(var o=0,a=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];o<a.length;o+=1){var s=a[o];0<=s&&(t.text.placedSymbolArray.get(s).crossTileID=0<=r&&s!==r?0:n.crossTileID)}},Qn.prototype.markUsedOrientation=function(t,e,n){for(var i=e===vt.WritingMode.horizontal||e===vt.WritingMode.horizontalOnly?e:0,r=e===vt.WritingMode.vertical?e:0,o=0,a=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o<a.length;o+=1)t.text.placedSymbolArray.get(a[o]).placedOrientation=i;n.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=r)},Qn.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,n=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var i=e?e.symbolFadeChange(t):1,r=e?e.opacities:{},o=e?e.variableOffsets:{},a=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],u=r[s];n=u?(this.opacities[s]=new Wn(u,i,l.text,l.icon),n||l.text!==u.text.placed||l.icon!==u.icon.placed):(this.opacities[s]=new Wn(null,i,l.text,l.icon,l.skipFade),n||l.text||l.icon)}for(var h in r){var c=r[h];if(!this.opacities[h]){var p=new Wn(c,i,!1,!1);p.isHidden()||(this.opacities[h]=p,n=n||c.text.placed||c.icon.placed)}}for(var f in o)this.variableOffsets[f]||!this.opacities[f]||this.opacities[f].isHidden()||(this.variableOffsets[f]=o[f]);for(var d in a)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=a[d]);n?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},Qn.prototype.updateLayerOpacities=function(t,e){for(var n={},i=0,r=e;i<r.length;i+=1){var o=r[i],a=o.getBucket(t);a&&o.latestFeatureIndex&&t.id===a.layerIds[0]&&this.updateBucketOpacities(a,n,o.collisionBoxArray)}},Qn.prototype.updateBucketOpacities=function(w,b,t){var P=this;w.hasTextData()&&w.text.opacityVertexArray.clear(),w.hasIconData()&&w.icon.opacityVertexArray.clear(),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();var e=w.layers[0].layout,S=new Wn(null,0,!1,!1,!0),n=e.get("text-allow-overlap"),i=e.get("icon-allow-overlap"),C=e.get("text-variable-anchor"),M="map"===e.get("text-rotation-alignment"),T="map"===e.get("text-pitch-alignment"),A="none"!==e.get("icon-text-fit"),E=new Wn(null,0,n&&(i||!w.hasIconData()||e.get("icon-optional")),i&&(n||!w.hasTextData()||e.get("text-optional")),!0);!w.collisionArrays&&t&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(t);for(var I=function(t,e,n){for(var i=0;i<e/4;i++)t.opacityVertexArray.emplaceBack(n)},r=function(t){var e=w.symbolInstances.get(t),n=e.numHorizontalGlyphVertices,i=e.numVerticalGlyphVertices,r=e.crossTileID,o=P.opacities[r];b[r]?o=S:o||(P.opacities[r]=o=E),b[r]=!0;var a=0<e.numIconVertices,s=P.placedOrientations[e.crossTileID],l=s===vt.WritingMode.vertical,u=s===vt.WritingMode.horizontal||s===vt.WritingMode.horizontalOnly;if(0<n||0<i){var h=si(o.text);I(w.text,n,l?ui:h),I(w.text,i,u?ui:h);var c=o.text.isHidden();[e.rightJustifiedTextSymbolIndex,e.centerJustifiedTextSymbolIndex,e.leftJustifiedTextSymbolIndex].forEach(function(t){0<=t&&(w.text.placedSymbolArray.get(t).hidden=c||l?1:0)}),0<=e.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(e.verticalPlacedTextSymbolIndex).hidden=c||u?1:0);var p=P.variableOffsets[e.crossTileID];p&&P.markUsedJustification(w,p.anchor,e,s);var f=P.placedOrientations[e.crossTileID];f&&(P.markUsedJustification(w,"left",e,f),P.markUsedOrientation(w,f,e))}if(a){var d=si(o.icon),y=!(A&&e.verticalPlacedIconSymbolIndex&&l);0<=e.placedIconSymbolIndex&&(I(w.icon,e.numIconVertices,y?d:ui),w.icon.placedSymbolArray.get(e.placedIconSymbolIndex).hidden=o.icon.isHidden()),0<=e.verticalPlacedIconSymbolIndex&&(I(w.icon,e.numVerticalIconVertices,y?ui:d),w.icon.placedSymbolArray.get(e.verticalPlacedIconSymbolIndex).hidden=o.icon.isHidden())}if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){var m=w.collisionArrays[t];if(m){var g=new vt.Point(0,0);if(m.textBox||m.verticalTextBox){var v=!0;if(C){var x=P.variableOffsets[r];x?(g=Kn(x.anchor,x.width,x.height,x.textOffset,x.textBoxScale),M&&g._rotate(T?P.transform.angle:-P.transform.angle)):v=!1}m.textBox&&$n(w.textCollisionBox.collisionVertexArray,o.text.placed,!v||l,g.x,g.y),m.verticalTextBox&&$n(w.textCollisionBox.collisionVertexArray,o.text.placed,!v||u,g.x,g.y)}var _=Boolean(!u&&m.verticalIconBox);m.iconBox&&$n(w.iconCollisionBox.collisionVertexArray,o.icon.placed,_,A?g.x:0,A?g.y:0),m.verticalIconBox&&$n(w.iconCollisionBox.collisionVertexArray,o.icon.placed,!_,A?g.x:0,A?g.y:0)}}},o=0;o<w.symbolInstances.length;o++)r(o);if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.bucketInstanceId in this.collisionCircleArrays){var a=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=a.invProjMatrix,w.placementViewportMatrix=a.viewportMatrix,w.collisionCircleArray=a.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}},Qn.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},Qn.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},Qn.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},Qn.prototype.stillRecent=function(t,e){var n=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*n>t},Qn.prototype.setStale=function(){this.stale=!0};var ti=Math.pow(2,25),ei=Math.pow(2,24),ni=Math.pow(2,17),ii=Math.pow(2,16),ri=Math.pow(2,9),oi=Math.pow(2,8),ai=Math.pow(2,1);function si(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,n=Math.floor(127*t.opacity);return n*ti+e*ei+n*ni+e*ii+n*ri+e*oi+n*ai+e}function li(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}var ui=0;function hi(t,e,n,i,r,o,a){this.placement=new Qn(t,r,o,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=i,this._done=!1}function ci(t,e,n){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var i=0;i<e.length;i++){var r=e.get(i),o=r.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:r.crossTileID,coord:this.getScaledCoordinates(r,t)})}}li.prototype.continuePlacement=function(t,e,n,i,r){for(var o=this._bucketParts;this._currentTileIndex<t.length;)if(e.getBucketParts(o,i,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,r())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort(function(t,e){return t.sortKey-e.sortKey}));this._currentPartIndex<o.length;)if(e.placeLayerBucketPart(o[this._currentPartIndex],this._seenCrossTileIDs,n),this._currentPartIndex++,r())return!0;return!1},hi.prototype.isDone=function(){return this._done},hi.prototype.continuePlacement=function(t,e,n){for(var i=this,r=vt.browser.now(),o=function(){var t=vt.browser.now()-r;return!i._forceFullPlacement&&2<t};0<=this._currentPlacementIndex;){var a=e[t[this._currentPlacementIndex]],s=this.placement.collisionIndex.transform.zoom;if("symbol"===a.type&&(!a.minzoom||a.minzoom<=s)&&(!a.maxzoom||a.maxzoom>s)){if(this._inProgressLayer||(this._inProgressLayer=new li(a)),this._inProgressLayer.continuePlacement(n[a.source],this.placement,this._showCollisionBoxes,a,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},hi.prototype.commit=function(t){return this.placement.commit(t),this.placement};var pi=512/vt.EXTENT/2;function fi(){this.maxCrossTileID=0}function di(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}function yi(){this.layerIndexes={},this.crossTileIDs=new fi,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}function mi(t,e){return vt.emitValidationErrors(t,e&&e.filter(function(t){return"source.canvas"!==t.identifier}))}ci.prototype.getScaledCoordinates=function(t,e){var n=pi/Math.pow(2,e.canonical.z-this.tileID.canonical.z);return{x:Math.floor((e.canonical.x*vt.EXTENT+t.anchorX)*n),y:Math.floor((e.canonical.y*vt.EXTENT+t.anchorY)*n)}},ci.prototype.findMatches=function(t,e,n){for(var i=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),r=0;r<t.length;r++){var o=t.get(r);if(!o.crossTileID){var a=this.indexedSymbolInstances[o.key];if(a)for(var s=this.getScaledCoordinates(o,e),l=0,u=a;l<u.length;l+=1){var h=u[l];if(Math.abs(h.coord.x-s.x)<=i&&Math.abs(h.coord.y-s.y)<=i&&!n[h.crossTileID]){n[h.crossTileID]=!0,o.crossTileID=h.crossTileID;break}}}}},fi.prototype.generate=function(){return++this.maxCrossTileID},di.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var n in this.indexes){var i=this.indexes[n],r={};for(var o in i){var a=i[o];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+e),r[a.tileID.key]=a}this.indexes[n]=r}this.lng=t},di.prototype.addBucket=function(t,e,n){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var i=0;i<e.symbolInstances.length;i++)e.symbolInstances.get(i).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var r=this.usedCrossTileIDs[t.overscaledZ];for(var o in this.indexes){var a=this.indexes[o];if(Number(o)>t.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,r)}else{var u=a[t.scaledTo(Number(o)).key];u&&u.findMatches(e.symbolInstances,t,r)}}for(var h=0;h<e.symbolInstances.length;h++){var c=e.symbolInstances.get(h);c.crossTileID||(c.crossTileID=n.generate(),r[c.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new ci(t,e.symbolInstances,e.bucketInstanceId),!0},di.prototype.removeBucketCrossTileIDs=function(t,e){for(var n in e.indexedSymbolInstances)for(var i=0,r=e.indexedSymbolInstances[n];i<r.length;i+=1)delete this.usedCrossTileIDs[t][r[i].crossTileID]},di.prototype.removeStaleBuckets=function(t){var e=!1;for(var n in this.indexes){var i=this.indexes[n];for(var r in i)t[i[r].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,i[r]),delete i[r],e=!0)}return e},yi.prototype.addLayer=function(t,e,n){var i=this.layerIndexes[t.id];void 0===i&&(i=this.layerIndexes[t.id]=new di);var r=!1,o={};i.handleWrapJump(n);for(var a=0,s=e;a<s.length;a+=1){var l=s[a],u=l.getBucket(t);u&&t.id===u.layerIds[0]&&(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),i.addBucket(l.tileID,u,this.crossTileIDs)&&(r=!0),o[u.bucketInstanceId]=!0)}return i.removeStaleBuckets(o)&&(r=!0),r},yi.prototype.pruneUnusedLayers=function(t){var e={};for(var n in t.forEach(function(t){e[t]=!0}),this.layerIndexes)e[n]||delete this.layerIndexes[n]};var gi,vi=vt.pick(_n,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),xi=vt.pick(_n,["setCenter","setZoom","setBearing","setPitch"]),_i=function(){var t={},e=vt.styleSpec.$version;for(var n in vt.styleSpec.$root){var i,r=vt.styleSpec.$root[n];r.required&&null!=(i="version"===n?e:"array"===r.type?[]:{})&&(t[n]=i)}return t}(),wi=((gi=vt.Evented)&&(bi.__proto__=gi),((bi.prototype=Object.create(gi&&gi.prototype)).constructor=bi).prototype.loadURL=function(t,e){var n=this;void 0===e&&(e={}),this.fire(new vt.Event("dataloading",{dataType:"style"}));var i="boolean"==typeof e.validate?e.validate:!vt.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,e.accessToken);var r=this.map._requestManager.transformRequest(t,vt.ResourceType.Style);this._request=vt.getJSON(r,function(t,e){n._request=null,t?n.fire(new vt.ErrorEvent(t)):e&&n._load(e,i)})},bi.prototype.loadJSON=function(t,e){var n=this;void 0===e&&(e={}),this.fire(new vt.Event("dataloading",{dataType:"style"})),this._request=vt.browser.frame(function(){n._request=null,n._load(t,!1!==e.validate)})},bi.prototype.loadEmpty=function(){this.fire(new vt.Event("dataloading",{dataType:"style"})),this._load(_i,!1)},bi.prototype._load=function(t,e){if(!e||!mi(this,vt.validateStyle(t))){for(var n in this._loaded=!0,(this.stylesheet=t).sources)this.addSource(n,t.sources[n],{validate:!1});t.sprite?this._loadSprite(t.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(t.glyphs);var i=xn(this.stylesheet.layers);this._order=i.map(function(t){return t.id}),this._layers={},this._serializedLayers={};for(var r=0,o=i;r<o.length;r+=1){var a=o[r];(a=vt.createStyleLayer(a)).setEventedParent(this,{layer:{id:a.id}}),this._layers[a.id]=a,this._serializedLayers[a.id]=a.serialize()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new S(this.stylesheet.light),this.fire(new vt.Event("data",{dataType:"style"})),this.fire(new vt.Event("style.load"))}},bi.prototype._loadSprite=function(t){var e,n,d,y,m,g,i,r,o,a=this;function s(){if(g)d(g);else if(y&&m){var t=vt.browser.getImageData(m),e={};for(var n in y){var i=y[n],r=i.width,o=i.height,a=i.x,s=i.y,l=i.sdf,u=i.pixelRatio,h=i.stretchX,c=i.stretchY,p=i.content,f=new vt.RGBAImage({width:r,height:o});vt.RGBAImage.copy(t,f,{x:a,y:s},{x:0,y:0},{width:r,height:o}),e[n]={data:f,pixelRatio:u,sdf:l,stretchX:h,stretchY:c,content:p}}d(null,e)}}this._spriteRequest=(e=t,n=this.map._requestManager,d=function(t,e){if(a._spriteRequest=null,t)a.fire(new vt.ErrorEvent(t));else if(e)for(var n in e)a.imageManager.addImage(n,e[n]);a.imageManager.setLoaded(!0),a._availableImages=a.imageManager.listImages(),a.dispatcher.broadcast("setImages",a._availableImages),a.fire(new vt.Event("data",{dataType:"style"}))},i=1<vt.browser.devicePixelRatio?"@2x":"",r=vt.getJSON(n.transformRequest(n.normalizeSpriteURL(e,i,".json"),vt.ResourceType.SpriteJSON),function(t,e){r=null,g||(g=t,y=e,s())}),o=vt.getImage(n.transformRequest(n.normalizeSpriteURL(e,i,".png"),vt.ResourceType.SpriteImage),function(t,e){o=null,g||(g=t,m=e,s())}),{cancel:function(){r&&(r.cancel(),r=null),o&&(o.cancel(),o=null)}})},bi.prototype._validateLayer=function(t){var e=this.sourceCaches[t.source];if(e){var n=t.sourceLayer;if(n){var i=e.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new vt.ErrorEvent(new Error('Source layer "'+n+'" does not exist on source "'+i.id+'" as specified by style layer "'+t.id+'"')))}}},bi.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},bi.prototype._serializeLayers=function(t){for(var e=[],n=0,i=t;n<i.length;n+=1){var r=this._layers[i[n]];"custom"!==r.type&&e.push(r.serialize())}return e},bi.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},bi.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},bi.prototype.update=function(t){if(this._loaded){var e=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var r in(n.length||i.length)&&this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[r];"reload"===o?this._reloadSource(r):"clear"===o&&this._clearSource(r)}for(var a in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[a].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}for(var s in this.sourceCaches)this.sourceCaches[s].used=!1;for(var l=0,u=this._order;l<u.length;l+=1){var h=this._layers[u[l]];h.recalculate(t,this._availableImages),!h.isHidden(t.zoom)&&h.source&&(this.sourceCaches[h.source].used=!0)}this.light.recalculate(t),this.z=t.zoom,e&&this.fire(new vt.Event("data",{dataType:"style"}))}},bi.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}},bi.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})},bi.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},bi.prototype.setState=function(t){var e=this;if(this._checkLoaded(),mi(this,vt.validateStyle(t)))return!1;(t=vt.clone$1(t)).layers=xn(t.layers);var n=function(t,e){if(!t)return[{command:_n.setStyle,args:[e]}];var n=[];try{if(!vt.deepEqual(t.version,e.version))return[{command:_n.setStyle,args:[e]}];vt.deepEqual(t.center,e.center)||n.push({command:_n.setCenter,args:[e.center]}),vt.deepEqual(t.zoom,e.zoom)||n.push({command:_n.setZoom,args:[e.zoom]}),vt.deepEqual(t.bearing,e.bearing)||n.push({command:_n.setBearing,args:[e.bearing]}),vt.deepEqual(t.pitch,e.pitch)||n.push({command:_n.setPitch,args:[e.pitch]}),vt.deepEqual(t.sprite,e.sprite)||n.push({command:_n.setSprite,args:[e.sprite]}),vt.deepEqual(t.glyphs,e.glyphs)||n.push({command:_n.setGlyphs,args:[e.glyphs]}),vt.deepEqual(t.transition,e.transition)||n.push({command:_n.setTransition,args:[e.transition]}),vt.deepEqual(t.light,e.light)||n.push({command:_n.setLight,args:[e.light]});var i={},r=[];!function(t,e,n,i){var r,o,a,s;for(r in e=e||{},t=t||{})t.hasOwnProperty(r)&&(e.hasOwnProperty(r)||bn(r,n,i));for(r in e)e.hasOwnProperty(r)&&(t.hasOwnProperty(r)?vt.deepEqual(t[r],e[r])||("geojson"===t[r].type&&"geojson"===e[r].type&&Pn(t,e,r)?n.push({command:_n.setGeoJSONSourceData,args:[r,e[r].data]}):(a=e,bn(o=r,s=n,i),wn(o,a,s))):wn(r,e,n))}(t.sources,e.sources,r,i);var o=[];t.layers&&t.layers.forEach(function(t){i[t.source]?n.push({command:_n.removeLayer,args:[t.id]}):o.push(t)}),n=n.concat(r),function(t,e,n){e=e||[];var i,r,o,a,s,l,u,h=(t=t||[]).map(Cn),c=e.map(Cn),p=t.reduce(Mn,{}),f=e.reduce(Mn,{}),d=h.slice(),y=Object.create(null);for(r=i=0;i<h.length;i++)f.hasOwnProperty(o=h[i])?r++:(n.push({command:_n.removeLayer,args:[o]}),d.splice(d.indexOf(o,r),1));for(r=i=0;i<c.length;i++)d[d.length-1-i]!==(o=c[c.length-1-i])&&(p.hasOwnProperty(o)?(n.push({command:_n.removeLayer,args:[o]}),d.splice(d.lastIndexOf(o,d.length-r),1)):r++,n.push({command:_n.addLayer,args:[f[o],l=d[d.length-i]]}),d.splice(d.length-i,0,o),y[o]=!0);for(i=0;i<c.length;i++)if(a=p[o=c[i]],s=f[o],!y[o]&&!vt.deepEqual(a,s))if(vt.deepEqual(a.source,s.source)&&vt.deepEqual(a["source-layer"],s["source-layer"])&&vt.deepEqual(a.type,s.type)){for(u in Sn(a.layout,s.layout,n,o,null,_n.setLayoutProperty),Sn(a.paint,s.paint,n,o,null,_n.setPaintProperty),vt.deepEqual(a.filter,s.filter)||n.push({command:_n.setFilter,args:[o,s.filter]}),vt.deepEqual(a.minzoom,s.minzoom)&&vt.deepEqual(a.maxzoom,s.maxzoom)||n.push({command:_n.setLayerZoomRange,args:[o,s.minzoom,s.maxzoom]}),a)a.hasOwnProperty(u)&&"layout"!==u&&"paint"!==u&&"filter"!==u&&"metadata"!==u&&"minzoom"!==u&&"maxzoom"!==u&&(0===u.indexOf("paint.")?Sn(a[u],s[u],n,o,u.slice(6),_n.setPaintProperty):vt.deepEqual(a[u],s[u])||n.push({command:_n.setLayerProperty,args:[o,u,s[u]]}));for(u in s)s.hasOwnProperty(u)&&!a.hasOwnProperty(u)&&"layout"!==u&&"paint"!==u&&"filter"!==u&&"metadata"!==u&&"minzoom"!==u&&"maxzoom"!==u&&(0===u.indexOf("paint.")?Sn(a[u],s[u],n,o,u.slice(6),_n.setPaintProperty):vt.deepEqual(a[u],s[u])||n.push({command:_n.setLayerProperty,args:[o,u,s[u]]}))}else n.push({command:_n.removeLayer,args:[o]}),l=d[d.lastIndexOf(o)+1],n.push({command:_n.addLayer,args:[s,l]})}(o,e.layers,n)}catch(t){console.warn("Unable to compute style diff:",t),n=[{command:_n.setStyle,args:[e]}]}return n}(this.serialize(),t).filter(function(t){return!(t.command in xi)});if(0===n.length)return!1;var i=n.filter(function(t){return!(t.command in vi)});if(0<i.length)throw new Error("Unimplemented: "+i.map(function(t){return t.command}).join(", ")+".");return n.forEach(function(t){"setTransition"!==t.command&&e[t.command].apply(e,t.args)}),this.stylesheet=t,!0},bi.prototype.addImage=function(t,e){if(this.getImage(t))return this.fire(new vt.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,e),this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.fire(new vt.Event("data",{dataType:"style"}))},bi.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},bi.prototype.getImage=function(t){return this.imageManager.getImage(t)},bi.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new vt.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.fire(new vt.Event("data",{dataType:"style"}))},bi.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},bi.prototype.addSource=function(t,e,n){var i=this;if(void 0===n&&(n={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!e.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(e).join(", ")+".");if(!(0<=["vector","raster","geojson","video","image"].indexOf(e.type)&&this._validate(vt.validateStyle.source,"sources."+t,e,null,n))){this.map&&this.map._collectResourceTiming&&(e.collectResourceTiming=!0);var r=this.sourceCaches[t]=new ln(t,e,this.dispatcher);r.style=this,r.setEventedParent(this,function(){return{isSourceLoaded:i.loaded(),source:r.serialize(),sourceId:t}}),r.onAdd(this.map),this._changed=!0}},bi.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var e in this._layers)if(this._layers[e].source===t)return this.fire(new vt.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+e+'" is using it.')));var n=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],n.fire(new vt.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},bi.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},bi.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},bi.prototype.addLayer=function(t,e,n){void 0===n&&(n={}),this._checkLoaded();var i=t.id;if(this.getLayer(i))this.fire(new vt.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var r;if("custom"===t.type){if(mi(this,vt.validateCustomStyleLayer(t)))return;r=vt.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=vt.clone$1(t),t=vt.extend(t,{source:i})),this._validate(vt.validateStyle.layer,"layers."+i,t,{arrayIndex:-1},n))return;r=vt.createStyleLayer(t),this._validateLayer(r),r.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[r.id]=r.serialize()}var o=e?this._order.indexOf(e):this._order.length;if(e&&-1===o)this.fire(new vt.ErrorEvent(new Error('Layer with id "'+e+'" does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=r,this._removedLayers[i]&&r.source&&"custom"!==r.type){var a=this._removedLayers[i];delete this._removedLayers[i],a.type!==r.type?this._updatedSources[r.source]="clear":(this._updatedSources[r.source]="reload",this.sourceCaches[r.source].pause())}this._updateLayer(r),r.onAdd&&r.onAdd(this.map)}}},bi.prototype.moveLayer=function(t,e){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==e){var n=this._order.indexOf(t);this._order.splice(n,1);var i=e?this._order.indexOf(e):this._order.length;e&&-1===i?this.fire(new vt.ErrorEvent(new Error('Layer with id "'+e+'" does not exist on this map.'))):(this._order.splice(i,0,t),this._layerOrderChanged=!0)}}else this.fire(new vt.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},bi.prototype.removeLayer=function(t){this._checkLoaded();var e=this._layers[t];if(e){e.setEventedParent(null);var n=this._order.indexOf(t);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=e,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],e.onRemove&&e.onRemove(this.map)}else this.fire(new vt.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},bi.prototype.getLayer=function(t){return this._layers[t]},bi.prototype.hasLayer=function(t){return t in this._layers},bi.prototype.setLayerZoomRange=function(t,e,n){this._checkLoaded();var i=this.getLayer(t);i?i.minzoom===e&&i.maxzoom===n||(null!=e&&(i.minzoom=e),null!=n&&(i.maxzoom=n),this._updateLayer(i)):this.fire(new vt.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},bi.prototype.setFilter=function(t,e,n){void 0===n&&(n={}),this._checkLoaded();var i=this.getLayer(t);if(i){if(!vt.deepEqual(i.filter,e))return null==e?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(vt.validateStyle.filter,"layers."+i.id+".filter",e,null,n)||(i.filter=vt.clone$1(e),this._updateLayer(i)))}else this.fire(new vt.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},bi.prototype.getFilter=function(t){return vt.clone$1(this.getLayer(t).filter)},bi.prototype.setLayoutProperty=function(t,e,n,i){void 0===i&&(i={}),this._checkLoaded();var r=this.getLayer(t);r?vt.deepEqual(r.getLayoutProperty(e),n)||(r.setLayoutProperty(e,n,i),this._updateLayer(r)):this.fire(new vt.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},bi.prototype.getLayoutProperty=function(t,e){var n=this.getLayer(t);if(n)return n.getLayoutProperty(e);this.fire(new vt.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},bi.prototype.setPaintProperty=function(t,e,n,i){void 0===i&&(i={}),this._checkLoaded();var r=this.getLayer(t);r?vt.deepEqual(r.getPaintProperty(e),n)||(r.setPaintProperty(e,n,i)&&this._updateLayer(r),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new vt.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},bi.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},bi.prototype.setFeatureState=function(t,e){this._checkLoaded();var n=t.source,i=t.sourceLayer,r=this.sourceCaches[n];if(void 0!==r){var o=r.getSource().type;"geojson"===o&&i?this.fire(new vt.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||i?(void 0===t.id&&this.fire(new vt.ErrorEvent(new Error("The feature id parameter must be provided."))),r.setFeatureState(i,t.id,e)):this.fire(new vt.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new vt.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},bi.prototype.removeFeatureState=function(t,e){this._checkLoaded();var n=t.source,i=this.sourceCaches[n];if(void 0!==i){var r=i.getSource().type,o="vector"===r?t.sourceLayer:void 0;"vector"!==r||o?e&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new vt.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):i.removeFeatureState(o,t.id,e):this.fire(new vt.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new vt.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},bi.prototype.getFeatureState=function(t){this._checkLoaded();var e=t.source,n=t.sourceLayer,i=this.sourceCaches[e];if(void 0!==i){if("vector"!==i.getSource().type||n)return void 0===t.id&&this.fire(new vt.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(n,t.id);this.fire(new vt.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new vt.ErrorEvent(new Error("The source '"+e+"' does not exist in the map's style.")))},bi.prototype.getTransition=function(){return vt.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},bi.prototype.serialize=function(){return vt.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:vt.mapObject(this.sourceCaches,function(t){return t.serialize()}),layers:this._serializeLayers(this._order)},function(t){return void 0!==t})},bi.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},bi.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,n=function(t){return"fill-extrusion"===e._layers[t].type},i={},r=[],o=this._order.length-1;0<=o;o--){var a=this._order[o];if(n(a)){i[a]=o;for(var s=0,l=t;s<l.length;s+=1){var u=l[s][a];if(u)for(var h=0,c=u;h<c.length;h+=1)r.push(c[h])}}}r.sort(function(t,e){return e.intersectionZ-t.intersectionZ});for(var p=[],f=this._order.length-1;0<=f;f--){var d=this._order[f];if(n(d))for(var y=r.length-1;0<=y;y--){var m=r[y].feature;if(i[m.layer.id]<f)break;p.push(m),r.pop()}else for(var g=0,v=t;g<v.length;g+=1){var x=v[g][d];if(x)for(var _=0,w=x;_<w.length;_+=1)p.push(w[_].feature)}}return p},bi.prototype.queryRenderedFeatures=function(t,e,n){e&&e.filter&&this._validate(vt.validateStyle.filter,"queryRenderedFeatures.filter",e.filter,null,e);var i={};if(e&&e.layers){if(!Array.isArray(e.layers))return this.fire(new vt.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var r=0,o=e.layers;r<o.length;r+=1){var a=o[r],s=this._layers[a];if(!s)return this.fire(new vt.ErrorEvent(new Error("The layer '"+a+"' does not exist in the map's style and cannot be queried for features."))),[];i[s.source]=!0}}var l=[];for(var u in e.availableImages=this._availableImages,this.sourceCaches)e.layers&&!i[u]||l.push(Q(this.sourceCaches[u],this._layers,this._serializedLayers,t,e,n));return this.placement&&l.push(function(s,l,r,t,u,e,n){for(var h={},c=e.queryRenderedSymbols(t),i=[],o=0,a=Object.keys(c).map(Number);o<a.length;o+=1)i.push(n[a[o]]);i.sort($);for(var p=function(){var r=d[f],t=r.featureIndex.lookupSymbolFeatures(c[r.bucketInstanceId],l,r.bucketIndex,r.sourceLayerIndex,u.filter,u.layers,u.availableImages,s);for(var e in t){var n=h[e]=h[e]||[],i=t[e];i.sort(function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex});for(var o=0,a=i;o<a.length;o+=1)n.push(a[o])}},f=0,d=i;f<d.length;f+=1)p();function y(i){h[i].forEach(function(t){var e=t.feature,n=r[s[i].source].getFeatureState(e.layer["source-layer"],e.id);e.source=e.layer.source,e.layer["source-layer"]&&(e.sourceLayer=e.layer["source-layer"]),e.state=n})}for(var m in h)y(m);return h}(this._layers,this._serializedLayers,this.sourceCaches,t,e,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(l)},bi.prototype.querySourceFeatures=function(t,e){e&&e.filter&&this._validate(vt.validateStyle.filter,"querySourceFeatures.filter",e.filter,null,e);var n=this.sourceCaches[t];return n?function(e,t){for(var n=e.getRenderableIds().map(function(t){return e.getTileByID(t)}),i=[],r={},o=0;o<n.length;o++){var a=n[o],s=a.tileID.canonical.key;r[s]||(r[s]=!0,a.querySourceFeatures(i,t))}return i}(n,e):[]},bi.prototype.addSourceType=function(t,e,n){return bi.getSourceType(t)?n(new Error('A source type called "'+t+'" already exists.')):(bi.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},n):n(null,null))},bi.prototype.getLight=function(){return this.light.getLight()},bi.prototype.setLight=function(t,e){void 0===e&&(e={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var r in t)if(!vt.deepEqual(t[r],n[r])){i=!0;break}if(i){var o={now:vt.browser.now(),transition:vt.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,e),this.light.updateTransitions(o)}},bi.prototype._validate=function(t,e,n,i,r){return void 0===r&&(r={}),(!r||!1!==r.validate)&&mi(this,t.call(vt.validateStyle,vt.extend({key:e,style:this.serialize(),value:n,styleSpec:vt.styleSpec},i)))},bi.prototype._remove=function(){for(var t in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),vt.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[t].setEventedParent(null);for(var e in this.sourceCaches)this.sourceCaches[e].clearTiles(),this.sourceCaches[e].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},bi.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},bi.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},bi.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},bi.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},bi.prototype._updatePlacement=function(t,e,n,i,r){void 0===r&&(r=!1);for(var o=!1,a=!1,s={},l=0,u=this._order;l<u.length;l+=1){var h=this._layers[u[l]];if("symbol"===h.type){if(!s[h.source]){var c=this.sourceCaches[h.source];s[h.source]=c.getRenderableIds(!0).map(function(t){return c.getTileByID(t)}).sort(function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)})}var p=this.crossTileSymbolIndex.addLayer(h,s[h.source],t.center.lng);o=o||p}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((r=r||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(vt.browser.now(),t.zoom))&&(this.pauseablePlacement=new hi(t,this._order,r,e,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(vt.browser.now()),a=!0),o&&this.pauseablePlacement.placement.setStale()),a||o)for(var f=0,d=this._order;f<d.length;f+=1){var y=this._layers[d[f]];"symbol"===y.type&&this.placement.updateLayerOpacities(y,s[y.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(vt.browser.now())},bi.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},bi.prototype.getImages=function(t,e,n){this.imageManager.getImages(e.icons,n),this._updateTilesForChangedImages();var i=this.sourceCaches[e.source];i&&i.setDependencies(e.tileID.key,e.type,e.icons)},bi.prototype.getGlyphs=function(t,e,n){this.glyphManager.getGlyphs(e.stacks,n)},bi.prototype.getResource=function(t,e,n){return vt.makeRequest(e,n)},bi);function bi(t,e){var o=this;void 0===e&&(e={}),gi.call(this),this.map=t,this.dispatcher=new M(gn(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new v(t._requestManager,e.localIdeographFontFamily),this.lineAtlas=new w(256,512),this.crossTileSymbolIndex=new yi,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new vt.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",vt.getReferrer());var i=this;this._rtlTextPluginCallback=bi.registerForPluginStateChange(function(t){i.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},function(t,e){if(vt.triggerPluginCompletionEvent(t),e&&e.every(function(t){return t}))for(var n in i.sourceCaches)i.sourceCaches[n].reload()})}),this.on("data",function(t){if("source"===t.dataType&&"metadata"===t.sourceDataType){var e=o.sourceCaches[t.sourceId];if(e){var n=e.getSource();if(n&&n.vectorLayerIds)for(var i in o._layers){var r=o._layers[i];r.source===n.id&&o._validateLayer(r)}}}})}wi.getSourceType=function(t){return U[t]},wi.setSourceType=function(t,e){U[t]=e},wi.registerForPluginStateChange=vt.registerForPluginStateChange;var Pi=vt.createLayout([{name:"a_pos",type:"Int16",components:2}]),Si=Ki("#ifdef GL_ES\r\nprecision mediump float;\r\n#else\r\n#if !defined(lowp)\r\n#define lowp\r\n#endif\r\n#if !defined(mediump)\r\n#define mediump\r\n#endif\r\n#if !defined(highp)\r\n#define highp\r\n#endif\r\n#endif","#ifdef GL_ES\r\nprecision highp float;\r\n#else\r\n#if !defined(lowp)\r\n#define lowp\r\n#endif\r\n#if !defined(mediump)\r\n#define mediump\r\n#endif\r\n#if !defined(highp)\r\n#define highp\r\n#endif\r\n#endif\nvec2 unpack_float(const float packedValue) {\r\nint packedIntValue=int(packedValue);\r\nint v0=packedIntValue/256;\r\nreturn vec2(v0,packedIntValue-v0*256);\r\n}\r\nvec2 unpack_opacity(const float packedOpacity) {\r\nint intOpacity=int(packedOpacity)/2;\r\nreturn vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));\r\n}vec4 decode_color(const vec2 encodedColor) {\r\nreturn vec4(\r\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\r\n);\r\n}float unpack_mix_vec2(const vec2 packedValue,const float t) {\r\nreturn mix(packedValue[0],packedValue[1],t);\r\n}vec4 unpack_mix_color(const vec4 packedColors,const float t) {\r\nvec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));\r\nvec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));\r\nreturn mix(minColor,maxColor,t);\r\n}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {\r\nvec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);\r\nreturn (tile_units_to_pixels*pos+offset)/pattern_size;\r\n}"),Ci=Ki("uniform vec4 u_color;\r\nuniform float u_opacity;\r\nvoid main() {\r\ngl_FragColor=u_color*u_opacity;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","attribute vec2 a_pos;\r\nuniform mat4 u_matrix;\r\nvoid main() {\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\n}"),Mi=Ki("uniform vec2 u_pattern_tl_a;\r\nuniform vec2 u_pattern_br_a;\r\nuniform vec2 u_pattern_tl_b;\r\nuniform vec2 u_pattern_br_b;\r\nuniform vec2 u_texsize;\r\nuniform float u_mix;\r\nuniform float u_opacity;\r\nuniform sampler2D u_image;\r\nvarying vec2 v_pos_a;\r\nvarying vec2 v_pos_b;\r\nvoid main() {\r\nvec2 imagecoord=mod(v_pos_a,1.0);\r\nvec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);\r\nvec4 color1=texture2D(u_image,pos);\r\nvec2 imagecoord_b=mod(v_pos_b,1.0);\r\nvec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);\r\nvec4 color2=texture2D(u_image,pos2);\r\ngl_FragColor=mix(color1,color2,u_mix)*u_opacity;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform vec2 u_pattern_size_a;\r\nuniform vec2 u_pattern_size_b;\r\nuniform vec2 u_pixel_coord_upper;\r\nuniform vec2 u_pixel_coord_lower;\r\nuniform float u_scale_a;\r\nuniform float u_scale_b;\r\nuniform float u_tile_units_to_pixels;\r\nattribute vec2 a_pos;\r\nvarying vec2 v_pos_a;\r\nvarying vec2 v_pos_b;\r\nvoid main() {\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\nv_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);\r\nv_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);\r\n}"),Ti=Ki("varying vec3 v_data;\r\n#pragma mapbox: define highp vec4 color\r\n#pragma mapbox: define mediump float radius\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define highp vec4 stroke_color\r\n#pragma mapbox: define mediump float stroke_width\r\n#pragma mapbox: define lowp float stroke_opacity\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 color\r\n#pragma mapbox: initialize mediump float radius\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize highp vec4 stroke_color\r\n#pragma mapbox: initialize mediump float stroke_width\r\n#pragma mapbox: initialize lowp float stroke_opacity\r\nvec2 extrude=v_data.xy;\r\nfloat extrude_length=length(extrude);\r\nlowp float antialiasblur=v_data.z;\r\nfloat antialiased_blur=-max(blur,antialiasblur);\r\nfloat opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);\r\nfloat color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\r\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\r\n);\r\ngl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform bool u_scale_with_map;\r\nuniform bool u_pitch_with_map;\r\nuniform vec2 u_extrude_scale;\r\nuniform lowp float u_device_pixel_ratio;\r\nuniform highp float u_camera_to_center_distance;\r\nattribute vec2 a_pos;\r\nvarying vec3 v_data;\r\n#pragma mapbox: define highp vec4 color\r\n#pragma mapbox: define mediump float radius\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define highp vec4 stroke_color\r\n#pragma mapbox: define mediump float stroke_width\r\n#pragma mapbox: define lowp float stroke_opacity\r\nvoid main(void) {\r\n#pragma mapbox: initialize highp vec4 color\r\n#pragma mapbox: initialize mediump float radius\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize highp vec4 stroke_color\r\n#pragma mapbox: initialize mediump float stroke_width\r\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);\r\nif (u_pitch_with_map) {\r\nvec2 corner_position=circle_center;\r\nif (u_scale_with_map) {\r\ncorner_position+=extrude*(radius+stroke_width)*u_extrude_scale;\r\n} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);\r\ncorner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);\r\n}\r\ngl_Position=u_matrix*vec4(corner_position,0,1);\r\n} else {\r\ngl_Position=u_matrix*vec4(circle_center,0,1);\r\nif (u_scale_with_map) {\r\ngl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;\r\n} else {\r\ngl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;\r\n}\r\n}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);\r\nv_data=vec3(extrude.x,extrude.y,antialiasblur);\r\n}"),Ai=Ki("void main() {\r\ngl_FragColor=vec4(1.0);\r\n}","attribute vec2 a_pos;\r\nuniform mat4 u_matrix;\r\nvoid main() {\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\n}"),Ei=Ki("uniform highp float u_intensity;\r\nvarying vec2 v_extrude;\r\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\r\nvoid main() {\r\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);\r\nfloat val=weight*u_intensity*GAUSS_COEF*exp(d);\r\ngl_FragColor=vec4(val,1.0,1.0,1.0);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform float u_extrude_scale;\r\nuniform float u_opacity;\r\nuniform float u_intensity;\r\nattribute vec2 a_pos;\r\nvarying vec2 v_extrude;\r\n#pragma mapbox: define highp float weight\r\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\r\nvoid main(void) {\r\n#pragma mapbox: initialize highp float weight\r\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);\r\ngl_Position=u_matrix*pos;\r\n}"),Ii=Ki("uniform sampler2D u_image;\r\nuniform sampler2D u_color_ramp;\r\nuniform float u_opacity;\r\nvarying vec2 v_pos;\r\nvoid main() {\r\nfloat t=texture2D(u_image,v_pos).r;\r\nvec4 color=texture2D(u_color_ramp,vec2(t,0.5));\r\ngl_FragColor=color*u_opacity;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(0.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform vec2 u_world;\r\nattribute vec2 a_pos;\r\nvarying vec2 v_pos;\r\nvoid main() {\r\ngl_Position=u_matrix*vec4(a_pos*u_world,0,1);\r\nv_pos.x=a_pos.x;\r\nv_pos.y=1.0-a_pos.y;\r\n}"),Li=Ki("varying float v_placed;\r\nvarying float v_notUsed;\r\nvoid main() {\r\nfloat alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {\r\ngl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;\r\n}\r\nif (v_notUsed > 0.5) {gl_FragColor*=.1;\r\n}\r\n}","attribute vec2 a_pos;\r\nattribute vec2 a_anchor_pos;\r\nattribute vec2 a_extrude;\r\nattribute vec2 a_placed;\r\nattribute vec2 a_shift;\r\nuniform mat4 u_matrix;\r\nuniform vec2 u_extrude_scale;\r\nuniform float u_camera_to_center_distance;\r\nvarying float v_placed;\r\nvarying float v_notUsed;\r\nvoid main() {\r\nvec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);\r\nhighp float camera_to_anchor_distance=projectedPoint.w;\r\nhighp float collision_perspective_ratio=clamp(\r\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);\r\ngl_Position=u_matrix*vec4(a_pos,0.0,1.0);\r\ngl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;\r\nv_placed=a_placed.x;\r\nv_notUsed=a_placed.y;\r\n}"),Ri=Ki("varying float v_radius;\r\nvarying vec2 v_extrude;\r\nvarying float v_perspective_ratio;\r\nvarying float v_collision;\r\nvoid main() {\r\nfloat alpha=0.5*min(v_perspective_ratio,1.0);\r\nfloat stroke_radius=0.9*max(v_perspective_ratio,1.0);\r\nfloat distance_to_center=length(v_extrude);\r\nfloat distance_to_edge=abs(distance_to_center-v_radius);\r\nfloat opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);\r\nvec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);\r\ngl_FragColor=color*alpha*opacity_t;\r\n}","attribute vec2 a_pos;\r\nattribute float a_radius;\r\nattribute vec2 a_flags;\r\nuniform mat4 u_matrix;\r\nuniform mat4 u_inv_matrix;\r\nuniform vec2 u_viewport_size;\r\nuniform float u_camera_to_center_distance;\r\nvarying float v_radius;\r\nvarying vec2 v_extrude;\r\nvarying float v_perspective_ratio;\r\nvarying float v_collision;\r\nvec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);\r\nvec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);\r\nrayStart.xyz/=rayStart.w;\r\nrayEnd.xyz /=rayEnd.w;\r\nhighp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);\r\nreturn mix(rayStart.xyz,rayEnd.xyz,t);\r\n}\r\nvoid main() {\r\nvec2 quadCenterPos=a_pos;\r\nfloat radius=a_radius;\r\nfloat collision=a_flags.x;\r\nfloat vertexIdx=a_flags.y;\r\nvec2 quadVertexOffset=vec2(\r\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));\r\nvec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);\r\nvec4 clipPos=u_matrix*vec4(tilePos,1.0);\r\nhighp float camera_to_anchor_distance=clipPos.w;\r\nhighp float collision_perspective_ratio=clamp(\r\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;\r\nv_radius=radius;\r\nv_extrude=quadVertexExtent*padding_factor;\r\nv_perspective_ratio=collision_perspective_ratio;\r\nv_collision=collision;\r\ngl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);\r\n}"),Oi=Ki("uniform highp vec4 u_color;\r\nuniform sampler2D u_overlay;\r\nvarying vec2 v_uv;\r\nvoid main() {\r\nvec4 overlay_color=texture2D(u_overlay,v_uv);\r\ngl_FragColor=mix(u_color,overlay_color,overlay_color.a);\r\n}","attribute vec2 a_pos;\r\nvarying vec2 v_uv;\r\nuniform mat4 u_matrix;\r\nuniform float u_overlay_scale;\r\nvoid main() {v_uv=a_pos/8192.0;\r\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);\r\n}"),Ni=Ki("#pragma mapbox: define highp vec4 color\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 color\r\n#pragma mapbox: initialize lowp float opacity\r\ngl_FragColor=color*opacity;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","attribute vec2 a_pos;\r\nuniform mat4 u_matrix;\r\n#pragma mapbox: define highp vec4 color\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 color\r\n#pragma mapbox: initialize lowp float opacity\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\n}"),ki=Ki("varying vec2 v_pos;\r\n#pragma mapbox: define highp vec4 outline_color\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 outline_color\r\n#pragma mapbox: initialize lowp float opacity\r\nfloat dist=length(v_pos-gl_FragCoord.xy);\r\nfloat alpha=1.0-smoothstep(0.0,1.0,dist);\r\ngl_FragColor=outline_color*(alpha*opacity);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","attribute vec2 a_pos;\r\nuniform mat4 u_matrix;\r\nuniform vec2 u_world;\r\nvarying vec2 v_pos;\r\n#pragma mapbox: define highp vec4 outline_color\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 outline_color\r\n#pragma mapbox: initialize lowp float opacity\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\nv_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\r\n}"),zi=Ki("uniform vec2 u_texsize;\r\nuniform sampler2D u_image;\r\nuniform float u_fade;\r\nvarying vec2 v_pos_a;\r\nvarying vec2 v_pos_b;\r\nvarying vec2 v_pos;\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp vec4 pattern_from\r\n#pragma mapbox: define lowp vec4 pattern_to\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize mediump vec4 pattern_from\r\n#pragma mapbox: initialize mediump vec4 pattern_to\r\nvec2 pattern_tl_a=pattern_from.xy;\r\nvec2 pattern_br_a=pattern_from.zw;\r\nvec2 pattern_tl_b=pattern_to.xy;\r\nvec2 pattern_br_b=pattern_to.zw;\r\nvec2 imagecoord=mod(v_pos_a,1.0);\r\nvec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);\r\nvec4 color1=texture2D(u_image,pos);\r\nvec2 imagecoord_b=mod(v_pos_b,1.0);\r\nvec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);\r\nvec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);\r\nfloat alpha=1.0-smoothstep(0.0,1.0,dist);\r\ngl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform vec2 u_world;\r\nuniform vec2 u_pixel_coord_upper;\r\nuniform vec2 u_pixel_coord_lower;\r\nuniform vec3 u_scale;\r\nattribute vec2 a_pos;\r\nvarying vec2 v_pos_a;\r\nvarying vec2 v_pos_b;\r\nvarying vec2 v_pos;\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp vec4 pattern_from\r\n#pragma mapbox: define lowp vec4 pattern_to\r\n#pragma mapbox: define lowp float pixel_ratio_from\r\n#pragma mapbox: define lowp float pixel_ratio_to\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize mediump vec4 pattern_from\r\n#pragma mapbox: initialize mediump vec4 pattern_to\r\n#pragma mapbox: initialize lowp float pixel_ratio_from\r\n#pragma mapbox: initialize lowp float pixel_ratio_to\r\nvec2 pattern_tl_a=pattern_from.xy;\r\nvec2 pattern_br_a=pattern_from.zw;\r\nvec2 pattern_tl_b=pattern_to.xy;\r\nvec2 pattern_br_b=pattern_to.zw;\r\nfloat tileRatio=u_scale.x;\r\nfloat fromScale=u_scale.y;\r\nfloat toScale=u_scale.z;\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\nvec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;\r\nvec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\r\nv_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);\r\nv_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);\r\nv_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\r\n}"),Di=Ki("uniform vec2 u_texsize;\r\nuniform float u_fade;\r\nuniform sampler2D u_image;\r\nvarying vec2 v_pos_a;\r\nvarying vec2 v_pos_b;\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp vec4 pattern_from\r\n#pragma mapbox: define lowp vec4 pattern_to\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize mediump vec4 pattern_from\r\n#pragma mapbox: initialize mediump vec4 pattern_to\r\nvec2 pattern_tl_a=pattern_from.xy;\r\nvec2 pattern_br_a=pattern_from.zw;\r\nvec2 pattern_tl_b=pattern_to.xy;\r\nvec2 pattern_br_b=pattern_to.zw;\r\nvec2 imagecoord=mod(v_pos_a,1.0);\r\nvec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);\r\nvec4 color1=texture2D(u_image,pos);\r\nvec2 imagecoord_b=mod(v_pos_b,1.0);\r\nvec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);\r\nvec4 color2=texture2D(u_image,pos2);\r\ngl_FragColor=mix(color1,color2,u_fade)*opacity;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform vec2 u_pixel_coord_upper;\r\nuniform vec2 u_pixel_coord_lower;\r\nuniform vec3 u_scale;\r\nattribute vec2 a_pos;\r\nvarying vec2 v_pos_a;\r\nvarying vec2 v_pos_b;\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp vec4 pattern_from\r\n#pragma mapbox: define lowp vec4 pattern_to\r\n#pragma mapbox: define lowp float pixel_ratio_from\r\n#pragma mapbox: define lowp float pixel_ratio_to\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize mediump vec4 pattern_from\r\n#pragma mapbox: initialize mediump vec4 pattern_to\r\n#pragma mapbox: initialize lowp float pixel_ratio_from\r\n#pragma mapbox: initialize lowp float pixel_ratio_to\r\nvec2 pattern_tl_a=pattern_from.xy;\r\nvec2 pattern_br_a=pattern_from.zw;\r\nvec2 pattern_tl_b=pattern_to.xy;\r\nvec2 pattern_br_b=pattern_to.zw;\r\nfloat tileZoomRatio=u_scale.x;\r\nfloat fromScale=u_scale.y;\r\nfloat toScale=u_scale.z;\r\nvec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;\r\nvec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\nv_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);\r\nv_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);\r\n}"),Fi=Ki("varying vec4 v_color;\r\nvoid main() {\r\ngl_FragColor=v_color;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform vec3 u_lightcolor;\r\nuniform lowp vec3 u_lightpos;\r\nuniform lowp float u_lightintensity;\r\nuniform float u_vertical_gradient;\r\nuniform lowp float u_opacity;\r\nattribute vec2 a_pos;\r\nattribute vec4 a_normal_ed;\r\nvarying vec4 v_color;\r\n#pragma mapbox: define highp float base\r\n#pragma mapbox: define highp float height\r\n#pragma mapbox: define highp vec4 color\r\nvoid main() {\r\n#pragma mapbox: initialize highp float base\r\n#pragma mapbox: initialize highp float height\r\n#pragma mapbox: initialize highp vec4 color\r\nvec3 normal=a_normal_ed.xyz;\r\nbase=max(0.0,base);\r\nheight=max(0.0,height);\r\nfloat t=mod(normal.x,2.0);\r\ngl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;\r\nv_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);\r\ncolor+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\r\n(1.0-u_vertical_gradient)+\n(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));\r\n}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);\r\nv_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);\r\nv_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);\r\nv_color*=u_opacity;\r\n}"),Gi=Ki("uniform vec2 u_texsize;\r\nuniform float u_fade;\r\nuniform sampler2D u_image;\r\nvarying vec2 v_pos_a;\r\nvarying vec2 v_pos_b;\r\nvarying vec4 v_lighting;\r\n#pragma mapbox: define lowp float base\r\n#pragma mapbox: define lowp float height\r\n#pragma mapbox: define lowp vec4 pattern_from\r\n#pragma mapbox: define lowp vec4 pattern_to\r\n#pragma mapbox: define lowp float pixel_ratio_from\r\n#pragma mapbox: define lowp float pixel_ratio_to\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float base\r\n#pragma mapbox: initialize lowp float height\r\n#pragma mapbox: initialize mediump vec4 pattern_from\r\n#pragma mapbox: initialize mediump vec4 pattern_to\r\n#pragma mapbox: initialize lowp float pixel_ratio_from\r\n#pragma mapbox: initialize lowp float pixel_ratio_to\r\nvec2 pattern_tl_a=pattern_from.xy;\r\nvec2 pattern_br_a=pattern_from.zw;\r\nvec2 pattern_tl_b=pattern_to.xy;\r\nvec2 pattern_br_b=pattern_to.zw;\r\nvec2 imagecoord=mod(v_pos_a,1.0);\r\nvec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);\r\nvec4 color1=texture2D(u_image,pos);\r\nvec2 imagecoord_b=mod(v_pos_b,1.0);\r\nvec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);\r\nvec4 color2=texture2D(u_image,pos2);\r\nvec4 mixedColor=mix(color1,color2,u_fade);\r\ngl_FragColor=mixedColor*v_lighting;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform vec2 u_pixel_coord_upper;\r\nuniform vec2 u_pixel_coord_lower;\r\nuniform float u_height_factor;\r\nuniform vec3 u_scale;\r\nuniform float u_vertical_gradient;\r\nuniform lowp float u_opacity;\r\nuniform vec3 u_lightcolor;\r\nuniform lowp vec3 u_lightpos;\r\nuniform lowp float u_lightintensity;\r\nattribute vec2 a_pos;\r\nattribute vec4 a_normal_ed;\r\nvarying vec2 v_pos_a;\r\nvarying vec2 v_pos_b;\r\nvarying vec4 v_lighting;\r\n#pragma mapbox: define lowp float base\r\n#pragma mapbox: define lowp float height\r\n#pragma mapbox: define lowp vec4 pattern_from\r\n#pragma mapbox: define lowp vec4 pattern_to\r\n#pragma mapbox: define lowp float pixel_ratio_from\r\n#pragma mapbox: define lowp float pixel_ratio_to\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float base\r\n#pragma mapbox: initialize lowp float height\r\n#pragma mapbox: initialize mediump vec4 pattern_from\r\n#pragma mapbox: initialize mediump vec4 pattern_to\r\n#pragma mapbox: initialize lowp float pixel_ratio_from\r\n#pragma mapbox: initialize lowp float pixel_ratio_to\r\nvec2 pattern_tl_a=pattern_from.xy;\r\nvec2 pattern_br_a=pattern_from.zw;\r\nvec2 pattern_tl_b=pattern_to.xy;\r\nvec2 pattern_br_b=pattern_to.zw;\r\nfloat tileRatio=u_scale.x;\r\nfloat fromScale=u_scale.y;\r\nfloat toScale=u_scale.z;\r\nvec3 normal=a_normal_ed.xyz;\r\nfloat edgedistance=a_normal_ed.w;\r\nvec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;\r\nvec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\r\nbase=max(0.0,base);\r\nheight=max(0.0,height);\r\nfloat t=mod(normal.x,2.0);\r\nfloat z=t > 0.0 ? height : base;\r\ngl_Position=u_matrix*vec4(a_pos,z,1);\r\nvec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\r\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);\r\nv_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);\r\nv_lighting=vec4(0.0,0.0,0.0,1.0);\r\nfloat directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);\r\ndirectional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);\r\nif (normal.y !=0.0) {directional*=(\r\n(1.0-u_vertical_gradient)+\n(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));\r\n}\r\nv_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\r\nv_lighting*=u_opacity;\r\n}"),ji=Ki("#ifdef GL_ES\r\nprecision highp float;\r\n#endif\r\nuniform sampler2D u_image;\r\nvarying vec2 v_pos;\r\nuniform vec2 u_dimension;\r\nuniform float u_zoom;\r\nuniform float u_maxzoom;\r\nuniform vec4 u_unpack;\r\nfloat getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;\r\ndata.a=-1.0;\r\nreturn dot(data,u_unpack)/4.0;\r\n}\r\nvoid main() {\r\nvec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);\r\nfloat b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);\r\nfloat c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);\r\nfloat d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);\r\nfloat e=getElevation(v_pos,0.0);\r\nfloat f=getElevation(v_pos+vec2(epsilon.x,0),0.0);\r\nfloat g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);\r\nfloat h=getElevation(v_pos+vec2(0,epsilon.y),0.0);\r\nfloat i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;\r\nvec2 deriv=vec2(\r\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\r\n)/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);\r\ngl_FragColor=clamp(vec4(\r\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform vec2 u_dimension;\r\nattribute vec2 a_pos;\r\nattribute vec2 a_texture_pos;\r\nvarying vec2 v_pos;\r\nvoid main() {\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\nhighp vec2 epsilon=1.0/u_dimension;\r\nfloat scale=(u_dimension.x-2.0)/u_dimension.x;\r\nv_pos=(a_texture_pos/8192.0)*scale+epsilon;\r\n}"),Vi=Ki("uniform sampler2D u_image;\r\nvarying vec2 v_pos;\r\nuniform vec2 u_latrange;\r\nuniform vec2 u_light;\r\nuniform vec4 u_shadow;\r\nuniform vec4 u_highlight;\r\nuniform vec4 u_accent;\r\n#define PI 3.141592653589793\r\nvoid main() {\r\nvec4 pixel=texture2D(u_image,v_pos);\r\nvec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);\r\nfloat aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);\r\nfloat intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;\r\nfloat maxValue=0.5*PI;\r\nfloat scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);\r\nfloat shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);\r\nvec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);\r\ngl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nattribute vec2 a_pos;\r\nattribute vec2 a_texture_pos;\r\nvarying vec2 v_pos;\r\nvoid main() {\r\ngl_Position=u_matrix*vec4(a_pos,0,1);\r\nv_pos=a_texture_pos/8192.0;\r\n}"),qi=Ki("uniform lowp float u_device_pixel_ratio;\r\nvarying vec2 v_width2;\r\nvarying vec2 v_normal;\r\nvarying float v_gamma_scale;\r\n#pragma mapbox: define highp vec4 color\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 color\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;\r\nfloat alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\r\ngl_FragColor=color*(alpha*opacity);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","\n#define scale 0.015873016\r\nattribute vec2 a_pos_normal;\r\nattribute vec4 a_data;\r\nuniform mat4 u_matrix;\r\nuniform mediump float u_ratio;\r\nuniform vec2 u_units_to_pixels;\r\nuniform lowp float u_device_pixel_ratio;\r\nvarying vec2 v_normal;\r\nvarying vec2 v_width2;\r\nvarying float v_gamma_scale;\r\nvarying highp float v_linesofar;\r\n#pragma mapbox: define highp vec4 color\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define mediump float gapwidth\r\n#pragma mapbox: define lowp float offset\r\n#pragma mapbox: define mediump float width\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 color\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize mediump float gapwidth\r\n#pragma mapbox: initialize lowp float offset\r\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;\r\nvec2 a_extrude=a_data.xy-128.0;\r\nfloat a_direction=mod(a_data.z,4.0)-1.0;\r\nv_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;\r\nvec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;\r\nnormal.y=normal.y*2.0-1.0;\r\nv_normal=normal;gapwidth=gapwidth/2.0;\r\nfloat halfwidth=width/2.0;\r\noffset=-1.0*offset;\r\nfloat inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);\r\nfloat outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;\r\nmediump float t=1.0-abs(u);\r\nmediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);\r\nvec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);\r\ngl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);\r\nfloat extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);\r\nv_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\r\nv_width2=vec2(outset,inset);\r\n}"),Bi=Ki("uniform lowp float u_device_pixel_ratio;\r\nuniform sampler2D u_image;\r\nvarying vec2 v_width2;\r\nvarying vec2 v_normal;\r\nvarying float v_gamma_scale;\r\nvarying highp float v_lineprogress;\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;\r\nfloat alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));\r\ngl_FragColor=color*(alpha*opacity);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\r\nattribute vec2 a_pos_normal;\r\nattribute vec4 a_data;\r\nuniform mat4 u_matrix;\r\nuniform mediump float u_ratio;\r\nuniform lowp float u_device_pixel_ratio;\r\nuniform vec2 u_units_to_pixels;\r\nvarying vec2 v_normal;\r\nvarying vec2 v_width2;\r\nvarying float v_gamma_scale;\r\nvarying highp float v_lineprogress;\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define mediump float gapwidth\r\n#pragma mapbox: define lowp float offset\r\n#pragma mapbox: define mediump float width\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize mediump float gapwidth\r\n#pragma mapbox: initialize lowp float offset\r\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;\r\nvec2 a_extrude=a_data.xy-128.0;\r\nfloat a_direction=mod(a_data.z,4.0)-1.0;\r\nv_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;\r\nvec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;\r\nnormal.y=normal.y*2.0-1.0;\r\nv_normal=normal;gapwidth=gapwidth/2.0;\r\nfloat halfwidth=width/2.0;\r\noffset=-1.0*offset;\r\nfloat inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);\r\nfloat outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;\r\nmediump float t=1.0-abs(u);\r\nmediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);\r\nvec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);\r\ngl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);\r\nfloat extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);\r\nv_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\r\nv_width2=vec2(outset,inset);\r\n}"),Ui=Ki("uniform lowp float u_device_pixel_ratio;\r\nuniform vec2 u_texsize;\r\nuniform float u_fade;\r\nuniform mediump vec3 u_scale;\r\nuniform sampler2D u_image;\r\nvarying vec2 v_normal;\r\nvarying vec2 v_width2;\r\nvarying float v_linesofar;\r\nvarying float v_gamma_scale;\r\nvarying float v_width;\r\n#pragma mapbox: define lowp vec4 pattern_from\r\n#pragma mapbox: define lowp vec4 pattern_to\r\n#pragma mapbox: define lowp float pixel_ratio_from\r\n#pragma mapbox: define lowp float pixel_ratio_to\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize mediump vec4 pattern_from\r\n#pragma mapbox: initialize mediump vec4 pattern_to\r\n#pragma mapbox: initialize lowp float pixel_ratio_from\r\n#pragma mapbox: initialize lowp float pixel_ratio_to\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\r\nvec2 pattern_tl_a=pattern_from.xy;\r\nvec2 pattern_br_a=pattern_from.zw;\r\nvec2 pattern_tl_b=pattern_to.xy;\r\nvec2 pattern_br_b=pattern_to.zw;\r\nfloat tileZoomRatio=u_scale.x;\r\nfloat fromScale=u_scale.y;\r\nfloat toScale=u_scale.z;\r\nvec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;\r\nvec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\r\nvec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);\r\nvec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);\r\nfloat aspect_a=display_size_a.y/v_width;\r\nfloat aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;\r\nfloat alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\r\nfloat x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);\r\nfloat x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);\r\nfloat y=0.5*v_normal.y+0.5;\r\nvec2 texel_size=1.0/u_texsize;\r\nvec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));\r\nvec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));\r\nvec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);\r\ngl_FragColor=color*alpha*opacity;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\r\nattribute vec2 a_pos_normal;\r\nattribute vec4 a_data;\r\nuniform mat4 u_matrix;\r\nuniform vec2 u_units_to_pixels;\r\nuniform mediump float u_ratio;\r\nuniform lowp float u_device_pixel_ratio;\r\nvarying vec2 v_normal;\r\nvarying vec2 v_width2;\r\nvarying float v_linesofar;\r\nvarying float v_gamma_scale;\r\nvarying float v_width;\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp float offset\r\n#pragma mapbox: define mediump float gapwidth\r\n#pragma mapbox: define mediump float width\r\n#pragma mapbox: define lowp float floorwidth\r\n#pragma mapbox: define lowp vec4 pattern_from\r\n#pragma mapbox: define lowp vec4 pattern_to\r\n#pragma mapbox: define lowp float pixel_ratio_from\r\n#pragma mapbox: define lowp float pixel_ratio_to\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize lowp float offset\r\n#pragma mapbox: initialize mediump float gapwidth\r\n#pragma mapbox: initialize mediump float width\r\n#pragma mapbox: initialize lowp float floorwidth\r\n#pragma mapbox: initialize mediump vec4 pattern_from\r\n#pragma mapbox: initialize mediump vec4 pattern_to\r\n#pragma mapbox: initialize lowp float pixel_ratio_from\r\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;\r\nvec2 a_extrude=a_data.xy-128.0;\r\nfloat a_direction=mod(a_data.z,4.0)-1.0;\r\nfloat a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;\r\nnormal.y=normal.y*2.0-1.0;\r\nv_normal=normal;gapwidth=gapwidth/2.0;\r\nfloat halfwidth=width/2.0;\r\noffset=-1.0*offset;\r\nfloat inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);\r\nfloat outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;\r\nmediump float t=1.0-abs(u);\r\nmediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);\r\nvec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);\r\ngl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);\r\nfloat extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);\r\nv_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\r\nv_linesofar=a_linesofar;\r\nv_width2=vec2(outset,inset);\r\nv_width=floorwidth;\r\n}"),Wi=Ki("uniform lowp float u_device_pixel_ratio;\r\nuniform sampler2D u_image;\r\nuniform float u_sdfgamma;\r\nuniform float u_mix;\r\nvarying vec2 v_normal;\r\nvarying vec2 v_width2;\r\nvarying vec2 v_tex_a;\r\nvarying vec2 v_tex_b;\r\nvarying float v_gamma_scale;\r\n#pragma mapbox: define highp vec4 color\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define mediump float width\r\n#pragma mapbox: define lowp float floorwidth\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 color\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize mediump float width\r\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;\r\nfloat alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\r\nfloat sdfdist_a=texture2D(u_image,v_tex_a).a;\r\nfloat sdfdist_b=texture2D(u_image,v_tex_b).a;\r\nfloat sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);\r\nalpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);\r\ngl_FragColor=color*(alpha*opacity);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\r\nattribute vec2 a_pos_normal;\r\nattribute vec4 a_data;\r\nuniform mat4 u_matrix;\r\nuniform mediump float u_ratio;\r\nuniform lowp float u_device_pixel_ratio;\r\nuniform vec2 u_patternscale_a;\r\nuniform float u_tex_y_a;\r\nuniform vec2 u_patternscale_b;\r\nuniform float u_tex_y_b;\r\nuniform vec2 u_units_to_pixels;\r\nvarying vec2 v_normal;\r\nvarying vec2 v_width2;\r\nvarying vec2 v_tex_a;\r\nvarying vec2 v_tex_b;\r\nvarying float v_gamma_scale;\r\n#pragma mapbox: define highp vec4 color\r\n#pragma mapbox: define lowp float blur\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define mediump float gapwidth\r\n#pragma mapbox: define lowp float offset\r\n#pragma mapbox: define mediump float width\r\n#pragma mapbox: define lowp float floorwidth\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 color\r\n#pragma mapbox: initialize lowp float blur\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize mediump float gapwidth\r\n#pragma mapbox: initialize lowp float offset\r\n#pragma mapbox: initialize mediump float width\r\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;\r\nvec2 a_extrude=a_data.xy-128.0;\r\nfloat a_direction=mod(a_data.z,4.0)-1.0;\r\nfloat a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;\r\nvec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;\r\nnormal.y=normal.y*2.0-1.0;\r\nv_normal=normal;gapwidth=gapwidth/2.0;\r\nfloat halfwidth=width/2.0;\r\noffset=-1.0*offset;\r\nfloat inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);\r\nfloat outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;\r\nmediump float t=1.0-abs(u);\r\nmediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);\r\nvec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);\r\ngl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);\r\nfloat extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);\r\nv_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\r\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);\r\nv_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);\r\nv_width2=vec2(outset,inset);\r\n}"),Zi=Ki("uniform float u_fade_t;\r\nuniform float u_opacity;\r\nuniform sampler2D u_image0;\r\nuniform sampler2D u_image1;\r\nvarying vec2 v_pos0;\r\nvarying vec2 v_pos1;\r\nuniform float u_brightness_low;\r\nuniform float u_brightness_high;\r\nuniform float u_saturation_factor;\r\nuniform float u_contrast_factor;\r\nuniform vec3 u_spin_weights;\r\nvoid main() {vec4 color0=texture2D(u_image0,v_pos0);\r\nvec4 color1=texture2D(u_image1,v_pos1);\r\nif (color0.a > 0.0) {\r\ncolor0.rgb=color0.rgb/color0.a;\r\n}\r\nif (color1.a > 0.0) {\r\ncolor1.rgb=color1.rgb/color1.a;\r\n}\r\nvec4 color=mix(color0,color1,u_fade_t);\r\ncolor.a*=u_opacity;\r\nvec3 rgb=color.rgb;rgb=vec3(\r\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;\r\nrgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);\r\nvec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);\r\ngl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","uniform mat4 u_matrix;\r\nuniform vec2 u_tl_parent;\r\nuniform float u_scale_parent;\r\nuniform float u_buffer_scale;\r\nattribute vec2 a_pos;\r\nattribute vec2 a_texture_pos;\r\nvarying vec2 v_pos0;\r\nvarying vec2 v_pos1;\r\nvoid main() {\r\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;\r\nv_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\r\n}"),Xi=Ki("uniform sampler2D u_texture;\r\nvarying vec2 v_tex;\r\nvarying float v_fade_opacity;\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float opacity\r\nlowp float alpha=opacity*v_fade_opacity;\r\ngl_FragColor=texture2D(u_texture,v_tex)*alpha;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","const float PI=3.141592653589793;\r\nattribute vec4 a_pos_offset;\r\nattribute vec4 a_data;\r\nattribute vec4 a_pixeloffset;\r\nattribute vec3 a_projected_pos;\r\nattribute float a_fade_opacity;\r\nuniform bool u_is_size_zoom_constant;\r\nuniform bool u_is_size_feature_constant;\r\nuniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;\r\nuniform highp float u_pitch;\r\nuniform bool u_rotate_symbol;\r\nuniform highp float u_aspect_ratio;\r\nuniform float u_fade_change;\r\nuniform mat4 u_matrix;\r\nuniform mat4 u_label_plane_matrix;\r\nuniform mat4 u_coord_matrix;\r\nuniform bool u_is_text;\r\nuniform bool u_pitch_with_map;\r\nuniform vec2 u_texsize;\r\nvarying vec2 v_tex;\r\nvarying float v_fade_opacity;\r\n#pragma mapbox: define lowp float opacity\r\nvoid main() {\r\n#pragma mapbox: initialize lowp float opacity\r\nvec2 a_pos=a_pos_offset.xy;\r\nvec2 a_offset=a_pos_offset.zw;\r\nvec2 a_tex=a_data.xy;\r\nvec2 a_size=a_data.zw;\r\nfloat a_size_min=floor(a_size[0]*0.5);\r\nvec2 a_pxoffset=a_pixeloffset.xy;\r\nvec2 a_minFontScale=a_pixeloffset.zw/256.0;\r\nhighp float segment_angle=-a_projected_pos[2];\r\nfloat size;\r\nif (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\r\nsize=mix(a_size_min,a_size[1],u_size_t)/128.0;\r\n} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\r\nsize=a_size_min/128.0;\r\n} else {\r\nsize=u_size;\r\n}\r\nvec4 projectedPoint=u_matrix*vec4(a_pos,0,1);\r\nhighp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\r\ncamera_to_anchor_distance/u_camera_to_center_distance :\r\nu_camera_to_center_distance/camera_to_anchor_distance;\r\nhighp float perspective_ratio=clamp(\r\n0.5+0.5*distance_ratio,0.0,4.0);\r\nsize*=perspective_ratio;\r\nfloat fontScale=u_is_text ? size/24.0 : size;\r\nhighp float symbol_rotation=0.0;\r\nif (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);\r\nvec2 a=projectedPoint.xy/projectedPoint.w;\r\nvec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;\r\nsymbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);\r\n}\r\nhighp float angle_sin=sin(segment_angle+symbol_rotation);\r\nhighp float angle_cos=cos(segment_angle+symbol_rotation);\r\nmat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);\r\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);\r\ngl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);\r\nv_tex=a_tex/u_texsize;\r\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);\r\nfloat fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;\r\nv_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));\r\n}"),Hi=Ki("#define SDF_PX 8.0\r\nuniform bool u_is_halo;\r\nuniform sampler2D u_texture;\r\nuniform highp float u_gamma_scale;\r\nuniform lowp float u_device_pixel_ratio;\r\nuniform bool u_is_text;\r\nvarying vec2 v_data0;\r\nvarying vec3 v_data1;\r\n#pragma mapbox: define highp vec4 fill_color\r\n#pragma mapbox: define highp vec4 halo_color\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp float halo_width\r\n#pragma mapbox: define lowp float halo_blur\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 fill_color\r\n#pragma mapbox: initialize highp vec4 halo_color\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize lowp float halo_width\r\n#pragma mapbox: initialize lowp float halo_blur\r\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;\r\nvec2 tex=v_data0.xy;\r\nfloat gamma_scale=v_data1.x;\r\nfloat size=v_data1.y;\r\nfloat fade_opacity=v_data1[2];\r\nfloat fontScale=u_is_text ? size/24.0 : size;\r\nlowp vec4 color=fill_color;\r\nhighp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);\r\nlowp float buff=(256.0-64.0)/256.0;\r\nif (u_is_halo) {\r\ncolor=halo_color;\r\ngamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);\r\nbuff=(6.0-halo_width/fontScale)/SDF_PX;\r\n}\r\nlowp float dist=texture2D(u_texture,tex).a;\r\nhighp float gamma_scaled=gamma*gamma_scale;\r\nhighp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);\r\ngl_FragColor=color*(alpha*opacity*fade_opacity);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","const float PI=3.141592653589793;\r\nattribute vec4 a_pos_offset;\r\nattribute vec4 a_data;\r\nattribute vec4 a_pixeloffset;\r\nattribute vec3 a_projected_pos;\r\nattribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;\r\nuniform bool u_is_size_feature_constant;\r\nuniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;\r\nuniform mat4 u_label_plane_matrix;\r\nuniform mat4 u_coord_matrix;\r\nuniform bool u_is_text;\r\nuniform bool u_pitch_with_map;\r\nuniform highp float u_pitch;\r\nuniform bool u_rotate_symbol;\r\nuniform highp float u_aspect_ratio;\r\nuniform highp float u_camera_to_center_distance;\r\nuniform float u_fade_change;\r\nuniform vec2 u_texsize;\r\nvarying vec2 v_data0;\r\nvarying vec3 v_data1;\r\n#pragma mapbox: define highp vec4 fill_color\r\n#pragma mapbox: define highp vec4 halo_color\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp float halo_width\r\n#pragma mapbox: define lowp float halo_blur\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 fill_color\r\n#pragma mapbox: initialize highp vec4 halo_color\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize lowp float halo_width\r\n#pragma mapbox: initialize lowp float halo_blur\r\nvec2 a_pos=a_pos_offset.xy;\r\nvec2 a_offset=a_pos_offset.zw;\r\nvec2 a_tex=a_data.xy;\r\nvec2 a_size=a_data.zw;\r\nfloat a_size_min=floor(a_size[0]*0.5);\r\nvec2 a_pxoffset=a_pixeloffset.xy;\r\nhighp float segment_angle=-a_projected_pos[2];\r\nfloat size;\r\nif (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\r\nsize=mix(a_size_min,a_size[1],u_size_t)/128.0;\r\n} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\r\nsize=a_size_min/128.0;\r\n} else {\r\nsize=u_size;\r\n}\r\nvec4 projectedPoint=u_matrix*vec4(a_pos,0,1);\r\nhighp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\r\ncamera_to_anchor_distance/u_camera_to_center_distance :\r\nu_camera_to_center_distance/camera_to_anchor_distance;\r\nhighp float perspective_ratio=clamp(\r\n0.5+0.5*distance_ratio,0.0,4.0);\r\nsize*=perspective_ratio;\r\nfloat fontScale=u_is_text ? size/24.0 : size;\r\nhighp float symbol_rotation=0.0;\r\nif (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);\r\nvec2 a=projectedPoint.xy/projectedPoint.w;\r\nvec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;\r\nsymbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);\r\n}\r\nhighp float angle_sin=sin(segment_angle+symbol_rotation);\r\nhighp float angle_cos=cos(segment_angle+symbol_rotation);\r\nmat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);\r\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);\r\ngl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);\r\nfloat gamma_scale=gl_Position.w;\r\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);\r\nfloat fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;\r\nfloat interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));\r\nv_data0=a_tex/u_texsize;\r\nv_data1=vec3(gamma_scale,size,interpolated_fade_opacity);\r\n}"),Yi=Ki("#define SDF_PX 8.0\r\n#define SDF 1.0\r\n#define ICON 0.0\r\nuniform bool u_is_halo;\r\nuniform sampler2D u_texture;\r\nuniform sampler2D u_texture_icon;\r\nuniform highp float u_gamma_scale;\r\nuniform lowp float u_device_pixel_ratio;\r\nvarying vec4 v_data0;\r\nvarying vec4 v_data1;\r\n#pragma mapbox: define highp vec4 fill_color\r\n#pragma mapbox: define highp vec4 halo_color\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp float halo_width\r\n#pragma mapbox: define lowp float halo_blur\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 fill_color\r\n#pragma mapbox: initialize highp vec4 halo_color\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize lowp float halo_width\r\n#pragma mapbox: initialize lowp float halo_blur\r\nfloat fade_opacity=v_data1[2];\r\nif (v_data1.w==ICON) {\r\nvec2 tex_icon=v_data0.zw;\r\nlowp float alpha=opacity*fade_opacity;\r\ngl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\nreturn;\r\n}\r\nvec2 tex=v_data0.xy;\r\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;\r\nfloat gamma_scale=v_data1.x;\r\nfloat size=v_data1.y;\r\nfloat fontScale=size/24.0;\r\nlowp vec4 color=fill_color;\r\nhighp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);\r\nlowp float buff=(256.0-64.0)/256.0;\r\nif (u_is_halo) {\r\ncolor=halo_color;\r\ngamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);\r\nbuff=(6.0-halo_width/fontScale)/SDF_PX;\r\n}\r\nlowp float dist=texture2D(u_texture,tex).a;\r\nhighp float gamma_scaled=gamma*gamma_scale;\r\nhighp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);\r\ngl_FragColor=color*(alpha*opacity*fade_opacity);\r\n#ifdef OVERDRAW_INSPECTOR\r\ngl_FragColor=vec4(1.0);\r\n#endif\r\n}","const float PI=3.141592653589793;\r\nattribute vec4 a_pos_offset;\r\nattribute vec4 a_data;\r\nattribute vec3 a_projected_pos;\r\nattribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;\r\nuniform bool u_is_size_feature_constant;\r\nuniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;\r\nuniform mat4 u_label_plane_matrix;\r\nuniform mat4 u_coord_matrix;\r\nuniform bool u_is_text;\r\nuniform bool u_pitch_with_map;\r\nuniform highp float u_pitch;\r\nuniform bool u_rotate_symbol;\r\nuniform highp float u_aspect_ratio;\r\nuniform highp float u_camera_to_center_distance;\r\nuniform float u_fade_change;\r\nuniform vec2 u_texsize;\r\nuniform vec2 u_texsize_icon;\r\nvarying vec4 v_data0;\r\nvarying vec4 v_data1;\r\n#pragma mapbox: define highp vec4 fill_color\r\n#pragma mapbox: define highp vec4 halo_color\r\n#pragma mapbox: define lowp float opacity\r\n#pragma mapbox: define lowp float halo_width\r\n#pragma mapbox: define lowp float halo_blur\r\nvoid main() {\r\n#pragma mapbox: initialize highp vec4 fill_color\r\n#pragma mapbox: initialize highp vec4 halo_color\r\n#pragma mapbox: initialize lowp float opacity\r\n#pragma mapbox: initialize lowp float halo_width\r\n#pragma mapbox: initialize lowp float halo_blur\r\nvec2 a_pos=a_pos_offset.xy;\r\nvec2 a_offset=a_pos_offset.zw;\r\nvec2 a_tex=a_data.xy;\r\nvec2 a_size=a_data.zw;\r\nfloat a_size_min=floor(a_size[0]*0.5);\r\nfloat is_sdf=a_size[0]-2.0*a_size_min;\r\nhighp float segment_angle=-a_projected_pos[2];\r\nfloat size;\r\nif (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\r\nsize=mix(a_size_min,a_size[1],u_size_t)/128.0;\r\n} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\r\nsize=a_size_min/128.0;\r\n} else {\r\nsize=u_size;\r\n}\r\nvec4 projectedPoint=u_matrix*vec4(a_pos,0,1);\r\nhighp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\r\ncamera_to_anchor_distance/u_camera_to_center_distance :\r\nu_camera_to_center_distance/camera_to_anchor_distance;\r\nhighp float perspective_ratio=clamp(\r\n0.5+0.5*distance_ratio,0.0,4.0);\r\nsize*=perspective_ratio;\r\nfloat fontScale=size/24.0;\r\nhighp float symbol_rotation=0.0;\r\nif (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);\r\nvec2 a=projectedPoint.xy/projectedPoint.w;\r\nvec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;\r\nsymbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);\r\n}\r\nhighp float angle_sin=sin(segment_angle+symbol_rotation);\r\nhighp float angle_cos=cos(segment_angle+symbol_rotation);\r\nmat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);\r\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);\r\ngl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);\r\nfloat gamma_scale=gl_Position.w;\r\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);\r\nfloat fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;\r\nfloat interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));\r\nv_data0.xy=a_tex/u_texsize;\r\nv_data0.zw=a_tex/u_texsize_icon;\r\nv_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);\r\n}");function Ki(t,e){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,s={};return{fragmentSource:t=t.replace(n,function(t,e,n,i,r){return s[r]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+r+"\nvarying "+n+" "+i+" "+r+";\n#else\nuniform "+n+" "+i+" u_"+r+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+r+"\n "+n+" "+i+" "+r+" = u_"+r+";\n#endif\n"}),vertexSource:e=e.replace(n,function(t,e,n,i,r){var o="float"===i?"vec2":"vec4",a=r.match(/color/)?"color":o;return s[r]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+r+"\nuniform lowp float u_"+r+"_t;\nattribute "+n+" "+o+" a_"+r+";\nvarying "+n+" "+i+" "+r+";\n#else\nuniform "+n+" "+i+" u_"+r+";\n#endif\n":"vec4"==a?"\n#ifndef HAS_UNIFORM_u_"+r+"\n "+r+" = a_"+r+";\n#else\n "+n+" "+i+" "+r+" = u_"+r+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+r+"\n "+r+" = unpack_mix_"+a+"(a_"+r+", u_"+r+"_t);\n#else\n "+n+" "+i+" "+r+" = u_"+r+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+r+"\nuniform lowp float u_"+r+"_t;\nattribute "+n+" "+o+" a_"+r+";\n#else\nuniform "+n+" "+i+" u_"+r+";\n#endif\n":"vec4"==a?"\n#ifndef HAS_UNIFORM_u_"+r+"\n "+n+" "+i+" "+r+" = a_"+r+";\n#else\n "+n+" "+i+" "+r+" = u_"+r+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+r+"\n "+n+" "+i+" "+r+" = unpack_mix_"+a+"(a_"+r+", u_"+r+"_t);\n#else\n "+n+" "+i+" "+r+" = u_"+r+";\n#endif\n"})}}function Ji(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}var Qi=Object.freeze({__proto__:null,prelude:Si,background:Ci,backgroundPattern:Mi,circle:Ti,clippingMask:Ai,heatmap:Ei,heatmapTexture:Ii,collisionBox:Li,collisionCircle:Ri,debug:Oi,fill:Ni,fillOutline:ki,fillOutlinePattern:zi,fillPattern:Di,fillExtrusion:Fi,fillExtrusionPattern:Gi,hillshadePrepare:ji,hillshade:Vi,line:qi,lineGradient:Bi,linePattern:Ui,lineSDF:Wi,raster:Zi,symbolIcon:Xi,symbolSDF:Hi,symbolTextAndIcon:Yi});function $i(t,e,n,i,r){var o=t.gl;this.program=o.createProgram();var a=n?n.defines():[];r&&a.push("#define OVERDRAW_INSPECTOR;");var s=a.concat(Si.fragmentSource,e.fragmentSource).join("\n"),l=a.concat(Si.vertexSource,e.vertexSource).join("\n"),u=o.createShader(o.FRAGMENT_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(u,s),o.compileShader(u),o.attachShader(this.program,u);var h=o.createShader(o.VERTEX_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(h,l),o.compileShader(h),o.attachShader(this.program,h);for(var c=n?n.layoutAttributes:[],p=0;p<c.length;p++)o.bindAttribLocation(this.program,p,c[p].name);o.linkProgram(this.program),o.deleteShader(h),o.deleteShader(u),this.numAttributes=o.getProgramParameter(this.program,o.ACTIVE_ATTRIBUTES),this.attributes={};for(var f={},d=0;d<this.numAttributes;d++){var y=o.getActiveAttrib(this.program,d);y&&(this.attributes[y.name]=o.getAttribLocation(this.program,y.name))}for(var m=o.getProgramParameter(this.program,o.ACTIVE_UNIFORMS),g=0;g<m;g++){var v=o.getActiveUniform(this.program,g);v&&(f[v.name]=o.getUniformLocation(this.program,v.name))}this.fixedUniforms=i(t,f),this.binderUniforms=n?n.getUniforms(t,f):[]}}}function tr(t,e,n){var i=1/Bn(n,1,e.transform.tileZoom),r=Math.pow(2,n.tileID.overscaledZ),o=n.tileSize*Math.pow(2,e.transform.tileZoom)/r,a=o*(n.tileID.canonical.x+n.tileID.wrap*r),s=o*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[i,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}function er(t,e,n,i){var r=e.style.light,o=r.properties.get("position"),a=[o.x,o.y,o.z],s=vt.create$1();"viewport"===r.properties.get("anchor")&&vt.fromRotation(s,-e.transform.angle),vt.transformMat3(a,a,s);var l=r.properties.get("color");return{u_matrix:t,u_lightpos:a,u_lightintensity:r.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+n,u_opacity:i}}function nr(t){return{u_matrix:t}}function ir(t,e,n,i){return vt.extend(nr(t),tr(n,e,i))}function rr(t,e,n,i){var r,o,a=t.transform;if("map"===i.paint.get("circle-pitch-alignment")){var s=Bn(n,1,a.zoom);r=!0,o=[s,s]}else r=!1,o=a.pixelsToGLUnits;return{u_camera_to_center_distance:a.cameraToCenterDistance,u_scale_with_map:+("map"===i.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(e.posMatrix,n,i.paint.get("circle-translate"),i.paint.get("circle-translate-anchor")),u_pitch_with_map:+r,u_device_pixel_ratio:vt.browser.devicePixelRatio,u_extrude_scale:o}}function or(t){return{u_matrix:t}}function ar(t,e,n){var i=t.transform;return{u_matrix:cr(t,e,n),u_ratio:1/Bn(e,1,i.zoom),u_device_pixel_ratio:vt.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}}Ji.prototype.bind=function(t,e,n,i,r,o,a,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==i.length,u=0;!l&&u<i.length;u++)this.boundPaintVertexBuffers[u]!==i[u]&&(l=!0);t.extVertexArrayObject&&this.vao&&this.boundProgram===e&&this.boundLayoutVertexBuffer===n&&!l&&this.boundIndexBuffer===r&&this.boundVertexOffset===o&&this.boundDynamicVertexBuffer===a&&this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),a&&a.bind(),r&&r.dynamicDraw&&r.bind(),s&&s.bind()):this.freshBind(e,n,i,r,o,a,s)},Ji.prototype.freshBind=function(t,e,n,i,r,o,a){var s,l=t.numAttributes,u=this.context,h=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=i,this.boundVertexOffset=r,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=a;else{s=u.currentNumAttributes||0;for(var c=l;c<s;c++)h.disableVertexAttribArray(c)}e.enableAttributes(h,t);for(var p=0,f=n;p<f.length;p+=1)f[p].enableAttributes(h,t);o&&o.enableAttributes(h,t),a&&a.enableAttributes(h,t),e.bind(),e.setVertexAttribPointers(h,t,r);for(var d=0,y=n;d<y.length;d+=1){var m=y[d];m.bind(),m.setVertexAttribPointers(h,t,r)}o&&(o.bind(),o.setVertexAttribPointers(h,t,r)),i&&i.bind(),a&&(a.bind(),a.setVertexAttribPointers(h,t,r)),u.currentNumAttributes=l},Ji.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)},$i.prototype.draw=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y){var m,g=t.gl;if(!this.failedToCreate){for(var v in t.program.set(this.program),t.setDepthMode(n),t.setStencilMode(i),t.setColorMode(r),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[v].set(a[v]);f&&f.setUniforms(t,this.binderUniforms,c,{zoom:p});for(var x=((m={})[g.LINES]=2,m[g.TRIANGLES]=3,m[g.LINE_STRIP]=1,m)[e],_=0,w=h.get();_<w.length;_+=1){var b=w[_],P=b.vaos||(b.vaos={});(P[s]||(P[s]=new Ji)).bind(t,this,l,f?f.getPaintVertexBuffers():[],u,b.vertexOffset,d,y),g.drawElements(e,b.primitiveLength*x,g.UNSIGNED_SHORT,b.primitiveOffset*x*2)}}};var sr=function(t,e,n){return void 0===n&&(n=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:n}},lr=function(t,e,n){var i=n.paint.get("hillshade-shadow-color"),r=n.paint.get("hillshade-highlight-color"),o=n.paint.get("hillshade-accent-color"),a=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(a-=t.transform.angle);var s,l,u,h=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),h),u_image:0,u_latrange:(s=e.tileID,l=Math.pow(2,s.canonical.z),u=s.canonical.y,[new vt.MercatorCoordinate(0,u/l).toLngLat().lat,new vt.MercatorCoordinate(0,(u+1)/l).toLngLat().lat]),u_light:[n.paint.get("hillshade-exaggeration"),a],u_shadow:i,u_highlight:r,u_accent:o}},ur=function(t,e,n){var i=e.stride,r=vt.create();return vt.ortho(r,0,vt.EXTENT,-vt.EXTENT,0,0,1),vt.translate(r,r,[0,-vt.EXTENT,0]),{u_matrix:r,u_image:1,u_dimension:[i,i],u_zoom:t.overscaledZ,u_maxzoom:n,u_unpack:e.getUnpackVector()}};function hr(t,e){return 1/Bn(t,1,e.tileZoom)}function cr(t,e,n){return t.translatePosMatrix(e.tileID.posMatrix,e,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}function pr(t,e,n,i,r){return{u_matrix:t,u_tl_parent:e,u_scale_parent:n,u_buffer_scale:1,u_fade_t:i.mix,u_opacity:i.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:(a=r.paint.get("raster-saturation"),0<a?1-1/(1.001-a):-a),u_contrast_factor:(o=r.paint.get("raster-contrast"),0<o?1/(1-o):1+o),u_spin_weights:function(t){t*=Math.PI/180;var e=Math.sin(t),n=Math.cos(t);return[(2*n+1)/3,(-Math.sqrt(3)*e-n+1)/3,(Math.sqrt(3)*e-n+1)/3]}(r.paint.get("raster-hue-rotate"))};var o,a}function fr(t,e,n,i,r,o,a,s,l,u){var h=r.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:h.cameraToCenterDistance,u_pitch:h.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:h.width/h.height,u_fade_change:r.options.fadeDuration?r.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+i,u_texsize:u,u_texture:0}}function dr(t,e,n,i,r,o,a,s,l,u,h){var c=r.transform;return vt.extend(fr(t,e,n,i,r,o,a,s,l,u),{u_gamma_scale:i?Math.cos(c._pitch)*c.cameraToCenterDistance:1,u_device_pixel_ratio:vt.browser.devicePixelRatio,u_is_halo:+h})}var yr,mr={fillExtrusion:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_lightpos:new vt.Uniform3f(t,e.u_lightpos),u_lightintensity:new vt.Uniform1f(t,e.u_lightintensity),u_lightcolor:new vt.Uniform3f(t,e.u_lightcolor),u_vertical_gradient:new vt.Uniform1f(t,e.u_vertical_gradient),u_opacity:new vt.Uniform1f(t,e.u_opacity)}},fillExtrusionPattern:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_lightpos:new vt.Uniform3f(t,e.u_lightpos),u_lightintensity:new vt.Uniform1f(t,e.u_lightintensity),u_lightcolor:new vt.Uniform3f(t,e.u_lightcolor),u_vertical_gradient:new vt.Uniform1f(t,e.u_vertical_gradient),u_height_factor:new vt.Uniform1f(t,e.u_height_factor),u_image:new vt.Uniform1i(t,e.u_image),u_texsize:new vt.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new vt.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new vt.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new vt.Uniform3f(t,e.u_scale),u_fade:new vt.Uniform1f(t,e.u_fade),u_opacity:new vt.Uniform1f(t,e.u_opacity)}},fill:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix)}},fillPattern:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_image:new vt.Uniform1i(t,e.u_image),u_texsize:new vt.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new vt.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new vt.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new vt.Uniform3f(t,e.u_scale),u_fade:new vt.Uniform1f(t,e.u_fade)}},fillOutline:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_world:new vt.Uniform2f(t,e.u_world)}},fillOutlinePattern:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_world:new vt.Uniform2f(t,e.u_world),u_image:new vt.Uniform1i(t,e.u_image),u_texsize:new vt.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new vt.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new vt.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new vt.Uniform3f(t,e.u_scale),u_fade:new vt.Uniform1f(t,e.u_fade)}},circle:function(t,e){return{u_camera_to_center_distance:new vt.Uniform1f(t,e.u_camera_to_center_distance),u_scale_with_map:new vt.Uniform1i(t,e.u_scale_with_map),u_pitch_with_map:new vt.Uniform1i(t,e.u_pitch_with_map),u_extrude_scale:new vt.Uniform2f(t,e.u_extrude_scale),u_device_pixel_ratio:new vt.Uniform1f(t,e.u_device_pixel_ratio),u_matrix:new vt.UniformMatrix4f(t,e.u_matrix)}},collisionBox:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_camera_to_center_distance:new vt.Uniform1f(t,e.u_camera_to_center_distance),u_pixels_to_tile_units:new vt.Uniform1f(t,e.u_pixels_to_tile_units),u_extrude_scale:new vt.Uniform2f(t,e.u_extrude_scale),u_overscale_factor:new vt.Uniform1f(t,e.u_overscale_factor)}},collisionCircle:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_inv_matrix:new vt.UniformMatrix4f(t,e.u_inv_matrix),u_camera_to_center_distance:new vt.Uniform1f(t,e.u_camera_to_center_distance),u_viewport_size:new vt.Uniform2f(t,e.u_viewport_size)}},debug:function(t,e){return{u_color:new vt.UniformColor(t,e.u_color),u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_overlay:new vt.Uniform1i(t,e.u_overlay),u_overlay_scale:new vt.Uniform1f(t,e.u_overlay_scale)}},clippingMask:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix)}},heatmap:function(t,e){return{u_extrude_scale:new vt.Uniform1f(t,e.u_extrude_scale),u_intensity:new vt.Uniform1f(t,e.u_intensity),u_matrix:new vt.UniformMatrix4f(t,e.u_matrix)}},heatmapTexture:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_world:new vt.Uniform2f(t,e.u_world),u_image:new vt.Uniform1i(t,e.u_image),u_color_ramp:new vt.Uniform1i(t,e.u_color_ramp),u_opacity:new vt.Uniform1f(t,e.u_opacity)}},hillshade:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_image:new vt.Uniform1i(t,e.u_image),u_latrange:new vt.Uniform2f(t,e.u_latrange),u_light:new vt.Uniform2f(t,e.u_light),u_shadow:new vt.UniformColor(t,e.u_shadow),u_highlight:new vt.UniformColor(t,e.u_highlight),u_accent:new vt.UniformColor(t,e.u_accent)}},hillshadePrepare:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_image:new vt.Uniform1i(t,e.u_image),u_dimension:new vt.Uniform2f(t,e.u_dimension),u_zoom:new vt.Uniform1f(t,e.u_zoom),u_maxzoom:new vt.Uniform1f(t,e.u_maxzoom),u_unpack:new vt.Uniform4f(t,e.u_unpack)}},line:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_ratio:new vt.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new vt.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new vt.Uniform2f(t,e.u_units_to_pixels)}},lineGradient:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_ratio:new vt.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new vt.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new vt.Uniform2f(t,e.u_units_to_pixels),u_image:new vt.Uniform1i(t,e.u_image)}},linePattern:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_texsize:new vt.Uniform2f(t,e.u_texsize),u_ratio:new vt.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new vt.Uniform1f(t,e.u_device_pixel_ratio),u_image:new vt.Uniform1i(t,e.u_image),u_units_to_pixels:new vt.Uniform2f(t,e.u_units_to_pixels),u_scale:new vt.Uniform3f(t,e.u_scale),u_fade:new vt.Uniform1f(t,e.u_fade)}},lineSDF:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_ratio:new vt.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new vt.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new vt.Uniform2f(t,e.u_units_to_pixels),u_patternscale_a:new vt.Uniform2f(t,e.u_patternscale_a),u_patternscale_b:new vt.Uniform2f(t,e.u_patternscale_b),u_sdfgamma:new vt.Uniform1f(t,e.u_sdfgamma),u_image:new vt.Uniform1i(t,e.u_image),u_tex_y_a:new vt.Uniform1f(t,e.u_tex_y_a),u_tex_y_b:new vt.Uniform1f(t,e.u_tex_y_b),u_mix:new vt.Uniform1f(t,e.u_mix)}},raster:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_tl_parent:new vt.Uniform2f(t,e.u_tl_parent),u_scale_parent:new vt.Uniform1f(t,e.u_scale_parent),u_buffer_scale:new vt.Uniform1f(t,e.u_buffer_scale),u_fade_t:new vt.Uniform1f(t,e.u_fade_t),u_opacity:new vt.Uniform1f(t,e.u_opacity),u_image0:new vt.Uniform1i(t,e.u_image0),u_image1:new vt.Uniform1i(t,e.u_image1),u_brightness_low:new vt.Uniform1f(t,e.u_brightness_low),u_brightness_high:new vt.Uniform1f(t,e.u_brightness_high),u_saturation_factor:new vt.Uniform1f(t,e.u_saturation_factor),u_contrast_factor:new vt.Uniform1f(t,e.u_contrast_factor),u_spin_weights:new vt.Uniform3f(t,e.u_spin_weights)}},symbolIcon:function(t,e){return{u_is_size_zoom_constant:new vt.Uniform1i(t,e.u_is_size_zoom_constant),u_is_size_feature_constant:new vt.Uniform1i(t,e.u_is_size_feature_constant),u_size_t:new vt.Uniform1f(t,e.u_size_t),u_size:new vt.Uniform1f(t,e.u_size),u_camera_to_center_distance:new vt.Uniform1f(t,e.u_camera_to_center_distance),u_pitch:new vt.Uniform1f(t,e.u_pitch),u_rotate_symbol:new vt.Uniform1i(t,e.u_rotate_symbol),u_aspect_ratio:new vt.Uniform1f(t,e.u_aspect_ratio),u_fade_change:new vt.Uniform1f(t,e.u_fade_change),u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_label_plane_matrix:new vt.UniformMatrix4f(t,e.u_label_plane_matrix),u_coord_matrix:new vt.UniformMatrix4f(t,e.u_coord_matrix),u_is_text:new vt.Uniform1i(t,e.u_is_text),u_pitch_with_map:new vt.Uniform1i(t,e.u_pitch_with_map),u_texsize:new vt.Uniform2f(t,e.u_texsize),u_texture:new vt.Uniform1i(t,e.u_texture)}},symbolSDF:function(t,e){return{u_is_size_zoom_constant:new vt.Uniform1i(t,e.u_is_size_zoom_constant),u_is_size_feature_constant:new vt.Uniform1i(t,e.u_is_size_feature_constant),u_size_t:new vt.Uniform1f(t,e.u_size_t),u_size:new vt.Uniform1f(t,e.u_size),u_camera_to_center_distance:new vt.Uniform1f(t,e.u_camera_to_center_distance),u_pitch:new vt.Uniform1f(t,e.u_pitch),u_rotate_symbol:new vt.Uniform1i(t,e.u_rotate_symbol),u_aspect_ratio:new vt.Uniform1f(t,e.u_aspect_ratio),u_fade_change:new vt.Uniform1f(t,e.u_fade_change),u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_label_plane_matrix:new vt.UniformMatrix4f(t,e.u_label_plane_matrix),u_coord_matrix:new vt.UniformMatrix4f(t,e.u_coord_matrix),u_is_text:new vt.Uniform1i(t,e.u_is_text),u_pitch_with_map:new vt.Uniform1i(t,e.u_pitch_with_map),u_texsize:new vt.Uniform2f(t,e.u_texsize),u_texture:new vt.Uniform1i(t,e.u_texture),u_gamma_scale:new vt.Uniform1f(t,e.u_gamma_scale),u_device_pixel_ratio:new vt.Uniform1f(t,e.u_device_pixel_ratio),u_is_halo:new vt.Uniform1i(t,e.u_is_halo)}},symbolTextAndIcon:function(t,e){return{u_is_size_zoom_constant:new vt.Uniform1i(t,e.u_is_size_zoom_constant),u_is_size_feature_constant:new vt.Uniform1i(t,e.u_is_size_feature_constant),u_size_t:new vt.Uniform1f(t,e.u_size_t),u_size:new vt.Uniform1f(t,e.u_size),u_camera_to_center_distance:new vt.Uniform1f(t,e.u_camera_to_center_distance),u_pitch:new vt.Uniform1f(t,e.u_pitch),u_rotate_symbol:new vt.Uniform1i(t,e.u_rotate_symbol),u_aspect_ratio:new vt.Uniform1f(t,e.u_aspect_ratio),u_fade_change:new vt.Uniform1f(t,e.u_fade_change),u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_label_plane_matrix:new vt.UniformMatrix4f(t,e.u_label_plane_matrix),u_coord_matrix:new vt.UniformMatrix4f(t,e.u_coord_matrix),u_is_text:new vt.Uniform1i(t,e.u_is_text),u_pitch_with_map:new vt.Uniform1i(t,e.u_pitch_with_map),u_texsize:new vt.Uniform2f(t,e.u_texsize),u_texsize_icon:new vt.Uniform2f(t,e.u_texsize_icon),u_texture:new vt.Uniform1i(t,e.u_texture),u_texture_icon:new vt.Uniform1i(t,e.u_texture_icon),u_gamma_scale:new vt.Uniform1f(t,e.u_gamma_scale),u_device_pixel_ratio:new vt.Uniform1f(t,e.u_device_pixel_ratio),u_is_halo:new vt.Uniform1i(t,e.u_is_halo)}},background:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_opacity:new vt.Uniform1f(t,e.u_opacity),u_color:new vt.UniformColor(t,e.u_color)}},backgroundPattern:function(t,e){return{u_matrix:new vt.UniformMatrix4f(t,e.u_matrix),u_opacity:new vt.Uniform1f(t,e.u_opacity),u_image:new vt.Uniform1i(t,e.u_image),u_pattern_tl_a:new vt.Uniform2f(t,e.u_pattern_tl_a),u_pattern_br_a:new vt.Uniform2f(t,e.u_pattern_br_a),u_pattern_tl_b:new vt.Uniform2f(t,e.u_pattern_tl_b),u_pattern_br_b:new vt.Uniform2f(t,e.u_pattern_br_b),u_texsize:new vt.Uniform2f(t,e.u_texsize),u_mix:new vt.Uniform1f(t,e.u_mix),u_pattern_size_a:new vt.Uniform2f(t,e.u_pattern_size_a),u_pattern_size_b:new vt.Uniform2f(t,e.u_pattern_size_b),u_scale_a:new vt.Uniform1f(t,e.u_scale_a),u_scale_b:new vt.Uniform1f(t,e.u_scale_b),u_pixel_coord_upper:new vt.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new vt.Uniform2f(t,e.u_pixel_coord_lower),u_tile_units_to_pixels:new vt.Uniform1f(t,e.u_tile_units_to_pixels)}}};function gr(t,e,n,i,r,o,a){for(var s=t.context,l=s.gl,u=t.useProgram("collisionBox"),h=[],c=0,p=0,f=0;f<i.length;f++){var d=i[f],y=e.getTile(d),m=y.getBucket(n);if(m){var g=d.posMatrix;0===r[0]&&0===r[1]||(g=t.translatePosMatrix(d.posMatrix,y,r,o));var v=a?m.textCollisionBox:m.iconCollisionBox,x=m.collisionCircleArray;if(0<x.length){var _=vt.create(),w=g;vt.mul(_,m.placementInvProjMatrix,t.transform.glCoordMatrix),vt.mul(_,_,m.placementViewportMatrix),h.push({circleArray:x,circleOffset:p,transform:w,invTransform:_}),p=c+=x.length/4}v&&u.draw(s,l.LINES,en.disabled,nn.disabled,t.colorModeForRenderPass(),on.disabled,(b=g,P=t.transform,C=Bn(S=y,1,P.zoom),M=Math.pow(2,P.zoom-S.tileID.overscaledZ),T=S.tileID.overscaleFactor(),{u_matrix:b,u_camera_to_center_distance:P.cameraToCenterDistance,u_pixels_to_tile_units:C,u_extrude_scale:[P.pixelsToGLUnits[0]/(C*M),P.pixelsToGLUnits[1]/(C*M)],u_overscale_factor:T}),n.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,null,t.transform.zoom,null,null,v.collisionVertexBuffer)}}var b,P,S,C,M,T,A,E,I;if(a&&h.length){var L=t.useProgram("collisionCircle"),R=new vt.StructArrayLayout2f1f2i16;R.resize(4*c),R._trim();for(var O=0,N=0,k=h;N<k.length;N+=1)for(var z=k[N],D=0;D<z.circleArray.length/4;D++){var F=4*D,G=z.circleArray[0+F],j=z.circleArray[1+F],V=z.circleArray[2+F],q=z.circleArray[3+F];R.emplace(O++,G,j,V,q,0),R.emplace(O++,G,j,V,q,1),R.emplace(O++,G,j,V,q,2),R.emplace(O++,G,j,V,q,3)}(!yr||yr.length<2*c)&&(yr=function(){var t=2*c,e=new vt.StructArrayLayout3ui6;e.resize(t),e._trim();for(var n=0;n<t;n++){var i=6*n;e.uint16[0+i]=4*n+0,e.uint16[1+i]=4*n+1,e.uint16[2+i]=4*n+2,e.uint16[3+i]=4*n+2,e.uint16[4+i]=4*n+3,e.uint16[5+i]=4*n+0}return e}());for(var B=s.createIndexBuffer(yr,!0),U=s.createVertexBuffer(R,vt.collisionCircleLayout.members,!0),W=0,Z=h;W<Z.length;W+=1){var X=Z[W],H=(A=X.transform,E=X.invTransform,I=t.transform,{u_matrix:A,u_inv_matrix:E,u_camera_to_center_distance:I.cameraToCenterDistance,u_viewport_size:[I.width,I.height]});L.draw(s,l.TRIANGLES,en.disabled,nn.disabled,t.colorModeForRenderPass(),on.disabled,H,n.id,U,B,vt.SegmentVector.simpleSegment(0,2*X.circleOffset,X.circleArray.length,X.circleArray.length/2),null,t.transform.zoom,null,null,null)}U.destroy(),B.destroy()}}var vr=vt.identity(new Float32Array(16));function xr(t,e,n,i,r,o,a,s,l,u,h){var c,p,f,d,y,m,g,v,x,_,w=t.text.placedSymbolArray,b=t.text.dynamicLayoutVertexArray,P=t.icon.dynamicLayoutVertexArray,S={};b.clear();for(var C=0;C<w.length;C++){var M=w.get(C),T=M.hidden||!M.crossTileID||t.allowVerticalPlacement&&!M.placedOrientation?null:i[M.crossTileID];if(T){var A=new vt.Point(M.anchorX,M.anchorY),E=Ln(A,n?s:a),I=Rn(o.cameraToCenterDistance,E.signedDistanceFromCamera),L=r.evaluateSizeForFeature(t.textSizeData,u,M)*I/vt.ONE_EM;n&&(L*=t.tilePixelRatio/l);for(var R=(c=T.anchor,p=T.width,f=T.height,d=T.textOffset,y=T.textBoxScale,m=L,g=vt.getAnchorAlignment(c),v=-(g.horizontalAlign-.5)*p,x=-(g.verticalAlign-.5)*f,_=vt.evaluateVariableOffset(c,d),new vt.Point((v/y+_[0])*m,(x/y+_[1])*m)),O=n?Ln(A.add(R),a).point:E.point.add(e?R.rotate(-o.angle):R),N=t.allowVerticalPlacement&&M.placedOrientation===vt.WritingMode.vertical?Math.PI/2:0,k=0;k<M.numGlyphs;k++)vt.addDynamicAttributes(b,O,N);h&&0<=M.associatedIconIndex&&(S[M.associatedIconIndex]={shiftedAnchor:O,angle:N})}else jn(M.numGlyphs,b)}if(h){P.clear();for(var z=t.icon.placedSymbolArray,D=0;D<z.length;D++){var F=z.get(D);if(F.hidden)jn(F.numGlyphs,P);else{var G=S[D];if(G)for(var j=0;j<F.numGlyphs;j++)vt.addDynamicAttributes(P,G.shiftedAnchor,G.angle);else jn(F.numGlyphs,P)}}t.icon.dynamicLayoutVertexBuffer.updateData(P)}t.text.dynamicLayoutVertexBuffer.updateData(b)}function _r(t,e,n,i,r,o,a,s,l,u,h,c){for(var p=t.context,f=p.gl,d=t.transform,y="map"===s,m="map"===l,g=y&&"point"!==n.layout.get("symbol-placement"),v=y&&!m&&!g,x=void 0!==n.layout.get("symbol-sort-key").constantOr(1),_=t.depthModeForSublayer(0,en.ReadOnly),w=n.layout.get("text-variable-anchor"),b=[],P=0,S=i;P<S.length;P+=1){var C=S[P],M=e.getTile(C),T=M.getBucket(n);if(T){var A=r?T.text:T.icon;if(A&&A.segments.get().length){var E=A.programConfigurations.get(n.id),I=r||T.sdfIcons,L=r?T.textSizeData:T.iconSizeData,R=m||0!==d.pitch,O=t.useProgram((ct=I,pt=r,T.iconsInText&&pt?"symbolTextAndIcon":ct?"symbolSDF":"symbolIcon"),E),N=vt.evaluateSizeForZoom(L,d.zoom),k=void 0,z=[0,0],D=void 0,F=void 0,G=null,j=void 0;if(r)D=M.glyphAtlasTexture,F=f.LINEAR,k=M.glyphAtlasTexture.size,T.iconsInText&&(z=M.imageAtlasTexture.size,G=M.imageAtlasTexture,j=R||t.options.rotating||t.options.zooming||"composite"===L.kind||"camera"===L.kind?f.LINEAR:f.NEAREST);else{var V=1!==n.layout.get("icon-size").constantOr(0)||T.iconsNeedLinear;D=M.imageAtlasTexture,F=I||t.options.rotating||t.options.zooming||V||R?f.LINEAR:f.NEAREST,k=M.imageAtlasTexture.size}var q=Bn(M,1,t.transform.zoom),B=En(C.posMatrix,m,y,t.transform,q),U=In(C.posMatrix,m,y,t.transform,q),W=w&&T.hasTextData(),Z="none"!==n.layout.get("icon-text-fit")&&W&&T.hasIconData();g&&On(T,C.posMatrix,t,r,B,U,m,u);var X=t.translatePosMatrix(C.posMatrix,M,o,a),H=g||r&&w||Z?vr:B,Y=t.translatePosMatrix(U,M,o,a,!0),K=I&&0!==n.paint.get(r?"text-halo-width":"icon-halo-width").constantOr(1),J={program:O,buffers:A,uniformValues:I?T.iconsInText?(et=L.kind,nt=N,it=v,rt=m,ot=t,at=X,st=H,lt=Y,ut=k,ht=z,vt.extend(dr(et,nt,it,rt,ot,at,st,lt,!0,ut,!0),{u_texsize_icon:ht,u_texture_icon:1})):dr(L.kind,N,v,m,t,X,H,Y,r,k,!0):fr(L.kind,N,v,m,t,X,H,Y,r,k),atlasTexture:D,atlasTextureIcon:G,atlasInterpolation:F,atlasInterpolationIcon:j,isSDF:I,hasHalo:K};if(x)for(var Q=0,$=A.segments.get();Q<$.length;Q+=1){var tt=$[Q];b.push({segments:new vt.SegmentVector([tt]),sortKey:tt.sortKey,state:J})}else b.push({segments:A.segments,sortKey:0,state:J})}}}var et,nt,it,rt,ot,at,st,lt,ut,ht,ct,pt;x&&b.sort(function(t,e){return t.sortKey-e.sortKey});for(var ft=0,dt=b;ft<dt.length;ft+=1){var yt=dt[ft],mt=yt.state;if(p.activeTexture.set(f.TEXTURE0),mt.atlasTexture.bind(mt.atlasInterpolation,f.CLAMP_TO_EDGE),mt.atlasTextureIcon&&(p.activeTexture.set(f.TEXTURE1),mt.atlasTextureIcon&&mt.atlasTextureIcon.bind(mt.atlasInterpolationIcon,f.CLAMP_TO_EDGE)),mt.isSDF){var gt=mt.uniformValues;mt.hasHalo&&(gt.u_is_halo=1,wr(mt.buffers,yt.segments,n,t,mt.program,_,h,c,gt)),gt.u_is_halo=0}wr(mt.buffers,yt.segments,n,t,mt.program,_,h,c,mt.uniformValues)}}function wr(t,e,n,i,r,o,a,s,l){var u=i.context;r.draw(u,u.gl.TRIANGLES,o,a,s,on.disabled,l,n.id,t.layoutVertexBuffer,t.indexBuffer,e,n.paint,i.transform.zoom,t.programConfigurations.get(n.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function br(t,e,n,i,r,o,a){var s,l,u,h,c,p,f,d,y,m,g=t.context.gl,v=n.paint.get("fill-pattern"),x=v&&v.constantOr(1),_=n.getCrossfadeParameters();s=a?(l=x&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",g.LINES):(l=x?"fillPattern":"fill",g.TRIANGLES);for(var w=0,b=i;w<b.length;w+=1){var P=b[w],S=e.getTile(P);if(!x||S.patternsLoaded()){var C=S.getBucket(n);if(C){var M=C.programConfigurations.get(n.id),T=t.useProgram(l,M);x&&(t.context.activeTexture.set(g.TEXTURE0),S.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),M.updatePaintBuffers(_));var A=v.constantOr(null);if(A&&S.imageAtlas){var E=S.imageAtlas,I=E.patternPositions[A.to.toString()],L=E.patternPositions[A.from.toString()];I&&L&&M.setConstantPatternPositions(I,L)}var R=t.translatePosMatrix(P.posMatrix,S,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){h=C.indexBuffer2,c=C.segments2;var O=[g.drawingBufferWidth,g.drawingBufferHeight];u="fillOutlinePattern"===l&&x?(p=R,f=t,d=_,y=S,m=O,vt.extend(ir(p,f,d,y),{u_world:m})):{u_matrix:R,u_world:O}}else h=C.indexBuffer,c=C.segments,u=x?ir(R,t,_,S):nr(R);T.draw(t.context,s,r,t.stencilModeForClipping(P),o,on.disabled,u,n.id,C.layoutVertexBuffer,h,c,n.paint,t.transform.zoom,M)}}}}function Pr(t,e,n,i,r,o,a){for(var s=t.context,l=s.gl,u=n.paint.get("fill-extrusion-pattern"),h=u.constantOr(1),c=n.getCrossfadeParameters(),p=n.paint.get("fill-extrusion-opacity"),f=0,d=i;f<d.length;f+=1){var y=d[f],m=e.getTile(y),g=m.getBucket(n);if(g){var v=g.programConfigurations.get(n.id),x=t.useProgram(h?"fillExtrusionPattern":"fillExtrusion",v);h&&(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),v.updatePaintBuffers(c));var _=u.constantOr(null);if(_&&m.imageAtlas){var w=m.imageAtlas,b=w.patternPositions[_.to.toString()],P=w.patternPositions[_.from.toString()];b&&P&&v.setConstantPatternPositions(b,P)}var S=t.translatePosMatrix(y.posMatrix,m,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),C=n.paint.get("fill-extrusion-vertical-gradient"),M=h?(T=S,A=t,E=C,I=p,L=y,R=c,O=m,vt.extend(er(T,A,E,I),tr(R,A,O),{u_height_factor:-Math.pow(2,L.overscaledZ)/O.tileSize/8})):er(S,t,C,p);x.draw(s,s.gl.TRIANGLES,r,o,a,on.backCCW,M,n.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,n.paint,t.transform.zoom,v)}}var T,A,E,I,L,R,O}function Sr(t,e,n,i,r,o){var a=t.context,s=a.gl,l=e.fbo;if(l){var u=t.useProgram("hillshade");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var h=lr(t,e,n);u.draw(a,s.TRIANGLES,i,r,o,on.disabled,h,n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function Cr(t,e,n,i,r,o,a){var s=t.context,l=s.gl,u=e.dem;if(u&&u.data){var h=u.dim,c=u.stride,p=u.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),e.demTexture=e.demTexture||t.getTileTexture(c),e.demTexture){var f=e.demTexture;f.update(p,{premultiply:!1}),f.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else e.demTexture=new vt.Texture(s,p,l.RGBA,{premultiply:!1}),e.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);var d=e.fbo;if(!d){var y=new vt.Texture(s,{width:h,height:h,data:null},l.RGBA);y.bind(l.LINEAR,l.CLAMP_TO_EDGE),(d=e.fbo=s.createFramebuffer(h,h,!0)).colorAttachment.set(y.texture)}s.bindFramebuffer.set(d.framebuffer),s.viewport.set([0,0,h,h]),t.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,r,o,a,on.disabled,ur(e.tileID,u,i),n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),e.needsHillshadePrepare=!1}}function Mr(t,e,n,i,r){var o=i.paint.get("raster-fade-duration");if(0<o){var a=vt.browser.now(),s=(a-t.timeAdded)/o,l=e?(a-e.timeAdded)/o:-1,u=n.getSource(),h=r.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),c=!e||Math.abs(e.tileID.overscaledZ-h)>Math.abs(t.tileID.overscaledZ-h),p=c&&t.refreshedUponExpiration?1:vt.clamp(c?s:1-l,0,1);return t.refreshedUponExpiration&&1<=s&&(t.refreshedUponExpiration=!1),e?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var Tr=new vt.Color(1,0,0,1),Ar=new vt.Color(0,1,0,1),Er=new vt.Color(0,0,1,1),Ir=new vt.Color(1,0,1,1),Lr=new vt.Color(0,1,1,1);function Rr(t,e,n,i){Nr(t,0,e+n/2,t.transform.width,n,i)}function Or(t,e,n,i){Nr(t,e-n/2,0,n,t.transform.height,i)}function Nr(t,e,n,i,r,o){var a=t.context,s=a.gl;s.enable(s.SCISSOR_TEST),s.scissor(e*vt.browser.devicePixelRatio,n*vt.browser.devicePixelRatio,i*vt.browser.devicePixelRatio,r*vt.browser.devicePixelRatio),a.clear({color:o}),s.disable(s.SCISSOR_TEST)}function kr(t,e,n){var i=t.context,r=i.gl,o=n.posMatrix,a=t.useProgram("debug"),s=en.disabled,l=nn.disabled,u=t.colorModeForRenderPass();i.activeTexture.set(r.TEXTURE0),t.emptyTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE),a.draw(i,r.LINE_STRIP,s,l,u,on.disabled,sr(o,vt.Color.red),"$debug",t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);var h=e.getTileByID(n.key).latestRawTileData,c=Math.floor((h&&h.byteLength||0)/1024),p=e.getTile(n).tileSize,f=512/Math.min(p,512)*(n.overscaledZ/t.transform.zoom)*.5,d=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(d+=" => "+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var n=t.debugOverlayCanvas,i=t.context.gl,r=t.debugOverlayCanvas.getContext("2d");r.clearRect(0,0,n.width,n.height),r.shadowColor="white",r.shadowBlur=2,r.lineWidth=1.5,r.strokeStyle="white",r.textBaseline="top",r.font="bold 36px Open Sans, sans-serif",r.fillText(e,5,5),r.strokeText(e,5,5),t.debugOverlayTexture.update(n),t.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}(t,d+" "+c+"kb"),a.draw(i,r.TRIANGLES,s,l,rn.alphaBlended,on.disabled,sr(o,vt.Color.transparent,f),"$debug",t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}function zr(t,e){this.context=new an(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=ln.maxUnderzooming+ln.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new yi,this.gpuTimers={}}var Dr={symbol:function(t,e,n,i,r){if("translucent"===t.renderPass){var o=nn.disabled,a=t.colorModeForRenderPass();n.layout.get("text-variable-anchor")&&function(t,e,n,i,r,o,a){for(var s=e.transform,l="map"===r,u="map"===o,h=0,c=t;h<c.length;h+=1){var p=c[h],f=i.getTile(p),d=f.getBucket(n);if(d&&d.text&&d.text.segments.get().length){var y=vt.evaluateSizeForZoom(d.textSizeData,s.zoom),m=Bn(f,1,e.transform.zoom),g=En(p.posMatrix,u,l,e.transform,m),v="none"!==n.layout.get("icon-text-fit")&&d.hasIconData();if(y){var x=Math.pow(2,s.zoom-f.tileID.overscaledZ);xr(d,l,u,a,vt.symbolSize,s,g,p.posMatrix,x,y,v)}}}}(i,t,n,e,n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),r),0!==n.paint.get("icon-opacity").constantOr(1)&&_r(t,e,n,i,!1,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),n.layout.get("icon-rotation-alignment"),n.layout.get("icon-pitch-alignment"),n.layout.get("icon-keep-upright"),o,a),0!==n.paint.get("text-opacity").constantOr(1)&&_r(t,e,n,i,!0,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.layout.get("text-keep-upright"),o,a),e.map.showCollisionBoxes&&(gr(t,e,n,i,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),!0),gr(t,e,n,i,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),!1))}},circle:function(t,e,n,i){if("translucent"===t.renderPass){var r=n.paint.get("circle-opacity"),o=n.paint.get("circle-stroke-width"),a=n.paint.get("circle-stroke-opacity"),s=void 0!==n.layout.get("circle-sort-key").constantOr(1);if(0!==r.constantOr(1)||0!==o.constantOr(1)&&0!==a.constantOr(1)){for(var l=t.context,u=l.gl,h=t.depthModeForSublayer(0,en.ReadOnly),c=nn.disabled,p=t.colorModeForRenderPass(),f=[],d=0;d<i.length;d++){var y=i[d],m=e.getTile(y),g=m.getBucket(n);if(g){var v=g.programConfigurations.get(n.id),x={programConfiguration:v,program:t.useProgram("circle",v),layoutVertexBuffer:g.layoutVertexBuffer,indexBuffer:g.indexBuffer,uniformValues:rr(t,y,m,n)};if(s)for(var _=0,w=g.segments.get();_<w.length;_+=1){var b=w[_];f.push({segments:new vt.SegmentVector([b]),sortKey:b.sortKey,state:x})}else f.push({segments:g.segments,sortKey:0,state:x})}}s&&f.sort(function(t,e){return t.sortKey-e.sortKey});for(var P=0,S=f;P<S.length;P+=1){var C=S[P],M=C.state;M.program.draw(l,u.TRIANGLES,h,c,p,on.disabled,M.uniformValues,n.id,M.layoutVertexBuffer,M.indexBuffer,C.segments,n.paint,t.transform.zoom,M.programConfiguration)}}}},heatmap:function(t,e,n,i){if(0!==n.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){var r=t.context,o=r.gl,a=nn.disabled,s=new rn([o.ONE,o.ONE],vt.Color.transparent,[!0,!0,!0,!0]);!function(t,e,n){var i=t.gl;t.activeTexture.set(i.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var r,o,a,s,l,u=n.heatmapFbo;if(u)i.bindTexture(i.TEXTURE_2D,u.colorAttachment.get()),t.bindFramebuffer.set(u.framebuffer);else{var h=i.createTexture();i.bindTexture(i.TEXTURE_2D,h),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),u=n.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),o=e,a=h,s=u,(l=(r=t).gl).texImage2D(l.TEXTURE_2D,0,l.RGBA,o.width/4,o.height/4,0,l.RGBA,r.extRenderToTextureHalfFloat?r.extTextureHalfFloat.HALF_FLOAT_OES:l.UNSIGNED_BYTE,null),s.colorAttachment.set(a)}}(r,t,n),r.clear({color:vt.Color.transparent});for(var l=0;l<i.length;l++){var u=i[l];if(!e.hasRenderableParent(u)){var h=e.getTile(u),c=h.getBucket(n);if(c){var p=c.programConfigurations.get(n.id);t.useProgram("heatmap",p).draw(r,o.TRIANGLES,en.disabled,a,s,on.disabled,(f=u.posMatrix,d=h,y=t.transform.zoom,m=n.paint.get("heatmap-intensity"),{u_matrix:f,u_extrude_scale:Bn(d,1,y),u_intensity:m}),n.id,c.layoutVertexBuffer,c.indexBuffer,c.segments,n.paint,t.transform.zoom,p)}}}r.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,e){var n=t.context,i=n.gl,r=e.heatmapFbo;if(r){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,r.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=e.colorRampTexture;(o=o||(e.colorRampTexture=new vt.Texture(n,e.colorRamp,i.RGBA))).bind(i.LINEAR,i.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(n,i.TRIANGLES,en.disabled,nn.disabled,t.colorModeForRenderPass(),on.disabled,function(t,e){var n=vt.create();vt.ortho(n,0,t.width,t.height,0,0,1);var i=t.context.gl;return{u_matrix:n,u_world:[i.drawingBufferWidth,i.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:e.paint.get("heatmap-opacity")}}(t,e),e.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,e.paint,t.transform.zoom)}}(t,n));var f,d,y,m},line:function(t,e,n,i){if("translucent"===t.renderPass){var r=n.paint.get("line-opacity"),o=n.paint.get("line-width");if(0!==r.constantOr(1)&&0!==o.constantOr(1)){var a=t.depthModeForSublayer(0,en.ReadOnly),s=t.colorModeForRenderPass(),l=n.paint.get("line-dasharray"),u=n.paint.get("line-pattern"),h=u.constantOr(1),c=n.paint.get("line-gradient"),p=n.getCrossfadeParameters(),f=h?"linePattern":l?"lineSDF":c?"lineGradient":"line",d=t.context,y=d.gl,m=!0;if(c){d.activeTexture.set(y.TEXTURE0);var g=n.gradientTexture;if(!n.gradient)return;(g=g||(n.gradientTexture=new vt.Texture(d,n.gradient,y.RGBA))).bind(y.LINEAR,y.CLAMP_TO_EDGE)}for(var v=0,x=i;v<x.length;v+=1){var _=x[v],w=e.getTile(_);if(!h||w.patternsLoaded()){var b=w.getBucket(n);if(b){var P=b.programConfigurations.get(n.id),S=t.context.program.get(),C=t.useProgram(f,P),M=m||C.program!==S,T=u.constantOr(null);if(T&&w.imageAtlas){var A=w.imageAtlas,E=A.patternPositions[T.to.toString()],I=A.patternPositions[T.from.toString()];E&&I&&P.setConstantPatternPositions(E,I)}var L=h?(H=w,Y=n,K=p,J=(X=t).transform,Q=hr(H,J),{u_matrix:cr(X,H,Y),u_texsize:H.imageAtlasTexture.size,u_ratio:1/Bn(H,1,J.zoom),u_device_pixel_ratio:vt.browser.devicePixelRatio,u_image:0,u_scale:[Q,K.fromScale,K.toScale],u_fade:K.t,u_units_to_pixels:[1/J.pixelsToGLUnits[0],1/J.pixelsToGLUnits[1]]}):l?(z=w,D=n,F=l,G=p,j=void 0,j=(k=t).lineAtlas,V=hr(z,k.transform),q="round"===D.layout.get("line-cap"),B=j.getDash(F.from,q),U=j.getDash(F.to,q),W=B.width*G.fromScale,Z=U.width*G.toScale,vt.extend(ar(k,z,D),{u_patternscale_a:[V/W,-B.height/2],u_patternscale_b:[V/Z,-U.height/2],u_sdfgamma:j.width/(256*Math.min(W,Z)*vt.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:B.y,u_tex_y_b:U.y,u_mix:G.t})):c?(R=t,O=w,N=n,vt.extend(ar(R,O,N),{u_image:0})):ar(t,w,n);h?(d.activeTexture.set(y.TEXTURE0),w.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),P.updatePaintBuffers(p)):l&&(M||t.lineAtlas.dirty)&&(d.activeTexture.set(y.TEXTURE0),t.lineAtlas.bind(d)),C.draw(d,y.TRIANGLES,a,t.stencilModeForClipping(_),s,on.disabled,L,n.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,n.paint,t.transform.zoom,P),m=!1}}}}}var R,O,N,k,z,D,F,G,j,V,q,B,U,W,Z,X,H,Y,K,J,Q},fill:function(t,e,n,i){var r=n.paint.get("fill-color"),o=n.paint.get("fill-opacity");if(0!==o.constantOr(1)){var a=t.colorModeForRenderPass(),s=n.paint.get("fill-pattern"),l=t.opaquePassEnabledForLayer()&&!s.constantOr(1)&&1===r.constantOr(vt.Color.transparent).a&&1===o.constantOr(0)?"opaque":"translucent";if(t.renderPass===l){var u=t.depthModeForSublayer(1,"opaque"===t.renderPass?en.ReadWrite:en.ReadOnly);br(t,e,n,i,u,a,!1)}if("translucent"===t.renderPass&&n.paint.get("fill-antialias")){var h=t.depthModeForSublayer(n.getPaintProperty("fill-outline-color")?2:0,en.ReadOnly);br(t,e,n,i,h,a,!0)}}},"fill-extrusion":function(t,e,n,i){var r=n.paint.get("fill-extrusion-opacity");if(0!==r&&"translucent"===t.renderPass){var o=new en(t.context.gl.LEQUAL,en.ReadWrite,t.depthRangeFor3D);if(1!==r||n.paint.get("fill-extrusion-pattern").constantOr(1))Pr(t,e,n,i,o,nn.disabled,rn.disabled),Pr(t,e,n,i,o,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var a=t.colorModeForRenderPass();Pr(t,e,n,i,o,nn.disabled,a)}}},hillshade:function(t,e,n,i){if("offscreen"===t.renderPass||"translucent"===t.renderPass){for(var r=t.context,o=e.getSource().maxzoom,a=t.depthModeForSublayer(0,en.ReadOnly),s=t.colorModeForRenderPass(),l="translucent"===t.renderPass?t.stencilConfigForOverlap(i):[{},i],u=l[0],h=0,c=l[1];h<c.length;h+=1){var p=c[h],f=e.getTile(p);f.needsHillshadePrepare&&"offscreen"===t.renderPass?Cr(t,f,n,o,a,nn.disabled,s):"translucent"===t.renderPass&&Sr(t,f,n,a,u[p.overscaledZ],s)}r.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,n,i){if("translucent"===t.renderPass&&0!==n.paint.get("raster-opacity")&&i.length)for(var r=t.context,o=r.gl,a=e.getSource(),s=t.useProgram("raster"),l=t.colorModeForRenderPass(),u=a instanceof V?[{},i]:t.stencilConfigForOverlap(i),h=u[0],c=u[1],p=c[c.length-1].overscaledZ,f=!t.options.moving,d=0,y=c;d<y.length;d+=1){var m=y[d],g=t.depthModeForSublayer(m.overscaledZ-p,1===n.paint.get("raster-opacity")?en.ReadWrite:en.ReadOnly,o.LESS),v=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),f);v.registerFadeDuration(n.paint.get("raster-fade-duration"));var _=e.findLoadedParent(m,0),w=Mr(v,_,e,n,t.transform),b=void 0,P=void 0,S="nearest"===n.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;r.activeTexture.set(o.TEXTURE0),v.texture.bind(S,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),r.activeTexture.set(o.TEXTURE1),_?(_.texture.bind(S,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),b=Math.pow(2,_.tileID.overscaledZ-v.tileID.overscaledZ),P=[v.tileID.canonical.x*b%1,v.tileID.canonical.y*b%1]):v.texture.bind(S,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var C=pr(x,P||[0,0],b||1,w,n);a instanceof V?s.draw(r,o.TRIANGLES,g,nn.disabled,l,on.disabled,C,n.id,a.boundsBuffer,t.quadTriangleIndexBuffer,a.boundsSegments):s.draw(r,o.TRIANGLES,g,h[m.overscaledZ],l,on.disabled,C,n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,n){var i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b=n.paint.get("background-color"),P=n.paint.get("background-opacity");if(0!==P){var S=t.context,C=S.gl,M=t.transform,T=M.tileSize,A=n.paint.get("background-pattern");if(!t.isPatternMissing(A)){var E=!A&&1===b.a&&1===P&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass===E){var I=nn.disabled,L=t.depthModeForSublayer(0,"opaque"==E?en.ReadWrite:en.ReadOnly),R=t.colorModeForRenderPass(),O=t.useProgram(A?"backgroundPattern":"background"),N=M.coveringTiles({tileSize:T});A&&(S.activeTexture.set(C.TEXTURE0),t.imageManager.bind(t.context));for(var k=n.getCrossfadeParameters(),z=0,D=N;z<D.length;z+=1){var F=D[z],G=t.transform.calculatePosMatrix(F.toUnwrapped()),j=A?(i=G,r=P,o=t,a=A,s={tileID:F,tileSize:T},l=k,w=_=x=v=g=m=y=d=f=p=c=h=u=void 0,vt.extend((u=a,h=l,p=s,f=(c=o).imageManager.getPattern(u.from.toString()),d=c.imageManager.getPattern(u.to.toString()),y=c.imageManager.getPixelSize(),m=y.width,g=y.height,v=Math.pow(2,p.tileID.overscaledZ),x=p.tileSize*Math.pow(2,c.transform.tileZoom)/v,_=x*(p.tileID.canonical.x+p.tileID.wrap*v),w=x*p.tileID.canonical.y,{u_image:0,u_pattern_tl_a:f.tl,u_pattern_br_a:f.br,u_pattern_tl_b:d.tl,u_pattern_br_b:d.br,u_texsize:[m,g],u_mix:h.t,u_pattern_size_a:f.displaySize,u_pattern_size_b:d.displaySize,u_scale_a:h.fromScale,u_scale_b:h.toScale,u_tile_units_to_pixels:1/Bn(p,1,c.transform.tileZoom),u_pixel_coord_upper:[_>>16,w>>16],u_pixel_coord_lower:[65535&_,65535&w]}),{u_matrix:i,u_opacity:r})):{u_matrix:G,u_opacity:P,u_color:b};O.draw(S,C.TRIANGLES,L,I,R,on.disabled,j,n.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,n){for(var i=0;i<n.length;i++)kr(t,e,n[i])},custom:function(t,e,n){var i=t.context,r=n.implementation;if("offscreen"===t.renderPass){var o=r.prerender;o&&(t.setCustomLayerDefaults(),i.setColorMode(t.colorModeForRenderPass()),o.call(r,i.gl,t.transform.customLayerMatrix()),i.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),i.setColorMode(t.colorModeForRenderPass()),i.setStencilMode(nn.disabled);var a="3d"===r.renderingMode?new en(t.context.gl.LEQUAL,en.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,en.ReadOnly);i.setDepthMode(a),r.render(i.gl,t.transform.customLayerMatrix()),i.setDirty(),t.setBaseState(),i.bindFramebuffer.set(null)}}};function Fr(t,e){this.points=t,this.planes=e}function Gr(t,e){this.min=t,this.max=e,this.center=vt.scale$2([],vt.add([],this.min,this.max),.5)}function jr(t,e,n,i){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(n)||n<0||isNaN(i)||i<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=n,this.right=i}function Vr(t,e,n,i,r){this.tileSize=512,this.maxValidLatitude=vt.getMaxLat(),this._renderWorldCopies=void 0===r||r,this._minZoom=t||0,this._maxZoom=e||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new vt.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new jr,this._posMatrixCache={},this._alignedPosMatrixCache={}}zr.prototype.resize=function(t,e){if(this.width=t*vt.browser.devicePixelRatio,this.height=e*vt.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n<i.length;n+=1)this.style._layers[i[n]].resize()},zr.prototype.setup=function(){var t=this.context,e=new vt.StructArrayLayout2i4;e.emplaceBack(0,0),e.emplaceBack(vt.EXTENT,0),e.emplaceBack(0,vt.EXTENT),e.emplaceBack(vt.EXTENT,vt.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(e,Pi.members),this.tileExtentSegments=vt.SegmentVector.simpleSegment(0,0,4,2);var n=new vt.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(vt.EXTENT,0),n.emplaceBack(0,vt.EXTENT),n.emplaceBack(vt.EXTENT,vt.EXTENT),this.debugBuffer=t.createVertexBuffer(n,Pi.members),this.debugSegments=vt.SegmentVector.simpleSegment(0,0,4,5);var i=new vt.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(vt.EXTENT,0,vt.EXTENT,0),i.emplaceBack(0,vt.EXTENT,0,vt.EXTENT),i.emplaceBack(vt.EXTENT,vt.EXTENT,vt.EXTENT,vt.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(i,j.members),this.rasterBoundsSegments=vt.SegmentVector.simpleSegment(0,0,4,2);var r=new vt.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(1,0),r.emplaceBack(0,1),r.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(r,Pi.members),this.viewportSegments=vt.SegmentVector.simpleSegment(0,0,4,2);var o=new vt.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(o);var a=new vt.StructArrayLayout3ui6;a.emplaceBack(0,1,2),a.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(a),this.emptyTexture=new vt.Texture(t,{width:1,height:1,data:new Uint8Array([0,0,0,0])},t.gl.RGBA);var s=this.context.gl;this.stencilClearMode=new nn({func:s.ALWAYS,mask:0},0,255,s.ZERO,s.ZERO,s.ZERO)},zr.prototype.clearStencil=function(){var t=this.context,e=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=vt.create();vt.ortho(n,0,this.width,this.height,0,0,1),vt.scale(n,n,[e.drawingBufferWidth,e.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,e.TRIANGLES,en.disabled,this.stencilClearMode,rn.disabled,on.disabled,or(n),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},zr.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&&t.isTileClipped()&&e&&e.length){this.currentStencilSource=t.source;var n=this.context,i=n.gl;256<this.nextStencilID+e.length&&this.clearStencil(),n.setColorMode(rn.disabled),n.setDepthMode(en.disabled);var r=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=e;o<a.length;o+=1){var s=a[o],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;r.draw(n,i.TRIANGLES,en.disabled,new nn({func:i.ALWAYS,mask:0},l,255,i.KEEP,i.KEEP,i.REPLACE),rn.disabled,on.disabled,or(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},zr.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,256<this.nextStencilID+1&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new nn({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},zr.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new nn({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},zr.prototype.stencilConfigForOverlap=function(t){var e,n=this.context.gl,i=t.sort(function(t,e){return e.overscaledZ-t.overscaledZ}),r=i[i.length-1].overscaledZ,o=i[0].overscaledZ-r+1;if(1<o){this.currentStencilSource=void 0,256<this.nextStencilID+o&&this.clearStencil();for(var a={},s=0;s<o;s++)a[s+r]=new nn({func:n.GEQUAL,mask:255},s+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=o,[a,i]}return[(e={},e[r]=nn.disabled,e),i]},zr.prototype.colorModeForRenderPass=function(){var t=this.context.gl;return this._showOverdrawInspector?new rn([t.CONSTANT_COLOR,t.ONE],new vt.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?rn.unblended:rn.alphaBlended},zr.prototype.depthModeForSublayer=function(t,e,n){if(!this.opaquePassEnabledForLayer())return en.disabled;var i=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new en(n||this.context.gl.LEQUAL,e,[i,i])},zr.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},zr.prototype.render=function(t,e){var n=this;this.style=t,this.options=e,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(vt.browser.now()),this.imageManager.beginFrame();var i=this.style._order,r=this.style.sourceCaches;for(var o in r){var a=r[o];a.used&&a.prepare(this.context)}var s,l,u={},h={},c={};for(var p in r){var f=r[p];u[p]=f.getVisibleCoordinates(),h[p]=u[p].slice().reverse(),c[p]=f.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var d=0;d<i.length;d++)if(this.style._layers[i[d]].is3D()){this.opaquePassCutoff=d;break}this.renderPass="offscreen";for(var y=0,m=i;y<m.length;y+=1){var g=this.style._layers[m[y]];if(g.hasOffscreenPass()&&!g.isHidden(this.transform.zoom)){var v=h[g.source];"custom"!==g.type&&!v.length||this.renderLayer(this,r[g.source],g,v)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:e.showOverdrawInspector?vt.Color.black:vt.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=e.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=i.length-1;0<=this.currentLayer;this.currentLayer--){var x=this.style._layers[i[this.currentLayer]],_=r[x.source],w=u[x.source];this._renderTileClippingMasks(x,w),this.renderLayer(this,_,x,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<i.length;this.currentLayer++){var b=this.style._layers[i[this.currentLayer]],P=r[b.source],S=("symbol"===b.type?c:h)[b.source];this._renderTileClippingMasks(b,u[b.source]),this.renderLayer(this,P,b,S)}this.options.showTileBoundaries&&(vt.values(this.style._layers).forEach(function(t){t.source&&!t.isHidden(n.transform.zoom)&&(t.source!==(l&&l.id)&&(l=n.style.sourceCaches[t.source]),(!s||s.getSource().maxzoom<l.getSource().maxzoom)&&(s=l))}),s&&Dr.debug(this,s,s.getVisibleCoordinates())),this.options.showPadding&&function(t){var e=t.transform.padding;Rr(t,t.transform.height-(e.top||0),3,Tr),Rr(t,e.bottom||0,3,Ar),Or(t,e.left||0,3,Er),Or(t,t.transform.width-(e.right||0),3,Ir);var n,i,r,o,a=t.transform.centerPoint;n=t,i=a.x,r=t.transform.height-a.y,Nr(n,i-1,r-10,2,20,o=Lr),Nr(n,i-10,r-1,20,2,o)}(this),this.context.setDefault()},zr.prototype.renderLayer=function(t,e,n,i){n.isHidden(this.transform.zoom)||"background"!==n.type&&"custom"!==n.type&&!i.length||(this.id=n.id,this.gpuTimingStart(n),Dr[n.type](t,e,n,i,this.style.placement.variableOffsets),this.gpuTimingEnd())},zr.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,n=this.gpuTimers[t.id];(n=n||(this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()})).calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,n.query)}},zr.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},zr.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},zr.prototype.queryGpuTimers=function(t){var e={};for(var n in t){var i=t[n],r=this.context.extTimerQuery,o=r.getQueryObjectEXT(i.query,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(i.query),e[n]=o}return e},zr.prototype.translatePosMatrix=function(t,e,n,i,r){if(!n[0]&&!n[1])return t;var o=r?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(o){var a=Math.sin(o),s=Math.cos(o);n=[n[0]*s-n[1]*a,n[0]*a+n[1]*s]}var l=[r?n[0]:Bn(e,n[0],this.transform.zoom),r?n[1]:Bn(e,n[1],this.transform.zoom),0],u=new Float32Array(16);return vt.translate(u,t,l),u},zr.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},zr.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&0<e.length?e.pop():null},zr.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),n=this.imageManager.getPattern(t.to.toString());return!e||!n},zr.prototype.useProgram=function(t,e){this.cache=this.cache||{};var n=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new $i(this.context,Qi[t],e,mr[t],this._showOverdrawInspector)),this.cache[n]},zr.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},zr.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},zr.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=vt.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new vt.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},zr.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()},Fr.fromInvProjectionMatrix=function(e,n,t){var i=Math.pow(2,t),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(t){return vt.transformMat4([],t,e)}).map(function(t){return vt.scale$1([],t,1/t[3]/n*i)}),r=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(t){var e=vt.sub([],o[t[0]],o[t[1]]),n=vt.sub([],o[t[2]],o[t[1]]),i=vt.normalize([],vt.cross([],e,n)),r=-vt.dot(i,o[t[1]]);return i.concat(r)});return new Fr(o,r)},Gr.prototype.quadrant=function(t){for(var e=[t%2==0,t<2],n=vt.clone$2(this.min),i=vt.clone$2(this.max),r=0;r<e.length;r++)n[r]=e[r]?this.min[r]:this.center[r],i[r]=e[r]?this.center[r]:this.max[r];return i[2]=this.max[2],new Gr(n,i)},Gr.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},Gr.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},Gr.prototype.intersects=function(t){for(var e=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i<t.planes.length;i++){for(var r=t.planes[i],o=0,a=0;a<e.length;a++)o+=0<=vt.dot$1(r,e[a]);if(0===o)return 0;o!==e.length&&(n=!1)}if(n)return 2;for(var s=0;s<3;s++){for(var l=Number.MAX_VALUE,u=-Number.MAX_VALUE,h=0;h<t.points.length;h++){var c=t.points[h][s]-this.min[s];l=Math.min(l,c),u=Math.max(u,c)}if(u<0||l>this.max[s]-this.min[s])return 0}return 1},jr.prototype.interpolate=function(t,e,n){return null!=e.top&&null!=t.top&&(this.top=vt.number(t.top,e.top,n)),null!=e.bottom&&null!=t.bottom&&(this.bottom=vt.number(t.bottom,e.bottom,n)),null!=e.left&&null!=t.left&&(this.left=vt.number(t.left,e.left,n)),null!=e.right&&null!=t.right&&(this.right=vt.number(t.right,e.right,n)),this},jr.prototype.getCenter=function(t,e){var n=vt.clamp((this.left+t-this.right)/2,0,t),i=vt.clamp((this.top+e-this.bottom)/2,0,e);return new vt.Point(n,i)},jr.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},jr.prototype.clone=function(){return new jr(this.top,this.bottom,this.left,this.right)},jr.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var qr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};function Br(t){var e,n,i,r;this._hashName=t&&encodeURIComponent(t),vt.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(e=this._updateHashUnthrottled.bind(this),n=!1,i=null,r=function(){i=null,n&&(e(),i=setTimeout(r,300),n=!1)},function(){return n=!0,i||r(),i})}function Ur(t){this._map=t,this.clear()}Vr.prototype.clone=function(){var t=new Vr(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},qr.minZoom.get=function(){return this._minZoom},qr.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},qr.maxZoom.get=function(){return this._maxZoom},qr.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},qr.minPitch.get=function(){return this._minPitch},qr.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},qr.maxPitch.get=function(){return this._maxPitch},qr.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},qr.renderWorldCopies.get=function(){return this._renderWorldCopies},qr.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},qr.worldSize.get=function(){return this.tileSize*this.scale},qr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},qr.size.get=function(){return new vt.Point(this.width,this.height)},qr.bearing.get=function(){return-this.angle/Math.PI*180},qr.bearing.set=function(t){var e=-vt.wrap(t,-180,180)*Math.PI/180;this.angle!==e&&(this._unmodified=!1,this.angle=e,this._calcMatrices(),this.rotationMatrix=vt.create$2(),vt.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},qr.pitch.get=function(){return this._pitch/Math.PI*180},qr.pitch.set=function(t){var e=vt.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==e&&(this._unmodified=!1,this._pitch=e,this._calcMatrices())},qr.fov.get=function(){return this._fov/Math.PI*180},qr.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},qr.zoom.get=function(){return this._zoom},qr.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},qr.center.get=function(){return this._center},qr.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},qr.padding.get=function(){return this._edgeInsets.toJSON()},qr.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},qr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Vr.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},Vr.prototype.interpolatePadding=function(t,e,n){this._unmodified=!1,this._edgeInsets.interpolate(t,e,n),this._constrain(),this._calcMatrices()},Vr.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},Vr.prototype.getVisibleUnwrappedCoordinates=function(t){var e=[new vt.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new vt.Point(0,0)),i=this.pointCoordinate(new vt.Point(this.width,0)),r=this.pointCoordinate(new vt.Point(this.width,this.height)),o=this.pointCoordinate(new vt.Point(0,this.height)),a=Math.floor(Math.min(n.x,i.x,r.x,o.x)),s=Math.floor(Math.max(n.x,i.x,r.x,o.x)),l=a-1;l<=s+1;l++)0!==l&&e.push(new vt.UnwrappedTileID(l,t));return e},Vr.prototype.coveringTiles=function(t){var e=this.coveringZoomLevel(t),n=e;if(void 0!==t.minzoom&&e<t.minzoom)return[];void 0!==t.maxzoom&&e>t.maxzoom&&(e=t.maxzoom);var i=vt.MercatorCoordinate.fromLngLat(this.center),r=Math.pow(2,e),o=[r*i.x,r*i.y,0],a=Fr.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,e),s=t.minzoom||0;function l(t){return{aabb:new Gr([t*r,0,0],[(t+1)*r,r,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}}this.pitch<=60&&this._edgeInsets.top<.1&&(s=e);var u=[],h=[],c=e,p=t.reparseOverscaled?n:e;if(this._renderWorldCopies)for(var f=1;f<=3;f++)u.push(l(-f)),u.push(l(f));for(u.push(l(0));0<u.length;){var d=u.pop(),y=d.x,m=d.y,g=d.fullyVisible;if(!g){var v=d.aabb.intersects(a);if(0===v)continue;g=2===v}var x=d.aabb.distanceX(o),_=d.aabb.distanceY(o),w=Math.max(Math.abs(x),Math.abs(_));if(d.zoom===c||w>3+(1<<c-d.zoom)-2&&d.zoom>=s)h.push({tileID:new vt.OverscaledTileID(d.zoom===c?p:d.zoom,d.wrap,d.zoom,y,m),distanceSq:vt.sqrLen([o[0]-.5-y,o[1]-.5-m])});else for(var b=0;b<4;b++){var P=(y<<1)+b%2,S=(m<<1)+(b>>1);u.push({aabb:d.aabb.quadrant(b),zoom:d.zoom+1,x:P,y:S,wrap:d.wrap,fullyVisible:g})}}return h.sort(function(t,e){return t.distanceSq-e.distanceSq}).map(function(t){return t.tileID})},Vr.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},qr.unmodified.get=function(){return this._unmodified},Vr.prototype.zoomScale=function(t){return Math.pow(2,t)},Vr.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},Vr.prototype.project=function(t){var e=vt.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new vt.Point(vt.mercatorXfromLng(t.lng)*this.worldSize,vt.mercatorYfromLat(e)*this.worldSize)},Vr.prototype.unproject=function(t){return new vt.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},qr.point.get=function(){return this.project(this.center)},Vr.prototype.setLocationAtPoint=function(t,e){var n=this.pointCoordinate(e),i=this.pointCoordinate(this.centerPoint),r=this.locationCoordinate(t),o=new vt.MercatorCoordinate(r.x-(n.x-i.x),r.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())},Vr.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},Vr.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},Vr.prototype.locationCoordinate=function(t){return vt.MercatorCoordinate.fromLngLat(t)},Vr.prototype.coordinateLocation=function(t){return t.toLngLat()},Vr.prototype.pointCoordinate=function(t){var e=[t.x,t.y,0,1],n=[t.x,t.y,1,1];vt.transformMat4(e,e,this.pixelMatrixInverse),vt.transformMat4(n,n,this.pixelMatrixInverse);var i=e[3],r=n[3],o=e[1]/i,a=n[1]/r,s=e[2]/i,l=n[2]/r,u=s==l?0:(0-s)/(l-s);return new vt.MercatorCoordinate(vt.number(e[0]/i,n[0]/r,u)/this.worldSize,vt.number(o,a,u)/this.worldSize)},Vr.prototype.coordinatePoint=function(t){var e=[t.x*this.worldSize,t.y*this.worldSize,0,1];return vt.transformMat4(e,e,this.pixelMatrix),new vt.Point(e[0]/e[3],e[1]/e[3])},Vr.prototype.getBounds=function(){return(new vt.LngLatBounds).extend(this.pointLocation(new vt.Point(0,0))).extend(this.pointLocation(new vt.Point(this.width,0))).extend(this.pointLocation(new vt.Point(this.width,this.height))).extend(this.pointLocation(new vt.Point(0,this.height)))},Vr.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new vt.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Vr.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Vr.prototype.calculatePosMatrix=function(t,e){void 0===e&&(e=!1);var n=t.key,i=e?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var r=t.canonical,o=this.worldSize/this.zoomScale(r.z),a=r.x+Math.pow(2,r.z)*t.wrap,s=vt.identity(new Float64Array(16));return vt.translate(s,s,[a*o,r.y*o,0]),vt.scale(s,s,[o/vt.EXTENT,o/vt.EXTENT,1]),vt.multiply(s,e?this.alignedProjMatrix:this.projMatrix,s),i[n]=new Float32Array(s),i[n]},Vr.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Vr.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,e,n,i,r=-90,o=90,a=-180,s=180,l=this.size,u=this._unmodified;if(this.latRange){var h=this.latRange;r=vt.mercatorYfromLat(h[1])*this.worldSize,t=(o=vt.mercatorYfromLat(h[0])*this.worldSize)-r<l.y?l.y/(o-r):0}if(this.lngRange){var c=this.lngRange;a=vt.mercatorXfromLng(c[0])*this.worldSize,e=(s=vt.mercatorXfromLng(c[1])*this.worldSize)-a<l.x?l.x/(s-a):0}var p=this.point,f=Math.max(e||0,t||0);if(f)return this.center=this.unproject(new vt.Point(e?(s+a)/2:p.x,t?(o+r)/2:p.y)),this.zoom+=this.scaleZoom(f),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var d=p.y,y=l.y/2;d-y<r&&(i=r+y),o<d+y&&(i=o-y)}if(this.lngRange){var m=p.x,g=l.x/2;m-g<a&&(n=a+g),s<m+g&&(n=s-g)}void 0===n&&void 0===i||(this.center=this.unproject(new vt.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},Vr.prototype._calcMatrices=function(){if(this.height){var t=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var e=Math.PI/2+this._pitch,n=this._fov*(.5+t.y/this.height),i=Math.sin(n)*this.cameraToCenterDistance/Math.sin(vt.clamp(Math.PI-e-n,.01,Math.PI-.01)),r=this.point,o=r.x,a=r.y,s=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),l=this.height/50,u=new Float64Array(16);vt.perspective(u,this._fov,this.width/this.height,l,s),u[8]=2*-t.x/this.width,u[9]=2*t.y/this.height,vt.scale(u,u,[1,-1,1]),vt.translate(u,u,[0,0,-this.cameraToCenterDistance]),vt.rotateX(u,u,this._pitch),vt.rotateZ(u,u,this.angle),vt.translate(u,u,[-o,-a,0]),this.mercatorMatrix=vt.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),vt.scale(u,u,[1,1,vt.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u,this.invProjMatrix=vt.invert([],this.projMatrix);var h=this.width%2/2,c=this.height%2/2,p=Math.cos(this.angle),f=Math.sin(this.angle),d=o-Math.round(o)+p*h+f*c,y=a-Math.round(a)+p*c+f*h,m=new Float64Array(u);if(vt.translate(m,m,[.5<d?d-1:d,.5<y?y-1:y,0]),this.alignedProjMatrix=m,u=vt.create(),vt.scale(u,u,[this.width/2,-this.height/2,1]),vt.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=vt.create(),vt.scale(u,u,[1,-1,1]),vt.translate(u,u,[-1,-1,0]),vt.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=vt.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=vt.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Vr.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new vt.Point(0,0)),e=[t.x*this.worldSize,t.y*this.worldSize,0,1];return vt.transformMat4(e,e,this.pixelMatrix)[3]/this.cameraToCenterDistance},Vr.prototype.getCameraPoint=function(){var t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new vt.Point(0,t))},Vr.prototype.getCameraQueryGeometry=function(t){var e=this.getCameraPoint();if(1===t.length)return[t[0],e];for(var n=e.x,i=e.y,r=e.x,o=e.y,a=0,s=t;a<s.length;a+=1){var l=s[a];n=Math.min(n,l.x),i=Math.min(i,l.y),r=Math.max(r,l.x),o=Math.max(o,l.y)}return[new vt.Point(n,i),new vt.Point(r,i),new vt.Point(r,o),new vt.Point(n,o),new vt.Point(n,i)]},Object.defineProperties(Vr.prototype,qr),Br.prototype.addTo=function(t){return this._map=t,vt.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},Br.prototype.remove=function(){return vt.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Br.prototype.getHashString=function(t){var e=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),r=Math.pow(10,i),o=Math.round(e.lng*r)/r,a=Math.round(e.lat*r)/r,s=this._map.getBearing(),l=this._map.getPitch(),u="";if(u+=t?"/"+o+"/"+a+"/"+n:n+"/"+a+"/"+o,(s||l)&&(u+="/"+Math.round(10*s)/10),l&&(u+="/"+Math.round(l)),this._hashName){var h=this._hashName,c=!1,p=vt.window.location.hash.slice(1).split("&").map(function(t){var e=t.split("=")[0];return e===h?(c=!0,e+"="+u):t}).filter(function(t){return t});return c||p.push(h+"="+u),"#"+p.join("&")}return"#"+u},Br.prototype._getCurrentHash=function(){var e,n=this,t=vt.window.location.hash.replace("#","");return this._hashName?(t.split("&").map(function(t){return t.split("=")}).forEach(function(t){t[0]===n._hashName&&(e=t)}),(e&&e[1]||"").split("/")):t.split("/")},Br.prototype._onHashChange=function(){var t=this._getCurrentHash();if(3<=t.length&&!t.some(function(t){return isNaN(t)})){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Br.prototype._updateHashUnthrottled=function(){var t=this.getHashString();try{vt.window.history.replaceState(vt.window.history.state,"",t)}catch(t){}};var Wr={linearity:.3,easing:vt.bezier(0,0,.3,1)},Zr=vt.extend({deceleration:2500,maxSpeed:1400},Wr),Xr=vt.extend({deceleration:20,maxSpeed:1400},Wr),Hr=vt.extend({deceleration:1e3,maxSpeed:360},Wr),Yr=vt.extend({deceleration:1e3,maxSpeed:90},Wr);function Kr(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function Jr(t,e,n){var i=n.maxSpeed,r=n.linearity,o=n.deceleration,a=vt.clamp(t*r/(e/1e3),-i,i),s=Math.abs(a)/(o*r);return{easing:n.easing,duration:1e3*s,amount:a*(s/2)}}function Qr(t,e){this._map=t,this._clickTolerance=e.clickTolerance}Ur.prototype.clear=function(){this._inertiaBuffer=[]},Ur.prototype.record=function(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:vt.browser.now(),settings:t})},Ur.prototype._drainInertiaBuffer=function(){for(var t=this._inertiaBuffer,e=vt.browser.now();0<t.length&&160<e-t[0].time;)t.shift()},Ur.prototype._onMoveEnd=function(t){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var e={zoom:0,bearing:0,pitch:0,pan:new vt.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n<i.length;n+=1){var r=i[n].settings;e.zoom+=r.zoomDelta||0,e.bearing+=r.bearingDelta||0,e.pitch+=r.pitchDelta||0,r.panDelta&&e.pan._add(r.panDelta),r.around&&(e.around=r.around),r.pinchAround&&(e.pinchAround=r.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,a={};if(e.pan.mag()){var s=Jr(e.pan.mag(),o,vt.extend({},Zr,t||{}));a.offset=e.pan.mult(s.amount/e.pan.mag()),a.center=this._map.transform.center,Kr(a,s)}if(e.zoom){var l=Jr(e.zoom,o,Xr);a.zoom=this._map.transform.zoom+l.amount,Kr(a,l)}if(e.bearing){var u=Jr(e.bearing,o,Hr);a.bearing=this._map.transform.bearing+vt.clamp(u.amount,-179,179),Kr(a,u)}if(e.pitch){var h=Jr(e.pitch,o,Yr);a.pitch=this._map.transform.pitch+h.amount,Kr(a,h)}if(a.zoom||a.bearing){var c=void 0===e.pinchAround?e.around:e.pinchAround;a.around=c?this._map.unproject(c):this._map.getCenter()}return this.clear(),vt.extend(a,{noMoveStart:!0})}};var $r=function(a){function t(t,e,n,i){void 0===i&&(i={});var r=x.mousePos(e.getCanvasContainer(),n),o=e.unproject(r);a.call(this,t,vt.extend({point:r,lngLat:o,originalEvent:n},i)),this._defaultPrevented=!1,this.target=e}a&&(t.__proto__=a);var e={defaultPrevented:{configurable:!0}};return((t.prototype=Object.create(a&&a.prototype)).constructor=t).prototype.preventDefault=function(){this._defaultPrevented=!0},e.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,e),t}(vt.Event),to=function(l){function t(t,e,n){var i="touchend"===t?n.changedTouches:n.touches,r=x.touchPos(e.getCanvasContainer(),i),o=r.map(function(t){return e.unproject(t)}),a=r.reduce(function(t,e,n,i){return t.add(e.div(i.length))},new vt.Point(0,0)),s=e.unproject(a);l.call(this,t,{points:r,point:a,lngLats:o,lngLat:s,originalEvent:n}),this._defaultPrevented=!1}l&&(t.__proto__=l);var e={defaultPrevented:{configurable:!0}};return((t.prototype=Object.create(l&&l.prototype)).constructor=t).prototype.preventDefault=function(){this._defaultPrevented=!0},e.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,e),t}(vt.Event),eo=function(i){function t(t,e,n){i.call(this,t,{originalEvent:n}),this._defaultPrevented=!1}i&&(t.__proto__=i);var e={defaultPrevented:{configurable:!0}};return((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.preventDefault=function(){this._defaultPrevented=!0},e.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,e),t}(vt.Event);function no(t){this._map=t}function io(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1}function ro(t,e){for(var n={},i=0;i<t.length;i++)n[t[i].identifier]=e[i];return n}function oo(t){this.reset(),this.numTouches=t.numTouches}function ao(t){this.singleTap=new oo(t),this.numTaps=t.numTaps,this.reset()}function so(){this._zoomIn=new ao({numTouches:1,numTaps:2}),this._zoomOut=new ao({numTouches:2,numTaps:1}),this.reset()}function lo(t){this.reset(),this._clickTolerance=t.clickTolerance||1}function uo(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()}Qr.prototype.reset=function(){delete this._mousedownPos},Qr.prototype.wheel=function(t){return this._firePreventable(new eo(t.type,this._map,t))},Qr.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new $r(t.type,this._map,t))},Qr.prototype.mouseup=function(t){this._map.fire(new $r(t.type,this._map,t))},Qr.prototype.click=function(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||this._map.fire(new $r(t.type,this._map,t))},Qr.prototype.dblclick=function(t){return this._firePreventable(new $r(t.type,this._map,t))},Qr.prototype.mouseover=function(t){this._map.fire(new $r(t.type,this._map,t))},Qr.prototype.mouseout=function(t){this._map.fire(new $r(t.type,this._map,t))},Qr.prototype.touchstart=function(t){return this._firePreventable(new to(t.type,this._map,t))},Qr.prototype.touchmove=function(t){this._map.fire(new to(t.type,this._map,t))},Qr.prototype.touchend=function(t){this._map.fire(new to(t.type,this._map,t))},Qr.prototype.touchcancel=function(t){this._map.fire(new to(t.type,this._map,t))},Qr.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Qr.prototype.isEnabled=function(){return!0},Qr.prototype.isActive=function(){return!1},Qr.prototype.enable=function(){},Qr.prototype.disable=function(){},no.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},no.prototype.mousemove=function(t){this._map.fire(new $r(t.type,this._map,t))},no.prototype.mousedown=function(){this._delayContextMenu=!0},no.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new $r("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},no.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new $r(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},no.prototype.isEnabled=function(){return!0},no.prototype.isActive=function(){return!1},no.prototype.enable=function(){},no.prototype.disable=function(){},io.prototype.isEnabled=function(){return!!this._enabled},io.prototype.isActive=function(){return!!this._active},io.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},io.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},io.prototype.mousedown=function(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(x.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},io.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)<this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=x.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));var r=Math.min(i.x,n.x),o=Math.max(i.x,n.x),a=Math.min(i.y,n.y),s=Math.max(i.y,n.y);x.setTransform(this._box,"translate("+r+"px,"+a+"px)"),this._box.style.width=o-r+"px",this._box.style.height=s-a+"px"}}},io.prototype.mouseupWindow=function(t,e){var n=this;if(this._active&&0===t.button){var i=this._startPos,r=e;if(this.reset(),x.suppressClick(),i.x!==r.x||i.y!==r.y)return this._map.fire(new vt.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:function(t){return t.fitScreenCoordinates(i,r,n._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",t)}},io.prototype.keydown=function(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))},io.prototype.reset=function(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(x.remove(this._box),this._box=null),x.enableDrag(),delete this._startPos,delete this._lastPos},io.prototype._fireEvent=function(t,e){return this._map.fire(new vt.Event(t,{originalEvent:e}))},oo.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},oo.prototype.touchstart=function(t,e,n){(this.centroid||n.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),n.length===this.numTouches&&(this.centroid=function(t){for(var e=new vt.Point(0,0),n=0,i=t;n<i.length;n+=1)e._add(i[n]);return e.div(t.length)}(e),this.touches=ro(n,e)))},oo.prototype.touchmove=function(t,e,n){if(!this.aborted&&this.centroid){var i=ro(n,e);for(var r in this.touches){var o=i[r];(!o||30<o.dist(this.touches[r]))&&(this.aborted=!0)}}},oo.prototype.touchend=function(t,e,n){if((!this.centroid||500<t.timeStamp-this.startTime)&&(this.aborted=!0),0===n.length){var i=!this.aborted&&this.centroid;if(this.reset(),i)return i}},ao.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},ao.prototype.touchstart=function(t,e,n){this.singleTap.touchstart(t,e,n)},ao.prototype.touchmove=function(t,e,n){this.singleTap.touchmove(t,e,n)},ao.prototype.touchend=function(t,e,n){var i=this.singleTap.touchend(t,e,n);if(i){var r=t.timeStamp-this.lastTime<500,o=!this.lastTap||this.lastTap.dist(i)<30;if(r&&o||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}},so.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},so.prototype.touchstart=function(t,e,n){this._zoomIn.touchstart(t,e,n),this._zoomOut.touchstart(t,e,n)},so.prototype.touchmove=function(t,e,n){this._zoomIn.touchmove(t,e,n),this._zoomOut.touchmove(t,e,n)},so.prototype.touchend=function(e,t,n){var i=this,r=this._zoomIn.touchend(e,t,n),o=this._zoomOut.touchend(e,t,n);return r?(this._active=!0,e.preventDefault(),setTimeout(function(){return i.reset()},0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(r)},{originalEvent:e})}}):o?(this._active=!0,e.preventDefault(),setTimeout(function(){return i.reset()},0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(o)},{originalEvent:e})}}):void 0},so.prototype.touchcancel=function(){this.reset()},so.prototype.enable=function(){this._enabled=!0},so.prototype.disable=function(){this._enabled=!1,this.reset()},so.prototype.isEnabled=function(){return this._enabled},so.prototype.isActive=function(){return this._active},lo.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},lo.prototype._correctButton=function(t,e){return!1},lo.prototype._move=function(t,e){return{}},lo.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=x.mouseButton(t);this._correctButton(t,n)&&(this._lastPoint=e,this._eventButton=n)}},lo.prototype.mousemoveWindow=function(t,e){var n=this._lastPoint;if(n&&(t.preventDefault(),this._moved||!(e.dist(n)<this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(n,e)},lo.prototype.mouseupWindow=function(t){x.mouseButton(t)===this._eventButton&&(this._moved&&x.suppressClick(),this.reset())},lo.prototype.enable=function(){this._enabled=!0},lo.prototype.disable=function(){this._enabled=!1,this.reset()},lo.prototype.isEnabled=function(){return this._enabled},lo.prototype.isActive=function(){return this._active};var ho,co,po,fo=(xo.__proto__=po=lo,((xo.prototype=Object.create(po&&po.prototype)).constructor=xo).prototype.mousedown=function(t,e){po.prototype.mousedown.call(this,t,e),this._lastPoint&&(this._active=!0)},xo.prototype._correctButton=function(t,e){return 0===e&&!t.ctrlKey},xo.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},xo),yo=(vo.__proto__=co=lo,((vo.prototype=Object.create(co&&co.prototype)).constructor=vo).prototype._correctButton=function(t,e){return 0===e&&t.ctrlKey||2===e},vo.prototype._move=function(t,e){var n=.8*(e.x-t.x);if(n)return this._active=!0,{bearingDelta:n}},vo.prototype.contextmenu=function(t){t.preventDefault()},vo),mo=(go.__proto__=ho=lo,((go.prototype=Object.create(ho&&ho.prototype)).constructor=go).prototype._correctButton=function(t,e){return 0===e&&t.ctrlKey||2===e},go.prototype._move=function(t,e){var n=-.5*(e.y-t.y);if(n)return this._active=!0,{pitchDelta:n}},go.prototype.contextmenu=function(t){t.preventDefault()},go);function go(){ho.apply(this,arguments)}function vo(){co.apply(this,arguments)}function xo(){po.apply(this,arguments)}function _o(){this.reset()}function wo(t,e,n){for(var i=0;i<t.length;i++)if(t[i].identifier===n)return e[i]}function bo(t,e){return Math.log(t/e)/Math.LN2}uo.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new vt.Point(0,0)},uo.prototype.touchstart=function(t,e,n){return this._calculateTransform(t,e,n)},uo.prototype.touchmove=function(t,e,n){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,n)},uo.prototype.touchend=function(t,e,n){this._calculateTransform(t,e,n),this._active&&n.length<this._minTouches&&this.reset()},uo.prototype.touchcancel=function(){this.reset()},uo.prototype._calculateTransform=function(t,e,n){0<n.length&&(this._active=!0);var i=ro(n,e),r=new vt.Point(0,0),o=new vt.Point(0,0),a=0;for(var s in i){var l=i[s],u=this._touches[s];u&&(r._add(l),o._add(l.sub(u)),a++,i[s]=l)}if(this._touches=i,!(a<this._minTouches)&&o.mag()){var h=o.div(a);if(this._sum._add(h),!(this._sum.mag()<this._clickTolerance))return{around:r.div(a),panDelta:h}}},uo.prototype.enable=function(){this._enabled=!0},uo.prototype.disable=function(){this._enabled=!1,this.reset()},uo.prototype.isEnabled=function(){return this._enabled},uo.prototype.isActive=function(){return this._active},_o.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},_o.prototype._start=function(t){},_o.prototype._move=function(t,e,n){return{}},_o.prototype.touchstart=function(t,e,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([e[0],e[1]]))},_o.prototype.touchmove=function(t,e,n){if(this._firstTwoTouches){t.preventDefault();var i=this._firstTwoTouches,r=i[1],o=wo(n,e,i[0]),a=wo(n,e,r);if(o&&a){var s=this._aroundCenter?null:o.add(a).div(2);return this._move([o,a],s,t)}}},_o.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,r=i[1],o=wo(n,e,i[0]),a=wo(n,e,r);o&&a||(this._active&&x.suppressClick(),this.reset())}},_o.prototype.touchcancel=function(){this.reset()},_o.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around},_o.prototype.disable=function(){this._enabled=!1,this.reset()},_o.prototype.isEnabled=function(){return this._enabled},_o.prototype.isActive=function(){return this._active};var Po,So=(Co.__proto__=Po=_o,((Co.prototype=Object.create(Po&&Po.prototype)).constructor=Co).prototype.reset=function(){Po.prototype.reset.call(this),delete this._distance,delete this._startDistance},Co.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},Co.prototype._move=function(t,e){var n=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(bo(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:bo(this._distance,n),pinchAround:e}},Co);function Co(){Po.apply(this,arguments)}function Mo(t,e){return 180*t.angleWith(e)/Math.PI}var To,Ao=(Eo.__proto__=To=_o,((Eo.prototype=Object.create(To&&To.prototype)).constructor=Eo).prototype.reset=function(){To.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},Eo.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},Eo.prototype._move=function(t,e){var n=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Mo(this._vector,n),pinchAround:e}},Eo.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,n=Mo(t,this._startVector);return Math.abs(n)<e},Eo);function Eo(){To.apply(this,arguments)}function Io(t){return Math.abs(t.y)>Math.abs(t.x)}function Lo(){var t=No;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep}var Ro,Oo=(ko.__proto__=Ro=_o,((ko.prototype=Object.create(Ro&&Ro.prototype)).constructor=ko).prototype.reset=function(){Ro.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},ko.prototype._start=function(t){Io((this._lastPoints=t)[0].sub(t[1]))&&(this._valid=!1)},ko.prototype._move=function(t,e,n){var i=t[0].sub(this._lastPoints[0]),r=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(i,r,n.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(i.y+r.y)/2*-.5}},ko.prototype.gestureBeginsVertically=function(t,e,n){if(void 0!==this._valid)return this._valid;var i=2<=t.mag(),r=2<=e.mag();if(i||r){if(!i||!r)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var o=0<t.y==0<e.y;return Io(t)&&Io(e)&&o}},ko),No={panStep:100,bearingStep:15,pitchStep:10};function ko(){Ro.apply(this,arguments)}function zo(t){return t*(2-t)}function Do(t,e){this._map=t,this._el=t.getCanvasContainer(),this._handler=e,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,vt.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)}function Fo(t,e){this._clickZoom=t,this._tapZoom=e}function Go(){this.reset()}function jo(){this._tap=new ao({numTouches:1,numTaps:1}),this.reset()}function Vo(t,e,n){this._el=t,this._mousePan=e,this._touchPan=n}function qo(t,e,n){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=n}function Bo(t,e,n,i){this._el=t,this._touchZoom=e,this._touchRotate=n,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}function Uo(t){return t.zoom||t.drag||t.pitch||t.rotate}Lo.prototype.reset=function(){this._active=!1},Lo.prototype.keydown=function(n){var i=this;if(!(n.altKey||n.ctrlKey||n.metaKey)){var r=0,o=0,a=0,s=0,l=0;switch(n.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:n.shiftKey?o=-1:(n.preventDefault(),s=-1);break;case 39:n.shiftKey?o=1:(n.preventDefault(),s=1);break;case 38:n.shiftKey?a=1:(n.preventDefault(),l=-1);break;case 40:n.shiftKey?a=-1:(n.preventDefault(),l=1);break;default:return}return{cameraAnimation:function(t){var e=t.getZoom();t.easeTo({duration:300,easeId:"keyboardHandler",easing:zo,zoom:r?Math.round(e)+r*(n.shiftKey?2:1):e,bearing:t.getBearing()+o*i._bearingStep,pitch:t.getPitch()+a*i._pitchStep,offset:[-s*i._panStep,-l*i._panStep],center:t.getCenter()},{originalEvent:n})}}}},Lo.prototype.enable=function(){this._enabled=!0},Lo.prototype.disable=function(){this._enabled=!1,this.reset()},Lo.prototype.isEnabled=function(){return this._enabled},Lo.prototype.isActive=function(){return this._active},Do.prototype.setZoomRate=function(t){this._defaultZoomRate=t},Do.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},Do.prototype.isEnabled=function(){return!!this._enabled},Do.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},Do.prototype.isZooming=function(){return!!this._zooming},Do.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},Do.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Do.prototype.wheel=function(t){if(this.isEnabled()){var e=t.deltaMode===vt.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,n=vt.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==e&&e%4.000244140625==0?this._type="wheel":0!==e&&Math.abs(e)<4?this._type="trackpad":400<i?(this._type=null,this._lastValue=e,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*e)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,e+=this._lastValue)),t.shiftKey&&e&&(e/=4),this._type&&(this._lastWheelEvent=t,this._delta-=e,this._active||this._start(t)),t.preventDefault()}},Do.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},Do.prototype._start=function(t){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var e=x.mousePos(this._el,t);this._around=vt.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(e)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Do.prototype.renderFrame=function(){return this._onScrollFrame()},Do.prototype._onScrollFrame=function(){var t=this;if(this._frameId&&(this._frameId=null,this.isActive())){var e=this._map.transform;if(0!==this._delta){var n="wheel"===this._type&&4.000244140625<Math.abs(this._delta)?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==i&&(i=1/i);var r="number"==typeof this._targetZoom?e.zoomScale(this._targetZoom):e.scale;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(r*i))),"wheel"===this._type&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,a="number"==typeof this._targetZoom?this._targetZoom:e.zoom,s=this._startZoom,l=this._easing,u=!1;if("wheel"===this._type&&s&&l){var h=Math.min((vt.browser.now()-this._lastWheelEventTime)/200,1),c=l(h);o=vt.number(s,a,c),h<1?this._frameId||(this._frameId=!0):u=!0}else o=a,u=!0;return this._active=!0,u&&(this._active=!1,this._finishTimeout=setTimeout(function(){t._zooming=!1,t._handler._triggerRenderFrame(),delete t._targetZoom,delete t._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Do.prototype._smoothOutEasing=function(t){var e=vt.ease;if(this._prevEase){var n=this._prevEase,i=(vt.browser.now()-n.start)/n.duration,r=n.easing(.01+i)-n.easing(i),o=.27/Math.sqrt(r*r+1e-4)*.01,a=Math.sqrt(.0729-o*o);e=vt.bezier(o,a,.25,1)}return this._prevEase={start:vt.browser.now(),duration:t,easing:e},e},Do.prototype.reset=function(){this._active=!1},Fo.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Fo.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Fo.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Fo.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()},Go.prototype.reset=function(){this._active=!1},Go.prototype.dblclick=function(e,n){return e.preventDefault(),{cameraAnimation:function(t){t.easeTo({duration:300,zoom:t.getZoom()+(e.shiftKey?-1:1),around:t.unproject(n)},{originalEvent:e})}}},Go.prototype.enable=function(){this._enabled=!0},Go.prototype.disable=function(){this._enabled=!1,this.reset()},Go.prototype.isEnabled=function(){return this._enabled},Go.prototype.isActive=function(){return this._active},jo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},jo.prototype.touchstart=function(t,e,n){this._swipePoint||(this._tapTime&&500<t.timeStamp-this._tapTime&&this.reset(),this._tapTime?0<n.length&&(this._swipePoint=e[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(t,e,n))},jo.prototype.touchmove=function(t,e,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var i=e[0],r=i.y-this._swipePoint.y;return this._swipePoint=i,t.preventDefault(),this._active=!0,{zoomDelta:r/128}}}else this._tap.touchmove(t,e,n)},jo.prototype.touchend=function(t,e,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(t,e,n)&&(this._tapTime=t.timeStamp)},jo.prototype.touchcancel=function(){this.reset()},jo.prototype.enable=function(){this._enabled=!0},jo.prototype.disable=function(){this._enabled=!1,this.reset()},jo.prototype.isEnabled=function(){return this._enabled},jo.prototype.isActive=function(){return this._active},Vo.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Vo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Vo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Vo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()},qo.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},qo.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},qo.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},qo.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()},Bo.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Bo.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Bo.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Bo.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Bo.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Bo.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Wo,Zo=((Wo=vt.Event)&&(Xo.__proto__=Wo),(Xo.prototype=Object.create(Wo&&Wo.prototype)).constructor=Xo);function Xo(){Wo.apply(this,arguments)}function Ho(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}function Yo(t,e){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ur(t),this._bearingSnap=e.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(e),vt.bindAll(["handleEvent","handleWindowEvent"],this);var n=this._el;this._listeners=[[n,"touchstart",{passive:!1}],[n,"touchmove",{passive:!1}],[n,"touchend",void 0],[n,"touchcancel",void 0],[n,"mousedown",void 0],[n,"mousemove",void 0],[n,"mouseup",void 0],[vt.window.document,"mousemove",{capture:!0}],[vt.window.document,"mouseup",void 0],[n,"mouseover",void 0],[n,"mouseout",void 0],[n,"dblclick",void 0],[n,"click",void 0],[n,"keydown",{capture:!1}],[n,"keyup",void 0],[n,"wheel",{passive:!1}],[n,"contextmenu",void 0],[vt.window,"blur",void 0]];for(var i=0,r=this._listeners;i<r.length;i+=1){var o=r[i],a=o[0];x.addEventListener(a,o[1],a===vt.window.document?this.handleWindowEvent:this.handleEvent,o[2])}}function Ko(t){void 0===t&&(t={}),this.options=t,vt.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)}Yo.prototype.destroy=function(){for(var t=0,e=this._listeners;t<e.length;t+=1){var n=e[t],i=n[0];x.removeEventListener(i,n[1],i===vt.window.document?this.handleWindowEvent:this.handleEvent,n[2])}},Yo.prototype._addDefaultHandlers=function(t){var e=this._map,n=e.getCanvasContainer();this._add("mapEvent",new Qr(e,t));var i=e.boxZoom=new io(e,t);this._add("boxZoom",i);var r=new so,o=new Go;e.doubleClickZoom=new Fo(o,r),this._add("tapZoom",r),this._add("clickZoom",o);var a=new jo;this._add("tapDragZoom",a);var s=e.touchPitch=new Oo;this._add("touchPitch",s);var l=new yo(t),u=new mo(t);e.dragRotate=new qo(t,l,u),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",u,["mouseRotate"]);var h=new fo(t),c=new uo(t);e.dragPan=new Vo(n,h,c),this._add("mousePan",h),this._add("touchPan",c,["touchZoom","touchRotate"]);var p=new Ao,f=new So;e.touchZoomRotate=new Bo(n,f,p,a),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",f,["touchPan","touchRotate"]);var d=e.scrollZoom=new Do(e,this);this._add("scrollZoom",d,["mousePan"]);var y=e.keyboard=new Lo;this._add("keyboard",y),this._add("blockableMapEvent",new no(e));for(var m=0,g=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];m<g.length;m+=1){var v=g[m];t.interactive&&t[v]&&e[v].enable(t[v])}},Yo.prototype._add=function(t,e,n){this._handlers.push({handlerName:t,handler:e,allowed:n}),this._handlersById[t]=e},Yo.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t<e.length;t+=1)e[t].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},Yo.prototype.isActive=function(){for(var t=0,e=this._handlers;t<e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},Yo.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},Yo.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},Yo.prototype.isMoving=function(){return Boolean(Uo(this._eventsInProgress))||this.isZooming()},Yo.prototype._blockedByActive=function(t,e,n){for(var i in t)if(i!==n&&(!e||e.indexOf(i)<0))return!0;return!1},Yo.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+"Window")},Yo.prototype._getMapTouches=function(t){for(var e=[],n=0,i=t;n<i.length;n+=1){var r=i[n];this._el.contains(r.target)&&e.push(r)}return e},Yo.prototype.handleEvent=function(t,e){if("blur"!==t.type){this._updatingCamera=!0;for(var n="renderFrame"===t.type?void 0:t,i={needsRenderFrame:!1},r={},o={},a=t.touches?this._getMapTouches(t.touches):void 0,s=a?x.touchPos(this._el,a):x.mousePos(this._el,t),l=0,u=this._handlers;l<u.length;l+=1){var h=u[l],c=h.handlerName,p=h.handler,f=h.allowed;if(p.isEnabled()){var d=void 0;this._blockedByActive(o,f,c)?p.reset():p[e||t.type]&&(d=p[e||t.type](t,s,a),this.mergeHandlerResult(i,r,d,c,n),d&&d.needsRenderFrame&&this._triggerRenderFrame()),(d||p.isActive())&&(o[c]=p)}}var y={};for(var m in this._previousActiveHandlers)o[m]||(y[m]=n);this._previousActiveHandlers=o,(Object.keys(y).length||Ho(i))&&(this._changes.push([i,r,y]),this._triggerRenderFrame()),(Object.keys(o).length||Ho(i))&&this._map._stop(!0),this._updatingCamera=!1;var g=i.cameraAnimation;g&&(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],g(this._map))}else this.stop()},Yo.prototype.mergeHandlerResult=function(t,e,n,i,r){if(n){vt.extend(t,n);var o={handlerName:i,originalEvent:n.originalEvent||r};void 0!==n.zoomDelta&&(e.zoom=o),void 0!==n.panDelta&&(e.drag=o),void 0!==n.pitchDelta&&(e.pitch=o),void 0!==n.bearingDelta&&(e.rotate=o)}},Yo.prototype._applyChanges=function(){for(var t={},e={},n={},i=0,r=this._changes;i<r.length;i+=1){var o=r[i],a=o[0],s=o[1],l=o[2];a.panDelta&&(t.panDelta=(t.panDelta||new vt.Point(0,0))._add(a.panDelta)),a.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+a.pitchDelta),void 0!==a.around&&(t.around=a.around),void 0!==a.pinchAround&&(t.pinchAround=a.pinchAround),a.noInertia&&(t.noInertia=a.noInertia),vt.extend(e,s),vt.extend(n,l)}this._updateMapTransform(t,e,n),this._changes=[]},Yo.prototype._updateMapTransform=function(t,e,n){var i=this._map,r=i.transform;if(!Ho(t))return this._fireEvents(e,n);var o=t.panDelta,a=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,u=t.around,h=t.pinchAround;void 0!==h&&(u=h),i._stop(!0),u=u||i.transform.centerPoint;var c=r.pointLocation(o?u.sub(o):u);s&&(r.bearing+=s),l&&(r.pitch+=l),a&&(r.zoom+=a),r.setLocationAtPoint(c,u),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,n)},Yo.prototype._fireEvents=function(t,e){var n=this,i=Uo(this._eventsInProgress),r=Uo(t),o={};for(var a in t)this._eventsInProgress[a]||(o[a+"start"]=t[a].originalEvent),this._eventsInProgress[a]=t[a];for(var s in!i&&r&&this._fireEvent("movestart",r.originalEvent),o)this._fireEvent(s,o[s]);for(var l in t.rotate&&(this._bearingChanged=!0),r&&this._fireEvent("move",r.originalEvent),t)this._fireEvent(l,t[l].originalEvent);var u,h={};for(var c in this._eventsInProgress){var p=this._eventsInProgress[c],f=p.handlerName,d=p.originalEvent;this._handlersById[f].isActive()||(delete this._eventsInProgress[c],h[c+"end"]=u=e[f]||d)}for(var y in h)this._fireEvent(y,h[y]);var m=Uo(this._eventsInProgress);if((i||r)&&!m){this._updatingCamera=!0;var g=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),v=function(t){return 0!==t&&-n._bearingSnap<t&&t<n._bearingSnap};g?(v(g.bearing||this._map.getBearing())&&(g.bearing=0),this._map.easeTo(g,{originalEvent:u})):(this._map.fire(new vt.Event("moveend",{originalEvent:u})),v(this._map.getBearing())&&this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},Yo.prototype._fireEvent=function(t,e){this._map.fire(new vt.Event(t,e?{originalEvent:e}:{}))},Yo.prototype._triggerRenderFrame=function(){var e=this;void 0===this._frameId&&(this._frameId=this._map._requestRenderFrame(function(t){delete e._frameId,e.handleEvent(new Zo("renderFrame",{timeStamp:t})),e._applyChanges()}))};var Jo,Qo=((Jo=vt.Evented)&&($o.__proto__=Jo),(($o.prototype=Object.create(Jo&&Jo.prototype)).constructor=$o).prototype.getCenter=function(){return new vt.LngLat(this.transform.center.lng,this.transform.center.lat)},$o.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},$o.prototype.panBy=function(t,e,n){return t=vt.Point.convert(t).mult(-1),this.panTo(this.transform.center,vt.extend({offset:t},e),n)},$o.prototype.panTo=function(t,e,n){return this.easeTo(vt.extend({center:t},e),n)},$o.prototype.getZoom=function(){return this.transform.zoom},$o.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},$o.prototype.zoomTo=function(t,e,n){return this.easeTo(vt.extend({zoom:t},e),n)},$o.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},$o.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},$o.prototype.getBearing=function(){return this.transform.bearing},$o.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},$o.prototype.getPadding=function(){return this.transform.padding},$o.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},$o.prototype.rotateTo=function(t,e,n){return this.easeTo(vt.extend({bearing:t},e),n)},$o.prototype.resetNorth=function(t,e){return this.rotateTo(0,vt.extend({duration:1e3},t),e),this},$o.prototype.resetNorthPitch=function(t,e){return this.easeTo(vt.extend({bearing:0,pitch:0,duration:1e3},t),e),this},$o.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},$o.prototype.getPitch=function(){return this.transform.pitch},$o.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},$o.prototype.cameraForBounds=function(t,e){return t=vt.LngLatBounds.convert(t),this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),0,e)},$o.prototype._cameraForBoxAndBearing=function(t,e,n,i){var r={top:0,bottom:0,right:0,left:0};if("number"==typeof(i=vt.extend({padding:r,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=vt.extend(r,i.padding);var a=this.transform,s=a.padding,l=a.project(vt.LngLat.convert(t)),u=a.project(vt.LngLat.convert(e)),h=l.rotate(-n*Math.PI/180),c=u.rotate(-n*Math.PI/180),p=new vt.Point(Math.max(h.x,c.x),Math.max(h.y,c.y)),f=new vt.Point(Math.min(h.x,c.x),Math.min(h.y,c.y)),d=p.sub(f),y=(a.width-(s.left+s.right+i.padding.left+i.padding.right))/d.x,m=(a.height-(s.top+s.bottom+i.padding.top+i.padding.bottom))/d.y;if(!(m<0||y<0)){var g=Math.min(a.scaleZoom(a.scale*Math.min(y,m)),i.maxZoom),v=vt.Point.convert(i.offset),x=new vt.Point(v.x+(i.padding.left-i.padding.right)/2,v.y+(i.padding.top-i.padding.bottom)/2).mult(a.scale/a.zoomScale(g));return{center:a.unproject(l.add(u).div(2).sub(x)),zoom:g,bearing:n}}vt.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")},$o.prototype.fitBounds=function(t,e,n){return this._fitInternal(this.cameraForBounds(t,e),e,n)},$o.prototype.fitScreenCoordinates=function(t,e,n,i,r){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(vt.Point.convert(t)),this.transform.pointLocation(vt.Point.convert(e)),n,i),i,r)},$o.prototype._fitInternal=function(t,e,n){return t?(delete(e=vt.extend(t,e)).padding,e.linear?this.easeTo(e,n):this.flyTo(e,n)):this},$o.prototype.jumpTo=function(t,e){this.stop();var n=this.transform,i=!1,r=!1,o=!1;return"zoom"in t&&n.zoom!==+t.zoom&&(i=!0,n.zoom=+t.zoom),void 0!==t.center&&(n.center=vt.LngLat.convert(t.center)),"bearing"in t&&n.bearing!==+t.bearing&&(r=!0,n.bearing=+t.bearing),"pitch"in t&&n.pitch!==+t.pitch&&(o=!0,n.pitch=+t.pitch),null==t.padding||n.isPaddingEqual(t.padding)||(n.padding=t.padding),this.fire(new vt.Event("movestart",e)).fire(new vt.Event("move",e)),i&&this.fire(new vt.Event("zoomstart",e)).fire(new vt.Event("zoom",e)).fire(new vt.Event("zoomend",e)),r&&this.fire(new vt.Event("rotatestart",e)).fire(new vt.Event("rotate",e)).fire(new vt.Event("rotateend",e)),o&&this.fire(new vt.Event("pitchstart",e)).fire(new vt.Event("pitch",e)).fire(new vt.Event("pitchend",e)),this.fire(new vt.Event("moveend",e))},$o.prototype.easeTo=function(t,o){var a=this;this._stop(!1,t.easeId),(!1===(t=vt.extend({offset:[0,0],duration:500,easing:vt.ease},t)).animate||!t.essential&&vt.browser.prefersReducedMotion)&&(t.duration=0);var s=this.transform,l=this.getZoom(),u=this.getBearing(),h=this.getPitch(),c=this.getPadding(),p="zoom"in t?+t.zoom:l,f="bearing"in t?this._normalizeBearing(t.bearing,u):u,d="pitch"in t?+t.pitch:h,y="padding"in t?t.padding:s.padding,m=vt.Point.convert(t.offset),g=s.centerPoint.add(m),e=s.pointLocation(g),n=vt.LngLat.convert(t.center||e);this._normalizeCenter(n);var v,x,_=s.project(e),w=s.project(n).sub(_),b=s.zoomScale(p-l);t.around&&(v=vt.LngLat.convert(t.around),x=s.locationPoint(v));var i={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||p!==l,this._rotating=this._rotating||u!==f,this._pitching=this._pitching||d!==h,this._padding=!s.isPaddingEqual(y),this._easeId=t.easeId,this._prepareEase(o,t.noMoveStart,i),clearTimeout(this._easeEndTimeoutID),this._ease(function(t){if(a._zooming&&(s.zoom=vt.number(l,p,t)),a._rotating&&(s.bearing=vt.number(u,f,t)),a._pitching&&(s.pitch=vt.number(h,d,t)),a._padding&&(s.interpolatePadding(c,y,t),g=s.centerPoint.add(m)),v)s.setLocationAtPoint(v,x);else{var e=s.zoomScale(s.zoom-l),n=l<p?Math.min(2,b):Math.max(.5,b),i=Math.pow(n,1-t),r=s.unproject(_.add(w.mult(t*i)).mult(e));s.setLocationAtPoint(s.renderWorldCopies?r.wrap():r,g)}a._fireMoveEvents(o)},function(t){a._afterEase(o,t)},t),this},$o.prototype._prepareEase=function(t,e,n){void 0===n&&(n={}),this._moving=!0,e||n.moving||this.fire(new vt.Event("movestart",t)),this._zooming&&!n.zooming&&this.fire(new vt.Event("zoomstart",t)),this._rotating&&!n.rotating&&this.fire(new vt.Event("rotatestart",t)),this._pitching&&!n.pitching&&this.fire(new vt.Event("pitchstart",t))},$o.prototype._fireMoveEvents=function(t){this.fire(new vt.Event("move",t)),this._zooming&&this.fire(new vt.Event("zoom",t)),this._rotating&&this.fire(new vt.Event("rotate",t)),this._pitching&&this.fire(new vt.Event("pitch",t))},$o.prototype._afterEase=function(t,e){if(!this._easeId||!e||this._easeId!==e){delete this._easeId;var n=this._zooming,i=this._rotating,r=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new vt.Event("zoomend",t)),i&&this.fire(new vt.Event("rotateend",t)),r&&this.fire(new vt.Event("pitchend",t)),this.fire(new vt.Event("moveend",t))}},$o.prototype.flyTo=function(t,r){var o=this;if(!t.essential&&vt.browser.prefersReducedMotion){var e=vt.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(e,r)}this.stop(),t=vt.extend({offset:[0,0],speed:1.2,curve:1.42,easing:vt.ease},t);var a=this.transform,s=this.getZoom(),l=this.getBearing(),u=this.getPitch(),h=this.getPadding(),c="zoom"in t?vt.clamp(+t.zoom,a.minZoom,a.maxZoom):s,p="bearing"in t?this._normalizeBearing(t.bearing,l):l,f="pitch"in t?+t.pitch:u,d="padding"in t?t.padding:a.padding,n=a.zoomScale(c-s),y=vt.Point.convert(t.offset),m=a.centerPoint.add(y),i=a.pointLocation(m),g=vt.LngLat.convert(t.center||i);this._normalizeCenter(g);var v=a.project(i),x=a.project(g).sub(v),_=t.curve,w=Math.max(a.width,a.height),b=w/n,P=x.mag();if("minZoom"in t){var S=vt.clamp(Math.min(t.minZoom,s,c),a.minZoom,a.maxZoom),C=w/a.zoomScale(S-s);_=Math.sqrt(C/P*2)}var M=_*_;function T(t){var e=(b*b-w*w+(t?-1:1)*M*M*P*P)/(2*(t?b:w)*M*P);return Math.log(Math.sqrt(e*e+1)-e)}function A(t){return(Math.exp(t)-Math.exp(-t))/2}function E(t){return(Math.exp(t)+Math.exp(-t))/2}var I=T(0),L=function(t){return E(I)/E(I+_*t)},R=function(t){return w*((E(I)*(A(e=I+_*t)/E(e))-A(I))/M)/P;var e},O=(T(1)-I)/_;if(Math.abs(P)<1e-6||!isFinite(O)){if(Math.abs(w-b)<1e-6)return this.easeTo(t,r);var N=b<w?-1:1;O=Math.abs(Math.log(b/w))/_,R=function(){return 0},L=function(t){return Math.exp(N*_*t)}}return t.duration="duration"in t?+t.duration:1e3*O/("screenSpeed"in t?+t.screenSpeed/_:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=l!==p,this._pitching=f!==u,this._padding=!a.isPaddingEqual(d),this._prepareEase(r,!1),this._ease(function(t){var e=t*O,n=1/L(e);a.zoom=1===t?c:s+a.scaleZoom(n),o._rotating&&(a.bearing=vt.number(l,p,t)),o._pitching&&(a.pitch=vt.number(u,f,t)),o._padding&&(a.interpolatePadding(h,d,t),m=a.centerPoint.add(y));var i=1===t?g:a.unproject(v.add(x.mult(R(e))).mult(n));a.setLocationAtPoint(a.renderWorldCopies?i.wrap():i,m),o._fireMoveEvents(r)},function(){return o._afterEase(r)},t),this},$o.prototype.isEasing=function(){return!!this._easeFrameId},$o.prototype.stop=function(){return this._stop()},$o.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,e)}if(!t){var i=this.handlers;i&&i.stop()}return this},$o.prototype._ease=function(t,e,n){!1===n.animate||0===n.duration?(t(1),e()):(this._easeStart=vt.browser.now(),this._easeOptions=n,this._onEaseFrame=t,this._onEaseEnd=e,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},$o.prototype._renderFrameCallback=function(){var t=Math.min((vt.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},$o.prototype._normalizeBearing=function(t,e){t=vt.wrap(t,-180,180);var n=Math.abs(t-e);return Math.abs(t-360-e)<n&&(t-=360),Math.abs(t+360-e)<n&&(t+=360),t},$o.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var n=t.lng-e.center.lng;t.lng+=180<n?-360:n<-180?360:0}},$o);function $o(t,e){Jo.call(this),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=e.bearingSnap,vt.bindAll(["_renderFrameCallback"],this)}function ta(){vt.bindAll(["_updateLogo"],this),vt.bindAll(["_updateCompact"],this)}function ea(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}Ko.prototype.getDefaultPosition=function(){return"bottom-right"},Ko.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=x.create("div","mapboxgl-ctrl-attrib-inner",this._container),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Ko.prototype.onRemove=function(){x.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Ko.prototype._updateEditLink=function(){var t=this._editLink;t=t||(this._editLink=this._container.querySelector(".mapbox-improve-map"));var i=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||vt.config.ACCESS_TOKEN}];if(t){var e=i.reduce(function(t,e,n){return e.value&&(t+=e.key+"="+e.value+(n<i.length-1?"&":"")),t},"?");t.href=vt.config.FEEDBACK_URL+"/"+e+(this._map._hash?this._map._hash.getHashString(!0):""),t.rel="noopener nofollow"}},Ko.prototype._updateData=function(t){!t||"metadata"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())},Ko.prototype._updateAttributions=function(){if(this._map.style){var i=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?i=i.concat(this.options.customAttribution.map(function(t){return"string"!=typeof t?"":t})):"string"==typeof this.options.customAttribution&&i.push(this.options.customAttribution)),this._map.style.stylesheet){var t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}var e=this._map.style.sourceCaches;for(var n in e){var r=e[n];if(r.used){var o=r.getSource();o.attribution&&i.indexOf(o.attribution)<0&&i.push(o.attribution)}}i.sort(function(t,e){return t.length-e.length});var a=(i=i.filter(function(t,e){for(var n=e+1;n<i.length;n++)if(0<=i[n].indexOf(t))return!1;return!0})).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,i.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Ko.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")},ta.prototype.onAdd=function(t){this._map=t,this._container=x.create("div","mapboxgl-ctrl");var e=x.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ta.prototype.onRemove=function(){x.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ta.prototype.getDefaultPosition=function(){return"bottom-left"},ta.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},ta.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},ta.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}},ea.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},ea.prototype.remove=function(t){for(var e=this._currentlyRunning,n=0,i=e?this._queue.concat(e):this._queue;n<i.length;n+=1){var r=i[n];if(r.id===t)return void(r.cancelled=!0)}},ea.prototype.run=function(t){void 0===t&&(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var n=0,i=e;n<i.length;n+=1){var r=i[n];if(!r.cancelled&&(r.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},ea.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var na={"FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},ia=vt.window.HTMLImageElement,ra=vt.window.HTMLElement,oa=vt.window.ImageBitmap,aa={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},sa=function(u){function t(t){if(t=vt.extend({},aa,t),vt.config.CRS=t.epsg,null!=t.minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&60<t.maxPitch)throw new Error("maxPitch must be less than or equal to 60");var e=new Vr(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies);u.call(this,e,t),this.mapOptions=t,this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new ea,this._controls=[],this._mapId=vt.uniqueId(),this._locale=vt.extend({},na,t.locale),this._requestManager=new vt.RequestManager(t.transformRequest,t.accessToken),t.container&&this.setTarget(t.container)}u&&(t.__proto__=u);var e={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return((t.prototype=Object.create(u&&u.prototype)).constructor=t).prototype.setTarget=function(t){var e=this;if("string"==typeof t){if(this._container=vt.window.document.getElementById(t),!this._container)throw new Error("Container '"+t+"' not found.")}else{if(!(t instanceof ra))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t}var n=this.mapOptions;if(n.maxBounds&&this.setMaxBounds(n.maxBounds),vt.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return e._update(!1)}),this.on("moveend",function(){return e._update(!1)}),this.on("zoom",function(){return e._update(!0)}),void 0!==vt.window&&(vt.window.addEventListener("online",this._onWindowOnline,!1),vt.window.addEventListener("resize",this._onWindowResize,!1)),this.handlers=new Yo(this,n),this._hash=n.hash&&new Br("string"==typeof n.hash&&n.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:n.center,zoom:n.zoom,bearing:n.bearing,pitch:n.pitch}),n.bounds&&(this.resize(),this.fitBounds(n.bounds,vt.extend({},n.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=n.localIdeographFontFamily,n.style&&this.setStyle(n.style,{localIdeographFontFamily:n.localIdeographFontFamily}),n.attributionControl&&this.addControl(new Ko({customAttribution:n.customAttribution})),this.addControl(new ta,n.logoPosition),this.on("style.load",function(){e.transform.unmodified&&e.jumpTo(e.style.stylesheet)}),this.on("data",function(t){e._update("style"===t.dataType),e.fire(new vt.Event(t.dataType+"data",t))}),this.on("dataloading",function(t){e.fire(new vt.Event(t.dataType+"dataloading",t))})},t.prototype._getMapId=function(){return this._mapId},t.prototype.addControl=function(t,e){if(void 0===e&&t.getDefaultPosition&&(e=t.getDefaultPosition()),void 0===e&&(e="top-right"),!t||!t.onAdd)return this.fire(new vt.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var n=t.onAdd(this);this._controls.push(t);var i=this._controlPositions[e];return-1!==e.indexOf("bottom")?i.insertBefore(n,i.firstChild):i.appendChild(n),this},t.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new vt.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var e=this._controls.indexOf(t);return-1<e&&this._controls.splice(e,1),t.onRemove(this),this},t.prototype.resize=function(t){var e=this._containerDimensions(),n=e[0],i=e[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var r=!this._moving;return r&&(this.stop(),this.fire(new vt.Event("movestart",t)).fire(new vt.Event("move",t))),this.fire(new vt.Event("resize",t)),r&&this.fire(new vt.Event("moveend",t)),this},t.prototype.getBounds=function(){return this.transform.getBounds()},t.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},t.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(vt.LngLatBounds.convert(t)),this._update()},t.prototype.setMinZoom=function(t){if(-2<=(t=null==t?-2:t)&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},t.prototype.getMinZoom=function(){return this.transform.minZoom},t.prototype.setMaxZoom=function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},t.prototype.getMaxZoom=function(){return this.transform.maxZoom},t.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(0<=t&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},t.prototype.getMinPitch=function(){return this.transform.minPitch},t.prototype.setMaxPitch=function(t){if(60<(t=null==t?60:t))throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},t.prototype.getMaxPitch=function(){return this.transform.maxPitch},t.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},t.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},t.prototype.project=function(t){return this.transform.locationPoint(vt.LngLat.convert(t))},t.prototype.unproject=function(t){return this.transform.pointLocation(vt.Point.convert(t))},t.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},t.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},t.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},t.prototype._createDelegatedListener=function(n,i,r){var t,o=this;if("mouseenter"===n||"mouseover"===n){var a=!1;return{layer:i,listener:r,delegates:{mousemove:function(t){var e=o.getLayer(i)?o.queryRenderedFeatures(t.point,{layers:[i]}):[];e.length?a||(a=!0,r.call(o,new $r(n,o,t.originalEvent,{features:e}))):a=!1},mouseout:function(){a=!1}}}}if("mouseleave"!==n&&"mouseout"!==n)return{layer:i,listener:r,delegates:(t={},t[n]=function(t){var e=o.getLayer(i)?o.queryRenderedFeatures(t.point,{layers:[i]}):[];e.length&&(t.features=e,r.call(o,t),delete t.features)},t)};var e=!1;return{layer:i,listener:r,delegates:{mousemove:function(t){(o.getLayer(i)?o.queryRenderedFeatures(t.point,{layers:[i]}):[]).length?e=!0:e&&(e=!1,r.call(o,new $r(n,o,t.originalEvent)))},mouseout:function(t){e&&(e=!1,r.call(o,new $r(n,o,t.originalEvent)))}}}},t.prototype.on=function(t,e,n){if(void 0===n)return u.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,n);for(var r in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(r,i.delegates[r]);return this},t.prototype.once=function(t,e,n){if(void 0===n)return u.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,n);for(var r in i.delegates)this.once(r,i.delegates[r]);return this},t.prototype.off=function(o,a,s){var l=this;return void 0===s?u.prototype.off.call(this,o,a):(this._delegatedListeners&&this._delegatedListeners[o]&&function(t){for(var e=t[o],n=0;n<e.length;n++){var i=e[n];if(i.layer===a&&i.listener===s){for(var r in i.delegates)l.off(r,i.delegates[r]);return e.splice(n,1)}}}(this._delegatedListeners),this)},t.prototype.queryRenderedFeatures=function(t,e){if(!this.style)return[];var n;if(void 0!==e||void 0===t||t instanceof vt.Point||Array.isArray(t)||(e=t,t=void 0),e=e||{},(t=t||[[0,0],[this.transform.width,this.transform.height]])instanceof vt.Point||"number"==typeof t[0])n=[vt.Point.convert(t)];else{var i=vt.Point.convert(t[0]),r=vt.Point.convert(t[1]);n=[i,new vt.Point(r.x,i.y),r,new vt.Point(i.x,r.y),i]}return this.style.queryRenderedFeatures(n,e,this.transform)},t.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},t.prototype.setStyle=function(t,e){return!1!==(e=vt.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},e)).diff&&e.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,e),this):(this._localIdeographFontFamily=e.localIdeographFontFamily,this._updateStyle(t,e))},t.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error("Missing UI string '"+t+"'");return e},t.prototype._updateStyle=function(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new wi(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t)):delete this.style,this},t.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new wi(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},t.prototype._diffStyle=function(t,n){var i=this;if("string"==typeof t){var e=this._requestManager.normalizeStyleURL(t),r=this._requestManager.transformRequest(e,vt.ResourceType.Style);vt.getJSON(r,function(t,e){t?i.fire(new vt.ErrorEvent(t)):e&&i._updateDiff(e,n)})}else"object"==typeof t&&this._updateDiff(t,n)},t.prototype._updateDiff=function(e,n){try{this.style.setState(e)&&this._update(!0)}catch(t){vt.warnOnce("Unable to perform style diff: "+(t.message||t.error||t)+". Rebuilding the style from scratch."),this._updateStyle(e,n)}},t.prototype.getStyle=function(){if(this.style)return this.style.serialize()},t.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():vt.warnOnce("There is no style added to the map.")},t.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},t.prototype.isSourceLoaded=function(t){var e=this.style&&this.style.sourceCaches[t];if(void 0!==e)return e.loaded();this.fire(new vt.ErrorEvent(new Error("There is no source with ID '"+t+"'")))},t.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var n=t[e]._tiles;for(var i in n){var r=n[i];if("loaded"!==r.state&&"errored"!==r.state)return!1}}return!0},t.prototype.addSourceType=function(t,e,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,n)},t.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},t.prototype.getSource=function(t){return this.style.getSource(t)},t.prototype.addImage=function(t,e,n){void 0===n&&(n={});var i=n.pixelRatio;void 0===i&&(i=1);var r=n.sdf;void 0===r&&(r=!1);var o=n.stretchX,a=n.stretchY,s=n.content;if(this._lazyInitEmptyStyle(),e instanceof ia||oa&&e instanceof oa){var l=vt.browser.getImageData(e);this.style.addImage(t,{data:new vt.RGBAImage({width:l.width,height:l.height},l.data),pixelRatio:i,stretchX:o,stretchY:a,content:s,sdf:r,version:0})}else{if(void 0===e.width||void 0===e.height)return this.fire(new vt.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var u=e;this.style.addImage(t,{data:new vt.RGBAImage({width:e.width,height:e.height},new Uint8Array(e.data)),pixelRatio:i,stretchX:o,stretchY:a,content:s,sdf:r,version:0,userImage:u}),u.onAdd&&u.onAdd(this,t)}},t.prototype.updateImage=function(t,e){var n=this.style.getImage(t);if(!n)return this.fire(new vt.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var i=e instanceof ia||oa&&e instanceof oa?vt.browser.getImageData(e):e,r=i.width,o=i.height,a=i.data;return void 0===r||void 0===o?this.fire(new vt.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):r!==n.data.width||o!==n.data.height?this.fire(new vt.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(n.data.replace(a,!(e instanceof ia||oa&&e instanceof oa)),void this.style.updateImage(t,n))},t.prototype.hasImage=function(t){return t?!!this.style.getImage(t):(this.fire(new vt.ErrorEvent(new Error("Missing required image id"))),!1)},t.prototype.removeImage=function(t){this.style.removeImage(t)},t.prototype.loadImage=function(t,e){vt.getImage(this._requestManager.transformRequest(t,vt.ResourceType.Image),e)},t.prototype.listImages=function(){return this.style.listImages()},t.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},t.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},t.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},t.prototype.getLayer=function(t){return this.style.getLayer(t)},t.prototype.setLayerZoomRange=function(t,e,n){return this.style.setLayerZoomRange(t,e,n),this._update(!0)},t.prototype.setFilter=function(t,e,n){return void 0===n&&(n={}),this.style.setFilter(t,e,n),this._update(!0)},t.prototype.getFilter=function(t){return this.style.getFilter(t)},t.prototype.setPaintProperty=function(t,e,n,i){return void 0===i&&(i={}),this.style.setPaintProperty(t,e,n,i),this._update(!0)},t.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},t.prototype.setLayoutProperty=function(t,e,n,i){return void 0===i&&(i={}),this.style.setLayoutProperty(t,e,n,i),this._update(!0)},t.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},t.prototype.setLight=function(t,e){return void 0===e&&(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},t.prototype.getLight=function(){return this.style.getLight()},t.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},t.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},t.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},t.prototype.getContainer=function(){return this._container},t.prototype.getCanvasContainer=function(){return this._canvasContainer},t.prototype.getCanvas=function(){return this._canvas},t.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},t.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==vt.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&vt.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},t.prototype._setupContainer=function(){var t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=x.create("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();var e=this._canvasContainer=x.create("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=x.create("canvas","mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=x.create("div","mapboxgl-control-container",t),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(function(t){r[t]=x.create("div","mapboxgl-ctrl-"+t,i)})},t.prototype._resizeCanvas=function(t,e){var n=vt.browser.devicePixelRatio||1;this._canvas.width=n*t,this._canvas.height=n*e,this._canvas.style.width=t+"px",this._canvas.style.height=e+"px"},t.prototype._setupPainter=function(){var t=vt.extend({},n.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),e=this._canvas.getContext("webgl",t)||this._canvas.getContext("experimental-webgl",t);e?(this.painter=new zr(e,this.transform),vt.webpSupported.testSupport(e)):this.fire(new vt.ErrorEvent(new Error("Failed to initialize WebGL")))},t.prototype._contextLost=function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new vt.Event("webglcontextlost",{originalEvent:t}))},t.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new vt.Event("webglcontextrestored",{originalEvent:t}))},t.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},t.prototype._update=function(t){return this.style&&(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint()),this},t.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},t.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},t.prototype._render=function(t){var e,n=this,i=0,r=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(e=r.createQueryEXT(),r.beginQueryEXT(r.TIME_ELAPSED_EXT,e),i=vt.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),!this._removed){var o=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var a=this.transform.zoom,s=vt.browser.now();this.style.zoomHistory.update(a,s);var l=new vt.EvaluationParameters(a,{now:s,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=l.crossFadingFactor();1===u&&u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(l)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new vt.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new vt.Event("load"))),this.style&&(this.style.hasTransitions()||o)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var h=vt.browser.now()-i;r.endQueryEXT(r.TIME_ELAPSED_EXT,e),setTimeout(function(){var t=r.getQueryObjectEXT(e,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(e),n.fire(new vt.Event("gpu-timing-frame",{cpuTime:h,gpuTime:t}))},50)}if(this.listens("gpu-timing-layer")){var c=this.painter.collectGpuTimers();setTimeout(function(){var t=n.painter.queryGpuTimers(c);n.fire(new vt.Event("gpu-timing-layer",{layerTimes:t}))},50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new vt.Event("idle"))),this}},t.prototype.remove=function(){this._hash&&this._hash.remove();for(var t=0,e=this._controls;t<e.length;t+=1)e[t].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==vt.window&&(vt.window.removeEventListener("resize",this._onWindowResize,!1),vt.window.removeEventListener("online",this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension("WEBGL_lose_context");n&&n.loseContext(),la(this._canvasContainer),la(this._controlContainer),la(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this._removed=!0,this.fire(new vt.Event("remove"))},t.prototype.triggerRepaint=function(){var e=this;this.style&&!this._frame&&(this._frame=vt.browser.frame(function(t){e._frame=null,e._render(t)}))},t.prototype._onWindowOnline=function(){this._update()},t.prototype._onWindowResize=function(t){this._trackResize&&this.resize({originalEvent:t})._update()},e.showTileBoundaries.get=function(){return!!this._showTileBoundaries},e.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},e.showPadding.get=function(){return!!this._showPadding},e.showPadding.set=function(t){this._showPadding!==t&&(this._showPadding=t,this._update())},e.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},e.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&((this._showCollisionBoxes=t)?this.style._generateCollisionBoxes():this._update())},e.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},e.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},e.repaint.get=function(){return!!this._repaint},e.repaint.set=function(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())},e.vertices.get=function(){return!!this._vertices},e.vertices.set=function(t){this._vertices=t,this._update()},t.prototype._setCacheLimits=function(t,e){vt.setCacheLimits(t,e)},e.version.get=function(){return vt.version},Object.defineProperties(t.prototype,e),t}(Qo);function la(t){t.parentNode&&t.parentNode.removeChild(t)}function ua(t){var e=this;this.options=vt.extend({},ha,t),this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",function(t){return t.preventDefault()}),this.options.showZoom&&(vt.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",function(t){return e._map.zoomIn({},{originalEvent:t})}),x.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",function(t){return e._map.zoomOut({},{originalEvent:t})}),x.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(vt.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",function(t){e.options.visualizePitch?e._map.resetNorthPitch({},{originalEvent:t}):e._map.resetNorth({},{originalEvent:t})}),this._compassIcon=x.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))}var ha={showCompass:!0,showZoom:!0,visualizePitch:!1};ua.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},ua.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=t},ua.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ca(this._map,this._compass,this.options.visualizePitch)),this._container},ua.prototype.onRemove=function(){x.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},ua.prototype._createButton=function(t,e){var n=x.create("button",t,this._container);return n.type="button",n.addEventListener("click",e),n},ua.prototype._setButtonTitle=function(t,e){var n=this._map._getUIString("NavigationControl."+e);t.title=n,t.setAttribute("aria-label",n)};var ca=function(t,e,n){void 0===n&&(n=!1),this._clickTolerance=10,this.element=e,this.mouseRotate=new yo({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,n&&(this.mousePitch=new mo({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),vt.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),x.addEventListener(e,"mousedown",this.mousedown),x.addEventListener(e,"touchstart",this.touchstart,{passive:!1}),x.addEventListener(e,"touchmove",this.touchmove),x.addEventListener(e,"touchend",this.touchend),x.addEventListener(e,"touchcancel",this.reset)};function pa(t,e,n){if(t=new vt.LngLat(t.lng,t.lat),e){var i=new vt.LngLat(t.lng-360,t.lat),r=new vt.LngLat(t.lng+360,t.lat),o=n.locationPoint(t).distSqr(e);n.locationPoint(i).distSqr(e)<o?t=i:n.locationPoint(r).distSqr(e)<o&&(t=r)}for(;180<Math.abs(t.lng-n.center.lng);){var a=n.locationPoint(t);if(0<=a.x&&0<=a.y&&a.x<=n.width&&a.y<=n.height)break;t.lng>n.center.lng?t.lng-=360:t.lng+=360}return t}ca.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),x.disableDrag()},ca.prototype.move=function(t,e){var n=this.map,i=this.mouseRotate.mousemoveWindow(t,e);if(i&&i.bearingDelta&&n.setBearing(n.getBearing()+i.bearingDelta),this.mousePitch){var r=this.mousePitch.mousemoveWindow(t,e);r&&r.pitchDelta&&n.setPitch(n.getPitch()+r.pitchDelta)}},ca.prototype.off=function(){var t=this.element;x.removeEventListener(t,"mousedown",this.mousedown),x.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),x.removeEventListener(t,"touchmove",this.touchmove),x.removeEventListener(t,"touchend",this.touchend),x.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},ca.prototype.offTemp=function(){x.enableDrag(),x.removeEventListener(vt.window,"mousemove",this.mousemove),x.removeEventListener(vt.window,"mouseup",this.mouseup)},ca.prototype.mousedown=function(t){this.down(vt.extend({},t,{ctrlKey:!0,preventDefault:function(){return t.preventDefault()}}),x.mousePos(this.element,t)),x.addEventListener(vt.window,"mousemove",this.mousemove),x.addEventListener(vt.window,"mouseup",this.mouseup)},ca.prototype.mousemove=function(t){this.move(t,x.mousePos(this.element,t))},ca.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},ca.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=x.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},ca.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=x.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},ca.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},ca.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var fa={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function da(t,e,n){var i=t.classList;for(var r in fa)i.remove("mapboxgl-"+n+"-anchor-"+r);i.add("mapboxgl-"+n+"-anchor-"+e)}function ya(t){this.options=vt.extend({},Sa,t),vt.bindAll(["_onMove","setUnit"],this)}var ma,ga,va,xa=((va=vt.Evented)&&(Ma.__proto__=va),((Ma.prototype=Object.create(va&&va.prototype)).constructor=Ma).prototype.addTo=function(t){return this.remove(),(this._map=t).getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},Ma.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),x.remove(this._element),this._popup&&this._popup.remove(),this},Ma.prototype.getLngLat=function(){return this._lngLat},Ma.prototype.setLngLat=function(t){return this._lngLat=vt.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},Ma.prototype.getElement=function(){return this._element},Ma.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[e,-1*(24.6+e)],"bottom-right":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},Ma.prototype._onKeyPress=function(t){var e=t.code,n=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==n&&13!==n||this.togglePopup()},Ma.prototype._onMapClick=function(t){var e=t.originalEvent.target,n=this._element;this._popup&&(e===n||n.contains(e))&&this.togglePopup()},Ma.prototype.getPopup=function(){return this._popup},Ma.prototype.togglePopup=function(){var t=this._popup;return t&&(t.isOpen()?t.remove():t.addTo(this._map)),this},Ma.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=pa(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?e="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(e="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var n="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?n="rotateX(0deg)":"map"===this._pitchAlignment&&(n="rotateX("+this._map.getPitch()+"deg)"),t&&"moveend"!==t.type||(this._pos=this._pos.round()),x.setTransform(this._element,fa[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+n+" "+e)}},Ma.prototype.getOffset=function(){return this._offset},Ma.prototype.setOffset=function(t){return this._offset=vt.Point.convert(t),this._update(),this},Ma.prototype._onMove=function(t){this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new vt.Event("dragstart"))),this.fire(new vt.Event("drag"))},Ma.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new vt.Event("dragend")),this._state="inactive"},Ma.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},Ma.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},Ma.prototype.isDraggable=function(){return this._draggable},Ma.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},Ma.prototype.getRotation=function(){return this._rotation},Ma.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},Ma.prototype.getRotationAlignment=function(){return this._rotationAlignment},Ma.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},Ma.prototype.getPitchAlignment=function(){return this._pitchAlignment},Ma),_a={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},wa=0,ba=!1,Pa=((ga=vt.Evented)&&(Ca.__proto__=ga),((Ca.prototype=Object.create(ga&&ga.prototype)).constructor=Ca).prototype.onAdd=function(t){var e;return this._map=t,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),e=this._setupUI,void 0!==ma?e(ma):void 0!==vt.window.navigator.permissions?vt.window.navigator.permissions.query({name:"geolocation"}).then(function(t){e(ma="denied"!==t.state)}):e(ma=!!vt.window.navigator.geolocation),this._container},Ca.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(vt.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),x.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,wa=0,ba=!1},Ca.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),n=t.coords;return e&&(n.longitude<e.getWest()||n.longitude>e.getEast()||n.latitude<e.getSouth()||n.latitude>e.getNorth())},Ca.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},Ca.prototype._onSuccess=function(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new vt.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new vt.Event("geolocate",t)),this._finish()}},Ca.prototype._updateCamera=function(t){var e=new vt.LngLat(t.coords.longitude,t.coords.latitude),n=t.coords.accuracy,i=this._map.getBearing(),r=vt.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(e.toBounds(n),r,{geolocateSource:!0})},Ca.prototype._updateMarker=function(t){if(t){var e=new vt.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(e).addTo(this._map),this._userLocationDotMarker.setLngLat(e).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},Ca.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),n=this._map.unproject([1,t]),i=e.distanceTo(n),r=Math.ceil(2*this._accuracy/i);this._circleElement.style.width=r+"px",this._circleElement.style.height=r+"px"},Ca.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},Ca.prototype._onError=function(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&ba)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new vt.Event("error",t)),this._finish()}},Ca.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},Ca.prototype._setupUI=function(t){var e=this;if(this._container.addEventListener("contextmenu",function(t){return t.preventDefault()}),this._geolocateButton=x.create("button","mapboxgl-ctrl-geolocate",this._container),x.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),!(this._geolocateButton.type="button")===t){vt.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n)}else{var i=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=x.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new xa(this._dotElement),this._circleElement=x.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new xa({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(t){t.geolocateSource||"ACTIVE_LOCK"!==e._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(e._watchState="BACKGROUND",e._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),e._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),e.fire(new vt.Event("trackuserlocationend")))})},Ca.prototype.trigger=function(){if(!this._setup)return vt.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new vt.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":wa--,ba=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new vt.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new vt.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),ba=1<++wa?(t={maximumAge:6e5,timeout:0},!0):(t=this.options.positionOptions,!1),this._geolocationWatchID=vt.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else vt.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},Ca.prototype._clearWatch=function(){vt.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},Ca),Sa={maxWidth:100,unit:"metric"};function Ca(t){ga.call(this),this.options=vt.extend({},_a,t),vt.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}function Ma(t,e){var n=this;if(va.call(this),(t instanceof vt.window.HTMLElement||e)&&(t=vt.extend({element:t},e)),vt.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._draggable=t&&t.draggable||!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,t&&t.element)this._element=t.element,this._offset=vt.Point.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=x.create("div"),this._element.setAttribute("aria-label","Map marker");var i=x.createNS("http://www.w3.org/2000/svg","svg");i.setAttributeNS(null,"display","block"),i.setAttributeNS(null,"height","41px"),i.setAttributeNS(null,"width","27px"),i.setAttributeNS(null,"viewBox","0 0 27 41");var r=x.createNS("http://www.w3.org/2000/svg","g");r.setAttributeNS(null,"stroke","none"),r.setAttributeNS(null,"stroke-width","1"),r.setAttributeNS(null,"fill","none"),r.setAttributeNS(null,"fill-rule","evenodd");var o=x.createNS("http://www.w3.org/2000/svg","g");o.setAttributeNS(null,"fill-rule","nonzero");var a=x.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"transform","translate(3.0, 29.0)"),a.setAttributeNS(null,"fill","#000000");for(var s=0,l=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];s<l.length;s+=1){var u=l[s],h=x.createNS("http://www.w3.org/2000/svg","ellipse");h.setAttributeNS(null,"opacity","0.04"),h.setAttributeNS(null,"cx","10.5"),h.setAttributeNS(null,"cy","5.80029008"),h.setAttributeNS(null,"rx",u.rx),h.setAttributeNS(null,"ry",u.ry),a.appendChild(h)}var c=x.createNS("http://www.w3.org/2000/svg","g");c.setAttributeNS(null,"fill",this._color);var p=x.createNS("http://www.w3.org/2000/svg","path");p.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),c.appendChild(p);var f=x.createNS("http://www.w3.org/2000/svg","g");f.setAttributeNS(null,"opacity","0.25"),f.setAttributeNS(null,"fill","#000000");var d=x.createNS("http://www.w3.org/2000/svg","path");d.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),f.appendChild(d);var y=x.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(6.0, 7.0)"),y.setAttributeNS(null,"fill","#FFFFFF");var m=x.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"transform","translate(8.0, 8.0)");var g=x.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#000000"),g.setAttributeNS(null,"opacity","0.25"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962");var v=x.createNS("http://www.w3.org/2000/svg","circle");v.setAttributeNS(null,"fill","#FFFFFF"),v.setAttributeNS(null,"cx","5.5"),v.setAttributeNS(null,"cy","5.5"),v.setAttributeNS(null,"r","5.4999962"),m.appendChild(g),m.appendChild(v),o.appendChild(a),o.appendChild(c),o.appendChild(f),o.appendChild(y),o.appendChild(m),i.appendChild(o),this._element.appendChild(i),this._offset=vt.Point.convert(t&&t.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",function(t){t.preventDefault()}),this._element.addEventListener("mousedown",function(t){t.preventDefault()}),this._element.addEventListener("focus",function(){var t=n._map.getContainer();t.scrollTop=0,t.scrollLeft=0}),da(this._element,this._anchor,"marker"),this._popup=null}function Ta(t,e,n){var i=n&&n.maxWidth||100,r=t._container.clientHeight/2,o=t.unproject([0,r]),a=t.unproject([i,r]),s=o.distanceTo(a);if(n&&"imperial"===n.unit){var l=3.2808*s;5280<l?Aa(e,i,l/5280,t._getUIString("ScaleControl.Miles")):Aa(e,i,l,t._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Aa(e,i,s/1852,t._getUIString("ScaleControl.NauticalMiles")):1e3<=s?Aa(e,i,s/1e3,t._getUIString("ScaleControl.Kilometers")):Aa(e,i,s,t._getUIString("ScaleControl.Meters"))}function Aa(t,e,n,i){var r,o,a,s,l,u=(r=n,(o=Math.pow(10,(""+Math.floor(r)).length-1))*(a=10<=(a=r/o)?10:5<=a?5:3<=a?3:2<=a?2:1<=a?1:(s=a,l=Math.pow(10,Math.ceil(-Math.log(s)/Math.LN10)),Math.round(s*l)/l)));t.style.width=e*(u/n)+"px",t.innerHTML=u+"&nbsp;"+i}function Ea(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof vt.window.HTMLElement?this._container=t.container:vt.warnOnce("Full screen control 'container' must be a DOM element.")),vt.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in vt.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in vt.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in vt.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in vt.window.document&&(this._fullscreenchange="MSFullscreenChange")}ya.prototype.getDefaultPosition=function(){return"bottom-left"},ya.prototype._onMove=function(){Ta(this._map,this._container,this.options)},ya.prototype.onAdd=function(t){return this._map=t,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},ya.prototype.onRemove=function(){x.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},ya.prototype.setUnit=function(t){this.options.unit=t,Ta(this._map,this._container,this.options)},Ea.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",vt.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Ea.prototype.onRemove=function(){x.remove(this._controlContainer),this._map=null,vt.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Ea.prototype._checkFullscreenSupport=function(){return!!(vt.window.document.fullscreenEnabled||vt.window.document.mozFullScreenEnabled||vt.window.document.msFullscreenEnabled||vt.window.document.webkitFullscreenEnabled)},Ea.prototype._setupUI=function(){var t=this._fullscreenButton=x.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);x.create("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden",!0),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),vt.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Ea.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Ea.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Ea.prototype._isFullscreen=function(){return this._fullscreen},Ea.prototype._changeIcon=function(){(vt.window.document.fullscreenElement||vt.window.document.mozFullScreenElement||vt.window.document.webkitFullscreenElement||vt.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Ea.prototype._onClickFullscreen=function(){this._isFullscreen()?vt.window.document.exitFullscreen?vt.window.document.exitFullscreen():vt.window.document.mozCancelFullScreen?vt.window.document.mozCancelFullScreen():vt.window.document.msExitFullscreen?vt.window.document.msExitFullscreen():vt.window.document.webkitCancelFullScreen&&vt.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Ia,La={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},Ra=((Ia=vt.Evented)&&(Na.__proto__=Ia),((Na.prototype=Object.create(Ia&&Ia.prototype)).constructor=Na).prototype.addTo=function(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new vt.Event("open")),this},Na.prototype.isOpen=function(){return!!this._map},Na.prototype.remove=function(){return this._content&&x.remove(this._content),this._container&&(x.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new vt.Event("close")),this},Na.prototype.getLngLat=function(){return this._lngLat},Na.prototype.setLngLat=function(t){return this._lngLat=vt.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},Na.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},Na.prototype.getElement=function(){return this._container},Na.prototype.setText=function(t){return this.setDOMContent(vt.window.document.createTextNode(t))},Na.prototype.setHTML=function(t){var e;if("string"==typeof t){e=vt.window.document.createDocumentFragment();var n,i=vt.window.document.createElement("body");for(i.innerHTML=t;n=i.firstChild;)e.appendChild(n)}else e=t;return this.setDOMContent(e)},Na.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},Na.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},Na.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},Na.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},Na.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},Na.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},Na.prototype._createContent=function(){this._content&&x.remove(this._content),this._content=x.create("div","",this._container),this._content.style=" pointer-events: auto",this.options.closeButton&&(this._closeButton=x.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))},Na.prototype._onMouseUp=function(t){this._update(t.point)},Na.prototype._onMouseMove=function(t){this._update(t.point)},Na.prototype._onDrag=function(t){this._update(t.point)},Na.prototype._update=function(t){var e=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=x.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=x.create("div","",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(t){return e._container.classList.add(t)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=pa(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var n=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),i=this.options.anchor,r=function t(e){if(e){if("number"==typeof e){var n=Math.round(Math.sqrt(.5*Math.pow(e,2)));return{center:new vt.Point(0,0),top:new vt.Point(0,e),"top-left":new vt.Point(n,n),"top-right":new vt.Point(-n,n),bottom:new vt.Point(0,-e),"bottom-left":new vt.Point(n,-n),"bottom-right":new vt.Point(-n,-n),left:new vt.Point(e,0),right:new vt.Point(-e,0)}}if(e instanceof vt.Point||Array.isArray(e)){var i=vt.Point.convert(e);return{center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}return{center:vt.Point.convert(e.center||[0,0]),top:vt.Point.convert(e.top||[0,0]),"top-left":vt.Point.convert(e["top-left"]||[0,0]),"top-right":vt.Point.convert(e["top-right"]||[0,0]),bottom:vt.Point.convert(e.bottom||[0,0]),"bottom-left":vt.Point.convert(e["bottom-left"]||[0,0]),"bottom-right":vt.Point.convert(e["bottom-right"]||[0,0]),left:vt.Point.convert(e.left||[0,0]),right:vt.Point.convert(e.right||[0,0])}}return t(new vt.Point(0,0))}(this.options.offset);if(!i){var o,a=this._container.offsetWidth,s=this._container.offsetHeight;o=n.y+r.bottom.y<s?["top"]:n.y>this._map.transform.height-s?["bottom"]:[],n.x<a/2?o.push("left"):n.x>this._map.transform.width-a/2&&o.push("right"),i=0===o.length?"bottom":o.join("-")}var l=n.add(r[i]).round();x.setTransform(this._container,fa[i]+" translate("+l.x+"px,"+l.y+"px)"),da(this._container,i,"popup")}},Na.prototype._onClose=function(){this.remove()},Na),Oa={version:vt.version,supported:n,setRTLTextPlugin:vt.setRTLTextPlugin,getRTLTextPluginStatus:vt.getRTLTextPluginStatus,Map:sa,NavigationControl:ua,GeolocateControl:Pa,AttributionControl:Ko,ScaleControl:ya,FullscreenControl:Ea,Popup:Ra,Marker:xa,Style:wi,LngLat:vt.LngLat,LngLatBounds:vt.LngLatBounds,Point:vt.Point,MercatorCoordinate:vt.MercatorCoordinate,Evented:vt.Evented,config:vt.config,prewarm:function(){gn().acquire(fn)},clearPrewarmedResources:function(){var t=yn;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(fn),yn=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return vt.config.ACCESS_TOKEN},set accessToken(t){vt.config.ACCESS_TOKEN=t},get baseApiUrl(){return vt.config.API_URL},set baseApiUrl(t){vt.config.API_URL=t},get workerCount(){return dn.workerCount},set workerCount(t){dn.workerCount=t},get maxParallelImageRequests(){return vt.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){vt.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){vt.clearTileCache(t)},workerUrl:""};function Na(t){Ia.call(this),this.options=vt.extend(Object.create(La),t),vt.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Oa}),a}()},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}i.setCookie=function(t,e,n,i){if(t){i=i||"/";var r=new Date;r.setTime(r.getTime()+1e3*n);var o="expires="+r.toUTCString();document.cookie="{name}={value};expires={expires};path={path}".replace("{name}",t).replace("{value}",escape(e)).replace("{expires}",o).replace("{path}",i)}},i.getCookie=function(t){var e,n=new RegExp("(^|)"+t+"=([^;]*)(;|$)");return(e=document.cookie.match(n))?unescape(e[2]):null},i.deleteCookie=function(t){var e=new Date;e.setTime(e.getTime()-1);var n=this.getCookie(t);n&&this.setCookie(t,n,-1)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(19),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this._interval=e.interval,this._playing=!1,this._paused=!1}return t.extend2(o,n),o.prototype.start=function(i){this._playing=!0,this._paused=!1;var t=i.length,r=this;this._animater=function(t,e,n,i){var r={timer:null,index:0,count:e,isPause:!1,interval:t,play:function(){var t=function(){r.isPause||(r.index<r.count?(n(r.index++,r.count),clearInterval(r.timer),r.timer=setInterval(t,r.interval)):r.stop())};r.timer=setInterval(t,r.interval)},pause:function(){r.isPause=!0},continue:function(){r.isPause=!1},stop:function(){r.index=0,clearInterval(r.timer),i(r.count)},updateInterval:function(t){r.interval=t}};return r}(this._interval,t,function(t,e){var n=i[t];r._updateSource.call(r,n),r._playing=!0,r._paused=!1,r.onRunning(t,e)},function(t){r._playing=!1,r._paused=!1,r.onFinished(t)}),this._animater.play()},o.prototype.continue=function(){this._animater.continue(),this._playing=!0,this._paused=!1},o.prototype.stop=function(){this._animater.stop(),this._playing=!1,this._paused=!1},o.prototype.pause=function(){this._animater.pause(),this._playing=!1,this._paused=!0},o.prototype._updateSource=function(t){},o.prototype.onRunning=function(t,e){},o.prototype.onFinished=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(76),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.$type="GEntity,http://www.Gs.com"}return t.extend2(o,e),o.prototype.getIdentity=function(){var t=this.getIdentityIndex();return-1==t?null:this.getPropertyByIndex(t).getValue()},o.prototype.setIdentity=function(t){var e=this.getIdentityIndex();-1!=e&&this.getPropertyByIndex(e).setValue(t)},o.prototype.getIdentityIndex=function(){return-1},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(35),n(77),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.geometry=t.geometry||null,this.$type="GeometryProperty,http://www.Gs.com"}return o.prototype.setValue=function(t){this.geometry=t},o.prototype.getValue=function(){return this.geometry},o.prototype.copy=function(){return new o({changed:this.changed,geometry:null!==this.geometry?this.geometry.copy():null})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(35),n(77),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.value=t.value||null,this.$type="PrimitiveProperty,http://www.Gs.com"}return o.prototype.setValue=function(t){this.value=t},o.prototype.getValue=function(){return this.value},o.prototype.copy=function(){return new o(this)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(118),n(25),n,e,t],void 0===(r=function(t,e,i,n,r,o){function a(t){e.call(this,t),this.$type="GFeatureCollection,http://www.Gs.com"}return t.extend2(a,e),a.prototype.getIdentityIndex=function(){for(var t=-1,e=0,n=this.fields.getCount();e<n;e++)if(i.isGeometryType(this.fields.getField(e).dataType)){t=e;break}return t},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(35),n(25),n,e,t],void 0===(r=function(t,e,r,n,i,o){function a(t){this.$type="GEntityCollection,http://www.Gs.com",(t=t||{}).fields instanceof e&&!t.entities?(this.fields=t.fields,this.entities=[]):(this.fields=t.fields,this.entities=t.entities)}return a.prototype.add=function(t){this.entities.push(t)},a.prototype.addAll=function(t){this.entities.concat(t)},a.prototype.remove=function(t){var e=this.entities.indexOf(t);0<=e&&this.entities.splice(e,1)},a.prototype.get=function(t){var e=this.entities.length;if(0<=t&&t<e)return this.entities[t]},a.prototype.clear=function(){this.entities.splice(0,this.entities.length)},a.prototype.size=function(){return this.entities.length},a.prototype.reset=function(){var e=this;this.entities.forEach(function(t){t.setFields(e.fields)})},a.prototype.unReset=function(){this.entities.forEach(function(t){t.setFields(null)})},a.prototype.copy=function(){for(var t=[],e=0,n=this.entities.length;e<n;e++)t.push(this.entities[e].copy());return new a({fields:this.fields,entities:t})},a.prototype.size=function(){return this.entities.length},a.prototype.getIdentityIndex=function(){for(var t=-1,e=0,n=this.fields.getCount();e<n;e++){var i=this.fields.getField(e).dataType;if(r.isModelType(i)||r.isGeometryType(i)||r.isElementType(i)){t=e;break}}return t},a.prototype.destroy=function(){t.destroyObject(this)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(53),n(28),n(15),n,e,t],void 0===(r=function(t,n,i,r,e,o,a){function s(t){var e=t||{};n.call(this,e),this.lineSymbols=e.lineSymbols||[new i({color:new r({a:153,r:19,g:181,b:177}),width:24,style:5}),new i({color:new r({a:153,r:255,g:255,b:0}),width:16,style:5})],this.$type="LineCombinedSymbol,http://www.Gs.com"}return t.extend2(s,n),s.prototype.add=function(t){this.lineSymbols.push(t)},s.prototype.remove=function(t){this.lineSymbols.splice(t,1)},s.prototype.get=function(t){return this.lineSymbols[t]},s.prototype.getCount=function(){return this.lineSymbols.length},s.prototype.set=function(t){for(var e=0;e<this.lineSymbols.length;e++)t==this.lineSymbols[e]&&this.lineSymbols.splice(e,1,t)},s.prototype.copy=function(){for(var t=[],e=0;e<this.lineSymbols.length;e++){var n=this.lineSymbols[e].copy();t.push(n)}return new s({lineSymbols:t})},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){return n.exports=[[7,3],[3,3,1,3],[4,3,2,3,2,3],[2,3],[],[],[1,16]],[[7,3],[3,3,1,3],[4,3,2,3,2,3],[2,3],[],[],[1,16]]}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(46),n(15),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.marker=t.marker,this.backGround=t.backGround||new n({a:255,r:255,g:255,b:255}),this.width=t.width||50,this.height=t.height||50,this.style=t.style||5,this.$type="PatternMarkerFillSymbol,http://www.Gs.com"}return t.extend2(a,e),a.prototype.copy=function(){return new a({marker:this.marker?this.marker.copy():void 0,backGround:this.backGround?this.backGround.copy():void 0,style:this.style,width:this.width,height:this.height})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(64),n(238),n(9),n(159),n(162),n(163),n(266),n(165),n(267),n(17),n(30),n(38),n(1),n(20),n(62),n(33),n(54),n(10),n(14),n(37),n(13),n,e,t],void 0===(r=function(t,f,o,a,s,l,u,h,c,p,e,d,y,n,m,g,v,x,i,r,_,w,b,P,S){var C=function(t){t=t||{},o.call(this,t),this.elements=[],this.source=new a.source.Vector({wrapX:void 0!==t.wrapX&&t.wrapX});var i=a.has.DEVICE_PIXEL_RATIO,e=void 0===t.declutterDistance?20:t.declutterDistance;this._layer=new a.layer.Vector({source:this.source,declutter:t.declutter,declutterDistance:e}),this._layer.setStyle(function(t,e){if(t.StyleFunc){var n=t.getGeometry().getExtent();return t.StyleFunc(t.Symbol,a.extent.getWidth(n)/e*i)}}),this._hashMap=new _;var n=new g({cache:t.cache||!1}),r=new v;this.map=t.map?t.map:null,this.addElement=new s({canvas:this.source,hashMap:this._hashMap,geometryConvertor:r,symbolConvertor:n}),this.removeElement=new l({canvas:this,source:this.source,hashMap:this._hashMap}),this.rotatelineSymbol=t.rotatelineSymbol,this.updateElement=new u({canvas:this,hashMap:this._hashMap,geometryConvertor:r,symbolConvertor:n,updateGeo:!0,controlSymbol:t.controlSymbol,centerSymbol:t.centerSymbol,rotateSymbol:t.rotateSymbol,middleSymbol:t.middleSymbol}),this.updateSymbol=new u({canvas:this,hashMap:this._hashMap,geometryConvertor:r,symbolConvertor:n,updateGeo:!1,controlSymbol:t.controlSymbol,centerSymbol:t.centerSymbol,rotateSymbol:t.rotateSymbol,middleSymbol:t.middleSymbol}),this.selectEditElement=new h({canvas:this,geometryConvertor:r,hashMap:this._hashMap,symbolConvertor:n,controlSymbol:t.controlSymbol,centerSymbol:t.centerSymbol,rotateSymbol:t.rotateSymbol,middleSymbol:t.middleSymbol}),this.selectElement=new c({canvas:this,symbolConvertor:n}),this.unSelectEditElement=new p({canvas:this,symbolConvertor:n,hashMap:this._hashMap}),this._visible=null==t.visible||t.visible,this._opacity=null==t.opacity?1:t.opacity,this._zIndex=null==t.zIndex?0:t.zIndex,this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex)};function M(t,e,n){var i=this.lookup(t);if(i){var r=i.getStyle();if(r)if(Array.isArray(r))for(var o=0;o<r.length;o++)e?(n.maxZIndex+=.01,r[o].setZIndex(n.maxZIndex)):(n.minZIndex-=.01,r[o].setZIndex(n.minZIndex));else e?(n.maxZIndex+=.01,r.setZIndex(n.maxZIndex)):(n.minZIndex-=.01,r.setZIndex(n.minZIndex))}}function T(t,e,n){return t.map.getView().getResolutionForZoom(e)/(n/256)}function A(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=n/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}function E(t,e,n){var i={};i.idName=t.id;var r=t.geometry;return f.toGeoJSON(i,r,e,n)}t.extend2(C,o),i(C.prototype,{visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}}}),C.prototype.setSource=function(t){if(t)switch(t.getSourceType()){case r.WES:}},C.prototype.getLayer=function(){return this._layer},C.prototype.setZIndex=function(t){C.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},C.prototype.setVisible=function(t){C.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},C.prototype.getExtent=function(){var t=new w({spatialReference:this.map.getSrid()}),e=this.elements.length;if(0<e)for(var n=0;n<e;++n)t=t.union(this.elements[n].geometry.envelope());return t},C.prototype.setOpacity=function(t){C.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},C.prototype.add=function(t){t&&(C.prototype.uber.add(t),this.findIndex(t)<0&&(this.elements.push(t),this.addElement.add(t)))},C.prototype.addElements=function(t,e){if(t){C.prototype.uber.addElements(t,e);for(var n=0,i=t.length;n<i;++n){var r=t[n];0<=this.findIndex(r)||this.elements.push(r)}this.addElement.addElements(t,e)}},C.prototype.addGElement=function(t){t&&(C.prototype.uber.addGElement(t),this.findIndex(t)<0&&(this.elements.push(t),this.addElement.add(t.getElement())))},C.prototype.addElementCollection=function(t,e){if(t){C.prototype.uber.addElementCollection(t,e);for(var n=t.getIdentityIndex(),i=[],r=0,o=t.size();r<o;++r){var a=t.get(r);if(!(0<=this.findIndex(a))){this.elements.push(a);var s=a.getPropertyByIndex(n).getValue();i.push(s)}}this.addElement.addElements(i,e)}},C.prototype.remove=function(t){C.prototype.uber.remove.call(this,t);var e=this.findIndex(t);0<=e&&(this.elements.splice(e,1),this.unSelectEditElement.unSelect(t),this.removeElement.remove(t),t.unReset&&t.unReset())},C.prototype.showElement=function(t,e){if(t&&0<=this.findIndex(t)){var n=this.lookup(t);e&&!n?this.addElement.add(t):!e&&n&&(this.unSelectEditElement.unSelect(t),this.removeElement.remove(t))}},C.prototype.update=function(t,e){var n=this.findIndex(t);0<=n&&(this.elements[n]=t,e?this.updateSymbol.update(t):this.updateElement.update(t))},C.prototype.getCount=function(){return this.elements.length},C.prototype.get=function(t){return this.elements[t]},C.prototype.clear=function(t){try{var e=null!=t&&t,n=this._layer.getSource(),i=n.getFeatures();n.clear(e);for(var r=0,o=i.length;r<o;++r){var a=i[r];a.Element=null,a.Geometry=null,a.Symbol=null,a.setStyle(void 0),a.dispose()}i.length=0,i=n=null,this.elements.length=0,this._hashMap.clear()}catch(t){}},C.prototype.hitTest=function(t,e){var n=[];if(this.map){var i=this._layer;if(this.map.map.forEachFeatureAtPixel([t,e],function(t){n.push(t)},{layerFilter:function(t){return i==t}}),0<n.length)return new m({element:n[0].Element,layer:this})}return null},C.prototype.hitTestList=function(t,e){var n=new x;if(this.map){var i=[],r=this._layer;this.map.map.forEachFeatureAtPixel([t,e],function(t){i.push(t)},{layerFilter:function(t){return r==t}});for(var o=0;o<i.length;o++)n.add(new m({element:i[o].Element}))}return n},C.prototype.find=function(t){for(var e=0,n=this.elements.length;e<n;++e){var i=this.elements[e];if(i.id===t)return i}},C.prototype.contains=function(t){for(var e=0,n=this.elements.length;e<n;++e){if(this.elements[e].id===t)return!0}return!1},C.prototype.select=function(t){if(t){C.prototype.uber.select.call(this,t);var e=t.element;e&&0<=this.findIndex(e)&&this.selectElement.select(e)}},C.prototype.unSelect=function(t){if(t){C.prototype.uber.unSelect.call(this,t);var e=t.element;e&&0<=this.findIndex(e)&&this.selectElement.unSelect(e)}},C.prototype.selectEdit=function(t){if(t){C.prototype.uber.selectEdit.call(this,t);var e=t.element;e&&this.selectEditElement.selectEdit(e)}},C.prototype.unSelectEdit=function(t){if(C.prototype.uber.unSelectEdit.call(this,t),t){var e=t.element;e&&this.unSelectEditElement.unSelect(e)}},C.prototype.findIndex=function(t){return this.elements.indexOf(t)},C.prototype.lookup=function(t){for(var e=this._layer.getSource().getFeatures(),n=0,i=e.length;n<i;++n){var r=e[n];if(r.Element===t)return r}return null},C.prototype.bringTop=function(t){M.call(this,t,!0,this.addElement),this.update(t,!0)},C.prototype.sendBottom=function(t){M.call(this,t,!1,this.addElement),this.update(t,!0)},C.prototype.setMinZoom=function(t){if(this.map){var e=T(this.map,t,256);this._layer.setMaxResolution(e+.001)}},C.prototype.setMaxZoom=function(t){if(this.map){var e=T(this.map,t,256);this._layer.setMinResolution(e)}},C.prototype.getMinZoom=function(){return A(this.map,this._layer.getMaxResolution()-.001,256)},C.prototype.getMaxZoom=function(){return A(this.map,this._layer.getMinResolution(),256)},C.prototype.formatLayer=function(t,e,n,i,r){var o={},a={},s=[],l={};a.type="FeatureCollection",l.version="2";for(var u=0;u<this.elements.length;++u){var h=this.elements[u];if(h instanceof d||h instanceof y){var c=h.getCount();if(0<c)for(var p=0;p<c;++p){s.push(E(h.getItem(p),n,i)),l["[idName = '"+h.getItem(p).id+"']"]=f.toGeoStyle(h.getItem(p).symbol,r)}}else{s.push(E(h,n,i)),l["[idName = '"+h.id+"']"]=f.toGeoStyle(h.symbol,r)}}return a.features=s,o.type="geojson",o.style=l,o.geoJson=a,o.renderAsSvg=!0,o},C.prototype.enableFormat=function(){return!1!==this.visible&&0!==this.opacity&&0!==this.elements.length};var I=["click","dblclick","mouseover","mouseout","mousedown","mouseup","visible","opacity"];function L(l,u){var h=this;if("mouseover"==l||"mouseout"==l){var c={selectedObj:null,deselectedObj:null,selFlag:!1,selectedGraphic:null,deselectedGraphic:null};function t(t,e,n,i,r,o,a){var s=h.hitTest(n,i);return s?c.selectedObj!=s.element?(c.selFlag=!0,null!=c.selectedObj?(c.deselectedObj=c.selectedObj,c.deselectedGraphic=c.selectedGraphic,c.selectedObj=s.element,c.selectedGraphic=s):(c.selectedObj=s.element,c.selectedGraphic=s,c.deselectedObj=null,c.deselectedGraphic=null)):(c.selFlag=!1,c.selectedObj=s.element,c.selectedGraphic=s,c.deselectedObj=null,c.deselectedGraphic=null):(c.selFlag=!1,null!=c.selectedObj?(c.deselectedObj=c.selectedObj,c.deselectedGraphic=c.selectedGraphic,c.selectedObj=null):(c.deselectedObj=null,c.selectedObj=null,c.deselectedGraphic=null),c.selectedGraphic=null),c.deselectedObj&&"mouseout"==l?u(n,i,r,o,c.deselectedGraphic):c.selectedObj&&c.selFlag&&"mouseover"==l?u(n,i,r,o,s):void 0}u.registerFunc=t,C.prototype.uber.on.call(this,l,u),this.map.on("mousemove",t)}else if("visible"===l||"opacity"===l)C.prototype.uber.on.call(this,l,u);else{function e(t,e,n,i,r,o,a){var s=h.hitTest(n,i);if(s)return u(n,i,r,o,s)}u.registerFunc=e,C.prototype.uber.on.call(this,l,u),this.map.on(l,e)}}return C.prototype.un=function(t,e){if("visible"===t||"opacity"===t)C.prototype.uber.un.call(this,t,e);else for(var n=0;n<I.length;n++)t==I[n]&&(C.prototype.uber.un.call(this,t,e),this.map.un("mouseover"==(i=t)||"mouseout"==i?"mousemove":i,e.registerFunc));var i},C.prototype.on=function(t,e){for(var n=0;n<I.length;n++)t==I[n]&&L.call(this,t,e)},S.exports=C}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={Count:1,Sum:2,Avg:4};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(64),n(237),n(9),n(163),n(159),n(162),n(165),n(17),n(38),n(1),n(20),n(62),n(33),n(54),n(10),n(37),n(13),n(29),n(28),n(63),n(31),n(34),n(15),n,e,t],void 0===(r=function(t,d,i,A,r,o,a,s,l,u,h,c,p,f,y,e,m,n,g,v,E,I,L,R,x,_,w){function b(t){var e=t||{};i.call(this,e),this.elements=[],this.styleFunc=null,this.source=new A.source.Vector({wrapX:void 0!==e.wrapX&&e.wrapX}),this.clusterScatterSize=null==e.clusterScatterSize?0:e.clusterScatterSize,this.clusterScatterLineSymbol=e.clusterScatterLineSymbol||new v,this.radiusScale=e.radiusScale||1,this.clusterSource=new A.source.Cluster({source:this.source,wrapX:void 0!==e.wrapX&&e.wrapX,distance:e.distance||40}),this.currentClusterSource=this.clusterSource,this.symbolConvertor=new p({cache:!1}),this.geometryConvertor=new f,this.hightSource=new A.source.Vector({wrapX:void 0!==e.wrapX&&e.wrapX}),this._groupLayer=new A.layer.Group;var n=this._groupLayer.getLayers();this._layer=new A.layer.Vector({source:this.clusterSource}),this._hightLayer=new A.layer.Vector({source:this.hightSource}),n.push(this._layer),n.push(this._hightLayer),this.textFillColor=e.textFillColor||[255,255,255,1],this.fillColor=e.fillColor||[255,255,0],this.fillStrokeColor=e.fillStrokeColor||[255,255,0,.2],this.fillStrokeWidth=e.fillStrokeWidth||10,this.fontSize=e.fontSize||10,this.setLayerStyle.call(this),this.map=e.map?e.map:null,this._hashMap=new m,this.addElement=new o({canvas:this.source,hashMap:this._hashMap,geometryConvertor:this.geometryConvertor,symbolConvertor:this.symbolConvertor}),this._selectHashMap=new m,this.addSelectElement=new o({canvas:this.hightSource,hashMap:this._selectHashMap,geometryConvertor:this.geometryConvertor,symbolConvertor:this.symbolConvertor}),this.removeElement=new a({canvas:this,source:this.source,hashMap:this._hashMap}),this.selectElement=new s({canvas:this,symbolConvertor:this.symbolConvertor}),this.updateElement=new r({canvas:this,hashMap:this._hashMap,geometryConvertor:this.geometryConvertor,symbolConvertor:this.symbolConvertor,updateGeo:!0}),this.updateSymbol=new r({canvas:this,hashMap:this._hashMap,geometryConvertor:this.geometryConvertor,symbolConvertor:this.symbolConvertor,updateGeo:!1}),this.currentResolution=0,this.maxFeatureCount=0,this._visible=null==e.visible||e.visible,this._opacity=null==e.opacity?1:e.opacity,this._zIndex=null==e.zIndex?0:e.zIndex,this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex),this._clusterLevel=e.clusterLevel,this._currentScatterOriginFeatures=null,this._currentScatterElements=null,this.resolutionChangedEvent=C.bind(this),this.scatterResolutionChangedEvent=M.bind(this)}function P(t,e){var n=this.map.getSrid(),i=new g({spatialReference:n});return i.addPoint(new h({x:t.x,y:t.y,spatialReference:n})),i.addPoint(e),new l({geometry:i,symbol:this.clusterScatterLineSymbol})}function S(t,e){if(t){var n=t.getStyle();if(n&&0<n.length){var i=n[0];i.getImage().setOpacity(e);var r=i.getText();r&&(r.getStroke().getColor()[3]=e,r.getFill().getColor()[3]=e),t.setStyle([i])}}}function C(){var t=this._clusterLevel;if(this.map){this.hightSource.clear();var e=this.map.map.getView().getZoom();t&&e<t||!t?this.currentClusterSource!=this.clusterSource&&(this._layer.setSource(this.clusterSource),this.currentClusterSource=this.clusterSource):this.currentClusterSource!=this.source&&(this._layer.setSource(this.source),this.currentClusterSource=this.source)}}function M(){this.map&&this.hightSource.clear()}function T(t,e,n){return t.map.getView().getResolutionForZoom(e)/(n/256)}function O(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=n/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}t.extend2(b,i),e(b.prototype,{clusterLevel:{get:function(){return this._clusterLevel},set:function(t){this._clusterLevel!=t&&(this._clusterLevel=t)}},visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this.setZIndex(t))}}}),b.prototype.init=function(){this.map&&(this.setClusterLevel(this._clusterLevel),this.setClusterScatterSize(this.clusterScatterSize)),b.prototype.uber.init.call(this)},b.prototype.unInit=function(){this.map.map.getView().un("change:resolution",this.resolutionChangedEvent),this.map.map.getView().un("change:resolution",this.scatterResolutionChangedEvent),b.prototype.uber.unInit.call(this)},b.prototype.setDistance=function(t){this.clusterSource&&this.clusterSource.setDistance(t)},b.prototype.getExtent=function(){var t=this.source.getExtent(),e=new n({minx:t[0],miny:t[1],maxx:t[2],maxy:t[3]});return this.map&&(e.spatialReference=this.map.getSrid()),e},b.prototype.setLayerStyle=function(t,_,w,b,e,P){t=t||this.clusterSource.getDistance()||40,this.clusterSource.setDistance(t);var S=this,C=new A.style.Fill({color:e||S.textFillColor}),M=new A.style.Stroke({color:"rgba(0, 0, 0, 0.6)",width:3}),T={};this.selectFeature=null,this._layer.setStyle(function(t,e){e!=S.currentResolution&&(function(t,e){e.maxFeatureCount=0;for(var n,i,r=e._layer.getSource().getFeatures(),o=r.length-1;0<=o;--o){for(var a=(n=r[o]).get("features"),s=A.extent.createEmpty(),l=a.length,u=0;u<l;++u)A.extent.extend(s,a[u].getGeometry().getExtent());e.maxFeatureCount=Math.max(e.maxFeatureCount,l),(i=.25*(A.extent.getWidth(s)+A.extent.getHeight(s))/t)<8&&1<l&&(i=8),n.set("radius",i)}}(e,S),S.currentResolution=e);var n=t.get("features").length;if(1<n){if(t.Selected){for(var i=t.get("features"),r=i.length,o=[],a=0;a<r;a++)o.push(i[a].getStyle());return t.setStyle(o),o}var s=t.get("radius")||8;if(S.styleFunc){var l=z(t),u=[S.symbolConvertor.toSymbol(S.styleFunc(s,n,S.maxFeatureCount,l))];return t.setStyle(u),t.Symbol=S.styleFunc(s,n,S.maxFeatureCount,l),u}if(!(o=T[n])){var h;h=_?(g=(m=_).slice(1,3),v=m.slice(3,5),x=m.slice(5),[parseInt(g,16),parseInt(v,16),parseInt(x,16)]):S.fillColor;P=P||S.fontSize,o=[new A.style.Style({image:new A.style.Circle({radius:s,fill:new A.style.Fill({color:[h[0],h[1],h[2],Math.min(.8,.4+n/S.maxFeatureCount)]}),stroke:function(){var t=w||S.fillStrokeColor,e=b||S.fillStrokeWidth;if(t)return new A.style.Stroke({color:t,width:e||1})}()}),text:new A.style.Text({text:n.toString(),fill:C,stroke:M,font:P+"px sans-serif"})})],T[n]=o}t.setStyle(o);return t.Symbol=new E({markerSymbol:(f=o[0].getImage().getFill().getColor(),d=o[0].getImage().getStroke().getColor(),y=o[0].getImage().getStroke().getWidth(),new I({size:s,fillColor:new R({r:f[0],g:f[1],b:f[2],a:255*f[3]}),borderColor:new R({r:d[0],g:d[1],b:d[2],a:255*d[3]}),borderThickness:y,style:"circle"})),textSymbol:(c=o[0].getText().getFill().getColor(),p=R.fromRgba(o[0].getText().getStroke().getColor()),new L({text:o[0].getText().getText(),fontSize:P||S.fontSize,fontFamilyName:"sans-serif",foreground:new R({r:c[0],g:c[1],b:c[2],a:255*c[3]}),borderColor:new R({r:p.r,g:p.g,b:p.b,a:p.a}),borderThickness:o[0].getText().getStroke().getWidth()}))}),o}var c,p,f,d,y,m,g,v,x;o=[t.get("features")[0].getStyle()];return t.setStyle(o),o})},b.prototype.setStyleFunc=function(t){this.styleFunc=t},b.prototype.setClusterLevel=function(t){this._clusterLevel=t,this.map&&(t?this.map.map.getView().on("change:resolution",this.resolutionChangedEvent):(C.call(this),this.map.map.getView().un("change:resolution",this.resolutionChangedEvent)))},b.prototype.setClusterScatterSize=function(t){this.clusterScatterSize=t,this.map&&(t?this.map.map.getView().on("change:resolution",this.scatterResolutionChangedEvent):(M.call(this),this.map.map.getView().un("change:resolution",this.scatterResolutionChangedEvent)))},b.prototype.getClusterLevel=function(){return this._clusterLevel},b.prototype.getLayer=function(){return this._groupLayer},b.prototype.setZIndex=function(t){b.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t),this._hightLayer.setZIndex(t)},b.prototype.setVisible=function(t){b.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t),this._hightLayer.setVisible(t)},b.prototype.setOpacity=function(t){b.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t),this._hightLayer.setOpacity(t)},b.prototype.add=function(t){t&&(b.prototype.uber.add(t),this.findIndex(t)<0&&(this.elements.push(t),this.addElement.add(t)))},b.prototype.addElements=function(t){if(t){b.prototype.uber.addElements(t);for(var e=[],n=0,i=t.length;n<i;++n){var r=t[n];if(!(0<=this.findIndex(r))){this.elements.push(r);var o=new A.Feature({geometry:this.geometryConvertor.toGeometry(r.geometry)});o.setStyle(this.symbolConvertor.toSymbol(r.symbol)),o.Element=r,o.Geometry=r.geometry,o.Symbol=r.symbol,this._hashMap.put(r,o),e.push(o)}}this.source.addFeatures(e)}},b.prototype.update=function(t,e){var n=this.findIndex(t);0<=n&&(this.elements[n]=t,e?this.updateSymbol.update(t):this.updateElement.update(t))},b.prototype.remove=function(t){b.prototype.uber.remove.call(this,t);var e=this.findIndex(t);0<=e&&(this.elements.splice(e,1),this.removeElement.remove(t))},b.prototype.removeElements=function(t){if(t){b.prototype.uber.removeElements.call(this,t);for(var e=[],n=this.source.getFeatures(),i=0,r=t.length;i<r;++i){var o=t[i];0<=(a=this.findIndex(o))&&e.push(n[a])}for(i=0,r=t.length;i<r;i++){var a;o=t[i];0<=(a=this.findIndex(o))&&this.elements.splice(a,1)}this.source.removeFeatures(e)}},b.prototype.getCount=function(){return this.elements.length},b.prototype.get=function(t){return this.elements[t]},b.prototype.clear=function(t){try{var e=null!=t&&t,n=this.source.getFeatures(),i=this._layer.getSource(),r=i.getFeatures();i.clear(e),this.source.clear(),this.hightSource.clear();for(var o=0,a=n.length;o<a;++o){(u=n[o]).Element=null,u.Geometry=null,u.Symbol=null,u.setStyle(void 0),u.dispose()}for(var s=0,l=r.length;s<l;++s){var u;(u=r[s]).dispose()}r.length=0,n.length=0,this.elements.length=0,r=i=null,this._hashMap.clear()}catch(t){console.error(t)}},b.prototype.hitTest=function(t,e){var i=[],n=this._layer;if(this.selectFeature&&(this.selectFeature.Selected=!1),this.map&&(this.map.map.forEachFeatureAtPixel([t,e],function(t){var e=t.get("features");if(e){var n=e.length;1==n?i.push(t):1<n&&(t.Selected=!0,this.selectFeature=t,i.push(t))}else i.push(t)},{layerFilter:function(t){return n==t}}),0<i.length)){var r=new u;if(i[0].get("features"))for(var o=i[0].get("features"),a=0;a<o.length;++a)r.add(o[a].Element);else r.add(i[0].Element);return new c({layer:this,element:r})}return null},b.prototype.hitTestList=function(t,e){var a=new y,s=this;if(this.map){var n=this._layer;this.map.map.forEachFeatureAtPixel([t,e],function(t){var e=t.get("features"),n=t.get("geometry").getCoordinates(),i=new h({x:n[0],y:n[1]}),r=t.get("radius");if(a.geometry=i,a.radius=r,e)for(var o=0;o<e.length;o++)a.add(new c({element:e[o].Element,layer:s}));else a.add(new c({element:t.Element,layer:s}))},{layerFilter:function(t){return n==t}})}return a},b.prototype.hitTestListScatter=function(t,e){var l=new y,u=this;if(this.map){var n=this._layer,i=this._hightLayer;this.map.map.forEachFeatureAtPixel([t,e],function(t){var e=t.get("features"),n=t.get("geometry").getCoordinates(),i=new h({x:n[0],y:n[1]}),r=t.get("radius");if(l.geometry=i,l.radius=r,e){if(0<l.getCount())return l;for(var o=[],a=0;a<e.length;a++){var s=e[a].Element;l.add(new c({element:s,layer:u})),o.push(s.copy())}u._currentScatterOriginFeatures=e,u._currentScatterElements=o,0!=u.clusterScatterSize&&e.length<=u.clusterScatterSize?function(n,i,r,o){var a=this;(function(t,e,n){var i={timer:null,index:0,count:t,isPause:!1,play:function(){var t=function(){i.isPause||(i.index<i.count?(e(i.index++,i.count),cancelAnimationFrame(i.timer),i.timer=requestAnimationFrame(t)):i.stop())};i.timer=requestAnimationFrame(t)},pause:function(){i.isPause=!0},continue:function(){i.isPause=!1},stop:function(){i.index=0,cancelAnimationFrame(i.timer),n(i.count)},updateInterval:function(t){i.interval=t}};return i})(5,function(t,e){(function(t,e,n,i,r){this.hightSource.clear(),function(t){this._clusterSelectFeature&&this._clusterSelectFeature!=t&&(this._clusterOldFeature=this._clusterSelectFeature);this._clusterSelectFeature=t,this._clusterOldFeature&&S(this._clusterOldFeature,1)}.call(this,t);var o=e.length;if(o<=1)return;var a=this.map.getPixelFromCoordinate([n.x,n.y]);a.y+=10;var s,l,u=5*r,h=Math.PI/6,c=1*u*(2+o)/(2*Math.PI)*this.radiusScale,p=2*Math.PI/o,f=[];for(s=o-1;0<=s;s--){l=h+s*p;var d=Math.round(a[0]+c*Math.cos(l)),y=Math.round(a[1]+c*Math.sin(l)),m=this.map.getCoordinateFromPixel([d,y]),g=e[s].geometry;g.x=m[0],g.y=m[1],f.push(P.call(this,n,g))}this.addSelectElement.addElements(f,!0),this.addSelectElement.addElements(e,!0),S(this._clusterSelectFeature,.3)}).call(a,n,i,r,o,t)},function(t){}).play()}.call(u,t,o,i,r):(S(u._clusterOldFeature,1),S(u._clusterSelectFeature,1),u.hightSource.clear())}else t.Element.geometry instanceof h&&l.add(new c({element:t.Element,layer:u}))},{layerFilter:function(t){return n===t||t===i}})}return 0==l.getCount()&&(this.hightSource.clear(),S(this._clusterOldFeature,1),S(this._clusterSelectFeature,1),this._clusterOldFeature=null,this._clusterSelectFeature=null),l},b.prototype.find=function(t){for(var e=0,n=this.elements.length;e<n;++e){var i=this.elements[e];if(i.id===t)return i}},b.prototype.findByScatter=function(t){var e=this._currentScatterElements;if(e)for(var n=0,i=e.length;n<i;++n){if(e[n]===t&&this._currentScatterOriginFeatures)return this._currentScatterOriginFeatures[n].Element}return null},b.prototype.contains=function(t){for(var e=0,n=this.elements.length;e<n;++e){if(this.elements[e].id===t)return!0}return!1},b.prototype.select=function(t){if(t){b.prototype.uber.select.call(this,t);var e=t.element;e&&0<=this.findIndex(e)&&this.selectElement.select(e)}},b.prototype.unSelect=function(t){if(t){b.prototype.uber.unSelect.call(this,t);var e=t.element;e&&0<=this.findIndex(e)&&this.selectElement.unSelect(e)}},b.prototype.findIndex=function(t){return this.elements.indexOf(t)},b.prototype.lookup=function(t){for(var e=this.source.getFeatures(),n=0,i=e.length;n<i;++n){var r=e[n];if(r.Element===t)return r}return null},b.prototype.setMinZoom=function(t){if(this.map){var e=T(this.map,t,256);this._layer.setMaxResolution(e+.001)}},b.prototype.setMaxZoom=function(t){if(this.map){var e=T(this.map,t,256);this._layer.setMinResolution(e)}},b.prototype.getMinZoom=function(){return this.map?O(this.map,this._layer.getMaxResolution()-.001,256):this._minZoom},b.prototype.getMaxZoom=function(){return this.map?O(this.map,this._layer.getMinResolution(),256):this._maxZoom};var N=["click","dblclick","mouseover","mouseout","mousedown","mouseup","visible","opacity"];function k(t,e,n){var i=null,r=n._layer;return n.map.map.forEachFeatureAtPixel([t,e],function(t){i=t},{layerFilter:function(t){return r==t}}),i||null}function z(t,e){var n=[];if(t){if(t.Element){var i=new c({layer:e,element:t.Element});return n.push(i),n}if(t.get){for(var r=t.get("features"),o=0;o<r.length;o++){i=new c({layer:e,element:r[o].Element});n.push(i)}return n}}return null}function D(t,e,n,i){var r={};r.idName=t.ol_uid;var o=t.getGeometry(),a=i.fromGeometry(o);return d.toGeoJSON(r,a,e,n)}return b.prototype.un=function(t,e){if("visible"===t||"opacity"===t)b.prototype.uber.un.call(this,t,e);else for(var n=0;n<N.length;n++)t==N[n]&&(b.prototype.uber.un.call(this,t,e),this.map.un("mouseover"==(i=t)||"mouseout"==i?"mousemove":i,e.registerFunc));var i},b.prototype.on=function(t,e){for(var n=0;n<N.length;n++)t==N[n]&&this.handleEvent(t,e)},b.prototype.handleEvent=function(h,c){var p=this,f=this;if("mouseover"==h||"mouseout"==h){var d={selectedObj:null,deselectedObj:null,selFlag:!1};function t(t,e,n,i,r,o,a){var s=k(n,i,p);s?function(t,e){if(!t)return!1;var n=t.get("features"),i=e.get("features");if(Array.isArray(n)&&Array.isArray(i)){if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}return!Array.isArray(n)&&!Array.isArray(i)&&t===e}(d.selectedObj,s)?(d.selFlag=!1,d.deselectedObj=null):(d.selFlag=!0,null!=d.selectedObj?(d.deselectedObj=d.selectedObj,d.selectedObj=s):(d.selectedObj=s,d.deselectedObj=null)):(d.selFlag=!1,null!=d.selectedObj?d.deselectedObj=d.selectedObj:d.deselectedObj=null,d.selectedObj=null);if(d.deselectedObj){var l=z(d.deselectedObj,f);if("mouseout"==h)return c(n,i,r,o,l)}if(d.selectedObj&&d.selFlag){var u=z(d.selectedObj,f);if("mouseover"==h)return c(n,i,r,o,u)}}c.registerFunc=t,b.prototype.uber.on.call(this,h,c),this.map.on("mousemove",t)}else if("visible"===h||"opacity"===h)b.prototype.uber.on.call(this,h,c);else{function e(t,e,n,i,r,o,a){var s=k(n,i,p),l=z(s,f);if(s)return c(n,i,r,o,l)}c.registerFunc=e,b.prototype.uber.on.call(this,h,c),this.map.on(h,e)}},b.prototype.formatLayer=function(t,e,n,i,r){var o={},a={},s=[],l={};a.type="FeatureCollection",l.version="2";for(var u=this.clusterSource.features,h=u.length-1;0<=h;--h){var c=u[h];s.push(D(c,n,i,this.geometryConvertor));var p="[idName = '"+c.ol_uid+"']",f=c.Symbol||c.get("features")[0].Element.symbol;l[p]=d.toGeoStyle(f,r)}return a.features=s,o.type="geojson",o.style=l,o.geoJson=a,o.renderAsSvg=!0,o},b.prototype.enableFormat=function(){return!1!==this.visible&&0!==this.opacity&&0!==this.elements.length},w.exports=b}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(64),n(126),n(25),n(1),n(74),n(29),n(59),n(5),n(48),n(24),n(75),n(35),n(50),n(239),n(9),n(20),n(171),n(62),n(33),n(54),n(10),n(14),n(23),n(128),n(37),n(13),n,e,t],void 0===(r=function(t,y,l,e,n,i,r,o,a,s,u,h,c,p,f,d,m,g,v,x,_,w,b,P,S,C,M,T,A,E){function I(t){var i=this;this.maxZIndex=1,this.minZIndex=0,t=t||{},f.call(this,t),this._cachedSymbols=new C,this.map=null,this.symbolConvertor=new v({cache:!0}),this.geometryConvertor=new x,t.selectSymbol&&(this._selectSymbol=t.selectSymbol);var e=void 0===t.declutterDistance?20:t.declutterDistance;this.source=new d.source.Vector({wrapX:void 0!==t.wrapX&&t.wrapX,declutter:t.declutter,declutterDistance:e}),this._layer=new d.layer.Vector({source:this.source,declutter:t.declutter,style:function(t,e){if(t.StyleFunc){var n=t.getGeometry().getExtent();return t.StyleFunc(t.Symbol,d.extent.getWidth(n)/e*pixelRatio)}return i.symbol}}),this.offset=t.offset||[0,0],this.features=[],this.featureRenders=[],this._visible=null==t.visible||t.visible,this._opacity=null==t.opacity?1:t.opacity,this._zIndex=null==t.zIndex?0:t.zIndex,this._currentRender=void 0,this.clientId=t.clientId,this.clientSecret=t.clientSecret,t.restHttp?this._restHttp=t.restHttp:this._restHttp=new P({client_id:t.clientId,client_secret:t.clientSecret}),this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex)}function L(t,e){var n,i=this.lookup(t);if(t){var r=i.getStyle();if(r)n=r.clone();else n=(r=this._layer.getStyle()(i))[0].clone();e?n.setZIndex(this.maxZIndex+=.01):n.setZIndex(this.minZIndex-=.01),i.setStyle(n)}}function R(t,e,n){return t.map.getView().getResolutionForZoom(e)/(n/256)}function O(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=n/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}t.extend2(I,f),w(I.prototype,{visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}},selectSymbol:{get:function(){return this._selectSymbol},set:function(t){this._selectSymbol=t}}}),I.prototype.setSource=function(a){if(a){var s=this;this.source=new d.source.Vector({format:new d.format.GML32,loader:function(t,e,n){if(s._restHttp)s._restHttp.get(i).then(function(t){var e=s.source.getFormat().readFeatures(t,{extent:[-180,90,180,90]});s.source.addFeatures(e);for(var n=(new l).fromGML(t),i=0;i<e.length;++i)e[i].Feature=n.get(i)});else{n.getCode();var i=a.url,r=new XMLHttpRequest;r.open("GET",i);function o(){s.source.removeLoadedExtent(t)}r.onerror=o,r.onload=function(){if(200==r.status){var t=s.source.getFormat().readFeatures(r.responseText,{extent:[-180,90,180,90]});s.source.addFeatures(t);for(var e=(new l).fromGML(r.responseText,"3.2"),n=0;n<t.length;++n)t[n].Feature=e.get(n)}else o()},r.send()}}}),this._layer.setSource(this.source)}},I.prototype.add=function(t){var e=new d.Feature({geometry:this.geometryConvertor.toGeometry(t.getGeometry())});e.Feature=t,this.features.push(t),this.source.addFeature(e)},I.prototype.addFeatures=function(t){for(var e=t.getCount(),n=[],i=0;i<e;++i){var r=t.getFeature(i),o=new d.Feature({geometry:this.geometryConvertor.toGeometry(r.getGeometry())});o.Feature=r,n.push(o),this.features.push(r)}this.source.addFeatures(n)},I.prototype.addFeatureCollection=function(t){for(var e=t.size(),n=[],i=t.getIdentityIndex(),r=0;r<e;++r){var o=t.get(r),a=o.getPropertyByIndex(i).getValue();if(a){var s=new d.Feature({geometry:this.geometryConvertor.toGeometry(a)});s.Feature=o,n.push(s),this.features.push(o)}}this.source.addFeatures(n)},I.prototype.addFeature=function(t){var e=t.getGeometry();if(e){var n=new d.Feature({geometry:this.geometryConvertor.toGeometry(e)});(n.Feature=t).olFeature=n,this.features.push(t),this.source.addFeature(n)}},I.prototype.bringTop=function(t){L.call(this,t,!0),this.updateEntity(t)},I.prototype.sendBottom=function(t){L.call(this,t,!1),this.updateEntity(t)},I.prototype.remove=function(t){var e=this.lookup(t);e&&this.source.removeFeature(e);var n=this.features.indexOf(t);this.features.splice(n,1)},I.prototype.update=function(t){var e=this.lookup(t);if(e){var n=e.getGeometry();n&&n.dispose(),e.setGeometry(this.geometryConvertor.toGeometry(t.getGeometry()))}},I.prototype.updateEntity=function(t){for(var e=t.properties,n=0,i=e.length;n<i;n++){var r=e[n].geometry;if(r){var o=this.lookup(t);if(o){var a=o.getGeometry();a&&a.dispose(),o.setGeometry(this.geometryConvertor.toGeometry(r))}}}},I.prototype.getOffset=function(){return this.offset},I.prototype.setVisible=function(t){I.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t);for(var e=0;e<this.featureRenders.length;e++)this.featureRenders[e].show(t)},I.prototype.setZIndex=function(t){I.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},I.prototype.setOpacity=function(t){I.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},I.prototype.find=function(t){for(var e=this.source.getFeatures(),n=0,i=e.length;n<i;++n){var r=e[n];if(r.Feature.getObjectId()==t||r.Feature.getId()==t)return r.Feature}return null},I.prototype.getLayer=function(){return this._layer},I.prototype.lookup=function(t){for(var e=this._layer.getSource().getFeatures(),n=0,i=e.length;n<i;++n){var r=e[n];if(r.Feature===t)return r}return null},I.prototype.getCount=function(){return this.source.getFeatures().length},I.prototype.get=function(t){return this.source.getFeatures()[t].Feature},I.prototype.clear=function(t){try{for(var e=null!=t&&t,n=0;n<this.features.length;n++){(a=this.features[n]).olFeature&&(a.olFeature.Feature=null,delete a.olFeature.Feature,delete a.olFeature)}var i=this._layer.getSource(),r=i.getFeatures();i.clear(e);n=0;for(var o=r.length;n<o;++n){var a;(a=r[n]).Geometry=null,a.dispose()}r.length=0,this.features.length=0,r=i=null}catch(t){}},I.prototype.hitTest=function(t,e){var n=[];if(this.map){var i=this._layer;if(this.map.map.forEachFeatureAtPixel([t,e],function(t){n.push(t)},{layerFilter:function(t){return i==t}}),0<n.length)return new m({feature:n[0].Feature,layer:this})}return null},I.prototype.hitTestList=function(t,e){var n=[],i=new _,r=this._layer;if(this.map){this.map.map.forEachFeatureAtPixel([t,e],function(t){n.push(t)},{layerFilter:function(t){return r==t}});for(var o=0;o<n.length;o++)i.add(new m({feature:n[o].Feature}))}return i},I.prototype.boxSelect=function(t){if(t){var e=[t.minx,t.miny,t.maxx,t.maxy],n=[];return this.source.forEachFeatureIntersectingExtent(e,function(t){n.push(new m({feature:t.Feature}))}),n}},I.prototype.select=function(t){if(t){var e=t.feature;if(e){var n=this.lookup(e);if(n&&this._selectSymbol&&this._currentRender){var i=this._currentRender.renderSymbol(e,this._selectSymbol);n.setStyle([this.symbolConvertor.toSymbol(i)])}}}},I.prototype.getExtent=function(){var t=new M({spatialReference:this.map.getSrid()}),e=this.features.length;if(0<e)for(var n=0;n<e;++n)t=t.union(this.features[n].getGeometry().envelope());return t},I.prototype.unSelect=function(t){if(t){var e=t.feature;if(e){var n=this.lookup(e);n&&n.setStyle(void 0)}}},I.prototype.selectEdit=function(t){t&&this.select(t)},I.prototype.unSelectEdit=function(t){t&&this.unSelect(t)},I.prototype.setFeatureStyle=function(t,e){var n=this.lookup(t),i=null;e&&(this._cachedSymbols.contains(e)?i=this._cachedSymbols.get(e):(i=[this.symbolConvertor.toSymbol(e)],this._cachedSymbols.put(e,i))),n.setStyle(i)},I.prototype.render=function(r){-1==this.featureRenders.indexOf(r)&&this.featureRenders.push(r);var o=this.symbolConvertor;if((this._currentRender=r).canRender()){var a=this._cachedSymbols;this._layer.setStyle(function(t,e){var n=r.render(t.Feature);if(a.contains(n))return a.get(n);var i=[o.toSymbol(n)];return a.put(n,i),i})}else for(var t=0;t<this.features.length;t++)r.render(this.features[t])},I.prototype.formatLayer=function(t,e,n,i,r){var o={},a={},s=[],l={};return a.type="FeatureCollection",l.version="2",this.features.forEach(function(t){s.push(function(t,e,n){var i=t.getFields(),r={};if(i&&0<i.getCount())for(var o=0;o<i.getCount();++o)"shape"!==i.getField(o).name&&(r[i.getField(o).name]=t.getValue(i.getField(o).name));var a=t.getGeometry();return y.toGeoJSON(r,a,e,n)}(t,n,i))}),l=function(t,e,n){if(e&&e.hasOwnProperty("$type")){var i,r,o,a=e.$type.split(",")[0].trim(),s=e.symbol;switch(a){case"SimpleRenderer":t[i="*"]=y.toGeoStyle(s,n);break;case"UniqueValueRenderer":var l=e.infos;o=e.fieldName,r="[";for(var u=0;u<l.length;++u)"number"==typeof l[u].value?(i="["+o+" = "+l[u].value+"]",r+=o+"<>"+value+" and "):"string"==typeof l[u].value&&(i="["+o+" = '"+l[u].value+"']",r+=o+"<>'"+value+"' and "),t[i]=y.toGeoStyle(l[u].symbol,n);r=r.substr(0,r.length-4)+"]",t[r]=y.toGeoStyle(s,n);break;case"ClassBreaksRenderer":o=e.fieldName;var h=e.classfications,c=h[0].endValue,p=h[0].startValue;for(u=0;u<h.length;++u){var f=h[u].startValue,d=h[u].endValue;c=d<c?c:d,p=p<f?p:f,"number"==typeof h[u].startValue&&"number"==typeof h[u].endValue?i="["+o+" >= "+h[u].startValue+" and "+o+" <= "+h[u].endValue+"]":"string"==typeof h[u].startValue&&"string"==typeof h[u].endValue&&(i="["+o+" >= '"+h[u].startValue+"' and "+o+" <= '"+h[u].endValue+"']"),t[i]=y.toGeoStyle(h[u].symbol,n)}t[r="["+o+" > "+c+" or "+o+" < "+p+"]"]=y.toGeoStyle(s,n)}}return t}(l,this._currentRender,r),a.features=s,o.type="geojson",o.style=l,o.geoJson=a,o.renderAsSvg=!0,o},I.prototype.enableFormat=function(){return!(!1===this.visible||0===this.opacity||0===this.features.length||!this._currentRender)},I.prototype.unRender=function(t){if(t){t.unRender();var e=this.featureRenders.indexOf(t);this.featureRenders.splice(e,1)}else{for(var n=0;n<this.featureRenders.length;n++)this.featureRenders[n].unRender();this.featureRenders=[]}},I.prototype.setMinZoom=function(t){if(this.map){var e=R(this.map,t,256);this._layer.setMaxResolution(e+.001)}},I.prototype.setMaxZoom=function(t){if(this.map){var e=R(this.map,t,256);this._layer.setMinResolution(e)}},I.prototype.getMinZoom=function(){return O(this.map,this._layer.getMaxResolution()-.001,256)},I.prototype.getMaxZoom=function(){return O(this.map,this._layer.getMinResolution(),256)};var N=["click","dblclick","mouseover","mouseout","mousedown","mouseup","visible","opacity"];return I.prototype.un=function(t,e){if("visible"===t||"opacity"===t)I.prototype.uber.un.call(this,t,e);else for(var n=0;n<N.length;n++)t==N[n]&&(I.prototype.uber.un.call(this,t,e),this.map.un("mouseover"==(i=t)||"mouseout"==i?"mousemove":i,e.registerFunc));var i},I.prototype.on=function(t,e){for(var n=0;n<N.length;n++)t==N[n]&&this.handleEvent(t,e)},I.prototype.handleEvent=function(l,u){var h=this;if("mouseover"==l||"mouseout"==l){var c={selectedObj:null,deselectedObj:null,selFlag:!1,selectedGraphic:null,deselectedGraphic:null};function t(t,e,n,i,r,o,a){var s=h.hitTest(n,i);return s?c.selectedObj!=s.feature?(c.selFlag=!0,null!=c.selectedObj?(c.deselectedObj=c.selectedObj,c.deselectedGraphic=c.selectedGraphic,c.selectedObj=s.feature,c.selectedGraphic=s):(c.selectedObj=s.feature,c.selectedGraphic=s,c.deselectedObj=null,c.deselectedGraphic=null)):(c.selFlag=!1,c.selectedObj=s.feature,c.selectedGraphic=s,c.deselectedGraphic=null,c.deselectedObj=null):(c.selFlag=!1,null!=c.selectedObj?(c.deselectedObj=c.selectedObj,c.deselectedGraphic=c.selectedGraphic):(c.deselectedObj=null,c.deselectedGraphic=null),c.selectedObj=null,c.selectedGraphic=null),c.deselectedObj&&"mouseout"==l?u(n,i,r,o,c.deselectedGraphic):c.selectedObj&&c.selFlag&&"mouseover"==l?u(n,i,r,o,s):void 0}u.registerFunc=t,I.prototype.uber.on.call(this,l,u),this.map.on("mousemove",t)}else if("visible"===l||"opacity"===l)I.prototype.uber.on.call(this,l,u);else{function e(t,e,n,i,r,o,a){var s=h.hitTest(n,i);if(s)return u(n,i,r,o,s)}u.registerFunc=e,I.prototype.uber.on.call(this,l,u),this.map.on(l,e)}},E.exports=I}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(278),n(279),n(9),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){e.call(this),this.gmlFormat=void 0,this.olFeatureConvertor=new n}var l;l=new i.proj.Projection({axisOrientation:"neu",code:"urn:ogc:def:crs:EPSG::4490",units:"degress",extent:[-180,-90,180,90],worldExtent:[-180,-90,180,90],global:!0}),i.proj.addProjection(l),i.proj.addProjection(new i.proj.Projection({code:"EPSG:2436",units:"m",extent:[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244]})),i.proj.addProjection(new i.proj.Projection({code:"EPSG:4509",units:"m",extent:[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244]})),i.proj.addProjection(new i.proj.Projection({code:"EPSG:4490",units:"degress",worldExtent:[-180,-90,180,90],extent:[-180,-90,180,90],global:!0})),i.proj.addProjection(new i.proj.Projection({code:"EPSG:4326",units:"degress",extent:[-180,-90,180,90],worldExtent:[-180,-90,180,90],global:!0})),i.proj.addProjection(new i.proj.Projection({code:"http://www.opengis.net/gml/srs/epsg.xml#4326",units:"degress",extent:[-180,-90,180,90],worldExtent:[-180,-90,180,90]})),i.proj.addProjection(new i.proj.Projection({code:"http://www.opengis.net/gml/srs/epsg.xml#4490",units:"degress",extent:[-180,-90,180,90],worldExtent:[-180,-90,180,90]}));return t.extend2(s,e),s.prototype.toGML=function(t){var e=this.olFeatureConvertor.toFeatures(t);return this.gmlFormat.writeFeatures(e)},s.prototype.fromGML=function(t,e){(function(t){switch(t){case"3.2":this.gmlFormat=new i.format.GML32;break;case"3.0":this.gmlFormat=new i.format.GML3;break;default:this.gmlFormat=new i.format.GML2}}).call(this,e);var n=this.gmlFormat.readFeatures(t);return this.olFeatureConvertor.fromFeatures(n)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this.$type="Value,http://www.Gs.com",this.value=null}return i.prototype.setValue=function(t){this.value=t},i.prototype.getValue=function(){return this.value},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(281),n,e,t],void 0===(r=function(t,e,n,i){function r(){this.classTable=t}function o(t){if("string"==typeof t||t instanceof String){if(t.match(/\/Date\([0-9]+-0800\)\//))return!0}return!1}function a(t){var e=t.match(/[0-9]+/),n=parseInt(e[0]);return new Date(n)}return r.prototype.createJsInstance=function(t){return null!=t?t instanceof Array?function(t){var n=[],i=this;return t.forEach(function(t){var e=i.createJsInstance(t);null!=e&&n.push(e)}),n}.call(this,t):t instanceof Object?function(i){var r,o=this;if(i.hasOwnProperty("$type")){var t=i.$type.split(",")[0].trim();this.classTable[t]?r=new this.classTable[t]:console.log("msgType is not exist: ",t)}else r=new Object;return null!=r?(Object.keys(i).forEach(function(t){var e=i[t],n=o.createJsInstance(e);null!=n&&(r[t]=n)}),r):i}.call(this,t):o(t)?a(t):t:t},r.prototype.create=function(t){return this.createJsInstance(t)},r.prototype.exist=function(t){return void 0!==this.classTable[t]},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(56),n(23),n(242),n(9),n(256),n(10),n(14),n,e,t],void 0===(r=function(t,r,i,o,a,n,e,s,l,u,h){var c={};function p(t,i,e){t&&t._token?(e=decodeURIComponent(e),t.get(e,"arraybuffer",void 0,void 0).then(function(t){var e=new Uint8Array(t),n="data:image/png;base64,"+r.decode(e);i.src=n})):i.src=e}function f(t,e){switch(e){case n.ImageWMS:case s.ImageWMS:return c.createFromImageWMS(t);case n.ImageStatic:case s.ImageStatic:return c.createFromImageStatic(t);case n.ImageCanvas:return c.createFromImageCanvas(t);default:return null}}c.createFromImageWMS=function(n){return new a.source.ImageWMS({ratio:1,url:n.url,params:{LAYERS:n.layers,TILED:n.tiled,VERSION:n.version||"1.1.1",STYLES:n.styles,CQL_FILTER:n.cqlFilter},imageLoadFunction:n.imageLoadFunction?n.imageLoadFunction:function(t,e){p(n.restHttp,t.getImage(),e)}})},c.createFromImageStatic=function(n){var t=void 0===n.crossOrigin?"anonymous":n.crossOrigin;return new a.source.ImageStatic({url:n.url,imageExtent:n.extent,crossOrigin:t,imageLoadFunction:n.imageLoadFunction?n.imageLoadFunction:function(t,e){p(n.restHttp,t.getImage(),e)}})},c.createFromImageCanvas=function(t){return new a.source.ImageCanvas({projection:t.projection,canvasFunction:t.canvasFunction,ratio:void 0===t.ratio?1:t.ratio})};function d(t){var e=t||{};o.call(this,e),this._imageCreator=c,this.clientId=e.clientId,this.clientSecret=e.clientSecret,e.restHttp?this._restHttp=e.restHttp:(this._restHttp=new i({client_id:e.clientId,client_secret:e.clientSecret}),e.restHttp=this._restHttp);var n=f(t,t.imageType);this.layer=new a.layer.Image({extent:e.extent}),n&&this.layer.setSource(n),this.map=e.map?e.map:null,this._visible=null==e.visible||e.visible,this._opacity=null==e.opacity?1:e.opacity,this._zIndex=null==e.zIndex?0:e.zIndex,"number"==typeof e.maxZoom&&e.maxZoom==e.maxZoom&&this.setMaxZoom(e.maxZoom),"number"==typeof e.minZoom&&e.minZoom==e.minZoom&&this.setMinZoom(e.minZoom),this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex)}function y(t,e,n){return t.map.getView().getResolutionForZoom(e)/(n/256)}function m(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=n/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}return t.extend2(d,o),e(d.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){return this.getMinZoom()},set:function(t){this._minZoom!==t&&this.layer&&this.setMinZoom(t)}},maxZoom:{get:function(){return this.getMaxZoom()},set:function(t){this.layer&&this.setMaxZoom(t)}}}),d.prototype.setSource=function(t){var e=t.getSourceType();t=f(t,e),this.layer.setSource(t)},d.prototype.getLayer=function(){return this.layer},d.prototype.setVisible=function(t){d.prototype.uber.setVisible.call(this,t),this.layer.setVisible(t)},d.prototype.setOpacity=function(t){d.prototype.uber.setOpacity.call(this,t),this.layer.setOpacity(t)},d.prototype.setZIndex=function(t){d.prototype.uber.setZIndex.call(this,t),this.layer.setZIndex(t)},d.prototype.setMinZoom=function(t){if(this._minZoom=t,this.map){var e=y(this.map,t,256);this.layer.setMaxResolution(e+.001)}},d.prototype.setMaxZoom=function(t){if(this._maxZoom=t,this.map){var e=y(this.map,t,256);this.layer.setMinResolution(e)}},d.prototype.getMinZoom=function(){return m(this.map,this._layer.getMaxResolution()-.001,256)},d.prototype.getMaxZoom=function(){return m(this.map,this._layer.getMinResolution(),256)},h.exports=d}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(80),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.Vector},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.findAll=function(){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(178),n(9),n,e,t],void 0===(r=function(t,e,r,n,i,o){function a(t){e.call(this,t)}return t.extend2(a,e),a.prototype.add=function(t,e){var n=this.createContainer(t),i=new r.Overlay({element:n,autoPan:t.autoPan,autoPanMargin:t.autoPanMargin,autoPanAnimation:{duration:250},offset:t.offset||[0,0],stopEvent:t.stopEvent,positioning:t.positioning});return this.uber.add.call(this,i,e),i.setPosition([t.anchor.x,t.anchor.y]),t.layerId in this.container||(this.container[t.layerId]=[]),this.container[t.layerId].push(i),this.IdContainer[t.id]=i,this.tooltips.push(t),this.lastTip=t,n},a.prototype.panIntoView=function(t){this.IdContainer[t.id].panIntoView()},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.filter=t.filter||{},this.$type="QueryFilter,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(82),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.geometryName=t.geometryName||"the_geom",this.geometry=t.geometry,this.srsName=t.srsName}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(98),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.source=t.source||"all",this.query_type=t.query_type}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.origin=t.origin,this.destination=t.destination,this.routes=t.routes||[]}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.table=e.table,this.query=e.query,this.sort=e.sort,this.field=e.field,this.page_number=e.page_number||1,this.page_size=e.page_size||10,this.data_type=e.data_type||3}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.point=e.point||{},this.longitude=this.point.x,this.latitude=this.point.y,this.locTime=e.locTime}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,o){var n;void 0===(n=function(t,e,n){var i=null,r=function(t){var e=t||{};this.style=e.style,this.canvas=e.canvas?e.canvas:r.createCanvas(e.style),i=i||o(866),this.myChart=i.init(this.canvas,{width:e.style?e.style.width+"px":void 0,height:e.style?e.style.height+"px":void 0}),this.legend=[],this.events=function(){var t={click:[],mouseout:[],mouseover:[],mousedown:[],mouseup:[],dblclick:[]};return t}()};return r.prototype.setOption=function(t){this.myChart.setOption(t)},r.prototype.getLegend=function(){return this.legend},r.createCanvas=function(t){var e=document.createElement("div");return t?(e.style.width=t.width+"px",e.style.height=t.height+"px"):(e.style.width="100%",e.style.height="100%",e.style.position="relative"),e},r.prototype.dispose=function(){this.myChart.dispose()},r.prototype.copy=function(){return new r},r.prototype.resize=function(){this.myChart.resize()},r.prototype.bindEvents=function(r,o){var a={dblclick:"dblclick",click:"click",mouseover:"mouseover",mouseout:"mouseout",mousedown:"mousedown",mouseup:"mouseup"};for(var t in a)this.myChart.on(t,function(i){return function(t){var e={name:t.name,value:t.value,index:t.dataIndex,percent:t.percent,color:t.color,feature:o};if(r.events[a[i]])for(var n=0;n<r.events[a[i]].length;++n){(0,r.events[a[i]][n])(e)}}}(t))},r.prototype.on=function(t,e){t in this.events&&this.events[t].push(e)},r.prototype.un=function(t,e){if(t in this.events)for(var n=this.events[t],i=0,r=n.length;i<r;++i){n[i]===e&&(n.splice(i,1),i--,r--)}},r.prototype.toHtml=function(t){var e=this.customOption(t);return(e=e||this.getOption(t))?(this.setOption(e.data),this.legend=e.legend,this.canvas):null},r.prototype.customOption=function(t){},n.exports=r}.apply(e,[o,e,t]))||(t.exports=n)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.source=e.source,this.opacity=void 0===e.opacity?1:e.opacity,this.width=e.width,this.height=e.height,this.$type="Texture,http://www.Gs.com"}return i.prototype.copy=function(){return new i({source:this.source,width:this.width,height:this.height,opacity:this.opacity})},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(106),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e)}return t.extend2(o,n),o.prototype.onMouseDown=function(t,e,n,i,r,o,a){},o.prototype.onMouseUp=function(t,e,n,i,r,o,a){},o.prototype.onMouseMove=function(t,e,n,i,r,o,a){},o.prototype.onMouseClick=function(t,e,n,i,r,o,a){},o.prototype.onDblclick=function(t,e,n,i,r,o,a){},o.prototype.onKeyDown=function(t,e){},o.prototype.onKeyUp=function(t,e){},o.prototype.onClick=function(t){},o.prototype.deactivate=function(){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.move=function(t,e,n){},i.prototype.rotate=function(t,e){},i.prototype.scale=function(t,e,n,i){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function J(t){var e=t||{};this[0]=void 0===e.column0Row0?0:e.column0Row0,this[1]=void 0===e.column0Row1?0:e.column0Row1,this[2]=void 0===e.column0Row2?0:e.column0Row2,this[3]=void 0===e.column0Row3?0:e.column0Row3,this[4]=void 0===e.column1Row0?0:e.column1Row0,this[5]=void 0===e.column1Row1?0:e.column1Row1,this[6]=void 0===e.column1Row2?0:e.column1Row2,this[7]=void 0===e.column1Row3?0:e.column1Row3,this[8]=void 0===e.column2Row0?0:e.column2Row0,this[9]=void 0===e.column2Row1?0:e.column2Row1,this[10]=void 0===e.column2Row2?0:e.column2Row2,this[11]=void 0===e.column2Row3?0:e.column2Row3,this[12]=void 0===e.column3Row0?0:e.column3Row0,this[13]=void 0===e.column3Row1?0:e.column3Row1,this[14]=void 0===e.column3Row2?0:e.column3Row2,this[15]=void 0===e.column3Row3?0:e.column3Row3}return J.inverse=function(t){var e=t[0],n=t[4],i=t[8],r=t[12],o=t[1],a=t[5],s=t[9],l=t[13],u=t[2],h=t[6],c=t[10],p=t[14],f=t[3],d=t[7],y=t[11],m=t[15],g=c*m,v=p*y,x=h*m,_=p*d,w=h*y,b=c*d,P=u*m,S=p*f,C=u*y,M=c*f,T=u*d,A=h*f,E=g*a+_*s+w*l-(v*a+x*s+b*l),I=v*o+P*s+M*l-(g*o+S*s+C*l),L=x*o+S*a+T*l-(_*o+P*a+A*l),R=b*o+C*a+A*s-(w*o+M*a+T*s),O=v*n+x*i+b*r-(g*n+_*i+w*r),N=g*e+S*i+C*r-(v*e+P*i+M*r),k=_*e+P*n+A*r-(x*e+S*n+T*r),z=w*e+M*n+T*i-(b*e+C*n+A*i),D=(g=i*l)*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=j,n[6]=V,n[7]=q,n[8]=B,n[9]=U,n[10]=W,n[11]=Z,n[12]=X,n[13]=H,n[14]=Y,n[15]=K,n},J.add=function(t,e){var n=new J;return t&&e&&(n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n[3]=t[3]+e[3],n[4]=t[4]+e[4],n[5]=t[5]+e[5],n[6]=t[6]+e[6],n[7]=t[7]+e[7],n[8]=t[8]+e[8],n[9]=t[9]+e[9],n[10]=t[10]+e[10],n[11]=t[11]+e[11],n[12]=t[12]+e[12],n[13]=t[13]+e[13],n[14]=t[14]+e[14],n[15]=t[15]+e[15]),n},J.subtract=function(t,e){var n=new J;return t&&e&&(n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n[3]=t[3]-e[3],n[4]=t[4]-e[4],n[5]=t[5]-e[5],n[6]=t[6]-e[6],n[7]=t[7]-e[7],n[8]=t[8]-e[8],n[9]=t[9]-e[9],n[10]=t[10]-e[10],n[11]=t[11]-e[11],n[12]=t[12]-e[12],n[13]=t[13]-e[13],n[14]=t[14]-e[14],n[15]=t[15]-e[15]),n},J.negate=function(t){var e=new t;return left&&(e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e[4]=-t[4],e[5]=-t[5],e[6]=-t[6],e[7]=-t[7],e[8]=-t[8],e[9]=-t[9],e[10]=-t[10],e[11]=-t[11],e[12]=-t[12],e[13]=-t[13],e[14]=-t[14],e[15]=-t[15]),e},J.makeRotationAxis=function(t,e){e=e/180*Math.PI;var n=Math.cos(e),i=Math.sin(e),r=1-n,o=t.x,a=t.y,s=t.z,l=r*o,u=r*a;return new J({column0Row0:l*o+n,column0Row1:l*a+i*s,column0Row2:l*s-i*a,column0Row3:0,column1Row0:l*a-i*s,column1Row1:u*a+n,column1Row2:u*s+i*o,column1Row3:0,column2Row0:l*s+i*a,column2Row1:u*s-i*o,column2Row2:r*s*s+n,column2Row3:0,column3Row0:0,column3Row1:0,column3Row2:0,column3Row3:1})},J.makeScale=function(t,e,n){return new J({column0Row0:t,column0Row1:0,column0Row2:0,column0Row3:0,column1Row0:0,column1Row1:e,column1Row2:0,column1Row3:0,column2Row0:0,column2Row1:0,column2Row2:n,column2Row3:0,column3Row0:0,column3Row1:0,column3Row2:0,column3Row3:1})},J.makeTransform=function(t,e,n){return new J({column0Row0:1,column0Row1:0,column0Row2:0,column0Row3:t,column1Row0:0,column1Row1:1,column1Row2:0,column1Row3:e,column2Row0:0,column2Row1:0,column2Row2:1,column2Row3:n,column3Row0:0,column3Row1:0,column3Row2:0,column3Row3:1})},J.makeScale=function(t,e,n,i){var r=(1-e)*t.x,o=(1-n)*t.y,a=(1-i)*t.z;return new J({column0Row0:e,column0Row1:0,column0Row2:0,column0Row3:0,column1Row0:0,column1Row1:n,column1Row2:0,column1Row3:0,column2Row0:0,column2Row1:0,column2Row2:i,column2Row3:0,column3Row0:r,column3Row1:o,column3Row2:a,column3Row3:1})},n.exports=J}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(89),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.speed=t.speed,this.skip=t.skip,this.startTime=t.startTime||0}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(89),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.life=t.life,this.gap=t.gap,this.radius=t.radius,this.effect=t.effect}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){var e=t||{};n.call(this,e),this.center=e.center,this.axisX=e.axisX,this.axisY=e.axisY,this.$type="Ellipse,http://www.Gs.com"}return t.extend2(s,n),s.prototype.getGeometryType=function(){return e.Ellipse},s.prototype.setCenter=function(t){this.center=t},s.prototype.getCenter=function(){return this.center},s.prototype.envelope=function(){return new i({minx:this.center.x-this.axisX,miny:this.center.y-this.axisY,maxx:this.center.x+this.axisX,maxy:this.center.y+this.axisY,minz:this.center.z,maxz:this.center.z,spatialReference:this.spatialReference})},s.prototype.copy=function(){return new s({center:this.center.copy(),axisX:this.axisX,axisY:this.axisY,spatialReference:this.spatialReference})},s.prototype.asWkt=function(t){for(var e=this.axisX,n=this.axisY,i=this.getCenter(),r=[],o=Math.PI/180,a=a||s(),s=function(){for(var t=[],e=0;e<=360;++e){var n=o*e;t.push([Math.sin(n),Math.cos(n)])}return t},l=0,u=a.length;l<u;++l){var h=a[l];r.push({x:i.x+e*h[1],y:i.y+n*h[0]})}h=this.points2WKT(r,t);return"polygon({0})".replace("{0}",h)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.toGeometry=function(t){},i.prototype.fromGeometry=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){n.call(this,t),this.center=t.center,this.side=t.side,this.$type="Square,http://www.Gs.com"}return t.extend2(s,n),s.prototype.getGeometryType=function(){return e.Square},s.prototype.copy=function(){return new s({center:this.center.copy(),side:this.side,spatialReference:this.spatialReference})},s.prototype.envelope=function(){var t=.5*this.side;return new i({minx:this.center.x-t,miny:this.center.y-t,maxx:this.center.x+t,maxy:this.center.y+t})},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){t.exports=function i(r,o,a){function s(n,t){if(!o[n]){if(!r[n]){if(l)return l(n,!0);throw new Error("Cannot find module '"+n+"'")}var e=o[n]={exports:{}};r[n][0].call(e.exports,function(t){var e=r[n][1][t];return s(e||t)},e,e.exports,i,r,o,a)}return o[n].exports}for(var l=!1,t=0;t<a.length;t++)s(a[t]);return s}({1:[function(t,e){function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var i=t.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=t,this.y=e,this.z=n||0}var n=t("mgrs");r.fromMGRS=function(t){return new r(n.toPoint(t))},r.prototype.toMGRS=function(t){return n.forward([this.x,this.y],t)},e.exports=r},{mgrs:66}],2:[function(t,e){function o(t,e){if(!(this instanceof o))return new o(t);e=e||function(t){if(t)throw t};var n=a(t);if("object"==typeof n){var i=l(n),r=o.projections.get(i.projName);r?(s(this,i),s(this,r),this.init(),e(null,this)):e(t)}else e(t)}var a=t("./parseCode"),s=t("./extend"),n=t("./projections"),l=t("./deriveConstants");(o.projections=n).start(),e.exports=o},{"./deriveConstants":32,"./extend":33,"./parseCode":36,"./projections":38}],3:[function(t,e){e.exports=function(t,e,n){var i,r,o,a=n.x,s=n.y,l=n.z||0;for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(r=0===o?(i=a,"x"):1===o?(i=s,"y"):(i=l,"z"),t.axis[o]){case"e":n[r]=i;break;case"w":n[r]=-i;break;case"n":n[r]=i;break;case"s":n[r]=-i;break;case"u":void 0!==n[r]&&(n.z=i);break;case"d":void 0!==n[r]&&(n.z=-i);break;default:return null}return n}},{}],4:[function(t,e){var n=Math.PI/2,i=t("./sign");e.exports=function(t){return Math.abs(t)<n?t:t-i(t)*Math.PI}},{"./sign":21}],5:[function(t,e){var n=2*Math.PI,i=t("./sign");e.exports=function(t){return Math.abs(t)<Math.PI?t:t-i(t)*n}},{"./sign":21}],6:[function(t,e){e.exports=function(t){return 1<Math.abs(t)&&(t=1<t?1:-1),Math.asin(t)}},{}],7:[function(t,e){e.exports=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))}},{}],8:[function(t,e){e.exports=function(t){return.375*t*(1+.25*t*(1+.46875*t))}},{}],9:[function(t,e){e.exports=function(t){return.05859375*t*t*(1+.75*t)}},{}],10:[function(t,e){e.exports=function(t){return t*t*t*(35/3072)}},{}],11:[function(t,e){e.exports=function(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)}},{}],12:[function(t,e){e.exports=function(t,e,n,i,r){var o,a;o=t/e;for(var s=0;s<15;s++)if(a=(t-(e*o-n*Math.sin(2*o)+i*Math.sin(4*o)-r*Math.sin(6*o)))/(e-2*n*Math.cos(2*o)+4*i*Math.cos(4*o)-6*r*Math.cos(6*o)),o+=a,Math.abs(a)<=1e-10)return o;return NaN}},{}],13:[function(t,e){var u=Math.PI/2;e.exports=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*u:u;for(var i,r,o,a,s=Math.asin(.5*e),l=0;l<30;l++)if(r=Math.sin(s),o=Math.cos(s),a=t*r,i=Math.pow(1-a*a,2)/(2*o)*(e/(1-t*t)-r/(1-a*a)+.5/t*Math.log((1-a)/(1+a))),s+=i,Math.abs(i)<=1e-10)return s;return NaN}},{}],14:[function(t,e){e.exports=function(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}},{}],15:[function(t,e){e.exports=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}},{}],16:[function(t,e){var s=Math.PI/2;e.exports=function(t,e){for(var n,i,r=.5*t,o=s-2*Math.atan(e),a=0;a<=15;a++)if(n=t*Math.sin(o),i=s-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-o,o+=i,Math.abs(i)<=1e-10)return o;return-9999}},{}],17:[function(t,e){var i=.01068115234375;e.exports=function(t){var e=[];e[0]=1-t*(.25+t*(.046875+t*(.01953125+t*i))),e[1]=t*(.75-t*(.046875+t*(.01953125+t*i)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}},{}],18:[function(t,e){var l=t("./pj_mlfn");e.exports=function(t,e,n){for(var i=1/(1-e),r=t,o=20;o;--o){var a=Math.sin(r),s=1-e*a*a;if(s=(l(r,a,Math.cos(r),n)-t)*s*Math.sqrt(s)*i,r-=s,Math.abs(s)<1e-10)return r}return r}},{"./pj_mlfn":19}],19:[function(t,e){e.exports=function(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))}},{}],20:[function(t,e){e.exports=function(t,e){var n;return 1e-7<t?(1-t*t)*(e/(1-(n=t*e)*n)-.5/t*Math.log((1-n)/(1+n))):2*e}},{}],21:[function(t,e){e.exports=function(t){return t<0?-1:1}},{}],22:[function(t,e){e.exports=function(t,e){return Math.pow((1-t)/(1+t),e)}},{}],23:[function(t,e){e.exports=function(t){var e={x:t[0],y:t[1]};return 2<t.length&&(e.z=t[2]),3<t.length&&(e.m=t[3]),e}},{}],24:[function(t,e){var o=Math.PI/2;e.exports=function(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(o-e))/i}},{}],25:[function(t,e,n){n.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},n.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},n.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},n.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},n.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},n.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},n.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},n.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},n.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},n.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},n.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},n.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},n.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},n.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},n.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},n.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},{}],26:[function(t,e,n){n.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},n.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},n.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},n.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},n.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},n.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},n.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},n.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},n.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},n.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},n.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},n.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},n.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},n.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},n.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},n.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},n.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},n.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},n.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},n.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},n.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},n.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},n.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},n.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},n.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},n.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},n.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},n.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},n.hough={a:6378270,rf:297,ellipseName:"Hough"},n.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},n.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},n.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},n.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},n.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},n.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},n.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},n.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},n.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},n.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},n.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},n.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},n.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},n.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},{}],27:[function(t,e,n){n.greenwich=0,n.lisbon=-9.131906111111,n.paris=2.337229166667,n.bogota=-74.080916666667,n.madrid=-3.687938888889,n.rome=12.452333333333,n.bern=7.439583333333,n.jakarta=106.807719444444,n.ferro=-17.666666666667,n.brussels=4.367975,n.stockholm=18.058277777778,n.athens=23.7163375,n.oslo=10.722916666667},{}],28:[function(t,e){function o(t,e,n){var i;return Array.isArray(n)?(i=r(t,e,n),3===n.length?[i.x,i.y,i.z]:[i.x,i.y]):r(t,e,n)}function a(t){return t instanceof n?t:t.oProj?t.oProj:n(t)}var n=t("./Proj"),r=t("./transform"),s=n("WGS84");e.exports=function(e,n,t){e=a(e);var i,r=!1;return void 0===n?(n=e,e=s,r=!0):void 0===n.x&&!Array.isArray(n)||(t=n,n=e,e=s,r=!0),n=a(n),t?o(e,n,t):(i={forward:function(t){return o(e,n,t)},inverse:function(t){return o(n,e,t)}},r&&(i.oProj=n),i)}},{"./Proj":2,"./transform":64}],29:[function(t,e){var w=Math.PI/2,n=484813681109536e-20,b=.3826834323650898,i=function(t){if(!(this instanceof i))return new i(t);if(this.datum_type=4,t){if(t.datumCode&&"none"===t.datumCode&&(this.datum_type=5),t.datum_params){for(var e=0;e<t.datum_params.length;e++)t.datum_params[e]=parseFloat(t.datum_params[e]);0===t.datum_params[0]&&0===t.datum_params[1]&&0===t.datum_params[2]||(this.datum_type=1),3<t.datum_params.length&&(0!==t.datum_params[3]||0!==t.datum_params[4]||0!==t.datum_params[5]||0!==t.datum_params[6])&&(this.datum_type=2,t.datum_params[3]*=n,t.datum_params[4]*=n,t.datum_params[5]*=n,t.datum_params[6]=t.datum_params[6]/1e6+1)}this.datum_type=t.grids?3:this.datum_type,this.a=t.a,this.b=t.b,this.es=t.es,this.ep2=t.ep2,this.datum_params=t.datum_params,3===this.datum_type&&(this.grids=t.grids)}};i.prototype={compare_datums:function(t){return this.datum_type===t.datum_type&&!(this.a!==t.a||5e-11<Math.abs(this.es-t.es))&&(1===this.datum_type?this.datum_params[0]===t.datum_params[0]&&this.datum_params[1]===t.datum_params[1]&&this.datum_params[2]===t.datum_params[2]:2===this.datum_type?this.datum_params[0]===t.datum_params[0]&&this.datum_params[1]===t.datum_params[1]&&this.datum_params[2]===t.datum_params[2]&&this.datum_params[3]===t.datum_params[3]&&this.datum_params[4]===t.datum_params[4]&&this.datum_params[5]===t.datum_params[5]&&this.datum_params[6]===t.datum_params[6]:3!==this.datum_type&&3!==t.datum_type||this.nadgrids===t.nadgrids)},geodetic_to_geocentric:function(t){var e,n,i,r,o,a,s,l=t.x,u=t.y,h=t.z?t.z:0;if(u<-w&&-1.001*w<u)u=-w;else if(w<u&&u<1.001*w)u=w;else if(u<-w||w<u)return null;return l>Math.PI&&(l-=2*Math.PI),o=Math.sin(u),s=Math.cos(u),a=o*o,r=this.a/Math.sqrt(1-this.es*a),e=(r+h)*s*Math.cos(l),n=(r+h)*s*Math.sin(l),i=(r*(1-this.es)+h)*o,t.x=e,t.y=n,t.z=i,0},geocentric_to_geodetic:function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g=t.x,v=t.y,x=t.z?t.z:0;if(e=Math.sqrt(g*g+v*v),n=Math.sqrt(g*g+v*v+x*x),e/this.a<1e-12){if(d=0,n/this.a<1e-12)return y=w,void(m=-this.b)}else d=Math.atan2(v,g);for(i=x/n,r=e/n,o=1/Math.sqrt(1-this.es*(2-this.es)*r*r),l=r*(1-this.es)*o,u=i*o,f=0;f++,s=this.a/Math.sqrt(1-this.es*u*u),m=e*l+x*u-s*(1-this.es*u*u),a=this.es*s/(s+m),o=1/Math.sqrt(1-a*(2-a)*r*r),p=(c=i*o)*l-(h=r*(1-a)*o)*u,l=h,u=c,1e-24<p*p&&f<30;);return y=Math.atan(c/Math.abs(h)),t.x=d,t.y=y,t.z=m,t},geocentric_to_geodetic_noniter:function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v=t.x,x=t.y,_=t.z?t.z:0;if(v=parseFloat(v),x=parseFloat(x),_=parseFloat(_),g=!1,0!==v)e=Math.atan2(x,v);else if(0<x)e=w;else if(x<0)e=-w;else if(g=!0,(e=0)<_)n=w;else{if(!(_<0))return n=w,void(i=-this.b);n=-w}return o=v*v+x*x,r=Math.sqrt(o),a=1.0026*_,l=Math.sqrt(a*a+o),p=r/l,c=(h=a/l)*h*h,s=_+this.b*this.ep2*c,m=r-this.a*this.es*p*p*p,u=Math.sqrt(s*s+m*m),f=s/u,d=m/u,y=this.a/Math.sqrt(1-this.es*f*f),i=b<=d?r/d-y:d<=-b?r/-d-y:_/f+y*(this.es-1),!1===g&&(n=Math.atan(f/d)),t.x=e,t.y=n,t.z=i,t},geocentric_to_wgs84:function(t){if(1===this.datum_type)t.x+=this.datum_params[0],t.y+=this.datum_params[1],t.z+=this.datum_params[2];else if(2===this.datum_type){var e=this.datum_params[0],n=this.datum_params[1],i=this.datum_params[2],r=this.datum_params[3],o=this.datum_params[4],a=this.datum_params[5],s=this.datum_params[6],l=s*(t.x-a*t.y+o*t.z)+e,u=s*(a*t.x+t.y-r*t.z)+n,h=s*(-o*t.x+r*t.y+t.z)+i;t.x=l,t.y=u,t.z=h}},geocentric_from_wgs84:function(t){if(1===this.datum_type)t.x-=this.datum_params[0],t.y-=this.datum_params[1],t.z-=this.datum_params[2];else if(2===this.datum_type){var e=this.datum_params[0],n=this.datum_params[1],i=this.datum_params[2],r=this.datum_params[3],o=this.datum_params[4],a=this.datum_params[5],s=this.datum_params[6],l=(t.x-e)/s,u=(t.y-n)/s,h=(t.z-i)/s;t.x=l+a*u-o*h,t.y=-a*l+u+r*h,t.z=o*l-r*u+h}}},e.exports=i},{}],30:[function(t,e){var p=.006694379990141316;e.exports=function(t,e,n){function i(t){return 1===t||2===t}var r,o,a;if(t.compare_datums(e))return n;if(5===t.datum_type||5===e.datum_type)return n;var s=t.a,l=t.es,u=e.a,h=e.es,c=t.datum_type;if(3===c)if(0===this.apply_gridshift(t,0,n))t.a=6378137,t.es=p;else{if(!t.datum_params)return t.a=s,t.es=t.es,n;for(r=1,o=0,a=t.datum_params.length;o<a;o++)r*=t.datum_params[o];if(0===r)return t.a=s,t.es=t.es,n;c=3<t.datum_params.length?2:1}return 3===e.datum_type&&(e.a=6378137,e.es=p),(t.es!==e.es||t.a!==e.a||i(c)||i(e.datum_type))&&(t.geodetic_to_geocentric(n),i(t.datum_type)&&t.geocentric_to_wgs84(n),i(e.datum_type)&&e.geocentric_from_wgs84(n),e.geocentric_to_geodetic(n)),3===e.datum_type&&this.apply_gridshift(e,1,n),t.a=s,t.es=l,e.a=u,e.es=h,n}},{}],31:[function(t,e){function i(t){var e=this;if(2===arguments.length){var n=arguments[1];i[t]="string"==typeof n?"+"===n[0]?r(arguments[1]):o(arguments[1]):n}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?i.apply(e,t):i(t)});if("string"==typeof t){if(t in i)return i[t]}else"EPSG"in t?i["EPSG:"+t.EPSG]=t:"ESRI"in t?i["ESRI:"+t.ESRI]=t:"IAU2000"in t?i["IAU2000:"+t.IAU2000]=t:console.log(t);return}}var n=t("./global"),r=t("./projString"),o=t("./wkt");n(i),e.exports=i},{"./global":34,"./projString":37,"./wkt":65}],32:[function(t,e){var i=t("./constants/Datum"),r=t("./constants/Ellipsoid"),o=t("./extend"),a=t("./datum");e.exports=function(t){if(t.datumCode&&"none"!==t.datumCode){var e=i[t.datumCode];e&&(t.datum_params=e.towgs84?e.towgs84.split(","):null,t.ellps=e.ellipse,t.datumName=e.datumName?e.datumName:t.datumCode)}if(!t.a){var n=r[t.ellps]?r[t.ellps]:r.WGS84;o(t,n)}return t.rf&&!t.b&&(t.b=(1-1/t.rf)*t.a),(0===t.rf||Math.abs(t.a-t.b)<1e-10)&&(t.sphere=!0,t.b=t.a),t.a2=t.a*t.a,t.b2=t.b*t.b,t.es=(t.a2-t.b2)/t.a2,t.e=Math.sqrt(t.es),t.R_A&&(t.a*=1-t.es*(.16666666666666666+t.es*(.04722222222222222+.022156084656084655*t.es)),t.a2=t.a*t.a,t.b2=t.b*t.b,t.es=0),t.ep2=(t.a2-t.b2)/t.b2,t.k0||(t.k0=1),t.axis||(t.axis="enu"),t.datum=a(t),t}},{"./constants/Datum":25,"./constants/Ellipsoid":26,"./datum":29,"./extend":33}],33:[function(t,e){e.exports=function(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)void 0!==(n=e[i])&&(t[i]=n);return t}},{}],34:[function(t,e){e.exports=function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}},{}],35:[function(t,e){var n=t("./core");n.defaultDatum="WGS84",n.Proj=t("./Proj"),n.WGS84=new n.Proj("WGS84"),n.Point=t("./Point"),n.toPoint=t("./common/toPoint"),n.defs=t("./defs"),n.transform=t("./transform"),n.mgrs=t("mgrs"),n.version=t("../package.json").version,t("./includedProjections")(n),e.exports=n},{"../package.json":67,"./Point":1,"./Proj":2,"./common/toPoint":23,"./core":28,"./defs":31,"./includedProjections":"gWUPNW","./transform":64,mgrs:66}],36:[function(t,e){var i=t("./defs"),r=t("./wkt"),o=t("./projString");e.exports=function(t){return"string"==typeof t?t in i?i[t]:(n=t,["GEOGCS","GEOCCS","PROJCS","LOCAL_CS"].reduce(function(t,e){return t+1+n.indexOf(e)},0)?r(t):"+"===t[0]?o(t):void 0):t;var n}},{"./defs":31,"./projString":37,"./wkt":65}],37:[function(t,e){var s=.017453292519943295,l=t("./constants/PrimeMeridian");e.exports=function(t){var n={},i={};t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).forEach(function(t){var e=t.split("=");e.push(!0),i[e[0].toLowerCase()]=e[1]});var e,r,o,a={proj:"projName",datum:"datumCode",rf:function(t){n.rf=parseFloat(t,10)},lat_0:function(t){n.lat0=t*s},lat_1:function(t){n.lat1=t*s},lat_2:function(t){n.lat2=t*s},lat_ts:function(t){n.lat_ts=t*s},lon_0:function(t){n.long0=t*s},lon_1:function(t){n.long1=t*s},lon_2:function(t){n.long2=t*s},alpha:function(t){n.alpha=parseFloat(t)*s},lonc:function(t){n.longc=t*s},x_0:function(t){n.x0=parseFloat(t,10)},y_0:function(t){n.y0=parseFloat(t,10)},k_0:function(t){n.k0=parseFloat(t,10)},k:function(t){n.k0=parseFloat(t,10)},r_a:function(){n.R_A=!0},zone:function(t){n.zone=parseInt(t,10)},south:function(){n.utmSouth=!0},towgs84:function(t){n.datum_params=t.split(",").map(function(t){return parseFloat(t,10)})},to_meter:function(t){n.to_meter=parseFloat(t,10)},from_greenwich:function(t){n.from_greenwich=t*s},pm:function(t){n.from_greenwich=(l[t]?l[t]:parseFloat(t,10))*s},nadgrids:function(t){"@null"===t?n.datumCode="none":n.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(n.axis=t)}};for(e in i)r=i[e],e in a?"function"==typeof(o=a[e])?o(r):n[o]=r:n[e]=r;return"string"==typeof n.datumCode&&"WGS84"!==n.datumCode&&(n.datumCode=n.datumCode.toLowerCase()),n}},{"./constants/PrimeMeridian":27}],38:[function(t,e,n){function i(t,e){var n=a.length;return t.names?((a[n]=t).names.forEach(function(t){o[t.toLowerCase()]=n}),this):(console.log(e),!0)}var r=[t("./projections/merc"),t("./projections/longlat")],o={},a=[];n.add=i,n.get=function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==o[e]&&a[o[e]]?a[o[e]]:void 0},n.start=function(){r.forEach(i)}},{"./projections/longlat":50,"./projections/merc":51}],39:[function(t,e,n){var i=t("../common/msfnz"),l=t("../common/qsfnz"),u=t("../common/adjust_lon"),h=t("../common/asinz");n.init=function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=i(this.e3,this.sin_po,this.cos_po),this.qs1=l(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=i(this.e3,this.sin_po,this.cos_po),this.qs2=l(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=l(this.e3,this.sin_po,this.cos_po),this.ns0=1e-10<Math.abs(this.lat1-this.lat2)?(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},n.forward=function(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=l(this.e3,this.sin_phi,this.cos_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,o=this.ns0*u(e-this.long0),a=r*Math.sin(o)+this.x0,s=this.rh-r*Math.cos(o)+this.y0;return t.x=a,t.y=s,t},n.inverse=function(t){var e,n,i,r,o,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,i=0<=this.ns0?(e=Math.sqrt(t.x*t.x+t.y*t.y),1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),-1),(r=0)!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,a=this.sphere?Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,this.phi1z(this.e3,n)),o=u(r/this.ns0+this.long0),t.x=o,t.y=a,t},n.phi1z=function(t,e){var n,i,r,o,a,s=h(.5*e);if(t<1e-10)return s;for(var l=t*t,u=1;u<=25;u++)if(n=Math.sin(s),i=Math.cos(s),a=.5*(o=1-(r=t*n)*r)*o/i*(e/(1-l)-n/o+.5/t*Math.log((1-r)/(1+r))),s+=a,Math.abs(a)<=1e-7)return s;return null},n.names=["Albers_Conic_Equal_Area","Albers","aea"]},{"../common/adjust_lon":5,"../common/asinz":6,"../common/msfnz":15,"../common/qsfnz":20}],40:[function(t,e,n){var A=t("../common/adjust_lon"),E=Math.PI/2,I=1e-10,L=t("../common/mlfn"),R=t("../common/e0fn"),O=t("../common/e1fn"),N=t("../common/e2fn"),k=t("../common/e3fn"),z=t("../common/gN"),P=t("../common/asinz"),S=t("../common/imlfn");n.init=function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},n.forward=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P=t.x,S=t.y,C=Math.sin(t.y),M=Math.cos(t.y),T=A(P-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=I?(t.x=this.x0+this.a*(E-S)*Math.sin(T),t.y=this.y0-this.a*(E-S)*Math.cos(T)):Math.abs(this.sin_p12+1)<=I?(t.x=this.x0+this.a*(E+S)*Math.sin(T),t.y=this.y0+this.a*(E+S)*Math.cos(T)):(v=this.sin_p12*C+this.cos_p12*M*Math.cos(T),m=Math.acos(v),g=m/Math.sin(m),t.x=this.x0+this.a*g*M*Math.sin(T),t.y=this.y0+this.a*g*(this.cos_p12*C-this.sin_p12*M*Math.cos(T))):(e=R(this.es),n=O(this.es),i=N(this.es),r=k(this.es),Math.abs(this.sin_p12-1)<=I?(o=this.a*L(e,n,i,r,E),a=this.a*L(e,n,i,r,S),t.x=this.x0+(o-a)*Math.sin(T),t.y=this.y0-(o-a)*Math.cos(T)):Math.abs(this.sin_p12+1)<=I?(o=this.a*L(e,n,i,r,E),a=this.a*L(e,n,i,r,S),t.x=this.x0+(o+a)*Math.sin(T),t.y=this.y0+(o+a)*Math.cos(T)):(s=C/M,l=z(this.a,this.e,this.sin_p12),u=z(this.a,this.e,C),h=Math.atan((1-this.es)*s+this.es*l*this.sin_p12/(u*M)),c=Math.atan2(Math.sin(T),this.cos_p12*Math.tan(h)-this.sin_p12*Math.cos(T)),x=0===c?Math.asin(this.cos_p12*Math.sin(h)-this.sin_p12*Math.cos(h)):Math.abs(Math.abs(c)-Math.PI)<=I?-Math.asin(this.cos_p12*Math.sin(h)-this.sin_p12*Math.cos(h)):Math.asin(Math.sin(T)*Math.cos(h)/Math.sin(c)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),f=this.e*this.cos_p12*Math.cos(c)/Math.sqrt(1-this.es),m=l*x*(1-(_=x*x)*(y=f*f)*(1-y)/6+(w=_*x)/8*(d=p*f)*(1-2*y)+(b=w*x)/120*(y*(4-7*y)-3*p*p*(1-7*y))-b*x/48*d),t.x=this.x0+m*Math.sin(c),t.y=this.y0+m*Math.cos(c))),t},n.inverse=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*E*this.a)return;return n=e/this.a,i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=I?a=this.lat0:(a=P(r*this.sin_p12+t.y*i*this.cos_p12/e),s=Math.abs(this.lat0)-E,o=A(Math.abs(s)<=I?0<=this.lat0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y):this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i))),t.x=o,t.y=a,t}return l=R(this.es),u=O(this.es),h=N(this.es),c=k(this.es),Math.abs(this.sin_p12-1)<=I?(p=this.a*L(l,u,h,c,E),e=Math.sqrt(t.x*t.x+t.y*t.y),a=S((p-e)/this.a,l,u,h,c),o=A(this.long0+Math.atan2(t.x,-1*t.y))):Math.abs(this.sin_p12+1)<=I?(p=this.a*L(l,u,h,c,E),e=Math.sqrt(t.x*t.x+t.y*t.y),a=S((e-p)/this.a,l,u,h,c),o=A(this.long0+Math.atan2(t.x,t.y))):(e=Math.sqrt(t.x*t.x+t.y*t.y),y=Math.atan2(t.x,t.y),f=z(this.a,this.e,this.sin_p12),m=Math.cos(y),g=this.e*this.cos_p12*m,v=-g*g/(1-this.es),x=3*this.es*(1-v)*this.sin_p12*this.cos_p12*m/(1-this.es),w=(_=e/f)-v*(1+v)*Math.pow(_,3)/6-x*(1+3*v)*Math.pow(_,4)/24,b=1-v*w*w/2-_*w*w*w/6,d=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*m),o=A(this.long0+Math.asin(Math.sin(y)*Math.sin(w)/Math.cos(d))),a=Math.atan((1-this.es*b*this.sin_p12/Math.sin(d))*Math.tan(d)/(1-this.es))),t.x=o,t.y=a,t},n.names=["Azimuthal_Equidistant","aeqd"]},{"../common/adjust_lon":5,"../common/asinz":6,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/imlfn":12,"../common/mlfn":14}],41:[function(t,e,n){var f=t("../common/mlfn"),i=t("../common/e0fn"),r=t("../common/e1fn"),o=t("../common/e2fn"),a=t("../common/e3fn"),d=t("../common/gN"),y=t("../common/adjust_lon"),m=t("../common/adjust_lat"),g=t("../common/imlfn"),v=Math.PI/2;n.init=function(){this.sphere||(this.e0=i(this.es),this.e1=r(this.es),this.e2=o(this.es),this.e3=a(this.es),this.ml0=this.a*f(this.e0,this.e1,this.e2,this.e3,this.lat0))},n.forward=function(t){var e,n,i=t.x,r=t.y;if(i=y(i-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(r)*Math.sin(i)),n=this.a*(Math.atan2(Math.tan(r),Math.cos(i))-this.lat0);else{var o=Math.sin(r),a=Math.cos(r),s=d(this.a,this.e,o),l=Math.tan(r)*Math.tan(r),u=i*Math.cos(r),h=u*u,c=this.es*a*a/(1-this.es),p=this.a*f(this.e0,this.e1,this.e2,this.e3,r);e=s*u*(1-h*l*(1/6-(8-l+8*c)*h/120)),n=p-this.ml0+s*o/a*h*(.5+(5-l+6*c)*h/24)}return t.x=e+this.x0,t.y=n+this.y0,t},n.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i=t.x/this.a,r=t.y/this.a;if(this.sphere){var o=r+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(i)),n=Math.atan2(Math.tan(i),Math.cos(o))}else{var a=this.ml0/this.a+r,s=g(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-v)<=1e-10)return t.x=this.long0,t.y=v,r<0&&(t.y*=-1),t;var l=d(this.a,this.e,Math.sin(s)),u=l*l*l/this.a/this.a*(1-this.es),h=Math.pow(Math.tan(s),2),c=i*this.a/l,p=c*c;e=s-l*Math.tan(s)/u*c*c*(.5-(1+3*h)*c*c/24),n=c*(1-p*(h/3+(1+3*h)*h*p/15))/Math.cos(s)}return t.x=y(n+this.long0),t.y=m(e),t},n.names=["Cassini","Cassini_Soldner","cass"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/imlfn":12,"../common/mlfn":14}],42:[function(t,e,n){var s=t("../common/adjust_lon"),l=t("../common/qsfnz"),i=t("../common/msfnz"),r=t("../common/iqsfnz");n.init=function(){this.sphere||(this.k0=i(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},n.forward=function(t){var e,n,i=t.x,r=t.y,o=s(i-this.long0);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var a=l(this.e,Math.sin(r));e=this.x0+this.a*this.k0*o,n=this.y0+this.a*a*.5/this.k0}return t.x=e,t.y=n,t},n.inverse=function(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=s(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=r(this.e,2*t.y*this.k0/this.a),e=s(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t},n.names=["cea"]},{"../common/adjust_lon":5,"../common/iqsfnz":13,"../common/msfnz":15,"../common/qsfnz":20}],43:[function(t,e,n){var o=t("../common/adjust_lon"),a=t("../common/adjust_lat");n.init=function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},n.forward=function(t){var e=t.x,n=t.y,i=o(e-this.long0),r=a(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t},n.inverse=function(t){var e=t.x,n=t.y;return t.x=o(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=a(this.lat0+(n-this.y0)/this.a),t},n.names=["Equirectangular","Equidistant_Cylindrical","eqc"]},{"../common/adjust_lat":4,"../common/adjust_lon":5}],44:[function(t,e,n){var i=t("../common/e0fn"),r=t("../common/e1fn"),o=t("../common/e2fn"),a=t("../common/e3fn"),s=t("../common/msfnz"),l=t("../common/mlfn"),u=t("../common/adjust_lon"),h=t("../common/adjust_lat"),c=t("../common/imlfn");n.init=function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=i(this.es),this.e1=r(this.es),this.e2=o(this.es),this.e3=a(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=s(this.e,this.sinphi,this.cosphi),this.ml1=l(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=s(this.e,this.sinphi,this.cosphi),this.ml2=l(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=l(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},n.forward=function(t){var e,n=t.x,i=t.y;if(this.sphere)e=this.a*(this.g-i);else{var r=l(this.e0,this.e1,this.e2,this.e3,i);e=this.a*(this.g-r)}var o=this.ns*u(n-this.long0),a=this.x0+e*Math.sin(o),s=this.y0+this.rh-e*Math.cos(o);return t.x=a,t.y=s,t},n.inverse=function(t){var e,n,i,r;t.x-=this.x0,t.y=this.rh-t.y+this.y0,e=0<=this.ns?(n=Math.sqrt(t.x*t.x+t.y*t.y),1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),-1);var o=0;if(0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return r=u(this.long0+o/this.ns),i=h(this.g-n/this.a),t.x=r,t.y=i,t;var a=this.g-n/this.a;return i=c(a,this.e0,this.e1,this.e2,this.e3),r=u(this.long0+o/this.ns),t.x=r,t.y=i,t},n.names=["Equidistant_Conic","eqdc"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/imlfn":12,"../common/mlfn":14,"../common/msfnz":15}],45:[function(t,e,n){var o=Math.PI/4,a=t("../common/srat"),s=Math.PI/2;n.init=function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+o)/(Math.pow(Math.tan(.5*this.lat0+o),this.C)*a(this.e*t,this.ratexp))},n.forward=function(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+o),this.C)*a(this.e*Math.sin(n),this.ratexp))-s,t.x=this.C*e,t},n.inverse=function(t){for(var e=t.x/this.C,n=t.y,i=Math.pow(Math.tan(.5*n+o)/this.K,1/this.C),r=20;0<r&&(n=2*Math.atan(i*a(this.e*Math.sin(t.y),-.5*this.e))-s,!(Math.abs(n-t.y)<1e-14));--r)t.y=n;return r?(t.x=e,t.y=n,t):null},n.names=["gauss"]},{"../common/srat":22}],46:[function(t,e,n){var h=t("../common/adjust_lon"),s=t("../common/asinz");n.init=function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},n.forward=function(t){var e,n,i,r,o,a,s,l=t.x,u=t.y;return i=h(l-this.long0),e=Math.sin(u),n=Math.cos(u),r=Math.cos(i),o=this.sin_p14*e+this.cos_p14*n*r,s=0<o||Math.abs(o)<=1e-10?(a=this.x0+1*this.a*n*Math.sin(i)/o,this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)/o):(a=this.x0+this.infinity_dist*n*Math.sin(i),this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=s,t},n.inverse=function(t){var e,n,i,r,o,a;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=(e=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),i=Math.cos(r),a=s(i*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),h(this.long0+o)):(a=this.phic0,0),t.x=o,t.y=a,t},n.names=["gnom"]},{"../common/adjust_lon":5,"../common/asinz":6}],47:[function(t,e,n){var c=t("../common/adjust_lon");n.init=function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},n.forward=function(t){var e,n,i,r,o,a,s,l=t.x,u=t.y,h=c(l-this.long0);return e=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/e)-this.s45),i=-h*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=s*Math.cos(a)/1,t.x=s*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},n.inverse=function(t){var e,n,i,r,o,a,s,l,u=t.x;t.x=t.y,t.y=u,this.czech||(t.y*=-1,t.x*=-1),a=Math.sqrt(t.x*t.x+t.y*t.y),o=Math.atan2(t.y,t.x),r=o/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,s=e;for(var h=l=0;t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-t.y)<1e-10&&(l=1),s=t.y,h+=1,0===l&&h<15;);return 15<=h?null:t},n.names=["Krovak","krovak"]},{"../common/adjust_lon":5}],48:[function(t,e,n){var f=Math.PI/2,d=Math.PI/4,y=1e-10,m=t("../common/qsfnz"),g=t("../common/adjust_lon");n.S_POLE=1,n.N_POLE=2,n.EQUIT=3,n.OBLIQ=4,n.init=function(){var t,e=Math.abs(this.lat0);if(this.mode=Math.abs(e-f)<y?this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<y?this.EQUIT:this.OBLIQ,0<this.es)switch(this.qp=m(this.e,1),this.mmf=.5/(1-this.es),this.apa=this.authset(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=m(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},n.forward=function(t){var e,n,i,r,o,a,s,l,u,h,c=t.x,p=t.y;if(c=g(c-this.long0),this.sphere){if(o=Math.sin(p),h=Math.cos(p),i=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+h*i:1+this.sinph0*o+this.cosph0*h*i)<=y)return null;n=Math.sqrt(2/n),e=n*h*Math.sin(c),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*h*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(p+this.phi0)<y)return null;n=d-.5*p,n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)),e=n*Math.sin(c),n*=i}}else{switch(u=l=s=0,i=Math.cos(c),r=Math.sin(c),o=Math.sin(p),a=m(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(s=a/this.qp,l=Math.sqrt(1-s*s)),this.mode){case this.OBLIQ:u=1+this.sinb1*s+this.cosb1*l*i;break;case this.EQUIT:u=1+l*i;break;case this.N_POLE:u=f+p,a=this.qp-a;break;case this.S_POLE:u=p-f,a=this.qp+a}if(Math.abs(u)<y)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:u=Math.sqrt(2/u),n=this.mode===this.OBLIQ?this.ymf*u*(this.cosb1*s-this.sinb1*l*i):(u=Math.sqrt(2/(1+l*i)))*s*this.ymf,e=this.xmf*u*l*r;break;case this.N_POLE:case this.S_POLE:0<=a?(e=(u=Math.sqrt(a))*r,n=i*(this.mode===this.S_POLE?u:-u)):e=n=0}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t},n.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,o,a,s,l=t.x/this.a,u=t.y/this.a;if(this.sphere){var h,c=0,p=0;if(h=Math.sqrt(l*l+u*u),1<(n=.5*h))return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(p=Math.sin(n),c=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(h)<=y?0:Math.asin(u*p/h),l*=p,u=c*h;break;case this.OBLIQ:n=Math.abs(h)<=y?this.phi0:Math.asin(c*this.sinph0+u*p*this.cosph0/h),l*=p*this.cosph0,u=(c-Math.sin(n)*this.sinph0)*h;break;case this.N_POLE:u=-u,n=f-n;break;case this.S_POLE:n-=f}e=0!==u||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,u):0}else{if(s=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,u*=this.dd,(a=Math.sqrt(l*l+u*u))<y)return t.x=0,t.y=this.phi0,t;r=2*Math.asin(.5*a/this.rq),i=Math.cos(r),l*=r=Math.sin(r),u=this.mode===this.OBLIQ?(s=i*this.sinb1+u*r*this.cosb1/a,o=this.qp*s,a*this.cosb1*i-u*this.sinb1*r):(s=u*r/a,o=this.qp*s,a*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(u=-u),!(o=l*l+u*u))return t.x=0,t.y=this.phi0,t;s=1-o/this.qp,this.mode===this.S_POLE&&(s=-s)}e=Math.atan2(l,u),n=this.authlat(Math.asin(s),this.apa)}return t.x=g(this.long0+e),t.y=n,t},n.P00=.3333333333333333,n.P01=.17222222222222222,n.P02=.10257936507936508,n.P10=.06388888888888888,n.P11=.0664021164021164,n.P20=.016415012942191543,n.authset=function(t){var e,n=[];return n[0]=t*this.P00,e=t*t,n[0]+=e*this.P01,n[1]=e*this.P10,e*=t,n[0]+=e*this.P02,n[1]+=e*this.P11,n[2]=e*this.P20,n},n.authlat=function(t,e){var n=t+t;return t+e[0]*Math.sin(n)+e[1]*Math.sin(n+n)+e[2]*Math.sin(n+n+n)},n.names=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"]},{"../common/adjust_lon":5,"../common/qsfnz":20}],49:[function(t,e,n){var h=t("../common/msfnz"),c=t("../common/tsfnz"),u=Math.PI/2,s=t("../common/sign"),p=t("../common/adjust_lon"),f=t("../common/phi2z");n.init=function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),n=Math.cos(this.lat1),i=h(this.e,e,n),r=c(this.e,this.lat1,e),o=Math.sin(this.lat2),a=Math.cos(this.lat2),s=h(this.e,o,a),l=c(this.e,this.lat2,o),u=c(this.e,this.lat0,Math.sin(this.lat0));this.ns=1e-10<Math.abs(this.lat1-this.lat2)?Math.log(i/s)/Math.log(r/l):e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},n.forward=function(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=1e-10&&(n=s(n)*(u-2e-10));var i,r,o=Math.abs(Math.abs(n)-u);if(1e-10<o)i=c(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if((o=n*this.ns)<=0)return null;r=0}var a=this.ns*p(e-this.long0);return t.x=this.k0*r*Math.sin(a)+this.x0,t.y=this.k0*(this.rh-r*Math.cos(a))+this.y0,t},n.inverse=function(t){var e,n,i,r,o,a=(t.x-this.x0)/this.k0,s=this.rh-(t.y-this.y0)/this.k0;n=0<this.ns?(e=Math.sqrt(a*a+s*s),1):(e=-Math.sqrt(a*a+s*s),-1);var l=0;if(0!==e&&(l=Math.atan2(n*a,n*s)),0!==e||0<this.ns){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),-9999===(r=f(this.e,i)))return null}else r=-u;return o=p(l/this.ns+this.long0),t.x=o,t.y=r,t},n.names=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/sign":21,"../common/tsfnz":24}],50:[function(t,e,n){function i(t){return t}n.init=function(){},n.forward=i,n.inverse=i,n.names=["longlat","identity"]},{}],51:[function(t,e,n){var i=t("../common/msfnz"),s=Math.PI/2,l=57.29577951308232,u=t("../common/adjust_lon"),h=Math.PI/4,c=t("../common/tsfnz"),a=t("../common/phi2z");n.init=function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.k0=this.sphere?Math.cos(this.lat_ts):i(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k0=this.k?this.k:1)},n.forward=function(t){var e,n,i=t.x,r=t.y;if(90<r*l&&r*l<-90&&180<i*l&&i*l<-180)return null;if(Math.abs(Math.abs(r)-s)<=1e-10)return null;if(this.sphere)e=this.x0+this.a*this.k0*u(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(h+.5*r));else{var o=Math.sin(r),a=c(this.e,r,o);e=this.x0+this.a*this.k0*u(i-this.long0),n=this.y0-this.a*this.k0*Math.log(a)}return t.x=e,t.y=n,t},n.inverse=function(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=s-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var o=Math.exp(-r/(this.a*this.k0));if(-9999===(n=a(this.e,o)))return null}return e=u(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t},n.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/tsfnz":24}],52:[function(t,e,n){var a=t("../common/adjust_lon");n.init=function(){},n.forward=function(t){var e=t.x,n=t.y,i=a(e-this.long0),r=this.x0+this.a*i,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return t.x=r,t.y=o,t},n.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e=a(this.long0+t.x/this.a),n=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=n,t},n.names=["Miller_Cylindrical","mill"]},{"../common/adjust_lon":5}],53:[function(t,e,n){var u=t("../common/adjust_lon");n.init=function(){},n.forward=function(t){for(var e=t.x,n=t.y,i=u(e-this.long0),r=n,o=Math.PI*Math.sin(n);;){var a=-(r+Math.sin(r)-o)/(1+Math.cos(r));if(r+=a,Math.abs(a)<1e-10)break}r/=2,Math.PI/2-Math.abs(n)<1e-10&&(i=0);var s=.900316316158*this.a*i*Math.cos(r)+this.x0,l=1.4142135623731*this.a*Math.sin(r)+this.y0;return t.x=s,t.y=l,t},n.inverse=function(t){var e,n;t.x-=this.x0,t.y-=this.y0,n=t.y/(1.4142135623731*this.a),.999999999999<Math.abs(n)&&(n=.999999999999),e=Math.asin(n);var i=u(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,1<Math.abs(n)&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t},n.names=["Mollweide","moll"]},{"../common/adjust_lon":5}],54:[function(t,e,n){var A=484813681109536e-20;n.iterations=1,n.init=function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},n.forward=function(t){var e,n=t.x,i=t.y,r=i-this.lat0,o=n-this.long0,a=r/A*1e-5,s=o,l=1,u=0;for(e=1;e<=10;e++)l*=a,u+=this.A[e]*l;var h,c=u,p=s,f=1,d=0,y=0,m=0;for(e=1;e<=6;e++)h=d*c+f*p,f=f*c-d*p,d=h,y=y+this.B_re[e]*f-this.B_im[e]*d,m=m+this.B_im[e]*f+this.B_re[e]*d;return t.x=m*this.a+this.x0,t.y=y*this.a+this.y0,t},n.inverse=function(t){var e,n,i=t.x,r=t.y,o=i-this.x0,a=r-this.y0,s=a/this.a,l=o/this.a,u=1,h=0,c=0,p=0;for(e=1;e<=6;e++)n=h*s+u*l,u=u*s-h*l,h=n,c=c+this.C_re[e]*u-this.C_im[e]*h,p=p+this.C_im[e]*u+this.C_re[e]*h;for(var f=0;f<this.iterations;f++){var d,y=c,m=p,g=s,v=l;for(e=2;e<=6;e++)d=m*c+y*p,y=y*c-m*p,m=d,g+=(e-1)*(this.B_re[e]*y-this.B_im[e]*m),v+=(e-1)*(this.B_im[e]*y+this.B_re[e]*m);y=1,m=0;var x=this.B_re[1],_=this.B_im[1];for(e=2;e<=6;e++)d=m*c+y*p,y=y*c-m*p,m=d,x+=e*(this.B_re[e]*y-this.B_im[e]*m),_+=e*(this.B_im[e]*y+this.B_re[e]*m);var w=x*x+_*_;c=(g*x+v*_)/w,p=(v*x-g*_)/w}var b=c,P=p,S=1,C=0;for(e=1;e<=9;e++)S*=b,C+=this.D[e]*S;var M=this.lat0+C*A*1e5,T=this.long0+P;return t.x=T,t.y=M,t},n.names=["New_Zealand_Map_Grid","nzmg"]},{}],55:[function(t,e,n){var y=t("../common/tsfnz"),m=t("../common/adjust_lon"),u=t("../common/phi2z"),f=Math.PI/2,d=Math.PI/4;n.init=function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var t=Math.sin(this.lat0),e=Math.cos(this.lat0),n=this.e*t;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(e,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-n*n);var i,r,o=y(this.e,this.lat0,t),a=this.bl/e*Math.sqrt((1-this.es)/(1-n*n));if(a*a<1&&(a=1),isNaN(this.longc)){var s=y(this.e,this.lat1,Math.sin(this.lat1)),l=y(this.e,this.lat2,Math.sin(this.lat2));this.el=0<=this.lat0?(a+Math.sqrt(a*a-1))*Math.pow(o,this.bl):(a-Math.sqrt(a*a-1))*Math.pow(o,this.bl);var u=Math.pow(s,this.bl),h=Math.pow(l,this.bl);i=this.el/u,r=.5*(i-1/i);var c=(this.el*this.el-h*u)/(this.el*this.el+h*u),p=(h-u)/(h+u),f=m(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(c*Math.tan(.5*this.bl*f)/p)/this.bl,this.long0=m(this.long0);var d=m(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*d)/r),this.alpha=Math.asin(a*Math.sin(this.gamma0))}else i=0<=this.lat0?a+Math.sqrt(a*a-1):a-Math.sqrt(a*a-1),this.el=i*Math.pow(o,this.bl),r=.5*(i-1/i),this.gamma0=Math.asin(Math.sin(this.alpha)/a),this.long0=this.longc-Math.asin(r*Math.tan(this.gamma0))/this.bl;this.uc=this.no_off?0:0<=this.lat0?this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha)):-1*this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha))},n.forward=function(t){var e,n,i,r=t.x,o=t.y,a=m(r-this.long0);if(Math.abs(Math.abs(o)-f)<=1e-10)i=0<o?-1:1,n=this.al/this.bl*Math.log(Math.tan(d+i*this.gamma0*.5)),e=-1*i*f*this.al/this.bl;else{var s=y(this.e,o,Math.sin(o)),l=this.el/Math.pow(s,this.bl),u=.5*(l-1/l),h=.5*(l+1/l),c=Math.sin(this.bl*a),p=(u*Math.sin(this.gamma0)-c*Math.cos(this.gamma0))/h;n=Math.abs(Math.abs(p)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-p)/(1+p))/this.bl,e=Math.abs(Math.cos(this.bl*a))<=1e-10?this.al*this.bl*a:this.al*Math.atan2(u*Math.cos(this.gamma0)+c*Math.sin(this.gamma0),Math.cos(this.bl*a))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+n):(e-=this.uc,t.x=this.x0+n*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-n*Math.sin(this.alpha)),t},n.inverse=function(t){var e,n;this.no_rot?(n=t.y-this.y0,e=t.x-this.x0):(n=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var i=Math.exp(-1*this.bl*n/this.al),r=.5*(i-1/i),o=.5*(i+1/i),a=Math.sin(this.bl*e/this.al),s=(a*Math.cos(this.gamma0)+r*Math.sin(this.gamma0))/o,l=Math.pow(this.el/Math.sqrt((1+s)/(1-s)),1/this.bl);return Math.abs(s-1)<1e-10?(t.x=this.long0,t.y=f):Math.abs(1+s)<1e-10?(t.x=this.long0,t.y=-1*f):(t.y=u(this.e,l),t.x=m(this.long0-Math.atan2(r*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*e/this.al))/this.bl)),t},n.names=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},{"../common/adjust_lon":5,"../common/phi2z":16,"../common/tsfnz":24}],56:[function(t,e,n){var i=t("../common/e0fn"),r=t("../common/e1fn"),o=t("../common/e2fn"),a=t("../common/e3fn"),m=t("../common/adjust_lon"),l=t("../common/adjust_lat"),g=t("../common/mlfn"),v=1e-10,u=t("../common/gN");n.init=function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=i(this.es),this.e1=r(this.es),this.e2=o(this.es),this.e3=a(this.es),this.ml0=this.a*g(this.e0,this.e1,this.e2,this.e3,this.lat0)},n.forward=function(t){var e,n,i,r=t.x,o=t.y,a=m(r-this.long0);if(i=a*Math.sin(o),this.sphere)n=Math.abs(o)<=v?(e=this.a*a,-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(o),this.a*(l(o-this.lat0)+(1-Math.cos(i))/Math.tan(o)));else if(Math.abs(o)<=v)e=this.a*a,n=-1*this.ml0;else{var s=u(this.a,this.e,Math.sin(o))/Math.tan(o);e=s*Math.sin(i),n=this.a*g(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t},n.inverse=function(t){var e,n,i,r,o,a,s,l,u;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=v)e=m(i/this.a+this.long0),n=0;else{var h;for(a=this.lat0+r/this.a,s=i*i/this.a/this.a+a*a,l=a,o=20;o;--o)if(h=Math.tan(l),l+=u=-1*(a*(l*h+1)-l-.5*(l*l+s)*h)/((l-a)/h-1),Math.abs(u)<=v){n=l;break}e=m(this.long0+Math.asin(i*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(r+this.ml0)<=v)n=0,e=m(this.long0+i/this.a);else{var c,p,f,d,y;for(a=(this.ml0+r)/this.a,s=i*i/this.a/this.a+a*a,l=a,o=20;o;--o)if(y=this.e*Math.sin(l),c=Math.sqrt(1-y*y)*Math.tan(l),p=this.a*g(this.e0,this.e1,this.e2,this.e3,l),f=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),d=p/this.a,u=(a*(c*d+1)-d-.5*c*(d*d+s))/(this.es*Math.sin(2*l)*(d*d+s-2*a*d)/(4*c)+(a-d)*(c*f-2/Math.sin(2*l))-f),l-=u,Math.abs(u)<=v){n=l;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=m(this.long0+Math.asin(i*c/this.a)/Math.sin(n))}return t.x=e,t.y=n,t},n.names=["Polyconic","poly"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/mlfn":14}],57:[function(t,e,n){var h=t("../common/adjust_lon"),o=t("../common/adjust_lat"),i=t("../common/pj_enfn"),c=t("../common/pj_mlfn"),a=t("../common/pj_inv_mlfn"),s=Math.PI/2,l=t("../common/asinz");n.init=function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=i(this.es)},n.forward=function(t){var e,n,i=t.x,r=t.y;if(i=h(i-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(r),a=20;a;--a){var s=(this.m*r+Math.sin(r)-o)/(this.m+Math.cos(r));if(r-=s,Math.abs(s)<1e-10)break}else r=1!==this.n?Math.asin(this.n*Math.sin(r)):r;e=this.a*this.C_x*i*(this.m+Math.cos(r)),n=this.a*this.C_y*r}else{var l=Math.sin(r),u=Math.cos(r);n=this.a*c(r,l,u,this.en),e=this.a*i*u/Math.sqrt(1-this.es*l*l)}return t.x=e,t.y=n,t},n.inverse=function(t){var e,n,i,r;return t.x-=this.x0,i=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,i/=this.C_x*(this.m+Math.cos(e)),this.m?e=l((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=l(Math.sin(e)/this.n)),i=h(i+this.long0),e=o(e)):(e=a(t.y/this.a,this.es,this.en),(r=Math.abs(e))<s?(r=Math.sin(e),n=this.long0+t.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(e)),i=h(n)):r-1e-10<s&&(i=this.long0)),t.x=i,t.y=e,t},n.names=["Sinusoidal","sinu"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/asinz":6,"../common/pj_enfn":17,"../common/pj_inv_mlfn":18,"../common/pj_mlfn":19}],58:[function(t,e,n){n.init=function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=this.rf,r=1/i,o=2*r-Math.pow(r,2),a=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(e,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+t/2)),u=Math.log((1+a*e)/(1-a*e));this.K=s-this.alpha*l+this.alpha*a/2*u},n.forward=function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,t.x=this.R*a+this.x0,t},n.inverse=function(t){for(var e=t.x-this.x0,n=t.y-this.y0,i=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),a=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),s=this.lambda0+a/this.alpha,l=0,u=o,h=-1e3,c=0;1e-7<Math.abs(u-h);){if(20<++c)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),h=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=u,t},n.names=["somerc"]},{}],59:[function(t,e,n){var p=Math.PI/2,f=1e-10,i=t("../common/sign"),r=t("../common/msfnz"),d=t("../common/tsfnz"),l=t("../common/phi2z"),y=t("../common/adjust_lon");n.ssfn_=function(t,e,n){return e*=n,Math.tan(.5*(p+t))*Math.pow((1-e)/(1+e),.5*n)},n.init=function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=f&&(this.k0=.5*(1+i(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=f&&(this.con=0<this.lat0?1:-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=f&&(this.k0=.5*this.cons*r(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/d(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=r(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-p,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},n.forward=function(t){var e,n,i,r,o,a,s=t.x,l=t.y,u=Math.sin(l),h=Math.cos(l),c=y(s-this.long0);return Math.abs(Math.abs(s-this.long0)-Math.PI)<=f&&Math.abs(l+this.lat0)<=f?(t.x=NaN,t.y=NaN):this.sphere?(e=2*this.k0/(1+this.sinlat0*u+this.coslat0*h*Math.cos(c)),t.x=this.a*e*h*Math.sin(c)+this.x0,t.y=this.a*e*(this.coslat0*u-this.sinlat0*h*Math.cos(c))+this.y0):(n=2*Math.atan(this.ssfn_(l,u,this.e))-p,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=f?(o=d(this.e,l*this.con,this.con*u),a=2*this.a*this.k0*o/this.cons,t.x=this.x0+a*Math.sin(s-this.long0),t.y=this.y0-this.con*a*Math.cos(s-this.long0)):(Math.abs(this.sinlat0)<f?(e=2*this.a*this.k0/(1+r*Math.cos(c)),t.y=e*i):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(c))),t.y=e*(this.cosX0*i-this.sinX0*r*Math.cos(c))+this.y0),t.x=e*r*Math.sin(c)+this.x0)),t},n.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,o,a=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var s=2*Math.atan(a/(.5*this.a*this.k0));return e=this.long0,n=this.lat0,a<=f||(n=Math.asin(Math.cos(s)*this.sinlat0+t.y*Math.sin(s)*this.coslat0/a),e=y(Math.abs(this.coslat0)<f?0<this.lat0?this.long0+Math.atan2(t.x,-1*t.y):this.long0+Math.atan2(t.x,t.y):this.long0+Math.atan2(t.x*Math.sin(s),a*this.coslat0*Math.cos(s)-t.y*this.sinlat0*Math.sin(s)))),t.x=e,t.y=n,t}if(Math.abs(this.coslat0)<=f){if(a<=f)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=a*this.cons/(2*this.a*this.k0),n=this.con*l(this.e,i),e=this.con*y(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else r=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,a<=f?o=this.X0:(o=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/a),e=y(this.long0+Math.atan2(t.x*Math.sin(r),a*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)))),n=-1*l(this.e,Math.tan(.5*(p+o)));return t.x=e,t.y=n,t},n.names=["stere"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/sign":21,"../common/tsfnz":24}],60:[function(t,e,n){var s=t("./gauss"),l=t("../common/adjust_lon");n.init=function(){s.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},n.forward=function(t){var e,n,i,r;return t.x=l(t.x-this.long0),s.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),i=Math.cos(t.x),r=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*i),t.x=r*n*Math.sin(t.x),t.y=r*(this.cosc0*e-this.sinc0*n*i),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},n.inverse=function(t){var e,n,i,r,o;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=Math.sqrt(t.x*t.x+t.y*t.y)){var a=2*Math.atan2(o,this.R2);e=Math.sin(a),n=Math.cos(a),r=Math.asin(n*this.sinc0+t.y*e*this.cosc0/o),i=Math.atan2(t.x*e,o*this.cosc0*n-t.y*this.sinc0*e)}else r=this.phic0,i=0;return t.x=i,t.y=r,s.inverse.apply(this,[t]),t.x=l(t.x+this.long0),t},n.names=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"]},{"../common/adjust_lon":5,"./gauss":45}],61:[function(t,e,n){var i=t("../common/e0fn"),r=t("../common/e1fn"),o=t("../common/e2fn"),a=t("../common/e3fn"),g=t("../common/mlfn"),S=t("../common/adjust_lon"),C=Math.PI/2,M=t("../common/sign"),T=t("../common/asinz");n.init=function(){this.e0=i(this.es),this.e1=r(this.es),this.e2=o(this.es),this.e3=a(this.es),this.ml0=this.a*g(this.e0,this.e1,this.e2,this.e3,this.lat0)},n.forward=function(t){var e,n,i,r=t.x,o=t.y,a=S(r-this.long0),s=Math.sin(o),l=Math.cos(o);if(this.sphere){var u=l*Math.sin(a);if(Math.abs(Math.abs(u)-1)<1e-10)return 93;n=.5*this.a*this.k0*Math.log((1+u)/(1-u)),e=Math.acos(l*Math.cos(a)/Math.sqrt(1-u*u)),o<0&&(e=-e),i=this.a*this.k0*(e-this.lat0)}else{var h=l*a,c=Math.pow(h,2),p=this.ep2*Math.pow(l,2),f=Math.tan(o),d=Math.pow(f,2);e=1-this.es*Math.pow(s,2);var y=this.a/Math.sqrt(e),m=this.a*g(this.e0,this.e1,this.e2,this.e3,o);n=this.k0*y*h*(1+c/6*(1-d+p+c/20*(5-18*d+Math.pow(d,2)+72*p-58*this.ep2)))+this.x0,i=this.k0*(m-this.ml0+y*f*c*(.5+c/24*(5-d+9*p+4*Math.pow(p,2)+c/30*(61-58*d+Math.pow(d,2)+600*p-330*this.ep2))))+this.y0}return t.x=n,t.y=i,t},n.inverse=function(t){var e,n,i,r,o,a;if(this.sphere){var s=Math.exp(t.x/(this.a*this.k0)),l=.5*(s-1/s),u=this.lat0+t.y/(this.a*this.k0),h=Math.cos(u);e=Math.sqrt((1-h*h)/(1+l*l)),o=T(e),u<0&&(o=-o),a=0==l&&0===h?this.long0:S(Math.atan2(l,h)+this.long0)}else{var c=t.x-this.x0,p=t.y-this.y0;for(e=(this.ml0+p/this.k0)/this.a,n=e,r=0;i=(e+this.e1*Math.sin(2*n)-this.e2*Math.sin(4*n)+this.e3*Math.sin(6*n))/this.e0-n,n+=i,!(Math.abs(i)<=1e-10);r++)if(6<=r)return 95;if(Math.abs(n)<C){var f=Math.sin(n),d=Math.cos(n),y=Math.tan(n),m=this.ep2*Math.pow(d,2),g=Math.pow(m,2),v=Math.pow(y,2),x=Math.pow(v,2);e=1-this.es*Math.pow(f,2);var _=this.a/Math.sqrt(e),w=_*(1-this.es)/e,b=c/(_*this.k0),P=Math.pow(b,2);o=n-_*y*P/w*(.5-P/24*(5+3*v+10*m-4*g-9*this.ep2-P/30*(61+90*v+298*m+45*x-252*this.ep2-3*g))),a=S(this.long0+b*(1-P/6*(1+2*v+m-P/20*(5-2*m+28*v-3*g+8*this.ep2+24*x)))/d)}else o=C*M(p),a=this.long0}return t.x=a,t.y=o,t},n.names=["Transverse_Mercator","Transverse Mercator","tmerc"]},{"../common/adjust_lon":5,"../common/asinz":6,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/mlfn":14,"../common/sign":21}],62:[function(t,e,n){var i=t("./tmerc");n.dependsOn="tmerc",n.init=function(){this.zone&&(this.lat0=0,this.long0=.017453292519943295*(6*Math.abs(this.zone)-183),this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,i.init.apply(this),this.forward=i.forward,this.inverse=i.inverse)},n.names=["Universal Transverse Mercator System","utm"]},{"./tmerc":61}],63:[function(t,e,n){var g=t("../common/adjust_lon"),v=Math.PI/2,x=t("../common/asinz");n.init=function(){this.R=this.a},n.forward=function(t){var e,n,i=t.x,r=t.y,o=g(i-this.long0);Math.abs(r)<=1e-10&&(e=this.x0+this.R*o,n=this.y0);var a=x(2*Math.abs(r/Math.PI));(Math.abs(o)<=1e-10||Math.abs(Math.abs(r)-v)<=1e-10)&&(e=this.x0,n=0<=r?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var s=.5*Math.abs(Math.PI/o-o/Math.PI),l=s*s,u=Math.sin(a),h=Math.cos(a),c=h/(u+h-1),p=c*c,f=c*(2/u-1),d=f*f,y=Math.PI*this.R*(s*(c-d)+Math.sqrt(l*(c-d)*(c-d)-(d+l)*(p-d)))/(d+l);o<0&&(y=-y),e=this.x0+y;var m=l+c;return y=Math.PI*this.R*(f*m-s*Math.sqrt((d+l)*(1+l)-m*m))/(d+l),n=0<=r?this.y0+y:this.y0-y,t.x=e,t.y=n,t},n.inverse=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f;return t.x-=this.x0,t.y-=this.y0,c=Math.PI*this.R,i=t.x/c,r=t.y/c,o=i*i+r*r,a=-Math.abs(r)*(1+o),f=r*r/(l=-2*a+1+2*r*r+o*o)+(2*(s=a-2*r*r+i*i)*s*s/l/l/l-9*a*s/l/l)/27,u=(a-s*s/3/l)/l,h=2*Math.sqrt(-u/3),c=3*f/u/h,1<Math.abs(c)&&(c=0<=c?1:-1),p=Math.acos(c)/3,n=0<=t.y?(-h*Math.cos(p+Math.PI/3)-s/3/l)*Math.PI:-(-h*Math.cos(p+Math.PI/3)-s/3/l)*Math.PI,e=Math.abs(i)<1e-10?this.long0:g(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(i*i-r*r)+o*o))/2/i),t.x=e,t.y=n,t},n.names=["Van_der_Grinten_I","VanDerGrinten","vandg"]},{"../common/adjust_lon":5,"../common/asinz":6}],64:[function(t,e){var a=.017453292519943295,s=57.29577951308232,l=t("./datum_transform"),u=t("./adjust_axis"),h=t("./Proj"),c=t("./common/toPoint");e.exports=function t(e,n,i){function r(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}var o;return Array.isArray(i)&&(i=c(i)),e.datum&&n.datum&&(r(e,n)||r(n,e))&&(o=new h("WGS84"),t(e,o,i),e=o),"enu"!==e.axis&&u(e,!1,i),"longlat"===e.projName?(i.x*=a,i.y*=a):(e.to_meter&&(i.x*=e.to_meter,i.y*=e.to_meter),e.inverse(i)),e.from_greenwich&&(i.x+=e.from_greenwich),i=l(e.datum,n.datum,i),n.from_greenwich&&(i.x-=n.from_greenwich),"longlat"===n.projName?(i.x*=s,i.y*=s):(n.forward(i),n.to_meter&&(i.x/=n.to_meter,i.y/=n.to_meter)),"enu"!==n.axis&&u(n,!0,i),i}},{"./Proj":2,"./adjust_axis":3,"./common/toPoint":23,"./datum_transform":30}],65:[function(t,e){function i(t,e,n){t[e]=n.map(function(t){var e={};return a(t,e),e}).reduce(function(t,e){return l(t,e)},{})}function a(t,e){var n;return Array.isArray(t)?("PARAMETER"===(n=t.shift())&&(n=t.shift()),void(1===t.length?Array.isArray(t[0])?(e[n]={},a(t[0],e[n])):e[n]=t[0]:t.length?"TOWGS84"===n?e[n]=t:(e[n]={},-1<["UNIT","PRIMEM","VERT_DATUM"].indexOf(n)?(e[n]={name:t[0].toLowerCase(),convert:t[1]},3===t.length&&(e[n].auth=t[2])):"SPHEROID"===n?(e[n]={name:t[0],a:t[1],rf:t[2]},4===t.length&&(e[n].auth=t[3])):-1<["GEOGCS","GEOCCS","DATUM","VERT_CS","COMPD_CS","LOCAL_CS","FITTED_CS","LOCAL_DATUM"].indexOf(n)?(t[0]=["name",t[0]],i(e,n,t)):t.every(function(t){return Array.isArray(t)})?i(e,n,t):a(t,e[n])):e[n]=!0)):void(e[t]=!0)}function s(t){return t*n}var n=.017453292519943295,l=t("./extend");e.exports=function(t,e){var n=JSON.parse((","+t).replace(/\s*\,\s*([A-Z_0-9]+?)(\[)/g,',["$1",').slice(1).replace(/\s*\,\s*([A-Z_0-9]+?)\]/g,',"$1"]')),i=n.shift(),r=n.shift();n.unshift(["name",r]),n.unshift(["type",i]),n.unshift("output");var o={};return a(n,o),function(o){function t(t){var e=o.to_meter||1;return parseFloat(t,10)*e}function e(t){return e=o,i=(n=t)[0],r=n[1],void(!(i in e)&&r in e&&(e[i]=e[r],3===n.length&&(e[i]=n[2](e[i]))));var e,n,i,r}"GEOGCS"===o.type?o.projName="longlat":"LOCAL_CS"===o.type?(o.projName="identity",o.local=!0):o.projName="object"==typeof o.PROJECTION?Object.keys(o.PROJECTION)[0]:o.PROJECTION,o.UNIT&&(o.units=o.UNIT.name.toLowerCase(),"metre"===o.units&&(o.units="meter"),o.UNIT.convert&&(o.to_meter=parseFloat(o.UNIT.convert,10))),o.GEOGCS&&(o.datumCode=o.GEOGCS.DATUM?o.GEOGCS.DATUM.name.toLowerCase():o.GEOGCS.name.toLowerCase(),"d_"===o.datumCode.slice(0,2)&&(o.datumCode=o.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==o.datumCode&&"new_zealand_1949"!==o.datumCode||(o.datumCode="nzgd49"),"wgs_1984"===o.datumCode&&("Mercator_Auxiliary_Sphere"===o.PROJECTION&&(o.sphere=!0),o.datumCode="wgs84"),"_ferro"===o.datumCode.slice(-6)&&(o.datumCode=o.datumCode.slice(0,-6)),"_jakarta"===o.datumCode.slice(-8)&&(o.datumCode=o.datumCode.slice(0,-8)),~o.datumCode.indexOf("belge")&&(o.datumCode="rnb72"),o.GEOGCS.DATUM&&o.GEOGCS.DATUM.SPHEROID&&(o.ellps=o.GEOGCS.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===o.ellps.toLowerCase().slice(0,13)&&(o.ellps="intl"),o.a=o.GEOGCS.DATUM.SPHEROID.a,o.rf=parseFloat(o.GEOGCS.DATUM.SPHEROID.rf,10)),~o.datumCode.indexOf("osgb_1936")&&(o.datumCode="osgb36")),o.b&&!isFinite(o.b)&&(o.b=o.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",s],["longitude_of_center","Longitude_Of_Center"],["longc","longitude_of_center",s],["x0","false_easting",t],["y0","false_northing",t],["long0","central_meridian",s],["lat0","latitude_of_origin",s],["lat0","standard_parallel_1",s],["lat1","standard_parallel_1",s],["lat2","standard_parallel_2",s],["alpha","azimuth",s],["srsCode","name"]].forEach(e),o.long0||!o.longc||"Albers_Conic_Equal_Area"!==o.PROJECTION&&"Lambert_Azimuthal_Equal_Area"!==o.PROJECTION||(o.long0=o.longc)}(o.output),l(e,o.output)}},{"./extend":33}],66:[function(t,e,n){function v(t){return t*(Math.PI/180)}function P(t){return t/Math.PI*180}function i(t,e){var n=""+t.easting,i=""+t.northing;return t.zoneNumber+t.zoneLetter+function(t,e,n){var l=x(n),i=Math.floor(t/1e5),r=Math.floor(e/1e5)%20;return function(t,e){var n=l-1,i=w.charCodeAt(n),r=b.charCodeAt(n),o=i+t-1,a=r+e,s=!1;return A<o&&(o=o-A+S-1,s=!0),(o===C||i<C&&C<o||(C<o||i<C)&&s)&&o++,(o===M||i<M&&M<o||(M<o||i<M)&&s)&&++o===C&&o++,A<o&&(o=o-A+S-1),s=T<a&&(a=a-T+S-1,!0),(a===C||r<C&&C<a||(C<a||r<C)&&s)&&a++,(a===M||r<M&&M<a||(M<a||r<M)&&s)&&++a===C&&a++,T<a&&(a=a-T+S-1),String.fromCharCode(o)+String.fromCharCode(a)}(i,r)}(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function x(t){var e=t%o;return 0===e&&(e=o),e}function r(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,i=null,r="",o=0;!/[A-Z]/.test(e=t.charAt(o));){if(2<=o)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var a=parseInt(r,10);if(0===o||n<o+3)throw"MGRSPoint bad conversion from: "+t;var s=t.charAt(o++);if(s<="A"||"B"===s||"Y"===s||"Z"<=s||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+t;i=t.substring(o,o+=2);for(var l=x(a),u=function(t,e){for(var n=w.charCodeAt(e-1),i=1e5,r=!1;n!==t.charCodeAt(0);){if(++n===C&&n++,n===M&&n++,A<n){if(r)throw"Bad character: "+t;n=S,r=!0}i+=1e5}return i}(i.charAt(0),l),h=function(t,e){if("V"<t)throw"MGRSPoint given invalid Northing "+t;for(var n=b.charCodeAt(e-1),i=0,r=!1;n!==t.charCodeAt(0);){if(++n===C&&n++,n===M&&n++,T<n){if(r)throw"Bad character: "+t;n=S,r=!0}i+=1e5}return i}(i.charAt(1),l);h<_(s);)h+=2e6;var c=n-o;if(c%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var p,f,d,y=c/2,m=0,g=0;return 0<y&&(p=1e5/Math.pow(10,y),f=t.substring(o,o+y),m=parseFloat(f)*p,d=t.substring(o+y),g=parseFloat(d)*p),{easting:m+u,northing:g+h,zoneLetter:s,zoneNumber:a,accuracy:p}}function _(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(0<=e)return e;throw"Invalid zone letter: "+t}var o=6,w="AJSAJS",b="AFAFAF",S=65,C=73,M=79,T=86,A=90;n.forward=function(t,e){return e=e||5,i(function(t){var e,n,i,r,o,a,s,l,u=t.lat,h=t.lon,c=.00669438,p=v(u),f=v(h);l=Math.floor((h+180)/6)+1,180===h&&(l=60),56<=u&&u<64&&3<=h&&h<12&&(l=32),72<=u&&u<84&&(0<=h&&h<9?l=31:9<=h&&h<21?l=33:21<=h&&h<33?l=35:33<=h&&h<42&&(l=37)),s=v(6*(l-1)-180+3),e=c/(1-c),n=6378137/Math.sqrt(1-c*Math.sin(p)*Math.sin(p)),i=Math.tan(p)*Math.tan(p),r=e*Math.cos(p)*Math.cos(p),o=Math.cos(p)*(f-s),a=6378137*(.9983242984503243*p-.002514607064228144*Math.sin(2*p)+2639046602129982e-21*Math.sin(4*p)-35*c*c*c/3072*Math.sin(6*p));var d,y,m=.9996*n*(o+(1-i+r)*o*o*o/6+(5-18*i+i*i+72*r-58*e)*o*o*o*o*o/120)+5e5,g=.9996*(a+n*Math.tan(p)*(o*o/2+(5-i+9*r+4*r*r)*o*o*o*o/24+(61-58*i+i*i+600*r-330*e)*o*o*o*o*o*o/720));return u<0&&(g+=1e7),{northing:Math.round(g),easting:Math.round(m),zoneNumber:l,zoneLetter:(d=u,y="Z",d<=84&&72<=d?y="X":d<72&&64<=d?y="W":d<64&&56<=d?y="V":d<56&&48<=d?y="U":d<48&&40<=d?y="T":d<40&&32<=d?y="S":d<32&&24<=d?y="R":d<24&&16<=d?y="Q":d<16&&8<=d?y="P":d<8&&0<=d?y="N":d<0&&-8<=d?y="M":d<-8&&-16<=d?y="L":d<-16&&-24<=d?y="K":d<-24&&-32<=d?y="J":d<-32&&-40<=d?y="H":d<-40&&-48<=d?y="G":d<-48&&-56<=d?y="F":d<-56&&-64<=d?y="E":d<-64&&-72<=d?y="D":d<-72&&-80<=d&&(y="C"),y)}}({lat:t[1],lon:t[0]}),e)},n.inverse=function(t){var e=function t(e){var n=e.northing,i=e.easting,r=e.zoneLetter,o=e.zoneNumber;if(o<0||60<o)return null;var a,s,l,u,h,c,p,f,d,y=.00669438,m=(1-Math.sqrt(1-y))/(1+Math.sqrt(1-y)),g=i-5e5,v=n;r<"N"&&(v-=1e7),p=6*(o-1)-180+3,a=y/(1-y),d=(f=v/.9996/6367449.145945056)+(3*m/2-27*m*m*m/32)*Math.sin(2*f)+(21*m*m/16-55*m*m*m*m/32)*Math.sin(4*f)+151*m*m*m/96*Math.sin(6*f),s=6378137/Math.sqrt(1-y*Math.sin(d)*Math.sin(d)),l=Math.tan(d)*Math.tan(d),u=a*Math.cos(d)*Math.cos(d),h=6378137*(1-y)/Math.pow(1-y*Math.sin(d)*Math.sin(d),1.5),c=g/(.9996*s);var x=d-s*Math.tan(d)/h*(c*c/2-(5+3*l+10*u-4*u*u-9*a)*c*c*c*c/24+(61+90*l+298*u+45*l*l-252*a-3*u*u)*c*c*c*c*c*c/720);x=P(x);var _,w=(c-(1+2*l+u)*c*c*c/6+(5-2*u+28*l-3*u*u+8*a+24*l*l)*c*c*c*c*c/120)/Math.cos(d);if(w=p+P(w),e.accuracy){var b=t({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});_={top:b.lat,right:b.lon,bottom:x,left:w}}else _={lat:x,lon:w};return _}(r(t.toUpperCase()));return[e.left,e.bottom,e.right,e.top]},n.toPoint=function(t){var e=n.inverse(t);return[(e[2]+e[0])/2,(e[3]+e[1])/2]}},{}],67:[function(t,e){e.exports={name:"proj4",version:"2.2.1",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{test:"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},author:"",license:"MIT",jam:{main:"dist/proj4.js",include:["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},devDependencies:{"grunt-cli":"~0.1.13",grunt:"~0.4.2","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0",chai:"~1.8.1",mocha:"~1.17.1","grunt-mocha-phantomjs":"~0.4.0",browserify:"~3.24.5","grunt-browserify":"~1.3.0","grunt-contrib-uglify":"~0.3.2",curl:"git://github.com/cujojs/curl.git",istanbul:"~0.2.4",tin:"~0.4.0"},dependencies:{mgrs:"0.0.0"}}},{}],"./includedProjections":[function(t,e){e.exports=t("gWUPNW")},{}],gWUPNW:[function(t,e){var n=[t("./lib/projections/tmerc"),t("./lib/projections/utm"),t("./lib/projections/sterea"),t("./lib/projections/stere"),t("./lib/projections/somerc"),t("./lib/projections/omerc"),t("./lib/projections/lcc"),t("./lib/projections/krovak"),t("./lib/projections/cass"),t("./lib/projections/laea"),t("./lib/projections/aea"),t("./lib/projections/gnom"),t("./lib/projections/cea"),t("./lib/projections/eqc"),t("./lib/projections/poly"),t("./lib/projections/nzmg"),t("./lib/projections/mill"),t("./lib/projections/sinu"),t("./lib/projections/moll"),t("./lib/projections/eqdc"),t("./lib/projections/vandg"),t("./lib/projections/aeqd")];e.exports=function(e){n.forEach(function(t){e.Proj.projections.add(t)})}},{"./lib/projections/aea":39,"./lib/projections/aeqd":40,"./lib/projections/cass":41,"./lib/projections/cea":42,"./lib/projections/eqc":43,"./lib/projections/eqdc":44,"./lib/projections/gnom":46,"./lib/projections/krovak":47,"./lib/projections/laea":48,"./lib/projections/lcc":49,"./lib/projections/mill":52,"./lib/projections/moll":53,"./lib/projections/nzmg":54,"./lib/projections/omerc":55,"./lib/projections/poly":56,"./lib/projections/sinu":57,"./lib/projections/somerc":58,"./lib/projections/stere":59,"./lib/projections/sterea":60,"./lib/projections/tmerc":61,"./lib/projections/utm":62,"./lib/projections/vandg":63}]},{},[35])(35)},function(t,e,n){var i,r;i=[n(0),n(26),n(20),n(8),n(17),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){(t=t||{}).cursor=t.cursor||"crosshair",e.call(this,t),this.layerId=t.layerId,this.drawLayer=t.drawLayer,this.editGraphic=null,this.map=null,this.currentElement=null,this.editElement=null,this.selectElement=null,this.mousedownFlag=!1}return t.extend2(l,e),l.prototype.deactivate=function(){l.prototype.uber.deactivate.call(this),this.stopEdit()},l.prototype.onCreate=function(t){l.prototype.uber.onCreate(t),this.map=t.map},l.prototype.onClick=function(t){l.prototype.uber.onClick.call(this,t),t&&t.layer&&(this.layerId=t.layer.id)},l.prototype.switch=function(t){this.editGraphic&&this.stopEdit(),this.currentElement=t,this.drawLayer.add(t);var e=new n({layer:this.drawLayer,element:t});this.editGraphic=e,this.drawLayer.selectEdit(e)},l.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.mousedownFlag=!0;var s=this.map.findLayer(this.layerId);if(s){var l=s.hitTest(n,i),u=this.drawLayer.hitTest(n,i);this.canEdit(l,u)?this.beginEdit(l,u):(u||this.stopEdit(),this.map.stopDragPan(),this.map.resumeDragPan(),this.map.setCursor("crosshair"))}},l.prototype.onMouseUp=function(t,e,n,i,r,o,a,s){this.mousedownFlag=!1,this.map.stopDragPan(),this.map.resumeDragPan(),this.map.setCursor("crosshair"),this.editElement=null},l.prototype.onMouseMove=function(t,e,n,i,r,o,a){if(this.mousedownFlag&&this.editElement){var s=this.editElement.geometry;s.x=r,s.y=o,this.currentElement=this.updateGeometry(s,this.currentElement),this.drawLayer.update(this.currentElement),this.onDrawingEdit(this.currentElement)}},l.prototype.updateGeometry=function(t,e){},l.prototype.beginEdit=function(t,e){if(!t)if(e){var n=e.element;n!==this.currentElement&&(this.map.stopDragPan(),this.editElement=n)}else this.stopEdit()},l.prototype.stopEdit=function(){this.map.stopDragPan(),this.map.resumeDragPan(),this.onEndDraw(this.selectElement),this.drawLayer.clear(),this.currentElement=null,this.selectElement=null,this.editElement=null,this.editGraphic=null,this.mousedownFlag=!1},l.prototype.canEdit=function(t,e){return!0},l.prototype.onDrawingEdit=function(t){},l.prototype.onEndDraw=function(t){},l.prototype.createElement=function(t){var e=null;switch(t.geometry.getGeometryType()){case i.Point:e=this.symbolTable.find("PointFeatureSelectEditSymbol");break;case i.Polyline:case i.LineString:e=this.symbolTable.find("TrafficDamage3");break;case i.Polygon:case i.Circle:case i.Ellipse:case i.Envelope:e=this.symbolTable.find("PolygonQueryDraw")}return new r({geometry:t.geometry,symbol:e})},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.do=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(111),n(9),n(0),n(19),n(23),n,e,t],void 0===(r=function(i,l,t,n,r,e,o,a){function s(t){var s=this,e=t||{};n.call(this,e),this.opacity=void 0===e.opacity?1:e.opacity,this.visible=void 0===e.visible||e.visible,this.projection=e.projection||"EPSG:4490",this.clientId=e.clientId,this.clientSecret=e.clientSecret,e.http?this._restHttp=e.http:this._restHttp=new r({client_id:e.clientId,client_secret:e.clientSecret}),this._token=this._restHttp.getToken(),this._transformRequest=null,this._layer=new l.layer.Layer({zIndex:this.zIndex,render:function(t){var e=s._glMap.getCanvas(),n=t.viewState,i=s._layer.getVisible();e.style.display=i?"block":"none";var r=s._layer.getOpacity();e.style.opacity=r;var o=n.rotation;o&&s._glMap.rotateTo(180*-o/Math.PI,{animate:!1});var a=n.center;return"EPSG:3857"===s.projection&&(a=l.proj.toLonLat(a)),s._glMap.jumpTo({center:a,zoom:n.zoom-1,animate:!1}),s._glMap._frame&&(s._glMap._frame.cancel(),s._glMap._frame=null),s._glMap._render(),e}}),this.setOpacity(this.opacity)}return t.extend2(s,n),s.prototype.init=function(){var t=this.map.map,e=t.getView().getCenter();"EPSG:3857"===this.projection&&(e=l.proj.toLonLat(e));var n=t.getTargetElement();this._glMap=new i.Map({style:this.glStyle,attributionControl:!1,boxZoom:!1,center:e,container:n,doubleClickZoom:!1,dragPan:!1,dragRotate:!1,interactive:!1,keyboard:!1,pitchWithRotate:!1,scrollZoom:!1,touchZoomRotate:!1,epsg:this.projection,transformRequest:this._transformRequest})},s.prototype.getLayerId=function(){return this.id},s.prototype.getZIndex=function(){return this.zIndex},s.prototype.setZIndex=function(t){this.zIndex=t,this._layer.setZIndex(t)},s.prototype.getLayerName=function(){return this.name},s.prototype.getLayerType=function(){},s.prototype.unInit=function(){this._glMap&&this._glMap.remove&&this._glMap.remove()},s.prototype.getLayer=function(){return this._layer},s.prototype.setVisible=function(t){this.visible=t,this._layer.setVisible(t)},s.prototype.setOpacity=function(t){this._layer.setOpacity(t)},s.prototype.clear=function(t){this._layer.setVisible(!1)},s.prototype.on=function(t,e){"visible"===t||"opacity"===t?s.prototype.uber.on.call(this,t,e):this.map.on(t,e)},s.prototype.un=function(t,e){"visible"===t||"opacity"===t?s.prototype.uber.un.call(this,t,e):this.map.un(t,e)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(1),n(2),n(29),n(74),n(59),n(3),n(48),n(5),n(24),n(8),n(47),n(58),n,e,t],void 0===(r=function(p,a,l,u,h,t,f,d,c,e,n,y,i,r,o){var s=Math.PI/180,m=m||function(){for(var t=[],e=0;e<=360;++e){var n=s*e;t.push([Math.sin(n),Math.cos(n)])}return t}();function g(t,e){return new p({x:t[0],y:t[1],spatialReference:e})}function v(t,e){for(var n=new a({spatialReference:e}),i=0,r=t.length;i<r;++i){var o=t[i];n.addPoint(g(o,e))}return n}function x(t,e){for(var n=new f({spatialReference:e}),i=0,r=t.length;i<r;++i){var o=t[i];n.addPoint(g(o,e))}return n}function _(t,e){var n=/\([^\(\)]*\)/g,i=S(t).match(n);if(0<i.length){var r=new d({spatialReference:e});n=/\s*-?\d+[.]?\d*\s+-?\d+[.]?\d*\s*/g;for(var o=0,a=i.length;o<a;++o){var s=i[o].match(n),l=new f;r.addGeometry(l);for(var u=0,h=s.length;u<h;++u){var c=s[u].split(" ");l.addPoint(new p({x:parseFloat(c[0]),y:parseFloat(c[1]),spatialReference:e}))}}return r}}function w(t){for(var e="",n=0,i=t.length;n<i;++n){var r=t[n];e+=","+"{0} {1}".replace("{0}",r.x).replace("{1}",r.y)}return"({0})".replace("{0}",e.substr(1))}function b(t){for(var e="",n=t.getGeometryCount(),i=0;i<n;++i){e+=","+w(t.getGeometry(0).points)}return"polygon({0})".replace("{0}",e.substr(1))}function P(t,e,n){for(var i=[],r=0,o=m.length;r<o;++r){var a=m[r];i.push({x:t.x+e*a[1],y:t.y+n*a[0]})}a=w(i);return"polygon({0})".replace("{0}",a)}function S(t){return t.replace(/\s*,\s*/g,",")}function C(){}function M(t,e){for(var n=new d({spatialReference:e}),i=0,r=t.length;i<r;++i)n.addGeometry(x(t[i],e));return n}return C.fromJson=function(t,e){if(null==t||""==t)return null;var n=t.type,i=t.coordinates;switch(n){case"Point":return g(i,e);case"LineString":return function(t,e){for(var n=new l({spatialReference:e}),i=0,r=t.length;i<r;++i){var o=t[i];n.addPoint(g(o,e))}return n}(i,e);case"Polygon":return M(i,e);case"MultiPoint":return function(t,e){for(var n=new u({spatialReference:e}),i=0,r=t.length;i<r;++i)n.addGeometry(g(t[i],e));return n}(i,e);case"MultiLineString":return function(t,e){for(var n=new h({spatialReference:e}),i=0,r=t.length;i<r;++i)n.addGeometry(v(t[i],e));return n}(i,e);case"MultiPolygon":return function(t,e){for(var n=new c({spatialReference:e}),i=0,r=t.length;i<r;++i)n.addGeometry(M(t[i],e));return n}(i,e);case"Circle":break;case"GeometryCollection":for(var r=t.geometries,o=new y({spatialReference:e}),a=0,s=r.length;a<s;a++)o.addGeometry(this.fromJson(i[a],e));return o}},C.toWKT=function(t){if(!t)return"";switch(t.getGeometryType()){case e.Point:return function(t){return"point({0} {1})".replace("{0}",t.x).replace("{1}",t.y)}(t);case e.Polyline:return function(t){var e=t.getGeometryCount();if(1==e){var n=w(t.getGeometry(0).points);return"linestring{0}".replace("{0}",n)}if(1<e){for(var i="",r=0;r<e;++r){i+=","+(n=w(t.getGeometry(0).points))}return"multilinestring({0})".replace("{0}",i.substr(1))}}(t);case e.Polygon:return b(t);case e.MultiPoint:return;case e.MultiPolygon:return function(t){for(var e="",n=0;n<count;++n){e+=","+b(t.getGeometry(0)).replace("polygon","")}return"multipolygon({0})".replace("{0}",e.substr(1))}(t);case e.Envelope:return function(t){var e=[];e.push({x:t.minx,y:t.miny}),e.push({x:t.minx,y:t.maxy}),e.push({x:t.maxx,y:t.maxy}),e.push({x:t.maxx,y:t.miny}),e.push({x:t.minx,y:t.miny});var n=w(e);return"polygon({0})".replace("{0}",n)}(t);case e.Circle:return P(t.center,t.radius,t.radius);case e.Ellipse:return P(t.center,t.axisX,t.axisY)}},C.fromWKT=function(t,e){return t?0!==t.indexOf("multipoint")&&0!==t.indexOf("multipoint".toUpperCase())&&0!==t.indexOf("multilinestring")&&0!==t.indexOf("multilinestring".toUpperCase())?0===t.indexOf("multipolygon")||0===t.indexOf("multipolygon".toUpperCase())?function(t,e){var n=-1,i=-1;n=(t=t.replace("(((","((").replace(")))","))")).indexOf("(("),i=t.indexOf("))");for(var r=[];0<=n;)r.push(t.substr(n,i+2)),n=(t=t.substr(i+2)).indexOf("(("),i=t.indexOf("))");for(var o=new c({spatialReference:e}),a=0,s=r.length;a<s;++a){var l=_(r[a]);o.addGeometry(l)}return o}(t,e):0===t.indexOf("point")||0===t.indexOf("point".toUpperCase())?function(t,e){var n=S(t).match(/\s*-?\d+[.]?\d*\s+-?\d+[.]?\d*\s*/g);if(0<n.length){var i=n[0].split(" ");return new p({x:parseFloat(i[0]),y:parseFloat(i[1]),spatialReference:e})}}(t,e):0===t.indexOf("linestring")||0===t.indexOf("linestring".toUpperCase())?function(t,e){var n=S(t).match(/\s*-?\d+[.]?\d*\s+-?\d+[.]?\d*\s*/g);if(0<n.length){for(var i=new l({spatialReference:e}),r=0,o=n.length;r<o;++r){var a=n[r].split(" ");i.addPoint(new p({x:parseFloat(a[0]),y:parseFloat(a[1]),spatialReference:e}))}return i}}(t,e):0===t.indexOf("polygon")||0===t.indexOf("polygon".toUpperCase())?_(t,e):void 0:void 0:null},o.exports=C}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(9),n(240),n(10),n,e,t],void 0===(r=function(t,o,r,e,n,i,a){function s(t){var e=t||{};r.call(this,e),this.groupLayers=[];var n=e.layers;if(n&&n instanceof Array)for(var i=0;i<n.length;i++)this.groupLayers.push(n[i]);this._layer=new o.layer.Group,this.map=e.map?e.map:null,this._visible=null==e.visible||e.visible,this._opacity=null==e.opacity?1:e.opacity,this._zIndex=null==e.zIndex?0:e.zIndex,this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex),this.setLayers(this.groupLayers)}function l(t,e,n){return t.map.getView().getResolutionForZoom(e)/(n/256)}function u(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=n/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}return t.extend2(s,r),e(s.prototype,{visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}}}),s.prototype.init=function(){for(var t=this.map,e=0,n=this.groupLayers.length;e<n;++e){var i=this.groupLayers[e];i&&(i.map=t,i.init())}},s.prototype.clear=function(){try{for(var t=0;t<this.groupLayers.length;++t){var e=this.groupLayers[t];e&&e.clear()}}catch(t){}},s.prototype.unInit=function(){for(var t=0,e=this.groupLayers.length;t<e;t++){var n=this.groupLayers[t];n&&n.unInit()}},s.prototype.getLayer=function(){return this._layer},s.prototype.setLayers=function(t){for(var e=new o.Collection,n=0,i=t.length;n<i;++n){var r=t[n];r&&(e.push(t[n].getLayer()),this.groupLayers.push(r),r.map=this.map)}this._layer.setLayers(e)},s.prototype.findLayer=function(t){for(var e=0,n=this.groupLayers.length;e<n;++e){var i=this.groupLayers[e];if(i&&i.id===t)return i}},s.prototype.clear=function(){for(var t=0;t<this.groupLayers.length;t++){var e=this.groupLayers[t];e&&e.clear()}},s.prototype.addLayer=function(t){var e=this._layer.getLayers();t&&(e.push(t.getLayer()),this.groupLayers.push(t),t.map=this.map)},s.prototype.insertLayer=function(t,e){e&&(this._layer.getLayers().insertAt(t,e.getLayer()),this.groupLayers.splice(t,0,e),e.map=this.map)},s.prototype.indexOfLayer=function(t){this.groupLayers.indexOf(t)},s.prototype.removeLayer=function(t){for(var e=this.getCount(),n=0;n<e;n++)if(this.groupLayers[n]==t){if(this.groupLayers.splice(n,1),this._layer.getLayers().remove(t.getLayer()),39===t.getLayerType()){var i=t.getLayer().getRenderer();i&&i.helper.getGL()&&i.helper.getGL().getExtension("WEBGL_lose_context").loseContext()}break}},s.prototype.removeAllLayers=function(){var t=this._layer.getLayers();this.groupLayers.splice(0,this.getCount()),t.clear()},s.prototype.getCount=function(){return this.groupLayers.length},s.prototype.setVisible=function(t){s.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},s.prototype.setOpacity=function(t){s.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},s.prototype.setZIndex=function(t){s.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t);for(var e=0;e<this.getCount();e++)this.groupLayers[e].setZIndex(t)},s.prototype.setMinZoom=function(t){if(this.map){var e=l(this.map,t,256);this._layer.setMaxResolution(e+.001)}},s.prototype.setMaxZoom=function(t){if(this.map){var e=l(this.map,t,256);this._layer.setMinResolution(e)}},s.prototype.getMinZoom=function(){return u(this.map,this._layer.getMaxResolution()-.001,256)},s.prototype.getMaxZoom=function(){return u(this.map,this._layer.getMinResolution(),256)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(23),n(14),n(254),n(9),n(20),n(43),n(62),n(158),n(10),n(37),n,e,t],void 0===(r=function(t,e,n,i,v,a,r,o,l,s,u,h,c,p){function x(t){var e=t.projection?t.projection:"EPSG:3857";return v.proj.get(e)}function _(e,r,o){r.setLoader(function(n,t,i){e.get(o,"arraybuffer",void 0,void 0).then(function(t){var e=r.getFormat().readFeatures(t,{extent:n,featureProjection:i});console.log("old"),r.setFeatures(e)})})}function f(t){if(void 0!==t.tileSize||t.projection){var e;if(t.extent){var n=t.extent;e=[n.minx,n.miny,n.maxx,n.maxy]}var i=t.tileSize||256,r=x(t),o=r.getExtent(),a=i;i instanceof Array&&(a=i[0]);for(var s=v.extent.getWidth(o)/a,l=t.matrix?t.matrix:18,u=new Array(l),h=new Array(l),c=t.matrixPrefix?t.matrixPrefix:"",p=t.levelShift?t.levelShift:0,f=0;f<l;++f)u[f]=s/Math.pow(2,p+f),h[f]=c+f;t.matrixIds&&(h=t.matrixIds),t.resolutions&&(u=t.resolutions);var d=t.origin;null!=d&&"undefined"!=d||(d=v.extent.getTopLeft(o));var y=w(t.format),m=function(t,e){var n={REQUEST:"GetTile",SERVICE:"WMTS",VERSION:"1.0.0",LAYER:t.layers,STYLE:"",TILEMATRIX:t.matrixPrefix+"{z}",TILEMATRIXSET:t.matrixSet,FORMAT:e,TILECOL:"{x}",TILEROW:"{y}"},i=t.url+"?";for(var r in n)i=i+r+"="+n[r]+"&";return i.slice(0,-1)}(t,y.miniType),g=t.restHttp;return t=new v.source.VectorTile({url:m,format:y.olFormat,projection:r,wrapX:!!t.wrapX&&t.wrapX,tileGrid:new v.tilegrid.WMTS({tileSize:i,origin:d,resolutions:u,matrixIds:h,extent:e||o}),tileUrlFunction:t.tileUrlFunction?t.tileUrlFunction:function(t,e,n){var i=t[0].toString(),r=t[1].toString(),o=t[2].toString();return m.replace("{z}",i).replace("{x}",r).replace("{y}",o)},tileLoadFunction:t.restHttp?function(t,e){_(g,t,e)}:void 0})}}function d(t){if(void 0!==t.tileSize||t.projection){var e;if(t.extent){var n=t.extent;e=[n.minx,n.miny,n.maxx,n.maxy]}var i=t.tileSize||256,r=x(t),o=r.getExtent(),a=i;i instanceof Array&&(a=i[0]);for(var s=v.extent.getWidth(o)/a,l=t.matrix?t.matrix:18,u=new Array(l),h=new Array(l),c=t.matrixPrefix?t.matrixPrefix:"",p=t.levelShift?t.levelShift:0,f=0;f<l;++f)u[f]=s/Math.pow(2,p+f),h[f]=c+f;t.resolutions&&(u=t.resolutions);var d=t.origin;null!=d&&"undefined"!=d||(d=v.extent.getTopLeft(o));var y=w(t.format),m=t.restHttp,g=t.url;return t=new v.source.VectorTile({url:g,format:y.olFormat,projection:r,wrapX:!!t.wrapX&&t.wrapX,tileGrid:new v.tilegrid.TileGrid({tileSize:i,origin:d,resolutions:u,extent:e||o}),tileUrlFunction:t.tileUrlFunction?t.tileUrlFunction:function(t,e,n){var i=t[0].toString(),r=t[1].toString(),o=t[2].toString();return g.replace("{z}",i-1).replace("{x}",r).replace("{y}",o)},tileLoadFunction:t.restHttp?function(t,e){_(m,t,e)}:void 0})}}function w(t){return{mvt:{miniType:"application/x-protobuf;type=mapbox-vector",olFormat:new v.format.MVT({})},geojson:{miniType:"application/json;type=geojson",olFormat:new v.format.GeoJSON({})},topojson:{miniType:"application/json;type=topojson",olFormat:new v.format.TopoJSON({})}}[t]}function y(t){(t=t||{}).tileType=t.tileType?t.tileType:r.XYZ,t.restHttp?this._restHttp=t.restHttp:(this._restHttp=new e({client_id:t.clientId,client_secret:t.clientSecret}),t.restHttp=this._restHttp),i.call(this,t),this._cachedSymbols=new u,this._layer=function(t){var e;t.url&&(e=t.tileType===r.XYZ?d(t):f(t));var n=new v.layer.VectorTile({});return e&&n.setSource(e),n}(t),"number"==typeof t.maxZoom&&t.maxZoom==t.maxZoom&&this.setMaxZoom(t.maxZoom),"number"==typeof t.minZoom&&t.minZoom==t.minZoom&&this.setMinZoom(t.minZoom),this.symbolConverter=new o,this._visible=null==t.visible||t.visible,this._opacity=null==t.opacity?1:t.opacity,this._zIndex=null==t.zIndex?0:t.zIndex,this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex),this.map=null}function m(t,e,n){return t.map.getView().getResolutionForZoom(e)/(n/256)}function g(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=n/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}return t.extend2(y,i),s(y.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(t=Number(t),this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}}}),y.prototype.setSource=function(t){t=t.getSourceType()==n.VectorTile?f(t):d(t);this._layer.tileSize=t.tileSize||256,this._layer.setSource(t)},y.prototype.getLayer=function(){return this._layer},y.prototype.setVisible=function(t){y.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},y.prototype.setOpacity=function(t){y.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},y.prototype.setZIndex=function(t){y.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},y.prototype.hitTest=function(t,e){var n=[],i=this._layer;return this.map.map.forEachFeatureAtPixel([t,e],function(t){n.push(t)},{layerFilter:function(t){return i==t}}),0<n.length?new a({feature:new l(n[0])}):null},y.prototype.hitTestList=function(t,e){var n=[],i=(new GraphicSelectionSet,this._layer);this.map.map.forEachFeatureAtPixel([t,e],function(t){n.push(t)},{layerFilter:function(t){return i==t}});for(var r=[],o=0;o<n.length;o++)r.push(new a({feature:new l(r[0])}));return r},y.prototype.render=function(o){var a=this.symbolConverter,s=this._cachedSymbols;this._layer.setStyle(function(t,e){var n=new l(t);if(o.canRender(n,e)){var i=o.render(n,e);if(s.contains(i))return s.get(i);var r=[a.toSymbol(i)];return s.put(i,r),r}})},y.prototype.unRender=function(t){t&&t.unRender()},y.prototype.setMinZoom=function(t){if(this._minZoom=t,this.map){var e=m(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e+.001)}},y.prototype.setMaxZoom=function(t){if(this._maxZoom=t,this.map){var e=m(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}},y.prototype.getMinZoom=function(){return g(this.map,this._layer.getMaxResolution()-.001,this._layer.tileSize)},y.prototype.getMaxZoom=function(){return g(this.map,this._layer.getMinResolution(),this._layer.tileSize)},y.prototype.on=function(t,e){"visible"===t||"opacity"===t?y.prototype.uber.on.call(this,t,e):this.map.on(t,e)},y.prototype.un=function(t,e){"visible"===t||"opacity"===t?y.prototype.uber.un.call(this,t,e):this.map.un(t,e)},p.exports=y}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(46),n(15),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.stops=e.stops,this.$type="RadioGradientFillSymbol,http://www.Gs.com"}return t.extend2(a,n),a.prototype.copy=function(){return new a({stops:this.stops.copy()})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(57),n(15),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.fillColor=t.fillColor||new n({a:153,r:19,g:181,b:177}),this.pointCount=t.pointCount||3,this.size=t.size||8,this.radius1=t.radius1,this.radius2=t.radius2,this.angle=t.angle,this.borderColor=t.borderColor||new n({a:153,r:19,g:181,b:177}),this.borderThickness=t.borderThickness||1,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this.$type="RegularShapeMarkerSymbol,http://www.Gs.com"}return t.extend2(a,e),a.prototype.copy=function(){return new a({fillColor:this.fillColor?this.fillColor.copy():void 0,pointCount:this.pointCount,radius1:this.radius1,radius2:this.radius2,angle:this.angle,borderColor:this.borderColor?this.borderColor.copy():void 0,borderThickness:this.borderThickness,offsetX:this.offsetX,offsetY:this.offsetY})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(13),n,e,t],void 0===(r=function(e,t,n,i){function r(t){this.ofeature=t}return r.prototype.get=function(t){return this.ofeature.get(t)},r.prototype.getExtent=function(){var t=this.ofeature.getExtent();return new e({minx:t[0],miny:t[1],maxx:t[2],maxy:t[3]})},r.prototype.getLayer=function(){return this.ofeature.get("layer")},r.prototype.getGeometry=function(){return this},r.prototype.getId=function(){return this.ofeature.getId()},r.prototype.getProperties=function(){var t=this.ofeature.getProperties(),e=[];for(var n in t)e.push({key:n,value:t[n]});return e},r.prototype.getValue=function(t){var e=this.ofeature.getProperties();for(var n in e)if(t===n)return e[n]},r.prototype.getProperty=function(t){var e=this.getValue(t);return{getValue:function(){return e}}},r.prototype.getType=function(){return this.ofeature.getType()},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(9),n(17),n(30),n(38),n(78),n(121),n,e,t],void 0===(r=function(s,a,e,n,i,r,t,o,l){function u(t){var e=t||{};this.source=e.canvas,this._hashMap=e.hashMap,this.symbolConvertor=e.symbolConvertor,this.geometryConvertor=e.geometryConvertor,this.maxZIndex=1,this.minZIndex=-1}u.prototype.add=function(t){t&&(t instanceof a?this.addElement(t):t instanceof e?this.addCompositeElement(t):t instanceof n&&this.addCompositeElement(t))},u.prototype.addElements=function(t,e){if(t)if(e)this.addSingleElements(t);else{var n=[],i=[];h(t,n,i),0<n.length&&this.addSingleElements(n),0<i.length&&this.addCompositeElements(i)}},u.prototype.addSingleElements=function(t){if(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r=new s.Feature({geometry:this.geometryConvertor.toGeometry(i.geometry)});r.setStyle(this.symbolConvertor.toSymbol(i.symbol)),r.Geometry=i.geometry,r.Symbol=i.symbol,r.Element=i,this._hashMap.put(i,r);var o=r.getStyle();if(0<o.length){this.maxZIndex+=.01;for(var a=0;a<o.length;a++)o[a].setZIndex(this.maxZIndex)}else o.setZIndex(this.maxZIndex+=.01);e.push(r)}this.source.addFeatures(e)}},u.prototype.addCompositeElements=function(t){if(t){for(var e=t.length,n=[],i=0;i<e;i++){(new s.Feature).Element=t[i],n.push(t[i])}this.source.addFeatures(n)}},u.prototype.addCompositeElement=function(t){if(t){var e=new s.Feature;e.Element=t,this.source.addFeature(e);for(var n=0,i=t.elements.length;n<i;++n){var r=t.elements[n];r instanceof a?this.addElement(r):this.addCompositeElement(r)}this._hashMap.put(t,e)}},u.prototype.addElement=function(t){if(t){var e=new s.Feature({geometry:this.geometryConvertor.toGeometry(t.geometry)});t.symbol instanceof r?this.symbolConvertor.toSymbol(t.symbol,function(t){e.setStyle(t)}):t.symbol instanceof i?e.StyleFunc=this.symbolConvertor.toSymbol(t.symbol):e.setStyle(this.symbolConvertor.toSymbol(t.symbol)),this._hashMap.put(t,e),e.Geometry=t.geometry,e.Symbol=t.symbol,e.Element=t,this.source.addFeature(e)}};var h=function(t,e,n){for(var i=t.length,r=0;r<i;r++)t[r]instanceof a?e.push(t[r]):(n.push(t[r]),c(t[r],e,n))},c=function(t,e,n){for(var i=t.elements,r=i.length,o=0;o<r;o++)i[o]instanceof a?e.push(i[o]):(n.push(i[o]),c(i[o],e,n))};return l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(1),n(13),n(49),n,e,t],void 0===(r=function(a,l,t,e,n,i){function r(){this.$type="Plot,http://www.Gs.com",this.controlPoints=[],this.rotatePoint=new a,this.centerPoint=new a,this.middlePoints=[],this.extendPoints=[],this.isClose=!1}return r.prototype.getControlPoints=function(){return this.controlPoints},r.prototype.getMiddlePoints=function(){return this.middlePoints},r.prototype.getExtentPoint=function(t){return this.extendPoints[t]},r.prototype.setControlPoints=function(t){this.controlPoints!==t&&(this.controlPoints.splice(0,this.controlPoints.length),this.controlPoints=this.controlPoints.concat(t))},r.prototype.addControlPoint=function(t){this.controlPoints.push(t)},r.prototype.controlPointCount=function(){return this.controlPoints.length},r.prototype.setRotatePoint=function(t){this.rotatePoint=t},r.prototype.getRotatePoint=function(){return this.rotatePoint},r.prototype.setCenterPoint=function(t){this.centerPoint=t},r.prototype.getCenterPoint=function(){return this.centerPoint},r.prototype.isMiddlePoint=function(t){if(null===t)return!1;for(var e=0;e<this.middlePoints.length;++e){if(this.middlePoints[e].equals(t))return!0}return!1},r.prototype.isControlPoint=function(t){if(null===t)return!1;for(var e=0;e<this.controlPoints.length;++e){if(this.controlPoints[e].equals(t))return!0}return!1},r.prototype.isRotatePoint=function(t){return null!==t&&this.rotatePoint.equals(t)},r.prototype.isCenterPoint=function(t){return null!==t&&this.centerPoint.equals(t)},r.prototype.isExtentPoint=function(t){if(null===t)return!1;for(var e=0;e<this.extendPoints.length;++e){if(this.extendPoints[e].equals(t))return!0}return!1},r.prototype.findControlPoint=function(t){if(null===t)return null;for(var e in this.controlPoints){var n=this.controlPoints[e];if(n.equals(t))return n}return null},r.prototype.findMiddlePointIndex=function(t){if(null===t)return-1;for(var e=0,n=this.middlePoints.length;e<n;++e){if(this.middlePoints[e].equals(t))return e}return-1},r.prototype.findExtentPointIndex=function(t){if(null===t)return-1;for(var e=0,n=this.extendPoints.length;e<n;++e){if(this.extendPoints[e].equals(t))return e}return-1},r.prototype.insertControlPoint=function(t,e){this.controlPoints.splice(t+1,0,e.copy());var n=new a({spatialReference:e.spatialReference});this.middlePoints.splice(t+1,0,n),this.updateMiddlePoints()},r.prototype.removeControlPoint=function(t){0<=t&&t<this.controlPoints.length&&(this.controlPoints.splice(t,1),this.middlePoints.splice(t,1),this.updateMiddlePoints())},r.prototype.addExtentPoint=function(t){this.extendPoints.push(t)},r.prototype.findControlPointIndex=function(t){if(null===t)return-1;for(var e=0,n=this.controlPoints.length;e<n;++e){if(this.controlPoints[e].equals(t))return e}return-1},r.prototype.update=function(t){for(var e=new l,n=0,i=t.length;n<i;++n){var r=t[n].envelope();(e=e.union(r)).spatialReference=t[n].spatialReference}var o=e.center();if(this.centerPoint.spatialReference=o.spatialReference,this.centerPoint.x=o.x,this.centerPoint.y=o.y,this.rotatePoint.spatialReference=o.spatialReference,this.rotatePoint.x=(this.centerPoint.x+this.controlPoints[0].x)/2,this.rotatePoint.y=(this.centerPoint.y+this.controlPoints[0].y)/2,0<this.middlePoints.length&&this.updateMiddlePoints(),0<this.extendPoints.length){var a=this.extendPoints[0],s=this.extendPoints[1];a.x=e.minx,a.y=e.miny,s.x=e.maxx,s.y=e.maxy}},r.prototype.offset=function(t,e){if(2&e){for(var n=0;n<this.controlPoints.length;++n){this.controlPoints[n].offset(t)}if(this.rotatePoint.offset(t),this.centerPoint.offset(t),0<this.extendPoints.length)for(n=0;n<this.extendPoints.length;++n){this.extendPoints[n].offset(t)}}else if(8&e){var i=this.rotatePoint.x-this.centerPoint.x,r=this.rotatePoint.y-this.centerPoint.y;this.rotatePoint.x=this.centerPoint.x+i*t.cos-r*t.sin,this.rotatePoint.y=this.centerPoint.y+i*t.sin+r*t.cos;n=0;for(var o=this.controlPoints.length;n<o;n++){var a=this.controlPoints[n];i=a.x-this.centerPoint.x,r=a.y-this.centerPoint.y,a.x=this.centerPoint.x+i*t.cos-r*t.sin,a.y=this.centerPoint.y+i*t.sin+r*t.cos}}0<this.middlePoints.length&&this.updateMiddlePoints()},r.prototype.scale=function(t,e,n){for(var i=0,r=this.controlPoints.length;i<r;++i){var o=this.controlPoints[i];o.x=(o.x-t.x)*e+t.x,o.y=(o.y-t.y)*n+t.y}},r.prototype.updateMiddlePoints=function(t){if(0===this.middlePoints.length){for(var e=0,n=this.controlPoints.length-1;e<n;++e){var i=this.controlPoints[e],r=this.controlPoints[e+1],o=new a({spatialReference:i.spatialReference,x:(i.x+r.x)/2,y:(i.y+r.y)/2});this.middlePoints.push(o)}if(t){i=this.controlPoints[0],r=this.controlPoints[this.controlPoints.length-1],o=new a({spatialReference:i.spatialReference,x:(i.x+r.x)/2,y:(i.y+r.y)/2});this.middlePoints.push(o)}}else{for(n=this.controlPoints.length-1,e=0;e<n;++e){i=this.controlPoints[e],r=this.controlPoints[e+1];(o=this.middlePoints[e]).x=(i.x+r.x)/2,o.y=(i.y+r.y)/2}if(this.isClose){i=this.controlPoints[0],r=this.controlPoints[this.controlPoints.length-1];(o=this.middlePoints[this.controlPoints.length-1]).x=(i.x+r.x)/2,o.y=(i.y+r.y)/2}}},r.prototype.updateExtentPoints=function(t){if(0<this.extendPoints.length){for(var e=new l,n=0;n<t.length;++n){var i=t[n].envelope();e.union(i)}var r=this.extendPoints[0],o=this.extendPoints[1];r.x=e.minx,r.y=e.miny,o.x=e.maxx,o.y=e.maxy}},r.prototype.copy=function(){var t=new r;t.isClose=this.isClose,t.controlPoints=[],t.middlePoints=[],t.extendPoints=[];for(var e=0;e<this.controlPoints.length;e++)t.controlPoints.push(this.controlPoints[e].copy());for(e=0;e<this.middlePoints.length;e++)t.middlePoints.push(this.middlePoints[e].copy());for(e=0;e<this.extendPoints.length;e++)t.extendPoints.push(this.extendPoints[e].copy());return t.rotatePoint=this.rotatePoint.copy(),t.centerPoint=this.centerPoint.copy(),t},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(56),n(23),n(263),n(9),n(0),n(251),n(14),n,e,t],void 0===(r=function(r,t,e,g,n,i,o,a,s,l){function u(){}function v(t,i,e){t&&t._token?t.get(e,"arraybuffer",void 0,void 0).then(function(t){var e=new Uint8Array(t),n="data:image/png;base64,"+r.decode(e);i.src=n}):i.src=e}function x(t){var e=t.projection?t.projection:"EPSG:3857";return g.proj.get(e)}return n.extend2(u,i),u.prototype.create=function(t){if(t)switch(t.getSourceType()){case o.XYZ:return this.createFromXYZ(t);case o.TileWMS:return this.createFromWMS(t);case o.WMTS:return this.createFromWMTS(t);case o.BingMaps:return this.createFromBingMaps(t);case o.BaiduMap:return this.createFromBaiduMap(t);case o.Tianditu:return this.createTianditu(t);case o.OSM:return this.createFromOpenStreetMap(t);case o.ArcGISRest:return this.createFromArcGISRest(t);case o.SuperMapRest:return this.createFromSuperMapRest(t);case o.Google:return this.createFromGoogle(t);case o.WDMS:return this.createFromWDMS(t);case o.WPMS:return this.createFromWPMS(t)}},u.prototype.createFromXYZ=function(t){var e;if(t.extent){var n=t.extent;e=[n.minx,n.miny,n.maxx,n.maxy]}var i=x(t).getExtent(),r=t.tileSize||256,o=g.extent.getWidth(i)/r,a=t.matrix?t.matrix:43,s=new Array(a);if(t.resolutions)s=t.resolutions;else for(var l=t.levelShift?t.levelShift:0,u=0;u<a;++u)s[u]=o/Math.pow(2,l+u);var h=void 0===t.crossOrigin?"anonymous":t.crossOrigin;if("baidu"===t.projection){var c=g.extent.applyTransform([72.004,.8293,137.8347,55.8271],t.projzh.ll2bmerc);t.extent=c}var p=t.restHttp;return new g.source.XYZ({url:t.url,wrapX:t.wrapX,crossOrigin:h,tileSize:r,projection:t.projection||"EPSG:3857",tileGrid:new g.tilegrid.TileGrid({origin:t.origin?t.origin:g.extent.getTopLeft(i),resolutions:s,tileSize:r,extent:e||i}),tileUrlFunction:t.tileUrlFunction,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:function(t,e){v(p,t.getImage(),e)}})},u.prototype.createFromWMS=function(n){var t;if(n.version=n.version||"1.1.0",n.extent){var e=n.extent;t=[e.minx,e.miny,e.maxx,e.maxy]}var i=x(n).getExtent(),r=n.tileSize||256,o=g.extent.getWidth(i)/r,a=n.matrix?n.matrix:21,s=new Array(a);if(n.resolutions)s=n.resolutions;else for(var l=n.levelShift?n.levelShift:0,u=0;u<a;++u)s[u]=o/Math.pow(2,l+u);var h=void 0===n.crossOrigin?"anonymous":n.crossOrigin,c=n.restHttp;return new g.source.TileWMS({crossOrigin:h,url:n.url,params:{LAYERS:n.layers,TILED:n.tiled,VERSION:n.version,STYLES:n.styles,CQL_FILTER:n.cqlFilter},extent:t,serverType:n.serverType,wrapX:!1,transition:n.transition,tileGrid:new g.tilegrid.TileGrid({origin:n.origin?n.origin:g.extent.getTopLeft(i),resolutions:s,tileSize:r,extent:t||i}),tileLoadFunction:function(t,e){e=n.setImageUrl?n.setImageUrl(e):e,e=decodeURIComponent(e),v(c,t.getImage(),e)}})},u.prototype.createFromWDMS=function(n){var t;if(n.extent){var e=n.extent;t=[e.minx,e.miny,e.maxx,e.maxy]}var i=x(n).getExtent(),r=n.tileSize||256,o=g.extent.getWidth(i)/r,a=n.matrix?n.matrix:21,s=new Array(a);if(n.resolutions)s=n.resolutions;else for(var l=n.levelShift?n.levelShift:0,u=0;u<a;++u)s[u]=o/Math.pow(2,l+u);var h=n.version||"1.1.0",c=void 0===n.crossOrigin?"anonymous":n.crossOrigin;return new g.source.TileWMS({crossOrigin:c,url:n.url,params:{CATALOG:n.catalog,LAYERS:n.layers,TILED:n.tiled,VERSION:h,STYLES:n.styles},extent:t,serverType:n.serverType,wrapX:!1,transition:n.transition,tileGrid:new g.tilegrid.TileGrid({origin:n.origin?n.origin:g.extent.getTopLeft(i),resolutions:s,tileSize:r,extent:t||i}),tileLoadFunction:function(t,e){n.setImageUrl?t.getImage().src=n.setImageUrl(e):t.getImage().src=e}})},u.prototype.createFromWMTS=function(t){var e;if(t.extent){var n=t.extent;e=[n.minx,n.miny,n.maxx,n.maxy]}for(var i=x(t),r=i.getExtent(),o=t.tileSize||256,a=g.extent.getWidth(r)/o,s=t.matrix?t.matrix:18,l=new Array(s),u=new Array(s),h=t.matrixPrefix?t.matrixPrefix:"",c=t.levelShift?t.levelShift:0,p=0;p<s;++p)l[p]=a/Math.pow(2,c+p),u[p]=h+p;t.matrixIds&&(u=t.matrixIds),t.resolutions&&(l=t.resolutions);var f=t.origin;null!=f&&"undefined"!=f||(f=g.extent.getTopLeft(r));var d=void 0===t.crossOrigin?"anonymous":t.crossOrigin,y=t.restHttp,m=t.tileLoadFunction?t.tileLoadFunction:function(t,e){v(y,t.getImage(),e)};return new g.source.WMTS({crossOrigin:d,url:t.url,layer:t.layers,matrixSet:t.matrixSet,format:t.format?t.format:"image/png",projection:i,style:t.style,tileGrid:new g.tilegrid.WMTS({origin:f,resolutions:l,matrixIds:u,tileSize:o,extent:e||r}),wrapX:void 0!==t.wrapX&&t.wrapX,tileLoadFunction:m,tileUrlFunction:t.tileUrlFunction})},u.prototype.createFromBingMaps=function(a){var t=void 0===a.crossOrigin?"anonymous":a.crossOrigin;return new g.source.XYZ({crossOrigin:t,projection:a.projection||"EPSG:3857",tileUrlFunction:function(t,e,n){var i=t[0],r=t[1],o=t[2];return a.url+"/"+function(t){var e="a";switch(t){case 1:e="a";break;case 2:e="r";break;case 3:e="h"}return e}(a.type)+function(t,e,n){for(var i="",r=n;0<r;r--){var o="0",a=1<<r-1;0!=(t&a)&&o++,0!=(e&a)&&(o++,o++),i+=o}return i=""==i?"0":i}(r,o,i)+"?g=50"},wrapX:a.wrapX||!1})},u.prototype.createFromBaiduMap=function(a){var t=a.extent||[72.004,.8293,137.8347,55.8271];if(!a.resolutions){for(var e=new Array(19),n=0;n<19;++n)e[n]=Math.pow(2,18-n);a.resolutions=e}a.origin=a.origin||[0,0],a.extent=g.extent.applyTransform(t,a.projzh.ll2bmerc);var i=a.tileSize||[256,256],r=void 0===a.crossOrigin?"anonymous":a.crossOrigin,o=new g.tilegrid.TileGrid({origin:a.origin,resolutions:a.resolutions,tileSize:i,extent:a.extent}),s=a.projection||"baidu",l=a.url;return new g.source.TileImage({crossOrigin:r,projection:s,tileGrid:o,tileLoadFunction:function(t,e){3===a.baiduType?t.getImage().src=e+"&time="+(new Date).getTime():t.getImage().src=e},tileUrlFunction:function(t,e,n){if(!t)return"";var i=t[0],r=t[1],o=-t[2]-1;return a.tileUrlFunction?a.tileUrlFunction(r,o,i):0<=l.indexOf("{x}")&&0<=l.indexOf("{y}")&&0<=l.indexOf("{z}")?l.replace("{x}",r).replace("{y}",o).replace("{z}",i):(r<0&&(r="M"+-r),o<0&&(o="M"+-o),function(t,e,n,i){switch(t.baiduType||0){case 0:return t.url+"/?qt=tile&x="+e+"&y="+n+"&z="+i+"&styles=pl&scaler=1&p=1";case 1:return t.url+"/u=x="+e+";y="+n+";z="+i+";v=009;type=sate&fm=46";case 2:return t.url+"/?qt=tile&x="+e+"&y="+n+"&z="+i+"&styles=sl&scaler=1&p=1";case 3:return t.url+"?time="+Date.parse(new Date)+"&label=web2D&v=016&level="+i+"&x="+e+"&y="+n;case 99:return t.tileUrlFunction(e,n,i)}}(a,r,o,i))},wrapX:void 0!==a.wrapX&&a.wrapX})},u.prototype.createTianditu=function(t){var e=void 0===t.crossOrigin?"anonymous":t.crossOrigin;return new g.source.XYZ({crossOrigin:e,url:t.url+"&x={x}&y={y}&l={z}",wrapX:!1})},u.prototype.createFromOpenStreetMap=function(t){var e=void 0===t.crossOrigin?"anonymous":t.crossOrigin;return new g.source.OSM({url:t.url,crossOrigin:e})},u.prototype.createFromArcGISRest=function(t){var e=void 0===t.crossOrigin?"anonymous":t.crossOrigin;return new g.source.TileArcGISRest({crossOrigin:e,projection:t.projection,url:t.url,params:{FORMAT:t.format||"PNG32",LAYERDEFS:t.layerDefs,LAYERS:t.layers,F:t.type||"IMAGE",TRANSPARENT:void 0===t.transparent||t.transparent},wrapX:!1})},u.prototype.createFromSuperMapRest=function(t){return new e({url:t.url,projection:t.projection,tileGrid:new g.tilegrid.TileGrid({extent:t.extent,resolutions:t.resolutions}),redirect:t.redirect||!1,transparent:t.transparent||!0,cacheEnabled:t.cacheEnabled||!0,overlapDisplayed:t.overlapDisplayed||!1})},u.prototype.createFromGoogle=function(t){var e=void 0===t.crossOrigin?"anonymous":t.crossOrigin;return new g.source.XYZ({url:t.url,wrapX:t.wrapX||!1,projection:t.projection||"gcj02",crossOrigin:e})},u.prototype.createFromGaodeMap=function(t){var e=void 0===t.crossOrigin?"anonymous":t.crossOrigin;return new g.source.XYZ({url:t.url,wrapX:t.wrapX||!1,projection:t.projection||"gcj02",crossOrigin:e})},u.prototype.createFromTencentMap=function(a){var t=void 0===a.crossOrigin?"anonymous":a.crossOrigin;return new g.source.XYZ({url:a.url,wrapX:a.wrapX||!1,projection:a.projection||"gcj02",crossOrigin:t,tileUrlFunction:function(t,e,n){if(!t)return"";var i=t[0],r=t[1],o=t[2];switch(o=parseInt(Math.pow(2,i))-1-o,a.type){case 1:return a.url+"/"+i+"/"+Math.floor(r/16)+"/"+Math.floor(o/16)+"/"+r+"_"+o+".jpg";case 2:return(a.url+"?z={z}&x={x}&y={y}&styleid=2").replace("{x}",r).replace("{y}",o).replace("{z}",i);case 3:return(a.url+"?z={z}&x={x}&y={y}").replace("{x}",r).replace("{y}",o).replace("{z}",i)}}})},u.prototype.createFromWPMS=function(t){switch(t.capability.$type.split(",")[0].trim()){case"WPXYZCapability":case"WPWMTSCapability":return function(t){var e=t.capability,n=t.url+"/getTile?layerName="+e.name+"&x={x}&y={y}&z={z}",i=new g.tilegrid.TileGrid({tileSize:e.tileSize,resolutions:e.resolutions,origin:[e.origin.x,e.origin.y],minZoom:e.minZoom,maxZoom:e.maxZoom,extent:[e.extent.minx,e.extent.miny,e.extent.maxx,e.extent.maxy]}),r=void 0===t.crossOrigin?"anonymous":t.crossOrigin;return new g.source.TileImage({url:n,wrapX:!1,crossOrigin:r,tileGrid:i,projection:"EPSG:"+e.srid})}(t)}},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(17),n(30),n(38),n,e,t],void 0===(r=function(r,e,n,t,i,o){function a(t){var e=t||{};this.canvas=e.canvas,this.source=e.source,this._hashMap=e.hashMap}return a.prototype.remove=function(t){t instanceof r?this.removeElement(t):(t instanceof e||t instanceof n)&&this.removeElements(t)},a.prototype.removeElements=function(t){for(var e=0,n=t.elements.length;e<n;++e){var i=t.elements[e];i instanceof r?this.removeElement(i):this.removeElements(i)}this.removeElement(t)},a.prototype.removeElement=function(t){var e=this.canvas.lookup(t);e&&this.source.removeFeature(e),this._hashMap.remove(t)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(9),n(17),n(30),n(38),n(164),n(78),n,e,t],void 0===(r=function(t,o,e,n,i,l,r,a,s){function u(t){var e=t||{};this.canvas=e.canvas,this.symbolConvertor=e.symbolConvertor,this.geometryConvertor=e.geometryConvertor,this.updateGeo=e.updateGeo,this.highLightElement=new i(e),this._hashMap=e.hashMap}return u.prototype.update=function(t){t instanceof o?this.updateElement(t):t instanceof e?this.updateElements(t):t instanceof n&&this.updateElements(t)},u.prototype.updateElements=function(t){for(var e=0,n=t.elements.length;e<n;++e){var i=t.elements[e];i instanceof o?this.updateElement(i):this.updateElements(i)}var r=this.canvas.lookup(t);r&&this.highLightElement.highLight(r)},u.prototype.updateElement=function(t){var e=this.canvas.lookup(t);if(e)if(this.updateGeo){var n=e.getGeometry();n&&n.dispose(),e.setGeometry(this.geometryConvertor.toGeometry(t.geometry));var i=this.canvas.lookup(t);i&&(i.Element=t,this.highLightElement.highLight(i))}else if(e){var r,o=e.getStyle();if(o&&(Array.isArray(o)?r=o[0].getZIndex():o.getZIndex&&(r=o.getZIndex())),t.symbol instanceof l||e.setStyle(this.symbolConvertor.toSymbol(t.symbol)),"number"==typeof r){var a=e.getStyle();if(0<a.length)for(var s=0;s<a.length;s++)a[s].setZIndex(r);else a.setZIndex(r)}}},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(9),n(17),n(30),n(8),n(1),n,e,t],void 0===(r=function(f,d,i,n,o,t,e,r){function a(t,e){for(var n=[],i=t.numPoints(),r=0;r<i;++r){var o=u(t.pointN(r),e);n.push(o)}return n}function s(t,e){for(var n=[],i=t.getGeometryCount(),r=0;r<i;++r)for(var o=t.getGeometry(r),a=0,s=o.getPointCount();a<s;a++){var l=u(o.getPoint(a),e);n.push(l)}return n}function u(t,e){if(null!=t){var n=new f.Feature({geometry:new f.geom.Point([t.x,t.y])});return n.setStyle(e),n.Element=new d({geometry:t}),n.Geometry=t,n}}function l(t,e){if(t)switch(t.getGeometryType()){case n.Polyline:return function(t,e){for(var n=[],i=t.getGeometryCount(),r=0;r<i;++r)for(var o=t.getGeometry(r),a=0,s=o.getPointCount();a<s;a++){var l=u(o.getPoint(a),e);n.push(l)}return n}(t,e);case n.Polygon:return s(t,e);case n.Point:return function(t,e){var n=[];if(null!=t){var i=u(t,e);n.push(i)}return n}(t,e);case n.Envelope:return function(t,e){var n=[],i=new o({x:t.minx,y:t.miny}),r=u(i,e);return n.push(r),r=u(i=new o({x:t.maxx,y:t.maxy}),e),n.push(r),n}(t,e);case n.Circle:return function(t,e){var n=[],i=t.center,r=u(i,e);return n.push(r),r=u(new o({x:i.x+t.radius,y:i.y}),e),n.push(r),n}(t,e);case n.Ellipse:return function(t,e){var n=[],i=t.center,r=u(i,e);return n.push(r),r=u(new o({x:i.x+t.axisX,y:i.y-t.axisY}),e),n.push(r),n}(t,e);case n.Line:case n.LineString:return a(t,e);case n.MultiLineString:return function(t,e){for(var n=[],i=t.numGeometries(),r=0;r<i;++r){a(t.geometryN(r),e).forEach(function(t){n.push(t)})}return n}(t,e);case n.MultiPolygon:return function(t,e){for(var n=[],i=t.numGeometries(),r=0;r<i;++r){s(t.geometryN(r),e).forEach(function(t){n.push(t)})}return n}(t,e);case n.MultiPoint:return function(t,e){for(var n=[],i=t.numGeometries(),r=0;r<i;++r){var o=t.geometryN(r);n.push(u(o,e))}return n}(t,e);default:return[]}}function h(t){this.canvas=t.canvas,this.geometryConvertor=t.geometryConvertor,this.symbolConvertor=t.symbolConvertor,this.layer=this.canvas.getLayer(),this._hashMap=t.hashMap,this.feature=null,this.features=[],this.controlSymbol=t.controlSymbol?this.symbolConvertor.toSymbol(t.controlSymbol):new f.style.Style({image:new f.style.Circle({fill:new f.style.Fill({color:"blue"}),radius:6})}),this.centerSymbol=t.centerSymbol?this.symbolConvertor.toSymbol(t.centerSymbol):new f.style.Style({image:new f.style.Circle({fill:new f.style.Fill({color:"red"}),radius:6})}),this.rotateSymbol=t.rotateSymbol?this.symbolConvertor.toSymbol(t.rotateSymbol):new f.style.Style({image:new f.style.Circle({fill:new f.style.Fill({color:"yellow"}),radius:6})}),this.middleSymbol=t.middleSymbol?this.symbolConvertor.toSymbol(t.middleSymbol):new f.style.Style({image:new f.style.Circle({fill:new f.style.Fill({color:"#553390"}),radius:6})}),this.extendSymbol=t.extendSymbol?this.symbolConvertor.toSymbol(t.extendSymbol):new f.style.Style({image:new f.style.Circle({fill:new f.style.Fill({color:"pink"}),radius:10})})}function y(t){return t.algorithm.$type.split(",")[0]}return h.prototype.highLight=function(t){if((this.feature=t).selected){var e=t.Element;if(e instanceof i)(n=t.HighLight)?(function(t){var e=t.Element,n=t.HighLight,i=e.plot,r=y(e);if("FreePolygonAlgorithm"===r||"FreePolylineAlgorithm"===r||"PolygonAlgorithm"===r||"PolylineAlgorithm"===r){var o=i.getControlPoints(),a=i.getMiddlePoints();if(n.length<o.length+a.length+4)(function(t,e,n){for(var i=0,r=e.length;i<r;++i){for(var o=!1,a=e[i],s=0,l=t.length;s<l;++s){var u=(h=t[s]).Geometry;if(a.equals(u)&&"Control"===h.Type){o=!0;break}}if(!o)(h=new f.Feature({geometry:this.geometryConvertor.toGeometry(a)})).setStyle(this.controlSymbol),h.Geometry=a,h.Element=new d({geometry:a}),h.Type="Control",t.splice(i+1,0,h),this.layer.getSource().addFeature(h)}for(i=0,r=n.length;i<r;++i){for(o=!1,a=n[i],s=0,l=t.length;s<l;++s){var h;u=(h=t[s]).Geometry;if(a.equals(u)&&"Middle"===h.Type){o=!0;break}}if(!o)(h=new f.Feature({geometry:this.geometryConvertor.toGeometry(a)})).setStyle(this.middleSymbol),h.Geometry=a,h.Element=new d({geometry:a}),h.Type="Middle",this.features.push(h),t.splice(e.length+i+1,0,h),this.layer.getSource().addFeature(h)}}).call(this,n,o,a);else if(n.length>o.length+a.length+4)for(var s=function(t,e,n){for(var i=[],r=0,o=t.length;r<o;++r){for(var a=t[r],s=a.Geometry,l=!1,u=0,h=e.length;u<h;++u){if(e[u].equals(s)&&"Control"===a.Type){l=!0;break}}for(u=0,h=n.length;u<h;++u){if(n[u].equals(s)&&"Middle"===a.Type){l=!0;break}}l||"Control"!==a.Type&&"Middle"!==a.Type||i.push(a)}return i}(n,o,a),l=0,u=s.length;l<u;++l){var h=s[l],c=n.indexOf(h);n.splice(c,1),this.layer.getSource().removeFeature(h),this._hashMap.remove(h.Element)}}}.call(this,t),this.highLightFeatures(n)):this.highLightPlotElement(e);else if(e instanceof d){var n;(n=t.HighLight)?this.highLightFeatures(n):this.highLightElement(e)}}},h.prototype.highLightFeatures=function(t){for(var e=0,n=t.length;e<n;++e){var i=t[e],r=i.getGeometry();r&&r.dispose(),i.setGeometry(this.geometryConvertor.toGeometry(i.Geometry))}},h.prototype.highLightElement=function(t){var e=t.geometry;if(e){var n=l(e,this.controlSymbol),i=this._hashMap;n.forEach(function(t){i.put(t.Element,t)}),this.drawFeature(this.feature,n)}},h.prototype.highLightPlotElement=function(t){var e,n;this.features.splice(0,this.features.length);var i=t.elements[t.elements.length-1],r=this.canvas.lookup(i);r&&(n=r.getStyle())&&(Array.isArray(n)?e=n[0].getZIndex()+1:n.getZIndex&&(e=n.getZIndex()+1));for(var o=t.plot.controlPoints,a=0,s=o.length;a<s;a++){(c=new f.Feature({geometry:this.geometryConvertor.toGeometry(o[a])})).setStyle(this.controlSymbol),c.Geometry=o[a],c.Element=new d({geometry:o[a]}),c.Type="Control",this.features.push(c)}1<=o.length&&((c=new f.Feature({geometry:this.geometryConvertor.toGeometry(t.plot.rotatePoint)})).setStyle(this.rotateSymbol),c.Geometry=t.plot.rotatePoint,c.Element=new d({geometry:t.plot.rotatePoint}),c.Type="Rotate",this.features.push(c),(c=new f.Feature({geometry:this.geometryConvertor.toGeometry(t.plot.centerPoint)})).setStyle(this.centerSymbol),c.Geometry=t.plot.centerPoint,c.Element=new d({geometry:t.plot.centerPoint}),c.Type="Center",this.features.push(c));var l=y(t);if("FreePolygonAlgorithm"===l||"FreePolylineAlgorithm"===l||"PolygonAlgorithm"===l||"PolylineAlgorithm"===l){var u=t.plot.middlePoints;for(a=0,s=u.length;a<s;++a){(c=new f.Feature({geometry:this.geometryConvertor.toGeometry(u[a])})).setStyle(this.middleSymbol),c.Geometry=u[a],c.Element=new d({geometry:u[a]}),c.Type="Middle",this.features.push(c)}var h=t.plot.extendPoints;for(a=0,s=h.length;a<s;++a){var c;(c=new f.Feature({geometry:this.geometryConvertor.toGeometry(h[a])})).setStyle(this.extendSymbol),c.Geometry=h[a],c.Element=new d({geometry:h[a]}),c.Type="Extend",this.features.push(c)}}for(var p=0;p<this.features.length;p++)this.features[p].getStyle().setZIndex(e);this.drawFeature(this.feature,this.features)},h.prototype.drawFeature=function(t,e){t&&(t.HighLight=e),e&&this.layer.getSource().addFeatures(e)},r.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(15),n(32),n(28),n(31),n(119),n,e,t],void 0===(r=function(e,i,r,o,a,t,n,s){function l(t){this.color=new e({r:0,g:255,b:255,a:255}),this.canvas=t.canvas,this.symbolconvertor=t.symbolConvertor}return l.prototype.select=function(t){var e,n=this.canvas.lookup(t),i=this.createSymbol(t),r=n.getStyle();if(e=0<r.length?r[0].getZIndex():r.getZIndex(),n.setStyle(this.symbolconvertor.toSymbol(i)),r=n.getStyle(),"number"==typeof e)if(0<r.length)for(var o=0;o<r.length;o++)r[o].setZIndex(e);else r.setZIndex(e)},l.prototype.unSelect=function(t){this.canvas.update(t,!0)},l.prototype.createSymbol=function(t){var e=t.symbol.copy();if(e.zIndex=t.symbol.zIndex,e instanceof i)e.borderColor=this.color,e.borderThickness+=1;else if(e instanceof r)e.color=this.color,e.width+=1;else if(e instanceof a){var n=e.lineSymbols[0];n.color=this.color,n.width+=1}else e instanceof o&&(e.fillColor=this.color);return e},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(167),n(123),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.group=e.group,this.code=e.code,this.statItems=[]}return t.extend2(a,n),a.prototype.add=function(t){this.statItems.push(t)},a.prototype.remove=function(t){var e=this.statItems.indexOf(t);this.statItems.splice(e,1)},a.prototype.getCount=function(){return this.statItems.length},a.prototype.getItem=function(t){return this.statItems[t]},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.ways=e.ways,this.broweName=e.broweName}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(167),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.group=e.group,this.kindItems=[]}return t.extend2(o,n),o.prototype.add=function(t){this.kindItems.push(t)},o.prototype.remove=function(t){var e=this.kindItems.indexOf(t);this.kindItems.splice(e,1)},o.prototype.getCount=function(){return this.kindItems.length},o.prototype.getItem=function(t){return this.kindItems[t]},o.prototype.contains=function(t){for(var e=0;e<this.kindItems.length;++e){if(this.kindItems[e].kind==t.kind)return!0}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.name=e.name,this.alias=e.alias,this.type=e.type}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(9),n(8),n(17),n(1),n,e,t],void 0===(r=function(c,r,p,o,t,e,n){function i(t,e,n){if(t){var i;switch(t.getGeometryType()){case r.Polyline:i=function(t,e,n){for(var i,r=[],o=t.getGeometryCount(),a=0;a<o;++a)for(var s=0,l=(i=t.getGeometry(a).points).length;s<l;s++){var u=i[s],h=new c.Feature({geometry:new c.geom.Point([u.x,u.y])});h.setStyle(e),h[n]=new p({geometry:u}),h.Geometry=u,r.push(h)}return r}(t,e,n);break;case r.Polygon:i=function(t,e,n){for(var i,r=[],o=t.getGeometryCount(),a=0;a<o;++a)for(var s=0,l=(i=t.getGeometry(a).points).length;s<l;s++){var u=i[s],h=new c.Feature({geometry:new c.geom.Point([u.x,u.y])});h.setStyle(e),h[n]=new p({geometry:u}),h.Geometry=u,r.push(h)}return r}(t,e,n);break;case r.Point:i=function(t,e,n){var i=[];if(null!=t){var r=new c.Feature({geometry:new c.geom.Point([t.x,t.y])});r.setStyle(e),r[n]=new p({geometry:t}),i.push(r)}return i}(t,e,n);break;case r.Envelope:i=function(t,e){var n=[],i=new c.Feature({geometry:new c.geom.Point([t.minx,t.miny]),style:e}),r=new o({x:t.minx,y:t.miny});return i.Geometry=r,n.push(i),i=new c.Feature({geometry:new c.geom.Point([t.maxx,t.maxy]),style:e}),r=new o({x:t.maxx,y:t.maxy}),i.Geometry=r,n.push(i),n}(t,e)}return i}}function a(t){this.source=t.source,this.symbol=new c.style.Style({image:new c.style.Circle({fill:new c.style.Fill({color:"blue"}),radius:6})})}var s="Feature",l="Vector";return a.prototype.highlight=function(t){var e;if(s in t)e=i(t[s].geometry,this.symbol,s);else if(l in t){e=i(t[l],this.symbol,l)}e&&(t.highs=e,this.source.addFeatures(e))},a.prototype.unHighlight=function(t){if(t){var e=t.highs,n=this;e&&e instanceof Array&&e.forEach(function(t){n.source.removeFeature(t)}),t.highs=void 0}},n.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(51),n(34),n(63),n,e,t],void 0===(r=function(t,e,s,l,n,i,r){function o(t){t=t||{},e.call(this,t),this.symbol=t.symbol,this.showLabel=t.showLabel||!1,this.labelField=t.labelField,this._cachedSymbols={},this.$type="SimpleRenderer,http://www.Gs.com"}function a(t,e,n){if(this.showLabel){var i=t.getValue(this.labelField)+"",r=i+"_"+n;if(!this._cachedSymbols.hasOwnProperty(r)){var o,a=e.copy();(this._cachedSymbols[r]=a)instanceof s?o=a:a instanceof l&&(o=a.textSymbol),o.text=i}return this._cachedSymbols[r]}return e}return t.extend2(o,e),o.prototype.canRender=function(){return!0},o.prototype.render=function(t){return a.call(this,t,this.symbol,0)},o.prototype.renderSymbol=function(t,e){return a.call(this,t,e,1)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(80),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.url=t.url,this.extent=t.extent,this.crossOrigin=t.crossOrigin}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.Image},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.id=t.id,this.name=t.name,this.state=t.state,this.type=t.type}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(131),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.serviceFix=t.serviceFix,this.url=t.url,this.deserializer=t.deserializer,this.http=t.http}return o.prototype.findAll=function(){var t="{url}/wscs/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findAll";return this._getRequestWithSerializer(t)},o.prototype._getRequestWithSerializer=function(t){return function(t,e){return t.then(function(t){try{return e.createJsInstance(t)}catch(t){throw console.error(t),t}},function(t){throw console.error(t),t})}(this.http.get(t,"json",null,"application/json"),this.deserializer)},o.prototype._getRequest=function(t){return function(t){return t.then(function(t){return t},function(t){throw console.error(t),t})}(this.http.get(t,"json",null,"application/json"),this.deserializer)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(174),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.$type="StyleDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(1),n(10),n(60),n(36),n(132),n(40),n(179),n,e,t],void 0===(r=function(h,t,e,n,i,r,o,a,s,l){function u(t){t=t||{},this._defaultNullImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAMAAACxxtKFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5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3rVf0zvRJjvHWuHa3bvl/D3oQBzIfwX5J8AAnSy6LXnsmpQAAAAASUVORK5CYII=",this._lastScreenX=0,this._lastScreenY=0,this.cursor=t.cursor||"pointer",this.map=t.map,this._heading=t.heading||-40,this._pitch=t.pitch||6,this._waitTime=t.waitTime||300,this._navigationControl=null==t.navigationControl||t.navigationControl,this._linksControl=null==t.linksControl||t.linksControl,this._cancel=null==t.cancel||t.cancel,this._pano=null,this._projectService=new n,this.toolTipWare=new i({map:this.map});var e=new h({spatialReference:this.map.getSrid()});this.toolTip=new r({anchor:e,content:'<img src= "'+this._defaultNullImage+'" /><br /><div class="pano_icon"></div>',id:"PanoImage",className:"pano_tooltip",offset:t.offset||[-8,-42],stopEvent:!1}),(c=this).controlClickFun=function(){c.map.setCursor(c.cursor),c.toolTipWare.add(c.toolTip,!0),c.toolTipWare.show("PanoImage",!1),c.toolTip.content='<img src= "'+c._defaultNullImage+'" /><br /><div class="pano_icon"></div>',function(e){e.on("mousemove",c.mouseMove),e.on("click",c.mouseClick),c._rightClick=function(t){t&&t.preventDefault(),e.un("mousemove",c.mouseMove),e.setCursor("default"),c.toolTipWare.remove("PanoImage"),e.un("click",c.mouseClick),e.map.getViewport().removeEventListener("contextmenu",c._rightClick),c._cancelEvent.raiseEvent()},c._cancel&&e.map.getViewport().addEventListener("contextmenu",c._rightClick)}(c.map)},this._hidePanoDiv=document.createElement("div"),this._hidePanoDiv.className="Hide_pano",this._hidePanoDiv.title="退出全景",this._hidePanoDiv.onclick=function(){c.map.getMapControl().getViewport().parentNode.style.display="block",c.map.panoContainer.style.display="none",c.map.panoContainer.innerHTML="",c._pano=null,c._exitEvent.raiseEvent()},this._enterEvent=new o,this._exitEvent=new o,this._cancelEvent=new o}var c;return t(u.prototype,{heading:{get:function(){return this._heading},set:function(t){this._heading=t}},pitch:{get:function(){return this._pitch},set:function(t){this._pitch=t}},navigationControl:{get:function(){return this._navigationControl},set:function(t){this._navigationControl=t}},linksControl:{get:function(){return this._linksControl},set:function(t){this._linksControl=t}},cancel:{get:function(){return this._cancel},set:function(t){this._cancel=t}}}),u.prototype.mouseMove=function(t,e,n,i,r,o,a){var s=c.toolTip.content.indexOf("<div"),l=c.toolTip.content.substr(s);n>c._lastScreenX?c.toolTip.content=c.toolTip.content.replace(l,'<div class="pano_icon_right"></div>'):n<c._lastScreenX&&(c.toolTip.content=c.toolTip.content.replace(l,'<div class="pano_icon_left"></div>')),c._lastScreenX=n,c._lastScreenY=i;var u=new h({x:r,y:o,spatialReference:c.map.getSrid()});c.toolTip.anchor=u},u.prototype.mouseClick=function(t,e,n,i,r,o,a){this._lastScreenX=n,this._lastScreenY=i;var s=new h({x:r,y:o,spatialReference:c.map.getSrid()});this.toolTip.anchor=s},u.prototype.addEnterEvent=function(t){this._enterEvent.addEventListener(t,this)},u.prototype.removeEnterEvent=function(t){this._enterEvent.removeEventListener(t,this)},u.prototype.addExitEvent=function(t){this._exitEvent.addEventListener(t,this)},u.prototype.removeExitEvent=function(t){this._exitEvent.removeEventListener(t,this)},u.prototype.addCancelEvent=function(t){this._cancelEvent.addEventListener(t,this)},u.prototype.removeCancelEvent=function(t){this._cancelEvent.removeEventListener(t,this)},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(305),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){e.call(this,t),this.container={},this.elements=[],this.IdContainer={},this.tooltips=[],this.excluseLayerIds=t.excluseLayerIds||[],this.map=t.map.map,this.lastTip=null,t.baseUrl;var s=this;this.createContainer=function(e){var n=document.createElement("div");function i(){for(var t=0,e=s.elements.length;t<e;++t)s.elements[t].style.zIndex=1;n.style.zIndex=2}if(n.className=e.className||"ol-popup",n.style.display="block",n.style.zIndex=2,n.addEventListener("click",i,!0),i(),e.title){var r=document.createElement("button");e.id;r.addEventListener("click",function t(){n.style.display="none",n.blur(),s.remove(e.id),e.onClose&&(e.onClose(),e.onClose=null),r.removeEventListener("click",t),n.removeEventListener("click",i)},!1),r.className="close right1",r.style.backgroundImage="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAABaklEQVRYR+3WMUsdQRTF8Z/Bws6kECzShhRqBAu/gI0ETRNIxDSpbAIRWz+DhV9ABAttLBSRFCFtIISQQoyCIjaCCEIC9srABB6PF+fNLIQnzDa77J2d8+ece4ft02NXX4/xqECpRKpD1aGUA6l67aHqUMqBVL20hwbxJ7V5Sb0UaAHf8fMfoqNYxnwuVCnQbRQKwodtok+xiwm8xKccqFKgb5iMQiP4FZ8HsI453OADNv4HUNDYw0wUe45+bGIcAXgx3nN4Gv9+bOM1QoQB5h3OMIXzLJK4uDSyVq0rDLW8eIbTEpjwTVOgR9jBbAvA4yZHQhOgYaziLa7xBW86NHqWWaVAYbK2MIaveI+TOO6vIsELHGTRNIgsnC3TuIwN/Hfs26fvCX7nQJU6FKbqGB/xuYPgfjwUl2KsXTOVAoVYfuDiHqU1rOCoa5oGkeVoZK0tdShLJGdxBUq5VR2qDqUcSNVrDz04h+4AFYwxJbxXuaoAAAAASUVORK5CYII=)",r.style.width="36px",r.style.height="36px",r.style.backgroundSize="100% 100%";var t=document.createElement("div");t.innerHTML=e.title,t.style.styleFloat="left",t.style.cssFloat="left";var o=document.createElement("div");o.className="div-header1",o.appendChild(t),o.appendChild(r),n.appendChild(o)}var a=document.createElement("div");return a.className="popup-content",a.innerHTML=e.content,n.appendChild(a),this.elements.push(n),n}}return t.extend2(o,e),o.prototype.removeOverlay=function(t){var e=t.getElement();if(e){var n=this.elements.indexOf(e);this.elements.splice(n,1),this.tooltips.splice(n,1)}},o.prototype.clear=function(){for(var t in this.container){var e=this.container[t];if(e instanceof Array){for(var n=e.length,i=0;i<n;++i){(o=e[i])&&o.onClose&&(o.onClose(),o.onClose=null),this.map.removeOverlay(o)}e.splice(0,n)}delete this.container[t]}for(var r in this.IdContainer){var o;(o=this.IdContainer[r])&&this.map.removeOverlay(o),delete this.IdContainer[r]}this.tooltips.length=0,this.elements.length=0},o.prototype.remove=function(t){var e=null,n=this;if(t in this.container){var i=this.container[t];i.forEach(function(t){if(t){t.onClose&&(t.onClose(),t.onClose=null),n.map.removeOverlay(t),n.removeOverlay(t);var e=n.elements.indexOf(t.getElement());0<=e&&(n.elements.splice(e,1),n.tooltips.splice(e,1))}}),i.length=0,delete this.container[t]}if(t in this.IdContainer){if(e=this.IdContainer[t]){this.map.removeOverlay(e),this.removeOverlay(e);var r=this.elements.indexOf(e.getElement());0<=r&&(this.elements.splice(r,1),this.tooltips.splice(r,1))}delete this.IdContainer[t]}},o.prototype.add=function(t,e){this.map.addOverlay(t),e&&(this.lastTip&&-1==this.excluseLayerIds.indexOf(this.lastTip.layerId)&&(this.remove(this.lastTip.layerId),this.remove(this.lastTip.id)),this.lastTip=null)},o.prototype.update=function(t){if(this.IdContainer[t.id]){var e=this.createContainer(t);this.IdContainer[t.id].setElement(e),this.IdContainer[t.id].setOffset(t.offset),this.IdContainer[t.id].setPosition([t.anchor.x,t.anchor.y])}},o.prototype.show=function(t,e){var n="block";n=e?"block":"none",t in this.container&&this.container[t].forEach(function(t){t&&(t.getElement().style.display=n)});if(t in this.IdContainer){var i=this.IdContainer[t];if(i)i.getElement().style.display=n}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(10),n,e,t],void 0===(r=function(t,e,n,i){function r(){this._listeners=[],this._toRemove=[],this._scopes=[],this._insideRaiseEvent=!0}function a(t,e){return e-t}return t(r.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}}),r.prototype.removeAll=function(){this._listeners,this._scopes},r.prototype.addEventListener=function(t,e){this._listeners.push(t),this._scopes.push(e);var n=this;return function(){n.removeEventListener(t,e)}},r.prototype.removeEventListener=function(t,e){for(var n=this._listeners,i=this._scopes,r=-1,o=0;o<n.length;o++)if(n[o]===t&&i[o]===e){r=o;break}return-1!==r&&(this._insideRaiseEvent?(this._toRemove.push(r),n[r]=void 0,i[r]=void 0):(n.splice(r,1),i.splice(r,1)),!0)},r.prototype.raiseEvent=function(){var t;this._insideRaiseEvent=!0;var e=this._listeners,n=this._scopes,i=e.length;for(t=0;t<i;t++){e[t]&&e[t].apply(n[t],arguments)}var r=this._toRemove;if(0<(i=r.length)){for(r.sort(a),t=0;t<i;t++){var o=r[t];e.splice(o,1),n.splice(o,1)}r.length=0}this._insideRaiseEvent=!1},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(309),n(59),n(181),n(36),n(182),n,e,t],void 0===(r=function(t,e,a,n,i,d,r,o,s){function l(t){t=t||{},e.call(this,t),this._projectService=t.projectService||new i,this._convertor=new n({projectService:this._projectService})}var u={units:"kilometers"},h={tolerance:.01,highQuality:!1};function c(t,n){for(var e=n.geometry.coordinates,i=d.polygon([e[0]]),r=[],o=1,a=e.length;o<a;++o)r.push(d.polygon([e[o]]));var s=d.polygonToLineString(i),l=d.lineIntersect(s,t),u=[];if(2<=l.features.length){var h=d.combine(l).features[0],c=d.lineSplit(s,h),p=d.lineSplit(t,h),f=d.featureCollection(c.features.concat(p.features));u=d.polygonize(f).features.filter(function(t){var e=d.centroid(t);return d.booleanWithin(e,n)}).map(function(t){var e=t;return r.forEach(function(t){e=d.difference(e,t)}),e})}return u}return t.extend2(l,e),l.prototype.boundary=function(t){if(o=this._convertor.toGeometry(t)){var e=d.polygonToLine(o),n=e.type;if("FeatureCollection"===n){var i=this,r=new a({spatialReference:t.getSpatialReference()});return e.features.forEach(function(t){r.addGeometry(i._convertor.fromGeometry(t.geometry))}),this._projectService.transform(r,t.getSpatialReference())}if("Feature"===n){var o=this._convertor.fromGeometry(e.geometry);return this._projectService.transform(o,t.getSpatialReference())}}},l.prototype.buffer=function(t,e){var n=this._convertor.toGeometry(t);if(n)return n=this._convertor.fromGeometry(d.buffer(n,e/1e3,u).geometry),this._projectService.transform(n,t.getSpatialReference())},l.prototype.simplify=function(t,e){null!=e&&(h.tolerance=e);var n=this._convertor.toGeometry(t);if(n)return n=this._convertor.fromGeometry(d.simplify(n,h).geometry),this._projectService.transform(n,t.getSpatialReference())},l.prototype.convexHull=function(t){var e=this._convertor.toGeometry(t);if(e)return e=this._convertor.fromGeometry(d.convex(e).geometry),this._projectService.transform(e,t.getSpatialReference())},l.prototype.difference=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);if(n&&i){var r=this._convertor.fromGeometry(d.difference(n,i).geometry);return this._projectService.transform(r,t.getSpatialReference())}},l.prototype.intersect=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);if(n&&i){var r=this._convertor.fromGeometry(d.intersect(n,i).geometry);return this._projectService.transform(r,t.getSpatialReference())}},l.prototype.union=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);if(n&&i){var r=this._convertor.fromGeometry(d.union(n,i).geometry);return this._projectService.transform(r,t.getSpatialReference())}},l.prototype.symmetricDifference=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);if(n&&i){var r=d.union(n,i),o=d.intersect(n,i),a=d.mask(r,o),s=this._convertor.fromGeometry(a.geometry);return this._projectService.transform(s,t.getSpatialReference())}},l.prototype.clip=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e),r=d.bbox(i);if(n&&i){var o=this._convertor.fromGeometry(d.bboxClip(n,r).geometry);return this._projectService.transform(o,t.getSpatialReference())}},l.prototype.cut=function(n,t){var e=this._convertor.toGeometry(n),i=this._convertor.toGeometry(t),r=[];if(e&&i){var o=function(t,e){var n=d.truncate(t,{precision:7});switch(d.getType(e)){case"Polygon":return c(n,e);case"MultiPolygon":for(var i=[],r=e.geometry.coordinates,o=0,a=r.length;o<a;++o)c(n,d.polygon(r[o])).forEach(function(t){i.push(t)});return i;case"LineString":case"MultiLineString":var s=d.lineIntersect(e,n),l=d.combine(s).features[0];return d.lineSplit(e,l).features}}(e,i),a=this;return o.forEach(function(t){var e=a._convertor.fromGeometry(t.geometry);r.push(a._projectService.transform(e,n.getSpatialReference()))}),r}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(147),n(182),n(8),n(52),n(1),n(29),n(48),n(5),n(74),n(59),n(24),n(58),n(36),n,e,t],void 0===(r=function(t,e,l,n,i,r,o,u,h,a,s,c,p,f,d,y,m){var g=Math.PI/180,v=v||function(){for(var t=[],e=0;e<=360;++e){var n=g*e;t.push([Math.sin(n),Math.cos(n)])}return t}();function x(t){t=t||{},e.call(this),this._projectService=t.projectService||new f}function _(t){return t?[t.x,t.y]:null}function w(t){if(!t)return null;var e=[];return t.forEach(function(t){e.push(_(t))}),e}function b(t){if(t){var e=t.type,n=t.coordinates;switch(e){case"Point":return function(t){var e=C(t);return e.setSpatialReference(4326),e}(n);case"LineString":return P(n);case"Polygon":return S(n);case"MultiPoint":return function(t){for(var e=new a({spatialReference:4326}),n=0,i=t.length;n<i;++n)e.addGeometry(C(t[n]));return e}(n);case"MultiLineString":return function(t){for(var e=new s({spatialReference:4326}),n=0,i=t.length;n<i;++n)e.addGeometry(P(t[n]));return e}(n);case"MultiPolygon":return function(t){for(var e=new c({spatialReference:4326}),n=0,i=t.length;n<i;++n)e.addGeometry(S(t[n]));return e}(n);case"GeometryCollection":return function(t){var e=new p;e.setSpatialReference(4326);for(var n=0,i=t.length;n<i;n++)e.geometries.push(b(t[n]));return e}(t.geometries)}}}function P(t){for(var e=new o({spatialReference:4326}),n=0,i=t.length;n<i;++n)e.addPoint(C(t[n]));return e}function S(t){for(var e=new h({spatialReference:4326}),n=0,i=t.length;n<i;++n){for(var r=new u,o=t[n],a=0,s=o.length;a<s;a++)r.addPoint(C(o[a]));e.addGeometry(r)}return e}function C(t){return new r({x:t[0],y:t[1]})}return t.extend2(x,e),x.prototype.toGeometry=function(t){return function(t){if(!t)return null;switch(t.getGeometryType()){case n.Point:return function(t){return null==t?null:l.point(_(t))}(t);case n.LineString:return function(t){if(!t)return null;var e=w(t.points);return l.lineString(e)}(t);case n.Polygon:return function(t){if(!t)return null;for(var e=[],n=t.getGeometryCount(),i=0;i<n;i++){var r=w(t.getGeometry(i).points);e.push(r)}return l.polygon(e)}(t);case n.MultiPoint:return function(t){if(!t)return null;var e=w(t.points);return l.multiPoint(e)}(t);case n.MultiLineString:return function(t){if(!t)return;for(var e=[],n=0,i=t.numGeometries();n<i;++n)e.push(w(t.geometryN(n).points));return l.multiLineString(e)}(t);case n.MultiPolygon:return function(t){if(!t)return;for(var e,n=[],i=0,r=t.numGeometries();i<r;++i){for(var o=[],a=(e=t.geometryN(i)).numGeometries(),s=0;s<a;s++)o.push(w(e.getGeometry(s).points));n.push(o)}return l.multiPolygon(n)}(t);case n.Polyline:return function(t){if(!t)return;for(var e=[],n=0,i=t.getGeometryCount();n<i;++n)e.push(w(t.getGeometry(n).points));return l.multiLineString(e)}(t);case n.Envelope:return function(t){var e=[t.minx,t.miny,t.maxx,t.maxy];return new l.bboxPolygon(e)}(t);case n.Circle:return function(t){if(!t)return;for(var e=t.radius,n=t.center,i=[],r=0,o=v.length;r<o;++r){var a=v[r];i.push([n.x+e*a[1],n.y+e*a[0]])}return l.polygon([i])}(t);case n.Ellipse:return function(t){if(t){for(var e=t.center,n=t.axisX,i=t.axisY,r=[],o=0,a=v.length;o<a;++o){var s=v[o];r.push([e.x+n*s[1],e.y+i*s[0]])}return l.polygon([r])}}(t);default:return null}}(this._projectService.transform(t,4326))},x.prototype.fromGeometry=function(t){return b(t)},m.exports=x}.apply(e,i))||(t.exports=r)},function(t,e,n){!function(t){"use strict";function G(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.bbox,r=n.id;if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");i&&g(i),r&&x(r);var o={type:"Feature"};return r&&(o.id=r),i&&(o.bbox=i),o.properties=e||{},o.geometry=t,o}function e(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i,r=n.bbox;if(!t)throw new Error("type is required");if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");switch(r&&g(r),t){case"Point":i=j(e).geometry;break;case"LineString":i=q(e).geometry;break;case"Polygon":i=V(e).geometry;break;case"MultiPoint":i=o(e).geometry;break;case"MultiLineString":i=h(e).geometry;break;case"MultiPolygon":i=l(e).geometry;break;default:throw new Error(t+" is invalid")}return r&&(i.bbox=r),i}function j(t,e,n){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!U(t[0])||!U(t[1]))throw new Error("coordinates must contain numbers");return G({type:"Point",coordinates:t},e,n)}function n(t,e,n){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");return B(t.map(function(t){return j(t,e)}),n)}function V(t,e,n){if(!t)throw new Error("coordinates is required");for(var i=0;i<t.length;i++){var r=t[i];if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<r[r.length-1].length;o++){if(0===i&&0===o&&!U(r[0][0])||!U(r[0][1]))throw new Error("coordinates must contain numbers");if(r[r.length-1][o]!==r[0][o])throw new Error("First and last Position are not equivalent.")}}return G({type:"Polygon",coordinates:t},e,n)}function i(t,e,n){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");return B(t.map(function(t){return V(t,e)}),n)}function q(t,e,n){if(!t)throw new Error("coordinates is required");if(t.length<2)throw new Error("coordinates must be an array of two or more positions");if(!U(t[0][1])||!U(t[0][1]))throw new Error("coordinates must contain numbers");return G({type:"LineString",coordinates:t},e,n)}function r(t,e,n){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");return B(t.map(function(t){return q(t,e)}),n)}function B(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.bbox,i=e.id;if(!t)throw new Error("No features passed");if(!Array.isArray(t))throw new Error("features must be an Array");n&&g(n),i&&x(i);var r={type:"FeatureCollection"};return i&&(r.id=i),n&&(r.bbox=n),r.features=t,r}function h(t,e,n){if(!t)throw new Error("coordinates is required");return G({type:"MultiLineString",coordinates:t},e,n)}function o(t,e,n){if(!t)throw new Error("coordinates is required");return G({type:"MultiPoint",coordinates:t},e,n)}function l(t,e,n){if(!t)throw new Error("coordinates is required");return G({type:"MultiPolygon",coordinates:t},e,n)}function a(t,e,n){if(!t)throw new Error("geometries is required");if(!Array.isArray(t))throw new Error("geometries must be an Array");return G({type:"GeometryCollection",geometries:t},e,n)}function s(t,e){if(null==t||isNaN(t))throw new Error("num is required");if(e&&!(0<=e))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function d(t,e){if(null==t)throw new Error("radians is required");if(e&&"string"!=typeof e)throw new Error("units must be a string");var n=yo[e||"kilometers"];if(!n)throw new Error(e+" units is invalid");return t*n}function y(t,e){if(null==t)throw new Error("distance is required");if(e&&"string"!=typeof e)throw new Error("units must be a string");var n=yo[e||"kilometers"];if(!n)throw new Error(e+" units is invalid");return t/n}function u(t,e){return f(y(t,e))}function p(t){if(null==t)throw new Error("bearing is required");var e=t%360;return e<0&&(e+=360),e}function f(t){if(null==t)throw new Error("radians is required");return t%(2*Math.PI)*180/Math.PI}function v(t){if(null==t)throw new Error("degrees is required");return t%360*Math.PI/180}function c(t,e,n){if(null==t)throw new Error("length is required");if(!(0<=t))throw new Error("length must be a positive number");return d(y(t,e),n||"kilometers")}function m(t,e,n){if(null==t)throw new Error("area is required");if(!(0<=t))throw new Error("area must be a positive number");var i=go[e||"meters"];if(!i)throw new Error("invalid original units");var r=go[n||"kilometers"];if(!r)throw new Error("invalid final units");return t/i*r}function U(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function W(t){return!!t&&t.constructor===Object}function g(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(function(t){if(!U(t))throw new Error("bbox must only contain numbers")})}function x(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}function b(t,e,n){if(null!==t)for(var i,r,o,a,s,l,u,h,c=0,p=0,f=t.type,d="FeatureCollection"===f,y="Feature"===f,m=d?t.features.length:1,g=0;g<m;g++){s=(h=!!(u=d?t.features[g].geometry:y?t.geometry:t)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var v=0;v<s;v++){var x=0,_=0;if(null!==(a=h?u.geometries[v]:u)){l=a.coordinates;var w=a.type;switch(c=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":e(l,p,g,x,_),p++,x++;break;case"LineString":case"MultiPoint":for(i=0;i<l.length;i++)e(l[i],p,g,x,_),p++,"MultiPoint"===w&&x++;"LineString"===w&&x++;break;case"Polygon":case"MultiLineString":for(i=0;i<l.length;i++){for(r=0;r<l[i].length-c;r++)e(l[i][r],p,g,x,_),p++;"MultiLineString"===w&&x++,"Polygon"===w&&_++}"Polygon"===w&&x++;break;case"MultiPolygon":for(i=0;i<l.length;i++){for("MultiPolygon"===w&&(_=0),r=0;r<l[i].length;r++){for(o=0;o<l[i][r].length-c;o++)e(l[i][r][o],p,g,x,_),p++;_++}x++}break;case"GeometryCollection":for(i=0;i<a.geometries.length;i++)b(a.geometries[i],e,n);break;default:throw new Error("Unknown Geometry Type")}}}}}function _(t,o,a,e){var s=a;return b(t,function(t,e,n,i,r){s=0===e&&void 0===a?t:o(s,t,e,n,i,r)},e),s}function w(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length;n++)e(t.features[n].properties,n);break;case"Feature":e(t.properties,0)}}function P(t,n,i){var r=i;return w(t,function(t,e){r=0===e&&void 0===i?t:n(r,t,e)}),r}function S(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)e(t.features[n],n)}function C(t,n,i){var r=i;return S(t,function(t,e){r=0===e&&void 0===i?t:n(r,t,e)}),r}function M(t){var e=[];return b(t,function(t){e.push(t)}),e}function T(t,e){var n,i,r,o,a,s,l,u,h,c,p=0,f="FeatureCollection"===t.type,d="Feature"===t.type,y=f?t.features.length:1;for(n=0;n<y;n++){for(s=f?t.features[n].geometry:d?t.geometry:t,u=f?t.features[n].properties:d?t.properties:{},h=f?t.features[n].bbox:d?t.bbox:void 0,c=f?t.features[n].id:d?t.id:void 0,a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,r=0;r<a;r++)if(null!==(o=l?s.geometries[r]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":e(o,p,u,h,c);break;case"GeometryCollection":for(i=0;i<o.geometries.length;i++)e(o.geometries[i],p,u,h,c);break;default:throw new Error("Unknown Geometry Type")}else e(null,p,u,h,c);p++}}function A(t,o,a){var s=a;return T(t,function(t,e,n,i,r){s=0===e&&void 0===a?t:o(s,t,e,n,i,r)}),s}function E(t,s){T(t,function(t,n,i,e,r){var o,a=null===t?null:t.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return void s(G(t,i,{bbox:e,id:r}),n,0)}switch(a){case"MultiPoint":o="Point";break;case"MultiLineString":o="LineString";break;case"MultiPolygon":o="Polygon"}t.coordinates.forEach(function(t,e){s(G({type:o,coordinates:t},i),n,e)})})}function I(t,i,r){var o=r;return E(t,function(t,e,n){o=0===e&&0===n&&void 0===r?t:i(o,t,e,n)}),o}function L(t,c){E(t,function(s,l,u){var h=0;if(s.geometry){var t=s.geometry.type;"Point"!==t&&"MultiPoint"!==t&&_(s,function(t,e,n,i,r,o){var a=q([t,e],s.properties);return c(a,l,u,o,h),h++,e})}})}function R(t,o,a){var s=a,l=!1;return L(t,function(t,e,n,i,r){s=!1===l&&void 0===a?t:o(s,t,e,n,i,r),l=!0}),s}function O(t,a){if(!t)throw new Error("geojson is required");E(t,function(t,e,n){if(null!==t.geometry){var i=t.geometry.type,r=t.geometry.coordinates;switch(i){case"LineString":a(t,e,n,0,0);break;case"Polygon":for(var o=0;o<r.length;o++)a(q(r[o],t.properties),e,n,o)}}})}function N(t,r,o){var a=o;return O(t,function(t,e,n,i){a=0===e&&void 0===o?t:r(a,t,e,n,i)}),a}function Z(t){var e=[1/0,1/0,-1/0,-1/0];return b(t,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}function X(t){if(!t)throw new Error("obj is required");var e=k(t);if(1<e.length&&U(e[0])&&U(e[1]))return e;throw new Error("Coordinate is not a valid Point")}function k(t){if(!t)throw new Error("obj is required");var e;if(t.length?e=t:t.coordinates?e=t.coordinates:t.geometry&&t.geometry.coordinates&&(e=t.geometry.coordinates),e)return z(e),e;throw new Error("No valid coordinates")}function z(t){if(1<t.length&&U(t[0])&&U(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return z(t[0]);throw new Error("coordinates must only contain numbers")}function D(t,e,n){if(!e||!n)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.type)}function F(t,e,n){if(!t)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!t||"Feature"!==t.type||!t.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.geometry.type)}function H(t,e,n){if(!t)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!t||"FeatureCollection"!==t.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var i=0;i<t.features.length;i++){var r=t.features[i];if(!r||"Feature"!==r.type||!r.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!r.geometry||r.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+r.geometry.type)}}function Y(t){if(!t)throw new Error("geojson is required");if(void 0!==t.geometry)return t.geometry;if(t.coordinates||t.geometries)return t;throw new Error("geojson must be a valid Feature or Geometry Object")}function K(){throw new Error("invariant.getGeomType has been deprecated in v5.0 in favor of invariant.getType")}function J(t,e){if(!t)throw new Error((e||"geojson")+" is required");if(t.geometry&&t.geometry.type)return t.geometry.type;if(t.type)return t.type;throw new Error((e||"geojson")+" is invalid")}function Q(t,e,n){n=n||{};for(var i=Object.keys(wo),r=0;r<i.length;r++){var o=i[r],a=n[o];a=null!=a?a:wo[o],bo[o]=a}bo.verbose&&console.log("MarchingSquaresJS-isoContours: computing isocontour for "+e);var s=function(u){var h=[],c=0;return u.rows,u.cols,u.cells.forEach(function(t,l){t.forEach(function(t,e){if(void 0!==t&&!function(t){return 5===t.cval||10===t.cval}(t)&&!tt(t)){var n=function(t,e,n){var i,r,o,a=t.length,s=[],l=[0,0,1,1,0,0,0,0,-1,0,1,1,-1,0,-1,0],u=[0,-1,0,0,1,1,1,1,0,-1,0,0,0,-1,0,0],h=["none","bottom","right","right","top","top","top","top","left","bottom","right","right","left","bottom","left","none"],c=(t[e][n],t[e][n]),p=c.cval,f=nt(c,o=["none","left","bottom","left","right","none","bottom","left","top","top","none","top","right","right","bottom","none"][p]);s.push([n+f[0],e+f[1]]),f=nt(c,o=h[p]),s.push([n+f[0],e+f[1]]),et(c);for(var d=n+l[p],y=e+u[p],m=p;0<=d&&0<=y&&y<a&&(d!=n||y!=e)&&void 0!==(c=t[y][d]);){if(0===(p=c.cval)||15===p)return{path:s,info:"mergeable"};o=h[p],i=l[p],r=u[p],5!==p&&10!==p||(5===p?c.flipped?r=(i=-1===u[m]?(o="left",-1):(o="right",1),0):-1===l[m]&&(o="bottom",i=0,r=-1):10===p&&(c.flipped?r=-1===l[m]?(o="top",i=0,1):(o="bottom",i=0,-1):1===u[m]&&(o="left",i=-1,r=0))),f=nt(c,o),s.push([d+f[0],y+f[1]]),et(c),d+=i,y+=r,m=p}return{path:s,info:"closed"}}(u.cells,l,e),i=!1;if("mergeable"===n.info)for(var r=n.path[n.path.length-1][0],o=n.path[n.path.length-1][1],a=c-1;0<=a;a--)if(Math.abs(h[a][0][0]-r)<=1e-7&&Math.abs(h[a][0][1]-o)<=1e-7){for(var s=n.path.length-2;0<=s;--s)h[a].unshift(n.path[s]);i=!0;break}i||(h[c++]=n.path)}})}),h}(function(t,e){for(var n=t.length-1,i=t[0].length-1,r={rows:n,cols:i,cells:[]},o=0;o<n;++o){r.cells[o]=[];for(var a=0;a<i;++a){var s=0,l=t[o+1][a],u=t[o+1][a+1],h=t[o][a+1],c=t[o][a];if(!(isNaN(l)||isNaN(u)||isNaN(h)||isNaN(c))){s|=e<=l?8:0,s|=e<=u?4:0,s|=e<=h?2:0;var p,f,d,y,m=!1;if(5==(s|=e<=c?1:0)||10===s){var g=(l+u+h+c)/4;5===s&&g<e?(s=10,m=!0):10===s&&g<e&&(s=5,m=!0)}if(0!==s&&15!==s)p=f=d=y=.5,1===s?(d=1-$(e,l,c),f=1-$(e,h,c)):2===s?(f=$(e,c,h),y=1-$(e,u,h)):3===s?(d=1-$(e,l,c),y=1-$(e,u,h)):4===s?(p=$(e,l,u),y=$(e,h,u)):5===s?(p=$(e,l,u),y=$(e,h,u),f=1-$(e,h,c),d=1-$(e,l,c)):6===s?(f=$(e,c,h),p=$(e,l,u)):7===s?(d=1-$(e,l,c),p=$(e,l,u)):8===s?(d=$(e,c,l),p=1-$(e,u,l)):9===s?(f=1-$(e,h,c),p=1-$(e,u,l)):10===s?(p=1-$(e,u,l),y=1-$(e,u,h),f=$(e,c,h),d=$(e,c,l)):11===s?(p=1-$(e,u,l),y=1-$(e,u,h)):12===s?(d=$(e,c,l),y=$(e,h,u)):13===s?(f=1-$(e,h,c),y=$(e,h,u)):14===s?(d=$(e,c,l),f=$(e,c,h)):console.log("MarchingSquaresJS-isoContours: Illegal cval detected: "+s),r.cells[o][a]={cval:s,flipped:m,top:p,right:y,bottom:f,left:d}}}}return r}(t,e));return"function"==typeof bo.successCallback&&bo.successCallback(s),s}function $(t,e,n){return(t-e)/(n-e)}function tt(t){return 0===t.cval||15===t.cval}function et(t){tt(t)||5===t.cval||10===t.cval||(t.cval=15)}function nt(t,e){return"top"===e?[t.top,1]:"bottom"===e?[t.bottom,0]:"right"===e?[1,t.right]:"left"===e?[0,t.left]:void 0}function it(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function rt(t,e){if(!(this instanceof rt))return new rt(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function ot(t,e){at(t,0,t.children.length,e,t)}function at(t,e,n,i,r){(r=r||dt(null)).minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o,a=e;a<n;a++)o=t.children[a],st(r,t.leaf?i(o):o);return r}function st(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function lt(t,e){return t.minX-e.minX}function ut(t,e){return t.minY-e.minY}function ht(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function ct(t){return t.maxX-t.minX+(t.maxY-t.minY)}function pt(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function ft(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function dt(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function yt(t,e,n,i,r){for(var o,a=[e,n];a.length;)(n=a.pop())-(e=a.pop())<=i||(o=e+Math.ceil((n-e)/i/2)*i,Po(t,o,e,n,r),a.push(e,o,o,n))}function mt(t,e){return t(e={exports:{}},e.exports),e.exports}function gt(t,e){if(!(this instanceof gt))return new gt(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||function(t,e){return t<e?-1:e<t?1:0},0<this.length)for(var n=(this.length>>1)-1;0<=n;n--)this._down(n)}function vt(t,e,n){e=Math.max(0,void 0===e?2:e),n=n||0;for(var i,r=function(t){for(var e=t[0],n=t[0],i=t[0],r=t[0],o=0;o<t.length;o++){var a=t[o];a[0]<e[0]&&(e=a),a[0]>i[0]&&(i=a),a[1]<n[1]&&(n=a),a[1]>r[1]&&(r=a)}var s=[e,n,i,r],l=s.slice();for(o=0;o<t.length;o++)No(t[o],s)||l.push(t[o]);var u=function(i){var t=i.length;if(t<3){for(var e=new Array(t),n=0;n<t;++n)e[n]=n;return 2===t&&i[0][0]===i[1][0]&&i[0][1]===i[1][1]?[0]:e}var r=new Array(t);for(n=0;n<t;++n)r[n]=n;r.sort(function(t,e){var n=i[t][0]-i[e][0];return n||i[t][1]-i[e][1]});var o=[r[0],r[1]],a=[r[0],r[1]];for(n=2;n<t;++n){for(var s=r[n],l=i[s],u=o.length;u>1&&Lo(i[o[u-2]],i[o[u-1]],l)<=0;)u-=1,o.pop();for(o.push(s),u=a.length;u>1&&Lo(i[a[u-2]],i[a[u-1]],l)>=0;)u-=1,a.pop();a.push(s)}e=new Array(a.length+o.length-2);for(var h=0,c=(n=0,o.length);n<c;++n)e[h++]=o[n];for(var p=a.length-2;p>0;--p)e[h++]=a[p];return e}(l),h=[];for(o=0;o<u.length;o++)h.push(l[u[o]]);return h}(t),o=So(16,["[0]","[1]","[0]","[1]"]).load(t),a=[],s=0;s<r.length;s++){var l=r[s];o.remove(l),i=Pt(l,i),a.push(i)}var u=So(16);for(s=0;s<a.length;s++)u.insert(bt(a[s]));for(var h=e*e,c=n*n;a.length;){var p=a.shift(),f=p.p,d=p.next.p,y=St(f,d);if(!(y<c)){var m=y/h;(l=function(t,e,n,i,r,o,a){for(var s=new Ro(null,xt),l=t.data;l;){for(var u=0;u<l.children.length;u++){var h=l.children[u],c=l.leaf?Ct(h,n,i):function(t,e,n){if(_t(t,n)||_t(e,n))return 0;var i=Mt(t[0],t[1],e[0],e[1],n.minX,n.minY,n.maxX,n.minY);if(0===i)return 0;var r=Mt(t[0],t[1],e[0],e[1],n.minX,n.minY,n.minX,n.maxY);if(0===r)return 0;var o=Mt(t[0],t[1],e[0],e[1],n.maxX,n.minY,n.maxX,n.maxY);if(0===o)return 0;var a=Mt(t[0],t[1],e[0],e[1],n.minX,n.maxY,n.maxX,n.maxY);return 0===a?0:Math.min(i,r,o,a)}(n,i,h);o<c||s.push({node:h,dist:c})}for(;s.length&&!s.peek().node.children;){var p=s.pop(),f=p.node,d=Ct(f,e,n),y=Ct(f,i,r);if(p.dist<d&&p.dist<y&&wt(n,f,a)&&wt(i,f,a))return f}(l=s.pop())&&(l=l.node)}return null}(o,p.prev.p,f,d,p.next.next.p,m,u))&&Math.min(St(l,f),St(l,d))<=m&&(a.push(p),a.push(Pt(l,p)),o.remove(l),u.remove(p),u.insert(bt(p)),u.insert(bt(p.next)))}}p=i;for(var g=[];g.push(p.p),(p=p.next)!==i;);return g.push(p.p),g}function xt(t,e){return t.dist-e.dist}function _t(t,e){return t[0]>=e.minX&&t[0]<=e.maxX&&t[1]>=e.minY&&t[1]<=e.maxY}function wt(t,e,n){for(var i=Math.min(t[0],e[0]),r=Math.min(t[1],e[1]),o=Math.max(t[0],e[0]),a=Math.max(t[1],e[1]),s=n.search({minX:i,minY:r,maxX:o,maxY:a}),l=0;l<s.length;l++)if(function(t,e,n,i){return t!==i&&e!==n&&0<ko(t,e,n)!=0<ko(t,e,i)&&0<ko(n,i,t)!=0<ko(n,i,e)}(s[l].p,s[l].next.p,t,e))return!1;return!0}function bt(t){var e=t.p,n=t.next.p;return t.minX=Math.min(e[0],n[0]),t.minY=Math.min(e[1],n[1]),t.maxX=Math.max(e[0],n[0]),t.maxY=Math.max(e[1],n[1]),t}function Pt(t,e){var n={p:t,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return e?(n.next=e.next,(n.prev=e).next.prev=n,e.next=n):(n.prev=n).next=n,n}function St(t,e){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}function Ct(t,e,n){var i=e[0],r=e[1],o=n[0]-i,a=n[1]-r;if(0!==o||0!==a){var s=((t[0]-i)*o+(t[1]-r)*a)/(o*o+a*a);1<s?(i=n[0],r=n[1]):0<s&&(i+=o*s,r+=a*s)}return o=t[0]-i,a=t[1]-r,o*o+a*a}function Mt(t,e,n,i,r,o,a,s){var l,u,h,c,p=n-t,f=i-e,d=a-r,y=s-o,m=t-r,g=e-o,v=p*p+f*f,x=p*d+f*y,_=d*d+y*y,w=p*m+f*g,b=d*m+y*g,P=v*_-x*x,S=P,C=P;0==P?(u=0,S=1,c=b,C=_):(c=v*b-x*w,(u=x*b-_*w)<0?(u=0,c=b,C=_):S<u&&(u=S,c=b+x,C=_)),c<0?-w<(c=0)?u=0:v<-w?u=S:(u=-w,S=v):C<c&&(c=C,x-w<0?u=0:v<x-w?u=S:(u=x-w,S=v));var M=(1-(h=0===c?0:c/C))*r+h*a-((1-(l=0===u?0:u/S))*t+l*n),T=(1-h)*o+h*s-((1-l)*e+l*i);return M*M+T*T}function Tt(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.concavity||1/0,i=[];if(b(t,function(t){i.push([t[0],t[1]])}),!i.length)return null;var r=zo(i,n);return 3<r.length?V([r]):null}function At(t,e,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var i=n.ignoreBoundary;if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=X(t),o=k(e),a=e.geometry?e.geometry.type:e.type,s=e.bbox;if(s&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,s))return!1;"Polygon"===a&&(o=[o]);for(var l=0,u=!1;l<o.length&&!u;l++)if(Et(r,o[l][0],i)){for(var h=!1,c=1;c<o[l].length&&!h;)Et(r,o[l][c],!i)&&(h=!0),c++;h||(u=!0)}return u}function Et(t,e,n){var i=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var r=0,o=e.length-1;r<e.length;o=r++){var a=e[r][0],s=e[r][1],l=e[o][0],u=e[o][1];if(t[1]*(a-l)+s*(l-t[0])+u*(t[0]-a)==0&&(a-t[0])*(l-t[0])<=0&&(s-t[1])*(u-t[1])<=0)return!n;s>t[1]!=u>t[1]&&t[0]<(l-a)*(t[1]-s)/(u-s)+a&&(i=!i)}return i}function It(t,e){var n=[];return T(e,function(e){S(t,function(t){At(t,e)&&n.push(t)})}),B(n)}function Lt(t,n){if("FeatureCollection"!==t.type)throw new Error("points must be a FeatureCollection");var o=!1;return B(function(t){if(t.length<3)return[];t.sort(Ot);for(var e,n,i,r,o,a,s=t.length-1,l=t[s].x,u=t[0].x,h=t[s].y,c=h;s--;)t[s].y<h&&(h=t[s].y),t[s].y>c&&(c=t[s].y);var p,f=u-l,d=c-h,y=d<f?f:d,m=.5*(u+l),g=.5*(c+h),v=[new Rt({x:m-20*y,y:g-y,__sentinel:!0},{x:m,y:g+20*y,__sentinel:!0},{x:m+20*y,y:g-y,__sentinel:!0})],x=[],_=[];for(s=t.length;s--;){for(_.length=0,p=v.length;p--;)0<(f=t[s].x-v[p].x)&&f*f>v[p].r?(x.push(v[p]),v.splice(p,1)):(d=t[s].y-v[p].y,f*f+d*d>v[p].r||(_.push(v[p].a,v[p].b,v[p].b,v[p].c,v[p].c,v[p].a),v.splice(p,1)));for(Nt(_),p=_.length;p;)n=_[--p],e=_[--p],i=t[s],r=n.x-e.x,o=n.y-e.y,a=2*(r*(i.y-n.y)-o*(i.x-n.x)),1e-12<Math.abs(a)&&v.push(new Rt(e,n,i))}for(Array.prototype.push.apply(x,v),s=x.length;s--;)(x[s].a.__sentinel||x[s].b.__sentinel||x[s].c.__sentinel)&&x.splice(s,1);return x}(t.features.map(function(t){var e={x:t.geometry.coordinates[0],y:t.geometry.coordinates[1]};return n?e.z=t.properties[n]:3===t.geometry.coordinates.length&&(o=!0,e.z=t.geometry.coordinates[2]),e})).map(function(t){var e=[t.a.x,t.a.y],n=[t.b.x,t.b.y],i=[t.c.x,t.c.y],r={};return o?(e.push(t.a.z),n.push(t.b.z),i.push(t.c.z)):r={a:t.a.z,b:t.b.z,c:t.c.z},V([[e,n,i,e]],r)}))}function Rt(t,e,n){this.a=t,this.b=e,this.c=n;var i,r,o=e.x-t.x,a=e.y-t.y,s=n.x-t.x,l=n.y-t.y,u=o*(t.x+e.x)+a*(t.y+e.y),h=s*(t.x+n.x)+l*(t.y+n.y),c=2*(o*(n.y-e.y)-a*(n.x-e.x));this.x=(l*u-a*h)/c,this.y=(o*h-s*u)/c,i=this.x-t.x,r=this.y-t.y,this.r=i*i+r*r}function Ot(t,e){return e.x-t.x}function Nt(t){var e,n,i,r,o,a=t.length;t:for(;a;)for(n=t[--a],e=t[--a],i=a;i;)if(o=t[--i],r=t[--i],e===r&&n===o||e===o&&n===r){t.splice(a,2),t.splice(i,2),a-=2;continue t}}function kt(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.units,r=X(t),o=X(e),a=v(o[1]-r[1]),s=v(o[0]-r[0]),l=v(r[1]),u=v(o[1]),h=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(l)*Math.cos(u);return d(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)),i)}function zt(t){if(!t)throw new Error("geojson is required");switch(t.type){case"Feature":return Dt(t);case"FeatureCollection":return function(e){var n={type:"FeatureCollection"};return Object.keys(e).forEach(function(t){switch(t){case"type":case"features":return;default:n[t]=e[t]}}),n.features=e.features.map(function(t){return Dt(t)}),n}(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return Ft(t);default:throw new Error("unknown GeoJSON type")}}function Dt(e){var n={type:"Feature"};return Object.keys(e).forEach(function(t){switch(t){case"type":case"properties":case"geometry":return;default:n[t]=e[t]}}),n.properties=function n(i){var r={};return i&&Object.keys(i).forEach(function(t){var e=i[t];"object"==typeof e?null===e?r[t]=null:e.length?r[t]=e.map(function(t){return t}):r[t]=n(e):r[t]=e}),r}(e.properties),n.geometry=Ft(e.geometry),n}function Ft(t){var e={type:t.type};return t.bbox&&(e.bbox=t.bbox),"GeometryCollection"===t.type?e.geometries=t.geometries.map(function(t){return Ft(t)}):e.coordinates=function e(t){return"object"!=typeof t[0]?t.slice():t.map(function(t){return e(t)})}(t.coordinates),e}function Gt(t,e){function r(t,e){e.length&&e.pop();for(var n=u[t<0?~t:t],i=0,r=n.length;i<r;++i)e.push(l(n[i],i));t<0&&jo(e,r)}function o(t){return l(t)}function a(t){for(var e=[],n=0,i=t.length;n<i;++n)r(t[n],e);return e.length<2&&e.push(e[0]),e}function n(t){for(var e=a(t);e.length<4;)e.push(e[0]);return e}function s(t){return t.map(n)}var l=Go(t.transform),u=t.arcs;return function t(e){var n,i=e.type;switch(i){case"GeometryCollection":return{type:i,geometries:e.geometries.map(t)};case"Point":n=o(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(o);break;case"LineString":n=a(e.arcs);break;case"MultiLineString":n=e.arcs.map(a);break;case"Polygon":n=s(e.arcs);break;case"MultiPolygon":n=e.arcs.map(s);break;default:return null}return{type:i,coordinates:n}}(e)}function jt(s,t){function n(e){e.forEach(function(t){t.forEach(function(t){(u[t=t<0?~t:t]||(u[t]=[])).push(e)})}),i.push(e)}function l(t){return function(t){for(var e,n=-1,i=t.length,r=t[i-1],o=0;++n<i;)e=r,r=t[n],o+=e[0]*r[1]-e[1]*r[0];return Math.abs(o)}(Gt(s,{type:"Polygon",arcs:[t]}).coordinates[0])}var u={},i=[],r=[];return t.forEach(function t(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"Polygon":n(e.arcs);break;case"MultiPolygon":e.arcs.forEach(n)}}),i.forEach(function(t){if(!t._){var e=[],n=[t];for(t._=1,r.push(e);t=n.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){u[t<0?~t:t].forEach(function(t){t._||(t._=1,n.push(t))})})})}}),i.forEach(function(t){delete t._}),{type:"MultiPolygon",arcs:r.map(function(t){var e,n=[];if(t.forEach(function(t){t.forEach(function(t){t.forEach(function(t){u[t<0?~t:t].length<2&&n.push(t)})})}),n=function(l,r){function t(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach(function(t){o[t<0?~t:t]=1}),a.push(i)}}var o={},u={},h={},a=[],s=-1;return r.forEach(function(t,e){var n,i=l.arcs[t<0?~t:t];i.length<3&&!i[1][0]&&!i[1][1]&&(n=r[++s],r[s]=t,r[e]=n)}),r.forEach(function(t){var e,n,i=function(t){var e,n=l.arcs[t<0?~t:t],i=n[0];return l.transform?(e=[0,0],n.forEach(function(t){e[0]+=t[0],e[1]+=t[1]})):e=n[n.length-1],t<0?[e,i]:[i,e]}(t),r=i[0],o=i[1];if(e=h[r])if(delete h[e.end],e.push(t),e.end=o,n=u[o]){delete u[n.start];var a=n===e?e:e.concat(n);u[a.start=e.start]=h[a.end=n.end]=a}else u[e.start]=h[e.end]=e;else if(e=u[o])if(delete u[e.start],e.unshift(t),e.start=r,n=h[r]){delete h[n.end];var s=n===e?e:n.concat(e);u[s.start=n.start]=h[s.end=e.end]=s}else u[e.start]=h[e.end]=e;else u[(e=[t]).start=r]=h[e.end=o]=e}),t(h,u),t(u,h),r.forEach(function(t){o[t<0?~t:t]||a.push([t])}),a}(s,n),1<(e=n.length))for(var i,r,o=1,a=l(n[0]);o<e;++o)(i=l(n[o]))>a&&(r=n[0],n[0]=n[o],n[o]=r,a=i);return n})}}function Vt(t,e,n){for(var i,r=e+(n---e>>1);e<r;++e,--n)i=t[e],t[e]=t[n],t[n]=i}function qt(t){return null==t?{type:null}:("FeatureCollection"===t.type?function(t){var e={type:"GeometryCollection",geometries:t.features.map(Bt)};return null!=t.bbox&&(e.bbox=t.bbox),e}:"Feature"===t.type?Bt:Ut)(t)}function Bt(t){var e,n=Ut(t.geometry);for(e in null!=t.id&&(n.id=t.id),null!=t.bbox&&(n.bbox=t.bbox),t.properties){n.properties=t.properties;break}return n}function Ut(t){if(null==t)return{type:null};var e="GeometryCollection"===t.type?{type:"GeometryCollection",geometries:t.geometries.map(Ut)}:"Point"===t.type||"MultiPoint"===t.type?{type:t.type,coordinates:t.coordinates}:{type:t.type,arcs:t.coordinates};return null!=t.bbox&&(e.bbox=t.bbox),e}function Wt(t){var e,n=t[0],i=t[1];return i<n&&(e=n,n=i,i=e),n+31*i}function Zt(t,e){var n,i=t[0],r=t[1],o=e[0],a=e[1];return r<i&&(n=i,i=r,r=n),a<o&&(n=o,o=a,a=n),i===o&&r===a}function Xt(t){return t[0].toString()+","+t[1].toString()}function Ht(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==J(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=zt(t));var i=function(t){var e={};E(t,function(t){e[t.geometry.type]=!0});var n=Object.keys(e);return 1===n.length?n[0]:null}(t);if(!i)throw new Error("geojson must be homogenous");switch(i){case"LineString":return function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==J(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=zt(t));var i=[],r=N(t,function(u,t){return function(t,e){var n,i=u.geometry.coordinates,r=e.geometry.coordinates,o=Xt(i[0]),a=Xt(i[i.length-1]),s=Xt(r[0]),l=Xt(r[r.length-1]);if(o===l)n=r.concat(i.slice(1));else if(s===a)n=i.concat(r.slice(1));else if(o===s)n=i.slice(1).reverse().concat(r);else{if(a!==l)return null;n=i.concat(r.reverse().slice(1))}return q(n)}(0,t)||(i.push(u),t)});return r&&i.push(r),i.length?1===i.length?i[0]:h(i.map(function(t){return t.coordinates})):null}(t,e);case"Polygon":return function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==J(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=zt(t));var i=[];E(t,function(t){i.push(t.geometry)});var r=function(t,e){function n(t){t&&h.hasOwnProperty(t.type)&&h[t.type](t)}function i(t){var e=[];do{var n=u.get(t);e.push(t[0]<t[1]?n:~n)}while(t=t.next);return e}function r(t){return t.map(i)}var o=function(t){function e(t){null!=t&&u.hasOwnProperty(t.type)&&u[t.type](t)}function n(t){var e=t[0],n=t[1];e<o&&(o=e),e>s&&(s=e),n<a&&(a=n),n>l&&(l=n)}function i(t){t.forEach(n)}function r(t){t.forEach(i)}var o=1/0,a=1/0,s=-1/0,l=-1/0,u={GeometryCollection:function(t){t.geometries.forEach(e)},Point:function(t){n(t.coordinates)},MultiPoint:function(t){t.coordinates.forEach(n)},LineString:function(t){i(t.arcs)},MultiLineString:function(t){t.arcs.forEach(i)},Polygon:function(t){t.arcs.forEach(i)},MultiPolygon:function(t){t.arcs.forEach(r)}};for(var h in t)e(t[h]);return s>=o&&l>=a?[o,a,s,l]:void 0}(t=function(t){var e,n={};for(e in t)n[e]=qt(t[e]);return n}(t)),a=e>0&&o&&function(t,e,n){function i(t){return[Math.round((t[0]-c)*f),Math.round((t[1]-p)*d)]}function r(t,e){for(var n,i,r,o,a,s=-1,l=0,u=t.length,h=new Array(u);++s<u;)n=t[s],o=Math.round((n[0]-c)*f),a=Math.round((n[1]-p)*d),o===i&&a===r||(h[l++]=[i=o,r=a]);for(h.length=l;l<e;)l=h.push([h[0][0],h[0][1]]);return h}function o(t){return r(t,2)}function a(t){return r(t,4)}function s(t){return t.map(a)}function l(t){null!=t&&y.hasOwnProperty(t.type)&&y[t.type](t)}var c=e[0],p=e[1],u=e[2],h=e[3],f=u-c?(n-1)/(u-c):1,d=h-p?(n-1)/(h-p):1,y={GeometryCollection:function(t){t.geometries.forEach(l)},Point:function(t){t.coordinates=i(t.coordinates)},MultiPoint:function(t){t.coordinates=t.coordinates.map(i)},LineString:function(t){t.arcs=o(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(o)},Polygon:function(t){t.arcs=s(t.arcs)},MultiPolygon:function(t){t.arcs=t.arcs.map(s)}};for(var m in t)l(t[m]);return{scale:[1/f,1/d],translate:[c,p]}}(t,o,e),s=Ho(Xo(function(t){function e(t){t&&u.hasOwnProperty(t.type)&&u[t.type](t)}function n(t){for(var e=0,n=t.length;e<n;++e)l[++o]=t[e];var i={0:o-n+1,1:o};return a.push(i),i}function i(t){for(var e=0,n=t.length;e<n;++e)l[++o]=t[e];var i={0:o-n+1,1:o};return s.push(i),i}function r(t){return t.map(i)}var o=-1,a=[],s=[],l=[],u={GeometryCollection:function(t){t.geometries.forEach(e)},LineString:function(t){t.arcs=n(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(n)},Polygon:function(t){t.arcs=t.arcs.map(i)},MultiPolygon:function(t){t.arcs=t.arcs.map(r)}};for(var h in t)e(t[h]);return{type:"Topology",coordinates:l,lines:a,rings:s,objects:t}}(t))),l=s.coordinates,u=Vo(1.4*s.arcs.length,Wt,Zt);t=s.objects,s.bbox=o,s.arcs=s.arcs.map(function(t,e){return u.set(t,e),l.slice(t[0],t[1]+1)}),delete s.coordinates,l=null;var h={GeometryCollection:function(t){t.geometries.forEach(n)},LineString:function(t){t.arcs=i(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(i)},Polygon:function(t){t.arcs=t.arcs.map(i)},MultiPolygon:function(t){t.arcs=t.arcs.map(r)}};for(var c in t)n(t[c]);return a&&(s.transform=a,s.arcs=function(t){for(var e=-1,n=t.length;++e<n;){for(var i,r,o=t[e],a=0,s=1,l=o.length,u=o[0],h=u[0],c=u[1];++a<l;)i=(u=o[a])[0],r=u[1],i===h&&r===c||(o[s++]=[i-h,r-c],h=i,c=r);1===s&&(o[s++]=[0,0]),o.length=s}return t}(s.arcs)),s}({geoms:a(i).geometry});return function(t){return Gt(t,jt.apply(this,arguments))}(r,r.objects.geoms.geometries)}(t,e);default:throw new Error(i+" is not supported")}}function Yt(t,e){var n="object"==typeof e?e.mutate:e;if(!t)throw new Error("geojson is required");var i=J(t),r=[];switch(i){case"LineString":r=Kt(t);break;case"MultiLineString":case"Polygon":k(t).forEach(function(t){r.push(Kt(t))});break;case"MultiPolygon":k(t).forEach(function(t){var e=[];t.forEach(function(t){e.push(Kt(t))}),r.push(e)});break;case"Point":return t;case"MultiPoint":var o={};k(t).forEach(function(t){var e=t.join("-");o.hasOwnProperty(e)||(r.push(t),o[e]=!0)});break;default:throw new Error(i+" geometry not supported")}return t.coordinates?!0===n?(t.coordinates=r,t):{type:i,coordinates:r}:!0===n?(t.geometry.coordinates=r,t):G({type:i,coordinates:r},t.properties,t.bbox,t.id)}function Kt(t){var e=k(t);if(2===e.length&&!function(t,e){return t[0]===e[0]&&t[1]===e[1]}(e[0],e[1]))return e;var n,i,r,o=[],a=e.length-1;o.push(e[0]);for(var s=1;s<a;s++)n=e[s-1],i=e[s],function(t,e,n){var i=n[0],r=n[1],o=t[0],a=t[1],s=e[0],l=e[1],u=s-o,h=l-a;return(i-o)*h-(r-a)*u==0&&(Math.abs(u)>=Math.abs(h)?0<u?o<=i&&i<=s:s<=i&&i<=o:0<h?a<=r&&r<=l:l<=r&&r<=a)}(n,r=e[s+1],i)||o.push(i);return o.push(r),o}function Jt(t,e,n){var i=e.x,r=e.y,o=n.x-i,a=n.y-r;if(0!==o||0!==a){var s=((t.x-i)*o+(t.y-r)*a)/(o*o+a*a);1<s?(i=n.x,r=n.y):0<s&&(i+=o*s,r+=a*s)}return o=t.x-i,a=t.y-r,o*o+a*a}function Qt(t,e,n){if(t.length<=2)return t;var i=void 0!==e?e*e:1;return t=function(t,e){var n=t.length-1,i=[t[0]];return function t(e,n,i,r,o){for(var a,s=r,l=n+1;l<i;l++){var u=Jt(e[l],e[n],e[i]);s<u&&(a=l,s=u)}r<s&&(1<a-n&&t(e,n,a,r,o),o.push(e[a]),1<i-a&&t(e,a,i,r,o))}(t,0,n,e,i),i.push(t[n]),i}(t=n?t:function(t,e){for(var n,i=t[0],r=[i],o=1,a=t.length;o<a;o++)s=n=t[o],l=i,void 0,u=s.x-l.x,h=s.y-l.y,e<u*u+h*h&&(r.push(n),i=n);var s,l,u,h;return i!==n&&r.push(n),r}(t,i),i)}function $t(t,e,n){return Qt(t.map(function(t){return{x:t[0],y:t[1],z:t[2]}}),e,n).map(function(t){return t.z?[t.x,t.y,t.z]:[t.x,t.y]})}function te(t,i,r){return t.map(function(t){var e=t.map(function(t){return{x:t[0],y:t[1]}});if(e.length<4)throw new Error("invalid polygon");for(var n=Qt(e,i,r).map(function(t){return[t.x,t.y]});!function(t){return!(t.length<3||3===t.length&&t[2][0]===t[0][0]&&t[2][1]===t[0][1])}(n);)n=Qt(e,i-=.01*i,r).map(function(t){return[t.x,t.y]});return n[n.length-1][0]===n[0][0]&&n[n.length-1][1]===n[0][1]||n.push(n[0]),n})}function ee(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.resolution||1e4,i=e.sharpness||.85;if(!t)throw new Error("line is required");if(!U(n))throw new Error("resolution must be an number");if(!U(i))throw new Error("sharpness must be an number");for(var r=[],o=new Yo({points:Y(t).coordinates.map(function(t){return{x:t[0],y:t[1]}}),duration:n,sharpness:i}),a=0;a<o.duration;a+=10){var s=o.pos(a);Math.floor(a/100)%2==0&&r.push([s.x,s.y])}return q(r,t.properties)}function ne(t){g(t);var e=Number(t[0]),n=Number(t[1]),i=Number(t[2]),r=Number(t[3]);if(6===t.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var o=[e,n];return V([[o,[i,n],[i,r],[e,r],o]])}function ie(t){return ne(Z(t))}function re(t){var e=t[0],n=t[1],i=t[2],r=t[3];if(kt(t.slice(0,2),[i,n])>=kt(t.slice(0,2),[e,r])){var o=(n+r)/2;return[e,o-(i-e)/2,i,o+(i-e)/2]}var a=(e+i)/2;return[a-(r-n)/2,n,a+(r-n)/2,r]}function oe(t,e,n,i){if(!W(i=i||{}))throw new Error("options is invalid");var r=i.units,o=i.properties,a=X(t),s=v(a[0]),l=v(a[1]),u=v(n),h=y(e,r),c=Math.asin(Math.sin(l)*Math.cos(h)+Math.cos(l)*Math.sin(h)*Math.cos(u));return j([f(s+Math.atan2(Math.sin(u)*Math.sin(h)*Math.cos(l),Math.cos(h)-Math.sin(l)*Math.sin(c))),f(c)],o)}function ae(t,e,n){var i=(n=n||{}).steps||64,r=n.properties;if(!t)throw new Error("center is required");if(!e)throw new Error("radius is required");if("object"!=typeof n)throw new Error("options must be an object");if("number"!=typeof i)throw new Error("steps must be a number");i=i||64,r=r||t.properties||{};for(var o=[],a=0;a<i;a++)o.push(oe(t,e,-360*a/i,n).geometry.coordinates);return o.push(o[0]),V([o],r)}function se(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");if(!0===n.final)return function(t,e){var n=se(e,t);return n=(n+180)%360}(t,e);var i=X(t),r=X(e),o=v(i[0]),a=v(r[0]),s=v(i[1]),l=v(r[1]),u=Math.sin(a-o)*Math.cos(l),h=Math.cos(s)*Math.sin(l)-Math.sin(s)*Math.cos(l)*Math.cos(a-o);return f(Math.atan2(u,h))}function le(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.properties;if(!t)throw new Error("geojson is required");var i=Z(t);return j([(i[0]+i[2])/2,(i[1]+i[3])/2],n)}function ue(t,e){var n=0,i=0,r=0;return b(t,function(t){n+=t[0],i+=t[1],r++},!0),j([n/r,i/r],e)}function he(e){var n=[];return"FeatureCollection"===e.type?S(e,function(e){b(e,function(t){n.push(j(t,e.properties))})}):b(e,function(t){n.push(j(t,e.properties))}),B(n)}function ce(t,e,n){n=n||2;var i,r,o,a,s,l,u,h=e&&e.length,c=h?e[0]*n:t.length,p=pe(t,0,c,n,!0),f=[];if(!p)return f;if(h&&(p=function(t,e,n,i){var r,o,a,s,l,u=[];for(r=0,o=e.length;r<o;r++)a=e[r]*i,s=r<o-1?e[r+1]*i:t.length,(l=pe(t,a,s,i,!1))===l.next&&(l.steiner=!0),u.push(function(t){for(var e=t,n=t;e.x<n.x&&(n=e),(e=e.next)!==t;);return n}(l));for(u.sort(de),r=0;r<u.length;r++)!function(t,e){if(e=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&a<s){if((a=s)===r){if(o===i.y)return i;if(o===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!n)return null;if(r===a)return n.prev;var l,u=n,h=n.x,c=n.y,p=1/0;for(i=n.next;i!==u;)r>=i.x&&i.x>=h&&r!==i.x&&me(o<c?r:a,o,h,c,o<c?a:r,o,i.x,i.y)&&((l=Math.abs(o-i.y)/(r-i.x))<p||l===p&&i.x>n.x)&&_e(i,t)&&(n=i,p=l),i=i.next;return n}(t,e)){var n=we(e,t);fe(n,n.next)}}(u[r],n),n=fe(n,n.next);return n}(t,e,p,n)),t.length>80*n){i=o=t[0],r=a=t[1];for(var d=n;d<c;d+=n)s=t[d],l=t[d+1],s<i&&(i=s),l<r&&(r=l),o<s&&(o=s),a<l&&(a=l);u=0!==(u=Math.max(o-i,a-r))?1/u:0}return function u(t,e,n,i,r,o,a){if(t){!a&&o&&function(t,e,n,i){for(var r=t;null===r.z&&(r.z=ye(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,(r=r.next)!==t;);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,l,u=1;do{for(n=t,o=t=null,a=0;n;){for(a++,i=n,e=s=0;e<u&&(s++,i=i.nextZ);e++);for(l=u;0<s||0<l&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(n=(r=n).nextZ,s--):(i=(r=i).nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,u*=2}while(1<a)}(r)}(t,i,r,o);for(var s,l,h=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?function(t,e,n,i){var r=t.prev,o=t,a=t.next;if(0<=ge(r,o,a))return!1;for(var s=r.x<o.x?r.x<a.x?r.x:a.x:o.x<a.x?o.x:a.x,l=r.y<o.y?r.y<a.y?r.y:a.y:o.y<a.y?o.y:a.y,u=r.x>o.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,h=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,c=ye(s,l,e,n,i),p=ye(u,h,e,n,i),f=t.nextZ;f&&f.z<=p;){if(f!==t.prev&&f!==t.next&&me(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&0<=ge(f.prev,f,f.next))return!1;f=f.nextZ}for(f=t.prevZ;f&&f.z>=c;){if(f!==t.prev&&f!==t.next&&me(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&0<=ge(f.prev,f,f.next))return!1;f=f.prevZ}return!0}(t,i,r,o):function(t){var e=t.prev,n=t,i=t.next;if(0<=ge(e,n,i))return!1;for(var r=t.next.next;r!==t.prev;){if(me(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&0<=ge(r.prev,r,r.next))return!1;r=r.next}return!0}(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),Pe(t),t=l.next,h=l.next;else if((t=l)===h){a?1===a?u(t=function(t,e,n){var i=t;do{var r=i.prev,o=i.next.next;!ve(r,o)&&xe(r,i,i.next,o)&&_e(r,o)&&_e(o,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(o.i/n),Pe(i),Pe(i.next),i=t=o),i=i.next}while(i!==t);return i}(t,e,n),e,n,i,r,o,2):2===a&&function(t,e,n,i,r,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&xe(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&_e(t,e)&&_e(e,t)&&function(t,e){for(var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),(n=n.next)!==t;);return i}(t,e)}(a,s)){var l=we(a,s);return a=fe(a,a.next),l=fe(l,l.next),u(a,e,n,i,r,o),u(l,e,n,i,r,o)}s=s.next}a=a.next}while(a!==t)}(t,e,n,i,r,o):u(fe(t),e,n,i,r,o,1);break}}}(p,f,n,i,r,u),f}function pe(t,e,n,i,r){var o,a;if(r===0<Ce(t,e,n,i))for(o=e;o<n;o+=i)a=be(o,t[o],t[o+1],a);else for(o=n-i;e<=o;o-=i)a=be(o,t[o],t[o+1],a);return a&&ve(a,a.next)&&(Pe(a),a=a.next),a}function fe(t,e){if(!t)return t;e=e||t;var n,i=t;do{if(n=!1,i.steiner||!ve(i,i.next)&&0!==ge(i.prev,i,i.next))i=i.next;else{if(Pe(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function de(t,e){return t.x-e.x}function ye(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function me(t,e,n,i,r,o,a,s){return 0<=(r-a)*(e-s)-(t-a)*(o-s)&&0<=(t-a)*(i-s)-(n-a)*(e-s)&&0<=(n-a)*(o-s)-(r-a)*(i-s)}function ge(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function ve(t,e){return t.x===e.x&&t.y===e.y}function xe(t,e,n,i){return!!(ve(t,e)&&ve(n,i)||ve(t,i)&&ve(n,e))||0<ge(t,e,n)!=0<ge(t,e,i)&&0<ge(n,i,t)!=0<ge(n,i,e)}function _e(t,e){return ge(t.prev,t,t.next)<0?0<=ge(t,e,t.next)&&0<=ge(t,t.prev,e):ge(t,e,t.prev)<0||ge(t,t.next,e)<0}function we(t,e){var n=new Se(t.i,t.x,t.y),i=new Se(e.i,e.x,e.y),r=t.next,o=e.prev;return(t.next=e).prev=t,(n.next=r).prev=n,(i.next=n).prev=i,(o.next=i).prev=o,i}function be(t,e,n,i){var r=new Se(t,e,n);return i?(r.next=i.next,(r.prev=i).next.prev=r,i.next=r):(r.prev=r).next=r,r}function Pe(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Se(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ce(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}function Me(t){var i=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[r][o][a]);0<r&&(i+=t[r-1].length,n.holes.push(i))}return n}(t),r=Ko(i.vertices,i.holes,2),e=[],o=[];r.forEach(function(t,e){var n=r[e];o.push([i.vertices[2*n],i.vertices[2*n+1]])});for(var n=0;n<o.length;n+=3){var a=o.slice(n,n+3);a.push(o[n]),e.push(V([a]))}return e}function Te(i,t){if(!i)throw new Error("targetPoint is required");if(!t)throw new Error("points is required");var r,o=1/0;return S(t,function(t,e){var n=kt(i,t);n<o&&((r=zt(t)).properties.featureIndex=e,r.properties.distanceToPoint=n,o=n)}),r}function Ae(t,e,n,i,r){!function t(e,n,i,r,o){for(;i<r;){if(600<r-i){var a=r-i+1,s=n-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(i,Math.floor(n-s*u/a+h)),Math.min(r,Math.floor(n+(a-s)*u/a+h)),o)}var c=e[n],p=i,f=r;for(Ee(e,i,n),0<o(e[r],c)&&Ee(e,i,r);p<f;){for(Ee(e,p,f),p++,f--;o(e[p],c)<0;)p++;for(;0<o(e[f],c);)f--}0===o(e[i],c)?Ee(e,i,f):Ee(e,++f,r),f<=n&&(i=f+1),n<=f&&(r=f-1)}}(t,e,n||0,i||t.length-1,r||function(t,e){return t<e?-1:e<t?1:0})}function Ee(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function Ie(t,e){if(!(this instanceof Ie))return new Ie(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function Le(t,e){Re(t,0,t.children.length,e,t)}function Re(t,e,n,i,r){(r=r||je(null)).minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o,a=e;a<n;a++)o=t.children[a],Oe(r,t.leaf?i(o):o);return r}function Oe(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function Ne(t,e){return t.minX-e.minX}function ke(t,e){return t.minY-e.minY}function ze(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function De(t){return t.maxX-t.minX+(t.maxY-t.minY)}function Fe(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function Ge(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function je(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Ve(t,e,n,i,r){for(var o,a=[e,n];a.length;)(n=a.pop())-(e=a.pop())<=i||(Ae(t,o=e+Math.ceil((n-e)/i/2)*i,e,n,r),a.push(e,o,o,n))}function qe(t){var e=Ie(t);return e.insert=function(t){if(Array.isArray(t)){var e=t;(t=Be(e)).bbox=e}else t.bbox=t.bbox?t.bbox:Ue(t);return Ie.prototype.insert.call(this,t)},e.load=function(t){var n=[];return Array.isArray(t)?t.forEach(function(t){var e=Be(t);e.bbox=t,n.push(e)}):S(t,function(t){t.bbox=t.bbox?t.bbox:Ue(t),n.push(t)}),Ie.prototype.load.call(this,n)},e.remove=function(t){if(Array.isArray(t)){var e=t;(t=Be(e)).bbox=e}return Ie.prototype.remove.call(this,t)},e.clear=function(){return Ie.prototype.clear.call(this)},e.search=function(t){return{type:"FeatureCollection",features:Ie.prototype.search.call(this,this.toBBox(t))}},e.collides=function(t){return Ie.prototype.collides.call(this,this.toBBox(t))},e.all=function(){return{type:"FeatureCollection",features:Ie.prototype.all.call(this)}},e.toJSON=function(){return Ie.prototype.toJSON.call(this)},e.fromJSON=function(t){return Ie.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;return{minX:(e=t.bbox?t.bbox:Array.isArray(t)&&4===t.length?t:Ue(t))[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}function Be(t){var e=[t[0],t[1]],n=[t[0],t[3]],i=[t[2],t[3]];return{type:"Feature",bbox:t,properties:{},geometry:{type:"Polygon",coordinates:[[e,[t[2],t[1]],i,n,e]]}}}function Ue(t){var e=[1/0,1/0,-1/0,-1/0];return b(t,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}function We(t){if(!t)throw new Error("geojson is required");var e=[];return E(t,function(t){!function(n,i){var t=[],e=n.geometry;switch(e.type){case"Polygon":t=k(e);break;case"LineString":t=[k(e)]}t.forEach(function(t){var e=function(t,i){var r=[];return t.reduce(function(t,e){var n=q([t,e],i);return n.bbox=function(t,e){var n=t[0],i=t[1],r=e[0],o=e[1];return[n<r?n:r,i<o?i:o,r<n?n:r,o<i?i:o]}(t,e),r.push(n),e}),r}(t,n.properties);e.forEach(function(t){t.id=i.length,i.push(t)})})}(t,e)}),B(e)}function Ze(t,e){var r={},o=[];if("LineString"===t.type&&(t=G(t)),"LineString"===e.type&&(e=G(e)),"Feature"===t.type&&"Feature"===e.type&&"LineString"===t.geometry.type&&"LineString"===e.geometry.type&&2===t.geometry.coordinates.length&&2===e.geometry.coordinates.length){var n=Xe(t,e);return n&&o.push(n),B(o)}var a=qe();return a.load(We(e)),S(We(t),function(i){S(a.search(i),function(t){var e=Xe(i,t);if(e){var n=k(e).join(",");r[n]||(r[n]=!0,o.push(e))}})}),B(o)}function Xe(t,e){var n=k(t),i=k(e);if(2!==n.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==i.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var r=n[0][0],o=n[0][1],a=n[1][0],s=n[1][1],l=i[0][0],u=i[0][1],h=i[1][0],c=i[1][1],p=(c-u)*(a-r)-(h-l)*(s-o),f=(h-l)*(o-u)-(c-u)*(r-l),d=(a-r)*(o-u)-(s-o)*(r-l);if(0==p)return null;var y=f/p,m=d/p;return 0<=y&&y<=1&&0<=m&&m<=1?j([r+y*(a-r),o+y*(s-o)]):null}function He(t,p,f){if(!W(f=f||{}))throw new Error("options is invalid");var e=t.geometry?t.geometry.type:t.type;if("LineString"!==e&&"MultiLineString"!==e)throw new Error("lines must be LineString or MultiLineString");var d=j([1/0,1/0],{dist:1/0}),y=0;return E(t,function(t){for(var e=k(t),n=0;n<e.length-1;n++){var i=j(e[n]);i.properties.dist=kt(p,i,f);var r=j(e[n+1]);r.properties.dist=kt(p,r,f);var o=kt(i,r,f),a=Math.max(i.properties.dist,r.properties.dist),s=se(i,r),l=oe(p,a,s+90,f),u=oe(p,a,s-90,f),h=Ze(q([l.geometry.coordinates,u.geometry.coordinates]),q([i.geometry.coordinates,r.geometry.coordinates])),c=null;0<h.features.length&&((c=h.features[0]).properties.dist=kt(p,c,f),c.properties.location=y+kt(i,c,f)),i.properties.dist<d.properties.dist&&((d=i).properties.index=n,d.properties.location=y),r.properties.dist<d.properties.dist&&((d=r).properties.index=n+1,d.properties.location=y+o),c&&c.properties.dist<d.properties.dist&&((d=c).properties.index=n),y+=o}}),d}function Ye(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i,r=n.final;if(!t)throw new Error("start point is required");if(!e)throw new Error("end point is required");return 180<(i=r?Ke(X(e),X(t)):Ke(X(t),X(e)))?-(360-i):i}function Ke(t,e){var n=v(t[1]),i=v(e[1]),r=v(e[0]-t[0]);r>Math.PI&&(r-=2*Math.PI),r<-Math.PI&&(r+=2*Math.PI);var o=Math.log(Math.tan(i/2+Math.PI/4)/Math.tan(n/2+Math.PI/4));return(f(Math.atan2(r,o))+360)%360}function Je(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.units;if(!t)throw new Error("from point is required");if(!e)throw new Error("to point is required");var r=X(t),o=X(e);return o[0]+=180<o[0]-r[0]?-360:180<r[0]-o[0]?360:0,c(function(t,e,n){var i=n=void 0===n?fo:Number(n),r=t[1]*Math.PI/180,o=e[1]*Math.PI/180,a=o-r,s=Math.abs(e[0]-t[0])*Math.PI/180;s>Math.PI&&(s-=2*Math.PI);var l=Math.log(Math.tan(o/2+Math.PI/4)/Math.tan(r/2+Math.PI/4)),u=1e-11<Math.abs(l)?a/l:Math.cos(r);return Math.sqrt(a*a+u*u*s*s)*i}(r,o),"meters",i)}function Qe(t,e){return tn(t,"mercator",e)}function $e(t,e){return tn(t,"wgs84",e)}function tn(t,n,e){if(!W(e=e||{}))throw new Error("options is invalid");var i=e.mutate;if(!t)throw new Error("geojson is required");return Array.isArray(t)&&U(t[0])?t="mercator"===n?en(t):nn(t):(!0!==i&&(t=zt(t)),b(t,function(t){var e="mercator"===n?en(t):nn(t);t[0]=e[0],t[1]=e[1]})),t}function en(t){var e=Math.PI/180,n=20037508.342789244,i=[6378137*(Math.abs(t[0])<=180?t[0]:t[0]-360*function(t){return t<0?-1:0<t?1:0}(t[0]))*e,6378137*Math.log(Math.tan(.25*Math.PI+.5*t[1]*e))];return i[0]>n&&(i[0]=n),i[0]<-n&&(i[0]=-n),i[1]>n&&(i[1]=n),i[1]<-n&&(i[1]=-n),i}function nn(t){var e=180/Math.PI;return[t[0]*e/6378137,(.5*Math.PI-2*Math.atan(Math.exp(-t[1]/6378137)))*e]}function rn(t,e,r){if(!W(r=r||{}))throw new Error("options is invalid");if(!t)throw new Error("pt is required");if(Array.isArray(t)?t=j(t):"Point"===t.type?t=G(t):F(t,"Point","point"),!e)throw new Error("line is required");Array.isArray(e)?e=q(e):"LineString"===e.type?e=G(e):F(e,"LineString","line");var o=1/0,a=t.geometry.coordinates;return L(e,function(t){var e=t.geometry.coordinates[0],n=t.geometry.coordinates[1],i=function(t,e,n,i){var r=i.mercator,o=!0!==r?kt(e,t,i):on(e,t,i),a=p(!0!==r?se(e,t):Ye(e,t)),s=p(!0!==r?se(e,n):Ye(e,n)),l=Math.abs(a-s);if(90<l)return o;var u=(s+180)%360,h=p(!0!==r?se(n,t):Ye(n,t)),c=Math.abs(h-u);return 180<c&&(c=Math.abs(c-360)),90<c?!0!==r?kt(t,n,i):on(t,n,i):!0!==r?o*Math.sin(v(l)):function(t,e,n,i){var r=0;(180<=Math.abs(t[0])||180<=Math.abs(e[0])||180<=Math.abs(n[0]))&&(r=0<t[0]||0<e[0]||0<n[0]?-180:180);var o=j(n),a=Qe([t[0]+r,t[1]]),s=Qe([e[0]+r,e[1]]),l=Qe([n[0]+r,n[1]]),u=$e(function(t,e,n){var i=t[0],r=t[1],o=e[0],a=e[1],s=n[0],l=n[1],u=o-i,h=a-r,c=((s-i)*u+(l-r)*h)/(u*u+h*h);return[i+c*u,r+c*h]}(a,s,l));return 0!==r&&(u[0]-=r),Je(o,u,i)}(e,n,t,i)}(a,e,n,r);i<o&&(o=i)}),o}function on(t,e,n){var i=n.units,r=0;180<=Math.abs(t[0])&&(r=0<t[0]?-180:180),180<=Math.abs(e[0])&&(r=0<e[0]?-180:180);var o=Qe([t[0]+r,t[1]]),a=Qe([e[0]+r,e[1]]),s=function(t){return t*t},l=s(o[0]-a[0])+s(o[1]-a[1]);return c(Math.sqrt(l),"meters",i)}function an(t){for(var e=function(t){return"FeatureCollection"!==t.type?"Feature"!==t.type?B([G(t)]):B([t]):t}(t),n=le(e),i=!1,r=0;!i&&r<e.features.length;){var o,a=e.features[r].geometry,s=!1;if("Point"===a.type)n.geometry.coordinates[0]===a.coordinates[0]&&n.geometry.coordinates[1]===a.coordinates[1]&&(i=!0);else if("MultiPoint"===a.type){var l=!1;for(o=0;!l&&o<a.coordinates.length;)n.geometry.coordinates[0]===a.coordinates[o][0]&&n.geometry.coordinates[1]===a.coordinates[o][1]&&(l=i=!0),o++}else if("LineString"===a.type)for(o=0;!s&&o<a.coordinates.length-1;)sn(n.geometry.coordinates[0],n.geometry.coordinates[1],a.coordinates[o][0],a.coordinates[o][1],a.coordinates[o+1][0],a.coordinates[o+1][1])&&(i=s=!0),o++;else if("MultiLineString"===a.type)for(var u=0;u<a.coordinates.length;){s=!1,o=0;for(var h=a.coordinates[u];!s&&o<h.length-1;)sn(n.geometry.coordinates[0],n.geometry.coordinates[1],h[o][0],h[o][1],h[o+1][0],h[o+1][1])&&(i=s=!0),o++;u++}else"Polygon"!==a.type&&"MultiPolygon"!==a.type||At(n,a)&&(i=!0);r++}if(i)return n;var c=B([]);for(r=0;r<e.features.length;r++)c.features=c.features.concat(he(e.features[r]).features);return j(Te(n,c).geometry.coordinates)}function sn(t,e,n,i,r,o){return Math.sqrt((r-n)*(r-n)+(o-i)*(o-i))===Math.sqrt((t-n)*(t-n)+(e-i)*(e-i))+Math.sqrt((r-t)*(r-t)+(o-e)*(o-e))}function ln(t){return A(t,function(t,e){return t+function t(e){var n,i=0;switch(e.type){case"Polygon":return un(e.coordinates);case"MultiPolygon":for(n=0;n<e.coordinates.length;n++)i+=un(e.coordinates[n]);return i;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<e.geometries.length;n++)i+=t(e.geometries[n]);return i}}(e)},0)}function un(t){var e=0;if(t&&0<t.length){e+=Math.abs(hn(t[0]));for(var n=1;n<t.length;n++)e-=Math.abs(hn(t[n]))}return e}function hn(t){var e,n,i,r,o,a,s=0,l=t.length;if(2<l){for(a=0;a<l;a++)o=a===l-2?(i=l-2,r=l-1,0):a===l-1?(i=l-1,r=0,1):(r=(i=a)+1,a+2),e=t[i],n=t[r],s+=(cn(t[o][0])-cn(e[0]))*Math.sin(cn(n[1]));s=s*$o*$o/2}return s}function cn(t){return t*Math.PI/180}function pn(t,i){if(!W(i=i||{}))throw new Error("options is invalid");if(!t)throw new Error("geojson is required");return R(t,function(t,e){var n=e.geometry.coordinates;return t+kt(n[0],n[1],i)},0)}function fn(t,e,n,i){if(!W(i=i||{}))throw new Error("options is invalid");var r,o=[];if("Feature"===t.type)r=t.geometry.coordinates;else{if("LineString"!==t.type)throw new Error("input must be a LineString Feature or Geometry");r=t.coordinates}for(var a,s,l,u=0,h=0;h<r.length&&!(u<=e&&h===r.length-1);h++){if(e<u&&0===o.length){if(!(a=e-u))return o.push(r[h]),q(o);s=se(r[h],r[h-1])-180,l=oe(r[h],a,s,i),o.push(l.geometry.coordinates)}if(n<=u)return(a=n-u)?(s=se(r[h],r[h-1])-180,l=oe(r[h],a,s,i),o.push(l.geometry.coordinates)):o.push(r[h]),q(o);if(e<=u&&o.push(r[h]),h===r.length-1)return q(o);u+=kt(r[h],r[h+1],i)}return q(r[r.length-1])}function dn(t,e,n){var i=(n=n||{}).ignoreEndVertices;if(!W(n))throw new Error("invalid options");if(!t)throw new Error("pt is required");if(!e)throw new Error("line is required");for(var r=X(t),o=k(e),a=0;a<o.length-1;a++){var s=!1;if(i&&(0===a&&(s="start"),a===o.length-2&&(s="end"),0===a&&a+1===o.length-1&&(s="both")),function(t,e,n,i){var r=n[0],o=n[1],a=t[0],s=t[1],l=e[0],u=e[1],h=n[0]-a,c=n[1]-s,p=l-a,f=u-s;return h*f-c*p==0&&(i?"start"===i?Math.abs(p)>=Math.abs(f)?0<p?a<r&&r<=l:l<=r&&r<a:0<f?s<o&&o<=u:u<=o&&o<s:"end"===i?Math.abs(p)>=Math.abs(f)?0<p?a<=r&&r<l:l<r&&r<=a:0<f?s<=o&&o<u:u<o&&o<=s:"both"===i?Math.abs(p)>=Math.abs(f)?0<p?a<r&&r<l:l<r&&r<a:0<f?s<o&&o<u:u<o&&o<s:void 0:Math.abs(p)>=Math.abs(f)?0<p?a<=r&&r<=l:l<=r&&r<=a:0<f?s<=o&&o<=u:u<=o&&o<=s)}(o[a],o[a+1],r,s))return!0}return!1}function yn(t,e){var n=J(t),i=J(e),r=Y(t),o=Y(e);switch(n){case"Point":switch(i){case"MultiPoint":return function(t,e){var n,i=!1;for(n=0;n<e.coordinates.length;n++)if(gn(e.coordinates[n],t.coordinates)){i=!0;break}return i}(r,o);case"LineString":return dn(r,o,{ignoreEndVertices:!0});case"Polygon":return At(r,o,{ignoreBoundary:!0});default:throw new Error("feature2 "+i+" geometry not supported")}case"MultiPoint":switch(i){case"MultiPoint":return function(t,e){for(var n=0;n<t.coordinates.length;n++){for(var i=!1,r=0;r<e.coordinates.length;r++)gn(t.coordinates[n],e.coordinates[r])&&(i=!0);if(!i)return!1}return!0}(r,o);case"LineString":return function(t,e){for(var n=!1,i=0;i<t.coordinates.length;i++){if(!dn(t.coordinates[i],e))return!1;n=n||dn(t.coordinates[i],e,{ignoreEndVertices:!0})}return n}(r,o);case"Polygon":return function(t,e){for(var n=!0,i=0;i<t.coordinates.length;i++){var r=At(t.coordinates[1],e);if(!r){n=!1;break}r=At(t.coordinates[1],e,{ignoreBoundary:!0})}return n&&r}(r,o);default:throw new Error("feature2 "+i+" geometry not supported")}case"LineString":switch(i){case"LineString":return function(t,e){for(var n=0;n<t.coordinates.length;n++)if(!dn(t.coordinates[n],e))return!1;return!0}(r,o);case"Polygon":return function(t,e){var n=Z(e),i=Z(t);if(!mn(n,i))return!1;for(var r=!1,o=0;o<t.coordinates.length-1;o++){if(!At(t.coordinates[o],e))return!1;if(!(r=r||At(t.coordinates[o],e,{ignoreBoundary:!0}))){var a=function(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}(t.coordinates[o],t.coordinates[o+1]);r=At(a,e,{ignoreBoundary:!0})}}return r}(r,o);default:throw new Error("feature2 "+i+" geometry not supported")}case"Polygon":switch(i){case"Polygon":return function(t,e){var n=Z(t);if(!mn(Z(e),n))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!At(t.coordinates[0][i],e))return!1;return!0}(r,o);default:throw new Error("feature2 "+i+" geometry not supported")}default:throw new Error("feature1 "+n+" geometry not supported")}}function mn(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function gn(t,e){return t[0]===e[0]&&t[1]===e[1]}function vn(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.mask,r=n.properties,o=[];if(null==e)throw new Error("cellSide is required");if(!U(e))throw new Error("cellSide is invalid");if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be array");if(4!==t.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(J(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var a=t[0],s=t[1],l=t[2],u=t[3],h=e/kt([a,s],[l,s],n)*(l-a),c=e/kt([a,s],[a,u],n)*(u-s),p=l-a,f=u-s,d=Math.floor(p/h),y=(f-Math.floor(f/c)*c)/2,m=a+(p-d*h)/2;m<=l;){for(var g=s+y;g<=u;){var v=j([m,g],r);i?yn(v,i)&&o.push(v):o.push(v),g+=c}m+=h}return B(o)}function xn(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.precision,i=e.coordinates,r=e.mutate;if(n=null==n||isNaN(n)?6:n,i=null==i||isNaN(i)?3:i,!t)throw new Error("<geojson> is required");if("number"!=typeof n)throw new Error("<precision> must be a number");if("number"!=typeof i)throw new Error("<coordinates> must be a number");!1!==r&&void 0!==r||(t=JSON.parse(JSON.stringify(t)));var o=Math.pow(10,n);return b(t,function(t){!function(t,e,n){t.length>n&&t.splice(n,t.length);for(var i=0;i<t.length;i++)t[i]=Math.round(t[i]*e)/e}(t,o,i)}),t}function _n(t,e){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]instanceof Array&&e[n]instanceof Array){if(!_n(t[n],e[n]))return!1}else if(t[n]!==e[n])return!1;return!0}function wn(t,e){if(void 0===e&&(e=!0),3!=t.length)throw new Error("This function requires an array of three points [x,y]");return 0<=(t[1][0]-t[0][0])*(t[2][1]-t[0][1])-(t[1][1]-t[0][1])*(t[2][0]-t[0][0])==e}function bn(t,e){if(!t||!e)return!1;if(t.length!=e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]instanceof Array&&e[n]instanceof Array){if(!bn(t[n],e[n]))return!1}else if(t[n]!=e[n])return!1;return!0}function Pn(i,t){var r=[],o=qe();return E(t,function(t){if(r.forEach(function(t,e){t.id=e}),r.length){var e=o.search(t);if(e.features.length){var n=Cn(t,e);r=r.filter(function(t){return t.id!==n.id}),o.remove(n),S(Sn(n,t),function(t){r.push(t),o.insert(t)})}}else(r=Sn(i,t).features).forEach(function(t){t.bbox||(t.bbox=re(Z(t)))}),o.load(B(r))}),B(r)}function Sn(t,o){var a=[],e=k(t)[0],n=k(t)[t.geometry.coordinates.length-1];if(Mn(e,X(o))||Mn(n,X(o)))return B([t]);var i=qe(),r=We(t);i.load(r);var s=i.search(o);if(!s.features.length)return B([t]);var l=Cn(o,s),u=C(r,function(t,e,n){var i=k(e)[1],r=X(o);return n===l.id?(t.push(r),a.push(q(t)),Mn(r,i)?[r]:[r,i]):(t.push(i),t)},[e]);return 1<u.length&&a.push(q(u)),B(a)}function Cn(n,t){if(!t.features.length)throw new Error("lines must contain features");if(1===t.features.length)return t.features[0];var i,r=1/0;return S(t,function(t){var e=He(t,n).properties.dist;e<r&&(i=t,r=e)}),i}function Mn(t,e){return t[0]===e[0]&&t[1]===e[1]}function Tn(t,e,n,i,r){if(!W(r=r||{}))throw new Error("options is invalid");var o=r.steps,a=r.units;if(!t)throw new Error("center is required");if(!e)throw new Error("radius is required");if(null==n)throw new Error("bearing1 is required");if(null==i)throw new Error("bearing2 is required");if("object"!=typeof r)throw new Error("options must be an object");o=o||64;var s=An(n),l=An(i),u=t.properties;if(s===l)return q(ae(t,e,r).geometry.coordinates[0],u);for(var h=s,c=s<l?l:l+360,p=h,f=[],d=0;p<c;)f.push(oe(t,e,p,a).geometry.coordinates),p=h+360*++d/o;return c<p&&f.push(oe(t,e,c,a).geometry.coordinates),q(f,u)}function An(t){var e=t%360;return e<0&&(e+=360),e}function En(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.properties,i=J(t),r=k(t);if(n=n||t.properties||{},!r.length)throw new Error("polygon must contain coordinates");switch(i){case"Polygon":return In(r,n);case"MultiPolygon":var o=[];return r.forEach(function(t){o.push(In(t,n))}),B(o);default:throw new Error("geom "+i+" not supported")}}function In(t,e){return 1<t.length?h(t,e):q(t[0],e)}function Ln(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.properties,i=e.autoComplete,r=e.orderCoords;if(!t)throw new Error("lines is required");switch(i=void 0===i||i,r=void 0===r||r,J(t)){case"FeatureCollection":case"GeometryCollection":var o=[];return(t.features?t.features:t.geometries).forEach(function(t){o.push(k(Rn(t,{},i,r)))}),l(o,n)}return Rn(t,n,i,r)}function Rn(t,e,n,i){e=e||t.properties||{};var r=k(t),o=J(t);if(!r.length)throw new Error("line must contain coordinates");switch(o){case"LineString":return n&&(r=On(r)),V([r],e);case"MultiLineString":var a=[],s=0;return r.forEach(function(t){if(n&&(t=On(t)),i){var e=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.abs(e-i)*Math.abs(n-r)}(Z(q(t)));s<e?(a.unshift(t),s=e):a.push(t)}else a.push(t)}),V(a,e);default:throw new Error("geometry type "+o+" is not supported")}}function On(t){var e=t[0],n=e[0],i=e[1],r=t[t.length-1],o=r[0],a=r[1];return n===o&&i===a||t.push(e),t}function Nn(t,e,n){var i,r,o,a,s,l=t.length,u=zn(t[0],e),h=[];for(n=n||[],i=1;i<l;i++){for(r=t[i-1],a=s=zn(o=t[i],e);;){if(!(u|a)){h.push(r),a!==s?(h.push(o),i<l-1&&(n.push(h),h=[])):i===l-1&&h.push(o);break}if(u&a)break;u?u=zn(r=kn(r,o,u,e),e):a=zn(o=kn(r,o,a,e),e)}u=s}return h.length&&n.push(h),n}function kn(t,e,n,i){return 8&n?[t[0]+(e[0]-t[0])*(i[3]-t[1])/(e[1]-t[1]),i[3]]:4&n?[t[0]+(e[0]-t[0])*(i[1]-t[1])/(e[1]-t[1]),i[1]]:2&n?[i[2],t[1]+(e[1]-t[1])*(i[2]-t[0])/(e[0]-t[0])]:1&n?[i[0],t[1]+(e[1]-t[1])*(i[0]-t[0])/(e[0]-t[0])]:null}function zn(t,e){var n=0;return t[0]<e[0]?n|=1:t[0]>e[2]&&(n|=2),t[1]<e[1]?n|=4:t[1]>e[3]&&(n|=8),n}function Dn(t,e){for(var n=[],i=0;i<t.length;i++){var r=ua.polygon(t[i],e);0<r.length&&(r[0][0]===r[r.length-1][0]&&r[0][1]===r[r.length-1][1]||r.push(r[0]),4<=r.length&&n.push(r))}return n}function Fn(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function Gn(t,e,n){return n=n||{},t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?(n.strict,t===e):function(t,e,n){var i,r;if(jn(t)||jn(e))return!1;if(t.prototype!==e.prototype)return!1;if(Fn(t))return!!Fn(e)&&(t=ha.call(t),e=ha.call(e),Gn(t,e,n));if(Vn(t)){if(!Vn(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var o=Object.keys(t),a=Object.keys(e)}catch(t){return!1}if(o.length!==a.length)return!1;for(o.sort(),a.sort(),i=o.length-1;0<=i;i--)if(o[i]!==a[i])return!1;for(i=o.length-1;0<=i;i--)if(r=o[i],!Gn(t[r],e[r],n))return!1;return typeof t==typeof e}(t,e,n))}function jn(t){return null==t}function Vn(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||0<t.length&&"number"!=typeof t[0])}function qn(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var o,a=n.tolerance||0,s=[],l=qe();return l.load(We(t)),L(e,function(i){var r=!1;S(l.search(i),function(t){if(!1===r){var e=k(i).sort(),n=k(t).sort();Gn(e,n)?(r=!0,o=o?Bn(o,i):i):(0===a?dn(e[0],t)&&dn(e[1],t):He(t,e[0]).properties.dist<=a&&He(t,e[1]).properties.dist<=a)?(r=!0,o=o?Bn(o,i):i):(0===a?dn(n[0],i)&&dn(n[1],i):He(i,n[0]).properties.dist<=a&&He(i,n[1]).properties.dist<=a)&&(o=o?Bn(o,t):t)}}),!1===r&&o&&(s.push(o),o=void 0)}),o&&s.push(o),B(s)}function Bn(t,e){var n=k(e),i=k(t),r=i[0],o=i[i.length-1],a=t.geometry.coordinates;return Gn(n[0],r)?a.unshift(n[1]):Gn(n[0],o)?a.push(n[1]):Gn(n[1],r)?a.unshift(n[0]):Gn(n[1],o)&&a.push(n[0]),t}function Un(t){var e=t%360;return e<0&&(e+=360),e}function Wn(t,e,n,i){if(!W(i=i||{}))throw new Error("options is invalid");var r=i.units,o=i.properties;if(!t)throw new Error("origin is required");if(null==e)throw new Error("distance is required");if(null==n)throw new Error("bearing is required");if(!(0<=e))throw new Error("distance must be greater than 0");var a=c(e,r,"meters"),s=X(t),l=function(t,e,n,i){i=void 0===i?fo:Number(i);var r=e/i,o=t[0]*Math.PI/180,a=v(t[1]),s=v(n),l=r*Math.cos(s),u=a+l;Math.abs(u)>Math.PI/2&&(u=0<u?Math.PI-u:-Math.PI-u);var h=Math.log(Math.tan(u/2+Math.PI/4)/Math.tan(a/2+Math.PI/4)),c=1e-11<Math.abs(h)?l/h:Math.cos(a),p=r*Math.sin(s)/c;return[(180*(o+p)/Math.PI+540)%360-180,180*u/Math.PI]}(s,a,n);return l[0]+=180<l[0]-s[0]?-360:180<s[0]-l[0]?360:0,j(l,o)}function Zn(t,e,n,i,r,o){for(var a=0;a<t.length;a++){var s=t[a],l=t[a+1];a===t.length-1&&(l=t[0]),i=Xn(s,l,e),n<=0&&0<i?function(t,e,n){return Xn(t,e,n)<0}(e,s,r)||(r=s):0<n&&i<=0&&(function(t,e,n){return 0<Xn(t,e,n)}(e,s,o)||(o=s)),n=i}return[r,o]}function Xn(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(n[0]-t[0])*(e[1]-t[1])}function Hn(t){if(!t)throw new Error("line is required");var e=t.geometry?t.geometry.type:t.type;if(!Array.isArray(t)&&"LineString"!==e)throw new Error("geometry must be a LineString");for(var n,i,r=k(t),o=0,a=1;a<r.length;)n=i||r[0],o+=((i=r[a])[0]-n[0])*(i[1]+n[1]),a++;return 0<o}function Yn(t,e){switch("Feature"===t.type?t.geometry.type:t.type){case"GeometryCollection":return T(t,function(t){Yn(t,e)}),t;case"LineString":return Kn(k(t),e),t;case"Polygon":return Jn(k(t),e),t;case"MultiLineString":return k(t).forEach(function(t){Kn(t,e)}),t;case"MultiPolygon":return k(t).forEach(function(t){Jn(t,e)}),t;case"Point":case"MultiPoint":return t}}function Kn(t,e){Hn(t)===e&&t.reverse()}function Jn(t,e){Hn(t[0])!==e&&t[0].reverse();for(var n=1;n<t.length;n++)Hn(t[n])===e&&t[n].reverse()}function Qn(t,e,n,i){i=i||{};for(var r=Object.keys(ca),o=0;o<r.length;o++){var a=r[o],s=i[a];s=null!=s?s:ca[a],pa[a]=s}pa.verbose&&console.log("MarchingSquaresJS-isoBands: computing isobands for ["+e+":"+(e+n)+"]");var l,u=function(t,e,n){for(var i=t.length-1,r=t[0].length-1,o={rows:i,cols:r,cells:[]},a=e+Math.abs(n),s=0;s<i;++s){o.cells[s]=[];for(var l=0;l<r;++l){var u=0,h=t[s+1][l],c=t[s+1][l+1],p=t[s][l+1],f=t[s][l];if(!(isNaN(h)||isNaN(c)||isNaN(p)||isNaN(f))){u|=h<e?0:a<h?128:64,u|=c<e?0:a<c?32:16,u|=p<e?0:a<p?8:4;var d=+(u|=f<e?0:a<f?2:1),y=0;if(17===u||18===u||33===u||34===u||38===u||68===u||72===u||98===u||102===u||132===u||136===u||137===u||152===u||153===u){var m=(h+c+p+f)/4;y=a<m?2:m<e?0:1,34===u?1===y?u=35:0===y&&(u=136):136===u?1===y?(u=35,y=4):0===y&&(u=34):17===u?1===y?(u=155,y=4):0===y&&(u=153):68===u?1===y?(u=103,y=4):0===y&&(u=102):153===u?1===y&&(u=155):102===u?1===y&&(u=103):152===u?y<2&&(u=156,y=1):137===u?y<2&&(u=139,y=1):98===u?y<2&&(u=99,y=1):38===u?y<2&&(u=39,y=1):18===u?0<y?(u=156,y=4):u=152:33===u?0<y?(u=139,y=4):u=137:72===u?0<y?(u=99,y=4):u=98:132===u&&(0<y?(u=39,y=4):u=38)}if(0!=u&&170!=u){var g,v,x,_,w,b,P,S;g=v=x=_=w=b=P=S=.5;var C=[];1===u?(x=1-$n(e,p,f),S=1-$n(e,h,f),C.push(Qa[u])):169===u?(x=$n(a,f,p),S=$n(a,f,h),C.push(Qa[u])):4===u?(b=1-$n(e,c,p),_=$n(e,f,p),C.push(Ka[u])):166===u?(b=$n(a,p,c),_=1-$n(a,p,f),C.push(Ka[u])):16===u?(w=$n(e,p,c),v=$n(e,h,c),C.push(Ya[u])):154===u?(w=1-$n(a,c,p),v=1-$n(a,c,h),C.push(Ya[u])):64===u?(P=$n(e,f,h),g=1-$n(e,c,h),C.push(ts[u])):106===u?(P=1-$n(a,h,f),g=$n(a,h,c),C.push(ts[u])):168===u?(_=$n(a,f,p),x=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),C.push(Ja[u]),C.push(Qa[u])):2===u?(_=1-$n(e,p,f),x=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),C.push(Ja[u]),C.push(Qa[u])):162===u?(w=$n(a,p,c),b=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),C.push(Ja[u]),C.push(Qa[u])):8===u?(w=1-$n(e,c,p),b=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),C.push(Ya[u]),C.push(Ka[u])):138===u?(w=1-$n(e,c,p),b=1-$n(a,c,p),g=1-$n(a,c,h),v=1-$n(e,c,h),C.push(Ya[u]),C.push(Ka[u])):32===u?(w=$n(a,p,c),b=$n(e,p,c),g=$n(e,h,c),v=$n(a,h,c),C.push(Ya[u]),C.push(Ka[u])):42===u?(S=1-$n(a,h,f),P=1-$n(e,h,f),g=$n(e,h,c),v=$n(a,h,c),C.push($a[u]),C.push(ts[u])):128===u&&(S=$n(e,f,h),P=$n(a,f,h),g=1-$n(a,c,h),v=1-$n(e,c,h),C.push($a[u]),C.push(ts[u])),5===u?(b=1-$n(e,c,p),S=1-$n(e,h,f),C.push(Ka[u])):165===u?(b=$n(a,p,c),S=$n(a,f,h),C.push(Ka[u])):20===u?(_=$n(e,f,p),v=$n(e,h,c),C.push(Ja[u])):150===u?(_=1-$n(a,p,f),v=1-$n(a,c,h),C.push(Ja[u])):80===u?(w=$n(e,p,c),P=$n(e,f,h),C.push(Ya[u])):90===u?(w=1-$n(a,c,p),P=1-$n(a,h,f),C.push(Ya[u])):65===u?(x=1-$n(e,p,f),g=1-$n(e,c,h),C.push(Qa[u])):105===u?(x=$n(a,f,p),g=$n(a,h,c),C.push(Qa[u])):160===u?(w=$n(a,p,c),b=$n(e,p,c),S=$n(e,f,h),P=$n(a,f,h),C.push(Ya[u]),C.push(Ka[u])):10===u?(w=1-$n(e,c,p),b=1-$n(a,c,p),S=1-$n(a,h,f),P=1-$n(e,h,f),C.push(Ya[u]),C.push(Ka[u])):130===u?(_=1-$n(e,p,f),x=1-$n(a,p,f),g=1-$n(a,c,h),v=1-$n(e,c,h),C.push(Ja[u]),C.push(Qa[u])):40===u?(_=$n(a,f,p),x=$n(e,f,p),g=$n(e,h,c),v=$n(a,h,c),C.push(Ja[u]),C.push(Qa[u])):101===u?(b=$n(a,p,c),g=$n(a,h,c),C.push(Ka[u])):69===u?(b=1-$n(e,c,p),g=1-$n(e,c,h),C.push(Ka[u])):149===u?(S=$n(a,f,h),v=1-$n(a,c,h),C.push($a[u])):21===u?(S=1-$n(e,h,f),v=$n(e,h,c),C.push($a[u])):86===u?(_=1-$n(a,p,f),P=1-$n(a,h,f),C.push(Ja[u])):84===u?(_=$n(e,f,p),P=$n(e,f,h),C.push(Ja[u])):89===u?(w=1-$n(a,c,p),x=$n(a,f,p),C.push(Qa[u])):81===u?(w=$n(e,p,c),x=1-$n(e,p,f),C.push(Qa[u])):96===u?(w=$n(a,p,c),b=$n(e,p,c),P=$n(e,f,h),g=$n(a,h,c),C.push(Ya[u]),C.push(Ka[u])):74===u?(w=1-$n(e,c,p),b=1-$n(a,c,p),P=1-$n(a,h,f),g=1-$n(e,c,h),C.push(Ya[u]),C.push(Ka[u])):24===u?(w=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),v=$n(e,h,c),C.push(Ya[u]),C.push(Qa[u])):146===u?(w=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),v=1-$n(a,c,h),C.push(Ya[u]),C.push(Qa[u])):6===u?(b=1-$n(e,c,p),_=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),C.push(Ka[u]),C.push(Ja[u])):164===u?(b=$n(a,p,c),_=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),C.push(Ka[u]),C.push(Ja[u])):129===u?(x=1-$n(e,p,f),S=$n(a,f,h),g=1-$n(a,c,h),v=1-$n(e,c,h),C.push(Qa[u]),C.push($a[u])):41===u?(x=$n(a,f,p),S=1-$n(e,h,f),g=$n(e,h,c),v=$n(a,h,c),C.push(Qa[u]),C.push($a[u])):66===u?(_=1-$n(e,p,f),x=1-$n(a,p,f),P=1-$n(a,h,f),g=1-$n(e,c,h),C.push(Ja[u]),C.push(Qa[u])):104===u?(_=$n(a,f,p),x=$n(e,f,p),P=$n(e,f,h),g=$n(a,h,c),C.push(Qa[u]),C.push(es[u])):144===u?(w=$n(e,p,c),S=$n(e,f,h),P=$n(a,f,h),v=1-$n(a,c,h),C.push(Ya[u]),C.push(ts[u])):26===u?(w=1-$n(a,c,p),S=1-$n(a,h,f),P=1-$n(e,h,f),v=$n(e,h,c),C.push(Ya[u]),C.push(ts[u])):36===u?(b=$n(a,p,c),_=$n(e,f,p),g=$n(e,h,c),v=$n(a,h,c),C.push(Ka[u]),C.push(Ja[u])):134===u?(b=1-$n(e,c,p),_=1-$n(a,p,f),g=1-$n(a,c,h),v=1-$n(e,c,h),C.push(Ka[u]),C.push(Ja[u])):9===u?(w=1-$n(e,c,p),b=1-$n(a,c,p),x=$n(a,f,p),S=1-$n(e,h,f),C.push(Ya[u]),C.push(Ka[u])):161===u?(w=$n(a,p,c),b=$n(e,p,c),x=1-$n(e,p,f),S=$n(a,f,h),C.push(Ya[u]),C.push(Ka[u])):37===u?(b=$n(a,p,c),S=1-$n(e,h,f),g=$n(e,h,c),v=$n(a,h,c),C.push(Ka[u]),C.push($a[u])):133===u?(b=1-$n(e,c,p),S=$n(a,f,h),g=1-$n(a,c,h),v=1-$n(e,c,h),C.push(Ka[u]),C.push($a[u])):148===u?(_=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),v=1-$n(a,c,h),C.push(Ja[u]),C.push(ts[u])):22===u?(_=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),v=$n(e,h,c),C.push(Ja[u]),C.push(ts[u])):82===u?(w=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),P=1-$n(a,h,f),C.push(Ya[u]),C.push(Qa[u])):88===u?(w=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),P=$n(e,f,h),C.push(Ya[u]),C.push(Qa[u])):73===u?(w=1-$n(e,c,p),b=1-$n(a,c,p),x=$n(a,f,p),g=1-$n(e,c,h),C.push(Ya[u]),C.push(Ka[u])):97===u?(w=$n(a,p,c),b=$n(e,p,c),x=1-$n(e,p,f),g=$n(a,h,c),C.push(Ya[u]),C.push(Ka[u])):145===u?(w=$n(e,p,c),x=1-$n(e,p,f),S=$n(a,f,h),v=1-$n(a,c,h),C.push(Ya[u]),C.push($a[u])):25===u?(w=1-$n(a,c,p),x=$n(a,f,p),S=1-$n(e,h,f),v=$n(e,h,c),C.push(Ya[u]),C.push($a[u])):70===u?(b=1-$n(e,c,p),_=1-$n(a,p,f),P=1-$n(a,h,f),g=1-$n(e,c,h),C.push(Ka[u]),C.push(Ja[u])):100===u?(b=$n(a,p,c),_=$n(e,f,p),P=$n(e,f,h),g=$n(a,h,c),C.push(Ka[u]),C.push(Ja[u])):34===u?(v=0===y?(w=1-$n(e,c,p),b=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),g=1-$n(a,c,h),1-$n(e,c,h)):(w=$n(a,p,c),b=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),g=$n(e,h,c),$n(a,h,c)),C.push(Ya[u]),C.push(Ka[u]),C.push($a[u]),C.push(ts[u])):35===u?(v=4===y?(w=1-$n(e,c,p),b=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),g=1-$n(a,c,h),1-$n(e,c,h)):(w=$n(a,p,c),b=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),g=$n(e,h,c),$n(a,h,c)),C.push(Ya[u]),C.push(Ka[u]),C.push(Qa[u]),C.push(ts[u])):136===u?(v=0===y?(w=$n(a,p,c),b=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),g=$n(e,h,c),$n(a,h,c)):(w=1-$n(e,c,p),b=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),g=1-$n(a,c,h),1-$n(e,c,h)),C.push(Ya[u]),C.push(Ka[u]),C.push($a[u]),C.push(ts[u])):153===u?(v=0===y?(w=$n(e,p,c),x=1-$n(e,p,f),S=1-$n(e,h,f),$n(e,h,c)):(w=1-$n(a,c,p),x=$n(a,f,p),S=$n(a,f,h),1-$n(a,c,h)),C.push(Ya[u]),C.push(Qa[u])):102===u?(g=0===y?(b=1-$n(e,c,p),_=$n(e,f,p),P=$n(e,f,h),1-$n(e,c,h)):(b=$n(a,p,c),_=1-$n(a,p,f),P=1-$n(a,h,f),$n(a,h,c)),C.push(Ka[u]),C.push(ts[u])):155===u?(v=4===y?(w=$n(e,p,c),x=1-$n(e,p,f),S=1-$n(e,h,f),$n(e,h,c)):(w=1-$n(a,c,p),x=$n(a,f,p),S=$n(a,f,h),1-$n(a,c,h)),C.push(Ya[u]),C.push($a[u])):103===u?(g=4===y?(b=1-$n(e,c,p),_=$n(e,f,p),P=$n(e,f,h),1-$n(e,c,h)):(b=$n(a,p,c),_=1-$n(a,p,f),P=1-$n(a,h,f),$n(a,h,c)),C.push(Ka[u]),C.push(Ja[u])):152===u?(v=0===y?(w=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),$n(e,h,c)):(w=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),1-$n(a,c,h)),C.push(Ya[u]),C.push(Ja[u]),C.push(Qa[u])):156===u?(v=4===y?(w=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),$n(e,h,c)):(w=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),1-$n(a,c,h)),C.push(Ya[u]),C.push(Qa[u]),C.push(ts[u])):137===u?(v=0===y?(w=$n(a,p,c),b=$n(e,p,c),x=1-$n(e,p,f),S=1-$n(e,h,f),g=$n(e,h,c),$n(a,h,c)):(w=1-$n(e,c,p),b=1-$n(a,c,p),x=$n(a,f,p),S=$n(a,f,h),g=1-$n(a,c,h),1-$n(e,c,h)),C.push(Ya[u]),C.push(Ka[u]),C.push(Qa[u])):139===u?(v=4===y?(w=$n(a,p,c),b=$n(e,p,c),x=1-$n(e,p,f),S=1-$n(e,h,f),g=$n(e,h,c),$n(a,h,c)):(w=1-$n(e,c,p),b=1-$n(a,c,p),x=$n(a,f,p),S=$n(a,f,h),g=1-$n(a,c,h),1-$n(e,c,h)),C.push(Ya[u]),C.push(Ka[u]),C.push($a[u])):98===u?(g=0===y?(w=1-$n(e,c,p),b=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),P=$n(e,f,h),1-$n(e,c,h)):(w=$n(a,p,c),b=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),P=1-$n(a,h,f),$n(a,h,c)),C.push(Ya[u]),C.push(Ka[u]),C.push(ts[u])):99===u?(g=4===y?(w=1-$n(e,c,p),b=1-$n(a,c,p),_=$n(a,f,p),x=$n(e,f,p),P=$n(e,f,h),1-$n(e,c,h)):(w=$n(a,p,c),b=$n(e,p,c),_=1-$n(e,p,f),x=1-$n(a,p,f),P=1-$n(a,h,f),$n(a,h,c)),C.push(Ya[u]),C.push(Ka[u]),C.push(Qa[u])):38===u?(v=0===y?(b=1-$n(e,c,p),_=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),g=1-$n(a,c,h),1-$n(e,c,h)):(b=$n(a,p,c),_=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),g=$n(e,h,c),$n(a,h,c)),C.push(Ka[u]),C.push($a[u]),C.push(ts[u])):39===u?(v=4===y?(b=1-$n(e,c,p),_=$n(e,f,p),S=$n(e,f,h),P=$n(a,f,h),g=1-$n(a,c,h),1-$n(e,c,h)):(b=$n(a,p,c),_=1-$n(a,p,f),S=1-$n(a,h,f),P=1-$n(e,h,f),g=$n(e,h,c),$n(a,h,c)),C.push(Ka[u]),C.push(Ja[u]),C.push(ts[u])):85===u&&(g=S=x=b=0,v=P=_=w=1),(g<0||1<g||v<0||1<v||w<0||1<w||_<0||1<_||S<0||1<S||P<0||1<P)&&console.log("MarchingSquaresJS-isoBands: "+u+" "+d+" "+h+","+c+","+p+","+f+" "+y+" "+g+" "+v+" "+w+" "+b+" "+_+" "+x+" "+S+" "+P),o.cells[s][l]={cval:u,cval_real:d,flipped:y,topleft:g,topright:v,righttop:w,rightbottom:b,bottomright:_,bottomleft:x,leftbottom:S,lefttop:P,edges:C}}}}}return o}(t,e,n);return l=pa.polygons?(pa.verbose&&console.log("MarchingSquaresJS-isoBands: returning single polygons for each grid cell"),function(t){var r=[],o=0;return t.cells.forEach(function(t,i){t.forEach(function(t,e){if(void 0!==t){var n=is[t.cval](t);"object"==typeof n&&ti(n)?"object"==typeof n[0]&&ti(n[0])?"object"==typeof n[0][0]&&ti(n[0][0])?n.forEach(function(t){t.forEach(function(t){t[0]+=e,t[1]+=i}),r[o++]=t}):(n.forEach(function(t){t[0]+=e,t[1]+=i}),r[o++]=n):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates")}})}),r}(u)):(pa.verbose&&console.log("MarchingSquaresJS-isoBands: returning polygon paths for entire data grid"),function(t){for(var e=[],n=t.rows,i=t.cols,r=[],o=0;o<n;o++)for(var a=0;a<i;a++)if(void 0!==t.cells[o][a]&&0<t.cells[o][a].edges.length){var s=t.cells[o][a],l=function(t){if(0<t.edges.length){var e=t.edges[t.edges.length-1],n=t.cval_real;switch(e){case 0:return n&da?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.topleft,1],x:0,y:-1,o:0};case 1:return n&ya?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 2:return n&ya?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[t.topleft,1],x:0,y:-1,o:0};case 3:return n&ma?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 4:return n&da?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};case 5:return n&ya?{p:[t.topright,1],x:0,y:-1,o:1}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 6:return n&ya?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};case 7:return n&ma?{p:[t.topright,1],x:0,y:-1,o:1}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 8:return n&ya?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[1,t.righttop],x:-1,y:0,o:1};case 9:return n&ma?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 10:return n&ma?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[1,t.righttop],x:-1,y:0,o:1};case 11:return n&fa?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[0,t.lefttop],x:1,y:0,o:1};case 12:return n&ya?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 13:return n&ma?{p:[1,t.rightbottom],x:-1,y:0,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 14:return n&ma?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 15:return n&fa?{p:[1,t.rightbottom],x:-1,y:0,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 16:return n&ya?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[0,t.leftbottom],x:1,y:0,o:0};case 17:return n&fa?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[0,t.lefttop],x:1,y:0,o:1};case 18:return n&ma?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 19:return n&fa?{p:[t.bottomleft,0],x:0,y:1,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 20:return n&fa?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[0,t.leftbottom],x:1,y:0,o:0};case 21:return n&da?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[t.topright,1],x:0,y:-1,o:1};case 22:return n&fa?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 23:return n&da?{p:[0,t.lefttop],x:1,y:0,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(t)}}return null}(s),u=null,h=a,c=o;null!==l&&r.push([l.p[0]+h,l.p[1]+c]);do{if(null===(u=function(t,e,n,i){var r,o,a,s,l,u=t.cval;switch(e){case-1:switch(i){case 0:r=Ka[u],a=Ma[u],s=Ta[u],l=Aa[u];break;default:r=Ya[u],a=Pa[u],s=Sa[u],l=Ca[u]}break;case 1:switch(i){case 0:r=$a[u],a=Fa[u],s=Ga[u],l=ja[u];break;default:r=ts[u],a=ka[u],s=za[u],l=Da[u]}break;default:switch(n){case-1:switch(i){case 0:r=es[u],a=ga[u],s=va[u],l=xa[u];break;default:r=ns[u],a=_a[u],s=wa[u],l=ba[u]}break;case 1:switch(i){case 0:r=Qa[u],a=Ea[u],s=Ia[u],l=La[u];break;default:r=Ja[u],a=Ra[u],s=Oa[u],l=Na[u]}}}if(o=t.edges.indexOf(r),void 0===t.edges[o])return null;switch(function(t,e){delete t.edges[e];for(var n=e+1;n<t.edges.length;n++)t.edges[n-1]=t.edges[n];t.edges.pop()}(t,o),u=t.cval_real,r){case 0:n=u&da?(e=t.topleft,1):(e=1,t.righttop);break;case 1:n=u&ya?(e=1,t.rightbottom):(e=t.topleft,1);break;case 2:n=u&ya?(e=t.topleft,1):(e=t.bottomright,0);break;case 3:n=u&ma?(e=t.bottomleft,0):(e=t.topleft,1);break;case 4:n=u&da?(e=t.topright,1):(e=1,t.righttop);break;case 5:n=u&ya?(e=1,t.rightbottom):(e=t.topright,1);break;case 6:n=u&ya?(e=t.topright,1):(e=t.bottomright,0);break;case 7:n=u&ma?(e=t.bottomleft,0):(e=t.topright,1);break;case 8:n=u&ya?(e=1,t.righttop):(e=t.bottomright,0);break;case 9:n=u&ma?(e=t.bottomleft,0):(e=1,t.righttop);break;case 10:n=u&ma?(e=1,t.righttop):(e=0,t.leftbottom);break;case 11:n=u&fa?(e=0,t.lefttop):(e=1,t.righttop);break;case 12:n=u&ya?(e=1,t.rightbottom):(e=t.bottomright,0);break;case 13:n=u&ma?(e=t.bottomleft,0):(e=1,t.rightbottom);break;case 14:n=u&ma?(e=1,t.rightbottom):(e=0,t.leftbottom);break;case 15:n=u&fa?(e=0,t.lefttop):(e=1,t.rightbottom);break;case 16:n=u&ya?(e=0,t.leftbottom):(e=t.bottomright,0);break;case 17:n=u&fa?(e=0,t.lefttop):(e=t.bottomright,0);break;case 18:n=u&ma?(e=t.bottomleft,0):(e=0,t.leftbottom);break;case 19:n=u&fa?(e=0,t.lefttop):(e=t.bottomleft,0);break;case 20:n=u&fa?(e=0,t.leftbottom):(e=t.topleft,1);break;case 21:n=u&da?(e=t.topright,1):(e=0,t.leftbottom);break;case 22:n=u&fa?(e=0,t.lefttop):(e=t.topleft,1);break;case 23:n=u&da?(e=t.topright,1):(e=0,t.lefttop);break;default:return console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(t),null}return void 0!==e&&void 0!==n&&void 0!==a&&void 0!==s&&void 0!==l||(console.log("MarchingSquaresJS-isoBands: undefined value!"),console.log(t),console.log(e+" "+n+" "+a+" "+s+" "+l)),{p:[e,n],x:a,y:s,o:l}}(t.cells[c][h],l.x,l.y,l.o)))break;if(r.push([u.p[0]+h,u.p[1]+c]),h+=u.x,c+=u.y,l=u,c<0||n<=c||h<0||i<=h||void 0===t.cells[c][h]){h-=u.x,c-=u.y;var p=function(t,e,n,i,r,o){for(var a=t.cells[n][e],s=a.cval_real,l=e+i,u=n+r,h=[],c=!1;!c;){if(void 0===t.cells[u]||void 0===t.cells[u][l])if(u-=r,l-=i,a=t.cells[u][l],s=a.cval_real,-1===r)if(0===o)if(s&ma)h.push([l,u]),i=-1,o=r=0;else{if(!(s&ya)){h.push([l+a.bottomright,u]),o=r=1,c=!(i=0);break}h.push([l+1,u]),i=1,o=r=0}else{if(!(s&ma)){if(s&ya){h.push([l+a.bottomright,u]),o=r=1,c=!(i=0);break}h.push([l+a.bottomleft,u]),r=1,c=!(o=i=0);break}h.push([l,u]),i=-1,o=r=0}else if(1===r)if(0===o){if(!(s&da)){if(s&fa){h.push([l+a.topleft,u+1]),r=-1,c=!(o=i=0);break}h.push([l+a.topright,u+1]),r=-1,o=1,c=!(i=0);break}h.push([l+1,u+1]),r=0,o=i=1}else h.push([l+1,u+1]),r=0,o=i=1;else if(-1===i)if(0===o){if(!(s&fa)){if(s&ma){h.push([l,u+a.leftbottom]),i=1,c=!(o=r=0);break}h.push([l,u+a.lefttop]),o=i=1,c=!(r=0);break}h.push([l,u+1]),r=1,o=i=0}else{if(!(s&fa)){console.log("MarchingSquaresJS-isoBands: wtf");break}h.push([l,u+1]),r=1,o=i=0}else{if(1!==i){console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}if(0===o){if(!(s&ya)){h.push([l+1,u+a.rightbottom]),i=-1,c=!(o=r=0);break}h.push([l+1,u]),i=0,r=-1,o=1}else{if(!(s&ya)){if(s&da){h.push([l+1,u+a.righttop]),i=-1,r=0,o=1;break}h.push([l+1,u+a.rightbottom]),i=-1,c=!(o=r=0);break}h.push([l+1,u]),i=0,r=-1,o=1}}else if(a=t.cells[u][l],s=a.cval_real,-1===i)if(0===o)if(void 0!==t.cells[u-1]&&void 0!==t.cells[u-1][l])i=0,r=-1,o=1;else{if(!(s&ma)){h.push([l+a.bottomright,u]),o=r=1,c=!(i=0);break}h.push([l,u])}else{if(!(s&fa)){console.log("MarchingSquaresJS-isoBands: found entry from top at "+l+","+u);break}console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!")}else if(1===i){if(0===o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[u+1]&&void 0!==t.cells[u+1][l])r=1,o=i=0;else{if(!(s&da)){h.push([l+a.topleft,u+1]),r=-1,c=!(o=i=0);break}h.push([l+1,u+1]),r=0,o=i=1}}else if(-1===r){if(1!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[u][l+1])r=0,o=i=1;else{if(!(s&ya)){h.push([l+1,u+a.righttop]),i=-1,o=1,c=!(r=0);break}h.push([l+1,u]),i=0,r=-1,o=1}}else{if(1!==r){console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(0!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[u][l-1])i=-1,o=r=0;else{if(!(s&fa)){h.push([l,u+a.leftbottom]),i=1,c=!(o=r=0);break}h.push([l,u+1]),r=1,o=i=0}}if(u+=r,(l+=i)===e&&u===n)break}return{path:h,i:l,j:u,x:i,y:r,o:o}}(t,h,c,u.x,u.y,u.o);if(null===p)break;p.path.forEach(function(t){r.push(t)}),h=p.i,c=p.j,l=p}}while(void 0!==t.cells[c][h]&&0<t.cells[c][h].edges.length);e.push(r),r=[],0<t.cells[o][a].edges.length&&a--}return e}(u)),"function"==typeof pa.successCallback&&pa.successCallback(l),l}function $n(t,e,n){return(t-e)/(n-e)}function ti(t){return-1<t.constructor.toString().indexOf("Array")}function ei(t,r,e){if(!W(e=e||{}))throw new Error("options is invalid");var o=e.pivot,n=e.mutate;if(!t)throw new Error("geojson is required");if(null==r||isNaN(r))throw new Error("angle is required");return 0===r||(o=o||ue(t),!1!==n&&void 0!==n||(t=zt(t)),b(t,function(t){var e=Ye(o,t)+r,n=Je(o,t),i=k(Wn(o,n,e));t[0]=i[0],t[1]=i[1]})),t}function ni(n,i,t){if(!W(t=t||{}))throw new Error("options is invalid");var r=t.origin,e=t.mutate;if(!n)throw new Error("geojson required");if("number"!=typeof i||0===i)throw new Error("invalid factor");var o=Array.isArray(r)||"object"==typeof r;return!0!==e&&(n=zt(n)),"FeatureCollection"!==n.type||o?ii(n,i,r):(S(n,function(t,e){n.features[e]=ii(t,i,r)}),n)}function ii(t,r,o){var e="Point"===J(t);return o=function(t,e){if(null!=e||(e="centroid"),Array.isArray(e)||"object"==typeof e)return X(e);var n=t.bbox?t.bbox:Z(t),i=n[0],r=n[1],o=n[2],a=n[3];switch(e){case"sw":case"southwest":case"westsouth":case"bottomleft":return j([i,r]);case"se":case"southeast":case"eastsouth":case"bottomright":return j([o,r]);case"nw":case"northwest":case"westnorth":case"topleft":return j([i,a]);case"ne":case"northeast":case"eastnorth":case"topright":return j([o,a]);case"center":return le(t);case void 0:case null:case"centroid":return ue(t);default:throw new Error("invalid origin")}}(t,o),1===r||e||b(t,function(t){var e=Je(o,t),n=Ye(o,t),i=k(Wn(o,e*r,n));t[0]=i[0],t[1]=i[1],3===t.length&&(t[2]*=r)}),t}function ri(t){var e=t[0],n=t[1];return[n[0]-e[0],n[1]-e[1]]}function oi(t,e){return t[0]*e[1]-e[0]*t[1]}function ai(t,e,n){var o=[],a=u(e,n),s=k(t),l=[];return s.forEach(function(t,e){if(e!==s.length-1){var n=function(t,e,n){var i=Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])),r=t[0]+n*(e[1]-t[1])/i,o=e[0]+n*(e[1]-t[1])/i,a=t[1]+n*(t[0]-e[0])/i,s=e[1]+n*(t[0]-e[0])/i;return[[r,a],[o,s]]}(t,s[e+1],a);if(o.push(n),0<e){var i=o[e-1],r=function(n,t){return!function(t,e){return 0===oi(ri(n),ri(e))}(0,t)&&function(t,e){var n,i,r,o,a,s,l=t[0],u=ri(t),h=e[0],c=ri(e),p=oi(u,c);return r=oi((s=n=l,[(a=h)[0]-s[0],a[1]-s[1]]),c)/p,i=[r*(o=u)[0],r*o[1]],[n[0]+i[0],n[1]+i[1]]}(n,t)}(n,i);!1!==r&&(i[1]=r,n[0]=r),l.push(i[0]),e===s.length-2&&(l.push(n[0]),l.push(n[1]))}2===s.length&&(l.push(n[0]),l.push(n[1]))}}),q(l,t.properties)}function si(t,e,n){var i=e[0]-t[0],r=e[1]-t[1],o=n[0]-e[0],a=n[1]-e[1];return Math.sign(i*a-o*r)}function li(e,t){return t.geometry.coordinates[0].every(function(t){return At(j(t),e)})}function ui(t,e){for(var n=0;n<t.coordinates.length-1;n++)if(function(t,e,n){var i=n[0]-t[0],r=n[1]-t[1],o=e[0]-t[0],a=e[1]-t[1];return i*a-r*o==0&&(Math.abs(o)>=Math.abs(a)?0<o?t[0]<=n[0]&&n[0]<=e[0]:e[0]<=n[0]&&n[0]<=t[0]:0<a?t[1]<=n[1]&&n[1]<=e[1]:e[1]<=n[1]&&n[1]<=t[1])}(t.coordinates[n],t.coordinates[n+1],e.coordinates))return!0;return!1}function hi(t,e){return 0<Ze(e,En(t)).features.length}function ci(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function pi(t,e){return t[0]===e[0]&&t[1]===e[1]}function fi(t,e){for(var n=!1,i=!1,r=t.coordinates.length,o=0;o<r&&!n&&!i;){for(var a=0;a<e.coordinates.length-1;a++){var s=!0;0!==a&&a!==e.coordinates.length-2||(s=!1),mi(e.coordinates[a],e.coordinates[a+1],t.coordinates[o],s)?n=!0:i=!0}o++}return n&&i}function di(t,e){return 0<Ze(t,En(e)).features.length}function yi(t,e){for(var n=!1,i=!1,r=t.coordinates[0].length,o=0;o<r&&n&&i;)At(j(t.coordinates[0][o]),e)?n=!0:i=!0,o++;return i&&i}function mi(t,e,n,i){var r=n[0]-t[0],o=n[1]-t[1],a=e[0]-t[0],s=e[1]-t[1];return 0==r*s-o*a&&(i?Math.abs(a)>=Math.abs(s)?0<a?t[0]<=n[0]&&n[0]<=e[0]:e[0]<=n[0]&&n[0]<=t[0]:0<s?t[1]<=n[1]&&n[1]<=e[1]:e[1]<=n[1]&&n[1]<=t[1]:Math.abs(a)>=Math.abs(s)?0<a?t[0]<n[0]&&n[0]<e[0]:e[0]<n[0]&&n[0]<t[0]:0<s?t[1]<n[1]&&n[1]<e[1]:e[1]<n[1]&&n[1]<t[1])}function gi(e){return e.coordinates.map(function(t){return{type:e.type.replace("Multi",""),coordinates:t}})}function vi(t,e){return t.hasOwnProperty("coordinates")?t.coordinates.length===e.coordinates.length:t.length===e.length}function xi(t,e){return cs(t,e,{strict:!0})}function _i(t,n){if(!t)throw new Error("feature1 is required");if(!n)throw new Error("feature2 is required");var e=J(t);if(e!==J(n))throw new Error("features must be of the same type");if("Point"===e)throw new Error("Point geometry not supported");if(new fs({precision:6}).compare(t,n))return!1;var i=0;switch(e){case"MultiPoint":var r=M(t),o=M(n);r.forEach(function(e){o.forEach(function(t){e[0]===t[0]&&e[1]===t[1]&&i++})});break;case"LineString":case"MultiLineString":L(t,function(e){L(n,function(t){qn(e,t).features.length&&i++})});break;case"Polygon":case"MultiPolygon":L(t,function(e){L(n,function(t){Ze(e,t).features.length&&i++})})}return 0<i}function wi(t,e,n){n=n||[];for(var i=0;i<t;i++)n[i]=e;return n}function bi(t,e){if(t.geometry&&t.geometry.type)return t.geometry.type;if(t.type)return t.type;throw new Error("Invalid GeoJSON object for "+e)}function Pi(t){for(var e=t,n=[];e.parent;)n.unshift(e),e=e.parent;return n}function Si(t,e){e=e||{},this.nodes=[],this.diagonal=!!e.diagonal,this.grid=[];for(var n=0;n<t.length;n++){this.grid[n]=[];for(var i=0,r=t[n];i<r.length;i++){var o=new Ci(n,i,r[i]);this.grid[n][i]=o,this.nodes.push(o)}}this.init()}function Ci(t,e,n){this.x=t,this.y=e,this.weight=n}function Mi(t){this.content=[],this.scoreFunction=t}function Ti(t){return t[0]}function Ai(t){return t[1]}function Ei(){this._=null}function Ii(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Li(t,e){var n=e,i=e.R,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function Ri(t,e){var n=e,i=e.L,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function Oi(t){for(;t.L;)t=t.L;return t}function Ni(t,e,n,i){var r=[null,null],o=Is.push(r)-1;return r.left=t,r.right=e,n&&zi(r,t,e,n),i&&zi(r,e,t,i),As[t.index].halfedges.push(o),As[e.index].halfedges.push(o),r}function ki(t,e,n){var i=[e,n];return i.left=t,i}function zi(t,e,n,i){t[0]||t[1]?t.left===n?t[1]=i:t[0]=i:(t[0]=i,t.left=e,t.right=n)}function Di(t,e,n,i,r){var o,a=t[0],s=t[1],l=a[0],u=a[1],h=0,c=1,p=s[0]-l,f=s[1]-u;if(o=e-l,p||!(0<o)){if(o/=p,p<0){if(o<h)return;o<c&&(c=o)}else if(0<p){if(c<o)return;h<o&&(h=o)}if(o=i-l,p||!(o<0)){if(o/=p,p<0){if(c<o)return;h<o&&(h=o)}else if(0<p){if(o<h)return;o<c&&(c=o)}if(o=n-u,f||!(0<o)){if(o/=f,f<0){if(o<h)return;o<c&&(c=o)}else if(0<f){if(c<o)return;h<o&&(h=o)}if(o=r-u,f||!(o<0)){if(o/=f,f<0){if(c<o)return;h<o&&(h=o)}else if(0<f){if(o<h)return;o<c&&(c=o)}return!(0<h||c<1)||(0<h&&(t[0]=[l+h*p,u+h*f]),c<1&&(t[1]=[l+c*p,u+c*f]),!0)}}}}}function Fi(t,e,n,i,r){var o=t[1];if(o)return!0;var a,s,l=t[0],u=t.left,h=t.right,c=u[0],p=u[1],f=h[0],d=h[1],y=(c+f)/2,m=(p+d)/2;if(d===p){if(y<e||i<=y)return;if(f<c){if(l){if(l[1]>=r)return}else l=[y,n];o=[y,r]}else{if(l){if(l[1]<n)return}else l=[y,r];o=[y,n]}}else if(s=m-(a=(c-f)/(d-p))*y,a<-1||1<a)if(f<c){if(l){if(l[1]>=r)return}else l=[(n-s)/a,n];o=[(r-s)/a,r]}else{if(l){if(l[1]<n)return}else l=[(r-s)/a,r];o=[(n-s)/a,n]}else if(p<d){if(l){if(l[0]>=i)return}else l=[e,a*e+s];o=[i,a*i+s]}else{if(l){if(l[0]<e)return}else l=[i,a*i+s];o=[e,a*e+s]}return t[0]=l,t[1]=o,!0}function Gi(t,e){return e[+(e.left!==t.site)]}function ji(t){var e=t.P,n=t.N;if(e&&n){var i=e.site,r=t.site,o=n.site;if(i!==o){var a=r[0],s=r[1],l=i[0]-a,u=i[1]-s,h=o[0]-a,c=o[1]-s,p=2*(l*c-u*h);if(!(-Ns<=p)){var f=l*l+u*u,d=h*h+c*c,y=(c*f-u*d)/p,m=(l*d-h*f)/p,g=Ls.pop()||new function(){Ii(this),this.x=this.y=this.arc=this.site=this.cy=null};g.arc=t,g.site=r,g.x=y+a,g.y=(g.cy=m+s)+Math.sqrt(y*y+m*m),t.circle=g;for(var v=null,x=Es._;x;)if(g.y<x.y||g.y===x.y&&g.x<=x.x){if(!x.L){v=x.P;break}x=x.L}else{if(!x.R){v=x;break}x=x.R}Es.insert(v,g),v||(Ms=g)}}}}function Vi(t){var e=t.circle;e&&(e.P||(Ms=e.N),Es.remove(e),Ls.push(e),Ii(e),t.circle=null)}function qi(t){var e=Rs.pop()||new function(){Ii(this),this.edge=this.site=this.circle=null};return e.site=t,e}function Bi(t){Vi(t),Ts.remove(t),Rs.push(t),Ii(t)}function Ui(t){var e=t.circle,n=e.x,i=e.cy,r=[n,i],o=t.P,a=t.N,s=[t];Bi(t);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<Os&&Math.abs(i-l.circle.cy)<Os;)o=l.P,s.unshift(l),Bi(l),l=o;s.unshift(l),Vi(l);for(var u=a;u.circle&&Math.abs(n-u.circle.x)<Os&&Math.abs(i-u.circle.cy)<Os;)a=u.N,s.push(u),Bi(u),u=a;s.push(u),Vi(u);var h,c=s.length;for(h=1;h<c;++h)u=s[h],l=s[h-1],zi(u.edge,l.site,u.site,r);l=s[0],(u=s[c-1]).edge=Ni(l.site,u.site,null,r),ji(l),ji(u)}function Wi(t){for(var e,n,i,r,o=t[0],a=t[1],s=Ts._;s;)if((i=Zi(s,a)-o)>Os)s=s.L;else{if(!((r=o-function(t,e){var n=t.N;if(n)return Zi(n,e);var i=t.site;return i[1]===e?i[0]:1/0}(s,a))>Os)){-Os<i?(e=s.P,n=s):-Os<r?n=(e=s).N:e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){As[t.index]={site:t,halfedges:[]}}(t);var l=qi(t);if(Ts.insert(e,l),e||n){if(e===n)return Vi(e),n=qi(e.site),Ts.insert(l,n),l.edge=n.edge=Ni(e.site,l.site),ji(e),void ji(n);if(n){Vi(e),Vi(n);var u=e.site,h=u[0],c=u[1],p=t[0]-h,f=t[1]-c,d=n.site,y=d[0]-h,m=d[1]-c,g=2*(p*m-f*y),v=p*p+f*f,x=y*y+m*m,_=[(m*v-f*x)/g+h,(p*x-y*v)/g+c];zi(n.edge,u,d,_),l.edge=Ni(u,t,null,_),n.edge=Ni(t,d,null,_),ji(e),ji(n)}else l.edge=Ni(e.site,l.site)}}function Zi(t,e){var n=t.site,i=n[0],r=n[1],o=r-e;if(!o)return i;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],u=l-e;if(!u)return s;var h=s-i,c=1/o-1/u,p=h/u;return c?(-p+Math.sqrt(p*p-2*c*(h*h/(-2*u)-l+u/2+r-o/2)))/c+i:(i+s)/2}function Xi(t,e){return e[1]-t[1]||e[0]-t[0]}function Hi(t,e){var n,i,r,o=t.sort(Xi).pop();for(Is=[],As=new Array(t.length),Ts=new Ei,Es=new Ei;;)if(r=Ms,o&&(!r||o[1]<r.y||o[1]===r.y&&o[0]<r.x))o[0]===n&&o[1]===i||(Wi(o),n=o[0],i=o[1]),o=t.pop();else{if(!r)break;Ui(r.arc)}if(function(){for(var t,e,n,i,r=0,o=As.length;r<o;++r)if((t=As[r])&&(i=(e=t.halfedges).length)){var a=new Array(i),s=new Array(i);for(n=0;n<i;++n)a[n]=n,s[n]=(l=t,u=Is[e[n]],p=c=void 0,h=l.site,c=u.left,p=u.right,h===p&&(p=c,c=h),p?Math.atan2(p[1]-c[1],p[0]-c[0]):(p=h===c?(c=u[1],u[0]):(c=u[0],u[1]),Math.atan2(c[0]-p[0],p[1]-c[1])));for(a.sort(function(t,e){return s[e]-s[t]}),n=0;n<i;++n)s[n]=e[a[n]];for(n=0;n<i;++n)e[n]=s[n]}var l,u,h,c,p}(),e){var a=+e[0][0],s=+e[0][1],l=+e[1][0],u=+e[1][1];!function(t,e,n,i){for(var r,o=Is.length;o--;)Fi(r=Is[o],t,e,n,i)&&Di(r,t,e,n,i)&&(Math.abs(r[0][0]-r[1][0])>Os||Math.abs(r[0][1]-r[1][1])>Os)||delete Is[o]}(a,s,l,u),function(t,e,n,i){var r,o,a,s,l,u,h,c,p,f,d,y,m,g,v=As.length,x=!0;for(r=0;r<v;++r)if(o=As[r]){for(a=o.site,s=(l=o.halfedges).length;s--;)Is[l[s]]||l.splice(s,1);for(s=0,u=l.length;s<u;)d=(m=o,g=Is[l[s]],f=g[+(g.left===m.site)])[0],y=f[1],c=(h=Gi(o,Is[l[++s%u]]))[0],p=h[1],(Math.abs(d-c)>Os||Math.abs(y-p)>Os)&&(l.splice(s,0,Is.push(ki(a,f,Math.abs(d-t)<Os&&Os<i-y?[t,Math.abs(c-t)<Os?p:i]:Math.abs(y-i)<Os&&Os<n-d?[Math.abs(p-i)<Os?c:n,i]:Math.abs(d-n)<Os&&Os<y-e?[n,Math.abs(c-n)<Os?p:e]:Math.abs(y-e)<Os&&Os<d-t?[Math.abs(p-e)<Os?c:t,e]:null))-1),++u);u&&(x=!1)}if(x){var _,w,b,P=1/0;for(r=0,x=null;r<v;++r)(o=As[r])&&(b=(_=(a=o.site)[0]-t)*_+(w=a[1]-e)*w)<P&&(P=b,x=o);if(x){var S=[t,e],C=[t,i],M=[n,i],T=[n,e];x.halfedges.push(Is.push(ki(a=x.site,S,C))-1,Is.push(ki(a,C,M))-1,Is.push(ki(a,M,T))-1,Is.push(ki(a,T,S))-1)}}for(r=0;r<v;++r)(o=As[r])&&(o.halfedges.length||delete As[r])}(a,s,l,u)}this.edges=Is,this.cells=As,Ts=Es=Is=As=null}function Yi(t){return(t=t.slice()).push(t[0]),V([t])}function Ki(t,e,n,i){var r=(i=i||{}).steps||64,o=i.units||"kilometers",a=i.angle||0,s=i.pivot||t,l=i.properties||t.properties||{};if(!t)throw new Error("center is required");if(!e)throw new Error("xSemiAxis is required");if(!n)throw new Error("ySemiAxis is required");if(!W(i))throw new Error("options must be an object");if(!U(r))throw new Error("steps must be a number");if(!U(a))throw new Error("angle must be a number");var u=X(t);if("degrees"===o)var h=v(a);else e=Wn(t,e,90,{units:o}),n=Wn(t,n,0,{units:o}),e=X(e)[0]-u[0],n=X(n)[1]-u[1];for(var c=[],p=0;p<r;p+=1){var f=-360*p/r,d=e*n/Math.sqrt(Math.pow(n,2)+Math.pow(e,2)*Math.pow(Ji(f),2)),y=e*n/Math.sqrt(Math.pow(e,2)+Math.pow(n,2)/Math.pow(Ji(f),2));if(f<-90&&-270<=f&&(d=-d),f<-180&&-360<=f&&(y=-y),"degrees"===o){var m=d*Math.cos(h)+y*Math.sin(h),g=y*Math.cos(h)-d*Math.sin(h);d=m,y=g}c.push([d+u[0],y+u[1]])}return c.push(c[0]),"degrees"===o?V([c],l):ei(V([c],l),a,{pivot:s})}function Ji(t){var e=t*Math.PI/180;return Math.tan(e)}function Qi(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.properties,r=e.weight;if(!t)throw new Error("geojson is required");var o=0,a=0,s=0;return T(t,function(t,e,n){var i=n[r];if(!U(i=null==i?1:i))throw new Error("weight value must be a number for feature index "+e);0<(i=Number(i))&&b(t,function(t){o+=t[0]*i,a+=t[1]*i,s+=i})}),j([o/s,a/s],n)}function $i(t,e){return{x:t[0]-e[0],y:t[1]-e[1]}}function tr(t){if(W(t)&&(t=t.bbox),t&&!Array.isArray(t))throw new Error("bbox is invalid");return t?function(t){return[Math.random()*(t[2]-t[0])+t[0],Math.random()*(t[3]-t[1])+t[1]]}(t):[360*rr(),180*rr()]}function er(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.bbox;null!=t||(t=1);for(var i=[],r=0;r<t;r++)i.push(j(tr(n)));return B(i)}function nr(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.bbox,i=e.num_vertices,r=e.max_radial_length;null!=t||(t=1),U(i)||(i=10),U(r)||(r=10);for(var o=[],a=0;a<t;a++){var s=[],l=Array.apply(null,new Array(i+1)).map(Math.random);l.forEach(function(t,e,n){n[e]=0<e?t+n[e-1]:t}),l.forEach(function(t){t=2*t*Math.PI/l[l.length-1];var e=Math.random();s.push([e*r*Math.sin(t),e*r*Math.cos(t)])}),s[s.length-1]=s[0],s=s.map(function(e){return function(t){return[t[0]+e[0],t[1]+e[1]]}}(tr(n))),o.push(V([s]))}return B(o)}function ir(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.bbox,i=e.num_vertices,r=e.max_length,o=e.max_rotation;null!=t||(t=1),(!U(i)||i<2)&&(i=10),U(r)||(r=1e-4),U(o)||(o=Math.PI/8);for(var a=[],s=0;s<t;s++){for(var l=[tr(n)],u=0;u<i-1;u++){var h=(0===u?2*Math.random()*Math.PI:Math.tan((l[u][1]-l[u-1][1])/(l[u][0]-l[u-1][0])))+(Math.random()-.5)*o*2,c=Math.random()*r;l.push([l[u][0]+c*Math.cos(h),l[u][1]+c*Math.sin(h)])}a.push(q(l))}return B(a)}function rr(){return Math.random()-.5}function or(t,e){if(!t)throw new Error("geojson is required");if("FeatureCollection"!==t.type)throw new Error("geojson must be a FeatureCollection");if(null==e)throw new Error("filter is required");var n=[];return S(t,function(t){ur(t.properties,e)&&n.push(t)}),B(n)}function ar(t,e,n){if(!t)throw new Error("geojson is required");if("FeatureCollection"!==t.type)throw new Error("geojson must be a FeatureCollection");if(null==e)throw new Error("property is required");for(var i=lr(t,e),r=Object.keys(i),o=0;o<r.length;o++){for(var a=r[o],s=i[a],l=[],u=0;u<s.length;u++)l.push(t.features[s[u]]);n(B(l),a,o)}}function sr(t,e,i,r){var o=r;return ar(t,e,function(t,e,n){o=0===n&&void 0===r?t:i(o,t,e,n)}),o}function lr(t,r){var o={};return S(t,function(t,e){var n=t.properties||{};if(n.hasOwnProperty(r)){var i=n[r];o.hasOwnProperty(i)?o[i].push(e):o[i]=[e]}}),o}function ur(t,e){if(void 0===t)return!1;var n=typeof e;if("number"==n||"string"==n)return t.hasOwnProperty(e);if(Array.isArray(e)){for(var i=0;i<e.length;i++)if(!ur(t,e[i]))return!1;return!0}return hr(t,e)}function hr(t,e){for(var n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];if(t[r]!==e[r])return!1}return!0}function cr(t,e){if(!e)return{};if(!e.length)return{};for(var n={},i=0;i<e.length;i++){var r=e[i];t.hasOwnProperty(r)&&(n[r]=t[r])}return n}function pr(){}function fr(t){this.message=t||""}function dr(t){this.message=t||""}function yr(){}function mr(t){return null===t?eu:t.color}function gr(t){return null===t?null:t.parent}function vr(t,e){null!==t&&(t.color=e)}function xr(t){return null===t?null:t.left}function _r(t){return null===t?null:t.right}function wr(){this.root_=null,this.size_=0}function br(){}function Pr(){this.array_=[],arguments[0]instanceof jl&&this.addAll(arguments[0])}function Sr(){}function Cr(t){this.message=t||""}function Mr(){this.array_=[]}function Tr(t){switch(t.type){case"Polygon":return 1<ln(t)?t:null;case"MultiPolygon":var e=[];if(E(t,function(t){1<ln(t)&&e.push(t.geometry.coordinates)}),e.length)return{type:"MultiPolygon",coordinates:e}}}function Ar(){this.reset()}function Er(t,e,n){var i=t.s=e+n,r=i-e,o=i-r;t.t=e-o+(n-r)}function Ir(t){return 1<t?sf:t<-1?-sf:Math.asin(t)}function Lr(){}function Rr(t,e){t&&bf.hasOwnProperty(t.type)&&bf[t.type](t,e)}function Or(t,e,n){var i,r=-1,o=t.length-n;for(e.lineStart();++r<o;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function Nr(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)Or(t[n],e,1);e.polygonEnd()}function kr(t){return[df(t[1],t[0]),Ir(t[2])]}function zr(t){var e=t[0],n=t[1],i=yf(n);return[i*yf(e),i*vf(e),vf(n)]}function Dr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Fr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Gr(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function jr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Vr(t){var e=xf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function qr(t,e){return[af<t?t-uf:t<-af?t+uf:t,e]}function Br(t,e,n){return(t%=uf)?e||n?Sf(Wr(t),Zr(e,n)):Wr(t):e||n?Zr(e,n):qr}function Ur(n){return function(t,e){return[af<(t+=n)?t-uf:t<-af?t+uf:t,e]}}function Wr(t){var e=Ur(t);return e.invert=Ur(-t),e}function Zr(t,e){function n(t,e){var n=yf(e),i=yf(t)*n,r=vf(t)*n,o=vf(e),a=o*s+i*l;return[df(r*u-a*h,i*s-o*l),Ir(a*u+r*h)]}var s=yf(t),l=vf(t),u=yf(e),h=vf(e);return n.invert=function(t,e){var n=yf(e),i=yf(t)*n,r=vf(t)*n,o=vf(e),a=o*u-r*h;return[df(r*u+o*h,i*s+a*l),Ir(a*s-i*l)]},n}function Xr(t,e){(e=zr(e))[0]-=t,Vr(e);var n=function(t){return 1<t?0:t<-1?af:Math.acos(t)}(-e[1]);return((-e[2]<0?-n:n)+uf-of)%uf}function Hr(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function Yr(t){if(e=t.length){for(var e,n,i=0,r=t[0];++i<e;)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}function Kr(t){return 1<t.length}function Jr(t,e){return((t=t.x)[0]<0?t[1]-sf-of:sf-t[1])-((e=e.x)[0]<0?e[1]-sf-of:sf-e[1])}function Qr(i){return function(t){var e=new $r;for(var n in i)e[n]=i[n];return e.stream=t,e}}function $r(){}function to(t,e,n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),Pf(n,t.stream(Gf));var a=Gf.result(),s=Math.min(i/(a[1][0]-a[0][0]),r/(a[1][1]-a[0][1])),l=+e[0][0]+(i-s*(a[1][0]+a[0][0]))/2,u=+e[0][1]+(r-s*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*s).translate([l,u])}function eo(t){return function(){function n(t){return[(t=u(t[0]*cf,t[1]*cf))[0]*y+a,s-t[1]*y]}function e(t,e){return[(t=o(t,e))[0]*y+a,s-t[1]*y]}function i(){u=Sf(l=Br(_,w,b),o);var t=o(v,x);return a=m-t[0]*y,s=g+t[1]*y,r()}function r(){return f=d=null,n}var o,a,s,l,u,h,c,p,f,d,y=150,m=480,g=250,v=0,x=0,_=0,w=0,b=0,P=null,S=Vf,C=null,M=Nf,T=.5,A=Bf(e,T);return n.stream=function(t){return f&&d===t?f:f=Uf(S(l,A(M(d=t))))},n.clipAngle=function(t){return arguments.length?(S=+t?function(r,o){function f(t,e){return yf(t)*yf(e)>M}function d(t,e,n){var i=[1,0,0],r=Fr(zr(t),zr(e)),o=Dr(r,r),a=r[0],s=o-a*a;if(!s)return!n&&t;var l=M*o/s,u=-M*a/s,h=Fr(i,r),c=jr(i,l);Gr(c,jr(r,u));var p=h,f=Dr(c,p),d=Dr(p,p),y=f*f-d*(Dr(c,c)-1);if(!(y<0)){var m=xf(y),g=jr(p,(-f-m)/d);if(Gr(g,c),g=kr(g),!n)return g;var v,x=t[0],_=e[0],w=t[1],b=e[1];_<x&&(v=x,x=_,_=v);var P=_-x,S=pf(P-af)<of;if(!S&&b<w&&(v=w,w=b,b=v),S||P<of?S?w+b>0^g[1]<(pf(g[0]-x)<of?w:b):w<=g[1]&&g[1]<=b:P>af^(x<=g[0]&&g[0]<=_)){var C=jr(p,(-f+m)/d);return Gr(C,c),[g,kr(C)]}}}function y(t,e){var n=m?r:af-r,i=0;return t<-n?i|=1:t>n&&(i|=2),e<-n?i|=4:e>n&&(i|=8),i}var M=yf(r),m=M>0,g=pf(M)>of;return jf(f,function(s){var l,u,h,c,p;return{lineStart:function(){c=h=!1,p=1},point:function(t,e){var n,i=[t,e],r=f(t,e),o=m?r?0:y(t,e):r?y(t+(t<0?af:-af),e):0;if(!l&&(c=h=r)&&s.lineStart(),r!==h&&(!(n=d(l,i))||Tf(l,n)||Tf(i,n))&&(i[0]+=of,i[1]+=of,r=f(i[0],i[1])),r!==h)p=0,r?(s.lineStart(),n=d(i,l),s.point(n[0],n[1])):(n=d(l,i),s.point(n[0],n[1]),s.lineEnd()),l=n;else if(g&&l&&m^r){var a;o&u||!(a=d(i,l,!0))||(p=0,m?(s.lineStart(),s.point(a[0][0],a[0][1]),s.point(a[1][0],a[1][1]),s.lineEnd()):(s.point(a[1][0],a[1][1]),s.lineEnd(),s.lineStart(),s.point(a[0][0],a[0][1])))}!r||l&&Tf(l,i)||s.point(i[0],i[1]),l=i,h=r,u=o},lineEnd:function(){h&&s.lineEnd(),l=null},clean:function(){return p|(c&&h)<<1}}},function(t,e,n,i){!function(t,e,n,i,r,o){if(n){var a=yf(e),s=vf(e),l=i*n;null==r?(r=e+i*uf,o=e-l/2):(r=Xr(a,r),o=Xr(a,o),(i>0?r<o:r>o)&&(r+=i*uf));for(var u,h=r;i>0?h>o:h<o;h-=l)u=kr([a,-s*yf(h),-s*vf(h)]),t.point(u[0],u[1])}}(i,r,o,n,t,e)},m?[0,-r]:[-af,r-af])}(P=t*cf,6*cf):(P=null,Vf),r()):P*hf},n.clipExtent=function(t){return arguments.length?(M=null==t?(C=h=c=p=null,Nf):function(g,v,x,_){function w(t,e){return g<=t&&t<=x&&v<=e&&e<=_}function b(t,e,n,i){var r=0,o=0;if(null==t||(r=a(t,n))!==(o=a(e,n))||s(t,e)<0^0<n)for(;i.point(0===r||3===r?g:x,1<r?_:v),(r=(r+n+4)%4)!==o;);else i.point(e[0],e[1])}function a(t,e){return pf(t[0]-g)<of?0<e?0:3:pf(t[0]-x)<of?0<e?2:1:pf(t[1]-v)<of?0<e?1:0:0<e?3:2}function P(t,e){return s(t.x,e.x)}function s(t,e){var n=a(t,1),i=a(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(i){function t(t,e){w(t,e)&&y.point(t,e)}function e(t,e){var n=w(t,e);if(c&&o.push([t,e]),f)a=t,s=e,f=!1,(l=n)&&(y.lineStart(),y.point(t,e));else if(n&&p)y.point(t,e);else{var i=[u=Math.max(Rf,Math.min(Lf,u)),h=Math.max(Rf,Math.min(Lf,h))],r=[t=Math.max(Rf,Math.min(Lf,t)),e=Math.max(Rf,Math.min(Lf,e))];Mf(i,r,g,v,x,_)?(p||(y.lineStart(),y.point(i[0],i[1])),y.point(r[0],r[1]),n||y.lineEnd(),d=!1):n&&(y.lineStart(),y.point(t,e),d=!1)}u=t,h=e,p=n}var r,c,o,a,s,l,u,h,p,f,d,y=i,n=Cf(),m={point:t,lineStart:function(){m.point=e,c&&c.push(o=[]),p=!(f=!0),u=h=NaN},lineEnd:function(){r&&(e(a,s),l&&p&&n.rejoin(),r.push(n.result())),m.point=t,p&&y.lineEnd()},polygonStart:function(){y=n,r=[],c=[],d=!0},polygonEnd:function(){var t=function(){for(var t=0,e=0,n=c.length;e<n;++e)for(var i,r,o=c[e],a=1,s=o.length,l=o[0],u=l[0],h=l[1];a<s;++a)i=u,r=h,u=(l=o[a])[0],h=l[1],r<=_?_<h&&(h-r)*(g-i)<(u-i)*(_-r)&&++t:h<=_&&(u-i)*(_-r)<(h-r)*(g-i)&&--t;return t}(),e=d&&t,n=(r=If(r)).length;(e||n)&&(i.polygonStart(),e&&(i.lineStart(),b(null,null,1,i),i.lineEnd()),n&&Af(r,P,t,b,i),i.polygonEnd()),y=i,r=c=o=null}};return m}}(C=+t[0][0],h=+t[0][1],c=+t[1][0],p=+t[1][1]),r()):null==C?null:[[C,h],[c,p]]},n.scale=function(t){return arguments.length?(y=+t,i()):y},n.translate=function(t){return arguments.length?(m=+t[0],g=+t[1],i()):[m,g]},n.center=function(t){return arguments.length?(v=t[0]%360*cf,x=t[1]%360*cf,i()):[v*hf,x*hf]},n.rotate=function(t){return arguments.length?(_=t[0]%360*cf,w=t[1]%360*cf,b=2<t.length?t[2]%360*cf:0,i()):[_*hf,w*hf,b*hf]},n.precision=function(t){return arguments.length?(A=Bf(e,T=t*t),r()):xf(T)},n.fitExtent=function(t,e){return to(n,t,e)},n.fitSize=function(t,e){return function(t,e,n){return to(t,[[0,0],e],n)}(n,t,e)},function(){return o=function(){return t}.apply(this,arguments),n.invert=o.invert&&function(t){return(t=u.invert((t[0]-a)/y,(s-t[1])/y))&&[t[0]*hf,t[1]*hf]},i()}}()()}function no(t,e){return[t,gf(_f((sf+e)/2))]}function io(t,e){return[gf(_f((sf+e)/2)),-t]}function ro(t,n,i,r){var e=t.properties||{},o="Feature"===t.type?t.geometry:t;if("GeometryCollection"===o.type){var a=[];return T(t,function(t){var e=ro(t,n,i,r);e&&a.push(e)}),B(a)}var s,l=Z(t),u=50<l[1]&&50<l[3];s=u?{type:o.type,coordinates:function e(t,n){return"object"!=typeof t[0]?n(t):t.map(function(t){return e(t,n)})}(o.coordinates,oo(o))}:Qe(o);var h,c=(new Uu).read(s),p=d(y(n,i),"meters"),f=kc.bufferOp(c,p);if(!function t(e){return Array.isArray(e[0])?t(e[0]):isNaN(e[0])}((f=(new Wu).write(f)).coordinates))return(h=u?{type:f.type,coordinates:function e(t,n){return"object"!=typeof t[0]?n.invert(t):t.map(function(t){return e(t,n)})}(f.coordinates,oo(o))}:$e(f)).geometry?h:G(h,e)}function oo(t){var e=le(t).geometry.coordinates.reverse(),n=e.map(function(t){return-t});return Wf().center(e).rotate(n).scale(fo)}function ao(){for(var t=new Uu,e=t.read(JSON.stringify(arguments[0].geometry)),n=1;n<arguments.length;n++)e=ef.union(e,t.read(JSON.stringify(arguments[n].geometry)));return{type:"Feature",geometry:e=(new Wu).write(e),properties:arguments[0].properties}}function so(t,e){var n=Y(t),i=Y(e);if(Yt(xn(i,{precision:4})).coordinates[0].length<4)return null;if(Yt(xn(n,{precision:4})).coordinates[0].length<4)return null;var r=new Uu,o=r.read(xn(n)),a=r.read(xn(i)),s=Zp.intersection(o,a);return s.isEmpty()?null:G((new Wu).write(s))}function lo(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.properties||{},r=n.triangles,o=n.mask;if(null==e)throw new Error("cellSide is required");if(!U(e))throw new Error("cellSide is invalid");if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be array");if(4!==t.length)throw new Error("bbox must contain 4 numbers");if(o&&-1===["Polygon","MultiPolygon"].indexOf(J(o)))throw new Error("options.mask must be a (Multi)Polygon");var a=t[0],s=t[1],l=t[2],u=t[3],h=(s+u)/2,c=(a+l)/2,p=2*e/kt([a,h],[l,h],n)*(l-a),f=2*e/kt([c,s],[c,u],n)*(u-s),d=p/2,y=2*d,m=Math.sqrt(3)/2*f,g=l-a,v=u-s,x=.75*y,_=m,w=(g-y)/(y-d/2),b=Math.floor(w),P=(b*x-d/2-g)/2-d/2+x/2,S=Math.floor((v-m)/m),C=(v-S*m)/2,M=m/2<S*m-v;M&&(C-=m/4);for(var T=[],A=[],E=0;E<6;E++){var I=2*Math.PI/6*E;T.push(Math.cos(I)),A.push(Math.sin(I))}for(var L=[],R=0;R<=b;R++)for(var O=0;O<=S;O++){var N=R%2==1;if(!(0===O&&N||0===O&&M)){var k=R*x+a-P,z=O*_+s+C;if(N&&(z-=m/2),!0===r)(function(t,e,n,i,r,o){for(var a=[],s=0;s<6;s++){var l=[];l.push(t),l.push([t[0]+e*r[s],t[1]+n*o[s]]),l.push([t[0]+e*r[(s+1)%6],t[1]+n*o[(s+1)%6]]),l.push(t),a.push(V([l],i))}return a})([k,z],p/2,f/2,i,T,A).forEach(function(t){o?so(o,t)&&L.push(t):L.push(t)});else{var D=function(t,e,n,i,r,o){for(var a=[],s=0;s<6;s++){var l=t[0]+e*r[s],u=t[1]+n*o[s];a.push([l,u])}return a.push(a[0].slice()),V([a],i)}([k,z],p/2,f/2,i,T,A);o?so(o,D)&&L.push(D):L.push(D)}}}return B(L)}function uo(t){if(t.features.length<=1)return t;var o=function(t){var e=So(),i=[];return E(t,function(t,e){var n=Z(t);i.push({minX:n[0],minY:n[1],maxX:n[2],maxY:n[3],geojson:t,index:e})}),e.load(i),e}(t),a=[],s={};return E(t,function(t,e){if(s[e])return!0;for(o.remove({index:e},ho),s[e]=!0;;){var n=Z(t),i=o.search({minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]});if(0<i.length){var r=i.map(function(t){return s[t.index]=!0,o.remove({index:t.index},ho),t.geojson});r.push(t),t=ao.apply(this,r)}if(0===i.length)break}a.push(t)}),B(a)}function ho(t,e){return t.index===e.index}function co(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.properties,r=n.mask,o=[];if(null==e)throw new Error("cellSide is required");if(!U(e))throw new Error("cellSide is invalid");if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be array");if(4!==t.length)throw new Error("bbox must contain 4 numbers");if(r&&-1===["Polygon","MultiPolygon"].indexOf(J(r)))throw new Error("options.mask must be a (Multi)Polygon");for(var a=t[0],s=t[1],l=t[2],u=t[3],h=e/kt([a,s],[l,s],n)*(l-a),c=e/kt([a,s],[a,u],n)*(u-s),p=l-a,f=u-s,d=Math.floor(p/h),y=Math.floor(f/c),m=(f-y*c)/2,g=a+(p-d*h)/2,v=0;v<d;v++){for(var x=s+m,_=0;_<y;_++){var w=V([[[g,x],[g,x+c],[g+h,x+c],[g+h,x],[g,x]]],i);r?so(r,w)&&o.push(w):o.push(w),x+=c}g+=h}return B(o)}function po(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.properties,r=n.mask,o=[];if(null==e)throw new Error("cellSide is required");if(!U(e))throw new Error("cellSide is invalid");if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be array");if(4!==t.length)throw new Error("bbox must contain 4 numbers");if(r&&-1===["Polygon","MultiPolygon"].indexOf(J(r)))throw new Error("options.mask must be a (Multi)Polygon");for(var a=e/kt([t[0],t[1]],[t[2],t[1]],n)*(t[2]-t[0]),s=e/kt([t[0],t[1]],[t[0],t[3]],n)*(t[3]-t[1]),l=0,u=t[0];u<=t[2];){for(var h=0,c=t[1];c<=t[3];){var p=null,f=null;l%2==0&&h%2==0?(p=V([[[u,c],[u,c+s],[u+a,c],[u,c]]],i),f=V([[[u,c+s],[u+a,c+s],[u+a,c],[u,c+s]]],i)):l%2==0&&h%2==1?(p=V([[[u,c],[u+a,c+s],[u+a,c],[u,c]]],i),f=V([[[u,c],[u,c+s],[u+a,c+s],[u,c]]],i)):h%2==0&&l%2==1?(p=V([[[u,c],[u,c+s],[u+a,c+s],[u,c]]],i),f=V([[[u,c],[u+a,c+s],[u+a,c],[u,c]]],i)):h%2==1&&l%2==1&&(p=V([[[u,c],[u,c+s],[u+a,c],[u,c]]],i),f=V([[[u,c+s],[u+a,c+s],[u+a,c],[u,c+s]]],i)),r?(so(r,p)&&o.push(p),so(r,f)&&o.push(f)):(o.push(p),o.push(f)),c+=s,h++}l++,u+=a}return B(o)}var fo=6371008.8,yo={meters:fo,metres:fo,millimeters:1e3*fo,millimetres:1e3*fo,centimeters:100*fo,centimetres:100*fo,kilometers:fo/1e3,kilometres:fo/1e3,miles:fo/1609.344,nauticalmiles:fo/1852,inches:39.37*fo,yards:fo/1.0936,feet:3.28084*fo,radians:1,degrees:fo/111325},mo={meters:1,metres:1,millimeters:1e3,millimetres:1e3,centimeters:100,centimetres:100,kilometers:.001,kilometres:.001,miles:1/1609.344,nauticalmiles:1/1852,inches:39.37,yards:1/1.0936,feet:3.28084,radians:1/fo,degrees:1/111325},go={meters:1,metres:1,millimeters:1e6,millimetres:1e6,centimeters:1e4,centimetres:1e4,kilometers:1e-6,kilometres:1e-6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006},vo=Object.freeze({earthRadius:fo,factors:yo,unitsFactors:mo,areaFactors:go,feature:G,geometry:e,point:j,points:n,polygon:V,polygons:i,lineString:q,lineStrings:r,featureCollection:B,multiLineString:h,multiPoint:o,multiPolygon:l,geometryCollection:a,round:s,radiansToLength:d,lengthToRadians:y,lengthToDegrees:u,bearingToAzimuth:p,radiansToDegrees:f,degreesToRadians:v,convertLength:c,convertArea:m,isNumber:U,isObject:W,validateBBox:g,validateId:x,radians2degrees:function(){throw new Error("method has been renamed to `radiansToDegrees`")},degrees2radians:function(){throw new Error("method has been renamed to `degreesToRadians`")},distanceToDegrees:function(){throw new Error("method has been renamed to `lengthToDegrees`")},distanceToRadians:function(){throw new Error("method has been renamed to `lengthToRadians`")},radiansToDistance:function(){throw new Error("method has been renamed to `radiansToLength`")},bearingToAngle:function(){throw new Error("method has been renamed to `bearingToAzimuth`")},convertDistance:function(){throw new Error("method has been renamed to `convertLength`")}}),xo=Object.freeze({coordEach:b,coordReduce:_,propEach:w,propReduce:P,featureEach:S,featureReduce:C,coordAll:M,geomEach:T,geomReduce:A,flattenEach:E,flattenReduce:I,segmentEach:L,segmentReduce:R,lineEach:O,lineReduce:N}),_o=Object.freeze({getCoord:X,getCoords:k,containsNumber:z,geojsonType:D,featureOf:F,collectionOf:H,getGeom:Y,getGeomType:K,getType:J}),wo={successCallback:null,verbose:!1},bo={},Po=function t(e,n,i,r,o){for(i=i||0,r=r||e.length-1,o=o||function(t,e){return t<e?-1:e<t?1:0};i<r;){if(600<r-i){var a=r-i+1,s=n-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(i,Math.floor(n-s*u/a+h)),Math.min(r,Math.floor(n+(a-s)*u/a+h)),o)}var c=e[n],p=i,f=r;for(it(e,i,n),0<o(e[r],c)&&it(e,i,r);p<f;){for(it(e,p,f),p++,f--;o(e[p],c)<0;)p++;for(;0<o(e[f],c);)f--}0===o(e[i],c)?it(e,i,f):it(e,++f,r),f<=n&&(i=f+1),n<=f&&(r=f-1)}},So=rt;rt.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],i=this.toBBox;if(!ft(t,e))return n;for(var r,o,a,s,l=[];e;){for(r=0,o=e.children.length;r<o;r++)a=e.children[r],ft(t,s=e.leaf?i(a):a)&&(e.leaf?n.push(a):pt(t,s)?this._all(a,n):l.push(a));e=l.pop()}return n},collides:function(t){var e=this.data,n=this.toBBox;if(!ft(t,e))return!1;for(var i,r,o,a,s=[];e;){for(i=0,r=e.children.length;i<r;i++)if(o=e.children[i],a=e.leaf?n(o):o,ft(t,a)){if(e.leaf||pt(t,a))return!0;s.push(o)}e=s.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}var i=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var r=this.data;this.data=i,i=r}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=dt([]),this},remove:function(t,e){if(!t)return this;for(var n,i,r,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),i=l[l.length-1],n=u.pop(),o=!0),a.leaf&&-1!==(r=function(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}(t,a.children,e)))return a.children.splice(r,1),l.push(a),this._condense(l),this;o||a.leaf||!pt(a,s)?i?(n++,a=i.children[n],o=!1):a=null:(l.push(a),u.push(n),n=0,a=(i=a).children[0])}return this},toBBox:function(t){return t},compareMinX:lt,compareMinY:ut,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,e,n,i){var r,o=n-e+1,a=this._maxEntries;if(o<=a)return ot(r=dt(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,i-1))),(r=dt([])).leaf=!1,r.height=i;var s,l,u,h,c=Math.ceil(o/a),p=c*Math.ceil(Math.sqrt(a));for(yt(t,e,n,p,this.compareMinX),s=e;s<=n;s+=p)for(yt(t,s,u=Math.min(s+p-1,n),c,this.compareMinY),l=s;l<=u;l+=c)h=Math.min(l+c-1,u),r.children.push(this._build(t,l,h,i-1));return ot(r,this.toBBox),r},_chooseSubtree:function(t,e,n,i){for(var r,o,a,s,l,u,h,c;i.push(e),!e.leaf&&i.length-1!==n;){for(h=c=1/0,r=0,o=e.children.length;r<o;r++)l=ht(a=e.children[r]),(u=function(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}(t,a)-l)<c?(c=u,h=l<h?l:h,s=a):u===c&&l<h&&(h=l,s=a);e=s||e.children[0]}return e},_insert:function(t,e,n){var i=this.toBBox,r=n?t:i(t),o=[],a=this._chooseSubtree(r,this.data,e,o);for(a.children.push(t),st(a,r);0<=e&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var o=this._chooseSplitIndex(n,r,i),a=dt(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,ot(n,this.toBBox),ot(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(t,e){this.data=dt([t,e]),this.data.height=t.height+1,this.data.leaf=!1,ot(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var i,r,o,a,s,l,u,h;for(l=u=1/0,i=e;i<=n-e;i++)a=function(t,e){var n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,r-n)*Math.max(0,o-i)}(r=at(t,0,i,this.toBBox),o=at(t,i,n,this.toBBox)),s=ht(r)+ht(o),a<l?(l=a,h=i,u=s<u?s:u):a===l&&s<u&&(u=s,h=i);return h},_chooseSplitAxis:function(t,e,n){var i=t.leaf?this.compareMinX:lt,r=t.leaf?this.compareMinY:ut;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},_allDistMargin:function(t,e,n,i){t.children.sort(i);var r,o,a=this.toBBox,s=at(t,0,e,a),l=at(t,n-e,n,a),u=ct(s)+ct(l);for(r=e;r<n-e;r++)o=t.children[r],st(s,t.leaf?a(o):o),u+=ct(s);for(r=n-e-1;e<=r;r--)o=t.children[r],st(l,t.leaf?a(o):o),u+=ct(l);return u},_adjustParentBBoxes:function(t,e,n){for(var i=n;0<=i;i--)st(e[i],t)},_condense:function(t){for(var e,n=t.length-1;0<=n;n--)0===t[n].children.length?0<n?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():ot(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}};var Co=function(t,e,n){var i=t*e,r=Mo*t,o=r-(r-t),a=t-o,s=Mo*e,l=s-(s-e),u=e-l,h=a*u-(i-o*l-a*l-o*u);return n?(n[0]=h,n[1]=i,n):[h,i]},Mo=+(Math.pow(2,27)+1),To=function(t,e){var n=0|t.length,i=0|e.length;if(1==n&&1==i)return function(t,e){var n=t+e,i=n-t,r=t-(n-i)+(e-i);return r?[r,n]:[n]}(t[0],e[0]);var r,o,a=n+i,s=new Array(a),l=0,u=0,h=0,c=Math.abs,p=t[u],f=c(p),d=e[h],y=c(d);f<y?(o=p,(u+=1)<n&&(f=c(p=t[u]))):(o=d,(h+=1)<i&&(y=c(d=e[h]))),u<n&&f<y||i<=h?(r=p,(u+=1)<n&&(f=c(p=t[u]))):(r=d,(h+=1)<i&&(y=c(d=e[h])));for(var m,g,v=r+o,x=v-r,_=o-x,w=_,b=v;u<n&&h<i;)f<y?(r=p,(u+=1)<n&&(f=c(p=t[u]))):(r=d,(h+=1)<i&&(y=c(d=e[h]))),(_=(o=w)-(x=(v=r+o)-r))&&(s[l++]=_),w=b-((m=b+v)-(g=m-b))+(v-g),b=m;for(;u<n;)(_=(o=w)-(x=(v=(r=p)+o)-r))&&(s[l++]=_),w=b-((m=b+v)-(g=m-b))+(v-g),b=m,(u+=1)<n&&(p=t[u]);for(;h<i;)(_=(o=w)-(x=(v=(r=d)+o)-r))&&(s[l++]=_),w=b-((m=b+v)-(g=m-b))+(v-g),b=m,(h+=1)<i&&(d=e[h]);return w&&(s[l++]=w),b&&(s[l++]=b),l||(s[l++]=0),s.length=l,s},Ao=function(t,e){var n=t.length;if(1===n){var i=Co(t[0],e);return i[0]?i:[i[1]]}var r,o,a,s,l,u,h,c=new Array(2*n),p=[.1,.1],f=[.1,.1],d=0;Co(t[0],e,p),p[0]&&(c[d++]=p[0]);for(var y=1;y<n;++y){Co(t[y],e,f);var m=p[1];void 0,u=(o=f[0])-(l=(s=(r=m)+o)-r),h=r-(s-l),(a=p)&&(a[0]=h+u,a[1]=s),p[0]&&(c[d++]=p[0]);var g=f[1],v=p[1],x=g+v,_=v-(x-g);p[1]=x,_&&(c[d++]=_)}return p[1]&&(c[d++]=p[1]),0===d&&(c[d++]=0),c.length=d,c},Eo=function(t,e){var n=0|t.length,i=0|e.length;if(1==n&&1==i)return function(t,e){var n=t+e,i=n-t,r=t-(n-i)+(e-i);return r?[r,n]:[n]}(t[0],-e[0]);var r,o,a=n+i,s=new Array(a),l=0,u=0,h=0,c=Math.abs,p=t[u],f=c(p),d=-e[h],y=c(d);f<y?(o=p,(u+=1)<n&&(f=c(p=t[u]))):(o=d,(h+=1)<i&&(y=c(d=-e[h]))),u<n&&f<y||i<=h?(r=p,(u+=1)<n&&(f=c(p=t[u]))):(r=d,(h+=1)<i&&(y=c(d=-e[h])));for(var m,g,v=r+o,x=v-r,_=o-x,w=_,b=v;u<n&&h<i;)f<y?(r=p,(u+=1)<n&&(f=c(p=t[u]))):(r=d,(h+=1)<i&&(y=c(d=-e[h]))),(_=(o=w)-(x=(v=r+o)-r))&&(s[l++]=_),w=b-((m=b+v)-(g=m-b))+(v-g),b=m;for(;u<n;)(_=(o=w)-(x=(v=(r=p)+o)-r))&&(s[l++]=_),w=b-((m=b+v)-(g=m-b))+(v-g),b=m,(u+=1)<n&&(p=t[u]);for(;h<i;)(_=(o=w)-(x=(v=(r=d)+o)-r))&&(s[l++]=_),w=b-((m=b+v)-(g=m-b))+(v-g),b=m,(h+=1)<i&&(d=-e[h]);return w&&(s[l++]=w),b&&(s[l++]=b),l||(s[l++]=0),s.length=l,s},Io=mt(function(o){function h(t,e){for(var n=new Array(t.length-1),i=1;i<t.length;++i)for(var r=n[i-1]=new Array(t.length-1),o=0,a=0;o<t.length;++o)o!==e&&(r[a++]=t[i][o]);return n}function c(t){if(1===t.length)return t[0];if(2===t.length)return["sum(",t[0],",",t[1],")"].join("");var e=t.length>>1;return["sum(",c(t.slice(0,e)),",",c(t.slice(e)),")"].join("")}function p(t){if(2===t.length)return[["sum(prod(",t[0][0],",",t[1][1],"),prod(-",t[0][1],",",t[1][0],"))"].join("")];for(var e=[],n=0;n<t.length;++n)e.push(["scale(",c(p(h(t,n))),",",(i=n,1&i?"-":""),t[0][n],")"].join(""));var i;return e}function a(t){for(var e=[],n=[],i=function(t){for(var e=new Array(t),n=0;n<t;++n){e[n]=new Array(t);for(var i=0;i<t;++i)e[n][i]=["m",i,"[",t-n-1,"]"].join("")}return e}(t),r=[],o=0;o<t;++o)0==(1&o)?e.push.apply(e,p(h(i,o))):n.push.apply(n,p(h(i,o))),r.push("m"+o);var a=c(e),s=c(n),l="orientation"+t+"Exact",u=["function ",l,"(",r.join(),"){var p=",a,",n=",s,",d=sub(p,n);return d[d.length-1];};return ",l].join("");return new Function("sum","prod","scale","sub",u)(To,Co,Ao,Eo)}var l=a(3),w=a(4),s=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,n){var i,r=(t[1]-n[1])*(e[0]-n[0]),o=(t[0]-n[0])*(e[1]-n[1]),a=r-o;if(0<r){if(o<=0)return a;i=r+o}else{if(!(r<0))return a;if(0<=o)return a;i=-(r+o)}var s=33306690738754716e-32*i;return s<=a||a<=-s?a:l(t,e,n)},function(t,e,n,i){var r=t[0]-i[0],o=e[0]-i[0],a=n[0]-i[0],s=t[1]-i[1],l=e[1]-i[1],u=n[1]-i[1],h=t[2]-i[2],c=e[2]-i[2],p=n[2]-i[2],f=o*u,d=a*l,y=a*s,m=r*u,g=r*l,v=o*s,x=h*(f-d)+c*(y-m)+p*(g-v),_=7771561172376103e-31*((Math.abs(f)+Math.abs(d))*Math.abs(h)+(Math.abs(y)+Math.abs(m))*Math.abs(c)+(Math.abs(g)+Math.abs(v))*Math.abs(p));return _<x||_<-x?x:w(t,e,n,i)}];!function(){for(;s.length<=5;)s.push(a(s.length));for(var t=[],e=["slow"],n=0;n<=5;++n)t.push("a"+n),e.push("o"+n);var i=["function getOrientation(",t.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(n=2;n<=5;++n)i.push("case ",n,":return o",n,"(",t.slice(0,n).join(),");");i.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation"),e.push(i.join(""));var r=Function.apply(void 0,e);for(o.exports=r.apply(void 0,[function(t){var e=s[t.length];return(e=e||(s[t.length]=a(t.length))).apply(void 0,t)}].concat(s)),n=0;n<=5;++n)o.exports[n]=s[n]}()}),Lo=Io[3],Ro=gt,Oo=gt;gt.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,0<this.length&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,n=this.compare,i=e[t];0<t;){var r=t-1>>1,o=e[r];if(0<=n(i,o))break;e[t]=o,t=r}e[t]=i},_down:function(t){for(var e=this.data,n=this.compare,i=this.length>>1,r=e[t];t<i;){var o=1+(t<<1),a=o+1,s=e[o];if(a<this.length&&n(e[a],s)<0&&(s=e[o=a]),0<=n(s,r))break;e[t]=s,t=o}e[t]=r}},Ro.default=Oo;var No=function(t,e){for(var n=t[0],i=t[1],r=!1,o=0,a=e.length-1;o<e.length;a=o++){var s=e[o][0],l=e[o][1],u=e[a][0],h=e[a][1];i<l!=i<h&&n<(u-s)*(i-l)/(h-l)+s&&(r=!r)}return r},ko=Io[3],zo=vt,Do=vt;zo.default=Do;var Fo=function(t){return t},Go=function(t){if(null==t)return Fo;var o,a,s=t.scale[0],l=t.scale[1],u=t.translate[0],h=t.translate[1];return function(t,e){e||(o=a=0);var n=2,i=t.length,r=new Array(i);for(r[0]=(o+=t[0])*s+u,r[1]=(a+=t[1])*l+h;n<i;)r[n]=t[n],++n;return r}},jo=function(t,e){for(var n,i=t.length,r=i-e;r<--i;)n=t[r],t[r++]=t[i],t[i]=n},Vo=function(o,a,s,t,l,e){3===arguments.length&&(t=e=Array,l=null);for(var u=new t(o=1<<Math.max(4,Math.ceil(Math.log(o)/Math.LN2))),h=new e(o),c=o-1,n=0;n<o;++n)u[n]=l;return{set:function(t,e){for(var n=a(t)&c,i=u[n],r=0;i!=l;){if(s(i,t))return h[n]=e;if(++r>=o)throw new Error("full hashmap");i=u[n=n+1&c]}return u[n]=t,h[n]=e},maybeSet:function(t,e){for(var n=a(t)&c,i=u[n],r=0;i!=l;){if(s(i,t))return h[n];if(++r>=o)throw new Error("full hashmap");i=u[n=n+1&c]}return u[n]=t,h[n]=e},get:function(t,e){for(var n=a(t)&c,i=u[n],r=0;i!=l;){if(s(i,t))return h[n];if(++r>=o)break;i=u[n=n+1&c]}return e},keys:function(){for(var t=[],e=0,n=u.length;e<n;++e){var i=u[e];i!=l&&t.push(i)}return t}}},qo=function(t,e){return t[0]===e[0]&&t[1]===e[1]},Bo=new ArrayBuffer(16),Uo=new Float64Array(Bo),Wo=new Uint32Array(Bo),Zo=function(t){Uo[0]=t[0],Uo[1]=t[1];var e=Wo[0]^Wo[1];return 2147483647&(e=e<<5^e>>7^Wo[2]^Wo[3])},Xo=function(t){var e,n,i,r=function(t){function e(t,e,n,i){if(p[n]!==t){p[n]=t;var r=f[n];if(r>=0){var o=d[n];r===e&&o===i||r===i&&o===e||(++m,y[n]=1)}else f[n]=e,d[n]=i}}function r(t){return Zo(l[t])}function o(t,e){return qo(l[t],l[e])}var n,i,a,s,l=t.coordinates,u=t.lines,h=t.rings,c=function(){for(var t=Vo(1.4*l.length,r,o,Int32Array,-1,Int32Array),e=new Int32Array(l.length),n=0,i=l.length;n<i;++n)e[n]=t.maybeSet(n,n);return e}(),p=new Int32Array(l.length),f=new Int32Array(l.length),d=new Int32Array(l.length),y=new Int8Array(l.length),m=0;for(n=0,i=l.length;n<i;++n)p[n]=f[n]=d[n]=-1;for(n=0,i=u.length;n<i;++n){var g=u[n],v=g[0],x=g[1];for(a=c[v],s=c[++v],++m,y[a]=1;++v<=x;)e(n,a,a=s,s=c[v]);++m,y[s]=1}for(n=0,i=l.length;n<i;++n)p[n]=-1;for(n=0,i=h.length;n<i;++n){var _=h[n],w=_[0]+1,b=_[1];for(e(n,c[b-1],a=c[w-1],s=c[w]);++w<=b;)e(n,a,a=s,s=c[w])}p=f=d=null;var P,S=function(r,o,a,t,s){3===arguments.length&&(t=Array,s=null);for(var l=new t(r=1<<Math.max(4,Math.ceil(Math.log(r)/Math.LN2))),u=r-1,e=0;e<r;++e)l[e]=s;return{add:function(t){for(var e=o(t)&u,n=l[e],i=0;n!=s;){if(a(n,t))return!0;if(++i>=r)throw new Error("full hashset");n=l[e=e+1&u]}return l[e]=t,!0},has:function(t){for(var e=o(t)&u,n=l[e],i=0;n!=s;){if(a(n,t))return!0;if(++i>=r)break;n=l[e=e+1&u]}return!1},values:function(){for(var t=[],e=0,n=l.length;e<n;++e){var i=l[e];i!=s&&t.push(i)}return t}}}(1.4*m,Zo,qo);for(n=0,i=l.length;n<i;++n)y[P=c[n]]&&S.add(l[P]);return S}(t),o=t.coordinates,a=t.lines,s=t.rings;for(n=0,i=a.length;n<i;++n)for(var l=a[n],u=l[0],h=l[1];++u<h;)r.has(o[u])&&(e={0:u,1:l[1]},l[1]=u,l=l.next=e);for(n=0,i=s.length;n<i;++n)for(var c=s[n],p=c[0],f=p,d=c[1],y=r.has(o[p]);++f<d;)r.has(o[f])&&(y?(e={0:f,1:c[1]},c[1]=f,c=c.next=e):(function(t,e,n,i){Vt(t,e,n),Vt(t,e,e+i),Vt(t,e+i,n)}(o,p,d,d-f),o[d]=o[p],y=!0,f=p));return t},Ho=function(t){function e(t){var e,n,i,r,o,a,s,l;if(i=f.get(e=c[t[0]]))for(s=0,l=i.length;s<l;++s)if(function(t,e){var n=t[0],i=e[0],r=t[1],o=e[1];if(n-r!=i-o)return!1;for(;n<=r;++n,++i)if(!qo(c[n],c[i]))return!1;return!0}(r=i[s],t))return t[0]=r[0],void(t[1]=r[1]);if(o=f.get(n=c[t[1]]))for(s=0,l=o.length;s<l;++s)if(function(t,e){var n=t[0],i=e[0],r=t[1],o=e[1];if(n-r!=i-o)return!1;for(;n<=r;++n,--o)if(!qo(c[n],c[o]))return!1;return!0}(a=o[s],t))return t[1]=a[0],void(t[0]=a[1]);i?i.push(t):f.set(e,[t]),o?o.push(t):f.set(n,[t]),d.push(t)}function a(t,e){var n=t[0],i=e[0],r=t[1]-n;if(r!=e[1]-i)return!1;for(var o=h(t),a=h(e),s=0;s<r;++s)if(!qo(c[n+(s+o)%r],c[i+(s+a)%r]))return!1;return!0}function s(t,e){var n=t[0],i=e[0],r=t[1],o=e[1],a=r-n;if(a!=o-i)return!1;for(var s=h(t),l=a-h(e),u=0;u<a;++u)if(!qo(c[n+(u+s)%a],c[o-(u+l)%a]))return!1;return!0}function h(t){for(var e=t[0],n=t[1],i=e,r=i,o=c[i];++i<n;){var a=c[i];(a[0]<o[0]||a[0]===o[0]&&a[1]<o[1])&&(r=i,o=a)}return r-e}var n,i,r,o,c=t.coordinates,l=t.lines,u=t.rings,p=l.length+u.length;for(delete t.lines,delete t.rings,r=0,o=l.length;r<o;++r)for(n=l[r];n=n.next;)++p;for(r=0,o=u.length;r<o;++r)for(i=u[r];i=i.next;)++p;var f=Vo(2*p*1.4,Zo,qo),d=t.arcs=[];for(r=0,o=l.length;r<o;++r)for(n=l[r];e(n),n=n.next;);for(r=0,o=u.length;r<o;++r)if((i=u[r]).next)for(;e(i),i=i.next;);else!function(t){var e,n,i,r,o;if(n=f.get(e=c[t[0]]))for(r=0,o=n.length;r<o;++r){if(a(i=n[r],t))return t[0]=i[0],t[1]=i[1];if(s(i,t))return t[0]=i[1],t[1]=i[0]}if(n=f.get(e=c[t[0]+h(t)]))for(r=0,o=n.length;r<o;++r){if(a(i=n[r],t))return t[0]=i[0],t[1]=i[1];if(s(i,t))return t[0]=i[1],t[1]=i[0]}n?n.push(t):f.set(e,[t]),d.push(t)}(i);return t},Yo=function(t){this.points=t.points||[],this.duration=t.duration||1e4,this.sharpness=t.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=t.stepLength||60,this.length=this.points.length;for(var e=this.delay=0;e<this.length;e++)this.points[e].z=this.points[e].z||0;for(e=0;e<this.length-1;e++){var n=this.points[e],i=this.points[e+1];this.centers.push({x:(n.x+i.x)/2,y:(n.y+i.y)/2,z:(n.z+i.z)/2})}for(this.controls.push([this.points[0],this.points[0]]),e=0;e<this.centers.length-1;e++){n=this.centers[e],i=this.centers[e+1];var r=this.points[e+1].x-(this.centers[e].x+this.centers[e+1].x)/2,o=this.points[e+1].y-(this.centers[e].y+this.centers[e+1].y)/2,a=this.points[e+1].z-(this.centers[e].y+this.centers[e+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e].x+r),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e].z+a)},{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e+1].x+r),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e+1].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e+1].z+a)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this};Yo.prototype.cacheSteps=function(t){var e=[],n=this.pos(0);e.push(0);for(var i=0;i<this.duration;i+=10){var r=this.pos(i);Math.sqrt((r.x-n.x)*(r.x-n.x)+(r.y-n.y)*(r.y-n.y)+(r.z-n.z)*(r.z-n.z))>t&&(e.push(i),n=r)}return e},Yo.prototype.vector=function(t){var e=this.pos(t+10),n=this.pos(t-10);return{angle:180*Math.atan2(e.y-n.y,e.x-n.x)/3.14,speed:Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y)+(n.z-e.z)*(n.z-e.z))}},Yo.prototype.pos=function(t){var e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);var n=e/this.duration;if(1<=n)return this.points[this.length-1];var i=Math.floor((this.points.length-1)*n);return function(t,e,n,i,r){var o=function(t){var e=t*t;return[e*t,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}(t);return{x:r.x*o[0]+i.x*o[1]+n.x*o[2]+e.x*o[3],y:r.y*o[0]+i.y*o[1]+n.y*o[2]+e.y*o[3],z:r.z*o[0]+i.z*o[1]+n.z*o[2]+e.z*o[3]}}((this.length-1)*n-i,this.points[i],this.controls[i][1],this.controls[i+1][0],this.points[i+1])};var Ko=ce,Jo=ce;ce.deviation=function(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(Ce(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var u=e[s]*n,h=s<l-1?e[s+1]*n:t.length;a-=Math.abs(Ce(t,u,h,n))}var c=0;for(s=0;s<i.length;s+=3){var p=i[s]*n,f=i[s+1]*n,d=i[s+2]*n;c+=Math.abs((t[p]-t[d])*(t[1+f]-t[1+p])-(t[p]-t[f])*(t[1+d]-t[1+p]))}return 0===a&&0===c?0:Math.abs((c-a)/a)},ce.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[r][o][a]);0<r&&(i+=t[r-1].length,n.holes.push(i))}return n},Ko.default=Jo,Ie.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],i=this.toBBox;if(!Ge(t,e))return n;for(var r,o,a,s,l=[];e;){for(r=0,o=e.children.length;r<o;r++)a=e.children[r],Ge(t,s=e.leaf?i(a):a)&&(e.leaf?n.push(a):Fe(t,s)?this._all(a,n):l.push(a));e=l.pop()}return n},collides:function(t){var e=this.data,n=this.toBBox;if(!Ge(t,e))return!1;for(var i,r,o,a,s=[];e;){for(i=0,r=e.children.length;i<r;i++)if(o=e.children[i],a=e.leaf?n(o):o,Ge(t,a)){if(e.leaf||Fe(t,a))return!0;s.push(o)}e=s.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}var i=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var r=this.data;this.data=i,i=r}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=je([]),this},remove:function(t,e){if(!t)return this;for(var n,i,r,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),i=l[l.length-1],n=u.pop(),o=!0),a.leaf&&-1!==(r=function(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}(t,a.children,e)))return a.children.splice(r,1),l.push(a),this._condense(l),this;o||a.leaf||!Fe(a,s)?i?(n++,a=i.children[n],o=!1):a=null:(l.push(a),u.push(n),n=0,a=(i=a).children[0])}return this},toBBox:function(t){return t},compareMinX:Ne,compareMinY:ke,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,e,n,i){var r,o=n-e+1,a=this._maxEntries;if(o<=a)return Le(r=je(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,i-1))),(r=je([])).leaf=!1,r.height=i;var s,l,u,h,c=Math.ceil(o/a),p=c*Math.ceil(Math.sqrt(a));for(Ve(t,e,n,p,this.compareMinX),s=e;s<=n;s+=p)for(Ve(t,s,u=Math.min(s+p-1,n),c,this.compareMinY),l=s;l<=u;l+=c)h=Math.min(l+c-1,u),r.children.push(this._build(t,l,h,i-1));return Le(r,this.toBBox),r},_chooseSubtree:function(t,e,n,i){for(var r,o,a,s,l,u,h,c;i.push(e),!e.leaf&&i.length-1!==n;){for(h=c=1/0,r=0,o=e.children.length;r<o;r++)l=ze(a=e.children[r]),(u=function(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}(t,a)-l)<c?(c=u,h=l<h?l:h,s=a):u===c&&l<h&&(h=l,s=a);e=s||e.children[0]}return e},_insert:function(t,e,n){var i=this.toBBox,r=n?t:i(t),o=[],a=this._chooseSubtree(r,this.data,e,o);for(a.children.push(t),Oe(a,r);0<=e&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var o=this._chooseSplitIndex(n,r,i),a=je(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,Le(n,this.toBBox),Le(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(t,e){this.data=je([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Le(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var i,r,o,a,s,l,u,h;for(l=u=1/0,i=e;i<=n-e;i++)a=function(t,e){var n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,r-n)*Math.max(0,o-i)}(r=Re(t,0,i,this.toBBox),o=Re(t,i,n,this.toBBox)),s=ze(r)+ze(o),a<l?(l=a,h=i,u=s<u?s:u):a===l&&s<u&&(u=s,h=i);return h},_chooseSplitAxis:function(t,e,n){var i=t.leaf?this.compareMinX:Ne,r=t.leaf?this.compareMinY:ke;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},_allDistMargin:function(t,e,n,i){t.children.sort(i);var r,o,a=this.toBBox,s=Re(t,0,e,a),l=Re(t,n-e,n,a),u=De(s)+De(l);for(r=e;r<n-e;r++)o=t.children[r],Oe(s,t.leaf?a(o):o),u+=De(s);for(r=n-e-1;e<=r;r--)o=t.children[r],Oe(l,t.leaf?a(o):o),u+=De(l);return u},_adjustParentBBoxes:function(t,e,n){for(var i=n;0<=i;i--)Oe(e[i],t)},_condense:function(t){for(var e,n=t.length-1;0<=n;n--)0===t[n].children.length?0<n?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():Le(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}};var Qo=Object.freeze({toMercator:Qe,toWgs84:$e}),$o=6378137,ta=function(t){function e(){for(var t=[],e=0;e<p.features.length;e++)-1==p.features[e].properties.parent&&t.push(e);if(1<t.length)for(e=0;e<t.length;e++){for(var n=-1,i=0;i<p.features.length;i++)t[e]!=i&&At(p.features[t[e]].geometry.coordinates[0][0],p.features[i],{ignoreBoundary:!0})&&ln(p.features[i])<1/0&&(n=i);p.features[t[e]].properties.parent=n}}function n(){for(var t=0;t<p.features.length;t++)if(-1==p.features[t].properties.parent){var e=p.features[t].properties.winding;p.features[t].properties.netWinding=e,r(t,e)}}function r(t,e){for(var n=0;n<p.features.length;n++)if(p.features[n].properties.parent==t){var i=e+p.features[n].properties.winding;p.features[n].properties.netWinding=i,r(n,i)}}if("Feature"!=t.type)throw new Error("The input must a geojson object of type Feature");if(void 0===t.geometry||null==t.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=t.geometry.type)throw new Error("The input must be a geojson Polygon");for(var i=t.geometry.coordinates.length,o=[],a=0;a<i;a++){var s=t.geometry.coordinates[a];bn(s[0],s[s.length-1])||s.push(s[0]),o.push.apply(o,s.slice(0,s.length-1))}if(!function(t){for(var e={},n=1,i=0,r=t.length;i<r;++i){if(e.hasOwnProperty(t[i])){n=0;break}e[t[i]]=1}return n}(o))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var l=o.length,u=function(t,f,e){function i(t,e,n,i){var r=d[t][e],o=d[t][e+1],a=d[n][i],s=d[n][i+1],l=function(t,e,n,i){if(_n(t,n)||_n(t,i)||_n(e,n)||_n(i,n))return null;var r=t[0],o=t[1],a=e[0],s=e[1],l=n[0],u=n[1],h=i[0],c=i[1],p=(r-a)*(u-c)-(o-s)*(l-h);return 0===p?null:[((r*s-o*a)*(l-h)-(r-a)*(l*c-u*h))/p,((r*s-o*a)*(u-c)-(o-s)*(l*c-u*h))/p]}(r,o,a,s);if(null!==l){var u,h;if(u=o[0]!==r[0]?(l[0]-r[0])/(o[0]-r[0]):(l[1]-r[1])/(o[1]-r[1]),h=s[0]!==a[0]?(l[0]-a[0])/(s[0]-a[0]):(l[1]-a[1])/(s[1]-a[1]),!(u>=1||u<=0||h>=1||h<=0)){var c=l,p=!m[c];p&&(m[c]=!0),f?y.push(f(l,t,e,r,o,u,n,i,a,s,h,p)):y.push(l)}}}function n(t,e){var n,i,r,o,a=d[t][e],s=d[t][e+1];return a[0]<s[0]?(n=a[0],i=s[0]):(n=s[0],i=a[0]),a[1]<s[1]?(r=a[1],o=s[1]):(r=s[1],o=a[1]),{minX:n,minY:r,maxX:i,maxY:o,ring:t,edge:e}}if("Polygon"!==t.geometry.type)throw new Error("The input feature must be a Polygon");void 0===e&&(e=1);var d=t.geometry.coordinates,y=[],m={};if(e){for(var r=[],o=0;o<d.length;o++)for(var a=0;a<d[o].length-1;a++)r.push(n(o,a));var s=So();s.load(r)}for(var l=0;l<d.length;l++)for(var u=0;u<d[l].length-1;u++)if(e){s.search(n(l,u)).forEach(function(t){var e=t.ring,n=t.edge;i(l,u,e,n)})}else for(var h=0;h<d.length;h++)for(var c=0;c<d[h].length-1;c++)i(l,u,h,c);return f||(y={type:"Feature",geometry:{type:"MultiPoint",coordinates:y}}),y}(t,function(t,e,n,i,r,o,a,s,l,u,h,c){return[t,e,n,i,r,o,a,s,l,u,h,c]}),h=u.length;if(0==h){var c=[];for(a=0;a<i;a++)c.push(V([t.geometry.coordinates[a]],{parent:-1,winding:function(t){for(var e=0,n=0;n<t.length-1;n++)t[n][0]<t[e][0]&&(e=n);if(wn([t[(e-1).modulo(t.length-1)],t[e],t[(e+1).modulo(t.length-1)]],!0))var i=1;else i=-1;return i}(t.geometry.coordinates[a])}));var p=B(c);return e(),n(),p}var f=[],d=[];for(a=0;a<i;a++){f.push([]);for(var y=0;y<t.geometry.coordinates[a].length-1;y++)f[a].push([new ea(t.geometry.coordinates[a][(y+1).modulo(t.geometry.coordinates[a].length-1)],1,[a,y],[a,(y+1).modulo(t.geometry.coordinates[a].length-1)],void 0)]),d.push(new na(t.geometry.coordinates[a][y],[a,(y-1).modulo(t.geometry.coordinates[a].length-1)],[a,y],void 0,void 0,!1,!0))}for(a=0;a<h;a++)f[u[a][1]][u[a][2]].push(new ea(u[a][0],u[a][5],[u[a][1],u[a][2]],[u[a][6],u[a][7]],void 0)),u[a][11]&&d.push(new na(u[a][0],[u[a][1],u[a][2]],[u[a][6],u[a][7]],void 0,void 0,!0,!0));var m=d.length;for(a=0;a<f.length;a++)for(y=0;y<f[a].length;y++)f[a][y].sort(function(t,e){return t.param<e.param?-1:1});var g=[];for(a=0;a<m;a++)g.push({minX:d[a].coord[0],minY:d[a].coord[1],maxX:d[a].coord[0],maxY:d[a].coord[1],index:a});var v=So();for(v.load(g),a=0;a<f.length;a++)for(y=0;y<f[a].length;y++)for(var x=0;x<f[a][y].length;x++){w=x==f[a][y].length-1?f[a][(y+1).modulo(t.geometry.coordinates[a].length-1)][0].coord:f[a][y][x+1].coord;var _=v.search({minX:w[0],minY:w[1],maxX:w[0],maxY:w[1]})[0];f[a][y][x].nxtIsectAlongEdgeIn=_.index}for(a=0;a<f.length;a++)for(y=0;y<f[a].length;y++)for(x=0;x<f[a][y].length;x++){var w=f[a][y][x].coord,b=(_=v.search({minX:w[0],minY:w[1],maxX:w[0],maxY:w[1]})[0]).index;b<l?d[b].nxtIsectAlongRingAndEdge2=f[a][y][x].nxtIsectAlongEdgeIn:bn(d[b].ringAndEdge1,f[a][y][x].ringAndEdgeIn)?d[b].nxtIsectAlongRingAndEdge1=f[a][y][x].nxtIsectAlongEdgeIn:d[b].nxtIsectAlongRingAndEdge2=f[a][y][x].nxtIsectAlongEdgeIn}var P=[];for(y=a=0;y<i;y++){var S=a;for(x=0;x<t.geometry.coordinates[y].length-1;x++)d[a].coord[0]<d[S].coord[0]&&(S=a),a++;var C=d[S].nxtIsectAlongRingAndEdge2;for(x=0;x<d.length;x++)if(d[x].nxtIsectAlongRingAndEdge1==S||d[x].nxtIsectAlongRingAndEdge2==S){var M=x;break}var T=wn([d[M].coord,d[S].coord,d[C].coord],!0)?1:-1;P.push({isect:S,parent:-1,winding:T})}for(P.sort(function(t,e){return d[t.isect].coord>d[e.isect].coord?-1:1}),c=[];0<P.length;){var A=P.pop(),E=A.isect,I=A.parent,L=A.winding,R=c.length,O=[d[E].coord],N=E;if(d[E].ringAndEdge1Walkable)var k=d[E].ringAndEdge1,z=d[E].nxtIsectAlongRingAndEdge1;else k=d[E].ringAndEdge2,z=d[E].nxtIsectAlongRingAndEdge2;for(;!bn(d[E].coord,d[z].coord);){O.push(d[z].coord);var D=void 0;for(a=0;a<P.length;a++)if(P[a].isect==z){D=a;break}if(null!=D&&P.splice(D,1),bn(k,d[z].ringAndEdge1)){if(k=d[z].ringAndEdge2,d[z].ringAndEdge2Walkable=!1,d[z].ringAndEdge1Walkable){var F={isect:z};wn([d[N].coord,d[z].coord,d[d[z].nxtIsectAlongRingAndEdge2].coord],1==L)?(F.parent=I,F.winding=-L):(F.parent=R,F.winding=L),P.push(F)}z=d[N=z].nxtIsectAlongRingAndEdge2}else k=d[z].ringAndEdge1,d[z].ringAndEdge1Walkable=!1,d[z].ringAndEdge2Walkable&&(F={isect:z},wn([d[N].coord,d[z].coord,d[d[z].nxtIsectAlongRingAndEdge1].coord],1==L)?(F.parent=I,F.winding=-L):(F.parent=R,F.winding=L),P.push(F)),z=d[N=z].nxtIsectAlongRingAndEdge1}O.push(d[z].coord),c.push(V([O],{index:R,parent:I,winding:L,netWinding:void 0}))}return p=B(c),e(),n(),p},ea=function(t,e,n,i,r){this.coord=t,this.param=e,this.ringAndEdgeIn=n,this.ringAndEdgeOut=i,this.nxtIsectAlongEdgeIn=r},na=function(t,e,n,i,r,o,a){this.coord=t,this.ringAndEdge1=e,this.ringAndEdge2=n,this.nxtIsectAlongRingAndEdge1=i,this.nxtIsectAlongRingAndEdge2=r,this.ringAndEdge1Walkable=o,this.ringAndEdge2Walkable=a};Number.prototype.modulo=function(t){return(this%t+t)%t};var ia=Math.PI/180,ra=180/Math.PI,oa=function(t,e){this.lon=t,this.lat=e,this.x=ia*t,this.y=ia*e};oa.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},oa.prototype.antipode=function(){var t=-1*this.lat,e=this.lon<0?180+this.lon:-1*(180-this.lon);return new oa(e,t)};var aa=function(){this.coords=[],this.length=0};aa.prototype.move_to=function(t){this.length++,this.coords.push(t)};var sa=function(t){this.properties=t||{},this.geometries=[]};sa.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var t=[],e=0;e<this.geometries.length;e++)t.push(this.geometries[e].coords);return{geometry:{type:"MultiLineString",coordinates:t},type:"Feature",properties:this.properties}},sa.prototype.wkt=function(){for(var t="",e="LINESTRING(",n=function(t){e+=t[0]+" "+t[1]+","},i=0;i<this.geometries.length;i++){if(0===this.geometries[i].coords.length)return"LINESTRING(empty)";this.geometries[i].coords.forEach(n),t+=e.substring(0,e.length-1)+")"}return t};var la=function(t,e,n){if(!t||void 0===t.x||void 0===t.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!e||void 0===e.x||void 0===e.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new oa(t.x,t.y),this.end=new oa(e.x,e.y),this.properties=n||{};var i=this.start.x-this.end.x,r=this.start.y-this.end.y,o=Math.pow(Math.sin(r/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(i/2),2);if(this.g=2*Math.asin(Math.sqrt(o)),this.g===Math.PI)throw new Error("it appears "+t.view()+" and "+e.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+t+" and "+e)};la.prototype.interpolate=function(t){var e=Math.sin((1-t)*this.g)/Math.sin(this.g),n=Math.sin(t*this.g)/Math.sin(this.g),i=e*Math.cos(this.start.y)*Math.cos(this.start.x)+n*Math.cos(this.end.y)*Math.cos(this.end.x),r=e*Math.cos(this.start.y)*Math.sin(this.start.x)+n*Math.cos(this.end.y)*Math.sin(this.end.x),o=e*Math.sin(this.start.y)+n*Math.sin(this.end.y),a=ra*Math.atan2(o,Math.sqrt(Math.pow(i,2)+Math.pow(r,2)));return[ra*Math.atan2(r,i),a]},la.prototype.Arc=function(t,e){var n=[];if(!t||t<=2)n.push([this.start.lon,this.start.lat]),n.push([this.end.lon,this.end.lat]);else for(var i=1/(t-1),r=0;r<t;++r){var o=i*r,a=this.interpolate(o);n.push(a)}for(var s=!1,l=0,u=e&&e.offset?e.offset:10,h=180-u,c=-180+u,p=360-u,f=1;f<n.length;++f){var d=n[f-1][0],y=n[f][0],m=Math.abs(y-d);p<m&&(h<y&&d<c||h<d&&y<c)?s=!0:l<m&&(l=m)}var g=[];if(s&&l<u){var v=[];g.push(v);for(var x=0;x<n.length;++x){var _=parseFloat(n[x][0]);if(0<x&&Math.abs(_-n[x-1][0])>p){var w=parseFloat(n[x-1][0]),b=parseFloat(n[x-1][1]),P=parseFloat(n[x][0]),S=parseFloat(n[x][1]);if(-180<w&&w<c&&180===P&&x+1<n.length&&-180<n[x-1][0]&&n[x-1][0]<c){v.push([-180,n[x][1]]),x++,v.push([n[x][0],n[x][1]]);continue}if(h<w&&w<180&&-180===P&&x+1<n.length&&n[x-1][0]>h&&n[x-1][0]<180){v.push([180,n[x][1]]),x++,v.push([n[x][0],n[x][1]]);continue}if(w<c&&h<P){var C=w;w=P,P=C;var M=b;b=S,S=M}if(h<w&&P<c&&(P+=360),w<=180&&180<=P&&w<P){var T=(180-w)/(P-w),A=T*S+(1-T)*b;v.push([n[x-1][0]>h?180:-180,A]),(v=[]).push([n[x-1][0]>h?-180:180,A]),g.push(v)}else v=[],g.push(v);v.push([_,n[x][1]])}else v.push([n[x][0],n[x][1]])}}else{var E=[];g.push(E);for(var I=0;I<n.length;++I)E.push([n[I][0],n[I][1]])}for(var L=new sa(this.properties),R=0;R<g.length;++R){var O=new aa;L.geometries.push(O);for(var N=g[R],k=0;k<N.length;++k)O.move_to(N[k])}return L};var ua=Nn;(Nn.polyline=Nn).polygon=function(t,e){var n,i,r,o,a,s,l;for(i=1;i<=8;i*=2){for(n=[],o=!(zn(r=t[t.length-1],e)&i),a=0;a<t.length;a++)(l=!(zn(s=t[a],e)&i))!==o&&n.push(kn(r,s,i,e)),l&&n.push(s),r=s,o=l;if(!(t=n).length)break}return n};var ha=Array.prototype.slice,ca={successCallback:null,verbose:!1,polygons:!1},pa={},fa=64,da=16,ya=4,ma=1,ga=[],va=[],xa=[],_a=[],wa=[],ba=[],Pa=[],Sa=[],Ca=[],Ma=[],Ta=[],Aa=[],Ea=[],Ia=[],La=[],Ra=[],Oa=[],Na=[],ka=[],za=[],Da=[],Fa=[],Ga=[],ja=[];Pa[85]=Ma[85]=-1,Sa[85]=Ta[85]=0,Ca[85]=Aa[85]=1,ka[85]=Fa[85]=1,za[85]=Ga[85]=0,Da[85]=ja[85]=1,ga[85]=_a[85]=0,va[85]=wa[85]=-1,xa[85]=La[85]=0,Ra[85]=Ea[85]=0,Oa[85]=Ia[85]=1,ba[85]=Na[85]=1,Fa[1]=Fa[169]=0,Ga[1]=Ga[169]=-1,ja[1]=ja[169]=0,Ea[1]=Ea[169]=-1,Ia[1]=Ia[169]=0,La[1]=La[169]=0,Ma[4]=Ma[166]=0,Ta[4]=Ta[166]=-1,Aa[4]=Aa[166]=1,Ra[4]=Ra[166]=1,Oa[4]=Oa[166]=0,Na[4]=Na[166]=0,Pa[16]=Pa[154]=0,Sa[16]=Sa[154]=1,Ca[16]=Ca[154]=1,_a[16]=_a[154]=1,wa[16]=wa[154]=0,ba[16]=ba[154]=1,ka[64]=ka[106]=0,za[64]=za[106]=1,Da[64]=Da[106]=0,ga[64]=ga[106]=-1,va[64]=va[106]=0,xa[64]=xa[106]=1,ka[2]=ka[168]=0,za[2]=za[168]=-1,Da[2]=Da[168]=1,Fa[2]=Fa[168]=0,Ga[2]=Ga[168]=-1,ja[2]=ja[168]=0,Ea[2]=Ea[168]=-1,Ia[2]=Ia[168]=0,La[2]=La[168]=0,Ra[2]=Ra[168]=-1,Oa[2]=Oa[168]=0,Na[2]=Na[168]=1,Pa[8]=Pa[162]=0,Sa[8]=Sa[162]=-1,Ca[8]=Ca[162]=0,Ma[8]=Ma[162]=0,Ta[8]=Ta[162]=-1,Aa[8]=Aa[162]=1,Ea[8]=Ea[162]=1,Ia[8]=Ia[162]=0,La[8]=La[162]=1,Ra[8]=Ra[162]=1,Oa[8]=Oa[162]=0,Na[8]=Na[162]=0,Pa[32]=Pa[138]=0,Sa[32]=Sa[138]=1,Ca[32]=Ca[138]=1,Ma[32]=Ma[138]=0,Ta[32]=Ta[138]=1,Aa[32]=Aa[138]=0,ga[32]=ga[138]=1,va[32]=va[138]=0,xa[32]=xa[138]=0,_a[32]=_a[138]=1,wa[32]=wa[138]=0,ba[32]=ba[138]=1,Fa[128]=Fa[42]=0,Ga[128]=Ga[42]=1,ja[128]=ja[42]=1,ka[128]=ka[42]=0,za[128]=za[42]=1,Da[128]=Da[42]=0,ga[128]=ga[42]=-1,va[128]=va[42]=0,xa[128]=xa[42]=1,_a[128]=_a[42]=-1,wa[128]=wa[42]=0,ba[128]=ba[42]=0,Ma[5]=Ma[165]=-1,Ta[5]=Ta[165]=0,Aa[5]=Aa[165]=0,Fa[5]=Fa[165]=1,Ga[5]=Ga[165]=0,ja[5]=ja[165]=0,Ra[20]=Ra[150]=0,Oa[20]=Oa[150]=1,Na[20]=Na[150]=1,_a[20]=_a[150]=0,wa[20]=wa[150]=-1,ba[20]=ba[150]=1,Pa[80]=Pa[90]=-1,Sa[80]=Sa[90]=0,Ca[80]=Ca[90]=1,ka[80]=ka[90]=1,za[80]=za[90]=0,Da[80]=Da[90]=1,Ea[65]=Ea[105]=0,Ia[65]=Ia[105]=1,La[65]=La[105]=0,ga[65]=ga[105]=0,va[65]=va[105]=-1,xa[65]=xa[105]=0,Pa[160]=Pa[10]=-1,Sa[160]=Sa[10]=0,Ca[160]=Ca[10]=1,Ma[160]=Ma[10]=-1,Ta[160]=Ta[10]=0,Aa[160]=Aa[10]=0,Fa[160]=Fa[10]=1,Ga[160]=Ga[10]=0,ja[160]=ja[10]=0,ka[160]=ka[10]=1,za[160]=za[10]=0,Da[160]=Da[10]=1,Ra[130]=Ra[40]=0,Oa[130]=Oa[40]=1,Na[130]=Na[40]=1,Ea[130]=Ea[40]=0,Ia[130]=Ia[40]=1,La[130]=La[40]=0,ga[130]=ga[40]=0,va[130]=va[40]=-1,xa[130]=xa[40]=0,_a[130]=_a[40]=0,wa[130]=wa[40]=-1,ba[130]=ba[40]=1,Ma[37]=Ma[133]=0,Ta[37]=Ta[133]=1,Aa[37]=Aa[133]=1,Fa[37]=Fa[133]=0,Ga[37]=Ga[133]=1,ja[37]=ja[133]=0,ga[37]=ga[133]=-1,va[37]=va[133]=0,xa[37]=xa[133]=0,_a[37]=_a[133]=1,wa[37]=wa[133]=0,ba[37]=ba[133]=0,Ra[148]=Ra[22]=-1,Oa[148]=Oa[22]=0,Na[148]=Na[22]=0,Fa[148]=Fa[22]=0,Ga[148]=Ga[22]=-1,ja[148]=ja[22]=1,ka[148]=ka[22]=0,za[148]=za[22]=1,Da[148]=Da[22]=1,_a[148]=_a[22]=-1,wa[148]=wa[22]=0,ba[148]=ba[22]=1,Pa[82]=Pa[88]=0,Sa[82]=Sa[88]=-1,Ca[82]=Ca[88]=1,Ra[82]=Ra[88]=1,Oa[82]=Oa[88]=0,Na[82]=Na[88]=1,Ea[82]=Ea[88]=-1,Ia[82]=Ia[88]=0,La[82]=La[88]=1,ka[82]=ka[88]=0,za[82]=za[88]=-1,Da[82]=Da[88]=0,Pa[73]=Pa[97]=0,Sa[73]=Sa[97]=1,Ca[73]=Ca[97]=0,Ma[73]=Ma[97]=0,Ta[73]=Ta[97]=-1,Aa[73]=Aa[97]=0,Ea[73]=Ea[97]=1,Ia[73]=Ia[97]=0,La[73]=La[97]=0,ga[73]=ga[97]=1,va[73]=va[97]=0,xa[73]=xa[97]=1,Pa[145]=Pa[25]=0,Sa[145]=Sa[25]=-1,Ca[145]=Ca[25]=0,Ea[145]=Ea[25]=1,Ia[145]=Ia[25]=0,La[145]=La[25]=1,Fa[145]=Fa[25]=0,Ga[145]=Ga[25]=1,ja[145]=ja[25]=1,_a[145]=_a[25]=-1,wa[145]=wa[25]=0,ba[145]=ba[25]=0,Ma[70]=Ma[100]=0,Ta[70]=Ta[100]=1,Aa[70]=Aa[100]=0,Ra[70]=Ra[100]=-1,Oa[70]=Oa[100]=0,Na[70]=Na[100]=1,ka[70]=ka[100]=0,za[70]=za[100]=-1,Da[70]=Da[100]=1,ga[70]=ga[100]=1,va[70]=va[100]=0,xa[70]=xa[100]=0,Ma[101]=Ma[69]=0,Ta[101]=Ta[69]=1,Aa[101]=Aa[69]=0,ga[101]=ga[69]=1,va[101]=va[69]=0,xa[101]=xa[69]=0,Fa[149]=Fa[21]=0,Ga[149]=Ga[21]=1,ja[149]=ja[21]=1,_a[149]=_a[21]=-1,wa[149]=wa[21]=0,ba[149]=ba[21]=0,Ra[86]=Ra[84]=-1,Oa[86]=Oa[84]=0,Na[86]=Na[84]=1,ka[86]=ka[84]=0,za[86]=za[84]=-1,Da[86]=Da[84]=1,Pa[89]=Pa[81]=0,Sa[89]=Sa[81]=-1,Ca[89]=Ca[81]=0,Ea[89]=Ea[81]=1,Ia[89]=Ia[81]=0,La[89]=La[81]=1,Pa[96]=Pa[74]=0,Sa[96]=Sa[74]=1,Ca[96]=Ca[74]=0,Ma[96]=Ma[74]=-1,Ta[96]=Ta[74]=0,Aa[96]=Aa[74]=1,ka[96]=ka[74]=1,za[96]=za[74]=0,Da[96]=Da[74]=0,ga[96]=ga[74]=1,va[96]=va[74]=0,xa[96]=xa[74]=1,Pa[24]=Pa[146]=0,Sa[24]=Sa[146]=-1,Ca[24]=Ca[146]=1,Ra[24]=Ra[146]=1,Oa[24]=Oa[146]=0,Na[24]=Na[146]=1,Ea[24]=Ea[146]=0,Ia[24]=Ia[146]=1,La[24]=La[146]=1,_a[24]=_a[146]=0,wa[24]=wa[146]=-1,ba[24]=ba[146]=0,Ma[6]=Ma[164]=-1,Ta[6]=Ta[164]=0,Aa[6]=Aa[164]=1,Ra[6]=Ra[164]=-1,Oa[6]=Oa[164]=0,Na[6]=Na[164]=0,Fa[6]=Fa[164]=0,Ga[6]=Ga[164]=-1,ja[6]=ja[164]=1,ka[6]=ka[164]=1,za[6]=za[164]=0,Da[6]=Da[164]=0,Ea[129]=Ea[41]=0,Ia[129]=Ia[41]=1,La[129]=La[41]=1,Fa[129]=Fa[41]=0,Ga[129]=Ga[41]=1,ja[129]=ja[41]=0,ga[129]=ga[41]=-1,va[129]=va[41]=0,xa[129]=xa[41]=0,_a[129]=_a[41]=0,wa[129]=wa[41]=-1,ba[129]=ba[41]=0,Ra[66]=Ra[104]=0,Oa[66]=Oa[104]=1,Na[66]=Na[104]=0,Ea[66]=Ea[104]=-1,Ia[66]=Ia[104]=0,La[66]=La[104]=1,ka[66]=ka[104]=0,za[66]=za[104]=-1,Da[66]=Da[104]=0,ga[66]=ga[104]=0,va[66]=va[104]=-1,xa[66]=xa[104]=1,Pa[144]=Pa[26]=-1,Sa[144]=Sa[26]=0,Ca[144]=Ca[26]=0,Fa[144]=Fa[26]=1,Ga[144]=Ga[26]=0,ja[144]=ja[26]=1,ka[144]=ka[26]=0,za[144]=za[26]=1,Da[144]=Da[26]=1,_a[144]=_a[26]=-1,wa[144]=wa[26]=0,ba[144]=ba[26]=1,Ma[36]=Ma[134]=0,Ta[36]=Ta[134]=1,Aa[36]=Aa[134]=1,Ra[36]=Ra[134]=0,Oa[36]=Oa[134]=1,Na[36]=Na[134]=0,ga[36]=ga[134]=0,va[36]=va[134]=-1,xa[36]=xa[134]=1,_a[36]=_a[134]=1,wa[36]=wa[134]=0,ba[36]=ba[134]=0,Pa[9]=Pa[161]=-1,Sa[9]=Sa[161]=0,Ca[9]=Ca[161]=0,Ma[9]=Ma[161]=0,Ta[9]=Ta[161]=-1,Aa[9]=Aa[161]=0,Ea[9]=Ea[161]=1,Ia[9]=Ia[161]=0,La[9]=La[161]=0,Fa[9]=Fa[161]=1,Ga[9]=Ga[161]=0,ja[9]=ja[161]=1,Pa[136]=0,Sa[136]=1,Ca[136]=1,Ma[136]=0,Ta[136]=1,Aa[136]=0,Ra[136]=-1,Oa[136]=0,Na[136]=1,Ea[136]=-1,Ia[136]=0,La[136]=0,Fa[136]=0,Ga[136]=-1,ja[136]=0,ka[136]=0,za[136]=-1,Da[136]=1,ga[136]=1,va[136]=0,xa[136]=0,_a[136]=1,wa[136]=0,ba[136]=1,Pa[34]=0,Sa[34]=-1,Ca[34]=0,Ma[34]=0,Ta[34]=-1,Aa[34]=1,Ra[34]=1,Oa[34]=0,Na[34]=0,Ea[34]=1,Ia[34]=0,La[34]=1,Fa[34]=0,Ga[34]=1,ja[34]=1,ka[34]=0,za[34]=1,Da[34]=0,ga[34]=-1,va[34]=0,xa[34]=1,_a[34]=-1,wa[34]=0,ba[34]=0,Pa[35]=0,Sa[35]=1,Ca[35]=1,Ma[35]=0,Ta[35]=-1,Aa[35]=1,Ra[35]=1,Oa[35]=0,Na[35]=0,Ea[35]=-1,Ia[35]=0,La[35]=0,Fa[35]=0,Ga[35]=-1,ja[35]=0,ka[35]=0,za[35]=1,Da[35]=0,ga[35]=-1,va[35]=0,xa[35]=1,_a[35]=1,wa[35]=0,ba[35]=1,Pa[153]=0,Sa[153]=1,Ca[153]=1,Ea[153]=-1,Ia[153]=0,La[153]=0,Fa[153]=0,Ga[153]=-1,ja[153]=0,_a[153]=1,wa[153]=0,ba[153]=1,Ma[102]=0,Ta[102]=-1,Aa[102]=1,Ra[102]=1,Oa[102]=0,Na[102]=0,ka[102]=0,za[102]=1,Da[102]=0,ga[102]=-1,va[102]=0,xa[102]=1,Pa[155]=0,Sa[155]=-1,Ca[155]=0,Ea[155]=1,Ia[155]=0,La[155]=1,Fa[155]=0,Ga[155]=1,ja[155]=1,_a[155]=-1,wa[155]=0,ba[155]=0,Ma[103]=0,Ta[103]=1,Aa[103]=0,Ra[103]=-1,Oa[103]=0,Na[103]=1,ka[103]=0,za[103]=-1,Da[103]=1,ga[103]=1,va[103]=0,xa[103]=0,Pa[152]=0,Sa[152]=1,Ca[152]=1,Ra[152]=-1,Oa[152]=0,Na[152]=1,Ea[152]=-1,Ia[152]=0,La[152]=0,Fa[152]=0,Ga[152]=-1,ja[152]=0,ka[152]=0,za[152]=-1,Da[152]=1,_a[152]=1,wa[152]=0,ba[152]=1,Pa[156]=0,Sa[156]=-1,Ca[156]=1,Ra[156]=1,Oa[156]=0,Na[156]=1,Ea[156]=-1,Ia[156]=0,La[156]=0,Fa[156]=0,Ga[156]=-1,ja[156]=0,ka[156]=0,za[156]=1,Da[156]=1,_a[156]=-1,wa[156]=0,ba[156]=1,Pa[137]=0,Sa[137]=1,Ca[137]=1,Ma[137]=0,Ta[137]=1,Aa[137]=0,Ea[137]=-1,Ia[137]=0,La[137]=0,Fa[137]=0,Ga[137]=-1,ja[137]=0,ga[137]=1,va[137]=0,xa[137]=0,_a[137]=1,wa[137]=0,ba[137]=1,Pa[139]=0,Sa[139]=1,Ca[139]=1,Ma[139]=0,Ta[139]=-1,Aa[139]=0,Ea[139]=1,Ia[139]=0,La[139]=0,Fa[139]=0,Ga[139]=1,ja[139]=0,ga[139]=-1,va[139]=0,xa[139]=0,_a[139]=1,wa[139]=0,ba[139]=1,Pa[98]=0,Sa[98]=-1,Ca[98]=0,Ma[98]=0,Ta[98]=-1,Aa[98]=1,Ra[98]=1,Oa[98]=0,Na[98]=0,Ea[98]=1,Ia[98]=0,La[98]=1,ka[98]=0,za[98]=1,Da[98]=0,ga[98]=-1,va[98]=0,xa[98]=1,Pa[99]=0,Sa[99]=1,Ca[99]=0,Ma[99]=0,Ta[99]=-1,Aa[99]=1,Ra[99]=1,Oa[99]=0,Na[99]=0,Ea[99]=-1,Ia[99]=0,La[99]=1,ka[99]=0,za[99]=-1,Da[99]=0,ga[99]=1,va[99]=0,xa[99]=1,Ma[38]=0,Ta[38]=-1,Aa[38]=1,Ra[38]=1,Oa[38]=0,Na[38]=0,Fa[38]=0,Ga[38]=1,ja[38]=1,ka[38]=0,za[38]=1,Da[38]=0,ga[38]=-1,va[38]=0,xa[38]=1,_a[38]=-1,wa[38]=0,ba[38]=0,Ma[39]=0,Ta[39]=1,Aa[39]=1,Ra[39]=-1,Oa[39]=0,Na[39]=0,Fa[39]=0,Ga[39]=-1,ja[39]=1,ka[39]=0,za[39]=1,Da[39]=0,ga[39]=-1,va[39]=0,xa[39]=1,_a[39]=1,wa[39]=0,ba[39]=0;var Va=function(t){return[[t.bottomleft,0],[0,0],[0,t.leftbottom]]},qa=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0]]},Ba=function(t){return[[t.topright,1],[1,1],[1,t.righttop]]},Ua=function(t){return[[0,t.lefttop],[0,1],[t.topleft,1]]},Wa=function(t){return[[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop]]},Za=function(t){return[[t.bottomright,0],[t.bottomleft,0],[1,t.righttop],[1,t.rightbottom]]},Xa=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.topleft,1],[t.topright,1]]},Ha=function(t){return[[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},Ya=[],Ka=[],Ja=[],Qa=[],$a=[],ts=[],es=[],ns=[];Qa[1]=$a[1]=18,Qa[169]=$a[169]=18,Ja[4]=Ka[4]=12,Ja[166]=Ka[166]=12,Ya[16]=ns[16]=4,Ya[154]=ns[154]=4,ts[64]=es[64]=22,ts[106]=es[106]=22,Ja[2]=ts[2]=17,Qa[2]=$a[2]=18,Ja[168]=ts[168]=17,Qa[168]=$a[168]=18,Ya[8]=Qa[8]=9,Ka[8]=Ja[8]=12,Ya[162]=Qa[162]=9,Ka[162]=Ja[162]=12,Ya[32]=ns[32]=4,Ka[32]=es[32]=1,Ya[138]=ns[138]=4,Ka[138]=es[138]=1,$a[128]=ns[128]=21,ts[128]=es[128]=22,$a[42]=ns[42]=21,ts[42]=es[42]=22,Ka[5]=$a[5]=14,Ka[165]=$a[165]=14,Ja[20]=ns[20]=6,Ja[150]=ns[150]=6,Ya[80]=ts[80]=11,Ya[90]=ts[90]=11,Qa[65]=es[65]=3,Qa[105]=es[105]=3,Ya[160]=ts[160]=11,Ka[160]=$a[160]=14,Ya[10]=ts[10]=11,Ka[10]=$a[10]=14,Ja[130]=ns[130]=6,Qa[130]=es[130]=3,Ja[40]=ns[40]=6,Qa[40]=es[40]=3,Ka[101]=es[101]=1,Ka[69]=es[69]=1,$a[149]=ns[149]=21,$a[21]=ns[21]=21,Ja[86]=ts[86]=17,Ja[84]=ts[84]=17,Ya[89]=Qa[89]=9,Ya[81]=Qa[81]=9,Ya[96]=es[96]=0,Ka[96]=ts[96]=15,Ya[74]=es[74]=0,Ka[74]=ts[74]=15,Ya[24]=Ja[24]=8,Qa[24]=ns[24]=7,Ya[146]=Ja[146]=8,Qa[146]=ns[146]=7,Ka[6]=ts[6]=15,Ja[6]=$a[6]=16,Ka[164]=ts[164]=15,Ja[164]=$a[164]=16,Qa[129]=ns[129]=7,$a[129]=es[129]=20,Qa[41]=ns[41]=7,$a[41]=es[41]=20,Ja[66]=es[66]=2,Qa[66]=ts[66]=19,Ja[104]=es[104]=2,Qa[104]=ts[104]=19,Ya[144]=$a[144]=10,ts[144]=ns[144]=23,Ya[26]=$a[26]=10,ts[26]=ns[26]=23,Ka[36]=ns[36]=5,Ja[36]=es[36]=2,Ka[134]=ns[134]=5,Ja[134]=es[134]=2,Ya[9]=$a[9]=10,Ka[9]=Qa[9]=13,Ya[161]=$a[161]=10,Ka[161]=Qa[161]=13,Ka[37]=ns[37]=5,$a[37]=es[37]=20,Ka[133]=ns[133]=5,$a[133]=es[133]=20,Ja[148]=$a[148]=16,ts[148]=ns[148]=23,Ja[22]=$a[22]=16,ts[22]=ns[22]=23,Ya[82]=Ja[82]=8,Qa[82]=ts[82]=19,Ya[88]=Ja[88]=8,Qa[88]=ts[88]=19,Ya[73]=es[73]=0,Ka[73]=Qa[73]=13,Ya[97]=es[97]=0,Ka[97]=Qa[97]=13,Ya[145]=Qa[145]=9,$a[145]=ns[145]=21,Ya[25]=Qa[25]=9,$a[25]=ns[25]=21,Ka[70]=es[70]=1,Ja[70]=ts[70]=17,Ka[100]=es[100]=1,Ja[100]=ts[100]=17,Ya[34]=Qa[34]=9,Ka[34]=Ja[34]=12,$a[34]=ns[34]=21,ts[34]=es[34]=22,Ya[136]=ns[136]=4,Ka[136]=es[136]=1,Ja[136]=ts[136]=17,Qa[136]=$a[136]=18,Ya[35]=ns[35]=4,Ka[35]=Ja[35]=12,Qa[35]=$a[35]=18,ts[35]=es[35]=22,Ya[153]=ns[153]=4,Qa[153]=$a[153]=18,Ka[102]=Ja[102]=12,ts[102]=es[102]=22,Ya[155]=Qa[155]=9,$a[155]=ns[155]=23,Ka[103]=es[103]=1,Ja[103]=ts[103]=17,Ya[152]=ns[152]=4,Ja[152]=ts[152]=17,Qa[152]=$a[152]=18,Ya[156]=Ja[156]=8,Qa[156]=$a[156]=18,ts[156]=ns[156]=23,Ya[137]=ns[137]=4,Ka[137]=es[137]=1,Qa[137]=$a[137]=18,Ya[139]=ns[139]=4,Ka[139]=Qa[139]=13,$a[139]=es[139]=20,Ya[98]=Qa[98]=9,Ka[98]=Ja[98]=12,ts[98]=es[98]=22,Ya[99]=es[99]=0,Ka[99]=Ja[99]=12,Qa[99]=ts[99]=19,Ka[38]=Ja[38]=12,$a[38]=ns[38]=21,ts[38]=es[38]=22,Ka[39]=ns[39]=5,Ja[39]=$a[39]=16,ts[39]=es[39]=22;var is=[];is[1]=is[169]=Va,is[4]=is[166]=qa,is[16]=is[154]=Ba,is[64]=is[106]=Ua,is[168]=is[2]=Wa,is[162]=is[8]=Za,is[138]=is[32]=Xa,is[42]=is[128]=Ha,is[5]=is[165]=function(t){return[[0,0],[0,t.leftbottom],[1,t.rightbottom],[1,0]]},is[20]=is[150]=function(t){return[[1,0],[t.bottomright,0],[t.topright,1],[1,1]]},is[80]=is[90]=function(t){return[[1,1],[1,t.righttop],[0,t.lefttop],[0,1]]},is[65]=is[105]=function(t){return[[t.bottomleft,0],[0,0],[0,1],[t.topleft,1]]},is[160]=is[10]=function(t){return[[1,t.righttop],[1,t.rightbottom],[0,t.leftbottom],[0,t.lefttop]]},is[130]=is[40]=function(t){return[[t.topleft,1],[t.topright,1],[t.bottomright,0],[t.bottomleft,0]]},is[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},is[101]=is[69]=function(t){return[[1,t.rightbottom],[1,0],[0,0],[0,1],[t.topleft,1]]},is[149]=is[21]=function(t){return[[t.topright,1],[1,1],[1,0],[0,0],[0,t.leftbottom]]},is[86]=is[84]=function(t){return[[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[1,1]]},is[89]=is[81]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,1]]},is[96]=is[74]=function(t){return[[1,t.righttop],[1,t.rightbottom],[0,t.lefttop],[0,1],[t.topleft,1]]},is[24]=is[146]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[t.topright,1]]},is[6]=is[164]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop]]},is[129]=is[41]=function(t){return[[t.topright,1],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topleft,1]]},is[66]=is[104]=function(t){return[[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1],[t.topleft,1]]},is[144]=is[26]=function(t){return[[1,1],[1,t.righttop],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},is[36]=is[134]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[t.topleft,1],[t.topright,1]]},is[9]=is[161]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,t.leftbottom]]},is[37]=is[133]=function(t){return[[1,t.rightbottom],[1,0],[0,0],[0,t.leftbottom],[t.topleft,1],[t.topright,1]]},is[148]=is[22]=function(t){return[[1,1],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},is[82]=is[88]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1]]},is[73]=is[97]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,1],[t.topleft,1]]},is[145]=is[25]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topright,1]]},is[70]=is[100]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[t.topleft,1]]},is[34]=function(t){return[Ha(t),Za(t)]},is[35]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},is[136]=function(t){return[Xa(t),Wa(t)]},is[153]=function(t){return[Ba(t),Va(t)]},is[102]=function(t){return[qa(t),Ua(t)]},is[155]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topright,1]]},is[103]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[t.topleft,1]]},is[152]=function(t){return[Ba(t),Wa(t)]},is[156]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},is[137]=function(t){return[Xa(t),Va(t)]},is[139]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topleft,1],[t.topright,1]]},is[98]=function(t){return[Za(t),Ua(t)]},is[99]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1],[t.topleft,1]]},is[38]=function(t){return[qa(t),Ha(t)]},is[39]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]};var rs=function t(e){this.id=t.buildId(e),this.coordinates=e,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1};rs.buildId=function(t){return t.join(",")},rs.prototype.removeInnerEdge=function(e){this.innerEdges=this.innerEdges.filter(function(t){return t.from.id!==e.from.id})},rs.prototype.removeOuterEdge=function(e){this.outerEdges=this.outerEdges.filter(function(t){return t.to.id!==e.to.id})},rs.prototype.addOuterEdge=function(t){this.outerEdges.push(t),this.outerEdgesSorted=!1},rs.prototype.sortOuterEdges=function(){var o=this;this.outerEdgesSorted||(this.outerEdges.sort(function(t,e){var n=t.to,i=e.to;if(0<=n.coordinates[0]-o.coordinates[0]&&i.coordinates[0]-o.coordinates[0]<0)return 1;if(n.coordinates[0]-o.coordinates[0]<0&&0<=i.coordinates[0]-o.coordinates[0])return-1;if(n.coordinates[0]-o.coordinates[0]==0&&i.coordinates[0]-o.coordinates[0]==0)return 0<=n.coordinates[1]-o.coordinates[1]||0<=i.coordinates[1]-o.coordinates[1]?n.coordinates[1]-i.coordinates[1]:i.coordinates[1]-n.coordinates[1];var r=si(o.coordinates,n.coordinates,i.coordinates);return r<0?1:0<r?-1:Math.pow(n.coordinates[0]-o.coordinates[0],2)+Math.pow(n.coordinates[1]-o.coordinates[1],2)-(Math.pow(i.coordinates[0]-o.coordinates[0],2)+Math.pow(i.coordinates[1]-o.coordinates[1],2))}),this.outerEdgesSorted=!0)},rs.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},rs.prototype.getOuterEdge=function(t){return this.sortOuterEdges(),this.outerEdges[t]},rs.prototype.addInnerEdge=function(t){this.innerEdges.push(t)};var os=function(t,e){this.from=t,this.to=e,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)};os.prototype.getSymetric=function(){return this.symetric||(this.symetric=new os(this.to,this.from),this.symetric.symetric=this),this.symetric},os.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},os.prototype.isEqual=function(t){return this.from.id===t.from.id&&this.to.id===t.to.id},os.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},os.prototype.toLineString=function(){return q([this.from.coordinates,this.to.coordinates])},os.prototype.compareTo=function(t){return si(t.from.coordinates,t.to.coordinates,this.to.coordinates)};var as=function(){this.edges=[],this.polygon=void 0,this.envelope=void 0},ss={length:{configurable:!0}};as.prototype.push=function(t){this[this.edges.length]=t,this.edges.push(t),this.polygon=this.envelope=void 0},as.prototype.get=function(t){return this.edges[t]},ss.length.get=function(){return this.edges.length},as.prototype.forEach=function(t){this.edges.forEach(t)},as.prototype.map=function(t){return this.edges.map(t)},as.prototype.some=function(t){return this.edges.some(t)},as.prototype.isValid=function(){return!0},as.prototype.isHole=function(){var i=this,t=this.edges.reduce(function(t,e,n){return e.from.coordinates[1]>i.edges[t].from.coordinates[1]&&(t=n),t},0),e=(0===t?this.length:t)-1,n=(t+1)%this.length,r=si(this.edges[e].from.coordinates,this.edges[t].from.coordinates,this.edges[n].from.coordinates);return 0===r?this.edges[e].from.coordinates[0]>this.edges[n].from.coordinates[0]:0<r},as.prototype.toMultiPoint=function(){return o(this.edges.map(function(t){return t.from.coordinates}))},as.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var t=this.edges.map(function(t){return t.from.coordinates});return t.push(this.edges[0].from.coordinates),this.polygon=V([t])},as.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=ie(this.toPolygon())},as.findEdgeRingContaining=function(i,t){var r,o,a=i.getEnvelope();return t.forEach(function(t){var e=t.getEnvelope();if(o&&(r=o.getEnvelope()),!function(t,e){var n=t.geometry.coordinates.map(function(t){return t[0]}),i=t.geometry.coordinates.map(function(t){return t[1]}),r=e.geometry.coordinates.map(function(t){return t[0]}),o=e.geometry.coordinates.map(function(t){return t[1]});return Math.max(null,n)===Math.max(null,r)&&Math.max(null,i)===Math.max(null,o)&&Math.min(null,n)===Math.min(null,r)&&Math.min(null,i)===Math.min(null,o)}(e,a)&&li(e,a)){var n=i.map(function(t){return t.from.coordinates}).find(function(e){return!t.some(function(t){return function(t,e){return t[0]===e[0]&&t[1]===e[1]}(e,t.from.coordinates)})});n&&t.inside(j(n))&&(o&&!li(r,e)||(o=t))}}),o},as.prototype.inside=function(t){return At(t,this.toPolygon())},Object.defineProperties(as.prototype,ss);var ls=function(){this.edges=[],this.nodes={}};ls.fromGeoJson=function(t){!function(t){if(!t)throw new Error("No geojson passed");if("FeatureCollection"!==t.type&&"GeometryCollection"!==t.type&&"MultiLineString"!==t.type&&"LineString"!==t.type&&"Feature"!==t.type)throw new Error("Invalid input type '"+t.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(t);var r=new ls;return E(t,function(t){F(t,"LineString","Graph::fromGeoJson"),_(t,function(t,e){if(t){var n=r.getNode(t),i=r.getNode(e);r.addEdge(n,i)}return e})}),r},ls.prototype.getNode=function(t){var e=rs.buildId(t),n=this.nodes[e];return n=n||(this.nodes[e]=new rs(t))},ls.prototype.addEdge=function(t,e){var n=new os(t,e),i=n.getSymetric();this.edges.push(n),this.edges.push(i)},ls.prototype.deleteDangles=function(){var e=this;Object.keys(this.nodes).map(function(t){return e.nodes[t]}).forEach(function(t){return e._removeIfDangle(t)})},ls.prototype._removeIfDangle=function(t){var e=this;if(t.innerEdges.length<=1){var n=t.getOuterEdges().map(function(t){return t.to});this.removeNode(t),n.forEach(function(t){return e._removeIfDangle(t)})}},ls.prototype.deleteCutEdges=function(){var e=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach(function(t){t.label===t.symetric.label&&(e.removeEdge(t.symetric),e.removeEdge(t))})},ls.prototype._computeNextCWEdges=function(n){var e=this;void 0===n?Object.keys(this.nodes).forEach(function(t){return e._computeNextCWEdges(e.nodes[t])}):n.getOuterEdges().forEach(function(t,e){n.getOuterEdge((0===e?n.getOuterEdges().length:e)-1).symetric.next=t})},ls.prototype._computeNextCCWEdges=function(t,e){for(var n,i,r=t.getOuterEdges(),o=r.length-1;0<=o;--o){var a=r[o],s=a.symetric,l=void 0,u=void 0;a.label===e&&(l=a),s.label===e&&(u=s),l&&u&&(u&&(i=u),l&&(i&&(i.next=l,i=void 0),n=n||l))}i&&(i.next=n)},ls.prototype._findLabeledEdgeRings=function(){var n=[],i=0;return this.edges.forEach(function(t){if(!(0<=t.label)){n.push(t);for(var e=t;e.label=i,e=e.next,!t.isEqual(e););i++}}),n},ls.prototype.getEdgeRings=function(){var n=this;this._computeNextCWEdges(),this.edges.forEach(function(t){t.label=void 0}),this._findLabeledEdgeRings().forEach(function(e){n._findIntersectionNodes(e).forEach(function(t){n._computeNextCCWEdges(t,e.label)})});var e=[];return this.edges.forEach(function(t){t.ring||e.push(n._findEdgeRing(t))}),e},ls.prototype._findIntersectionNodes=function(n){for(var t=[],i=n,e=function(){var e=0;i.from.getOuterEdges().forEach(function(t){t.label===n.label&&++e}),1<e&&t.push(i.from),i=i.next};e(),!n.isEqual(i););return t},ls.prototype._findEdgeRing=function(t){for(var e=t,n=new as;n.push(e),e.ring=n,e=e.next,!t.isEqual(e););return n},ls.prototype.removeNode=function(t){var e=this;t.getOuterEdges().forEach(function(t){return e.removeEdge(t)}),t.innerEdges.forEach(function(t){return e.removeEdge(t)}),delete this.nodes[t.id]},ls.prototype.removeEdge=function(e){this.edges=this.edges.filter(function(t){return!t.isEqual(e)}),e.deleteEdge()};var us=mt(function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n}),hs=(us.shim,mt(function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(e=t.exports=r?n:i).supported=n,e.unsupported=i})),cs=(hs.supported,hs.unsupported,mt(function(t){function s(t){return null==t}function l(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||0<t.length&&"number"!=typeof t[0])}var u=Array.prototype.slice,h=t.exports=function(t,e,n){return n=n||{},t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var i,r;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(hs(t))return!!hs(e)&&(t=u.call(t),e=u.call(e),h(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var o=us(t),a=us(e)}catch(t){return!1}if(o.length!=a.length)return!1;for(o.sort(),a.sort(),i=o.length-1;0<=i;i--)if(o[i]!=a[i])return!1;for(i=o.length-1;0<=i;i--)if(r=o[i],!h(t[r],e[r],n))return!1;return typeof t==typeof e}(t,e,n))}})),ps=function(t){this.precision=t&&t.precision?t.precision:17,this.direction=!(!t||!t.direction)&&t.direction,this.pseudoNode=!(!t||!t.pseudoNode)&&t.pseudoNode,this.objectComparator=t&&t.objectComparator?t.objectComparator:xi};ps.prototype.compare=function(t,e){if(t.type!==e.type||!vi(t,e))return!1;switch(t.type){case"Point":return this.compareCoord(t.coordinates,e.coordinates);case"LineString":return this.compareLine(t.coordinates,e.coordinates,0,!1);case"Polygon":return this.comparePolygon(t,e);case"Feature":return this.compareFeature(t,e);default:if(0===t.type.indexOf("Multi")){var n=this,i=gi(t),r=gi(e);return i.every(function(e){return this.some(function(t){return n.compare(e,t)})},r)}}return!1},ps.prototype.compareCoord=function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n].toFixed(this.precision)!==e[n].toFixed(this.precision))return!1;return!0},ps.prototype.compareLine=function(t,e,n,i){if(!vi(t,e))return!1;var r=this.pseudoNode?t:this.removePseudo(t),o=this.pseudoNode?e:this.removePseudo(e);if(!i||this.compareCoord(r[0],o[0])||(o=this.fixStartIndex(o,r))){var a=this.compareCoord(r[n],o[n]);return this.direction||a?this.comparePath(r,o):!!this.compareCoord(r[n],o[o.length-(1+n)])&&this.comparePath(r.slice().reverse(),o)}},ps.prototype.fixStartIndex=function(t,e){for(var n,i=-1,r=0;r<t.length;r++)if(this.compareCoord(t[r],e[0])){i=r;break}return 0<=i&&(n=[].concat(t.slice(i,t.length),t.slice(1,i+1))),n},ps.prototype.comparePath=function(t,e){var n=this;return t.every(function(t,e){return n.compareCoord(t,this[e])},e)},ps.prototype.comparePolygon=function(t,e){if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){var n=t.coordinates.slice(1,t.coordinates.length),i=e.coordinates.slice(1,e.coordinates.length),r=this;return n.every(function(e){return this.some(function(t){return r.compareLine(e,t,1,!0)})},i)}return!1},ps.prototype.compareFeature=function(t,e){return!(t.id!==e.id||!this.objectComparator(t.properties,e.properties)||!this.compareBBox(t,e))&&this.compare(t.geometry,e.geometry)},ps.prototype.compareBBox=function(t,e){return!!(!t.bbox&&!e.bbox||t.bbox&&e.bbox&&this.compareCoord(t.bbox,e.bbox))},ps.prototype.removePseudo=function(t){return t};var fs=ps,ds=mt(function(t){function e(t,e,n,i){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,n,i)}e.prototype.run=function(t,e,n,i){this._init(t,e,n,i);for(var r=0;r<this._datasetLength;r++)if(1!==this._visited[r]){this._visited[r]=1;var o=this._regionQuery(r);if(o.length<this.minPts)this.noise.push(r);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(r,a),this._expandCluster(a,o)}}return this.clusters},e.prototype._init=function(t,e,n,i){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),n&&(this.minPts=n),i&&(this.distance=i)},e.prototype._expandCluster=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];if(1!==this._visited[i]){this._visited[i]=1;var r=this._regionQuery(i);r.length>=this.minPts&&(e=this._mergeArrays(e,r))}1!==this._assigned[i]&&this._addToCluster(i,t)}},e.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var e=[],n=0;n<this._datasetLength;n++)this.distance(this.dataset[t],this.dataset[n])<this.epsilon&&e.push(n);return e},e.prototype._mergeArrays=function(t,e){for(var n=e.length,i=0;i<n;i++){var r=e[i];t.indexOf(r)<0&&t.push(r)}return t},e.prototype._euclideanDistance=function(t,e){for(var n=0,i=Math.min(t.length,e.length);i--;)n+=(t[i]-e[i])*(t[i]-e[i]);return Math.sqrt(n)},t.exports&&(t.exports=e)}),ys=mt(function(t){function e(t,e,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,n)}e.prototype.init=function(t,e,n){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==n&&(this.distance=n)},e.prototype.run=function(t,e){this.init(t,e);for(var n=this.dataset.length,i=0;i<this.k;i++)this.centroids[i]=this.randomCentroid();for(var r=!0;r;){r=this.assign();for(var o=0;o<this.k;o++){for(var a=new Array(h),s=0,l=0;l<h;l++)a[l]=0;for(var u=0;u<n;u++){var h=this.dataset[u].length;if(o===this.assignments[u]){for(l=0;l<h;l++)a[l]+=this.dataset[u][l];s++}}if(0<s){for(l=0;l<h;l++)a[l]/=s;this.centroids[o]=a}else this.centroids[o]=this.randomCentroid(),r=!0}}return this.getClusters()},e.prototype.randomCentroid=function(){for(var t,e,n=this.dataset.length-1;e=Math.round(Math.random()*n),t=this.dataset[e],0<=this.centroids.indexOf(t););return t},e.prototype.assign=function(){for(var t,e=!1,n=this.dataset.length,i=0;i<n;i++)(t=this.argmin(this.dataset[i],this.centroids,this.distance))!=this.assignments[i]&&(this.assignments[i]=t,e=!0);return e},e.prototype.getClusters=function(){for(var t,e=new Array(this.k),n=0;n<this.assignments.length;n++)void 0===e[t=this.assignments[n]]&&(e[t]=[]),e[t].push(n);return e},e.prototype.argmin=function(t,e,n){for(var i,r=Number.MAX_VALUE,o=0,a=e.length,s=0;s<a;s++)(i=n(t,e[s]))<r&&(r=i,o=s);return o},e.prototype.distance=function(t,e){for(var n=0,i=Math.min(t.length,e.length);i--;){var r=t[i]-e[i];n+=r*r}return Math.sqrt(n)},t.exports&&(t.exports=e)}),ms=mt(function(t){function e(t,e,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,n)}e.prototype.insert=function(t,e){for(var n=this._queue.length,i=n;i--;){var r=this._priorities[i];"desc"===this._sorting?r<e&&(n=i):e<r&&(n=i)}this._insertAt(t,e,n)},e.prototype.remove=function(t){for(var e=this._queue.length;e--;)if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}},e.prototype.forEach=function(t){this._queue.forEach(t)},e.prototype.getElements=function(){return this._queue},e.prototype.getElementPriority=function(t){return this._priorities[t]},e.prototype.getPriorities=function(){return this._priorities},e.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,n=this._queue.length;e<n;e++)t.push([this._queue[e],this._priorities[e]]);return t},e.prototype._init=function(t,e,n){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var i=0;i<t.length;i++)this.insert(t[i],e[i])}n&&(this._sorting=n)},e.prototype._insertAt=function(t,e,n){this._queue.length===n?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(n,0,t),this._priorities.splice(n,0,e))},t.exports&&(t.exports=e)}),gs=mt(function(t){function e(t,e,n,i){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,n,i)}if(t.exports)var u=ms;e.prototype.run=function(t,e,n,i){this._init(t,e,n,i);for(var r=0,o=this.dataset.length;r<o;r++)if(1!==this._processed[r]){this._processed[r]=1,this.clusters.push([r]);var a=this.clusters.length-1;this._orderedList.push(r);var s=new u(null,null,"asc"),l=this._regionQuery(r);void 0!==this._distanceToCore(r)&&(this._updateQueue(r,l,s),this._expandCluster(a,s))}return this.clusters},e.prototype.getReachabilityPlot=function(){for(var t=[],e=0,n=this._orderedList.length;e<n;e++){var i=this._orderedList[e],r=this._reachability[i];t.push([i,r])}return t},e.prototype._init=function(t,e,n,i){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),n&&(this.minPts=n),i&&(this.distance=i)},e.prototype._updateQueue=function(i,t,r){var o=this;this._coreDistance=this._distanceToCore(i),t.forEach(function(t){if(void 0===o._processed[t]){var e=o.distance(o.dataset[i],o.dataset[t]),n=Math.max(o._coreDistance,e);void 0===o._reachability[t]?(o._reachability[t]=n,r.insert(t,n)):n<o._reachability[t]&&(o._reachability[t]=n,r.remove(t),r.insert(t,n))}})},e.prototype._expandCluster=function(t,e){for(var n=e.getElements(),i=0,r=n.length;i<r;i++){var o=n[i];if(void 0===this._processed[o]){var a=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,a,e),this._expandCluster(t,e))}}},e.prototype._distanceToCore=function(t){for(var e=this.epsilon,n=0;n<e;n++)if(this._regionQuery(t,n).length>=this.minPts)return n},e.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var n=[],i=0,r=this.dataset.length;i<r;i++)this.distance(this.dataset[t],this.dataset[i])<e&&n.push(i);return n},e.prototype._euclideanDistance=function(t,e){for(var n=0,i=Math.min(t.length,e.length);i--;)n+=(t[i]-e[i])*(t[i]-e[i]);return Math.sqrt(n)},t.exports&&(t.exports=e)}),vs=mt(function(t){t.exports&&(t.exports={DBSCAN:ds,KMEANS:ys,OPTICS:gs,PriorityQueue:ms})}),xs=(vs.DBSCAN,vs.KMEANS,vs.OPTICS,vs.PriorityQueue,function(t,e,n){for(var i=t.length,r=0,o=0;o<i;o++){var a=(t[o]||0)-(e[o]||0);r+=a*a}return n?Math.sqrt(r):r}),_s=xs,ws=function(t,e,n){var i=Math.abs(t-e);return n?i:i*i},bs=xs,Ps=function(t,e,n,i){var r=[],o=[],a=[],s=[],l=!1,u=i||1e4,h=t.length,c=t[0].length,p=0<c,f=[];if(n)r="kmrand"==n?function(t,e){for(var n={},i=[],r=e<<2,o=t.length,a=t[0].length>0;i.length<e&&r-- >0;){var s=t[Math.floor(Math.random()*o)],l=a?s.join("_"):""+s;n[l]||(n[l]=!0,i.push(s))}if(i.length<e)throw new Error("Error initializating clusters");return i}(t,e):"kmpp"==n?function(t,e){var n=t[0].length?_s:ws,i=[],r=t.length,o=t[0].length>0,a=t[Math.floor(Math.random()*r)];for(o&&a.join("_"),i.push(a);i.length<e;){for(var s=[],l=i.length,u=0,h=[],c=0;c<r;c++){for(var p=1/0,f=0;f<l;f++){var d=n(t[c],i[f]);d<=p&&(p=d)}s[c]=p}for(var y=0;y<r;y++)u+=s[y];for(var m=0;m<r;m++)h[m]={i:m,v:t[m],pr:s[m]/u,cs:0};h.sort(function(t,e){return t.pr-e.pr}),h[0].cs=h[0].pr;for(var g=1;g<r;g++)h[g].cs=h[g-1].cs+h[g].pr;for(var v=Math.random(),x=0;x<r-1&&h[x++].cs<v;);i.push(h[x-1].v)}return i}(t,e):n;else for(var d={};r.length<e;){var y=Math.floor(Math.random()*h);d[y]||(d[y]=!0,r.push(t[y]))}do{wi(e,0,f);for(var m=0;m<h;m++){for(var g=1/0,v=0,x=0;x<e;x++)(s=p?bs(t[m],r[x]):Math.abs(t[m]-r[x]))<=g&&(g=s,v=x);a[m]=v,f[v]++}for(var _=[],w=(o=[],0);w<e;w++)_[w]=p?wi(c,0,_[w]):0,o[w]=r[w];if(p){for(var b=0;b<e;b++)r[b]=[];for(var P=0;P<h;P++)for(var S=_[a[P]],C=t[P],M=0;M<c;M++)S[M]+=C[M];l=!0;for(var T=0;T<e;T++){for(var A=r[T],E=_[T],I=o[T],L=f[T],R=0;R<c;R++)A[R]=E[R]/L||0;if(l)for(var O=0;O<c;O++)if(I[O]!=A[O]){l=!1;break}}}else{for(var N=0;N<h;N++)_[a[N]]+=t[N];for(var k=0;k<e;k++)r[k]=_[k]/f[k]||0;l=!0;for(var z=0;z<e;z++)if(o[z]!=r[z]){l=!1;break}}l=l||--u<=0}while(!l);return{it:1e4-u,k:e,idxs:a,centroids:r}},Ss={search:function(t,e,n,i){t.cleanDirty();var r=(i=i||{}).heuristic||Ss.heuristics.manhattan,o=i.closest||!1,a=new Mi(function(t){return t.f}),s=e;for(e.h=r(e,n),a.push(e);0<a.size();){var l=a.pop();if(l===n)return Pi(l);l.closed=!0;for(var u=t.neighbors(l),h=0,c=u.length;h<c;++h){var p=u[h];if(!p.closed&&!p.isWall()){var f=l.g+p.getCost(l),d=p.visited;(!d||f<p.g)&&(p.visited=!0,p.parent=l,p.h=p.h||r(p,n),p.g=f,p.f=p.g+p.h,t.markDirty(p),o&&(p.h<s.h||p.h===s.h&&p.g<s.g)&&(s=p),d?a.rescoreElement(p):a.push(p))}}}return o?Pi(s):[]},heuristics:{manhattan:function(t,e){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},diagonal:function(t,e){var n=Math.sqrt(2),i=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);return 1*(i+r)+(n-2)*Math.min(i,r)}},cleanNode:function(t){t.f=0,t.g=0,t.h=0,t.visited=!1,t.closed=!1,t.parent=null}};Si.prototype.init=function(){this.dirtyNodes=[];for(var t=0;t<this.nodes.length;t++)Ss.cleanNode(this.nodes[t])},Si.prototype.cleanDirty=function(){for(var t=0;t<this.dirtyNodes.length;t++)Ss.cleanNode(this.dirtyNodes[t]);this.dirtyNodes=[]},Si.prototype.markDirty=function(t){this.dirtyNodes.push(t)},Si.prototype.neighbors=function(t){var e=[],n=t.x,i=t.y,r=this.grid;return r[n-1]&&r[n-1][i]&&e.push(r[n-1][i]),r[n+1]&&r[n+1][i]&&e.push(r[n+1][i]),r[n]&&r[n][i-1]&&e.push(r[n][i-1]),r[n]&&r[n][i+1]&&e.push(r[n][i+1]),this.diagonal&&(r[n-1]&&r[n-1][i-1]&&e.push(r[n-1][i-1]),r[n+1]&&r[n+1][i-1]&&e.push(r[n+1][i-1]),r[n-1]&&r[n-1][i+1]&&e.push(r[n-1][i+1]),r[n+1]&&r[n+1][i+1]&&e.push(r[n+1][i+1])),e},Si.prototype.toString=function(){for(var t,e,n,i,r=[],o=this.grid,a=0,s=o.length;a<s;a++){for(t=[],n=0,i=(e=o[a]).length;n<i;n++)t.push(e[n].weight);r.push(t.join(" "))}return r.join("\n")},Ci.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},Ci.prototype.getCost=function(t){return t&&t.x!==this.x&&t.y!==this.y?1.41421*this.weight:this.weight},Ci.prototype.isWall=function(){return 0===this.weight},Mi.prototype={push:function(t){this.content.push(t),this.sinkDown(this.content.length-1)},pop:function(){var t=this.content[0],e=this.content.pop();return 0<this.content.length&&(this.content[0]=e,this.bubbleUp(0)),t},remove:function(t){var e=this.content.indexOf(t),n=this.content.pop();e!==this.content.length-1&&(this.content[e]=n,this.scoreFunction(n)<this.scoreFunction(t)?this.sinkDown(e):this.bubbleUp(e))},size:function(){return this.content.length},rescoreElement:function(t){this.sinkDown(this.content.indexOf(t))},sinkDown:function(t){for(var e=this.content[t];0<t;){var n=(t+1>>1)-1,i=this.content[n];if(!(this.scoreFunction(e)<this.scoreFunction(i)))break;this.content[n]=e,this.content[t]=i,t=n}},bubbleUp:function(t){for(var e=this.content.length,n=this.content[t],i=this.scoreFunction(n);;){var r,o=t+1<<1,a=o-1,s=null;if(a<e){var l=this.content[a];(r=this.scoreFunction(l))<i&&(s=a)}if(o<e){var u=this.content[o];this.scoreFunction(u)<(null===s?i:r)&&(s=o)}if(null===s)break;this.content[t]=this.content[s],this.content[s]=n,t=s}}};var Cs=function(t){return function(){return t}};Ei.prototype={constructor:Ei,insert:function(t,e){var n,i,r;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else n=this._?(t=Oi(this._),e.P=null,(e.N=t).P=t.L=e,t):(e.P=e.N=null,this._=e,null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(i=n.U).L?(r=i.R)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.R&&(Li(this,n),n=(t=n).U),n.C=!1,i.C=!0,Ri(this,i)):(r=i.L)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.L&&(Ri(this,n),n=(t=n).U),n.C=!1,i.C=!0,Li(this,i)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,i,r=t.U,o=t.L,a=t.R;if(n=o?a?Oi(a):o:a,r?r.L===t?r.L=n:r.R=n:this._=n,o&&a?(i=n.C,n.C=t.C,((n.L=o).U=n)!==a?(r=n.U,n.U=t.U,t=n.R,r.L=t,(n.R=a).U=n):(n.U=r,t=(r=n).R)):(i=t.C,t=n),t&&(t.U=r),!i)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===r.L){if((e=r.R).C&&(e.C=!1,r.C=!0,Li(this,r),e=r.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Ri(this,e),e=r.R),e.C=r.C,r.C=e.R.C=!1,Li(this,r),t=this._;break}}else if((e=r.L).C&&(e.C=!1,r.C=!0,Ri(this,r),e=r.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Li(this,e),e=r.L),e.C=r.C,r.C=e.L.C=!1,Ri(this,r),t=this._;break}e.C=!0,r=(t=r).U}while(!t.C);t&&(t.C=!1)}}};var Ms,Ts,As,Es,Is,Ls=[],Rs=[],Os=1e-6,Ns=1e-12;Hi.prototype={constructor:Hi,polygons:function(){var n=this.edges;return this.cells.map(function(e){var t=e.halfedges.map(function(t){return Gi(e,n[t])});return t.data=e.site.data,t})},triangles:function(){var p=[],f=this.edges;return this.cells.forEach(function(t,e){if(i=(n=t.halfedges).length)for(var n,i,r,o=t.site,a=-1,s=f[n[i-1]],l=s.left===o?s.right:s.left;++a<i;)r=l,l=(s=f[n[a]]).left===o?s.right:s.left,r&&l&&e<r.index&&e<l.index&&(h=r,c=l,((u=o)[0]-c[0])*(h[1]-u[1])-(u[0]-h[0])*(c[1]-u[1])<0)&&p.push([o.data,r.data,l.data]);var u,h,c}),p},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(a,s,t){for(var e,l,u=this,h=u._found||0,n=u.cells.length;!(l=u.cells[h]);)if(++h>=n)return null;for(var i=a-l.site[0],r=s-l.site[1],c=i*i+r*r;l=u.cells[e=h],h=null,l.halfedges.forEach(function(t){var e=u.edges[t],n=e.left;if(n!==l.site&&n||(n=e.right)){var i=a-n[0],r=s-n[1],o=i*i+r*r;o<c&&(c=o,h=n.index)}}),null!==h;);return u._found=e,null==t||c<=t*t?l.site:null}};var ks=Object.freeze({randomPosition:tr,randomPoint:er,randomPolygon:nr,randomLineString:ir}),zs=Object.freeze({getCluster:or,clusterEach:ar,clusterReduce:sr,createBins:lr,applyFilter:ur,propertiesContainsFilter:hr,filterProperties:cr});"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(null==this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,i=1 in arguments&&parseInt(Number(arguments[1]),10)||0;i=i<0?Math.max(n+i,0):Math.min(i,n);var r=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(r=r<0?Math.max(n+arguments[2],0):Math.min(r,n);i<r;)e[i]=t,++i;return e},writable:!0}),Number.isFinite=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(t){return t!=t},Math.trunc=Math.trunc||function(t){return t<0?Math.ceil(t):Math.floor(t)};var Ds=function(){};Ds.prototype.interfaces_=function(){return[]},Ds.prototype.getClass=function(){return Ds},Ds.prototype.equalsWithTolerance=function(t,e,n){return Math.abs(t-e)<=n};var Fs=function(){},Gs=function(){},js={MAX_VALUE:{configurable:!0}};Gs.isNaN=function(t){return Number.isNaN(t)},Gs.doubleToLongBits=function(t){return t},Gs.longBitsToDouble=function(t){return t},Gs.isInfinite=function(t){return!Number.isFinite(t)},js.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(Gs,js);var Vs=function(){},qs=function(){},Bs=function(){},Us=function t(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=t.NULL_ORDINATE;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.z=e.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=t.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},Ws={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};Us.prototype.setOrdinate=function(t,e){switch(t){case Us.X:this.x=e;break;case Us.Y:this.y=e;break;case Us.Z:this.z=e;break;default:throw new Fs("Invalid ordinate index: "+t)}},Us.prototype.equals2D=function(){if(1===arguments.length){var t=arguments[0];return this.x===t.x&&this.y===t.y}if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!Ds.equalsWithTolerance(this.x,e.x,n)&&!!Ds.equalsWithTolerance(this.y,e.y,n)}},Us.prototype.getOrdinate=function(t){switch(t){case Us.X:return this.x;case Us.Y:return this.y;case Us.Z:return this.z}throw new Fs("Invalid ordinate index: "+t)},Us.prototype.equals3D=function(t){return this.x===t.x&&this.y===t.y&&(this.z===t.z||Gs.isNaN(this.z))&&Gs.isNaN(t.z)},Us.prototype.equals=function(t){return t instanceof Us&&this.equals2D(t)},Us.prototype.equalInZ=function(t,e){return Ds.equalsWithTolerance(this.z,t.z,e)},Us.prototype.compareTo=function(t){var e=t;return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:this.y>e.y?1:0},Us.prototype.clone=function(){},Us.prototype.copy=function(){return new Us(this)},Us.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},Us.prototype.distance3D=function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return Math.sqrt(e*e+n*n+i*i)},Us.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},Us.prototype.hashCode=function(){var t=17;return t=37*(t=37*t+Us.hashCode(this.x))+Us.hashCode(this.y)},Us.prototype.setCoordinate=function(t){this.x=t.x,this.y=t.y,this.z=t.z},Us.prototype.interfaces_=function(){return[Vs,qs,pr]},Us.prototype.getClass=function(){return Us},Us.hashCode=function(){if(1===arguments.length){var t=arguments[0],e=Gs.doubleToLongBits(t);return Math.trunc((e^e)>>>32)}},Ws.DimensionalComparator.get=function(){return Zs},Ws.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},Ws.NULL_ORDINATE.get=function(){return Gs.NaN},Ws.X.get=function(){return 0},Ws.Y.get=function(){return 1},Ws.Z.get=function(){return 2},Object.defineProperties(Us,Ws);var Zs=function(t){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(2!==e&&3!==e)throw new Fs("only 2 or 3 dimensions may be specified");this._dimensionsToTest=e}};Zs.prototype.compare=function(t,e){var n=t,i=e,r=Zs.compare(n.x,i.x);if(0!==r)return r;var o=Zs.compare(n.y,i.y);return 0!==o?o:this._dimensionsToTest<=2?0:Zs.compare(n.z,i.z)},Zs.prototype.interfaces_=function(){return[Bs]},Zs.prototype.getClass=function(){return Zs},Zs.compare=function(t,e){return t<e?-1:e<t?1:Gs.isNaN(t)?Gs.isNaN(e)?0:-1:Gs.isNaN(e)?1:0};var Xs=function(){};Xs.prototype.create=function(){},Xs.prototype.interfaces_=function(){return[]},Xs.prototype.getClass=function(){return Xs};var Hs=function(){},Ys={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};Hs.prototype.interfaces_=function(){return[]},Hs.prototype.getClass=function(){return Hs},Hs.toLocationSymbol=function(t){switch(t){case Hs.EXTERIOR:return"e";case Hs.BOUNDARY:return"b";case Hs.INTERIOR:return"i";case Hs.NONE:return"-"}throw new Fs("Unknown location value: "+t)},Ys.INTERIOR.get=function(){return 0},Ys.BOUNDARY.get=function(){return 1},Ys.EXTERIOR.get=function(){return 2},Ys.NONE.get=function(){return-1},Object.defineProperties(Hs,Ys);var Ks=function(t,e){return t.interfaces_&&-1<t.interfaces_().indexOf(e)},Js=function(){},Qs={LOG_10:{configurable:!0}};Js.prototype.interfaces_=function(){return[]},Js.prototype.getClass=function(){return Js},Js.log10=function(t){var e=Math.log(t);return Gs.isInfinite(e)?e:Gs.isNaN(e)?e:e/Js.LOG_10},Js.min=function(t,e,n,i){var r=t;return e<r&&(r=e),n<r&&(r=n),i<r&&(r=i),r},Js.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1],n=arguments[2];return t<e?e:n<t?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var i=arguments[0],r=arguments[1],o=arguments[2];return i<r?r:o<i?o:i}},Js.wrap=function(t,e){return t<0?e- -t%e:t%e},Js.max=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=t;return i<e&&(i=e),i<n&&(i=n),i}if(4===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3],l=r;return l<o&&(l=o),l<a&&(l=a),l<s&&(l=s),l}},Js.average=function(t,e){return(t+e)/2},Qs.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(Js,Qs);var $s=function(t){this.str=t};$s.prototype.append=function(t){this.str+=t},$s.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},$s.prototype.toString=function(t){return this.str};var tl=function(t){this.value=t};tl.prototype.intValue=function(){return this.value},tl.prototype.compareTo=function(t){return this.value<t?-1:this.value>t?1:0},tl.isNaN=function(t){return Number.isNaN(t)};var el=function(){};el.isWhitespace=function(t){return t<=32&&0<=t||127===t},el.toUpperCase=function(t){return t.toUpperCase()};var nl=function t(){if(this._hi=0,(this._lo=0)===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}else if("string"==typeof arguments[0]){var i=arguments[0];t.call(this,t.parse(i))}}else if(2===arguments.length){var r=arguments[0],o=arguments[1];this.init(r,o)}},il={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};nl.prototype.le=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<=t._lo},nl.prototype.extractSignificantDigits=function(t,e){var n=this.abs(),i=nl.magnitude(n._hi),r=nl.TEN.pow(i);(n=n.divide(r)).gt(nl.TEN)?(n=n.divide(nl.TEN),i+=1):n.lt(nl.ONE)&&(n=n.multiply(nl.TEN),i-=1);for(var o=i+1,a=new $s,s=nl.MAX_PRINT_DIGITS-1,l=0;l<=s;l++){t&&l===o&&a.append(".");var u=Math.trunc(n._hi);if(u<0)break;var h=!1,c=0;c=9<u?(h=!0,"9"):"0"+u,a.append(c),n=n.subtract(nl.valueOf(u)).multiply(nl.TEN),h&&n.selfAdd(nl.TEN);var p=!0,f=nl.magnitude(n._hi);if(f<0&&Math.abs(f)>=s-l&&(p=!1),!p)break}return e[0]=i,a.toString()},nl.prototype.sqr=function(){return this.multiply(this)},nl.prototype.doubleValue=function(){return this._hi+this._lo},nl.prototype.subtract=function(){if(arguments[0]instanceof nl){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},nl.prototype.equals=function(){if(1===arguments.length){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},nl.prototype.isZero=function(){return 0===this._hi&&0===this._lo},nl.prototype.selfSubtract=function(){if(arguments[0]instanceof nl){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},nl.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},nl.prototype.min=function(t){return this.le(t)?this:t},nl.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof nl){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,a=null,s=null,l=null,u=null,h=null,c=null;return l=this._hi/n,c=(r=(u=nl.SPLIT*l)-(r=u-l))*(a=(c=nl.SPLIT*n)-(a=c-n))-(h=l*n)+r*(s=n-a)+(o=l-r)*a+o*s,u=(this._hi-h-c+this._lo-l*i)/n,c=l+u,this._hi=c,this._lo=l-c+u,this}},nl.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},nl.prototype.divide=function(){if(arguments[0]instanceof nl){var t=arguments[0],e=null,n=null,i=null,r=null,o=null,a=null,s=null,l=null;return n=(o=this._hi/t._hi)-(e=(a=nl.SPLIT*o)-(e=a-o)),l=e*(i=(l=nl.SPLIT*t._hi)-(i=l-t._hi))-(s=o*t._hi)+e*(r=t._hi-i)+n*i+n*r,a=(this._hi-s-l+this._lo-o*t._lo)/t._hi,new nl(l=o+a,o-l+a)}if("number"==typeof arguments[0]){var u=arguments[0];return Gs.isNaN(u)?nl.createNaN():nl.copy(this).selfDivide(u,0)}},nl.prototype.ge=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>=t._lo},nl.prototype.pow=function(t){if(0===t)return nl.valueOf(1);var e=new nl(this),n=nl.valueOf(1),i=Math.abs(t);if(1<i)for(;0<i;)i%2==1&&n.selfMultiply(e),0<(i/=2)&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},nl.prototype.ceil=function(){if(this.isNaN())return nl.NaN;var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new nl(t,e)},nl.prototype.compareTo=function(t){var e=t;return this._hi<e._hi?-1:this._hi>e._hi?1:this._lo<e._lo?-1:this._lo>e._lo?1:0},nl.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},nl.prototype.setValue=function(){if(arguments[0]instanceof nl){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},nl.prototype.max=function(t){return this.ge(t)?this:t},nl.prototype.sqrt=function(){if(this.isZero())return nl.valueOf(0);if(this.isNegative())return nl.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,n=nl.valueOf(e),i=this.subtract(n.sqr())._hi*(.5*t);return n.add(i)},nl.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof nl){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0],n=null,i=null,r=null,o=null,a=null,s=null;return r=this._hi+e,a=r-this._hi,o=r-a,o=e-a+(this._hi-o),s=o+this._lo,i=s+(r-(n=r+s)),this._hi=n+i,this._lo=i+(n-this._hi),this}}else if(2===arguments.length){var l=arguments[0],u=arguments[1],h=null,c=null,p=null,f=null,d=null,y=null,m=null;f=this._hi+l,c=this._lo+u,d=f-(y=f-this._hi),p=c-(m=c-this._lo);var g=(h=f+(y=(d=l-y+(this._hi-d))+c))+(y=(p=u-m+(this._lo-p))+(y+(f-h))),v=y+(h-g);return this._hi=g,this._lo=v,this}},nl.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof nl){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,a=null,s=null,l=null,u=null;r=(l=nl.SPLIT*this._hi)-this._hi,u=nl.SPLIT*n,r=l-r,o=this._hi-r,a=u-n;var h=(l=this._hi*n)+(u=r*(a=u-a)-l+r*(s=n-a)+o*a+o*s+(this._hi*i+this._lo*n)),c=u+(r=l-h);return this._hi=h,this._lo=c,this}},nl.prototype.selfSqr=function(){return this.selfMultiply(this)},nl.prototype.floor=function(){if(this.isNaN())return nl.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new nl(t,e)},nl.prototype.negate=function(){return this.isNaN()?this:new nl(-this._hi,-this._lo)},nl.prototype.clone=function(){},nl.prototype.multiply=function(){if(arguments[0]instanceof nl){var t=arguments[0];return t.isNaN()?nl.createNaN():nl.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return Gs.isNaN(e)?nl.createNaN():nl.copy(this).selfMultiply(e,0)}},nl.prototype.isNaN=function(){return Gs.isNaN(this._hi)},nl.prototype.intValue=function(){return Math.trunc(this._hi)},nl.prototype.toString=function(){var t=nl.magnitude(this._hi);return-3<=t&&t<=20?this.toStandardNotation():this.toSciNotation()},nl.prototype.toStandardNotation=function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),i=e[0]+1,r=n;if("."===n.charAt(0))r="0"+n;else if(i<0)r="0."+nl.stringOfChar("0",-i)+n;else if(-1===n.indexOf(".")){var o=i-n.length;r=n+nl.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+r:r},nl.prototype.reciprocal=function(){var t=null,e=null,n=null,i=null,r=null,o=null,a=null,s=null;e=(r=1/this._hi)-(t=(o=nl.SPLIT*r)-(t=o-r)),n=(s=nl.SPLIT*this._hi)-this._hi;var l=r+(o=(1-(a=r*this._hi)-(s=t*(n=s-n)-a+t*(i=this._hi-n)+e*n+e*i)-r*this._lo)/this._hi);return new nl(l,r-l+o)},nl.prototype.toSciNotation=function(){if(this.isZero())return nl.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),i=nl.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var r="";1<n.length&&(r=n.substring(1));var o=n.charAt(0)+"."+r;return this.isNegative()?"-"+o+i:o+i},nl.prototype.abs=function(){return this.isNaN()?nl.NaN:this.isNegative()?this.negate():new nl(this)},nl.prototype.isPositive=function(){return(0<this._hi||0===this._hi)&&0<this._lo},nl.prototype.lt=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<t._lo},nl.prototype.add=function(){if(arguments[0]instanceof nl){var t=arguments[0];return nl.copy(this).selfAdd(t)}if("number"==typeof arguments[0]){var e=arguments[0];return nl.copy(this).selfAdd(e)}},nl.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this._hi=t,this._lo=0}else if(arguments[0]instanceof nl){var e=arguments[0];this._hi=e._hi,this._lo=e._lo}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this._hi=n,this._lo=i}},nl.prototype.gt=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>t._lo},nl.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},nl.prototype.trunc=function(){return this.isNaN()?nl.NaN:this.isPositive()?this.floor():this.ceil()},nl.prototype.signum=function(){return 0<this._hi?1:this._hi<0?-1:0<this._lo?1:this._lo<0?-1:0},nl.prototype.interfaces_=function(){return[pr,Vs,qs]},nl.prototype.getClass=function(){return nl},nl.sqr=function(t){return nl.valueOf(t).selfMultiply(t)},nl.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return nl.parse(t)}if("number"==typeof arguments[0]){var e=arguments[0];return new nl(e)}},nl.sqrt=function(t){return nl.valueOf(t).sqrt()},nl.parse=function(t){for(var e=0,n=t.length;el.isWhitespace(t.charAt(e));)e++;var i=!1;if(e<n){var r=t.charAt(e);"-"!==r&&"+"!==r||(e++,"-"===r&&(i=!0))}for(var o=new nl,a=0,s=0,l=0;!(n<=e);){var u=t.charAt(e);if(e++,el.isDigit(u)){var h=u-"0";o.selfMultiply(nl.TEN),o.selfAdd(h),a++}else{if("."!==u){if("e"!==u&&"E"!==u)throw new Error("Unexpected character '"+u+"' at position "+e+" in string "+t);var c=t.substring(e);try{l=tl.parseInt(c)}catch(e){throw e instanceof Error?new Error("Invalid exponent "+c+" in string "+t):e}break}s=a}}var p=o,f=a-s-l;if(0==f)p=o;else if(0<f){var d=nl.TEN.pow(f);p=o.divide(d)}else if(f<0){var y=nl.TEN.pow(-f);p=o.multiply(y)}return i?p.negate():p},nl.createNaN=function(){return new nl(Gs.NaN,Gs.NaN)},nl.copy=function(t){return new nl(t)},nl.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),i=Math.trunc(Math.floor(n));return 10*Math.pow(10,i)<=e&&(i+=1),i},nl.stringOfChar=function(t,e){for(var n=new $s,i=0;i<e;i++)n.append(t);return n.toString()},il.PI.get=function(){return new nl(3.141592653589793,12246467991473532e-32)},il.TWO_PI.get=function(){return new nl(6.283185307179586,24492935982947064e-32)},il.PI_2.get=function(){return new nl(1.5707963267948966,6123233995736766e-32)},il.E.get=function(){return new nl(2.718281828459045,14456468917292502e-32)},il.NaN.get=function(){return new nl(Gs.NaN,Gs.NaN)},il.EPS.get=function(){return 123259516440783e-46},il.SPLIT.get=function(){return 134217729},il.MAX_PRINT_DIGITS.get=function(){return 32},il.TEN.get=function(){return nl.valueOf(10)},il.ONE.get=function(){return nl.valueOf(1)},il.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},il.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(nl,il);var rl=function(){},ol={DP_SAFE_EPSILON:{configurable:!0}};rl.prototype.interfaces_=function(){return[]},rl.prototype.getClass=function(){return rl},rl.orientationIndex=function(t,e,n){var i=rl.orientationIndexFilter(t,e,n);if(i<=1)return i;var r=nl.valueOf(e.x).selfAdd(-t.x),o=nl.valueOf(e.y).selfAdd(-t.y),a=nl.valueOf(n.x).selfAdd(-e.x),s=nl.valueOf(n.y).selfAdd(-e.y);return r.selfMultiply(s).selfSubtract(o.selfMultiply(a)).signum()},rl.signOfDet2x2=function(t,e,n,i){return t.multiply(i).selfSubtract(e.multiply(n)).signum()},rl.intersection=function(t,e,n,i){var r=nl.valueOf(i.y).selfSubtract(n.y).selfMultiply(nl.valueOf(e.x).selfSubtract(t.x)),o=nl.valueOf(i.x).selfSubtract(n.x).selfMultiply(nl.valueOf(e.y).selfSubtract(t.y)),a=r.subtract(o),s=nl.valueOf(i.x).selfSubtract(n.x).selfMultiply(nl.valueOf(t.y).selfSubtract(n.y)),l=nl.valueOf(i.y).selfSubtract(n.y).selfMultiply(nl.valueOf(t.x).selfSubtract(n.x)),u=s.subtract(l).selfDivide(a).doubleValue(),h=nl.valueOf(t.x).selfAdd(nl.valueOf(e.x).selfSubtract(t.x).selfMultiply(u)).doubleValue(),c=nl.valueOf(e.x).selfSubtract(t.x).selfMultiply(nl.valueOf(t.y).selfSubtract(n.y)),p=nl.valueOf(e.y).selfSubtract(t.y).selfMultiply(nl.valueOf(t.x).selfSubtract(n.x)),f=c.subtract(p).selfDivide(a).doubleValue(),d=nl.valueOf(n.y).selfAdd(nl.valueOf(i.y).selfSubtract(n.y).selfMultiply(f)).doubleValue();return new Us(h,d)},rl.orientationIndexFilter=function(t,e,n){var i=null,r=(t.x-n.x)*(e.y-n.y),o=(t.y-n.y)*(e.x-n.x),a=r-o;if(0<r){if(o<=0)return rl.signum(a);i=r+o}else{if(!(r<0))return rl.signum(a);if(0<=o)return rl.signum(a);i=-r-o}var s=rl.DP_SAFE_EPSILON*i;return s<=a||s<=-a?rl.signum(a):2},rl.signum=function(t){return 0<t?1:t<0?-1:0},ol.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(rl,ol);var al=function(){},sl={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};sl.X.get=function(){return 0},sl.Y.get=function(){return 1},sl.Z.get=function(){return 2},sl.M.get=function(){return 3},al.prototype.setOrdinate=function(t,e,n){},al.prototype.size=function(){},al.prototype.getOrdinate=function(t,e){},al.prototype.getCoordinate=function(){},al.prototype.getCoordinateCopy=function(t){},al.prototype.getDimension=function(){},al.prototype.getX=function(t){},al.prototype.clone=function(){},al.prototype.expandEnvelope=function(t){},al.prototype.copy=function(){},al.prototype.getY=function(t){},al.prototype.toCoordinateArray=function(){},al.prototype.interfaces_=function(){return[qs]},al.prototype.getClass=function(){return al},Object.defineProperties(al,sl);var ll=function(){},ul=function(t){function e(){t.call(this,"Projective point not representable on the Cartesian plane.")}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(ll),hl=function(){};hl.arraycopy=function(t,e,n,i,r){for(var o=0,a=e;a<e+r;a++)n[i+o]=t[a],o++},hl.getProperty=function(t){return{"line.separator":"\n"}[t]};var cl=function t(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],i=arguments[1];this.x=n,this.y=i,this.w=1}else if(arguments[0]instanceof t&&arguments[1]instanceof t){var r=arguments[0],o=arguments[1];this.x=r.y*o.w-o.y*r.w,this.y=o.x*r.w-r.x*o.w,this.w=r.x*o.y-o.x*r.y}else if(arguments[0]instanceof Us&&arguments[1]instanceof Us){var a=arguments[0],s=arguments[1];this.x=a.y-s.y,this.y=s.x-a.x,this.w=a.x*s.y-s.x*a.y}}else if(3===arguments.length){var l=arguments[0],u=arguments[1],h=arguments[2];this.x=l,this.y=u,this.w=h}else if(4===arguments.length){var c=arguments[0],p=arguments[1],f=arguments[2],d=arguments[3],y=c.y-p.y,m=p.x-c.x,g=c.x*p.y-p.x*c.y,v=f.y-d.y,x=d.x-f.x,_=f.x*d.y-d.x*f.y;this.x=m*_-x*g,this.y=v*g-y*_,this.w=y*x-v*m}};cl.prototype.getY=function(){var t=this.y/this.w;if(Gs.isNaN(t)||Gs.isInfinite(t))throw new ul;return t},cl.prototype.getX=function(){var t=this.x/this.w;if(Gs.isNaN(t)||Gs.isInfinite(t))throw new ul;return t},cl.prototype.getCoordinate=function(){var t=new Us;return t.x=this.getX(),t.y=this.getY(),t},cl.prototype.interfaces_=function(){return[]},cl.prototype.getClass=function(){return cl},cl.intersection=function(t,e,n,i){var r=t.y-e.y,o=e.x-t.x,a=t.x*e.y-e.x*t.y,s=n.y-i.y,l=i.x-n.x,u=n.x*i.y-i.x*n.y,h=r*l-s*o,c=(o*u-l*a)/h,p=(s*a-r*u)/h;if(Gs.isNaN(c)||Gs.isInfinite(c)||Gs.isNaN(p)||Gs.isInfinite(p))throw new ul;return new Us(c,p)};var pl=function t(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof Us){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.init(i.x,r.x,i.y,r.y)}else if(4===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2],l=arguments[3];this.init(o,a,s,l)}},fl={serialVersionUID:{configurable:!0}};pl.prototype.getArea=function(){return this.getWidth()*this.getHeight()},pl.prototype.equals=function(t){if(!(t instanceof pl))return!1;var e=t;return this.isNull()?e.isNull():this._maxx===e.getMaxX()&&this._maxy===e.getMaxY()&&this._minx===e.getMinX()&&this._miny===e.getMinY()},pl.prototype.intersection=function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new pl;var e=this._minx>t._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny,i=this._maxx<t._maxx?this._maxx:t._maxx,r=this._maxy<t._maxy?this._maxy:t._maxy;return new pl(e,i,n,r)},pl.prototype.isNull=function(){return this._maxx<this._minx},pl.prototype.getMaxX=function(){return this._maxx},pl.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof Us){var t=arguments[0];return this.covers(t.x,t.y)}if(arguments[0]instanceof pl){var e=arguments[0];return!this.isNull()&&!e.isNull()&&e.getMinX()>=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&i>=this._miny&&i<=this._maxy}},pl.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof pl){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxx<this._minx||t._miny>this._maxy||t._maxy<this._miny)}if(arguments[0]instanceof Us){var e=arguments[0];return this.intersects(e.x,e.y)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return!this.isNull()&&!(n>this._maxx||n<this._minx||i>this._maxy||i<this._miny)}},pl.prototype.getMinY=function(){return this._miny},pl.prototype.getMinX=function(){return this._minx},pl.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof Us){var t=arguments[0];this.expandToInclude(t.x,t.y)}else if(arguments[0]instanceof pl){var e=arguments[0];if(e.isNull())return null;this.isNull()?(this._minx=e.getMinX(),this._maxx=e.getMaxX(),this._miny=e.getMinY(),this._maxy=e.getMaxY()):(e._minx<this._minx&&(this._minx=e._minx),e._maxx>this._maxx&&(this._maxx=e._maxx),e._miny<this._miny&&(this._miny=e._miny),e._maxy>this._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=i,this._maxy=i):(n<this._minx&&(this._minx=n),n>this._maxx&&(this._maxx=n),i<this._miny&&(this._miny=i),i>this._maxy&&(this._maxy=i))}},pl.prototype.minExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t<e?t:e},pl.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},pl.prototype.compareTo=function(t){var e=t;return this.isNull()?e.isNull()?0:-1:e.isNull()?1:this._minx<e._minx?-1:this._minx>e._minx?1:this._miny<e._miny?-1:this._miny>e._miny?1:this._maxx<e._maxx?-1:this._maxx>e._maxx?1:this._maxy<e._maxy?-1:this._maxy>e._maxy?1:0},pl.prototype.translate=function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},pl.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},pl.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},pl.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},pl.prototype.maxExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return e<t?t:e},pl.prototype.expandBy=function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},pl.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof pl){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof Us){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return this.covers(n,i)}},pl.prototype.centre=function(){return this.isNull()?null:new Us((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},pl.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof Us){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof pl){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.init(n.x,i.x,n.y,i.y)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];r<o?(this._minx=r,this._maxx=o):(this._minx=o,this._maxx=r),a<s?(this._miny=a,this._maxy=s):(this._miny=s,this._maxy=a)}},pl.prototype.getMaxY=function(){return this._maxy},pl.prototype.distance=function(t){if(this.intersects(t))return 0;var e=0;this._maxx<t._minx?e=t._minx-this._maxx:this._minx>t._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxy<t._miny?n=t._miny-this._maxy:this._miny>t._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},pl.prototype.hashCode=function(){var t=17;return t=37*(t=37*(t=37*(t=37*t+Us.hashCode(this._minx))+Us.hashCode(this._maxx))+Us.hashCode(this._miny))+Us.hashCode(this._maxy)},pl.prototype.interfaces_=function(){return[Vs,pr]},pl.prototype.getClass=function(){return pl},pl.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.x<e.x?t.x:e.x)&&n.x<=(t.x>e.x?t.x:e.x)&&n.y>=(t.y<e.y?t.y:e.y)&&n.y<=(t.y>e.y?t.y:e.y)}if(4===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2],a=arguments[3],s=Math.min(o.x,a.x),l=Math.max(o.x,a.x),u=Math.min(i.x,r.x),h=Math.max(i.x,r.x);return!(l<u||h<s||(s=Math.min(o.y,a.y),l=Math.max(o.y,a.y),u=Math.min(i.y,r.y),h=Math.max(i.y,r.y),l<u||h<s))}},fl.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(pl,fl);var dl={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},yl=function(t){this.geometryFactory=t||new Fu};yl.prototype.read=function(t){var e,n,i;t=t.replace(/[\n\r]/g," ");var r=dl.typeStr.exec(t);if(-1!==t.search("EMPTY")&&((r=dl.emptyTypeStr.exec(t))[2]=void 0),r&&(n=r[1].toLowerCase(),i=r[2],gl[n]&&(e=gl[n].apply(this,[i]))),void 0===e)throw new Error("Could not parse WKT "+t);return e},yl.prototype.write=function(t){return this.extractGeometry(t)},yl.prototype.extractGeometry=function(t){var e=t.getGeometryType().toLowerCase();if(!ml[e])return null;var n=e.toUpperCase();return t.isEmpty()?n+" EMPTY":n+"("+ml[e].apply(this,[t])+")"};var ml={coordinate:function(t){return t.x+" "+t.y},point:function(t){return ml.coordinate.call(this,t._coordinates._coordinates[0])},multipoint:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push("("+ml.point.apply(this,[t._geometries[n]])+")");return e.join(",")},linestring:function(t){for(var e=[],n=0,i=t._points._coordinates.length;n<i;++n)e.push(ml.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},linearring:function(t){for(var e=[],n=0,i=t._points._coordinates.length;n<i;++n)e.push(ml.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},multilinestring:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push("("+ml.linestring.apply(this,[t._geometries[n]])+")");return e.join(",")},polygon:function(t){var e=[];e.push("("+ml.linestring.apply(this,[t._shell])+")");for(var n=0,i=t._holes.length;n<i;++n)e.push("("+ml.linestring.apply(this,[t._holes[n]])+")");return e.join(",")},multipolygon:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push("("+ml.polygon.apply(this,[t._geometries[n]])+")");return e.join(",")},geometrycollection:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push(this.extractGeometry(t._geometries[n]));return e.join(",")}},gl={point:function(t){if(void 0===t)return this.geometryFactory.createPoint();var e=t.trim().split(dl.spaces);return this.geometryFactory.createPoint(new Us(Number.parseFloat(e[0]),Number.parseFloat(e[1])))},multipoint:function(t){if(void 0===t)return this.geometryFactory.createMultiPoint();for(var e,n=t.trim().split(","),i=[],r=0,o=n.length;r<o;++r)e=n[r].replace(dl.trimParens,"$1"),i.push(gl.point.apply(this,[e]));return this.geometryFactory.createMultiPoint(i)},linestring:function(t){if(void 0===t)return this.geometryFactory.createLineString();for(var e,n=t.trim().split(","),i=[],r=0,o=n.length;r<o;++r)e=n[r].trim().split(dl.spaces),i.push(new Us(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLineString(i)},linearring:function(t){if(void 0===t)return this.geometryFactory.createLinearRing();for(var e,n=t.trim().split(","),i=[],r=0,o=n.length;r<o;++r)e=n[r].trim().split(dl.spaces),i.push(new Us(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLinearRing(i)},multilinestring:function(t){if(void 0===t)return this.geometryFactory.createMultiLineString();for(var e,n=t.trim().split(dl.parenComma),i=[],r=0,o=n.length;r<o;++r)e=n[r].replace(dl.trimParens,"$1"),i.push(gl.linestring.apply(this,[e]));return this.geometryFactory.createMultiLineString(i)},polygon:function(t){if(void 0===t)return this.geometryFactory.createPolygon();for(var e,n,i,r,o=t.trim().split(dl.parenComma),a=[],s=0,l=o.length;s<l;++s)e=o[s].replace(dl.trimParens,"$1"),n=gl.linestring.apply(this,[e]),i=this.geometryFactory.createLinearRing(n._points),0===s?r=i:a.push(i);return this.geometryFactory.createPolygon(r,a)},multipolygon:function(t){if(void 0===t)return this.geometryFactory.createMultiPolygon();for(var e,n=t.trim().split(dl.doubleParenComma),i=[],r=0,o=n.length;r<o;++r)e=n[r].replace(dl.trimParens,"$1"),i.push(gl.polygon.apply(this,[e]));return this.geometryFactory.createMultiPolygon(i)},geometrycollection:function(t){if(void 0===t)return this.geometryFactory.createGeometryCollection();for(var e=(t=t.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],i=0,r=e.length;i<r;++i)n.push(this.read(e[i]));return this.geometryFactory.createGeometryCollection(n)}},vl=function(t){this.parser=new yl(t)};vl.prototype.write=function(t){return this.parser.write(t)},vl.toLineString=function(t,e){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+t.x+" "+t.y+", "+e.x+" "+e.y+" )"};var xl=function(e){function t(t){e.call(this,t),this.name="RuntimeException",this.message=t,this.stack=(new e).stack}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(Error),_l=function(e){function t(){if(e.call(this),0===arguments.length)e.call(this);else if(1===arguments.length){var t=arguments[0];e.call(this,t)}}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(xl),wl=function(){};wl.prototype.interfaces_=function(){return[]},wl.prototype.getClass=function(){return wl},wl.shouldNeverReachHere=function(){if(0===arguments.length)wl.shouldNeverReachHere(null);else if(1===arguments.length){var t=arguments[0];throw new _l("Should never reach here"+(null!==t?": "+t:""))}},wl.isTrue=function(){var t;if(1===arguments.length)wl.isTrue(arguments[0],null);else if(2===arguments.length&&(t=arguments[1],!arguments[0]))throw null===t?new _l:new _l(t)},wl.equals=function(){var t,e,n;if(2===arguments.length)wl.equals(t=arguments[0],e=arguments[1],null);else if(3===arguments.length&&(t=arguments[0],n=arguments[2],!(e=arguments[1]).equals(t)))throw new _l("Expected "+t+" but encountered "+e+(null!==n?": "+n:""))};var bl=function(){this._result=null,this._inputLines=Array(2).fill().map(function(){return Array(2)}),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new Us,this._intPt[1]=new Us,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},Pl={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};bl.prototype.getIndexAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intLineIndex[t][e]},bl.prototype.getTopologySummary=function(){var t=new $s;return this.isEndPoint()&&t.append(" endpoint"),this._isProper&&t.append(" proper"),this.isCollinear()&&t.append(" collinear"),t.toString()},bl.prototype.computeIntersection=function(t,e,n,i){this._inputLines[0][0]=t,this._inputLines[0][1]=e,this._inputLines[1][0]=n,this._inputLines[1][1]=i,this._result=this.computeIntersect(t,e,n,i)},bl.prototype.getIntersectionNum=function(){return this._result},bl.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map(function(){return Array(2)}),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var t=arguments[0];this.getEdgeDistance(t,0)>this.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},bl.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},bl.prototype.setPrecisionModel=function(t){this._precisionModel=t},bl.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;e<this._result;e++)if(!this._intPt[e].equals2D(this._inputLines[t][0])&&!this._intPt[e].equals2D(this._inputLines[t][1]))return!0;return!1}},bl.prototype.getIntersection=function(t){return this._intPt[t]},bl.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},bl.prototype.hasIntersection=function(){return this._result!==bl.NO_INTERSECTION},bl.prototype.getEdgeDistance=function(t,e){return bl.computeEdgeDistance(this._intPt[e],this._inputLines[t][0],this._inputLines[t][1])},bl.prototype.isCollinear=function(){return this._result===bl.COLLINEAR_INTERSECTION},bl.prototype.toString=function(){return vl.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+vl.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},bl.prototype.getEndpoint=function(t,e){return this._inputLines[t][e]},bl.prototype.isIntersection=function(t){for(var e=0;e<this._result;e++)if(this._intPt[e].equals2D(t))return!0;return!1},bl.prototype.getIntersectionAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[t][e]]},bl.prototype.interfaces_=function(){return[]},bl.prototype.getClass=function(){return bl},bl.computeEdgeDistance=function(t,e,n){var i=Math.abs(n.x-e.x),r=Math.abs(n.y-e.y),o=-1;if(t.equals(e))o=0;else if(t.equals(n))o=r<i?i:r;else{var a=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);0!==(o=r<i?a:s)||t.equals(e)||(o=Math.max(a,s))}return wl.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o},bl.nonRobustComputeEdgeDistance=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,o=Math.sqrt(i*i+r*r);return wl.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o},Pl.DONT_INTERSECT.get=function(){return 0},Pl.DO_INTERSECT.get=function(){return 1},Pl.COLLINEAR.get=function(){return 2},Pl.NO_INTERSECTION.get=function(){return 0},Pl.POINT_INTERSECTION.get=function(){return 1},Pl.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(bl,Pl);var Sl=function(l){function a(){l.apply(this,arguments)}return l&&(a.__proto__=l),((a.prototype=Object.create(l&&l.prototype)).constructor=a).prototype.isInSegmentEnvelopes=function(t){var e=new pl(this._inputLines[0][0],this._inputLines[0][1]),n=new pl(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)},a.prototype.computeIntersection=function(){if(3!==arguments.length)return l.prototype.computeIntersection.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2];if(this._isProper=!1,pl.intersects(e,n,t)&&0===Tl.orientationIndex(e,n,t)&&0===Tl.orientationIndex(n,e,t))return this._isProper=!0,(t.equals(e)||t.equals(n))&&(this._isProper=!1),this._result=l.POINT_INTERSECTION,null;this._result=l.NO_INTERSECTION},a.prototype.normalizeToMinimum=function(t,e,n,i,r){r.x=this.smallestInAbsValue(t.x,e.x,n.x,i.x),r.y=this.smallestInAbsValue(t.y,e.y,n.y,i.y),t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},a.prototype.safeHCoordinateIntersection=function(e,n,i,r){var o=null;try{o=cl.intersection(e,n,i,r)}catch(t){if(!(t instanceof ul))throw t;o=a.nearestEndpoint(e,n,i,r)}return o},a.prototype.intersection=function(t,e,n,i){var r=this.intersectionWithNormalization(t,e,n,i);return this.isInSegmentEnvelopes(r)||(r=new Us(a.nearestEndpoint(t,e,n,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(r),r},a.prototype.smallestInAbsValue=function(t,e,n,i){var r=t,o=Math.abs(r);return Math.abs(e)<o&&(r=e,o=Math.abs(e)),Math.abs(n)<o&&(r=n,o=Math.abs(n)),Math.abs(i)<o&&(r=i),r},a.prototype.checkDD=function(t,e,n,i,r){var o=rl.intersection(t,e,n,i),a=this.isInSegmentEnvelopes(o);hl.out.println("DD in env = "+a+" --------------------- "+o),1e-4<r.distance(o)&&hl.out.println("Distance = "+r.distance(o))},a.prototype.intersectionWithNormalization=function(t,e,n,i){var r=new Us(t),o=new Us(e),a=new Us(n),s=new Us(i),l=new Us;this.normalizeToEnvCentre(r,o,a,s,l);var u=this.safeHCoordinateIntersection(r,o,a,s);return u.x+=l.x,u.y+=l.y,u},a.prototype.computeCollinearIntersection=function(t,e,n,i){var r=pl.intersects(t,e,n),o=pl.intersects(t,e,i),a=pl.intersects(n,i,t),s=pl.intersects(n,i,e);return r&&o?(this._intPt[0]=n,this._intPt[1]=i,l.COLLINEAR_INTERSECTION):a&&s?(this._intPt[0]=t,this._intPt[1]=e,l.COLLINEAR_INTERSECTION):r&&a?(this._intPt[0]=n,this._intPt[1]=t,!n.equals(t)||o||s?l.COLLINEAR_INTERSECTION:l.POINT_INTERSECTION):r&&s?(this._intPt[0]=n,this._intPt[1]=e,!n.equals(e)||o||a?l.COLLINEAR_INTERSECTION:l.POINT_INTERSECTION):o&&a?(this._intPt[0]=i,this._intPt[1]=t,!i.equals(t)||r||s?l.COLLINEAR_INTERSECTION:l.POINT_INTERSECTION):o&&s?(this._intPt[0]=i,this._intPt[1]=e,!i.equals(e)||r||a?l.COLLINEAR_INTERSECTION:l.POINT_INTERSECTION):l.NO_INTERSECTION},a.prototype.normalizeToEnvCentre=function(t,e,n,i,r){var o=t.x<e.x?t.x:e.x,a=t.y<e.y?t.y:e.y,s=t.x>e.x?t.x:e.x,l=t.y>e.y?t.y:e.y,u=n.x<i.x?n.x:i.x,h=n.y<i.y?n.y:i.y,c=n.x>i.x?n.x:i.x,p=n.y>i.y?n.y:i.y,f=((u<o?o:u)+(s<c?s:c))/2,d=((h<a?a:h)+(l<p?l:p))/2;r.x=f,r.y=d,t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},a.prototype.computeIntersect=function(t,e,n,i){if(this._isProper=!1,!pl.intersects(t,e,n,i))return l.NO_INTERSECTION;var r=Tl.orientationIndex(t,e,n),o=Tl.orientationIndex(t,e,i);if(0<r&&0<o||r<0&&o<0)return l.NO_INTERSECTION;var a=Tl.orientationIndex(n,i,t),s=Tl.orientationIndex(n,i,e);return 0<a&&0<s||a<0&&s<0?l.NO_INTERSECTION:0===r&&0===o&&0===a&&0===s?this.computeCollinearIntersection(t,e,n,i):(0===r||0===o||0===a||0===s?(this._isProper=!1,t.equals2D(n)||t.equals2D(i)?this._intPt[0]=t:e.equals2D(n)||e.equals2D(i)?this._intPt[0]=e:0===r?this._intPt[0]=new Us(n):0===o?this._intPt[0]=new Us(i):0===a?this._intPt[0]=new Us(t):0===s&&(this._intPt[0]=new Us(e))):(this._isProper=!0,this._intPt[0]=this.intersection(t,e,n,i)),l.POINT_INTERSECTION)},a.prototype.interfaces_=function(){return[]},a.prototype.getClass=function(){return a},a.nearestEndpoint=function(t,e,n,i){var r=t,o=Tl.distancePointLine(t,n,i),a=Tl.distancePointLine(e,n,i);return a<o&&(o=a,r=e),(a=Tl.distancePointLine(n,t,e))<o&&(o=a,r=n),(a=Tl.distancePointLine(i,t,e))<o&&(o=a,r=i),r},a}(bl),Cl=function(){};Cl.prototype.interfaces_=function(){return[]},Cl.prototype.getClass=function(){return Cl},Cl.orientationIndex=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,o=n.x-e.x,a=n.y-e.y;return Cl.signOfDet2x2(i,r,o,a)},Cl.signOfDet2x2=function(t,e,n,i){var r=null,o=null,a=null;if(r=1,0===t||0===i)return 0===e||0===n?0:0<e?0<n?-r:r:0<n?r:-r;if(0===e||0===n)return 0<i?0<t?r:-r:0<t?-r:r;if(0<e?0<i?e<=i||(r=-r,o=t,t=n,n=o,o=e,e=i,i=o):i=e<=-i?(r=-r,n=-n,-i):(o=t,t=-n,n=o,o=e,e=-i,o):0<i?-e<=i?(r=-r,t=-t,e=-e):(o=-t,t=n,n=o,o=-e,e=i,i=o):i=i<=e?(t=-t,e=-e,n=-n,-i):(r=-r,o=-t,t=-n,n=o,o=-e,e=-i,o),0<t){if(!(0<n))return r;if(!(t<=n))return r}else{if(0<n)return-r;if(!(n<=t))return-r;r=-r,t=-t,n=-n}for(;;){if(a=Math.floor(n/t),n-=a*t,(i-=a*e)<0)return-r;if(e<i)return r;if(n+n<t){if(e<i+i)return r}else{if(i+i<e)return-r;n=t-n,i=e-i,r=-r}if(0===i)return 0===n?0:-r;if(0===n)return r;if(a=Math.floor(t/n),t-=a*n,(e-=a*i)<0)return r;if(i<e)return-r;if(t+t<n){if(i<e+e)return-r}else{if(e+e<i)return r;t=n-t,e=i-e,r=-r}if(0===e)return 0===t?0:r;if(0===t)return-r}};var Ml=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];this._p=t};Ml.prototype.countSegment=function(t,e){if(t.x<this._p.x&&e.x<this._p.x)return null;if(this._p.x===e.x&&this._p.y===e.y)return this._isPointOnSegment=!0,null;if(t.y===this._p.y&&e.y===this._p.y){var n=t.x,i=e.x;return i<n&&(n=e.x,i=t.x),this._p.x>=n&&this._p.x<=i&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var r=t.x-this._p.x,o=t.y-this._p.y,a=e.x-this._p.x,s=e.y-this._p.y,l=Cl.signOfDet2x2(r,o,a,s);if(0===l)return this._isPointOnSegment=!0,null;s<o&&(l=-l),0<l&&this._crossingCount++}},Ml.prototype.isPointInPolygon=function(){return this.getLocation()!==Hs.EXTERIOR},Ml.prototype.getLocation=function(){return this._isPointOnSegment?Hs.BOUNDARY:this._crossingCount%2==1?Hs.INTERIOR:Hs.EXTERIOR},Ml.prototype.isOnSegment=function(){return this._isPointOnSegment},Ml.prototype.interfaces_=function(){return[]},Ml.prototype.getClass=function(){return Ml},Ml.locatePointInRing=function(){if(arguments[0]instanceof Us&&Ks(arguments[1],al)){for(var t=arguments[0],e=arguments[1],n=new Ml(t),i=new Us,r=new Us,o=1;o<e.size();o++)if(e.getCoordinate(o,i),e.getCoordinate(o-1,r),n.countSegment(i,r),n.isOnSegment())return n.getLocation();return n.getLocation()}if(arguments[0]instanceof Us&&arguments[1]instanceof Array){for(var a=arguments[0],s=arguments[1],l=new Ml(a),u=1;u<s.length;u++){var h=s[u],c=s[u-1];if(l.countSegment(h,c),l.isOnSegment())return l.getLocation()}return l.getLocation()}};var Tl=function(){},Al={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};Tl.prototype.interfaces_=function(){return[]},Tl.prototype.getClass=function(){return Tl},Tl.orientationIndex=function(t,e,n){return rl.orientationIndex(t,e,n)},Tl.signedArea=function(){if(arguments[0]instanceof Array){var t=arguments[0];if(t.length<3)return 0;for(var e=0,n=t[0].x,i=1;i<t.length-1;i++){var r=t[i].x-n,o=t[i+1].y;e+=r*(t[i-1].y-o)}return e/2}if(Ks(arguments[0],al)){var a=arguments[0],s=a.size();if(s<3)return 0;var l=new Us,u=new Us,h=new Us;a.getCoordinate(0,u),a.getCoordinate(1,h);var c=u.x;h.x-=c;for(var p=0,f=1;f<s-1;f++)l.y=u.y,u.x=h.x,u.y=h.y,a.getCoordinate(f+1,h),h.x-=c,p+=u.x*(l.y-h.y);return p/2}},Tl.distanceLineLine=function(t,e,n,i){if(t.equals(e))return Tl.distancePointLine(t,n,i);if(n.equals(i))return Tl.distancePointLine(i,t,e);var r=!1;if(pl.intersects(t,e,n,i)){var o=(e.x-t.x)*(i.y-n.y)-(e.y-t.y)*(i.x-n.x);if(0==o)r=!0;else{var a=(t.y-n.y)*(i.x-n.x)-(t.x-n.x)*(i.y-n.y),s=((t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y))/o,l=a/o;(l<0||1<l||s<0||1<s)&&(r=!0)}}else r=!0;return r?Js.min(Tl.distancePointLine(t,n,i),Tl.distancePointLine(e,n,i),Tl.distancePointLine(n,t,e),Tl.distancePointLine(i,t,e)):0},Tl.isPointInRing=function(t,e){return Tl.locatePointInRing(t,e)!==Hs.EXTERIOR},Tl.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,i=new Us;t.getCoordinate(0,i);for(var r=i.x,o=i.y,a=1;a<e;a++){t.getCoordinate(a,i);var s=i.x,l=i.y,u=s-r,h=l-o;n+=Math.sqrt(u*u+h*h),r=s,o=l}return n},Tl.isCCW=function(t){var e=t.length-1;if(e<3)throw new Fs("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=t[0],i=0,r=1;r<=e;r++){var o=t[r];o.y>n.y&&(n=o,i=r)}for(var a=i;(a-=1)<0&&(a=e),t[a].equals2D(n)&&a!==i;);for(var s=i;t[s=(s+1)%e].equals2D(n)&&s!==i;);var l=t[a],u=t[s];if(l.equals2D(n)||u.equals2D(n)||l.equals2D(u))return!1;var h=Tl.computeOrientation(l,n,u);return 0===h?l.x>u.x:0<h},Tl.locatePointInRing=function(t,e){return Ml.locatePointInRing(t,e)},Tl.distancePointLinePerpendicular=function(t,e,n){var i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(r)*Math.sqrt(i)},Tl.computeOrientation=function(t,e,n){return Tl.orientationIndex(t,e,n)},Tl.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new Fs("Line array must contain at least one vertex");for(var n=t.distance(e[0]),i=0;i<e.length-1;i++){var r=Tl.distancePointLine(t,e[i],e[i+1]);r<n&&(n=r)}return n}if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];if(a.x===s.x&&a.y===s.y)return o.distance(a);var l=(s.x-a.x)*(s.x-a.x)+(s.y-a.y)*(s.y-a.y),u=((o.x-a.x)*(s.x-a.x)+(o.y-a.y)*(s.y-a.y))/l;if(u<=0)return o.distance(a);if(1<=u)return o.distance(s);var h=((a.y-o.y)*(s.x-a.x)-(a.x-o.x)*(s.y-a.y))/l;return Math.abs(h)*Math.sqrt(l)}},Tl.isOnLine=function(t,e){for(var n=new Sl,i=1;i<e.length;i++){var r=e[i-1],o=e[i];if(n.computeIntersection(t,r,o),n.hasIntersection())return!0}return!1},Al.CLOCKWISE.get=function(){return-1},Al.RIGHT.get=function(){return Tl.CLOCKWISE},Al.COUNTERCLOCKWISE.get=function(){return 1},Al.LEFT.get=function(){return Tl.COUNTERCLOCKWISE},Al.COLLINEAR.get=function(){return 0},Al.STRAIGHT.get=function(){return Tl.COLLINEAR},Object.defineProperties(Tl,Al);var El=function(){};El.prototype.filter=function(t){},El.prototype.interfaces_=function(){return[]},El.prototype.getClass=function(){return El};var Il=function(){var t=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=t,this._SRID=t.getSRID()},Ll={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};Il.prototype.isGeometryCollection=function(){return this.getSortIndex()===Il.SORTINDEX_GEOMETRYCOLLECTION},Il.prototype.getFactory=function(){return this._factory},Il.prototype.getGeometryN=function(t){return this},Il.prototype.getArea=function(){return 0},Il.prototype.isRectangle=function(){return!1},Il.prototype.equals=function(){if(arguments[0]instanceof Il){var t=arguments[0];return null!==t&&this.equalsTopo(t)}if(arguments[0]instanceof Object){var e=arguments[0];if(!(e instanceof Il))return!1;var n=e;return this.equalsExact(n)}},Il.prototype.equalsExact=function(t){return this===t||this.equalsExact(t,0)},Il.prototype.geometryChanged=function(){this.apply(Il.geometryChangedFilter)},Il.prototype.geometryChangedAction=function(){this._envelope=null},Il.prototype.equalsNorm=function(t){return null!==t&&this.norm().equalsExact(t.norm())},Il.prototype.getLength=function(){return 0},Il.prototype.getNumGeometries=function(){return 1},Il.prototype.compareTo=function(){if(1===arguments.length){var t=arguments[0],e=t;return this.getSortIndex()!==e.getSortIndex()?this.getSortIndex()-e.getSortIndex():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(t)}if(2===arguments.length){var n=arguments[0],i=arguments[1];return this.getSortIndex()!==n.getSortIndex()?this.getSortIndex()-n.getSortIndex():this.isEmpty()&&n.isEmpty()?0:this.isEmpty()?-1:n.isEmpty()?1:this.compareToSameClass(n,i)}},Il.prototype.getUserData=function(){return this._userData},Il.prototype.getSRID=function(){return this._SRID},Il.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},Il.prototype.checkNotGeometryCollection=function(t){if(t.getSortIndex()===Il.SORTINDEX_GEOMETRYCOLLECTION)throw new Fs("This method does not support GeometryCollection arguments")},Il.prototype.equal=function(t,e,n){return 0===n?t.equals(e):t.distance(e)<=n},Il.prototype.norm=function(){var t=this.copy();return t.normalize(),t},Il.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},Il.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new pl(this._envelope)},Il.prototype.setSRID=function(t){this._SRID=t},Il.prototype.setUserData=function(t){this._userData=t},Il.prototype.compare=function(t,e){for(var n=t.iterator(),i=e.iterator();n.hasNext()&&i.hasNext();){var r=n.next(),o=i.next(),a=r.compareTo(o);if(0!==a)return a}return n.hasNext()?1:i.hasNext()?-1:0},Il.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},Il.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===Il.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===Il.SORTINDEX_MULTIPOINT||this.getSortIndex()===Il.SORTINDEX_MULTILINESTRING||this.getSortIndex()===Il.SORTINDEX_MULTIPOLYGON},Il.prototype.interfaces_=function(){return[qs,Vs,pr]},Il.prototype.getClass=function(){return Il},Il.hasNonEmptyElements=function(t){for(var e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1},Il.hasNullElements=function(t){for(var e=0;e<t.length;e++)if(null===t[e])return!0;return!1},Ll.serialVersionUID.get=function(){return 0x799ea46522854c00},Ll.SORTINDEX_POINT.get=function(){return 0},Ll.SORTINDEX_MULTIPOINT.get=function(){return 1},Ll.SORTINDEX_LINESTRING.get=function(){return 2},Ll.SORTINDEX_LINEARRING.get=function(){return 3},Ll.SORTINDEX_MULTILINESTRING.get=function(){return 4},Ll.SORTINDEX_POLYGON.get=function(){return 5},Ll.SORTINDEX_MULTIPOLYGON.get=function(){return 6},Ll.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},Ll.geometryChangedFilter.get=function(){return Rl},Object.defineProperties(Il,Ll);var Rl=function(){};Rl.interfaces_=function(){return[El]},Rl.filter=function(t){t.geometryChangedAction()};var Ol=function(){};Ol.prototype.filter=function(t){},Ol.prototype.interfaces_=function(){return[]},Ol.prototype.getClass=function(){return Ol};var Nl=function(){},kl={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};Nl.prototype.isInBoundary=function(t){},Nl.prototype.interfaces_=function(){return[]},Nl.prototype.getClass=function(){return Nl},kl.Mod2BoundaryNodeRule.get=function(){return zl},kl.EndPointBoundaryNodeRule.get=function(){return Dl},kl.MultiValentEndPointBoundaryNodeRule.get=function(){return Fl},kl.MonoValentEndPointBoundaryNodeRule.get=function(){return Gl},kl.MOD2_BOUNDARY_RULE.get=function(){return new zl},kl.ENDPOINT_BOUNDARY_RULE.get=function(){return new Dl},kl.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new Fl},kl.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new Gl},kl.OGC_SFS_BOUNDARY_RULE.get=function(){return Nl.MOD2_BOUNDARY_RULE},Object.defineProperties(Nl,kl);var zl=function(){};zl.prototype.isInBoundary=function(t){return t%2==1},zl.prototype.interfaces_=function(){return[Nl]},zl.prototype.getClass=function(){return zl};var Dl=function(){};Dl.prototype.isInBoundary=function(t){return 0<t},Dl.prototype.interfaces_=function(){return[Nl]},Dl.prototype.getClass=function(){return Dl};var Fl=function(){};Fl.prototype.isInBoundary=function(t){return 1<t},Fl.prototype.interfaces_=function(){return[Nl]},Fl.prototype.getClass=function(){return Fl};var Gl=function(){};Gl.prototype.isInBoundary=function(t){return 1===t},Gl.prototype.interfaces_=function(){return[Nl]},Gl.prototype.getClass=function(){return Gl};var jl=function(){};jl.prototype.add=function(){},jl.prototype.addAll=function(){},jl.prototype.isEmpty=function(){},jl.prototype.iterator=function(){},jl.prototype.size=function(){},jl.prototype.toArray=function(){},jl.prototype.remove=function(){};var Vl=function(e){function t(t){e.call(this),this.message=t||""}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={name:{configurable:!0}};return n.name.get=function(){return"IndexOutOfBoundsException"},Object.defineProperties(t,n),t}(Error),ql=function(){};ql.prototype.hasNext=function(){},ql.prototype.next=function(){},ql.prototype.remove=function(){};var Bl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(jl);(fr.prototype=new Error).name="NoSuchElementException";var Ul=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof jl&&this.addAll(arguments[0])}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[t,jl]},e.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},e.prototype.iterator=function(){return new Wl(this)},e.prototype.get=function(t){if(t<0||t>=this.size())throw new Vl;return this.array_[t]},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.remove=function(t){for(var e=!1,n=0,i=this.array_.length;n<i;n++)if(this.array_[n]===t){this.array_.splice(n,1),e=!0;break}return e},e}(Bl),Wl=function(e){function t(t){e.call(this),this.arrayList_=t,this.position_=0}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.next=function(){if(this.position_===this.arrayList_.size())throw new fr;return this.arrayList_.get(this.position_++)},t.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},t.prototype.set=function(t){return this.arrayList_.set(this.position_-1,t)},t.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},t}(ql),Zl=function(x){function t(){if(x.call(this),0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.ensureCapacity(e.length),this.add(e,n)}}x&&(t.__proto__=x),(t.prototype=Object.create(x&&x.prototype)).constructor=t;var e={coordArrayType:{configurable:!0}};return e.coordArrayType.get=function(){return new Array(0).fill(null)},t.prototype.getCoordinate=function(t){return this.get(t)},t.prototype.addAll=function(){if(2!==arguments.length)return x.prototype.addAll.apply(this,arguments);for(var t=arguments[0],e=arguments[1],n=!1,i=t.iterator();i.hasNext();)this.add(i.next(),e),n=!0;return n},t.prototype.clone=function(){for(var t=x.prototype.clone.call(this),e=0;e<this.size();e++)t.add(e,this.get(e).copy());return t},t.prototype.toCoordinateArray=function(){return this.toArray(t.coordArrayType)},t.prototype.add=function(){if(1===arguments.length){var t=arguments[0];x.prototype.add.call(this,t)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var e=arguments[0],n=arguments[1];return this.add(e,n,!0),!0}if(arguments[0]instanceof Us&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1]&&1<=this.size()&&this.get(this.size()-1).equals2D(i))return null;x.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var r=arguments[0],o=arguments[1];return this.add(r,o),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var a=arguments[0],s=arguments[1];if(arguments[2])for(var l=0;l<a.length;l++)this.add(a[l],s);else for(var u=a.length-1;0<=u;u--)this.add(a[u],s);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof Us){var h=arguments[0],c=arguments[1];if(!arguments[2]){var p=this.size();if(0<p){if(0<h&&this.get(h-1).equals2D(c))return null;if(h<p&&this.get(h).equals2D(c))return null}}x.prototype.add.call(this,h,c)}}else if(4===arguments.length){var f=arguments[0],d=arguments[1],y=arguments[2],m=arguments[3],g=1;m<y&&(g=-1);for(var v=y;v!==m;v+=g)this.add(f[v],d);return!0}},t.prototype.closeRing=function(){0<this.size()&&this.add(new Us(this.get(0)),!1)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},Object.defineProperties(t,e),t}(Ul),Xl=function(){},Hl={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};Hl.ForwardComparator.get=function(){return Yl},Hl.BidirectionalComparator.get=function(){return Kl},Hl.coordArrayType.get=function(){return new Array(0).fill(null)},Xl.prototype.interfaces_=function(){return[]},Xl.prototype.getClass=function(){return Xl},Xl.isRing=function(t){return!(t.length<4||!t[0].equals2D(t[t.length-1]))},Xl.ptNotInList=function(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(Xl.indexOf(i,e)<0)return i}return null},Xl.scroll=function(t,e){var n=Xl.indexOf(e,t);if(n<0)return null;var i=new Array(t.length).fill(null);hl.arraycopy(t,n,i,0,t.length-n),hl.arraycopy(t,0,i,t.length-n,n),hl.arraycopy(i,0,t,0,t.length)},Xl.equals=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(t===e)return!0;if(null===t||null===e)return!1;if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0}if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];if(i===r)return!0;if(null===i||null===r)return!1;if(i.length!==r.length)return!1;for(var a=0;a<i.length;a++)if(0!==o.compare(i[a],r[a]))return!1;return!0}},Xl.intersection=function(t,e){for(var n=new Zl,i=0;i<t.length;i++)e.intersects(t[i])&&n.add(t[i],!0);return n.toCoordinateArray()},Xl.hasRepeatedPoints=function(t){for(var e=1;e<t.length;e++)if(t[e-1].equals(t[e]))return!0;return!1},Xl.removeRepeatedPoints=function(t){return Xl.hasRepeatedPoints(t)?new Zl(t,!1).toCoordinateArray():t},Xl.reverse=function(t){for(var e=t.length-1,n=Math.trunc(e/2),i=0;i<=n;i++){var r=t[i];t[i]=t[e-i],t[e-i]=r}},Xl.removeNull=function(t){for(var e=0,n=0;n<t.length;n++)null!==t[n]&&e++;var i=new Array(e).fill(null);if(0===e)return i;for(var r=0,o=0;o<t.length;o++)null!==t[o]&&(i[r++]=t[o]);return i},Xl.copyDeep=function(){if(1===arguments.length){for(var t=arguments[0],e=new Array(t.length).fill(null),n=0;n<t.length;n++)e[n]=new Us(t[n]);return e}if(5===arguments.length)for(var i=arguments[0],r=arguments[1],o=arguments[2],a=arguments[3],s=arguments[4],l=0;l<s;l++)o[a+l]=new Us(i[r+l])},Xl.isEqualReversed=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[t.length-n-1];if(0!==i.compareTo(r))return!1}return!0},Xl.envelope=function(t){for(var e=new pl,n=0;n<t.length;n++)e.expandToInclude(t[n]);return e},Xl.toCoordinateArray=function(t){return t.toArray(Xl.coordArrayType)},Xl.atLeastNCoordinatesOrNothing=function(t,e){return e.length>=t?e:[]},Xl.indexOf=function(t,e){for(var n=0;n<e.length;n++)if(t.equals(e[n]))return n;return-1},Xl.increasingDirection=function(t){for(var e=0;e<Math.trunc(t.length/2);e++){var n=t.length-1-e,i=t[e].compareTo(t[n]);if(0!==i)return i}return 1},Xl.compare=function(t,e){for(var n=0;n<t.length&&n<e.length;){var i=t[n].compareTo(e[n]);if(0!==i)return i;n++}return n<e.length?-1:n<t.length?1:0},Xl.minCoordinate=function(t){for(var e=null,n=0;n<t.length;n++)(null===e||0<e.compareTo(t[n]))&&(e=t[n]);return e},Xl.extract=function(t,e,n){e=Js.clamp(e,0,t.length);var i=(n=Js.clamp(n,-1,t.length))-e+1;n<0&&(i=0),e>=t.length&&(i=0),n<e&&(i=0);var r=new Array(i).fill(null);if(0===i)return r;for(var o=0,a=e;a<=n;a++)r[o++]=t[a];return r},Object.defineProperties(Xl,Hl);var Yl=function(){};Yl.prototype.compare=function(t,e){return Xl.compare(t,e)},Yl.prototype.interfaces_=function(){return[Bs]},Yl.prototype.getClass=function(){return Yl};var Kl=function(){};Kl.prototype.compare=function(t,e){var n=t,i=e;if(n.length<i.length)return-1;if(n.length>i.length)return 1;if(0===n.length)return 0;var r=Xl.compare(n,i);return Xl.isEqualReversed(n,i)?0:r},Kl.prototype.OLDcompare=function(t,e){var n=t,i=e;if(n.length<i.length)return-1;if(n.length>i.length)return 1;if(0===n.length)return 0;for(var r=Xl.increasingDirection(n),o=Xl.increasingDirection(i),a=0<r?0:n.length-1,s=0<o?0:n.length-1,l=0;l<n.length;l++){var u=n[a].compareTo(i[s]);if(0!==u)return u;a+=r,s+=o}return 0},Kl.prototype.interfaces_=function(){return[Bs]},Kl.prototype.getClass=function(){return Kl};var Jl=function(){};Jl.prototype.get=function(){},Jl.prototype.put=function(){},Jl.prototype.size=function(){},Jl.prototype.values=function(){},Jl.prototype.entrySet=function(){};var Ql=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e}(Jl);(dr.prototype=new Error).name="OperationNotSupported",(yr.prototype=new jl).contains=function(){};var $l=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof jl&&this.addAll(arguments[0])}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(this.array_[e]===t)return!0;return!1},e.prototype.add=function(t){return!this.contains(t)&&(this.array_.push(t),!0)},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.remove=function(t){throw new Error},e.prototype.size=function(){return this.array_.length},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.iterator=function(){return new tu(this)},e}(yr),tu=function(e){function t(t){e.call(this),this.hashSet_=t,this.position_=0}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.next=function(){if(this.position_===this.hashSet_.size())throw new fr;return this.hashSet_.array_[this.position_++]},t.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},t.prototype.remove=function(){throw new dr},t}(ql),eu=0;(wr.prototype=new Ql).get=function(t){for(var e=this.root_;null!==e;){var n=t.compareTo(e.key);if(n<0)e=e.left;else{if(!(0<n))return e.value;e=e.right}}return null},wr.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:eu,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,i,r=this.root_;do{if(n=r,(i=t.compareTo(r.key))<0)r=r.left;else{if(!(0<i)){var o=r.value;return r.value=e,o}r=r.right}}while(null!==r);var a={key:t,left:null,right:null,value:e,parent:n,color:eu,getValue:function(){return this.value},getKey:function(){return this.key}};return i<0?n.left=a:n.right=a,this.fixAfterInsertion(a),this.size_++,null},wr.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)if(gr(t)===xr(gr(gr(t)))){var e=_r(gr(gr(t)));1===mr(e)?(vr(gr(t),eu),vr(e,eu),vr(gr(gr(t)),1),t=gr(gr(t))):(t===_r(gr(t))&&(t=gr(t),this.rotateLeft(t)),vr(gr(t),eu),vr(gr(gr(t)),1),this.rotateRight(gr(gr(t))))}else{var n=xr(gr(gr(t)));1===mr(n)?(vr(gr(t),eu),vr(n,eu),vr(gr(gr(t)),1),t=gr(gr(t))):(t===xr(gr(t))&&(t=gr(t),this.rotateRight(t)),vr(gr(t),eu),vr(gr(gr(t)),1),this.rotateLeft(gr(gr(t))))}this.root_.color=eu},wr.prototype.values=function(){var t=new Ul,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=wr.successor(e));)t.add(e.value);return t},wr.prototype.entrySet=function(){var t=new $l,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=wr.successor(e));)t.add(e);return t},wr.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,(e.left=t).parent=e}},wr.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,(e.right=t).parent=e}},wr.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},wr.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}for(var n=t.parent,i=t;null!==n&&i===n.right;)n=(i=n).parent;return n},wr.prototype.size=function(){return this.size_};var nu=function(){};nu.prototype.interfaces_=function(){return[]},nu.prototype.getClass=function(){return nu},br.prototype=new yr,(Pr.prototype=new br).contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(0===this.array_[e].compareTo(t))return!0;return!1},Pr.prototype.add=function(t){if(this.contains(t))return!1;for(var e=0,n=this.array_.length;e<n;e++)if(1===this.array_[e].compareTo(t))return this.array_.splice(e,0,t),!0;return this.array_.push(t),!0},Pr.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},Pr.prototype.remove=function(t){throw new dr},Pr.prototype.size=function(){return this.array_.length},Pr.prototype.isEmpty=function(){return 0===this.array_.length},Pr.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},Pr.prototype.iterator=function(){return new iu(this)};var iu=function(t){this.treeSet_=t,this.position_=0};iu.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new fr;return this.treeSet_.array_[this.position_++]},iu.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},iu.prototype.remove=function(){throw new dr};var ru=function(){};ru.sort=function(){var t,e,n,i,r=arguments[0];if(1===arguments.length)i=function(t,e){return t.compareTo(e)},r.sort(i);else if(2===arguments.length)n=arguments[1],i=function(t,e){return n.compare(t,e)},r.sort(i);else if(3===arguments.length){(e=r.slice(arguments[1],arguments[2])).sort();var o=r.slice(0,arguments[1]).concat(e,r.slice(arguments[2],r.length));for(r.splice(0,r.length),t=0;t<o.length;t++)r.push(o[t])}else if(4===arguments.length)for(e=r.slice(arguments[1],arguments[2]),n=arguments[3],i=function(t,e){return n.compare(t,e)},e.sort(i),o=r.slice(0,arguments[1]).concat(e,r.slice(arguments[2],r.length)),r.splice(0,r.length),t=0;t<o.length;t++)r.push(o[t])},ru.asList=function(t){for(var e=new Ul,n=0,i=t.length;n<i;n++)e.add(t[n]);return e};var ou=function(){},au={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};au.P.get=function(){return 0},au.L.get=function(){return 1},au.A.get=function(){return 2},au.FALSE.get=function(){return-1},au.TRUE.get=function(){return-2},au.DONTCARE.get=function(){return-3},au.SYM_FALSE.get=function(){return"F"},au.SYM_TRUE.get=function(){return"T"},au.SYM_DONTCARE.get=function(){return"*"},au.SYM_P.get=function(){return"0"},au.SYM_L.get=function(){return"1"},au.SYM_A.get=function(){return"2"},ou.prototype.interfaces_=function(){return[]},ou.prototype.getClass=function(){return ou},ou.toDimensionSymbol=function(t){switch(t){case ou.FALSE:return ou.SYM_FALSE;case ou.TRUE:return ou.SYM_TRUE;case ou.DONTCARE:return ou.SYM_DONTCARE;case ou.P:return ou.SYM_P;case ou.L:return ou.SYM_L;case ou.A:return ou.SYM_A}throw new Fs("Unknown dimension value: "+t)},ou.toDimensionValue=function(t){switch(el.toUpperCase(t)){case ou.SYM_FALSE:return ou.FALSE;case ou.SYM_TRUE:return ou.TRUE;case ou.SYM_DONTCARE:return ou.DONTCARE;case ou.SYM_P:return ou.P;case ou.SYM_L:return ou.L;case ou.SYM_A:return ou.A}throw new Fs("Unknown dimension symbol: "+t)},Object.defineProperties(ou,au);var su=function(){};su.prototype.filter=function(t){},su.prototype.interfaces_=function(){return[]},su.prototype.getClass=function(){return su};var lu=function(){};lu.prototype.filter=function(t,e){},lu.prototype.isDone=function(){},lu.prototype.isGeometryChanged=function(){},lu.prototype.interfaces_=function(){return[]},lu.prototype.getClass=function(){return lu};var uu=function(r){function n(t,e){if(r.call(this,e),this._geometries=t||[],r.hasNullElements(this._geometries))throw new Fs("geometries must not contain null elements")}r&&(n.__proto__=r),(n.prototype=Object.create(r&&r.prototype)).constructor=n;var t={serialVersionUID:{configurable:!0}};return n.prototype.computeEnvelopeInternal=function(){for(var t=new pl,e=0;e<this._geometries.length;e++)t.expandToInclude(this._geometries[e].getEnvelopeInternal());return t},n.prototype.getGeometryN=function(t){return this._geometries[t]},n.prototype.getSortIndex=function(){return r.SORTINDEX_GEOMETRYCOLLECTION},n.prototype.getCoordinates=function(){for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=0;n<this._geometries.length;n++)for(var i=this._geometries[n].getCoordinates(),r=0;r<i.length;r++)t[++e]=i[r];return t},n.prototype.getArea=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getArea();return t},n.prototype.equalsExact=function(){if(2!==arguments.length)return r.prototype.equalsExact.apply(this,arguments);var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t;if(this._geometries.length!==n._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(n._geometries[i],e))return!1;return!0},n.prototype.normalize=function(){for(var t=0;t<this._geometries.length;t++)this._geometries[t].normalize();ru.sort(this._geometries)},n.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},n.prototype.getBoundaryDimension=function(){for(var t=ou.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getBoundaryDimension());return t},n.prototype.getDimension=function(){for(var t=ou.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getDimension());return t},n.prototype.getLength=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getLength();return t},n.prototype.getNumPoints=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getNumPoints();return t},n.prototype.getNumGeometries=function(){return this._geometries.length},n.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(e)},n.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=new Pr(ru.asList(this._geometries)),n=new Pr(ru.asList(t._geometries));return this.compare(e,n)}if(2===arguments.length){for(var i=arguments[0],r=arguments[1],o=i,a=this.getNumGeometries(),s=o.getNumGeometries(),l=0;l<a&&l<s;){var u=this.getGeometryN(l),h=o.getGeometryN(l),c=u.compareToSameClass(h,r);if(0!==c)return c;l++}return l<a?1:l<s?-1:0}},n.prototype.apply=function(){if(Ks(arguments[0],Ol))for(var t=arguments[0],e=0;e<this._geometries.length;e++)this._geometries[e].apply(t);else if(Ks(arguments[0],lu)){var n=arguments[0];if(0===this._geometries.length)return null;for(var i=0;i<this._geometries.length&&(this._geometries[i].apply(n),!n.isDone());i++);n.isGeometryChanged()&&this.geometryChanged()}else if(Ks(arguments[0],su)){var r=arguments[0];r.filter(this);for(var o=0;o<this._geometries.length;o++)this._geometries[o].apply(r)}else if(Ks(arguments[0],El)){var a=arguments[0];a.filter(this);for(var s=0;s<this._geometries.length;s++)this._geometries[s].apply(a)}},n.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),wl.shouldNeverReachHere(),null},n.prototype.clone=function(){var t=r.prototype.clone.call(this);t._geometries=new Array(this._geometries.length).fill(null);for(var e=0;e<this._geometries.length;e++)t._geometries[e]=this._geometries[e].clone();return t},n.prototype.getGeometryType=function(){return"GeometryCollection"},n.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),e=0;e<t.length;e++)t[e]=this._geometries[e].copy();return new n(t,this._factory)},n.prototype.isEmpty=function(){for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isEmpty())return!1;return!0},n.prototype.interfaces_=function(){return[]},n.prototype.getClass=function(){return n},t.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(n,t),n}(Il),hu=function(n){function i(){n.apply(this,arguments)}n&&(i.__proto__=n),(i.prototype=Object.create(n&&n.prototype)).constructor=i;var t={serialVersionUID:{configurable:!0}};return i.prototype.getSortIndex=function(){return Il.SORTINDEX_MULTILINESTRING},i.prototype.equalsExact=function(){if(2!==arguments.length)return n.prototype.equalsExact.apply(this,arguments);var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&n.prototype.equalsExact.call(this,t,e)},i.prototype.getBoundaryDimension=function(){return this.isClosed()?ou.FALSE:0},i.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isClosed())return!1;return!0},i.prototype.getDimension=function(){return 1},i.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[t-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(e)},i.prototype.getBoundary=function(){return new cu(this).getBoundary()},i.prototype.getGeometryType=function(){return"MultiLineString"},i.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),e=0;e<t.length;e++)t[e]=this._geometries[e].copy();return new i(t,this._factory)},i.prototype.interfaces_=function(){return[nu]},i.prototype.getClass=function(){return i},t.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(i,t),i}(uu),cu=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var t=arguments[0],e=Nl.MOD2_BOUNDARY_RULE;this._geom=t,this._geomFact=t.getFactory(),this._bnRule=e}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this._geom=n,this._geomFact=n.getFactory(),this._bnRule=i}};cu.prototype.boundaryMultiLineString=function(t){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var e=this.computeBoundaryCoordinates(t);return 1===e.length?this._geomFact.createPoint(e[0]):this._geomFact.createMultiPointFromCoords(e)},cu.prototype.getBoundary=function(){return this._geom instanceof mu?this.boundaryLineString(this._geom):this._geom instanceof hu?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},cu.prototype.boundaryLineString=function(t){return this._geom.isEmpty()?this.getEmptyMultiPoint():t.isClosed()?this._bnRule.isInBoundary(2)?t.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([t.getStartPoint(),t.getEndPoint()])},cu.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},cu.prototype.computeBoundaryCoordinates=function(t){var e=new Ul;this._endpointMap=new wr;for(var n=0;n<t.getNumGeometries();n++){var i=t.getGeometryN(n);0!==i.getNumPoints()&&(this.addEndpoint(i.getCoordinateN(0)),this.addEndpoint(i.getCoordinateN(i.getNumPoints()-1)))}for(var r=this._endpointMap.entrySet().iterator();r.hasNext();){var o=r.next(),a=o.getValue().count;this._bnRule.isInBoundary(a)&&e.add(o.getKey())}return Xl.toCoordinateArray(e)},cu.prototype.addEndpoint=function(t){var e=this._endpointMap.get(t);null===e&&(e=new pu,this._endpointMap.put(t,e)),e.count++},cu.prototype.interfaces_=function(){return[]},cu.prototype.getClass=function(){return cu},cu.getBoundary=function(){if(1===arguments.length){var t=arguments[0];return new cu(t).getBoundary()}if(2===arguments.length){var e=arguments[0],n=arguments[1];return new cu(e,n).getBoundary()}};var pu=function(){this.count=null};pu.prototype.interfaces_=function(){return[]},pu.prototype.getClass=function(){return pu};var fu=function(){},du={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};fu.prototype.interfaces_=function(){return[]},fu.prototype.getClass=function(){return fu},fu.chars=function(t,e){for(var n=new Array(e).fill(null),i=0;i<e;i++)n[i]=t;return String(n)},fu.getStackTrace=function(){if(1===arguments.length){var t=arguments[0],e=new function(){},n=new function(){}(e);return t.printStackTrace(n),e.toString()}if(2===arguments.length){for(var i=arguments[0],r=arguments[1],o="",a=new function(){}(new function(){}(fu.getStackTrace(i))),s=0;s<r;s++)try{o+=a.readLine()+fu.NEWLINE}catch(t){if(!(t instanceof Sr))throw t;wl.shouldNeverReachHere()}return o}},fu.split=function(t,e){for(var n=e.length,i=new Ul,r=""+t,o=r.indexOf(e);0<=o;){var a=r.substring(0,o);i.add(a),o=(r=r.substring(o+n)).indexOf(e)}0<r.length&&i.add(r);for(var s=new Array(i.size()).fill(null),l=0;l<s.length;l++)s[l]=i.get(l);return s},fu.toString=function(){if(1===arguments.length){var t=arguments[0];return fu.SIMPLE_ORDINATE_FORMAT.format(t)}},fu.spaces=function(t){return fu.chars(" ",t)},du.NEWLINE.get=function(){return hl.getProperty("line.separator")},du.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(fu,du);var yu=function(){};yu.prototype.interfaces_=function(){return[]},yu.prototype.getClass=function(){return yu},yu.copyCoord=function(t,e,n,i){for(var r=Math.min(t.getDimension(),n.getDimension()),o=0;o<r;o++)n.setOrdinate(i,o,t.getOrdinate(e,o))},yu.isRing=function(t){var e=t.size();return 0===e||!(e<=3)&&t.getOrdinate(0,al.X)===t.getOrdinate(e-1,al.X)&&t.getOrdinate(0,al.Y)===t.getOrdinate(e-1,al.Y)},yu.isEqual=function(t,e){var n=t.size();if(n!==e.size())return!1;for(var i=Math.min(t.getDimension(),e.getDimension()),r=0;r<n;r++)for(var o=0;o<i;o++){var a=t.getOrdinate(r,o),s=e.getOrdinate(r,o);if(!(t.getOrdinate(r,o)===e.getOrdinate(r,o)||Gs.isNaN(a)&&Gs.isNaN(s)))return!1}return!0},yu.extend=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();if(yu.copy(e,0,i,0,r),0<r)for(var o=r;o<n;o++)yu.copy(e,r-1,i,o,1);return i},yu.reverse=function(t){for(var e=t.size()-1,n=Math.trunc(e/2),i=0;i<=n;i++)yu.swap(t,i,e-i)},yu.swap=function(t,e,n){if(e===n)return null;for(var i=0;i<t.getDimension();i++){var r=t.getOrdinate(e,i);t.setOrdinate(e,i,t.getOrdinate(n,i)),t.setOrdinate(n,i,r)}},yu.copy=function(t,e,n,i,r){for(var o=0;o<r;o++)yu.copyCoord(t,e+o,n,i+o)},yu.toString=function(){if(1===arguments.length){var t=arguments[0],e=t.size();if(0===e)return"()";var n=t.getDimension(),i=new $s;i.append("(");for(var r=0;r<e;r++){0<r&&i.append(" ");for(var o=0;o<n;o++)0<o&&i.append(","),i.append(fu.toString(t.getOrdinate(r,o)))}return i.append(")"),i.toString()}},yu.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?yu.createClosedRing(t,e,4):e.getOrdinate(0,al.X)===e.getOrdinate(n-1,al.X)&&e.getOrdinate(0,al.Y)===e.getOrdinate(n-1,al.Y)?e:yu.createClosedRing(t,e,n+1)},yu.createClosedRing=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();yu.copy(e,0,i,0,r);for(var o=r;o<n;o++)yu.copy(e,0,i,o,1);return i};var mu=function(r){function e(t,e){r.call(this,e),this._points=null,this.init(t)}r&&(e.__proto__=r),(e.prototype=Object.create(r&&r.prototype)).constructor=e;var t={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new pl:this._points.expandEnvelope(new pl)},e.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},e.prototype.getSortIndex=function(){return r.SORTINDEX_LINESTRING},e.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},e.prototype.equalsExact=function(){if(2!==arguments.length)return r.prototype.equalsExact.apply(this,arguments);var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t;if(this._points.size()!==n._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),n._points.getCoordinate(i),e))return!1;return!0},e.prototype.normalize=function(){for(var t=0;t<Math.trunc(this._points.size()/2);t++){var e=this._points.size()-1-t;if(!this._points.getCoordinate(t).equals(this._points.getCoordinate(e)))return 0<this._points.getCoordinate(t).compareTo(this._points.getCoordinate(e))&&yu.reverse(this._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?ou.FALSE:0},e.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return Tl.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var t=this._points.copy();return yu.reverse(t),this.getFactory().createLineString(t)},e.prototype.compareToSameClass=function(){if(1===arguments.length){for(var t=arguments[0],e=0,n=0;e<this._points.size()&&n<t._points.size();){var i=this._points.getCoordinate(e).compareTo(t._points.getCoordinate(n));if(0!==i)return i;e++,n++}return e<this._points.size()?1:n<t._points.size()?-1:0}if(2===arguments.length){var r=arguments[0];return arguments[1].compare(this._points,r._points)}},e.prototype.apply=function(){if(Ks(arguments[0],Ol))for(var t=arguments[0],e=0;e<this._points.size();e++)t.filter(this._points.getCoordinate(e));else if(Ks(arguments[0],lu)){var n=arguments[0];if(0===this._points.size())return null;for(var i=0;i<this._points.size()&&(n.filter(this._points,i),!n.isDone());i++);n.isGeometryChanged()&&this.geometryChanged()}else Ks(arguments[0],su)?arguments[0].filter(this):Ks(arguments[0],El)&&arguments[0].filter(this)},e.prototype.getBoundary=function(){return new cu(this).getBoundary()},e.prototype.isEquivalentClass=function(t){return t instanceof e},e.prototype.clone=function(){var t=r.prototype.clone.call(this);return t._points=this._points.clone(),t},e.prototype.getCoordinateN=function(t){return this._points.getCoordinate(t)},e.prototype.getGeometryType=function(){return"LineString"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._points},e.prototype.isEmpty=function(){return 0===this._points.size()},e.prototype.init=function(t){if(null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),1===t.size())throw new Fs("Invalid number of points in LineString (found "+t.size()+" - must be 0 or >= 2)");this._points=t},e.prototype.isCoordinate=function(t){for(var e=0;e<this._points.size();e++)if(this._points.getCoordinate(e).equals(t))return!0;return!1},e.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},e.prototype.getPointN=function(t){return this.getFactory().createPoint(this._points.getCoordinate(t))},e.prototype.interfaces_=function(){return[nu]},e.prototype.getClass=function(){return e},t.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(e,t),e}(Il),gu=function(){};gu.prototype.interfaces_=function(){return[]},gu.prototype.getClass=function(){return gu};var vu=function(n){function t(t,e){n.call(this,e),this._coordinates=t||null,this.init(this._coordinates)}n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t;var e={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new pl;var t=new pl;return t.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),t},t.prototype.getSortIndex=function(){return n.SORTINDEX_POINT},t.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},t.prototype.equalsExact=function(){if(2!==arguments.length)return n.prototype.equalsExact.apply(this,arguments);var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&(!(!this.isEmpty()||!t.isEmpty())||this.isEmpty()===t.isEmpty()&&this.equal(t.getCoordinate(),this.getCoordinate(),e))},t.prototype.normalize=function(){},t.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},t.prototype.getBoundaryDimension=function(){return ou.FALSE},t.prototype.getDimension=function(){return 0},t.prototype.getNumPoints=function(){return this.isEmpty()?0:1},t.prototype.reverse=function(){return this.copy()},t.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},t.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0];return this.getCoordinate().compareTo(t.getCoordinate())}if(2===arguments.length){var e=arguments[0];return arguments[1].compare(this._coordinates,e._coordinates)}},t.prototype.apply=function(){if(Ks(arguments[0],Ol)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this.getCoordinate())}else if(Ks(arguments[0],lu)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this._coordinates,0),e.isGeometryChanged()&&this.geometryChanged()}else Ks(arguments[0],su)?arguments[0].filter(this):Ks(arguments[0],El)&&arguments[0].filter(this)},t.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t._coordinates=this._coordinates.clone(),t},t.prototype.getGeometryType=function(){return"Point"},t.prototype.copy=function(){return new t(this._coordinates.copy(),this._factory)},t.prototype.getCoordinateSequence=function(){return this._coordinates},t.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},t.prototype.isEmpty=function(){return 0===this._coordinates.size()},t.prototype.init=function(t){null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),wl.isTrue(t.size()<=1),this._coordinates=t},t.prototype.isSimple=function(){return!0},t.prototype.interfaces_=function(){return[gu]},t.prototype.getClass=function(){return t},e.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(t,e),t}(Il),xu=function(){};xu.prototype.interfaces_=function(){return[]},xu.prototype.getClass=function(){return xu};var _u=function(a){function i(t,e,n){if(a.call(this,n),this._shell=null,(this._holes=null)===t&&(t=this.getFactory().createLinearRing()),null===e&&(e=[]),a.hasNullElements(e))throw new Fs("holes must not contain null elements");if(t.isEmpty()&&a.hasNonEmptyElements(e))throw new Fs("shell is empty but holes are not");this._shell=t,this._holes=e}a&&(i.__proto__=a),(i.prototype=Object.create(a&&a.prototype)).constructor=i;var t={serialVersionUID:{configurable:!0}};return i.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},i.prototype.getSortIndex=function(){return a.SORTINDEX_POLYGON},i.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=this._shell.getCoordinates(),i=0;i<n.length;i++)t[++e]=n[i];for(var r=0;r<this._holes.length;r++)for(var o=this._holes[r].getCoordinates(),a=0;a<o.length;a++)t[++e]=o[a];return t},i.prototype.getArea=function(){var t=0;t+=Math.abs(Tl.signedArea(this._shell.getCoordinateSequence()));for(var e=0;e<this._holes.length;e++)t-=Math.abs(Tl.signedArea(this._holes[e].getCoordinateSequence()));return t},i.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var t=this._shell.getCoordinateSequence(),e=this.getEnvelopeInternal(),n=0;n<5;n++){var i=t.getX(n);if(i!==e.getMinX()&&i!==e.getMaxX())return!1;var r=t.getY(n);if(r!==e.getMinY()&&r!==e.getMaxY())return!1}for(var o=t.getX(0),a=t.getY(0),s=1;s<=4;s++){var l=t.getX(s),u=t.getY(s);if(l!==o==(u!==a))return!1;o=l,a=u}return!0},i.prototype.equalsExact=function(){if(2!==arguments.length)return a.prototype.equalsExact.apply(this,arguments);var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t,i=this._shell,r=n._shell;if(!i.equalsExact(r,e))return!1;if(this._holes.length!==n._holes.length)return!1;for(var o=0;o<this._holes.length;o++)if(!this._holes[o].equalsExact(n._holes[o],e))return!1;return!0},i.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var t=0;t<this._holes.length;t++)this.normalize(this._holes[t],!1);ru.sort(this._holes)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(e.isEmpty())return null;var i=new Array(e.getCoordinates().length-1).fill(null);hl.arraycopy(e.getCoordinates(),0,i,0,i.length);var r=Xl.minCoordinate(e.getCoordinates());Xl.scroll(i,r),hl.arraycopy(i,0,e.getCoordinates(),0,i.length),e.getCoordinates()[i.length]=i[0],Tl.isCCW(e.getCoordinates())===n&&Xl.reverse(e.getCoordinates())}},i.prototype.getCoordinate=function(){return this._shell.getCoordinate()},i.prototype.getNumInteriorRing=function(){return this._holes.length},i.prototype.getBoundaryDimension=function(){return 1},i.prototype.getDimension=function(){return 2},i.prototype.getLength=function(){var t=0;t+=this._shell.getLength();for(var e=0;e<this._holes.length;e++)t+=this._holes[e].getLength();return t},i.prototype.getNumPoints=function(){for(var t=this._shell.getNumPoints(),e=0;e<this._holes.length;e++)t+=this._holes[e].getNumPoints();return t},i.prototype.reverse=function(){var t=this.copy();t._shell=this._shell.copy().reverse(),t._holes=new Array(this._holes.length).fill(null);for(var e=0;e<this._holes.length;e++)t._holes[e]=this._holes[e].copy().reverse();return t},i.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},i.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=this._shell,n=t._shell;return e.compareToSameClass(n)}if(2===arguments.length){var i=arguments[0],r=arguments[1],o=i,a=this._shell,s=o._shell,l=a.compareToSameClass(s,r);if(0!==l)return l;for(var u=this.getNumInteriorRing(),h=o.getNumInteriorRing(),c=0;c<u&&c<h;){var p=this.getInteriorRingN(c),f=o.getInteriorRingN(c),d=p.compareToSameClass(f,r);if(0!==d)return d;c++}return c<u?1:c<h?-1:0}},i.prototype.apply=function(t){if(Ks(t,Ol)){this._shell.apply(t);for(var e=0;e<this._holes.length;e++)this._holes[e].apply(t)}else if(Ks(t,lu)){if(this._shell.apply(t),!t.isDone())for(var n=0;n<this._holes.length&&(this._holes[n].apply(t),!t.isDone());n++);t.isGeometryChanged()&&this.geometryChanged()}else if(Ks(t,su))t.filter(this);else if(Ks(t,El)){t.filter(this),this._shell.apply(t);for(var i=0;i<this._holes.length;i++)this._holes[i].apply(t)}},i.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var t=new Array(this._holes.length+1).fill(null);t[0]=this._shell;for(var e=0;e<this._holes.length;e++)t[e+1]=this._holes[e];return t.length<=1?this.getFactory().createLinearRing(t[0].getCoordinateSequence()):this.getFactory().createMultiLineString(t)},i.prototype.clone=function(){var t=a.prototype.clone.call(this);t._shell=this._shell.clone(),t._holes=new Array(this._holes.length).fill(null);for(var e=0;e<this._holes.length;e++)t._holes[e]=this._holes[e].clone();return t},i.prototype.getGeometryType=function(){return"Polygon"},i.prototype.copy=function(){for(var t=this._shell.copy(),e=new Array(this._holes.length).fill(null),n=0;n<e.length;n++)e[n]=this._holes[n].copy();return new i(t,e,this._factory)},i.prototype.getExteriorRing=function(){return this._shell},i.prototype.isEmpty=function(){return this._shell.isEmpty()},i.prototype.getInteriorRingN=function(t){return this._holes[t]},i.prototype.interfaces_=function(){return[xu]},i.prototype.getClass=function(){return i},t.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(i,t),i}(Il),wu=function(n){function i(){n.apply(this,arguments)}n&&(i.__proto__=n),(i.prototype=Object.create(n&&n.prototype)).constructor=i;var t={serialVersionUID:{configurable:!0}};return i.prototype.getSortIndex=function(){return Il.SORTINDEX_MULTIPOINT},i.prototype.isValid=function(){return!0},i.prototype.equalsExact=function(){if(2!==arguments.length)return n.prototype.equalsExact.apply(this,arguments);var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&n.prototype.equalsExact.call(this,t,e)},i.prototype.getCoordinate=function(){if(1!==arguments.length)return n.prototype.getCoordinate.apply(this,arguments);var t=arguments[0];return this._geometries[t].getCoordinate()},i.prototype.getBoundaryDimension=function(){return ou.FALSE},i.prototype.getDimension=function(){return 0},i.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},i.prototype.getGeometryType=function(){return"MultiPoint"},i.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),e=0;e<t.length;e++)t[e]=this._geometries[e].copy();return new i(t,this._factory)},i.prototype.interfaces_=function(){return[gu]},i.prototype.getClass=function(){return i},t.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(i,t),i}(uu),bu=function(n){function t(t,e){t instanceof Us&&e instanceof Fu&&(t=e.getCoordinateSequenceFactory().create(t)),n.call(this,t,e),this.validateConstruction()}n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t;var e={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return Il.SORTINDEX_LINEARRING},t.prototype.getBoundaryDimension=function(){return ou.FALSE},t.prototype.isClosed=function(){return!!this.isEmpty()||n.prototype.isClosed.call(this)},t.prototype.reverse=function(){var t=this._points.copy();return yu.reverse(t),this.getFactory().createLinearRing(t)},t.prototype.validateConstruction=function(){if(!this.isEmpty()&&!n.prototype.isClosed.call(this))throw new Fs("Points of LinearRing do not form a closed linestring");if(1<=this.getCoordinateSequence().size()&&this.getCoordinateSequence().size()<t.MINIMUM_VALID_SIZE)throw new Fs("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},t.prototype.getGeometryType=function(){return"LinearRing"},t.prototype.copy=function(){return new t(this._points.copy(),this._factory)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},e.MINIMUM_VALID_SIZE.get=function(){return 4},e.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(t,e),t}(mu),Pu=function(n){function i(){n.apply(this,arguments)}n&&(i.__proto__=n),(i.prototype=Object.create(n&&n.prototype)).constructor=i;var t={serialVersionUID:{configurable:!0}};return i.prototype.getSortIndex=function(){return Il.SORTINDEX_MULTIPOLYGON},i.prototype.equalsExact=function(){if(2!==arguments.length)return n.prototype.equalsExact.apply(this,arguments);var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&n.prototype.equalsExact.call(this,t,e)},i.prototype.getBoundaryDimension=function(){return 1},i.prototype.getDimension=function(){return 2},i.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(e)},i.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var t=new Ul,e=0;e<this._geometries.length;e++)for(var n=this._geometries[e].getBoundary(),i=0;i<n.getNumGeometries();i++)t.add(n.getGeometryN(i));var r=new Array(t.size()).fill(null);return this.getFactory().createMultiLineString(t.toArray(r))},i.prototype.getGeometryType=function(){return"MultiPolygon"},i.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),e=0;e<t.length;e++)t[e]=this._geometries[e].copy();return new i(t,this._factory)},i.prototype.interfaces_=function(){return[xu]},i.prototype.getClass=function(){return i},t.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(i,t),i}(uu),Su=function(t){this._factory=t||null,this._isUserDataCopied=!1},Cu={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};Su.prototype.setCopyUserData=function(t){this._isUserDataCopied=t},Su.prototype.edit=function(t,e){if(null===t)return null;var n=this.editInternal(t,e);return this._isUserDataCopied&&n.setUserData(t.getUserData()),n},Su.prototype.editInternal=function(t,e){return null===this._factory&&(this._factory=t.getFactory()),t instanceof uu?this.editGeometryCollection(t,e):t instanceof _u?this.editPolygon(t,e):t instanceof vu?e.edit(t,this._factory):t instanceof mu?e.edit(t,this._factory):(wl.shouldNeverReachHere("Unsupported Geometry class: "+t.getClass().getName()),null)},Su.prototype.editGeometryCollection=function(t,e){for(var n=e.edit(t,this._factory),i=new Ul,r=0;r<n.getNumGeometries();r++){var o=this.edit(n.getGeometryN(r),e);null===o||o.isEmpty()||i.add(o)}return n.getClass()===wu?this._factory.createMultiPoint(i.toArray([])):n.getClass()===hu?this._factory.createMultiLineString(i.toArray([])):n.getClass()===Pu?this._factory.createMultiPolygon(i.toArray([])):this._factory.createGeometryCollection(i.toArray([]))},Su.prototype.editPolygon=function(t,e){var n=e.edit(t,this._factory);if(null===n&&(n=this._factory.createPolygon(null)),n.isEmpty())return n;var i=this.edit(n.getExteriorRing(),e);if(null===i||i.isEmpty())return this._factory.createPolygon();for(var r=new Ul,o=0;o<n.getNumInteriorRing();o++){var a=this.edit(n.getInteriorRingN(o),e);null===a||a.isEmpty()||r.add(a)}return this._factory.createPolygon(i,r.toArray([]))},Su.prototype.interfaces_=function(){return[]},Su.prototype.getClass=function(){return Su},Su.GeometryEditorOperation=function(){},Cu.NoOpGeometryOperation.get=function(){return Mu},Cu.CoordinateOperation.get=function(){return Tu},Cu.CoordinateSequenceOperation.get=function(){return Au},Object.defineProperties(Su,Cu);var Mu=function(){};Mu.prototype.edit=function(t,e){return t},Mu.prototype.interfaces_=function(){return[Su.GeometryEditorOperation]},Mu.prototype.getClass=function(){return Mu};var Tu=function(){};Tu.prototype.edit=function(t,e){var n=this.editCoordinates(t.getCoordinates(),t);return null===n?t:t instanceof bu?e.createLinearRing(n):t instanceof mu?e.createLineString(n):t instanceof vu?0<n.length?e.createPoint(n[0]):e.createPoint():t},Tu.prototype.interfaces_=function(){return[Su.GeometryEditorOperation]},Tu.prototype.getClass=function(){return Tu};var Au=function(){};Au.prototype.edit=function(t,e){return t instanceof bu?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof mu?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof vu?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},Au.prototype.interfaces_=function(){return[Su.GeometryEditorOperation]},Au.prototype.getClass=function(){return Au};var Eu=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var t=arguments[0];this._coordinates=new Array(t).fill(null);for(var e=0;e<t;e++)this._coordinates[e]=new Us}else if(Ks(arguments[0],al)){var n=arguments[0];if(null===n)return this._coordinates=new Array(0).fill(null),null;this._dimension=n.getDimension(),this._coordinates=new Array(n.size()).fill(null);for(var i=0;i<this._coordinates.length;i++)this._coordinates[i]=n.getCoordinateCopy(i)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var r=arguments[0],o=arguments[1];this._coordinates=r,this._dimension=o,null===r&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var a=arguments[0],s=arguments[1];this._coordinates=new Array(a).fill(null),this._dimension=s;for(var l=0;l<a;l++)this._coordinates[l]=new Us}},Iu={serialVersionUID:{configurable:!0}};Eu.prototype.setOrdinate=function(t,e,n){switch(e){case al.X:this._coordinates[t].x=n;break;case al.Y:this._coordinates[t].y=n;break;case al.Z:this._coordinates[t].z=n;break;default:throw new Fs("invalid ordinateIndex")}},Eu.prototype.size=function(){return this._coordinates.length},Eu.prototype.getOrdinate=function(t,e){switch(e){case al.X:return this._coordinates[t].x;case al.Y:return this._coordinates[t].y;case al.Z:return this._coordinates[t].z}return Gs.NaN},Eu.prototype.getCoordinate=function(){if(1===arguments.length){var t=arguments[0];return this._coordinates[t]}if(2===arguments.length){var e=arguments[0],n=arguments[1];n.x=this._coordinates[e].x,n.y=this._coordinates[e].y,n.z=this._coordinates[e].z}},Eu.prototype.getCoordinateCopy=function(t){return new Us(this._coordinates[t])},Eu.prototype.getDimension=function(){return this._dimension},Eu.prototype.getX=function(t){return this._coordinates[t].x},Eu.prototype.clone=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].clone();return new Eu(t,this._dimension)},Eu.prototype.expandEnvelope=function(t){for(var e=0;e<this._coordinates.length;e++)t.expandToInclude(this._coordinates[e]);return t},Eu.prototype.copy=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].copy();return new Eu(t,this._dimension)},Eu.prototype.toString=function(){if(0<this._coordinates.length){var t=new $s(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e<this._coordinates.length;e++)t.append(", "),t.append(this._coordinates[e]);return t.append(")"),t.toString()}return"()"},Eu.prototype.getY=function(t){return this._coordinates[t].y},Eu.prototype.toCoordinateArray=function(){return this._coordinates},Eu.prototype.interfaces_=function(){return[al,pr]},Eu.prototype.getClass=function(){return Eu},Iu.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(Eu,Iu);var Lu=function(){},Ru={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};Lu.prototype.readResolve=function(){return Lu.instance()},Lu.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new Eu(t)}if(Ks(arguments[0],al)){var e=arguments[0];return new Eu(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return 3<i&&(i=3),i<2?new Eu(n):new Eu(n,i)}},Lu.prototype.interfaces_=function(){return[Xs,pr]},Lu.prototype.getClass=function(){return Lu},Lu.instance=function(){return Lu.instanceObject},Ru.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},Ru.instanceObject.get=function(){return new Lu},Object.defineProperties(Lu,Ru);var Ou=function(t){function e(){t.call(this),this.map_=new Map}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.get=function(t){return this.map_.get(t)||null},e.prototype.put=function(t,e){return this.map_.set(t,e),e},e.prototype.values=function(){for(var t=new Ul,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},e.prototype.entrySet=function(){var e=new $l;return this.map_.entries().forEach(function(t){return e.add(t)}),e},e.prototype.size=function(){return this.map_.size()},e}(Jl),Nu=function t(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=t.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof zu){var e=arguments[0];(this._modelType=e)===t.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=t.FIXED,this.setScale(n)}else if(arguments[0]instanceof t){var i=arguments[0];this._modelType=i._modelType,this._scale=i._scale}},ku={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};Nu.prototype.equals=function(t){if(!(t instanceof Nu))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},Nu.prototype.compareTo=function(t){var e=t,n=this.getMaximumSignificantDigits(),i=e.getMaximumSignificantDigits();return new tl(n).compareTo(new tl(i))},Nu.prototype.getScale=function(){return this._scale},Nu.prototype.isFloating=function(){return this._modelType===Nu.FLOATING||this._modelType===Nu.FLOATING_SINGLE},Nu.prototype.getType=function(){return this._modelType},Nu.prototype.toString=function(){var t="UNKNOWN";return this._modelType===Nu.FLOATING?t="Floating":this._modelType===Nu.FLOATING_SINGLE?t="Floating-Single":this._modelType===Nu.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},Nu.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var t=arguments[0];return Gs.isNaN(t)?t:this._modelType===Nu.FLOATING_SINGLE?t:this._modelType===Nu.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof Us){var e=arguments[0];if(this._modelType===Nu.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},Nu.prototype.getMaximumSignificantDigits=function(){var t=16;return this._modelType===Nu.FLOATING?t=16:this._modelType===Nu.FLOATING_SINGLE?t=6:this._modelType===Nu.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},Nu.prototype.setScale=function(t){this._scale=Math.abs(t)},Nu.prototype.interfaces_=function(){return[pr,Vs]},Nu.prototype.getClass=function(){return Nu},Nu.mostPrecise=function(t,e){return 0<=t.compareTo(e)?t:e},ku.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},ku.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(Nu,ku);var zu=function t(e){this._name=e||null,t.nameToTypeMap.put(e,this)},Du={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};zu.prototype.readResolve=function(){return zu.nameToTypeMap.get(this._name)},zu.prototype.toString=function(){return this._name},zu.prototype.interfaces_=function(){return[pr]},zu.prototype.getClass=function(){return zu},Du.serialVersionUID.get=function(){return-552860263173159e4},Du.nameToTypeMap.get=function(){return new Ou},Object.defineProperties(zu,Du),Nu.Type=zu,Nu.FIXED=new zu("FIXED"),Nu.FLOATING=new zu("FLOATING"),Nu.FLOATING_SINGLE=new zu("FLOATING SINGLE");var Fu=function t(){this._precisionModel=new Nu,this._SRID=0,this._coordinateSequenceFactory=t.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?Ks(arguments[0],Xs)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof Nu&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},Gu={serialVersionUID:{configurable:!0}};Fu.prototype.toGeometry=function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new Us(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new Us(t.getMinX(),t.getMinY()),new Us(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new Us(t.getMinX(),t.getMinY()),new Us(t.getMinX(),t.getMaxY()),new Us(t.getMaxX(),t.getMaxY()),new Us(t.getMaxX(),t.getMinY()),new Us(t.getMinX(),t.getMinY())]),null)},Fu.prototype.createLineString=function(t){return t?t instanceof Array?new mu(this.getCoordinateSequenceFactory().create(t),this):Ks(t,al)?new mu(t,this):void 0:new mu(this.getCoordinateSequenceFactory().create([]),this)},Fu.prototype.createMultiLineString=function(){if(0===arguments.length)return new hu(null,this);if(1===arguments.length){var t=arguments[0];return new hu(t,this)}},Fu.prototype.buildGeometry=function(t){for(var e=null,n=!1,i=!1,r=t.iterator();r.hasNext();){var o=r.next(),a=o.getClass();null===e&&(e=a),a!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(i=!0)}if(null===e)return this.createGeometryCollection();if(n||i)return this.createGeometryCollection(Fu.toGeometryArray(t));var s=t.iterator().next();if(1<t.size()){if(s instanceof _u)return this.createMultiPolygon(Fu.toPolygonArray(t));if(s instanceof mu)return this.createMultiLineString(Fu.toLineStringArray(t));if(s instanceof vu)return this.createMultiPoint(Fu.toPointArray(t));wl.shouldNeverReachHere("Unhandled class: "+s.getClass().getName())}return s},Fu.prototype.createMultiPointFromCoords=function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},Fu.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Us){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(Ks(arguments[0],al)){var e=arguments[0];return new vu(e,this)}}},Fu.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},Fu.prototype.createPolygon=function(){if(0===arguments.length)return new _u(null,null,this);if(1===arguments.length){if(Ks(arguments[0],al)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof bu){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];return new _u(i,r,this)}},Fu.prototype.getSRID=function(){return this._SRID},Fu.prototype.createGeometryCollection=function(){if(0===arguments.length)return new uu(null,this);if(1===arguments.length){var t=arguments[0];return new uu(t,this)}},Fu.prototype.createGeometry=function(t){return new Su(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},Fu.prototype.getPrecisionModel=function(){return this._precisionModel},Fu.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(Ks(arguments[0],al)){var e=arguments[0];return new bu(e,this)}}},Fu.prototype.createMultiPolygon=function(){if(0===arguments.length)return new Pu(null,this);if(1===arguments.length){var t=arguments[0];return new Pu(t,this)}},Fu.prototype.createMultiPoint=function(){if(0===arguments.length)return new wu(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new wu(t,this)}if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(Ks(arguments[0],al)){var n=arguments[0];if(null===n)return this.createMultiPoint(new Array(0).fill(null));for(var i=new Array(n.size()).fill(null),r=0;r<n.size();r++){var o=this.getCoordinateSequenceFactory().create(1,n.getDimension());yu.copy(n,r,o,0,1),i[r]=this.createPoint(o)}return this.createMultiPoint(i)}}},Fu.prototype.interfaces_=function(){return[pr]},Fu.prototype.getClass=function(){return Fu},Fu.toMultiPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Fu.toGeometryArray=function(t){if(null===t)return null;var e=new Array(t.size()).fill(null);return t.toArray(e)},Fu.getDefaultCoordinateSequenceFactory=function(){return Lu.instance()},Fu.toMultiLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Fu.toLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Fu.toMultiPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Fu.toLinearRingArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Fu.toPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Fu.toPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Fu.createPointFromInternalCoord=function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},Gu.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(Fu,Gu);var ju=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],Vu=function(t){this.geometryFactory=t||new Fu};Vu.prototype.read=function(t){var e,n=(e="string"==typeof t?JSON.parse(t):t).type;if(!qu[n])throw new Error("Unknown GeoJSON type: "+e.type);return-1!==ju.indexOf(n)?qu[n].apply(this,[e.coordinates]):"GeometryCollection"===n?qu[n].apply(this,[e.geometries]):qu[n].apply(this,[e])},Vu.prototype.write=function(t){var e=t.getGeometryType();if(!Bu[e])throw new Error("Geometry is not supported");return Bu[e].apply(this,[t])};var qu={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var i=t.geometry.type;if(!qu[i])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=qu.bbox.apply(this,[t.bbox])),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n<t.features.length;++n)e.features.push(this.read(t.features[n]))}return t.bbox&&(e.bbox=this.parse.bbox.apply(this,[t.bbox])),e},coordinates:function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];e.push(new Us(i[0],i[1]))}return e},bbox:function(t){return this.geometryFactory.createLinearRing([new Us(t[0],t[1]),new Us(t[2],t[1]),new Us(t[2],t[3]),new Us(t[0],t[3]),new Us(t[0],t[1])])},Point:function(t){var e=new Us(t[0],t[1]);return this.geometryFactory.createPoint(e)},MultiPoint:function(t){for(var e=[],n=0;n<t.length;++n)e.push(qu.Point.apply(this,[t[n]]));return this.geometryFactory.createMultiPoint(e)},LineString:function(t){var e=qu.coordinates.apply(this,[t]);return this.geometryFactory.createLineString(e)},MultiLineString:function(t){for(var e=[],n=0;n<t.length;++n)e.push(qu.LineString.apply(this,[t[n]]));return this.geometryFactory.createMultiLineString(e)},Polygon:function(t){for(var e=qu.coordinates.apply(this,[t[0]]),n=this.geometryFactory.createLinearRing(e),i=[],r=1;r<t.length;++r){var o=t[r],a=qu.coordinates.apply(this,[o]),s=this.geometryFactory.createLinearRing(a);i.push(s)}return this.geometryFactory.createPolygon(n,i)},MultiPolygon:function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];e.push(qu.Polygon.apply(this,[i]))}return this.geometryFactory.createMultiPolygon(e)},GeometryCollection:function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];e.push(this.read(i))}return this.geometryFactory.createGeometryCollection(e)}},Bu={coordinate:function(t){return[t.x,t.y]},Point:function(t){return{type:"Point",coordinates:Bu.coordinate.apply(this,[t.getCoordinate()])}},MultiPoint:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=Bu.Point.apply(this,[i]);e.push(r.coordinates)}return{type:"MultiPoint",coordinates:e}},LineString:function(t){for(var e=[],n=t.getCoordinates(),i=0;i<n.length;++i){var r=n[i];e.push(Bu.coordinate.apply(this,[r]))}return{type:"LineString",coordinates:e}},MultiLineString:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=Bu.LineString.apply(this,[i]);e.push(r.coordinates)}return{type:"MultiLineString",coordinates:e}},Polygon:function(t){var e=[],n=Bu.LineString.apply(this,[t._shell]);e.push(n.coordinates);for(var i=0;i<t._holes.length;++i){var r=t._holes[i],o=Bu.LineString.apply(this,[r]);e.push(o.coordinates)}return{type:"Polygon",coordinates:e}},MultiPolygon:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=Bu.Polygon.apply(this,[i]);e.push(r.coordinates)}return{type:"MultiPolygon",coordinates:e}},GeometryCollection:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=i.getGeometryType();e.push(Bu[r].apply(this,[i]))}return{type:"GeometryCollection",geometries:e}}},Uu=function(t){this.geometryFactory=t||new Fu,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Vu(this.geometryFactory)};Uu.prototype.read=function(t){var e=this.parser.read(t);return this.precisionModel.getType()===Nu.FIXED&&this.reducePrecision(e),e},Uu.prototype.reducePrecision=function(t){var e,n;if(t.coordinate)this.precisionModel.makePrecise(t.coordinate);else if(t.points)for(e=0,n=t.points.length;e<n;e++)this.precisionModel.makePrecise(t.points[e]);else if(t.geometries)for(e=0,n=t.geometries.length;e<n;e++)this.reducePrecision(t.geometries[e])};var Wu=function(){this.parser=new Vu(this.geometryFactory)};Wu.prototype.write=function(t){return this.parser.write(t)};var Zu=function(){},Xu={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};Zu.prototype.interfaces_=function(){return[]},Zu.prototype.getClass=function(){return Zu},Zu.opposite=function(t){return t===Zu.LEFT?Zu.RIGHT:t===Zu.RIGHT?Zu.LEFT:t},Xu.ON.get=function(){return 0},Xu.LEFT.get=function(){return 1},Xu.RIGHT.get=function(){return 2},Object.defineProperties(Zu,Xu),(Cr.prototype=new Error).name="EmptyStackException",(Mr.prototype=new Bl).add=function(t){return this.array_.push(t),!0},Mr.prototype.get=function(t){if(t<0||t>=this.size())throw new Error;return this.array_[t]},Mr.prototype.push=function(t){return this.array_.push(t),t},Mr.prototype.pop=function(t){if(0===this.array_.length)throw new Cr;return this.array_.pop()},Mr.prototype.peek=function(){if(0===this.array_.length)throw new Cr;return this.array_[this.array_.length-1]},Mr.prototype.empty=function(){return 0===this.array_.length},Mr.prototype.isEmpty=function(){return this.empty()},Mr.prototype.search=function(t){return this.array_.indexOf(t)},Mr.prototype.size=function(){return this.array_.length},Mr.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t};var Hu=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Hu.prototype.getCoordinate=function(){return this._minCoord},Hu.prototype.getRightmostSide=function(t,e){var n=this.getRightmostSideOfSegment(t,e);return n<0&&(n=this.getRightmostSideOfSegment(t,e-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(t)),n},Hu.prototype.findRightmostEdgeAtVertex=function(){var t=this._minDe.getEdge().getCoordinates();wl.isTrue(0<this._minIndex&&this._minIndex<t.length,"rightmost point expected to be interior vertex of edge");var e=t[this._minIndex-1],n=t[this._minIndex+1],i=Tl.computeOrientation(this._minCoord,n,e),r=!1;e.y<this._minCoord.y&&n.y<this._minCoord.y&&i===Tl.COUNTERCLOCKWISE?r=!0:e.y>this._minCoord.y&&n.y>this._minCoord.y&&i===Tl.CLOCKWISE&&(r=!0),r&&(this._minIndex=this._minIndex-1)},Hu.prototype.getRightmostSideOfSegment=function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var i=Zu.LEFT;return n[e].y<n[e+1].y&&(i=Zu.RIGHT),i},Hu.prototype.getEdge=function(){return this._orientedDe},Hu.prototype.checkForRightmostCoordinate=function(t){for(var e=t.getEdge().getCoordinates(),n=0;n<e.length-1;n++)(null===this._minCoord||e[n].x>this._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])},Hu.prototype.findRightmostEdgeAtNode=function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Hu.prototype.findEdge=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}wl.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Zu.LEFT&&(this._orientedDe=this._minDe.getSym())},Hu.prototype.interfaces_=function(){return[]},Hu.prototype.getClass=function(){return Hu};var Yu=function(n){function i(t,e){n.call(this,i.msgWithCoord(t,e)),this.pt=e?new Us(e):null,this.name="TopologyException"}return n&&(i.__proto__=n),((i.prototype=Object.create(n&&n.prototype)).constructor=i).prototype.getCoordinate=function(){return this.pt},i.prototype.interfaces_=function(){return[]},i.prototype.getClass=function(){return i},i.msgWithCoord=function(t,e){return e?t:t+" [ "+e+" ]"},i}(xl),Ku=function(){this.array_=[]};Ku.prototype.addLast=function(t){this.array_.push(t)},Ku.prototype.removeFirst=function(){return this.array_.shift()},Ku.prototype.isEmpty=function(){return 0===this.array_.length};var Ju=function(){this._finder=null,this._dirEdgeList=new Ul,this._nodes=new Ul,this._rightMostCoord=null,this._env=null,this._finder=new Hu};Ju.prototype.clearVisitedEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();)t.next().setVisited(!1)},Ju.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Ju.prototype.computeNodeDepth=function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var i=n.next();if(i.isVisited()||i.getSym().isVisited()){e=i;break}}if(null===e)throw new Yu("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var r=t.getEdges().iterator();r.hasNext();){var o=r.next();o.setVisited(!0),this.copySymDepths(o)}},Ju.prototype.computeDepth=function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.setEdgeDepths(Zu.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},Ju.prototype.create=function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Ju.prototype.findResultEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();1<=e.getDepth(Zu.RIGHT)&&e.getDepth(Zu.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},Ju.prototype.computeDepths=function(t){var e=new $l,n=new Ku,i=t.getNode();for(n.addLast(i),e.add(i),t.setVisited(!0);!n.isEmpty();){var r=n.removeFirst();e.add(r),this.computeNodeDepth(r);for(var o=r.getEdges().iterator();o.hasNext();){var a=o.next().getSym();if(!a.isVisited()){var s=a.getNode();e.contains(s)||(n.addLast(s),e.add(s))}}}},Ju.prototype.compareTo=function(t){var e=t;return this._rightMostCoord.x<e._rightMostCoord.x?-1:this._rightMostCoord.x>e._rightMostCoord.x?1:0},Ju.prototype.getEnvelope=function(){if(null===this._env){for(var t=new pl,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),i=0;i<n.length-1;i++)t.expandToInclude(n[i]);this._env=t}return this._env},Ju.prototype.addReachable=function(t){var e=new Mr;for(e.add(t);!e.empty();){var n=e.pop();this.add(n,e)}},Ju.prototype.copySymDepths=function(t){var e=t.getSym();e.setDepth(Zu.LEFT,t.getDepth(Zu.RIGHT)),e.setDepth(Zu.RIGHT,t.getDepth(Zu.LEFT))},Ju.prototype.add=function(t,e){t.setVisited(!0),this._nodes.add(t);for(var n=t.getEdges().iterator();n.hasNext();){var i=n.next();this._dirEdgeList.add(i);var r=i.getSym().getNode();r.isVisited()||e.push(r)}},Ju.prototype.getNodes=function(){return this._nodes},Ju.prototype.getDirectedEdges=function(){return this._dirEdgeList},Ju.prototype.interfaces_=function(){return[Vs]},Ju.prototype.getClass=function(){return Ju};var Qu=function t(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];this.init(e.length)}else if(Number.isInteger(arguments[0])){var n=arguments[0];this.init(1),this.location[Zu.ON]=n}else if(arguments[0]instanceof t){var i=arguments[0];if(this.init(i.location.length),null!==i)for(var r=0;r<this.location.length;r++)this.location[r]=i.location[r]}}else if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];this.init(3),this.location[Zu.ON]=o,this.location[Zu.LEFT]=a,this.location[Zu.RIGHT]=s}};Qu.prototype.setAllLocations=function(t){for(var e=0;e<this.location.length;e++)this.location[e]=t},Qu.prototype.isNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]!==Hs.NONE)return!1;return!0},Qu.prototype.setAllLocationsIfNull=function(t){for(var e=0;e<this.location.length;e++)this.location[e]===Hs.NONE&&(this.location[e]=t)},Qu.prototype.isLine=function(){return 1===this.location.length},Qu.prototype.merge=function(t){if(t.location.length>this.location.length){var e=new Array(3).fill(null);e[Zu.ON]=this.location[Zu.ON],e[Zu.LEFT]=Hs.NONE,e[Zu.RIGHT]=Hs.NONE,this.location=e}for(var n=0;n<this.location.length;n++)this.location[n]===Hs.NONE&&n<t.location.length&&(this.location[n]=t.location[n])},Qu.prototype.getLocations=function(){return this.location},Qu.prototype.flip=function(){if(this.location.length<=1)return null;var t=this.location[Zu.LEFT];this.location[Zu.LEFT]=this.location[Zu.RIGHT],this.location[Zu.RIGHT]=t},Qu.prototype.toString=function(){var t=new $s;return 1<this.location.length&&t.append(Hs.toLocationSymbol(this.location[Zu.LEFT])),t.append(Hs.toLocationSymbol(this.location[Zu.ON])),1<this.location.length&&t.append(Hs.toLocationSymbol(this.location[Zu.RIGHT])),t.toString()},Qu.prototype.setLocations=function(t,e,n){this.location[Zu.ON]=t,this.location[Zu.LEFT]=e,this.location[Zu.RIGHT]=n},Qu.prototype.get=function(t){return t<this.location.length?this.location[t]:Hs.NONE},Qu.prototype.isArea=function(){return 1<this.location.length},Qu.prototype.isAnyNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]===Hs.NONE)return!0;return!1},Qu.prototype.setLocation=function(){if(1===arguments.length){var t=arguments[0];this.setLocation(Zu.ON,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.location[e]=n}},Qu.prototype.init=function(t){this.location=new Array(t).fill(null),this.setAllLocations(Hs.NONE)},Qu.prototype.isEqualOnSide=function(t,e){return this.location[e]===t.location[e]},Qu.prototype.allPositionsEqual=function(t){for(var e=0;e<this.location.length;e++)if(this.location[e]!==t)return!1;return!0},Qu.prototype.interfaces_=function(){return[]},Qu.prototype.getClass=function(){return Qu};var $u=function t(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var e=arguments[0];this.elt[0]=new Qu(e),this.elt[1]=new Qu(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.elt[0]=new Qu(n.elt[0]),this.elt[1]=new Qu(n.elt[1])}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.elt[0]=new Qu(Hs.NONE),this.elt[1]=new Qu(Hs.NONE),this.elt[i].setLocation(r)}else if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];this.elt[0]=new Qu(o,a,s),this.elt[1]=new Qu(o,a,s)}else if(4===arguments.length){var l=arguments[0],u=arguments[1],h=arguments[2],c=arguments[3];this.elt[0]=new Qu(Hs.NONE,Hs.NONE,Hs.NONE),this.elt[1]=new Qu(Hs.NONE,Hs.NONE,Hs.NONE),this.elt[l].setLocations(u,h,c)}};$u.prototype.getGeometryCount=function(){var t=0;return this.elt[0].isNull()||t++,this.elt[1].isNull()||t++,t},$u.prototype.setAllLocations=function(t,e){this.elt[t].setAllLocations(e)},$u.prototype.isNull=function(t){return this.elt[t].isNull()},$u.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var t=arguments[0];this.setAllLocationsIfNull(0,t),this.setAllLocationsIfNull(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.elt[e].setAllLocationsIfNull(n)}},$u.prototype.isLine=function(t){return this.elt[t].isLine()},$u.prototype.merge=function(t){for(var e=0;e<2;e++)null===this.elt[e]&&null!==t.elt[e]?this.elt[e]=new Qu(t.elt[e]):this.elt[e].merge(t.elt[e])},$u.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},$u.prototype.getLocation=function(){if(1===arguments.length){var t=arguments[0];return this.elt[t].get(Zu.ON)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return this.elt[e].get(n)}},$u.prototype.toString=function(){var t=new $s;return null!==this.elt[0]&&(t.append("A:"),t.append(this.elt[0].toString())),null!==this.elt[1]&&(t.append(" B:"),t.append(this.elt[1].toString())),t.toString()},$u.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var t=arguments[0];return this.elt[t].isArea()}},$u.prototype.isAnyNull=function(t){return this.elt[t].isAnyNull()},$u.prototype.setLocation=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.elt[t].setLocation(Zu.ON,e)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this.elt[n].setLocation(i,r)}},$u.prototype.isEqualOnSide=function(t,e){return this.elt[0].isEqualOnSide(t.elt[0],e)&&this.elt[1].isEqualOnSide(t.elt[1],e)},$u.prototype.allPositionsEqual=function(t,e){return this.elt[t].allPositionsEqual(e)},$u.prototype.toLine=function(t){this.elt[t].isArea()&&(this.elt[t]=new Qu(this.elt[t].location[0]))},$u.prototype.interfaces_=function(){return[]},$u.prototype.getClass=function(){return $u},$u.toLineLabel=function(t){for(var e=new $u(Hs.NONE),n=0;n<2;n++)e.setLocation(n,t.getLocation(n));return e};var th=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new Ul,this._pts=new Ul,this._label=new $u(Hs.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new Ul,this._geometryFactory=null;var t=arguments[0],e=arguments[1];this._geometryFactory=e,this.computePoints(t),this.computeRing()};th.prototype.computeRing=function(){if(null!==this._ring)return null;for(var t=new Array(this._pts.size()).fill(null),e=0;e<this._pts.size();e++)t[e]=this._pts.get(e);this._ring=this._geometryFactory.createLinearRing(t),this._isHole=Tl.isCCW(this._ring.getCoordinates())},th.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},th.prototype.computePoints=function(t){var e=this._startDe=t,n=!0;do{if(null===e)throw new Yu("Found null DirectedEdge");if(e.getEdgeRing()===this)throw new Yu("Directed Edge visited twice during ring-building at "+e.getCoordinate());this._edges.add(e);var i=e.getLabel();wl.isTrue(i.isArea()),this.mergeLabel(i),this.addPoints(e.getEdge(),e.isForward(),n),n=!1,this.setEdgeRing(e,this),e=this.getNext(e)}while(e!==this._startDe)},th.prototype.getLinearRing=function(){return this._ring},th.prototype.getCoordinate=function(t){return this._pts.get(t)},th.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var t=this._startDe;do{var e=t.getNode().getEdges().getOutgoingDegree(this);e>this._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2},th.prototype.addPoints=function(t,e,n){var i=t.getCoordinates();if(e){var r=1;n&&(r=0);for(var o=r;o<i.length;o++)this._pts.add(i[o])}else{var a=i.length-2;n&&(a=i.length-1);for(var s=a;0<=s;s--)this._pts.add(i[s])}},th.prototype.isHole=function(){return this._isHole},th.prototype.setInResult=function(){for(var t=this._startDe;t.getEdge().setInResult(!0),(t=t.getNext())!==this._startDe;);},th.prototype.containsPoint=function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!Tl.isPointInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0},th.prototype.addHole=function(t){this._holes.add(t)},th.prototype.isShell=function(){return null===this._shell},th.prototype.getLabel=function(){return this._label},th.prototype.getEdges=function(){return this._edges},th.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},th.prototype.getShell=function(){return this._shell},th.prototype.mergeLabel=function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=e.getLocation(n,Zu.RIGHT);if(i===Hs.NONE)return null;if(this._label.getLocation(n)===Hs.NONE)return this._label.setLocation(n,i),null}},th.prototype.setShell=function(t){null!==(this._shell=t)&&t.addHole(this)},th.prototype.toPolygon=function(t){for(var e=new Array(this._holes.size()).fill(null),n=0;n<this._holes.size();n++)e[n]=this._holes.get(n).getLinearRing();return t.createPolygon(this.getLinearRing(),e)},th.prototype.interfaces_=function(){return[]},th.prototype.getClass=function(){return th};var eh=function(n){function t(){var t=arguments[0],e=arguments[1];n.call(this,t,e)}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.setEdgeRing=function(t,e){t.setMinEdgeRing(e)},t.prototype.getNext=function(t){return t.getNextMin()},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(th),nh=function(n){function t(){var t=arguments[0],e=arguments[1];n.call(this,t,e)}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.buildMinimalRings=function(){var t=new Ul,e=this._startDe;do{if(null===e.getMinEdgeRing()){var n=new eh(e,this._geometryFactory);t.add(n)}e=e.getNext()}while(e!==this._startDe);return t},t.prototype.setEdgeRing=function(t,e){t.setEdgeRing(e)},t.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){for(var t=this._startDe;t.getNode().getEdges().linkMinimalDirectedEdges(this),(t=t.getNext())!==this._startDe;);},t.prototype.getNext=function(t){return t.getNext()},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(th),ih=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._label=t}};ih.prototype.setVisited=function(t){this._isVisited=t},ih.prototype.setInResult=function(t){this._isInResult=t},ih.prototype.isCovered=function(){return this._isCovered},ih.prototype.isCoveredSet=function(){return this._isCoveredSet},ih.prototype.setLabel=function(t){this._label=t},ih.prototype.getLabel=function(){return this._label},ih.prototype.setCovered=function(t){this._isCovered=t,this._isCoveredSet=!0},ih.prototype.updateIM=function(t){wl.isTrue(2<=this._label.getGeometryCount(),"found partial label"),this.computeIM(t)},ih.prototype.isInResult=function(){return this._isInResult},ih.prototype.isVisited=function(){return this._isVisited},ih.prototype.interfaces_=function(){return[]},ih.prototype.getClass=function(){return ih};var rh=function(n){function r(){n.call(this),this._coord=null,this._edges=null;var t=arguments[0],e=arguments[1];this._coord=t,this._edges=e,this._label=new $u(0,Hs.NONE)}return n&&(r.__proto__=n),((r.prototype=Object.create(n&&n.prototype)).constructor=r).prototype.isIncidentEdgeInResult=function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1},r.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},r.prototype.getCoordinate=function(){return this._coord},r.prototype.print=function(t){t.println("node "+this._coord+" lbl: "+this._label)},r.prototype.computeIM=function(t){},r.prototype.computeMergedLocation=function(t,e){var n=Hs.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var i=t.getLocation(e);n!==Hs.BOUNDARY&&(n=i)}return n},r.prototype.setLabel=function(){if(2!==arguments.length)return n.prototype.setLabel.apply(this,arguments);var t=arguments[0],e=arguments[1];null===this._label?this._label=new $u(t,e):this._label.setLocation(t,e)},r.prototype.getEdges=function(){return this._edges},r.prototype.mergeLabel=function(){if(arguments[0]instanceof r){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof $u)for(var e=arguments[0],n=0;n<2;n++){var i=this.computeMergedLocation(e,n);this._label.getLocation(n)===Hs.NONE&&this._label.setLocation(n,i)}},r.prototype.add=function(t){this._edges.insert(t),t.setNode(this)},r.prototype.setLabelBoundary=function(t){if(null===this._label)return null;var e=Hs.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;switch(e){case Hs.BOUNDARY:n=Hs.INTERIOR;break;case Hs.INTERIOR:default:n=Hs.BOUNDARY}this._label.setLocation(t,n)},r.prototype.interfaces_=function(){return[]},r.prototype.getClass=function(){return r},r}(ih),oh=function(){this.nodeMap=new wr,this.nodeFact=null;var t=arguments[0];this.nodeFact=t};oh.prototype.find=function(t){return this.nodeMap.get(t)},oh.prototype.addNode=function(){if(arguments[0]instanceof Us){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof rh){var n=arguments[0],i=this.nodeMap.get(n.getCoordinate());return null===i?(this.nodeMap.put(n.getCoordinate(),n),n):(i.mergeLabel(n),i)}},oh.prototype.print=function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)},oh.prototype.iterator=function(){return this.nodeMap.values().iterator()},oh.prototype.values=function(){return this.nodeMap.values()},oh.prototype.getBoundaryNodes=function(t){for(var e=new Ul,n=this.iterator();n.hasNext();){var i=n.next();i.getLabel().getLocation(t)===Hs.BOUNDARY&&e.add(i)}return e},oh.prototype.add=function(t){var e=t.getCoordinate();this.addNode(e).add(t)},oh.prototype.interfaces_=function(){return[]},oh.prototype.getClass=function(){return oh};var ah=function(){},sh={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};ah.prototype.interfaces_=function(){return[]},ah.prototype.getClass=function(){return ah},ah.isNorthern=function(t){return t===ah.NE||t===ah.NW},ah.isOpposite=function(t,e){return t!==e&&2==(t-e+4)%4},ah.commonHalfPlane=function(t,e){if(t===e)return t;if(2==(t-e+4)%4)return-1;var n=t<e?t:e;return 0===n&&3===(e<t?t:e)?3:n},ah.isInHalfPlane=function(t,e){return e===ah.SE?t===ah.SE||t===ah.SW:t===e||t===e+1},ah.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new Fs("Cannot compute the quadrant for point ( "+t+", "+e+" )");return 0<=t?0<=e?ah.NE:ah.SE:0<=e?ah.NW:ah.SW}if(arguments[0]instanceof Us&&arguments[1]instanceof Us){var n=arguments[0],i=arguments[1];if(i.x===n.x&&i.y===n.y)throw new Fs("Cannot compute the quadrant for two identical points "+n);return i.x>=n.x?i.y>=n.y?ah.NE:ah.SE:i.y>=n.y?ah.NW:ah.SW}},sh.NE.get=function(){return 0},sh.NW.get=function(){return 1},sh.SW.get=function(){return 2},sh.SE.get=function(){return 3},Object.defineProperties(ah,sh);var lh=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2];this._edge=e,this.init(n,i),this._label=null}else if(4===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this._edge=r,this.init(o,a),this._label=s}};lh.prototype.compareDirection=function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant<t._quadrant?-1:Tl.computeOrientation(t._p0,t._p1,this._p1)},lh.prototype.getDy=function(){return this._dy},lh.prototype.getCoordinate=function(){return this._p0},lh.prototype.setNode=function(t){this._node=t},lh.prototype.print=function(t){var e=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),i=n.lastIndexOf("."),r=n.substring(i+1);t.print(" "+r+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+" "+this._label)},lh.prototype.compareTo=function(t){var e=t;return this.compareDirection(e)},lh.prototype.getDirectedCoordinate=function(){return this._p1},lh.prototype.getDx=function(){return this._dx},lh.prototype.getLabel=function(){return this._label},lh.prototype.getEdge=function(){return this._edge},lh.prototype.getQuadrant=function(){return this._quadrant},lh.prototype.getNode=function(){return this._node},lh.prototype.toString=function(){var t=Math.atan2(this._dy,this._dx),e=this.getClass().getName(),n=e.lastIndexOf(".");return" "+e.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+" "+this._label},lh.prototype.computeLabel=function(t){},lh.prototype.init=function(t,e){this._p0=t,this._p1=e,this._dx=e.x-t.x,this._dy=e.y-t.y,this._quadrant=ah.quadrant(this._dx,this._dy),wl.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},lh.prototype.interfaces_=function(){return[Vs]},lh.prototype.getClass=function(){return lh};var uh=function(i){function t(){var t=arguments[0],e=arguments[1];if(i.call(this,t),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=e)this.init(t.getCoordinate(0),t.getCoordinate(1));else{var n=t.getNumPoints()-1;this.init(t.getCoordinate(n),t.getCoordinate(n-1))}this.computeDirectedLabel()}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.getNextMin=function(){return this._nextMin},t.prototype.getDepth=function(t){return this._depth[t]},t.prototype.setVisited=function(t){this._isVisited=t},t.prototype.computeDirectedLabel=function(){this._label=new $u(this._edge.getLabel()),this._isForward||this._label.flip()},t.prototype.getNext=function(){return this._next},t.prototype.setDepth=function(t,e){if(-999!==this._depth[t]&&this._depth[t]!==e)throw new Yu("assigned depths do not match",this.getCoordinate());this._depth[t]=e},t.prototype.isInteriorAreaEdge=function(){for(var t=!0,e=0;e<2;e++)this._label.isArea(e)&&this._label.getLocation(e,Zu.LEFT)===Hs.INTERIOR&&this._label.getLocation(e,Zu.RIGHT)===Hs.INTERIOR||(t=!1);return t},t.prototype.setNextMin=function(t){this._nextMin=t},t.prototype.print=function(t){i.prototype.print.call(this,t),t.print(" "+this._depth[Zu.LEFT]+"/"+this._depth[Zu.RIGHT]),t.print(" ("+this.getDepthDelta()+")"),this._isInResult&&t.print(" inResult")},t.prototype.setMinEdgeRing=function(t){this._minEdgeRing=t},t.prototype.isLineEdge=function(){var t=this._label.isLine(0)||this._label.isLine(1),e=!this._label.isArea(0)||this._label.allPositionsEqual(0,Hs.EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,Hs.EXTERIOR);return t&&e&&n},t.prototype.setEdgeRing=function(t){this._edgeRing=t},t.prototype.getMinEdgeRing=function(){return this._minEdgeRing},t.prototype.getDepthDelta=function(){var t=this._edge.getDepthDelta();return this._isForward||(t=-t),t},t.prototype.setInResult=function(t){this._isInResult=t},t.prototype.getSym=function(){return this._sym},t.prototype.isForward=function(){return this._isForward},t.prototype.getEdge=function(){return this._edge},t.prototype.printEdge=function(t){this.print(t),t.print(" "),this._isForward?this._edge.print(t):this._edge.printReverse(t)},t.prototype.setSym=function(t){this._sym=t},t.prototype.setVisitedEdge=function(t){this.setVisited(t),this._sym.setVisited(t)},t.prototype.setEdgeDepths=function(t,e){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var i=1;t===Zu.LEFT&&(i=-1);var r=Zu.opposite(t),o=e+n*i;this.setDepth(t,e),this.setDepth(r,o)},t.prototype.getEdgeRing=function(){return this._edgeRing},t.prototype.isInResult=function(){return this._isInResult},t.prototype.setNext=function(t){this._next=t},t.prototype.isVisited=function(){return this._isVisited},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.depthFactor=function(t,e){return t===Hs.EXTERIOR&&e===Hs.INTERIOR?1:t===Hs.INTERIOR&&e===Hs.EXTERIOR?-1:0},t}(lh),hh=function(){};hh.prototype.createNode=function(t){return new rh(t,null)},hh.prototype.interfaces_=function(){return[]},hh.prototype.getClass=function(){return hh};var ch=function(){if(this._edges=new Ul,this._nodes=null,this._edgeEndList=new Ul,0===arguments.length)this._nodes=new oh(new hh);else if(1===arguments.length){var t=arguments[0];this._nodes=new oh(t)}};ch.prototype.printEdges=function(t){t.println("Edges:");for(var e=0;e<this._edges.size();e++){t.println("edge "+e+":");var n=this._edges.get(e);n.print(t),n.eiList.print(t)}},ch.prototype.find=function(t){return this._nodes.find(t)},ch.prototype.addNode=function(){if(arguments[0]instanceof rh){var t=arguments[0];return this._nodes.addNode(t)}if(arguments[0]instanceof Us){var e=arguments[0];return this._nodes.addNode(e)}},ch.prototype.getNodeIterator=function(){return this._nodes.iterator()},ch.prototype.linkResultDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkResultDirectedEdges()},ch.prototype.debugPrintln=function(t){hl.out.println(t)},ch.prototype.isBoundaryNode=function(t,e){var n=this._nodes.find(e);if(null===n)return!1;var i=n.getLabel();return null!==i&&i.getLocation(t)===Hs.BOUNDARY},ch.prototype.linkAllDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkAllDirectedEdges()},ch.prototype.matchInSameDirection=function(t,e,n,i){return!!t.equals(n)&&Tl.computeOrientation(t,e,i)===Tl.COLLINEAR&&ah.quadrant(t,e)===ah.quadrant(n,i)},ch.prototype.getEdgeEnds=function(){return this._edgeEndList},ch.prototype.debugPrint=function(t){hl.out.print(t)},ch.prototype.getEdgeIterator=function(){return this._edges.iterator()},ch.prototype.findEdgeInSameDirection=function(t,e){for(var n=0;n<this._edges.size();n++){var i=this._edges.get(n),r=i.getCoordinates();if(this.matchInSameDirection(t,e,r[0],r[1]))return i;if(this.matchInSameDirection(t,e,r[r.length-1],r[r.length-2]))return i}return null},ch.prototype.insertEdge=function(t){this._edges.add(t)},ch.prototype.findEdgeEnd=function(t){for(var e=this.getEdgeEnds().iterator();e.hasNext();){var n=e.next();if(n.getEdge()===t)return n}return null},ch.prototype.addEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this._edges.add(n);var i=new uh(n,!0),r=new uh(n,!1);i.setSym(r),r.setSym(i),this.add(i),this.add(r)}},ch.prototype.add=function(t){this._nodes.add(t),this._edgeEndList.add(t)},ch.prototype.getNodes=function(){return this._nodes.values()},ch.prototype.findEdge=function(t,e){for(var n=0;n<this._edges.size();n++){var i=this._edges.get(n),r=i.getCoordinates();if(t.equals(r[0])&&e.equals(r[1]))return i}return null},ch.prototype.interfaces_=function(){return[]},ch.prototype.getClass=function(){return ch},ch.linkResultDirectedEdges=function(t){for(var e=t.iterator();e.hasNext();)e.next().getEdges().linkResultDirectedEdges()};var ph=function(){this._geometryFactory=null,this._shellList=new Ul;var t=arguments[0];this._geometryFactory=t};ph.prototype.sortShellsAndHoles=function(t,e,n){for(var i=t.iterator();i.hasNext();){var r=i.next();r.isHole()?n.add(r):e.add(r)}},ph.prototype.computePolygons=function(t){for(var e=new Ul,n=t.iterator();n.hasNext();){var i=n.next().toPolygon(this._geometryFactory);e.add(i)}return e},ph.prototype.placeFreeHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();if(null===i.getShell()){var r=this.findEdgeRingContaining(i,t);if(null===r)throw new Yu("unable to assign hole to a shell",i.getCoordinate(0));i.setShell(r)}}},ph.prototype.buildMinimalEdgeRings=function(t,e,n){for(var i=new Ul,r=t.iterator();r.hasNext();){var o=r.next();if(2<o.getMaxNodeDegree()){o.linkDirectedEdgesForMinimalEdgeRings();var a=o.buildMinimalRings(),s=this.findShell(a);null!==s?(this.placePolygonHoles(s,a),e.add(s)):n.addAll(a)}else i.add(o)}return i},ph.prototype.containsPoint=function(t){for(var e=this._shellList.iterator();e.hasNext();)if(e.next().containsPoint(t))return!0;return!1},ph.prototype.buildMaximalEdgeRings=function(t){for(var e=new Ul,n=t.iterator();n.hasNext();){var i=n.next();if(i.isInResult()&&i.getLabel().isArea()&&null===i.getEdgeRing()){var r=new nh(i,this._geometryFactory);e.add(r),r.setInResult()}}return e},ph.prototype.placePolygonHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();i.isHole()&&i.setShell(t)}},ph.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},ph.prototype.findEdgeRingContaining=function(t,e){for(var n=t.getLinearRing(),i=n.getEnvelopeInternal(),r=n.getCoordinateN(0),o=null,a=null,s=e.iterator();s.hasNext();){var l=s.next(),u=l.getLinearRing(),h=u.getEnvelopeInternal();null!==o&&(a=o.getLinearRing().getEnvelopeInternal());var c=!1;h.contains(i)&&Tl.isPointInRing(r,u.getCoordinates())&&(c=!0),c&&(null===o||a.contains(h))&&(o=l)}return o},ph.prototype.findShell=function(t){for(var e=0,n=null,i=t.iterator();i.hasNext();){var r=i.next();r.isHole()||(n=r,e++)}return wl.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},ph.prototype.add=function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];ch.linkResultDirectedEdges(n);var i=this.buildMaximalEdgeRings(e),r=new Ul,o=this.buildMinimalEdgeRings(i,this._shellList,r);this.sortShellsAndHoles(o,this._shellList,r),this.placeFreeHoles(this._shellList,r)}},ph.prototype.interfaces_=function(){return[]},ph.prototype.getClass=function(){return ph};var fh=function(){};fh.prototype.getBounds=function(){},fh.prototype.interfaces_=function(){return[]},fh.prototype.getClass=function(){return fh};var dh=function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e};dh.prototype.getItem=function(){return this._item},dh.prototype.getBounds=function(){return this._bounds},dh.prototype.interfaces_=function(){return[fh,pr]},dh.prototype.getClass=function(){return dh};var yh=function(){this._size=null,this._items=null,this._size=0,this._items=new Ul,this._items.add(null)};yh.prototype.poll=function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t},yh.prototype.size=function(){return this._size},yh.prototype.reorder=function(t){for(var e=null,n=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(n)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,n)},yh.prototype.clear=function(){this._size=0,this._items.clear()},yh.prototype.isEmpty=function(){return 0===this._size},yh.prototype.add=function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},yh.prototype.interfaces_=function(){return[]},yh.prototype.getClass=function(){return yh};var mh=function(){};mh.prototype.visitItem=function(t){},mh.prototype.interfaces_=function(){return[]},mh.prototype.getClass=function(){return mh};var gh=function(){};gh.prototype.insert=function(t,e){},gh.prototype.remove=function(t,e){},gh.prototype.query=function(){},gh.prototype.interfaces_=function(){return[]},gh.prototype.getClass=function(){return gh};var vh=function(){if(this._childBoundables=new Ul,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}},xh={serialVersionUID:{configurable:!0}};vh.prototype.getLevel=function(){return this._level},vh.prototype.size=function(){return this._childBoundables.size()},vh.prototype.getChildBoundables=function(){return this._childBoundables},vh.prototype.addChildBoundable=function(t){wl.isTrue(null===this._bounds),this._childBoundables.add(t)},vh.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},vh.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},vh.prototype.interfaces_=function(){return[fh,pr]},vh.prototype.getClass=function(){return vh},xh.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(vh,xh);var _h=function(){};_h.reverseOrder=function(){return{compare:function(t,e){return e.compareTo(t)}}},_h.min=function(t){return _h.sort(t),t.get(0)},_h.sort=function(t,e){var n=t.toArray();e?ru.sort(n,e):ru.sort(n);for(var i=t.iterator(),r=0,o=n.length;r<o;r++)i.next(),i.set(n[r])},_h.singletonList=function(t){var e=new Ul;return e.add(t),e};var wh=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var t=arguments[0],e=arguments[1],n=arguments[2];this._boundable1=t,this._boundable2=e,this._itemDistance=n,this._distance=this.distance()};wh.prototype.expandToQueue=function(t,e){var n=wh.isComposite(this._boundable1),i=wh.isComposite(this._boundable2);if(n&&i)return wh.area(this._boundable1)>wh.area(this._boundable2)?this.expand(this._boundable1,this._boundable2,t,e):this.expand(this._boundable2,this._boundable1,t,e),null;if(n)return this.expand(this._boundable1,this._boundable2,t,e),null;if(i)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new Fs("neither boundable is composite")},wh.prototype.isLeaves=function(){return!(wh.isComposite(this._boundable1)||wh.isComposite(this._boundable2))},wh.prototype.compareTo=function(t){var e=t;return this._distance<e._distance?-1:this._distance>e._distance?1:0},wh.prototype.expand=function(t,e,n,i){for(var r=t.getChildBoundables().iterator();r.hasNext();){var o=r.next(),a=new wh(o,e,this._itemDistance);a.getDistance()<i&&n.add(a)}},wh.prototype.getBoundable=function(t){return 0===t?this._boundable1:this._boundable2},wh.prototype.getDistance=function(){return this._distance},wh.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},wh.prototype.interfaces_=function(){return[Vs]},wh.prototype.getClass=function(){return wh},wh.area=function(t){return t.getBounds().getArea()},wh.isComposite=function(t){return t instanceof vh};var bh=function t(){if(this._root=null,this._built=!1,this._itemBoundables=new Ul,this._nodeCapacity=null,0===arguments.length){var e=t.DEFAULT_NODE_CAPACITY;this._nodeCapacity=e}else if(1===arguments.length){var n=arguments[0];wl.isTrue(1<n,"Node capacity must be greater than 1"),this._nodeCapacity=n}},Ph={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};bh.prototype.getNodeCapacity=function(){return this._nodeCapacity},bh.prototype.lastNode=function(t){return t.get(t.size()-1)},bh.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();n instanceof vh?t+=this.size(n):n instanceof dh&&(t+=1)}return t}},bh.prototype.removeItem=function(t,e){for(var n=null,i=t.getChildBoundables().iterator();i.hasNext();){var r=i.next();r instanceof dh&&r.getItem()===e&&(n=r)}return null!==n&&(t.getChildBoundables().remove(n),!0)},bh.prototype.itemsTree=function(){if(0===arguments.length){this.build();var t=this.itemsTree(this._root);return null===t?new Ul:t}if(1===arguments.length){for(var e=arguments[0],n=new Ul,i=e.getChildBoundables().iterator();i.hasNext();){var r=i.next();if(r instanceof vh){var o=this.itemsTree(r);null!==o&&n.add(o)}else r instanceof dh?n.add(r.getItem()):wl.shouldNeverReachHere()}return n.size()<=0?null:n}},bh.prototype.insert=function(t,e){wl.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new dh(t,e))},bh.prototype.boundablesAtLevel=function(){if(1===arguments.length){var t=arguments[0],e=new Ul;return this.boundablesAtLevel(t,this._root,e),e}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];if(wl.isTrue(-2<n),i.getLevel()===n)return r.add(i),null;for(var o=i.getChildBoundables().iterator();o.hasNext();){var a=o.next();a instanceof vh?this.boundablesAtLevel(n,a,r):(wl.isTrue(a instanceof dh),-1===n&&r.add(a))}return null}},bh.prototype.query=function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new Ul;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.query(t,this._root,e),e}if(2===arguments.length){var n=arguments[0],i=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,i)}else if(3===arguments.length)if(Ks(arguments[2],mh)&&arguments[0]instanceof Object&&arguments[1]instanceof vh)for(var r=arguments[0],o=arguments[1],a=arguments[2],s=o.getChildBoundables(),l=0;l<s.size();l++){var u=s.get(l);this.getIntersectsOp().intersects(u.getBounds(),r)&&(u instanceof vh?this.query(r,u,a):u instanceof dh?a.visitItem(u.getItem()):wl.shouldNeverReachHere())}else if(Ks(arguments[2],Bl)&&arguments[0]instanceof Object&&arguments[1]instanceof vh)for(var h=arguments[0],c=arguments[1],p=arguments[2],f=c.getChildBoundables(),d=0;d<f.size();d++){var y=f.get(d);this.getIntersectsOp().intersects(y.getBounds(),h)&&(y instanceof vh?this.query(h,y,p):y instanceof dh?p.add(y.getItem()):wl.shouldNeverReachHere())}},bh.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},bh.prototype.getRoot=function(){return this.build(),this._root},bh.prototype.remove=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.remove(t,this._root,e)}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=this.removeItem(i,r);if(o)return!0;for(var a=null,s=i.getChildBoundables().iterator();s.hasNext();){var l=s.next();if(this.getIntersectsOp().intersects(l.getBounds(),n)&&l instanceof vh&&(o=this.remove(n,l,r))){a=l;break}}return null!==a&&a.getChildBoundables().isEmpty()&&i.getChildBoundables().remove(a),o}},bh.prototype.createHigherLevels=function(t,e){wl.isTrue(!t.isEmpty());var n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)},bh.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();if(n instanceof vh){var i=this.depth(n);t<i&&(t=i)}}return t+1}},bh.prototype.createParentBoundables=function(t,e){wl.isTrue(!t.isEmpty());var n=new Ul;n.add(this.createNode(e));var i=new Ul(t);_h.sort(i,this.getComparator());for(var r=i.iterator();r.hasNext();){var o=r.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(o)}return n},bh.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},bh.prototype.interfaces_=function(){return[pr]},bh.prototype.getClass=function(){return bh},bh.compareDoubles=function(t,e){return e<t?1:t<e?-1:0},Ph.IntersectsOp.get=function(){return Sh},Ph.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},Ph.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(bh,Ph);var Sh=function(){},Ch=function(){};Ch.prototype.distance=function(t,e){},Ch.prototype.interfaces_=function(){return[]},Ch.prototype.getClass=function(){return Ch};var Mh=function(u){function g(t){t=t||g.DEFAULT_NODE_CAPACITY,u.call(this,t)}u&&(g.__proto__=u),(g.prototype=Object.create(u&&u.prototype)).constructor=g;var t={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return g.prototype.createParentBoundablesFromVerticalSlices=function(t,e){wl.isTrue(0<t.length);for(var n=new Ul,i=0;i<t.length;i++)n.addAll(this.createParentBoundablesFromVerticalSlice(t[i],e));return n},g.prototype.createNode=function(t){return new Th(t)},g.prototype.size=function(){return 0===arguments.length?u.prototype.size.call(this):u.prototype.size.apply(this,arguments)},g.prototype.insert=function(){if(2!==arguments.length)return u.prototype.insert.apply(this,arguments);var t=arguments[0],e=arguments[1];if(t.isNull())return null;u.prototype.insert.call(this,t,e)},g.prototype.getIntersectsOp=function(){return g.intersectsOp},g.prototype.verticalSlices=function(t,e){for(var n=Math.trunc(Math.ceil(t.size()/e)),i=new Array(e).fill(null),r=t.iterator(),o=0;o<e;o++){i[o]=new Ul;for(var a=0;r.hasNext()&&a<n;){var s=r.next();i[o].add(s),a++}}return i},g.prototype.query=function(){if(1===arguments.length){var t=arguments[0];return u.prototype.query.call(this,t)}if(2===arguments.length){var e=arguments[0],n=arguments[1];u.prototype.query.call(this,e,n)}else if(3===arguments.length)if(Ks(arguments[2],mh)&&arguments[0]instanceof Object&&arguments[1]instanceof vh){var i=arguments[0],r=arguments[1],o=arguments[2];u.prototype.query.call(this,i,r,o)}else if(Ks(arguments[2],Bl)&&arguments[0]instanceof Object&&arguments[1]instanceof vh){var a=arguments[0],s=arguments[1],l=arguments[2];u.prototype.query.call(this,a,s,l)}},g.prototype.getComparator=function(){return g.yComparator},g.prototype.createParentBoundablesFromVerticalSlice=function(t,e){return u.prototype.createParentBoundables.call(this,t,e)},g.prototype.remove=function(){if(2!==arguments.length)return u.prototype.remove.apply(this,arguments);var t=arguments[0],e=arguments[1];return u.prototype.remove.call(this,t,e)},g.prototype.depth=function(){return 0===arguments.length?u.prototype.depth.call(this):u.prototype.depth.apply(this,arguments)},g.prototype.createParentBoundables=function(t,e){wl.isTrue(!t.isEmpty());var n=Math.trunc(Math.ceil(t.size()/this.getNodeCapacity())),i=new Ul(t);_h.sort(i,g.xComparator);var r=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(n))));return this.createParentBoundablesFromVerticalSlices(r,e)},g.prototype.nearestNeighbour=function(){if(1===arguments.length){if(Ks(arguments[0],Ch)){var t=arguments[0],e=new wh(this.getRoot(),this.getRoot(),t);return this.nearestNeighbour(e)}if(arguments[0]instanceof wh){var n=arguments[0];return this.nearestNeighbour(n,Gs.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof g&&Ks(arguments[1],Ch)){var i=arguments[0],r=arguments[1],o=new wh(this.getRoot(),i.getRoot(),r);return this.nearestNeighbour(o)}if(arguments[0]instanceof wh&&"number"==typeof arguments[1]){var a=arguments[0],s=arguments[1],l=null,u=new yh;for(u.add(a);!u.isEmpty()&&0<s;){var h=u.poll(),c=h.getDistance();if(s<=c)break;h.isLeaves()?(s=c,l=h):h.expandToQueue(u,s)}return[l.getBoundable(0).getItem(),l.getBoundable(1).getItem()]}}else if(3===arguments.length){var p=arguments[0],f=arguments[1],d=arguments[2],y=new dh(p,f),m=new wh(this.getRoot(),y,d);return this.nearestNeighbour(m)[0]}},g.prototype.interfaces_=function(){return[gh,pr]},g.prototype.getClass=function(){return g},g.centreX=function(t){return g.avg(t.getMinX(),t.getMaxX())},g.avg=function(t,e){return(t+e)/2},g.centreY=function(t){return g.avg(t.getMinY(),t.getMaxY())},t.STRtreeNode.get=function(){return Th},t.serialVersionUID.get=function(){return 0x39920f7d5f261e0},t.xComparator.get=function(){return{interfaces_:function(){return[Bs]},compare:function(t,e){return u.compareDoubles(g.centreX(t.getBounds()),g.centreX(e.getBounds()))}}},t.yComparator.get=function(){return{interfaces_:function(){return[Bs]},compare:function(t,e){return u.compareDoubles(g.centreY(t.getBounds()),g.centreY(e.getBounds()))}}},t.intersectsOp.get=function(){return{interfaces_:function(){return[u.IntersectsOp]},intersects:function(t,e){return t.intersects(e)}}},t.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(g,t),g}(bh),Th=function(e){function t(){var t=arguments[0];e.call(this,t)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.computeBounds=function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new pl(n.getBounds()):t.expandToInclude(n.getBounds())}return t},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(vh),Ah=function(){};Ah.prototype.interfaces_=function(){return[]},Ah.prototype.getClass=function(){return Ah},Ah.relativeSign=function(t,e){return t<e?-1:e<t?1:0},Ah.compare=function(t,e,n){if(e.equals2D(n))return 0;var i=Ah.relativeSign(e.x,n.x),r=Ah.relativeSign(e.y,n.y);switch(t){case 0:return Ah.compareValue(i,r);case 1:return Ah.compareValue(r,i);case 2:return Ah.compareValue(r,-i);case 3:return Ah.compareValue(-i,r);case 4:return Ah.compareValue(-i,-r);case 5:return Ah.compareValue(-r,-i);case 6:return Ah.compareValue(-r,i);case 7:return Ah.compareValue(i,-r)}return wl.shouldNeverReachHere("invalid octant value"),0},Ah.compareValue=function(t,e){return t<0?-1:0<t?1:e<0?-1:0<e?1:0};var Eh=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._segString=t,this.coord=new Us(e),this.segmentIndex=n,this._segmentOctant=i,this._isInterior=!e.equals2D(t.getCoordinate(n))};Eh.prototype.getCoordinate=function(){return this.coord},Eh.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},Eh.prototype.compareTo=function(t){var e=t;return this.segmentIndex<e.segmentIndex?-1:this.segmentIndex>e.segmentIndex?1:this.coord.equals2D(e.coord)?0:Ah.compare(this._segmentOctant,this.coord,e.coord)},Eh.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},Eh.prototype.isInterior=function(){return this._isInterior},Eh.prototype.interfaces_=function(){return[Vs]},Eh.prototype.getClass=function(){return Eh};var Ih=function(){this._nodeMap=new wr,this._edge=null;var t=arguments[0];this._edge=t};Ih.prototype.getSplitCoordinates=function(){var t=new Zl;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next();this.addEdgeCoordinates(n,i,t),n=i}return t.toCoordinateArray()},Ih.prototype.addCollapsedNodes=function(){var t=new Ul;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}},Ih.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},Ih.prototype.findCollapsesFromExistingVertices=function(t){for(var e=0;e<this._edge.size()-2;e++){var n=this._edge.getCoordinate(e),i=this._edge.getCoordinate(e+2);n.equals2D(i)&&t.add(new tl(e+1))}},Ih.prototype.addEdgeCoordinates=function(t,e,n){var i=this._edge.getCoordinate(e.segmentIndex),r=e.isInterior()||!e.coord.equals2D(i);n.add(new Us(t.coord),!1);for(var o=t.segmentIndex+1;o<=e.segmentIndex;o++)n.add(this._edge.getCoordinate(o));r&&n.add(new Us(e.coord))},Ih.prototype.iterator=function(){return this._nodeMap.values().iterator()},Ih.prototype.addSplitEdges=function(t){this.addEndpoints(),this.addCollapsedNodes();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next(),r=this.createSplitEdge(n,i);t.add(r),n=i}},Ih.prototype.findCollapseIndex=function(t,e,n){if(!t.coord.equals2D(e.coord))return!1;var i=e.segmentIndex-t.segmentIndex;return e.isInterior()||i--,1===i&&(n[0]=t.segmentIndex+1,!0)},Ih.prototype.findCollapsesFromInsertedNodes=function(t){for(var e=new Array(1).fill(null),n=this.iterator(),i=n.next();n.hasNext();){var r=n.next();this.findCollapseIndex(i,r,e)&&t.add(new tl(e[0])),i=r}},Ih.prototype.getEdge=function(){return this._edge},Ih.prototype.addEndpoints=function(){var t=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(t),t)},Ih.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,i=this._edge.getCoordinate(e.segmentIndex),r=e.isInterior()||!e.coord.equals2D(i);r||n--;var o=new Array(n).fill(null),a=0;o[a++]=new Us(t.coord);for(var s=t.segmentIndex+1;s<=e.segmentIndex;s++)o[a++]=this._edge.getCoordinate(s);return r&&(o[a]=new Us(e.coord)),new Nh(o,this._edge.getData())},Ih.prototype.add=function(t,e){var n=new Eh(this._edge,t,e,this._edge.getSegmentOctant(e)),i=this._nodeMap.get(n);return null!==i?(wl.isTrue(i.coord.equals2D(t),"Found equal nodes with different coordinates"),i):(this._nodeMap.put(n,n),n)},Ih.prototype.checkSplitEdgesCorrectness=function(t){var e=this._edge.getCoordinates(),n=t.get(0).getCoordinate(0);if(!n.equals2D(e[0]))throw new xl("bad split edge start point at "+n);var i=t.get(t.size()-1).getCoordinates(),r=i[i.length-1];if(!r.equals2D(e[e.length-1]))throw new xl("bad split edge end point at "+r)},Ih.prototype.interfaces_=function(){return[]},Ih.prototype.getClass=function(){return Ih};var Lh=function(){};Lh.prototype.interfaces_=function(){return[]},Lh.prototype.getClass=function(){return Lh},Lh.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new Fs("Cannot compute the octant for point ( "+t+", "+e+" )");var n=Math.abs(t),i=Math.abs(e);return 0<=t?0<=e?i<=n?0:1:i<=n?7:6:0<=e?i<=n?3:2:i<=n?4:5}if(arguments[0]instanceof Us&&arguments[1]instanceof Us){var r=arguments[0],o=arguments[1],a=o.x-r.x,s=o.y-r.y;if(0==a&&0==s)throw new Fs("Cannot compute the octant for two identical points "+r);return Lh.octant(a,s)}};var Rh=function(){};Rh.prototype.getCoordinates=function(){},Rh.prototype.size=function(){},Rh.prototype.getCoordinate=function(t){},Rh.prototype.isClosed=function(){},Rh.prototype.setData=function(t){},Rh.prototype.getData=function(){},Rh.prototype.interfaces_=function(){return[]},Rh.prototype.getClass=function(){return Rh};var Oh=function(){};Oh.prototype.addIntersection=function(t,e){},Oh.prototype.interfaces_=function(){return[Rh]},Oh.prototype.getClass=function(){return Oh};var Nh=function(){this._nodeList=new Ih(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};Nh.prototype.getCoordinates=function(){return this._pts},Nh.prototype.size=function(){return this._pts.length},Nh.prototype.getCoordinate=function(t){return this._pts[t]},Nh.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Nh.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},Nh.prototype.setData=function(t){this._data=t},Nh.prototype.safeOctant=function(t,e){return t.equals2D(e)?0:Lh.octant(t,e)},Nh.prototype.getData=function(){return this._data},Nh.prototype.addIntersection=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[3],o=new Us(n.getIntersection(r));this.addIntersection(o,i)}},Nh.prototype.toString=function(){return vl.toLineString(new Eu(this._pts))},Nh.prototype.getNodeList=function(){return this._nodeList},Nh.prototype.addIntersectionNode=function(t,e){var n=e,i=n+1;if(i<this._pts.length){var r=this._pts[i];t.equals2D(r)&&(n=i)}return this._nodeList.add(t,n)},Nh.prototype.addIntersections=function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++)this.addIntersection(t,e,n,i)},Nh.prototype.interfaces_=function(){return[Oh]},Nh.prototype.getClass=function(){return Nh},Nh.getNodedSubstrings=function(){if(1===arguments.length){var t=arguments[0],e=new Ul;return Nh.getNodedSubstrings(t,e),e}if(2===arguments.length)for(var n=arguments[0],i=arguments[1],r=n.iterator();r.hasNext();)r.next().getNodeList().addSplitEdges(i)};var kh=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new Us,this.p1=new Us;else if(1===arguments.length){var t=arguments[0];this.p0=new Us(t.p0),this.p1=new Us(t.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2],r=arguments[3];this.p0=new Us(e,n),this.p1=new Us(i,r)}},zh={serialVersionUID:{configurable:!0}};kh.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},kh.prototype.orientationIndex=function(){if(arguments[0]instanceof kh){var t=arguments[0],e=Tl.orientationIndex(this.p0,this.p1,t.p0),n=Tl.orientationIndex(this.p0,this.p1,t.p1);return 0<=e&&0<=n?Math.max(e,n):e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof Us){var i=arguments[0];return Tl.orientationIndex(this.p0,this.p1,i)}},kh.prototype.toGeometry=function(t){return t.createLineString([this.p0,this.p1])},kh.prototype.isVertical=function(){return this.p0.x===this.p1.x},kh.prototype.equals=function(t){if(!(t instanceof kh))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},kh.prototype.intersection=function(t){var e=new Sl;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},kh.prototype.project=function(){if(arguments[0]instanceof Us){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new Us(t);var e=this.projectionFactor(t),n=new Us;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof kh){var i=arguments[0],r=this.projectionFactor(i.p0),o=this.projectionFactor(i.p1);if(1<=r&&1<=o)return null;if(r<=0&&o<=0)return null;var a=this.project(i.p0);r<0&&(a=this.p0),1<r&&(a=this.p1);var s=this.project(i.p1);return o<0&&(s=this.p0),1<o&&(s=this.p1),new kh(a,s)}},kh.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},kh.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},kh.prototype.getCoordinate=function(t){return 0===t?this.p0:this.p1},kh.prototype.distancePerpendicular=function(t){return Tl.distancePointLinePerpendicular(t,this.p0,this.p1)},kh.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},kh.prototype.midPoint=function(){return kh.midPoint(this.p0,this.p1)},kh.prototype.projectionFactor=function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,i=e*e+n*n;return i<=0?Gs.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/i},kh.prototype.closestPoints=function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),i=Gs.MAX_VALUE,r=null,o=this.closestPoint(t.p0);i=o.distance(t.p0),n[0]=o,n[1]=t.p0;var a=this.closestPoint(t.p1);(r=a.distance(t.p1))<i&&(i=r,n[0]=a,n[1]=t.p1);var s=t.closestPoint(this.p0);(r=s.distance(this.p0))<i&&(i=r,n[0]=this.p0,n[1]=s);var l=t.closestPoint(this.p1);return(r=l.distance(this.p1))<i&&(i=r,n[0]=this.p1,n[1]=l),n},kh.prototype.closestPoint=function(t){var e=this.projectionFactor(t);return 0<e&&e<1?this.project(t):this.p0.distance(t)<this.p1.distance(t)?this.p0:this.p1},kh.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},kh.prototype.getLength=function(){return this.p0.distance(this.p1)},kh.prototype.compareTo=function(t){var e=t,n=this.p0.compareTo(e.p0);return 0!==n?n:this.p1.compareTo(e.p1)},kh.prototype.reverse=function(){var t=this.p0;this.p0=this.p1,this.p1=t},kh.prototype.equalsTopo=function(t){return this.p0.equals(t.p0)&&(this.p1.equals(t.p1)||this.p0.equals(t.p1))&&this.p1.equals(t.p0)},kh.prototype.lineIntersection=function(t){try{return cl.intersection(this.p0,this.p1,t.p0,t.p1)}catch(t){if(!(t instanceof ul))throw t}return null},kh.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},kh.prototype.pointAlongOffset=function(t,e){var n=this.p0.x+t*(this.p1.x-this.p0.x),i=this.p0.y+t*(this.p1.y-this.p0.y),r=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,a=Math.sqrt(r*r+o*o),s=0,l=0;if(0!==e){if(a<=0)throw new Error("Cannot compute offset from zero-length line segment");s=e*r/a,l=e*o/a}return new Us(n-l,i+s)},kh.prototype.setCoordinates=function(){if(1===arguments.length){var t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.p0.x=e.x,this.p0.y=e.y,this.p1.x=n.x,this.p1.y=n.y}},kh.prototype.segmentFraction=function(t){var e=this.projectionFactor(t);return e<0?e=0:(1<e||Gs.isNaN(e))&&(e=1),e},kh.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},kh.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},kh.prototype.distance=function(){if(arguments[0]instanceof kh){var t=arguments[0];return Tl.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof Us){var e=arguments[0];return Tl.distancePointLine(e,this.p0,this.p1)}},kh.prototype.pointAlong=function(t){var e=new Us;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},kh.prototype.hashCode=function(){var t=Gs.doubleToLongBits(this.p0.x);t^=31*Gs.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=Gs.doubleToLongBits(this.p1.x);return n^=31*Gs.doubleToLongBits(this.p1.y),e^Math.trunc(n)^Math.trunc(n>>32)},kh.prototype.interfaces_=function(){return[Vs,pr]},kh.prototype.getClass=function(){return kh},kh.midPoint=function(t,e){return new Us((t.x+e.x)/2,(t.y+e.y)/2)},zh.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(kh,zh);var Dh=function(){this.tempEnv1=new pl,this.tempEnv2=new pl,this._overlapSeg1=new kh,this._overlapSeg2=new kh};Dh.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];t.getLineSegment(e,this._overlapSeg1),n.getLineSegment(i,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},Dh.prototype.interfaces_=function(){return[]},Dh.prototype.getClass=function(){return Dh};var Fh=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._pts=t,this._start=e,this._end=n,this._context=i};Fh.prototype.getLineSegment=function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]},Fh.prototype.computeSelect=function(t,e,n,i){var r=this._pts[e],o=this._pts[n];if(i.tempEnv1.init(r,o),n-e==1)return i.select(this,e),null;if(!t.intersects(i.tempEnv1))return null;var a=Math.trunc((e+n)/2);e<a&&this.computeSelect(t,e,a,i),a<n&&this.computeSelect(t,a,n,i)},Fh.prototype.getCoordinates=function(){for(var t=new Array(this._end-this._start+1).fill(null),e=0,n=this._start;n<=this._end;n++)t[e++]=this._pts[n];return t},Fh.prototype.computeOverlaps=function(t,e){this.computeOverlapsInternal(this._start,this._end,t,t._start,t._end,e)},Fh.prototype.setId=function(t){this._id=t},Fh.prototype.select=function(t,e){this.computeSelect(t,this._start,this._end,e)},Fh.prototype.getEnvelope=function(){if(null===this._env){var t=this._pts[this._start],e=this._pts[this._end];this._env=new pl(t,e)}return this._env},Fh.prototype.getEndIndex=function(){return this._end},Fh.prototype.getStartIndex=function(){return this._start},Fh.prototype.getContext=function(){return this._context},Fh.prototype.getId=function(){return this._id},Fh.prototype.computeOverlapsInternal=function(t,e,n,i,r,o){var a=this._pts[t],s=this._pts[e],l=n._pts[i],u=n._pts[r];if(e-t==1&&r-i==1)return o.overlap(this,t,n,i),null;if(o.tempEnv1.init(a,s),o.tempEnv2.init(l,u),!o.tempEnv1.intersects(o.tempEnv2))return null;var h=Math.trunc((t+e)/2),c=Math.trunc((i+r)/2);t<h&&(i<c&&this.computeOverlapsInternal(t,h,n,i,c,o),c<r&&this.computeOverlapsInternal(t,h,n,c,r,o)),h<e&&(i<c&&this.computeOverlapsInternal(h,e,n,i,c,o),c<r&&this.computeOverlapsInternal(h,e,n,c,r,o))},Fh.prototype.interfaces_=function(){return[]},Fh.prototype.getClass=function(){return Fh};var Gh=function(){};Gh.prototype.interfaces_=function(){return[]},Gh.prototype.getClass=function(){return Gh},Gh.getChainStartIndices=function(t){var e=0,n=new Ul;n.add(new tl(e));do{var i=Gh.findChainEnd(t,e);n.add(new tl(i)),e=i}while(e<t.length-1);return Gh.toIntArray(n)},Gh.findChainEnd=function(t,e){for(var n=e;n<t.length-1&&t[n].equals2D(t[n+1]);)n++;if(n>=t.length-1)return t.length-1;for(var i=ah.quadrant(t[n],t[n+1]),r=e+1;r<t.length&&(t[r-1].equals2D(t[r])||ah.quadrant(t[r-1],t[r])===i);)r++;return r-1},Gh.getChains=function(){if(1===arguments.length){var t=arguments[0];return Gh.getChains(t,null)}if(2===arguments.length){for(var e=arguments[0],n=arguments[1],i=new Ul,r=Gh.getChainStartIndices(e),o=0;o<r.length-1;o++){var a=new Fh(e,r[o],r[o+1],n);i.add(a)}return i}},Gh.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var jh=function(){};jh.prototype.computeNodes=function(t){},jh.prototype.getNodedSubstrings=function(){},jh.prototype.interfaces_=function(){return[]},jh.prototype.getClass=function(){return jh};var Vh=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setSegmentIntersector(t)}};Vh.prototype.setSegmentIntersector=function(t){this._segInt=t},Vh.prototype.interfaces_=function(){return[jh]},Vh.prototype.getClass=function(){return Vh};var qh=function(e){function t(t){t?e.call(this,t):e.call(this),this._monoChains=new Ul,this._index=new Mh,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={SegmentOverlapAction:{configurable:!0}};return t.prototype.getMonotoneChains=function(){return this._monoChains},t.prototype.getNodedSubstrings=function(){return Nh.getNodedSubstrings(this._nodedSegStrings)},t.prototype.getIndex=function(){return this._index},t.prototype.add=function(t){for(var e=Gh.getChains(t.getCoordinates(),t).iterator();e.hasNext();){var n=e.next();n.setId(this._idCounter++),this._index.insert(n.getEnvelope(),n),this._monoChains.add(n)}},t.prototype.computeNodes=function(t){for(var e=(this._nodedSegStrings=t).iterator();e.hasNext();)this.add(e.next());this.intersectChains()},t.prototype.intersectChains=function(){for(var t=new Bh(this._segInt),e=this._monoChains.iterator();e.hasNext();)for(var n=e.next(),i=this._index.query(n.getEnvelope()).iterator();i.hasNext();){var r=i.next();if(r.getId()>n.getId()&&(n.computeOverlaps(r,t),this._nOverlaps++),this._segInt.isDone())return null}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.SegmentOverlapAction.get=function(){return Bh},Object.defineProperties(t,n),t}(Vh),Bh=function(a){function t(){a.call(this),this._si=null;var t=arguments[0];this._si=t}return a&&(t.__proto__=a),((t.prototype=Object.create(a&&a.prototype)).constructor=t).prototype.overlap=function(){if(4!==arguments.length)return a.prototype.overlap.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=t.getContext(),o=n.getContext();this._si.processIntersections(r,e,o,i)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Dh),Uh=function t(){if(this._quadrantSegments=t.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=t.CAP_ROUND,this._joinStyle=t.JOIN_ROUND,this._mitreLimit=t.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=t.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setQuadrantSegments(e)}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(i)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this.setQuadrantSegments(r),this.setEndCapStyle(o),this.setJoinStyle(a),this.setMitreLimit(s)}},Wh={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Uh.prototype.getEndCapStyle=function(){return this._endCapStyle},Uh.prototype.isSingleSided=function(){return this._isSingleSided},Uh.prototype.setQuadrantSegments=function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=Uh.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Uh.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==Uh.JOIN_ROUND&&(this._quadrantSegments=Uh.DEFAULT_QUADRANT_SEGMENTS)},Uh.prototype.getJoinStyle=function(){return this._joinStyle},Uh.prototype.setJoinStyle=function(t){this._joinStyle=t},Uh.prototype.setSimplifyFactor=function(t){this._simplifyFactor=t<0?0:t},Uh.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Uh.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Uh.prototype.setEndCapStyle=function(t){this._endCapStyle=t},Uh.prototype.getMitreLimit=function(){return this._mitreLimit},Uh.prototype.setMitreLimit=function(t){this._mitreLimit=t},Uh.prototype.setSingleSided=function(t){this._isSingleSided=t},Uh.prototype.interfaces_=function(){return[]},Uh.prototype.getClass=function(){return Uh},Uh.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},Wh.CAP_ROUND.get=function(){return 1},Wh.CAP_FLAT.get=function(){return 2},Wh.CAP_SQUARE.get=function(){return 3},Wh.JOIN_ROUND.get=function(){return 1},Wh.JOIN_MITRE.get=function(){return 2},Wh.JOIN_BEVEL.get=function(){return 3},Wh.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Wh.DEFAULT_MITRE_LIMIT.get=function(){return 5},Wh.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Uh,Wh);var Zh=function(t){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=Tl.COUNTERCLOCKWISE,this._inputLine=t||null},Xh={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Zh.prototype.isDeletable=function(t,e,n,i){var r=this._inputLine[t],o=this._inputLine[e],a=this._inputLine[n];return!!this.isConcave(r,o,a)&&!!this.isShallow(r,o,a,i)&&this.isShallowSampled(r,o,t,n,i)},Zh.prototype.deleteShallowConcavities=function(){for(var t=1,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e),i=!1;n<this._inputLine.length;){var r=!1;this.isDeletable(t,e,n,this._distanceTol)&&(this._isDeleted[e]=Zh.DELETE,i=r=!0),t=r?n:e,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e)}return i},Zh.prototype.isShallowConcavity=function(t,e,n,i){return Tl.computeOrientation(t,e,n)===this._angleOrientation&&Tl.distancePointLine(e,t,n)<i},Zh.prototype.isShallowSampled=function(t,e,n,i,r){var o=Math.trunc((i-n)/Zh.NUM_PTS_TO_CHECK);o<=0&&(o=1);for(var a=n;a<i;a+=o)if(!this.isShallow(t,e,this._inputLine[a],r))return!1;return!0},Zh.prototype.isConcave=function(t,e,n){var i=Tl.computeOrientation(t,e,n)===this._angleOrientation;return i},Zh.prototype.simplify=function(t){this._distanceTol=Math.abs(t),t<0&&(this._angleOrientation=Tl.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);for(;this.deleteShallowConcavities(););return this.collapseLine()},Zh.prototype.findNextNonDeletedIndex=function(t){for(var e=t+1;e<this._inputLine.length&&this._isDeleted[e]===Zh.DELETE;)e++;return e},Zh.prototype.isShallow=function(t,e,n,i){return Tl.distancePointLine(e,t,n)<i},Zh.prototype.collapseLine=function(){for(var t=new Zl,e=0;e<this._inputLine.length;e++)this._isDeleted[e]!==Zh.DELETE&&t.add(this._inputLine[e]);return t.toCoordinateArray()},Zh.prototype.interfaces_=function(){return[]},Zh.prototype.getClass=function(){return Zh},Zh.simplify=function(t,e){return new Zh(t).simplify(e)},Xh.INIT.get=function(){return 0},Xh.DELETE.get=function(){return 1},Xh.KEEP.get=function(){return 1},Xh.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(Zh,Xh);var Hh=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new Ul},Yh={COORDINATE_ARRAY_TYPE:{configurable:!0}};Hh.prototype.getCoordinates=function(){return this._ptList.toArray(Hh.COORDINATE_ARRAY_TYPE)},Hh.prototype.setPrecisionModel=function(t){this._precisionModel=t},Hh.prototype.addPt=function(t){var e=new Us(t);if(this._precisionModel.makePrecise(e),this.isRedundant(e))return null;this._ptList.add(e)},Hh.prototype.revere=function(){},Hh.prototype.addPts=function(t,e){if(e)for(var n=0;n<t.length;n++)this.addPt(t[n]);else for(var i=t.length-1;0<=i;i--)this.addPt(t[i])},Hh.prototype.isRedundant=function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)<this._minimimVertexDistance},Hh.prototype.toString=function(){return(new Fu).createLineString(this.getCoordinates()).toString()},Hh.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var t=new Us(this._ptList.get(0)),e=this._ptList.get(this._ptList.size()-1);if(t.equals(e))return null;this._ptList.add(t)},Hh.prototype.setMinimumVertexDistance=function(t){this._minimimVertexDistance=t},Hh.prototype.interfaces_=function(){return[]},Hh.prototype.getClass=function(){return Hh},Yh.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(Hh,Yh);var Kh=function(){},Jh={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};Kh.prototype.interfaces_=function(){return[]},Kh.prototype.getClass=function(){return Kh},Kh.toDegrees=function(t){return 180*t/Math.PI},Kh.normalize=function(t){for(;t>Math.PI;)t-=Kh.PI_TIMES_2;for(;t<=-Math.PI;)t+=Kh.PI_TIMES_2;return t},Kh.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],i=n.x-e.x,r=n.y-e.y;return Math.atan2(r,i)}},Kh.isAcute=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return 0<i*(n.x-e.x)+r*(n.y-e.y)},Kh.isObtuse=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)<0},Kh.interiorAngle=function(t,e,n){var i=Kh.angle(e,t),r=Kh.angle(e,n);return Math.abs(r-i)},Kh.normalizePositive=function(t){if(t<0){for(;t<0;)t+=Kh.PI_TIMES_2;Kh.PI_TIMES_2<=t&&(t=0)}else{for(;Kh.PI_TIMES_2<=t;)t-=Kh.PI_TIMES_2;t<0&&(t=0)}return t},Kh.angleBetween=function(t,e,n){var i=Kh.angle(e,t),r=Kh.angle(e,n);return Kh.diff(i,r)},Kh.diff=function(t,e){var n=null;return(n=t<e?e-t:t-e)>Math.PI&&(n=2*Math.PI-n),n},Kh.toRadians=function(t){return t*Math.PI/180},Kh.getTurn=function(t,e){var n=Math.sin(e-t);return 0<n?Kh.COUNTERCLOCKWISE:n<0?Kh.CLOCKWISE:Kh.NONE},Kh.angleBetweenOriented=function(t,e,n){var i=Kh.angle(e,t),r=Kh.angle(e,n)-i;return r<=-Math.PI?r+Kh.PI_TIMES_2:r>Math.PI?r-Kh.PI_TIMES_2:r},Jh.PI_TIMES_2.get=function(){return 2*Math.PI},Jh.PI_OVER_2.get=function(){return Math.PI/2},Jh.PI_OVER_4.get=function(){return Math.PI/4},Jh.COUNTERCLOCKWISE.get=function(){return Tl.COUNTERCLOCKWISE},Jh.CLOCKWISE.get=function(){return Tl.CLOCKWISE},Jh.NONE.get=function(){return Tl.COLLINEAR},Object.defineProperties(Kh,Jh);var Qh=function t(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new kh,this._seg1=new kh,this._offset0=new kh,this._offset1=new kh,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],n=arguments[1],i=arguments[2];this._precisionModel=e,this._bufParams=n,this._li=new Sl,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),8<=n.getQuadrantSegments()&&n.getJoinStyle()===Uh.JOIN_ROUND&&(this._closingSegLengthFactor=t.MAX_CLOSING_SEG_LEN_FACTOR),this.init(i)},$h={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Qh.prototype.addNextSegment=function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=Tl.computeOrientation(this._s0,this._s1,this._s2),i=n===Tl.CLOCKWISE&&this._side===Zu.LEFT||n===Tl.COUNTERCLOCKWISE&&this._side===Zu.RIGHT;0===n?this.addCollinear(e):i?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},Qh.prototype.addLineEndCap=function(t,e){var n=new kh(t,e),i=new kh;this.computeOffsetSegment(n,Zu.LEFT,this._distance,i);var r=new kh;this.computeOffsetSegment(n,Zu.RIGHT,this._distance,r);var o=e.x-t.x,a=e.y-t.y,s=Math.atan2(a,o);switch(this._bufParams.getEndCapStyle()){case Uh.CAP_ROUND:this._segList.addPt(i.p1),this.addFilletArc(e,s+Math.PI/2,s-Math.PI/2,Tl.CLOCKWISE,this._distance),this._segList.addPt(r.p1);break;case Uh.CAP_FLAT:this._segList.addPt(i.p1),this._segList.addPt(r.p1);break;case Uh.CAP_SQUARE:var l=new Us;l.x=Math.abs(this._distance)*Math.cos(s),l.y=Math.abs(this._distance)*Math.sin(s);var u=new Us(i.p1.x+l.x,i.p1.y+l.y),h=new Us(r.p1.x+l.x,r.p1.y+l.y);this._segList.addPt(u),this._segList.addPt(h)}},Qh.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Qh.prototype.addMitreJoin=function(t,e,n,i){var r=!0,o=null;try{o=cl.intersection(e.p0,e.p1,n.p0,n.p1),(i<=0?1:o.distance(t)/Math.abs(i))>this._bufParams.getMitreLimit()&&(r=!1)}catch(t){if(!(t instanceof ul))throw t;o=new Us(0,0),r=!1}r?this._segList.addPt(o):this.addLimitedMitreJoin(e,n,i,this._bufParams.getMitreLimit())},Qh.prototype.addFilletCorner=function(t,e,n,i,r){var o=e.x-t.x,a=e.y-t.y,s=Math.atan2(a,o),l=n.x-t.x,u=n.y-t.y,h=Math.atan2(u,l);i===Tl.CLOCKWISE?s<=h&&(s+=2*Math.PI):h<=s&&(s-=2*Math.PI),this._segList.addPt(e),this.addFilletArc(t,s,h,i,r),this._segList.addPt(n)},Qh.prototype.addOutsideTurn=function(t,e){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*Qh.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===Uh.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===Uh.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(e&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,t,this._distance),this._segList.addPt(this._offset1.p0))},Qh.prototype.createSquare=function(t){this._segList.addPt(new Us(t.x+this._distance,t.y+this._distance)),this._segList.addPt(new Us(t.x+this._distance,t.y-this._distance)),this._segList.addPt(new Us(t.x-this._distance,t.y-this._distance)),this._segList.addPt(new Us(t.x-this._distance,t.y+this._distance)),this._segList.closeRing()},Qh.prototype.addSegments=function(t,e){this._segList.addPts(t,e)},Qh.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},Qh.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},Qh.prototype.initSideSegments=function(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},Qh.prototype.addLimitedMitreJoin=function(t,e,n,i){var r=this._seg0.p1,o=Kh.angle(r,this._seg0.p0),a=Kh.angleBetweenOriented(this._seg0.p0,r,this._seg1.p1)/2,s=Kh.normalize(o+a),l=Kh.normalize(s+Math.PI),u=i*n,h=n-u*Math.abs(Math.sin(a)),c=r.x+u*Math.cos(l),p=r.y+u*Math.sin(l),f=new Us(c,p),d=new kh(r,f),y=d.pointAlongOffset(1,h),m=d.pointAlongOffset(1,-h);this._side===Zu.LEFT?(this._segList.addPt(y),this._segList.addPt(m)):(this._segList.addPt(m),this._segList.addPt(y))},Qh.prototype.computeOffsetSegment=function(t,e,n,i){var r=e===Zu.LEFT?1:-1,o=t.p1.x-t.p0.x,a=t.p1.y-t.p0.y,s=Math.sqrt(o*o+a*a),l=r*n*o/s,u=r*n*a/s;i.p0.x=t.p0.x-u,i.p0.y=t.p0.y+l,i.p1.x=t.p1.x-u,i.p1.y=t.p1.y+l},Qh.prototype.addFilletArc=function(t,e,n,i,r){var o=i===Tl.CLOCKWISE?-1:1,a=Math.abs(e-n),s=Math.trunc(a/this._filletAngleQuantum+.5);if(s<1)return null;for(var l=a/s,u=0,h=new Us;u<a;){var c=e+o*u;h.x=t.x+r*Math.cos(c),h.y=t.y+r*Math.sin(c),this._segList.addPt(h),u+=l}},Qh.prototype.addInsideTurn=function(t,e){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*Qh.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),0<this._closingSegLengthFactor){var n=new Us((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var i=new Us((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(i)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Qh.prototype.createCircle=function(t){var e=new Us(t.x+this._distance,t.y);this._segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Qh.prototype.addBevelJoin=function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},Qh.prototype.init=function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Hh,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*Qh.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Qh.prototype.addCollinear=function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),2<=this._li.getIntersectionNum()&&(this._bufParams.getJoinStyle()===Uh.JOIN_BEVEL||this._bufParams.getJoinStyle()===Uh.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,Tl.CLOCKWISE,this._distance))},Qh.prototype.closeRing=function(){this._segList.closeRing()},Qh.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Qh.prototype.interfaces_=function(){return[]},Qh.prototype.getClass=function(){return Qh},$h.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},$h.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},$h.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},$h.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Qh,$h);var tc=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e};tc.prototype.getOffsetCurve=function(t,e){if(0===(this._distance=e))return null;var n=e<0,i=Math.abs(e),r=this.getSegGen(i);t.length<=1?this.computePointCurve(t[0],r):this.computeOffsetCurve(t,n,r);var o=r.getCoordinates();return n&&Xl.reverse(o),o},tc.prototype.computeSingleSidedBufferCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var r=Zh.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Zu.LEFT),n.addFirstSegment();for(var a=o-2;0<=a;a--)n.addNextSegment(r[a],!0)}else{n.addSegments(t,!1);var s=Zh.simplify(t,i),l=s.length-1;n.initSideSegments(s[0],s[1],Zu.LEFT),n.addFirstSegment();for(var u=2;u<=l;u++)n.addNextSegment(s[u],!0)}n.addLastSegment(),n.closeRing()},tc.prototype.computeRingBufferCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);e===Zu.RIGHT&&(i=-i);var r=Zh.simplify(t,i),o=r.length-1;n.initSideSegments(r[o-1],r[0],e);for(var a=1;a<=o;a++){var s=1!==a;n.addNextSegment(r[a],s)}n.closeRing()},tc.prototype.computeLineBufferCurve=function(t,e){var n=this.simplifyTolerance(this._distance),i=Zh.simplify(t,n),r=i.length-1;e.initSideSegments(i[0],i[1],Zu.LEFT);for(var o=2;o<=r;o++)e.addNextSegment(i[o],!0);e.addLastSegment(),e.addLineEndCap(i[r-1],i[r]);var a=Zh.simplify(t,-n),s=a.length-1;e.initSideSegments(a[s],a[s-1],Zu.LEFT);for(var l=s-2;0<=l;l--)e.addNextSegment(a[l],!0);e.addLastSegment(),e.addLineEndCap(a[1],a[0]),e.closeRing()},tc.prototype.computePointCurve=function(t,e){switch(this._bufParams.getEndCapStyle()){case Uh.CAP_ROUND:e.createCircle(t);break;case Uh.CAP_SQUARE:e.createSquare(t)}},tc.prototype.getLineCurve=function(t,e){if((this._distance=e)<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),i=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],i);else if(this._bufParams.isSingleSided()){var r=e<0;this.computeSingleSidedBufferCurve(t,r,i)}else this.computeLineBufferCurve(t,i);return i.getCoordinates()},tc.prototype.getBufferParameters=function(){return this._bufParams},tc.prototype.simplifyTolerance=function(t){return t*this._bufParams.getSimplifyFactor()},tc.prototype.getRingCurve=function(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return tc.copyCoordinates(t);var i=this.getSegGen(n);return this.computeRingBufferCurve(t,e,i),i.getCoordinates()},tc.prototype.computeOffsetCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){var r=Zh.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Zu.LEFT),n.addFirstSegment();for(var a=o-2;0<=a;a--)n.addNextSegment(r[a],!0)}else{var s=Zh.simplify(t,i),l=s.length-1;n.initSideSegments(s[0],s[1],Zu.LEFT),n.addFirstSegment();for(var u=2;u<=l;u++)n.addNextSegment(s[u],!0)}n.addLastSegment()},tc.prototype.getSegGen=function(t){return new Qh(this._precisionModel,this._bufParams,t)},tc.prototype.interfaces_=function(){return[]},tc.prototype.getClass=function(){return tc},tc.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;n<e.length;n++)e[n]=new Us(t[n]);return e};var ec=function(){this._subgraphs=null,this._seg=new kh,this._cga=new Tl;var t=arguments[0];this._subgraphs=t},nc={DepthSegment:{configurable:!0}};ec.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var t=arguments[0],e=new Ul,n=this._subgraphs.iterator();n.hasNext();){var i=n.next(),r=i.getEnvelope();t.y<r.getMinY()||t.y>r.getMaxY()||this.findStabbedSegments(t,i.getDirectedEdges(),e)}return e}if(3===arguments.length)if(Ks(arguments[2],Bl)&&arguments[0]instanceof Us&&arguments[1]instanceof uh){for(var o=arguments[0],a=arguments[1],s=arguments[2],l=a.getEdge().getCoordinates(),u=0;u<l.length-1;u++)if(this._seg.p0=l[u],this._seg.p1=l[u+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<o.x||this._seg.isHorizontal()||o.y<this._seg.p0.y||o.y>this._seg.p1.y||Tl.computeOrientation(this._seg.p0,this._seg.p1,o)===Tl.RIGHT)){var h=a.getDepth(Zu.LEFT);this._seg.p0.equals(l[u])||(h=a.getDepth(Zu.RIGHT));var c=new ic(this._seg,h);s.add(c)}}else if(Ks(arguments[2],Bl)&&arguments[0]instanceof Us&&Ks(arguments[1],Bl))for(var p=arguments[0],f=arguments[1],d=arguments[2],y=f.iterator();y.hasNext();){var m=y.next();m.isForward()&&this.findStabbedSegments(p,m,d)}},ec.prototype.getDepth=function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:_h.min(e)._leftDepth},ec.prototype.interfaces_=function(){return[]},ec.prototype.getClass=function(){return ec},nc.DepthSegment.get=function(){return ic},Object.defineProperties(ec,nc);var ic=function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new kh(t),this._leftDepth=e};ic.prototype.compareTo=function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n?n:0!=(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)},ic.prototype.compareX=function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},ic.prototype.toString=function(){return this._upwardSeg.toString()},ic.prototype.interfaces_=function(){return[Vs]},ic.prototype.getClass=function(){return ic};var rc=function(t,e,n){this.p0=t||null,this.p1=e||null,this.p2=n||null};rc.prototype.area=function(){return rc.area(this.p0,this.p1,this.p2)},rc.prototype.signedArea=function(){return rc.signedArea(this.p0,this.p1,this.p2)},rc.prototype.interpolateZ=function(t){if(null===t)throw new Fs("Supplied point is null.");return rc.interpolateZ(t,this.p0,this.p1,this.p2)},rc.prototype.longestSideLength=function(){return rc.longestSideLength(this.p0,this.p1,this.p2)},rc.prototype.isAcute=function(){return rc.isAcute(this.p0,this.p1,this.p2)},rc.prototype.circumcentre=function(){return rc.circumcentre(this.p0,this.p1,this.p2)},rc.prototype.area3D=function(){return rc.area3D(this.p0,this.p1,this.p2)},rc.prototype.centroid=function(){return rc.centroid(this.p0,this.p1,this.p2)},rc.prototype.inCentre=function(){return rc.inCentre(this.p0,this.p1,this.p2)},rc.prototype.interfaces_=function(){return[]},rc.prototype.getClass=function(){return rc},rc.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},rc.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},rc.det=function(t,e,n,i){return t*i-e*n},rc.interpolateZ=function(t,e,n,i){var r=e.x,o=e.y,a=n.x-r,s=i.x-r,l=n.y-o,u=i.y-o,h=a*u-s*l,c=t.x-r,p=t.y-o,f=(u*c-s*p)/h,d=(-l*c+a*p)/h;return e.z+f*(n.z-e.z)+d*(i.z-e.z)},rc.longestSideLength=function(t,e,n){var i=t.distance(e),r=e.distance(n),o=n.distance(t),a=i;return a<r&&(a=r),a<o&&(a=o),a},rc.isAcute=function(t,e,n){return!!Kh.isAcute(t,e,n)&&!!Kh.isAcute(e,n,t)&&!!Kh.isAcute(n,t,e)},rc.circumcentre=function(t,e,n){var i=n.x,r=n.y,o=t.x-i,a=t.y-r,s=e.x-i,l=e.y-r,u=2*rc.det(o,a,s,l),h=rc.det(a,o*o+a*a,l,s*s+l*l),c=rc.det(o,o*o+a*a,s,s*s+l*l);return new Us(i-h/u,r+c/u)},rc.perpendicularBisector=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=new cl(t.x+n/2,t.y+i/2,1),o=new cl(t.x-i+n/2,t.y+n+i/2,1);return new cl(r,o)},rc.angleBisector=function(t,e,n){var i=e.distance(t),r=i/(i+e.distance(n)),o=n.x-t.x,a=n.y-t.y;return new Us(t.x+r*o,t.y+r*a)},rc.area3D=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,o=e.z-t.z,a=n.x-t.x,s=n.y-t.y,l=n.z-t.z,u=r*l-o*s,h=o*a-i*l,c=i*s-r*a,p=u*u+h*h+c*c,f=Math.sqrt(p)/2;return f},rc.centroid=function(t,e,n){var i=(t.x+e.x+n.x)/3,r=(t.y+e.y+n.y)/3;return new Us(i,r)},rc.inCentre=function(t,e,n){var i=e.distance(n),r=t.distance(n),o=t.distance(e),a=i+r+o,s=(i*t.x+r*e.x+o*n.x)/a,l=(i*t.y+r*e.y+o*n.y)/a;return new Us(s,l)};var oc=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new Ul;var t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n};oc.prototype.addPoint=function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,Hs.EXTERIOR,Hs.INTERIOR)},oc.prototype.addPolygon=function(t){var e=this._distance,n=Zu.LEFT;this._distance<0&&(e=-this._distance,n=Zu.RIGHT);var i=t.getExteriorRing(),r=Xl.removeRepeatedPoints(i.getCoordinates());if(this._distance<0&&this.isErodedCompletely(i,this._distance))return null;if(this._distance<=0&&r.length<3)return null;this.addPolygonRing(r,e,n,Hs.EXTERIOR,Hs.INTERIOR);for(var o=0;o<t.getNumInteriorRing();o++){var a=t.getInteriorRingN(o),s=Xl.removeRepeatedPoints(a.getCoordinates());0<this._distance&&this.isErodedCompletely(a,-this._distance)||this.addPolygonRing(s,e,Zu.opposite(n),Hs.INTERIOR,Hs.EXTERIOR)}},oc.prototype.isTriangleErodedCompletely=function(t,e){var n=new rc(t[0],t[1],t[2]),i=n.inCentre();return Tl.distancePointLine(i,n.p0,n.p1)<Math.abs(e)},oc.prototype.addLineString=function(t){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var e=Xl.removeRepeatedPoints(t.getCoordinates()),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,Hs.EXTERIOR,Hs.INTERIOR)},oc.prototype.addCurve=function(t,e,n){if(null===t||t.length<2)return null;var i=new Nh(t,new $u(0,Hs.BOUNDARY,e,n));this._curveList.add(i)},oc.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},oc.prototype.addPolygonRing=function(t,e,n,i,r){if(0===e&&t.length<bu.MINIMUM_VALID_SIZE)return null;var o=i,a=r;t.length>=bu.MINIMUM_VALID_SIZE&&Tl.isCCW(t)&&(o=r,a=i,n=Zu.opposite(n));var s=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(s,o,a)},oc.prototype.add=function(t){if(t.isEmpty())return null;t instanceof _u?this.addPolygon(t):t instanceof mu?this.addLineString(t):t instanceof vu?this.addPoint(t):t instanceof wu?this.addCollection(t):t instanceof hu?this.addCollection(t):t instanceof Pu?this.addCollection(t):t instanceof uu&&this.addCollection(t)},oc.prototype.isErodedCompletely=function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,e);var i=t.getEnvelopeInternal(),r=Math.min(i.getHeight(),i.getWidth());return e<0&&2*Math.abs(e)>r},oc.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},oc.prototype.interfaces_=function(){return[]},oc.prototype.getClass=function(){return oc};var ac=function(){};ac.prototype.locate=function(t){},ac.prototype.interfaces_=function(){return[]},ac.prototype.getClass=function(){return ac};var sc=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var t=arguments[0];this._parent=t,this._atStart=!0,this._index=0,this._max=t.getNumGeometries()};sc.prototype.next=function(){if(this._atStart)return this._atStart=!1,sc.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new fr;var t=this._parent.getGeometryN(this._index++);return t instanceof uu?(this._subcollectionIterator=new sc(t),this._subcollectionIterator.next()):t},sc.prototype.remove=function(){throw new Error(this.getClass().getName())},sc.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},sc.prototype.interfaces_=function(){return[ql]},sc.prototype.getClass=function(){return sc},sc.isAtomic=function(t){return!(t instanceof uu)};var lc=function(){this._geom=null;var t=arguments[0];this._geom=t};lc.prototype.locate=function(t){return lc.locate(t,this._geom)},lc.prototype.interfaces_=function(){return[ac]},lc.prototype.getClass=function(){return lc},lc.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&Tl.isPointInRing(t,e.getCoordinates())},lc.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!lc.isPointInRing(t,n))return!1;for(var i=0;i<e.getNumInteriorRing();i++){var r=e.getInteriorRingN(i);if(lc.isPointInRing(t,r))return!1}return!0},lc.containsPoint=function(t,e){if(e instanceof _u)return lc.containsPointInPolygon(t,e);if(e instanceof uu)for(var n=new sc(e);n.hasNext();){var i=n.next();if(i!==e&&lc.containsPoint(t,i))return!0}return!1},lc.locate=function(t,e){return e.isEmpty()?Hs.EXTERIOR:lc.containsPoint(t,e)?Hs.INTERIOR:Hs.EXTERIOR};var uc=function(){this._edgeMap=new wr,this._edgeList=null,this._ptInAreaLocation=[Hs.NONE,Hs.NONE]};uc.prototype.getNextCW=function(t){this.getEdges();var e=this._edgeList.indexOf(t),n=e-1;return 0===e&&(n=this._edgeList.size()-1),this._edgeList.get(n)},uc.prototype.propagateSideLabels=function(t){for(var e=Hs.NONE,n=this.iterator();n.hasNext();){var i=n.next().getLabel();i.isArea(t)&&i.getLocation(t,Zu.LEFT)!==Hs.NONE&&(e=i.getLocation(t,Zu.LEFT))}if(e===Hs.NONE)return null;for(var r=e,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getLabel();if(s.getLocation(t,Zu.ON)===Hs.NONE&&s.setLocation(t,Zu.ON,r),s.isArea(t)){var l=s.getLocation(t,Zu.LEFT),u=s.getLocation(t,Zu.RIGHT);if(u!==Hs.NONE){if(u!==r)throw new Yu("side location conflict",a.getCoordinate());l===Hs.NONE&&wl.shouldNeverReachHere("found single null side (at "+a.getCoordinate()+")"),r=l}else wl.isTrue(s.getLocation(t,Zu.LEFT)===Hs.NONE,"found single null side"),s.setLocation(t,Zu.RIGHT,r),s.setLocation(t,Zu.LEFT,r)}}},uc.prototype.getCoordinate=function(){var t=this.iterator();return t.hasNext()?t.next().getCoordinate():null},uc.prototype.print=function(t){hl.out.println("EdgeEndStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();)e.next().print(t)},uc.prototype.isAreaLabelsConsistent=function(t){return this.computeEdgeEndLabels(t.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},uc.prototype.checkAreaLabelsConsistent=function(t){var e=this.getEdges();if(e.size()<=0)return!0;var n=e.size()-1,i=e.get(n).getLabel().getLocation(t,Zu.LEFT);wl.isTrue(i!==Hs.NONE,"Found unlabelled area edge");for(var r=i,o=this.iterator();o.hasNext();){var a=o.next().getLabel();wl.isTrue(a.isArea(t),"Found non-area edge");var s=a.getLocation(t,Zu.LEFT),l=a.getLocation(t,Zu.RIGHT);if(s===l)return!1;if(l!==r)return!1;r=s}return!0},uc.prototype.findIndex=function(t){this.iterator();for(var e=0;e<this._edgeList.size();e++)if(this._edgeList.get(e)===t)return e;return-1},uc.prototype.iterator=function(){return this.getEdges().iterator()},uc.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new Ul(this._edgeMap.values())),this._edgeList},uc.prototype.getLocation=function(t,e,n){return this._ptInAreaLocation[t]===Hs.NONE&&(this._ptInAreaLocation[t]=lc.locate(e,n[t].getGeometry())),this._ptInAreaLocation[t]},uc.prototype.toString=function(){var t=new $s;t.append("EdgeEndStar: "+this.getCoordinate()),t.append("\n");for(var e=this.iterator();e.hasNext();){var n=e.next();t.append(n),t.append("\n")}return t.toString()},uc.prototype.computeEdgeEndLabels=function(t){for(var e=this.iterator();e.hasNext();)e.next().computeLabel(t)},uc.prototype.computeLabelling=function(t){this.computeEdgeEndLabels(t[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var e=[!1,!1],n=this.iterator();n.hasNext();)for(var i=n.next().getLabel(),r=0;r<2;r++)i.isLine(r)&&i.getLocation(r)===Hs.BOUNDARY&&(e[r]=!0);for(var o=this.iterator();o.hasNext();)for(var a=o.next(),s=a.getLabel(),l=0;l<2;l++)if(s.isAnyNull(l)){var u=Hs.NONE;if(e[l])u=Hs.EXTERIOR;else{var h=a.getCoordinate();u=this.getLocation(l,h,t)}s.setAllLocationsIfNull(l,u)}},uc.prototype.getDegree=function(){return this._edgeMap.size()},uc.prototype.insertEdgeEnd=function(t,e){this._edgeMap.put(t,e),this._edgeList=null},uc.prototype.interfaces_=function(){return[]},uc.prototype.getClass=function(){return uc};var hc=function(o){function t(){o.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return o&&(t.__proto__=o),((t.prototype=Object.create(o&&o.prototype)).constructor=t).prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var t=null,e=null,n=this._SCANNING_FOR_INCOMING,i=0;i<this._resultAreaEdgeList.size();i++){var r=this._resultAreaEdgeList.get(i),o=r.getSym();if(r.getLabel().isArea())switch(null===t&&r.isInResult()&&(t=r),n){case this._SCANNING_FOR_INCOMING:if(!o.isInResult())continue;e=o,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!r.isInResult())continue;e.setNext(r),n=this._SCANNING_FOR_INCOMING}}if(n===this._LINKING_TO_OUTGOING){if(null===t)throw new Yu("no outgoing dirEdge found",this.getCoordinate());wl.isTrue(t.isInResult(),"unable to link last incoming dirEdge"),e.setNext(t)}},t.prototype.insert=function(t){var e=t;this.insertEdgeEnd(e,e)},t.prototype.getRightmostEdge=function(){var t=this.getEdges(),e=t.size();if(e<1)return null;var n=t.get(0);if(1===e)return n;var i=t.get(e-1),r=n.getQuadrant(),o=i.getQuadrant();return ah.isNorthern(r)&&ah.isNorthern(o)?n:ah.isNorthern(r)||ah.isNorthern(o)?0!==n.getDy()?n:0!==i.getDy()?i:(wl.shouldNeverReachHere("found two horizontal edges incident on node"),null):i},t.prototype.print=function(t){hl.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){var n=e.next();t.print("out "),n.print(t),t.println(),t.print("in "),n.getSym().print(t),t.println()}},t.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new Ul;for(var t=this.iterator();t.hasNext();){var e=t.next();(e.isInResult()||e.getSym().isInResult())&&this._resultAreaEdgeList.add(e)}return this._resultAreaEdgeList},t.prototype.updateLabelling=function(t){for(var e=this.iterator();e.hasNext();){var n=e.next().getLabel();n.setAllLocationsIfNull(0,t.getLocation(0)),n.setAllLocationsIfNull(1,t.getLocation(1))}},t.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var t=null,e=null,n=this._edgeList.size()-1;0<=n;n--){var i=this._edgeList.get(n),r=i.getSym();null===e&&(e=r),null!==t&&r.setNext(t),t=i}e.setNext(t)},t.prototype.computeDepths=function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=t.getDepth(Zu.LEFT),i=t.getDepth(Zu.RIGHT),r=this.computeDepths(e+1,this._edgeList.size(),n);if(this.computeDepths(0,e,r)!==i)throw new Yu("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var o=arguments[0],a=arguments[1],s=arguments[2],l=o;l<a;l++){var u=this._edgeList.get(l);u.setEdgeDepths(Zu.RIGHT,s),s=u.getDepth(Zu.LEFT)}return s}},t.prototype.mergeSymLabels=function(){for(var t=this.iterator();t.hasNext();){var e=t.next();e.getLabel().merge(e.getSym().getLabel())}},t.prototype.linkMinimalDirectedEdges=function(t){for(var e=null,n=null,i=this._SCANNING_FOR_INCOMING,r=this._resultAreaEdgeList.size()-1;0<=r;r--){var o=this._resultAreaEdgeList.get(r),a=o.getSym();switch(null===e&&o.getEdgeRing()===t&&(e=o),i){case this._SCANNING_FOR_INCOMING:if(a.getEdgeRing()!==t)continue;n=a,i=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),i=this._SCANNING_FOR_INCOMING}}i===this._LINKING_TO_OUTGOING&&(wl.isTrue(null!==e,"found null for first outgoing dirEdge"),wl.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},t.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();)e.next().isInResult()&&t++;return t}if(1===arguments.length){for(var n=arguments[0],i=0,r=this.iterator();r.hasNext();)r.next().getEdgeRing()===n&&i++;return i}},t.prototype.getLabel=function(){return this._label},t.prototype.findCoveredLineEdges=function(){for(var t=Hs.NONE,e=this.iterator();e.hasNext();){var n=e.next(),i=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=Hs.INTERIOR;break}if(i.isInResult()){t=Hs.EXTERIOR;break}}}if(t===Hs.NONE)return null;for(var r=t,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getSym();a.isLineEdge()?a.getEdge().setCovered(r===Hs.INTERIOR):(a.isInResult()&&(r=Hs.EXTERIOR),s.isInResult()&&(r=Hs.INTERIOR))}},t.prototype.computeLabelling=function(t){o.prototype.computeLabelling.call(this,t),this._label=new $u(Hs.NONE);for(var e=this.iterator();e.hasNext();)for(var n=e.next().getEdge().getLabel(),i=0;i<2;i++){var r=n.getLocation(i);r!==Hs.INTERIOR&&r!==Hs.BOUNDARY||this._label.setLocation(i,Hs.INTERIOR)}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(uc),cc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.createNode=function(t){return new rh(t,new hc)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(hh),pc=function t(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=t.orientation(e)};pc.prototype.compareTo=function(t){var e=t;return pc.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},pc.prototype.interfaces_=function(){return[Vs]},pc.prototype.getClass=function(){return pc},pc.orientation=function(t){return 1===Xl.increasingDirection(t)},pc.compareOriented=function(t,e,n,i){for(var r=e?1:-1,o=i?1:-1,a=e?t.length:-1,s=i?n.length:-1,l=e?0:t.length-1,u=i?0:n.length-1;;){var h=t[l].compareTo(n[u]);if(0!==h)return h;var c=(l+=r)===a,p=(u+=o)===s;if(c&&!p)return-1;if(!c&&p)return 1;if(c&&p)return 0}};var fc=function(){this._edges=new Ul,this._ocaMap=new wr};fc.prototype.print=function(t){t.print("MULTILINESTRING ( ");for(var e=0;e<this._edges.size();e++){var n=this._edges.get(e);0<e&&t.print(","),t.print("(");for(var i=n.getCoordinates(),r=0;r<i.length;r++)0<r&&t.print(","),t.print(i[r].x+" "+i[r].y);t.println(")")}t.print(") ")},fc.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},fc.prototype.findEdgeIndex=function(t){for(var e=0;e<this._edges.size();e++)if(this._edges.get(e).equals(t))return e;return-1},fc.prototype.iterator=function(){return this._edges.iterator()},fc.prototype.getEdges=function(){return this._edges},fc.prototype.get=function(t){return this._edges.get(t)},fc.prototype.findEqualEdge=function(t){var e=new pc(t.getCoordinates());return this._ocaMap.get(e)},fc.prototype.add=function(t){this._edges.add(t);var e=new pc(t.getCoordinates());this._ocaMap.put(e,t)},fc.prototype.interfaces_=function(){return[]},fc.prototype.getClass=function(){return fc};var dc=function(){};dc.prototype.processIntersections=function(t,e,n,i){},dc.prototype.isDone=function(){},dc.prototype.interfaces_=function(){return[]},dc.prototype.getClass=function(){return dc};var yc=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var t=arguments[0];this._li=t};yc.prototype.isTrivialIntersection=function(t,e,n,i){if(t===n&&1===this._li.getIntersectionNum()){if(yc.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.size()-1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},yc.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},yc.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},yc.prototype.getLineIntersector=function(){return this._li},yc.prototype.hasProperIntersection=function(){return this._hasProper},yc.prototype.processIntersections=function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[i],s=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,a,s),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(t,e,n,i)||(this._hasIntersection=!0,t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},yc.prototype.hasIntersection=function(){return this._hasIntersection},yc.prototype.isDone=function(){return!1},yc.prototype.hasInteriorIntersection=function(){return this._hasInterior},yc.prototype.interfaces_=function(){return[dc]},yc.prototype.getClass=function(){return yc},yc.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var mc=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.coord=new Us(t),this.segmentIndex=e,this.dist=n};mc.prototype.getSegmentIndex=function(){return this.segmentIndex},mc.prototype.getCoordinate=function(){return this.coord},mc.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex),t.println(" dist = "+this.dist)},mc.prototype.compareTo=function(t){var e=t;return this.compare(e.segmentIndex,e.dist)},mc.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===t},mc.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},mc.prototype.getDistance=function(){return this.dist},mc.prototype.compare=function(t,e){return this.segmentIndex<t?-1:this.segmentIndex>t?1:this.dist<e?-1:this.dist>e?1:0},mc.prototype.interfaces_=function(){return[Vs]},mc.prototype.getClass=function(){return mc};var gc=function(){this._nodeMap=new wr,this.edge=null;var t=arguments[0];this.edge=t};gc.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},gc.prototype.iterator=function(){return this._nodeMap.values().iterator()},gc.prototype.addSplitEdges=function(t){this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next(),r=this.createSplitEdge(n,i);t.add(r),n=i}},gc.prototype.addEndpoints=function(){var t=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[t],t,0)},gc.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,i=this.edge.pts[e.segmentIndex],r=0<e.dist||!e.coord.equals2D(i);r||n--;var o=new Array(n).fill(null),a=0;o[a++]=new Us(t.coord);for(var s=t.segmentIndex+1;s<=e.segmentIndex;s++)o[a++]=this.edge.pts[s];return r&&(o[a]=e.coord),new bc(o,new $u(this.edge._label))},gc.prototype.add=function(t,e,n){var i=new mc(t,e,n),r=this._nodeMap.get(i);return null!==r?r:(this._nodeMap.put(i,i),i)},gc.prototype.isIntersection=function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1},gc.prototype.interfaces_=function(){return[]},gc.prototype.getClass=function(){return gc};var vc=function(){};vc.prototype.getChainStartIndices=function(t){var e=0,n=new Ul;n.add(new tl(e));do{var i=this.findChainEnd(t,e);n.add(new tl(i)),e=i}while(e<t.length-1);return vc.toIntArray(n)},vc.prototype.findChainEnd=function(t,e){for(var n=ah.quadrant(t[e],t[e+1]),i=e+1;i<t.length&&ah.quadrant(t[i-1],t[i])===n;)i++;return i-1},vc.prototype.interfaces_=function(){return[]},vc.prototype.getClass=function(){return vc},vc.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var xc=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new pl,this.env2=new pl;var t=arguments[0];this.e=t,this.pts=t.getCoordinates();var e=new vc;this.startIndex=e.getChainStartIndices(this.pts)};xc.prototype.getCoordinates=function(){return this.pts},xc.prototype.getMaxX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return n<e?e:n},xc.prototype.getMinX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e<n?e:n},xc.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.computeIntersectsForChain(this.startIndex[t],this.startIndex[t+1],e,e.startIndex[n],e.startIndex[n+1],i)}else if(6===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3],l=arguments[4],u=arguments[5],h=this.pts[r],c=this.pts[o],p=a.pts[s],f=a.pts[l];if(o-r==1&&l-s==1)return u.addIntersections(this.e,r,a.e,s),null;if(this.env1.init(h,c),this.env2.init(p,f),!this.env1.intersects(this.env2))return null;var d=Math.trunc((r+o)/2),y=Math.trunc((s+l)/2);r<d&&(s<y&&this.computeIntersectsForChain(r,d,a,s,y,u),y<l&&this.computeIntersectsForChain(r,d,a,y,l,u)),d<o&&(s<y&&this.computeIntersectsForChain(d,o,a,s,y,u),y<l&&this.computeIntersectsForChain(d,o,a,y,l,u))}},xc.prototype.getStartIndexes=function(){return this.startIndex},xc.prototype.computeIntersects=function(t,e){for(var n=0;n<this.startIndex.length-1;n++)for(var i=0;i<t.startIndex.length-1;i++)this.computeIntersectsForChain(n,t,i,e)},xc.prototype.interfaces_=function(){return[]},xc.prototype.getClass=function(){return xc};var _c=function t(){this._depth=Array(2).fill().map(function(){return Array(3)});for(var e=0;e<2;e++)for(var n=0;n<3;n++)this._depth[e][n]=t.NULL_VALUE},wc={NULL_VALUE:{configurable:!0}};_c.prototype.getDepth=function(t,e){return this._depth[t][e]},_c.prototype.setDepth=function(t,e,n){this._depth[t][e]=n},_c.prototype.isNull=function(){if(0===arguments.length){for(var t=0;t<2;t++)for(var e=0;e<3;e++)if(this._depth[t][e]!==_c.NULL_VALUE)return!1;return!0}if(1===arguments.length){var n=arguments[0];return this._depth[n][1]===_c.NULL_VALUE}if(2===arguments.length){var i=arguments[0],r=arguments[1];return this._depth[i][r]===_c.NULL_VALUE}},_c.prototype.normalize=function(){for(var t=0;t<2;t++)if(!this.isNull(t)){var e=this._depth[t][1];this._depth[t][2]<e&&(e=this._depth[t][2]),e<0&&(e=0);for(var n=1;n<3;n++){var i=0;this._depth[t][n]>e&&(i=1),this._depth[t][n]=i}}},_c.prototype.getDelta=function(t){return this._depth[t][Zu.RIGHT]-this._depth[t][Zu.LEFT]},_c.prototype.getLocation=function(t,e){return this._depth[t][e]<=0?Hs.EXTERIOR:Hs.INTERIOR},_c.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},_c.prototype.add=function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var i=t.getLocation(e,n);i!==Hs.EXTERIOR&&i!==Hs.INTERIOR||(this.isNull(e,n)?this._depth[e][n]=_c.depthAtLocation(i):this._depth[e][n]+=_c.depthAtLocation(i))}else if(3===arguments.length){var r=arguments[0],o=arguments[1];arguments[2]===Hs.INTERIOR&&this._depth[r][o]++}},_c.prototype.interfaces_=function(){return[]},_c.prototype.getClass=function(){return _c},_c.depthAtLocation=function(t){return t===Hs.EXTERIOR?0:t===Hs.INTERIOR?1:_c.NULL_VALUE},wc.NULL_VALUE.get=function(){return-1},Object.defineProperties(_c,wc);var bc=function(i){function a(){if(i.call(this),this.pts=null,this._env=null,this.eiList=new gc(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new _c,this._depthDelta=0,1===arguments.length){var t=arguments[0];a.call(this,t,null)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.pts=e,this._label=n}}return i&&(a.__proto__=i),((a.prototype=Object.create(i&&i.prototype)).constructor=a).prototype.getDepth=function(){return this._depth},a.prototype.getCollapsedEdge=function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new a(t,$u.toLineLabel(this._label))},a.prototype.isIsolated=function(){return this._isIsolated},a.prototype.getCoordinates=function(){return this.pts},a.prototype.setIsolated=function(t){this._isIsolated=t},a.prototype.setName=function(t){this._name=t},a.prototype.equals=function(t){if(!(t instanceof a))return!1;var e=t;if(this.pts.length!==e.pts.length)return!1;for(var n=!0,i=!0,r=this.pts.length,o=0;o<this.pts.length;o++)if(this.pts[o].equals2D(e.pts[o])||(n=!1),this.pts[o].equals2D(e.pts[--r])||(i=!1),!n&&!i)return!1;return!0},a.prototype.getCoordinate=function(){if(0===arguments.length)return 0<this.pts.length?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},a.prototype.print=function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e<this.pts.length;e++)0<e&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this._label+" "+this._depthDelta)},a.prototype.computeIM=function(t){a.updateIM(this._label,t)},a.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},a.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},a.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},a.prototype.getDepthDelta=function(){return this._depthDelta},a.prototype.getNumPoints=function(){return this.pts.length},a.prototype.printReverse=function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;0<=e;e--)t.print(this.pts[e]+" ");t.println("")},a.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new xc(this)),this._mce},a.prototype.getEnvelope=function(){if(null===this._env){this._env=new pl;for(var t=0;t<this.pts.length;t++)this._env.expandToInclude(this.pts[t])}return this._env},a.prototype.addIntersection=function(t,e,n,i){var r=new Us(t.getIntersection(i)),o=e,a=t.getEdgeDistance(n,i),s=o+1;if(s<this.pts.length){var l=this.pts[s];r.equals2D(l)&&(o=s,a=0)}this.eiList.add(r,o,a)},a.prototype.toString=function(){var t=new $s;t.append("edge "+this._name+": "),t.append("LINESTRING (");for(var e=0;e<this.pts.length;e++)0<e&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this._label+" "+this._depthDelta),t.toString()},a.prototype.isPointwiseEqual=function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;e<this.pts.length;e++)if(!this.pts[e].equals2D(t.pts[e]))return!1;return!0},a.prototype.setDepthDelta=function(t){this._depthDelta=t},a.prototype.getEdgeIntersectionList=function(){return this.eiList},a.prototype.addIntersections=function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++)this.addIntersection(t,e,n,i)},a.prototype.interfaces_=function(){return[]},a.prototype.getClass=function(){return a},a.updateIM=function(){if(2!==arguments.length)return i.prototype.updateIM.apply(this,arguments);var t=arguments[0],e=arguments[1];e.setAtLeastIfValid(t.getLocation(0,Zu.ON),t.getLocation(1,Zu.ON),1),t.isArea()&&(e.setAtLeastIfValid(t.getLocation(0,Zu.LEFT),t.getLocation(1,Zu.LEFT),2),e.setAtLeastIfValid(t.getLocation(0,Zu.RIGHT),t.getLocation(1,Zu.RIGHT),2))},a}(ih),Pc=function(t){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new fc,this._bufParams=t||null};Pc.prototype.setWorkingPrecisionModel=function(t){this._workingPrecisionModel=t},Pc.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),i=t.getLabel();e.isPointwiseEqual(t)||(i=new $u(t.getLabel())).flip(),n.merge(i);var r=Pc.depthDelta(i),o=e.getDepthDelta()+r;e.setDepthDelta(o)}else this._edgeList.add(t),t.setDepthDelta(Pc.depthDelta(t.getLabel()))},Pc.prototype.buildSubgraphs=function(t,e){for(var n=new Ul,i=t.iterator();i.hasNext();){var r=i.next(),o=r.getRightmostCoordinate(),a=new ec(n).getDepth(o);r.computeDepth(a),r.findResultEdges(),n.add(r),e.add(r.getDirectedEdges(),r.getNodes())}},Pc.prototype.createSubgraphs=function(t){for(var e=new Ul,n=t.getNodes().iterator();n.hasNext();){var i=n.next();if(!i.isVisited()){var r=new Ju;r.create(i),e.add(r)}}return _h.sort(e,_h.reverseOrder()),e},Pc.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},Pc.prototype.getNoder=function(t){if(null!==this._workingNoder)return this._workingNoder;var e=new qh,n=new Sl;return n.setPrecisionModel(t),e.setSegmentIntersector(new yc(n)),e},Pc.prototype.buffer=function(t,e){var n=this._workingPrecisionModel;null===n&&(n=t.getPrecisionModel()),this._geomFact=t.getFactory();var i=new tc(n,this._bufParams),r=new oc(t,e,i).getCurves();if(r.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(r,n),this._graph=new ch(new cc),this._graph.addEdges(this._edgeList.getEdges());var o=this.createSubgraphs(this._graph),a=new ph(this._geomFact);this.buildSubgraphs(o,a);var s=a.getPolygons();return s.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(s)},Pc.prototype.computeNodedEdges=function(t,e){var n=this.getNoder(e);n.computeNodes(t);for(var i=n.getNodedSubstrings().iterator();i.hasNext();){var r=i.next(),o=r.getCoordinates();if(2!==o.length||!o[0].equals2D(o[1])){var a=r.getData(),s=new bc(r.getCoordinates(),new $u(a));this.insertUniqueEdge(s)}}},Pc.prototype.setNoder=function(t){this._workingNoder=t},Pc.prototype.interfaces_=function(){return[]},Pc.prototype.getClass=function(){return Pc},Pc.depthDelta=function(t){var e=t.getLocation(0,Zu.LEFT),n=t.getLocation(0,Zu.RIGHT);return e===Hs.INTERIOR&&n===Hs.EXTERIOR?1:e===Hs.EXTERIOR&&n===Hs.INTERIOR?-1:0},Pc.convertSegStrings=function(t){for(var e=new Fu,n=new Ul;t.hasNext();){var i=t.next(),r=e.createLineString(i.getCoordinates());n.add(r)}return e.buildGeometry(n)};var Sc=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var t=arguments[0],e=arguments[1];this._noder=t,this._scaleFactor=e,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=arguments[3];this._noder=n,this._scaleFactor=i,this._offsetX=r,this._offsetY=o,this._isScaled=!this.isIntegerPrecision()}};Sc.prototype.rescale=function(){if(Ks(arguments[0],jl))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.rescale(e.getCoordinates())}else if(arguments[0]instanceof Array){for(var n=arguments[0],i=0;i<n.length;i++)n[i].x=n[i].x/this._scaleFactor+this._offsetX,n[i].y=n[i].y/this._scaleFactor+this._offsetY;2===n.length&&n[0].equals2D(n[1])&&hl.out.println(n)}},Sc.prototype.scale=function(){if(Ks(arguments[0],jl)){for(var t=arguments[0],e=new Ul,n=t.iterator();n.hasNext();){var i=n.next();e.add(new Nh(this.scale(i.getCoordinates()),i.getData()))}return e}if(arguments[0]instanceof Array){for(var r=arguments[0],o=new Array(r.length).fill(null),a=0;a<r.length;a++)o[a]=new Us(Math.round((r[a].x-this._offsetX)*this._scaleFactor),Math.round((r[a].y-this._offsetY)*this._scaleFactor),r[a].z);return Xl.removeRepeatedPoints(o)}},Sc.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},Sc.prototype.getNodedSubstrings=function(){var t=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(t),t},Sc.prototype.computeNodes=function(t){var e=t;this._isScaled&&(e=this.scale(t)),this._noder.computeNodes(e)},Sc.prototype.interfaces_=function(){return[jh]},Sc.prototype.getClass=function(){return Sc};var Cc=function(){this._li=new Sl,this._segStrings=null;var t=arguments[0];this._segStrings=t},Mc={fact:{configurable:!0}};Cc.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next().getCoordinates();this.checkEndPtVertexIntersections(e[0],this._segStrings),this.checkEndPtVertexIntersections(e[e.length-1],this._segStrings)}else if(2===arguments.length)for(var n=arguments[0],i=arguments[1].iterator();i.hasNext();)for(var r=i.next().getCoordinates(),o=1;o<r.length-1;o++)if(r[o].equals(n))throw new xl("found endpt/interior pt intersection at index "+o+" :pt "+n)},Cc.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();)for(var e=t.next(),n=this._segStrings.iterator();n.hasNext();){var i=n.next();this.checkInteriorIntersections(e,i)}else if(2===arguments.length)for(var r=arguments[0],o=arguments[1],a=r.getCoordinates(),s=o.getCoordinates(),l=0;l<a.length-1;l++)for(var u=0;u<s.length-1;u++)this.checkInteriorIntersections(r,l,o,u);else if(4===arguments.length){var h=arguments[0],c=arguments[1],p=arguments[2],f=arguments[3];if(h===p&&c===f)return null;var d=h.getCoordinates()[c],y=h.getCoordinates()[c+1],m=p.getCoordinates()[f],g=p.getCoordinates()[f+1];if(this._li.computeIntersection(d,y,m,g),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,d,y)||this.hasInteriorIntersection(this._li,m,g)))throw new xl("found non-noded intersection at "+d+"-"+y+" and "+m+"-"+g)}},Cc.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},Cc.prototype.checkCollapses=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next();this.checkCollapses(e)}else if(1===arguments.length)for(var n=arguments[0].getCoordinates(),i=0;i<n.length-2;i++)this.checkCollapse(n[i],n[i+1],n[i+2])},Cc.prototype.hasInteriorIntersection=function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++){var r=t.getIntersection(i);if(!r.equals(e)&&!r.equals(n))return!0}return!1},Cc.prototype.checkCollapse=function(t,e,n){if(t.equals(n))throw new xl("found non-noded collapse at "+Cc.fact.createLineString([t,e,n]))},Cc.prototype.interfaces_=function(){return[]},Cc.prototype.getClass=function(){return Cc},Mc.fact.get=function(){return new Fu},Object.defineProperties(Cc,Mc);var Tc=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new Fs("Scale factor must be non-zero");1!==e&&(this._pt=new Us(this.scale(t.x),this.scale(t.y)),this._p0Scaled=new Us,this._p1Scaled=new Us),this.initCorners(this._pt)},Ac={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};Tc.prototype.intersectsScaled=function(t,e){var n=Math.min(t.x,e.x),i=Math.max(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.y,e.y),a=this._maxx<n||this._minx>i||this._maxy<r||this._miny>o;if(a)return!1;var s=this.intersectsToleranceSquare(t,e);return wl.isTrue(!(a&&s),"Found bad envelope test"),s},Tc.prototype.initCorners=function(t){this._minx=t.x-.5,this._maxx=t.x+.5,this._miny=t.y-.5,this._maxy=t.y+.5,this._corner[0]=new Us(this._maxx,this._maxy),this._corner[1]=new Us(this._minx,this._maxy),this._corner[2]=new Us(this._minx,this._miny),this._corner[3]=new Us(this._maxx,this._miny)},Tc.prototype.intersects=function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},Tc.prototype.scale=function(t){return Math.round(t*this._scaleFactor)},Tc.prototype.getCoordinate=function(){return this._originalPt},Tc.prototype.copyScaled=function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},Tc.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var t=Tc.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new pl(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv},Tc.prototype.intersectsPixelClosure=function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.hasIntersection()))))},Tc.prototype.intersectsToleranceSquare=function(t,e){var n=!1,i=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.isProper()||(this._li.hasIntersection()&&(i=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.isProper()||n&&i||t.equals(this._pt)||e.equals(this._pt)))))},Tc.prototype.addSnappedNode=function(t,e){var n=t.getCoordinate(e),i=t.getCoordinate(e+1);return!!this.intersects(n,i)&&(t.addIntersection(this.getCoordinate(),e),!0)},Tc.prototype.interfaces_=function(){return[]},Tc.prototype.getClass=function(){return Tc},Ac.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(Tc,Ac);var Ec=function(){this.tempEnv1=new pl,this.selectedSegment=new kh};Ec.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},Ec.prototype.interfaces_=function(){return[]},Ec.prototype.getClass=function(){return Ec};var Ic=function(){this._index=null;var t=arguments[0];this._index=t},Lc={HotPixelSnapAction:{configurable:!0}};Ic.prototype.snap=function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2],r=e.getSafeEnvelope(),o=new Rc(e,n,i);return this._index.query(r,{interfaces_:function(){return[mh]},visitItem:function(t){t.select(r,o)}}),o.isNodeAdded()}},Ic.prototype.interfaces_=function(){return[]},Ic.prototype.getClass=function(){return Ic},Lc.HotPixelSnapAction.get=function(){return Rc},Object.defineProperties(Ic,Lc);var Rc=function(i){function t(){i.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._hotPixel=t,this._parentEdge=e,this._hotPixelVertexIndex=n}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.isNodeAdded=function(){return this._isNodeAdded},t.prototype.select=function(){if(2!==arguments.length)return i.prototype.select.apply(this,arguments);var t=arguments[0],e=arguments[1],n=t.getContext();if(null!==this._parentEdge&&n===this._parentEdge&&e===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(n,e)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Ec),Oc=function(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new Ul};Oc.prototype.processIntersections=function(t,e,n,i){if(t===n&&e===i)return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[i],s=n.getCoordinates()[i+1];if(this._li.computeIntersection(r,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var l=0;l<this._li.getIntersectionNum();l++)this._interiorIntersections.add(this._li.getIntersection(l));t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1)}},Oc.prototype.isDone=function(){return!1},Oc.prototype.getInteriorIntersections=function(){return this._interiorIntersections},Oc.prototype.interfaces_=function(){return[dc]},Oc.prototype.getClass=function(){return Oc};var Nc=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var t=arguments[0];this._pm=t,this._li=new Sl,this._li.setPrecisionModel(t),this._scaleFactor=t.getScale()};Nc.prototype.checkCorrectness=function(t){var e=Nh.getNodedSubstrings(t),n=new Cc(e);try{n.checkValid()}catch(t){if(!(t instanceof ll))throw t;t.printStackTrace()}},Nc.prototype.getNodedSubstrings=function(){return Nh.getNodedSubstrings(this._nodedSegStrings)},Nc.prototype.snapRound=function(t,e){var n=this.findInteriorIntersections(t,e);this.computeIntersectionSnaps(n),this.computeVertexSnaps(t)},Nc.prototype.findInteriorIntersections=function(t,e){var n=new Oc(e);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(t),n.getInteriorIntersections()},Nc.prototype.computeVertexSnaps=function(){if(Ks(arguments[0],jl))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.computeVertexSnaps(e)}else if(arguments[0]instanceof Nh)for(var n=arguments[0],i=n.getCoordinates(),r=0;r<i.length;r++){var o=new Tc(i[r],this._scaleFactor,this._li);this._pointSnapper.snap(o,n,r)&&n.addIntersection(i[r],r)}},Nc.prototype.computeNodes=function(t){this._nodedSegStrings=t,this._noder=new qh,this._pointSnapper=new Ic(this._noder.getIndex()),this.snapRound(t,this._li)},Nc.prototype.computeIntersectionSnaps=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=new Tc(n,this._scaleFactor,this._li);this._pointSnapper.snap(i)}},Nc.prototype.interfaces_=function(){return[jh]},Nc.prototype.getClass=function(){return Nc};var kc=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new Uh,this._resultGeometry=null,this._saveException=null,1===arguments.length){var t=arguments[0];this._argGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._argGeom=e,this._bufParams=n}},zc={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};kc.prototype.bufferFixedPrecision=function(t){var e=new Sc(new Nc(new Nu(1)),t.getScale()),n=new Pc(this._bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this._resultGeometry=n.buffer(this._argGeom,this._distance)},kc.prototype.bufferReducedPrecision=function(){var t=this;if(0===arguments.length){for(var e=kc.MAX_PRECISION_DIGITS;0<=e;e--){try{t.bufferReducedPrecision(e)}catch(e){if(!(e instanceof Yu))throw e;t._saveException=e}if(null!==t._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],i=kc.precisionScaleFactor(this._argGeom,this._distance,n),r=new Nu(i);this.bufferFixedPrecision(r)}},kc.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===Nu.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},kc.prototype.setQuadrantSegments=function(t){this._bufParams.setQuadrantSegments(t)},kc.prototype.bufferOriginalPrecision=function(){try{var t=new Pc(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof xl))throw t;this._saveException=t}},kc.prototype.getResultGeometry=function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},kc.prototype.setEndCapStyle=function(t){this._bufParams.setEndCapStyle(t)},kc.prototype.interfaces_=function(){return[]},kc.prototype.getClass=function(){return kc},kc.bufferOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return new kc(t).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Il&&"number"==typeof arguments[1]){var n=arguments[0],i=arguments[1],r=arguments[2],o=new kc(n);return o.setQuadrantSegments(r),o.getResultGeometry(i)}if(arguments[2]instanceof Uh&&arguments[0]instanceof Il&&"number"==typeof arguments[1]){var a=arguments[0],s=arguments[1],l=arguments[2];return new kc(a,l).getResultGeometry(s)}}else if(4===arguments.length){var u=arguments[0],h=arguments[1],c=arguments[2],p=arguments[3],f=new kc(u);return f.setQuadrantSegments(c),f.setEndCapStyle(p),f.getResultGeometry(h)}},kc.precisionScaleFactor=function(t,e,n){var i=t.getEnvelopeInternal(),r=Js.max(Math.abs(i.getMaxX()),Math.abs(i.getMaxY()),Math.abs(i.getMinX()),Math.abs(i.getMinY()))+2*(0<e?e:0),o=n-Math.trunc(Math.log(r)/Math.log(10)+1);return Math.pow(10,o)},zc.CAP_ROUND.get=function(){return Uh.CAP_ROUND},zc.CAP_BUTT.get=function(){return Uh.CAP_FLAT},zc.CAP_FLAT.get=function(){return Uh.CAP_FLAT},zc.CAP_SQUARE.get=function(){return Uh.CAP_SQUARE},zc.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(kc,zc);var Dc=function(){this._pt=[new Us,new Us],this._distance=Gs.NaN,this._isNull=!0};Dc.prototype.getCoordinates=function(){return this._pt},Dc.prototype.getCoordinate=function(t){return this._pt[t]},Dc.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i<this._distance&&this.initialize(e,n,i)}},Dc.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(i),this._distance=r,this._isNull=!1}},Dc.prototype.getDistance=function(){return this._distance},Dc.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i>this._distance&&this.initialize(e,n,i)}},Dc.prototype.interfaces_=function(){return[]},Dc.prototype.getClass=function(){return Dc};var Fc=function(){};Fc.prototype.interfaces_=function(){return[]},Fc.prototype.getClass=function(){return Fc},Fc.computeDistance=function(){if(arguments[2]instanceof Dc&&arguments[0]instanceof mu&&arguments[1]instanceof Us)for(var t=arguments[0],e=arguments[1],n=arguments[2],i=t.getCoordinates(),r=new kh,o=0;o<i.length-1;o++){r.setCoordinates(i[o],i[o+1]);var a=r.closestPoint(e);n.setMinimum(a,e)}else if(arguments[2]instanceof Dc&&arguments[0]instanceof _u&&arguments[1]instanceof Us){var s=arguments[0],l=arguments[1],u=arguments[2];Fc.computeDistance(s.getExteriorRing(),l,u);for(var h=0;h<s.getNumInteriorRing();h++)Fc.computeDistance(s.getInteriorRingN(h),l,u)}else if(arguments[2]instanceof Dc&&arguments[0]instanceof Il&&arguments[1]instanceof Us){var c=arguments[0],p=arguments[1],f=arguments[2];if(c instanceof mu)Fc.computeDistance(c,p,f);else if(c instanceof _u)Fc.computeDistance(c,p,f);else if(c instanceof uu)for(var d=c,y=0;y<d.getNumGeometries();y++){var m=d.getGeometryN(y);Fc.computeDistance(m,p,f)}else f.setMinimum(c.getCoordinate(),p)}else if(arguments[2]instanceof Dc&&arguments[0]instanceof kh&&arguments[1]instanceof Us){var g=arguments[0],v=arguments[1],x=arguments[2],_=g.closestPoint(v);x.setMinimum(_,v)}};var Gc=function(t){this._maxPtDist=new Dc,this._inputGeom=t||null},jc={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};Gc.prototype.computeMaxMidpointDistance=function(t){var e=new qc(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},Gc.prototype.computeMaxVertexDistance=function(t){var e=new Vc(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},Gc.prototype.findDistance=function(t){return this.computeMaxVertexDistance(t),this.computeMaxMidpointDistance(t),this._maxPtDist.getDistance()},Gc.prototype.getDistancePoints=function(){return this._maxPtDist},Gc.prototype.interfaces_=function(){return[]},Gc.prototype.getClass=function(){return Gc},jc.MaxPointDistanceFilter.get=function(){return Vc},jc.MaxMidpointDistanceFilter.get=function(){return qc},Object.defineProperties(Gc,jc);var Vc=function(t){this._maxPtDist=new Dc,this._minPtDist=new Dc,this._geom=t||null};Vc.prototype.filter=function(t){this._minPtDist.initialize(),Fc.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Vc.prototype.getMaxPointDistance=function(){return this._maxPtDist},Vc.prototype.interfaces_=function(){return[Ol]},Vc.prototype.getClass=function(){return Vc};var qc=function(t){this._maxPtDist=new Dc,this._minPtDist=new Dc,this._geom=t||null};qc.prototype.filter=function(t,e){if(0===e)return null;var n=t.getCoordinate(e-1),i=t.getCoordinate(e),r=new Us((n.x+i.x)/2,(n.y+i.y)/2);this._minPtDist.initialize(),Fc.computeDistance(this._geom,r,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},qc.prototype.isDone=function(){return!1},qc.prototype.isGeometryChanged=function(){return!1},qc.prototype.getMaxPointDistance=function(){return this._maxPtDist},qc.prototype.interfaces_=function(){return[lu]},qc.prototype.getClass=function(){return qc};var Bc=function(t){this._comps=t||null};Bc.prototype.filter=function(t){t instanceof _u&&this._comps.add(t)},Bc.prototype.interfaces_=function(){return[su]},Bc.prototype.getClass=function(){return Bc},Bc.getPolygons=function(){if(1===arguments.length){var t=arguments[0];return Bc.getPolygons(t,new Ul)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof _u?n.add(e):e instanceof uu&&e.apply(new Bc(n)),n}};var Uc=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var t=arguments[0];this._lines=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._lines=e,this._isForcedToLineString=n}};Uc.prototype.filter=function(t){if(this._isForcedToLineString&&t instanceof bu){var e=t.getFactory().createLineString(t.getCoordinateSequence());return this._lines.add(e),null}t instanceof mu&&this._lines.add(t)},Uc.prototype.setForceToLineString=function(t){this._isForcedToLineString=t},Uc.prototype.interfaces_=function(){return[El]},Uc.prototype.getClass=function(){return Uc},Uc.getGeometry=function(){if(1===arguments.length){var t=arguments[0];return t.getFactory().buildGeometry(Uc.getLines(t))}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().buildGeometry(Uc.getLines(e,n))}},Uc.getLines=function(){if(1===arguments.length){var t=arguments[0];return Uc.getLines(t,!1)}if(2===arguments.length){if(Ks(arguments[0],jl)&&Ks(arguments[1],jl)){for(var e=arguments[0],n=arguments[1],i=e.iterator();i.hasNext();){var r=i.next();Uc.getLines(r,n)}return n}if(arguments[0]instanceof Il&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1],s=new Ul;return o.apply(new Uc(s,a)),s}if(arguments[0]instanceof Il&&Ks(arguments[1],jl)){var l=arguments[0],u=arguments[1];return l instanceof mu?u.add(l):l.apply(new Uc(u)),u}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&Ks(arguments[0],jl)&&Ks(arguments[1],jl)){for(var h=arguments[0],c=arguments[1],p=arguments[2],f=h.iterator();f.hasNext();){var d=f.next();Uc.getLines(d,c,p)}return c}if("boolean"==typeof arguments[2]&&arguments[0]instanceof Il&&Ks(arguments[1],jl)){var y=arguments[0],m=arguments[1],g=arguments[2];return y.apply(new Uc(m,g)),m}}};var Wc=function(){if(this._boundaryRule=Nl.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(null===t)throw new Fs("Rule must be non-null");this._boundaryRule=t}};Wc.prototype.locateInternal=function(){if(arguments[0]instanceof Us&&arguments[1]instanceof _u){var t=arguments[0],e=arguments[1];if(e.isEmpty())return Hs.EXTERIOR;var n=e.getExteriorRing(),i=this.locateInPolygonRing(t,n);if(i===Hs.EXTERIOR)return Hs.EXTERIOR;if(i===Hs.BOUNDARY)return Hs.BOUNDARY;for(var r=0;r<e.getNumInteriorRing();r++){var o=e.getInteriorRingN(r),a=this.locateInPolygonRing(t,o);if(a===Hs.INTERIOR)return Hs.EXTERIOR;if(a===Hs.BOUNDARY)return Hs.BOUNDARY}return Hs.INTERIOR}if(arguments[0]instanceof Us&&arguments[1]instanceof mu){var s=arguments[0],l=arguments[1];if(!l.getEnvelopeInternal().intersects(s))return Hs.EXTERIOR;var u=l.getCoordinates();return l.isClosed()||!s.equals(u[0])&&!s.equals(u[u.length-1])?Tl.isOnLine(s,u)?Hs.INTERIOR:Hs.EXTERIOR:Hs.BOUNDARY}if(arguments[0]instanceof Us&&arguments[1]instanceof vu){var h=arguments[0];return arguments[1].getCoordinate().equals2D(h)?Hs.INTERIOR:Hs.EXTERIOR}},Wc.prototype.locateInPolygonRing=function(t,e){return e.getEnvelopeInternal().intersects(t)?Tl.locatePointInRing(t,e.getCoordinates()):Hs.EXTERIOR},Wc.prototype.intersects=function(t,e){return this.locate(t,e)!==Hs.EXTERIOR},Wc.prototype.updateLocationInfo=function(t){t===Hs.INTERIOR&&(this._isIn=!0),t===Hs.BOUNDARY&&this._numBoundaries++},Wc.prototype.computeLocation=function(t,e){if(e instanceof vu&&this.updateLocationInfo(this.locateInternal(t,e)),e instanceof mu)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof _u)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof hu)for(var n=e,i=0;i<n.getNumGeometries();i++){var r=n.getGeometryN(i);this.updateLocationInfo(this.locateInternal(t,r))}else if(e instanceof Pu)for(var o=e,a=0;a<o.getNumGeometries();a++){var s=o.getGeometryN(a);this.updateLocationInfo(this.locateInternal(t,s))}else if(e instanceof uu)for(var l=new sc(e);l.hasNext();){var u=l.next();u!==e&&this.computeLocation(t,u)}},Wc.prototype.locate=function(t,e){return e.isEmpty()?Hs.EXTERIOR:e instanceof mu?this.locateInternal(t,e):e instanceof _u?this.locateInternal(t,e):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(t,e),this._boundaryRule.isInBoundary(this._numBoundaries)?Hs.BOUNDARY:0<this._numBoundaries||this._isIn?Hs.INTERIOR:Hs.EXTERIOR)},Wc.prototype.interfaces_=function(){return[]},Wc.prototype.getClass=function(){return Wc};var Zc=function t(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length){var e=arguments[0],n=arguments[1];t.call(this,e,t.INSIDE_AREA,n)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._component=i,this._segIndex=r,this._pt=o}},Xc={INSIDE_AREA:{configurable:!0}};Zc.prototype.isInsideArea=function(){return this._segIndex===Zc.INSIDE_AREA},Zc.prototype.getCoordinate=function(){return this._pt},Zc.prototype.getGeometryComponent=function(){return this._component},Zc.prototype.getSegmentIndex=function(){return this._segIndex},Zc.prototype.interfaces_=function(){return[]},Zc.prototype.getClass=function(){return Zc},Xc.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Zc,Xc);var Hc=function(t){this._pts=t||null};Hc.prototype.filter=function(t){t instanceof vu&&this._pts.add(t)},Hc.prototype.interfaces_=function(){return[su]},Hc.prototype.getClass=function(){return Hc},Hc.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof vu?_h.singletonList(t):Hc.getPoints(t,new Ul)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof vu?n.add(e):e instanceof uu&&e.apply(new Hc(n)),n}};var Yc=function(){this._locations=null;var t=arguments[0];this._locations=t};Yc.prototype.filter=function(t){(t instanceof vu||t instanceof mu||t instanceof _u)&&this._locations.add(new Zc(t,0,t.getCoordinate()))},Yc.prototype.interfaces_=function(){return[su]},Yc.prototype.getClass=function(){return Yc},Yc.getLocations=function(t){var e=new Ul;return t.apply(new Yc(e)),e};var Kc=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Wc,this._minDistanceLocation=null,this._minDistance=Gs.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];this._geom=[t,e],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=i,this._terminateDistance=r}};Kc.prototype.computeContainmentDistance=function(){if(0===arguments.length){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=1-e,r=Bc.getPolygons(this._geom[e]);if(0<r.size()){var o=Yc.getLocations(this._geom[i]);if(this.computeContainmentDistance(o,r,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[i]=n[0],this._minDistanceLocation[e]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&Ks(arguments[0],Bl)&&Ks(arguments[1],Bl)){for(var a=arguments[0],s=arguments[1],l=arguments[2],u=0;u<a.size();u++)for(var h=a.get(u),c=0;c<s.size();c++)if(this.computeContainmentDistance(h,s.get(c),l),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof Zc&&arguments[1]instanceof _u){var p=arguments[0],f=arguments[1],d=arguments[2],y=p.getCoordinate();if(Hs.EXTERIOR!==this._ptLocator.locate(y,f))return this._minDistance=0,d[0]=p,d[1]=new Zc(f,y),null}},Kc.prototype.computeMinDistanceLinesPoints=function(t,e,n){for(var i=0;i<t.size();i++)for(var r=t.get(i),o=0;o<e.size();o++){var a=e.get(o);if(this.computeMinDistance(r,a,n),this._minDistance<=this._terminateDistance)return null}},Kc.prototype.computeFacetDistance=function(){var t=new Array(2).fill(null),e=Uc.getLines(this._geom[0]),n=Uc.getLines(this._geom[1]),i=Hc.getPoints(this._geom[0]),r=Hc.getPoints(this._geom[1]);return this.computeMinDistanceLines(e,n,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(e,r,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(n,i,t),this.updateMinDistance(t,!0),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistancePoints(i,r,t),void this.updateMinDistance(t,!1))))},Kc.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},Kc.prototype.updateMinDistance=function(t,e){if(null===t[0])return null;e?(this._minDistanceLocation[0]=t[1],this._minDistanceLocation[1]=t[0]):(this._minDistanceLocation[0]=t[0],this._minDistanceLocation[1]=t[1])},Kc.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},Kc.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof mu&&arguments[1]instanceof vu){var t=arguments[0],e=arguments[1],n=arguments[2];if(t.getEnvelopeInternal().distance(e.getEnvelopeInternal())>this._minDistance)return null;for(var i=t.getCoordinates(),r=e.getCoordinate(),o=0;o<i.length-1;o++){var a=Tl.distancePointLine(r,i[o],i[o+1]);if(a<this._minDistance){this._minDistance=a;var s=new kh(i[o],i[o+1]).closestPoint(r);n[0]=new Zc(t,o,s),n[1]=new Zc(e,0,r)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof mu&&arguments[1]instanceof mu){var l=arguments[0],u=arguments[1],h=arguments[2];if(l.getEnvelopeInternal().distance(u.getEnvelopeInternal())>this._minDistance)return null;for(var c=l.getCoordinates(),p=u.getCoordinates(),f=0;f<c.length-1;f++)for(var d=0;d<p.length-1;d++){var y=Tl.distanceLineLine(c[f],c[f+1],p[d],p[d+1]);if(y<this._minDistance){this._minDistance=y;var m=new kh(c[f],c[f+1]),g=new kh(p[d],p[d+1]),v=m.closestPoints(g);h[0]=new Zc(l,f,v[0]),h[1]=new Zc(u,d,v[1])}if(this._minDistance<=this._terminateDistance)return null}}},Kc.prototype.computeMinDistancePoints=function(t,e,n){for(var i=0;i<t.size();i++)for(var r=t.get(i),o=0;o<e.size();o++){var a=e.get(o),s=r.getCoordinate().distance(a.getCoordinate());if(s<this._minDistance&&(this._minDistance=s,n[0]=new Zc(r,0,r.getCoordinate()),n[1]=new Zc(a,0,a.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},Kc.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new Fs("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},Kc.prototype.computeMinDistanceLines=function(t,e,n){for(var i=0;i<t.size();i++)for(var r=t.get(i),o=0;o<e.size();o++){var a=e.get(o);if(this.computeMinDistance(r,a,n),this._minDistance<=this._terminateDistance)return null}},Kc.prototype.interfaces_=function(){return[]},Kc.prototype.getClass=function(){return Kc},Kc.distance=function(t,e){return new Kc(t,e).distance()},Kc.isWithinDistance=function(t,e,n){return new Kc(t,e,n).distance()<=n},Kc.nearestPoints=function(t,e){return new Kc(t,e).nearestPoints()};var Jc=function(){this._pt=[new Us,new Us],this._distance=Gs.NaN,this._isNull=!0};Jc.prototype.getCoordinates=function(){return this._pt},Jc.prototype.getCoordinate=function(t){return this._pt[t]},Jc.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i<this._distance&&this.initialize(e,n,i)}},Jc.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(i),this._distance=r,this._isNull=!1}},Jc.prototype.toString=function(){return vl.toLineString(this._pt[0],this._pt[1])},Jc.prototype.getDistance=function(){return this._distance},Jc.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i>this._distance&&this.initialize(e,n,i)}},Jc.prototype.interfaces_=function(){return[]},Jc.prototype.getClass=function(){return Jc};var Qc=function(){};Qc.prototype.interfaces_=function(){return[]},Qc.prototype.getClass=function(){return Qc},Qc.computeDistance=function(){if(arguments[2]instanceof Jc&&arguments[0]instanceof mu&&arguments[1]instanceof Us)for(var t=arguments[0],e=arguments[1],n=arguments[2],i=new kh,r=t.getCoordinates(),o=0;o<r.length-1;o++){i.setCoordinates(r[o],r[o+1]);var a=i.closestPoint(e);n.setMinimum(a,e)}else if(arguments[2]instanceof Jc&&arguments[0]instanceof _u&&arguments[1]instanceof Us){var s=arguments[0],l=arguments[1],u=arguments[2];Qc.computeDistance(s.getExteriorRing(),l,u);for(var h=0;h<s.getNumInteriorRing();h++)Qc.computeDistance(s.getInteriorRingN(h),l,u)}else if(arguments[2]instanceof Jc&&arguments[0]instanceof Il&&arguments[1]instanceof Us){var c=arguments[0],p=arguments[1],f=arguments[2];if(c instanceof mu)Qc.computeDistance(c,p,f);else if(c instanceof _u)Qc.computeDistance(c,p,f);else if(c instanceof uu)for(var d=c,y=0;y<d.getNumGeometries();y++){var m=d.getGeometryN(y);Qc.computeDistance(m,p,f)}else f.setMinimum(c.getCoordinate(),p)}else if(arguments[2]instanceof Jc&&arguments[0]instanceof kh&&arguments[1]instanceof Us){var g=arguments[0],v=arguments[1],x=arguments[2],_=g.closestPoint(v);x.setMinimum(_,v)}};var $c=function(){this._g0=null,this._g1=null,this._ptDist=new Jc,this._densifyFrac=0;var t=arguments[0],e=arguments[1];this._g0=t,this._g1=e},tp={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};$c.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},$c.prototype.setDensifyFraction=function(t){if(1<t||t<=0)throw new Fs("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},$c.prototype.compute=function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},$c.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},$c.prototype.computeOrientedDistance=function(t,e,n){var i=new ep(e);if(t.apply(i),n.setMaximum(i.getMaxPointDistance()),0<this._densifyFrac){var r=new np(e,this._densifyFrac);t.apply(r),n.setMaximum(r.getMaxPointDistance())}},$c.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},$c.prototype.interfaces_=function(){return[]},$c.prototype.getClass=function(){return $c},$c.distance=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return new $c(t,e).distance()}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=new $c(n,i);return o.setDensifyFraction(r),o.distance()}},tp.MaxPointDistanceFilter.get=function(){return ep},tp.MaxDensifiedByFractionDistanceFilter.get=function(){return np},Object.defineProperties($c,tp);var ep=function(){this._maxPtDist=new Jc,this._minPtDist=new Jc,this._euclideanDist=new Qc,this._geom=null;var t=arguments[0];this._geom=t};ep.prototype.filter=function(t){this._minPtDist.initialize(),Qc.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},ep.prototype.getMaxPointDistance=function(){return this._maxPtDist},ep.prototype.interfaces_=function(){return[Ol]},ep.prototype.getClass=function(){return ep};var np=function(){this._maxPtDist=new Jc,this._minPtDist=new Jc,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))};np.prototype.filter=function(t,e){if(0===e)return null;for(var n=t.getCoordinate(e-1),i=t.getCoordinate(e),r=(i.x-n.x)/this._numSubSegs,o=(i.y-n.y)/this._numSubSegs,a=0;a<this._numSubSegs;a++){var s=n.x+a*r,l=n.y+a*o,u=new Us(s,l);this._minPtDist.initialize(),Qc.computeDistance(this._geom,u,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},np.prototype.isDone=function(){return!1},np.prototype.isGeometryChanged=function(){return!1},np.prototype.getMaxPointDistance=function(){return this._maxPtDist},np.prototype.interfaces_=function(){return[lu]},np.prototype.getClass=function(){return np};var ip=function(t,e,n){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._bufDistance=e||null,this._result=n||null},rp={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};ip.prototype.checkMaximumDistance=function(t,e,n){var i=new $c(e,t);if(i.setDensifyFraction(.25),this._maxDistanceFound=i.orientedDistance(),this._maxDistanceFound>n){this._isValid=!1;var r=i.getCoordinates();this._errorLocation=r[1],this._errorIndicator=t.getFactory().createLineString(r),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+vl.toLineString(r[0],r[1])+")"}},ip.prototype.isValid=function(){var t=Math.abs(this._bufDistance),e=ip.MAX_DISTANCE_DIFF_FRAC*t;return this._minValidDistance=t-e,this._maxValidDistance=t+e,!(!this._input.isEmpty()&&!this._result.isEmpty())||(0<this._bufDistance?this.checkPositiveValid():this.checkNegativeValid(),ip.VERBOSE&&hl.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},ip.prototype.checkNegativeValid=function(){if(!(this._input instanceof _u||this._input instanceof Pu||this._input instanceof uu))return null;var t=this.getPolygonLines(this._input);if(this.checkMinimumDistance(t,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(t,this._result,this._maxValidDistance)},ip.prototype.getErrorIndicator=function(){return this._errorIndicator},ip.prototype.checkMinimumDistance=function(t,e,n){var i=new Kc(t,e,n);if(this._minDistanceFound=i.distance(),this._minDistanceFound<n){this._isValid=!1;var r=i.nearestPoints();this._errorLocation=i.nearestPoints()[1],this._errorIndicator=t.getFactory().createLineString(r),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+vl.toLineString(r[0],r[1])+" )"}},ip.prototype.checkPositiveValid=function(){var t=this._result.getBoundary();if(this.checkMinimumDistance(this._input,t,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,t,this._maxValidDistance)},ip.prototype.getErrorLocation=function(){return this._errorLocation},ip.prototype.getPolygonLines=function(t){for(var e=new Ul,n=new Uc(e),i=Bc.getPolygons(t).iterator();i.hasNext();)i.next().apply(n);return t.getFactory().buildGeometry(e)},ip.prototype.getErrorMessage=function(){return this._errMsg},ip.prototype.interfaces_=function(){return[]},ip.prototype.getClass=function(){return ip},rp.VERBOSE.get=function(){return!1},rp.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(ip,rp);var op=function(t,e,n){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._distance=e||null,this._result=n||null},ap={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};op.prototype.isValid=function(){return this.checkPolygonal(),this._isValid&&(this.checkExpectedEmpty(),this._isValid&&(this.checkEnvelope(),this._isValid&&(this.checkArea(),this._isValid&&this.checkDistance()))),this._isValid},op.prototype.checkEnvelope=function(){if(this._distance<0)return null;var t=this._distance*op.MAX_ENV_DIFF_FRAC;0===t&&(t=.001);var e=new pl(this._input.getEnvelopeInternal());e.expandBy(this._distance);var n=new pl(this._result.getEnvelopeInternal());n.expandBy(t),n.contains(e)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(n)),this.report("Envelope")},op.prototype.checkDistance=function(){var t=new ip(this._input,this._distance,this._result);t.isValid()||(this._isValid=!1,this._errorMsg=t.getErrorMessage(),this._errorLocation=t.getErrorLocation(),this._errorIndicator=t.getErrorIndicator()),this.report("Distance")},op.prototype.checkArea=function(){var t=this._input.getArea(),e=this._result.getArea();0<this._distance&&e<t&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&t<e&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},op.prototype.checkPolygonal=function(){this._result instanceof _u||this._result instanceof Pu||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},op.prototype.getErrorIndicator=function(){return this._errorIndicator},op.prototype.getErrorLocation=function(){return this._errorLocation},op.prototype.checkExpectedEmpty=function(){return 2<=this._input.getDimension()?null:0<this._distance?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},op.prototype.report=function(t){if(!op.VERBOSE)return null;hl.out.println("Check "+t+": "+(this._isValid?"passed":"FAILED"))},op.prototype.getErrorMessage=function(){return this._errorMsg},op.prototype.interfaces_=function(){return[]},op.prototype.getClass=function(){return op},op.isValidMsg=function(t,e,n){var i=new op(t,e,n);return i.isValid()?null:i.getErrorMessage()},op.isValid=function(t,e,n){return!!new op(t,e,n).isValid()},ap.VERBOSE.get=function(){return!1},ap.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(op,ap);var sp=function(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};sp.prototype.getCoordinates=function(){return this._pts},sp.prototype.size=function(){return this._pts.length},sp.prototype.getCoordinate=function(t){return this._pts[t]},sp.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},sp.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:Lh.octant(this.getCoordinate(t),this.getCoordinate(t+1))},sp.prototype.setData=function(t){this._data=t},sp.prototype.getData=function(){return this._data},sp.prototype.toString=function(){return vl.toLineString(new Eu(this._pts))},sp.prototype.interfaces_=function(){return[Rh]},sp.prototype.getClass=function(){return sp};var lp=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new Ul,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null};lp.prototype.getInteriorIntersection=function(){return this._interiorIntersection},lp.prototype.setCheckEndSegmentsOnly=function(t){this._isCheckEndSegmentsOnly=t},lp.prototype.getIntersectionSegments=function(){return this._intSegments},lp.prototype.count=function(){return this._intersectionCount},lp.prototype.getIntersections=function(){return this._intersections},lp.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},lp.prototype.setKeepIntersections=function(t){this._keepIntersections=t},lp.prototype.processIntersections=function(t,e,n,i){if(!this._findAllIntersections&&this.hasIntersection())return null;if(t===n&&e===i)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(t,e)&&!this.isEndSegment(n,i))return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[i],s=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=r,this._intSegments[1]=o,this._intSegments[2]=a,this._intSegments[3]=s,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},lp.prototype.isEndSegment=function(t,e){return 0===e||e>=t.size()-2},lp.prototype.hasIntersection=function(){return null!==this._interiorIntersection},lp.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},lp.prototype.interfaces_=function(){return[dc]},lp.prototype.getClass=function(){return lp},lp.createAllIntersectionsFinder=function(t){var e=new lp(t);return e.setFindAllIntersections(!0),e},lp.createAnyIntersectionFinder=function(t){return new lp(t)},lp.createIntersectionCounter=function(t){var e=new lp(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e};var up=function(){this._li=new Sl,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t};up.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},up.prototype.getIntersections=function(){return this._segInt.getIntersections()},up.prototype.isValid=function(){return this.execute(),this._isValid},up.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},up.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new lp(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new qh;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},up.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Yu(this.getErrorMessage(),this._segInt.getInteriorIntersection())},up.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+vl.toLineString(t[0],t[1])+" and "+vl.toLineString(t[2],t[3])},up.prototype.interfaces_=function(){return[]},up.prototype.getClass=function(){return up},up.computeIntersections=function(t){var e=new up(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()};var hp=function t(){this._nv=null;var e=arguments[0];this._nv=new up(t.toSegmentStrings(e))};hp.prototype.checkValid=function(){this._nv.checkValid()},hp.prototype.interfaces_=function(){return[]},hp.prototype.getClass=function(){return hp},hp.toSegmentStrings=function(t){for(var e=new Ul,n=t.iterator();n.hasNext();){var i=n.next();e.add(new sp(i.getCoordinates(),i))}return e},hp.checkValid=function(t){new hp(t).checkValid()};var cp=function(t){this._mapOp=t};cp.prototype.map=function(t){for(var e=new Ul,n=0;n<t.getNumGeometries();n++){var i=this._mapOp.map(t.getGeometryN(n));i.isEmpty()||e.add(i)}return t.getFactory().createGeometryCollection(Fu.toGeometryArray(e))},cp.prototype.interfaces_=function(){return[]},cp.prototype.getClass=function(){return cp},cp.map=function(t,e){return new cp(e).map(t)};var pp=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new Ul,this._resultLineList=new Ul;var t=arguments[0],e=arguments[1],n=arguments[2];this._op=t,this._geometryFactory=e,this._ptLocator=n};pp.prototype.collectLines=function(t){for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next();this.collectLineEdge(n,t,this._lineEdgesList),this.collectBoundaryTouchEdge(n,t,this._lineEdgesList)}},pp.prototype.labelIsolatedLine=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._op.getArgGeometry(e));t.getLabel().setLocation(e,n)},pp.prototype.build=function(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this._resultLineList},pp.prototype.collectLineEdge=function(t,e,n){var i=t.getLabel(),r=t.getEdge();t.isLineEdge()&&(t.isVisited()||!Zp.isResultOfOp(i,e)||r.isCovered()||(n.add(r),t.setVisitedEdge(!0)))},pp.prototype.findCoveredLineEdges=function(){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();)t.next().getEdges().findCoveredLineEdges();for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next(),i=n.getEdge();if(n.isLineEdge()&&!i.isCoveredSet()){var r=this._op.isCoveredByA(n.getCoordinate());i.setCovered(r)}}},pp.prototype.labelIsolatedLines=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=n.getLabel();n.isIsolated()&&(i.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},pp.prototype.buildLines=function(t){for(var e=this._lineEdgesList.iterator();e.hasNext();){var n=e.next(),i=this._geometryFactory.createLineString(n.getCoordinates());this._resultLineList.add(i),n.setInResult(!0)}},pp.prototype.collectBoundaryTouchEdge=function(t,e,n){var i=t.getLabel();return t.isLineEdge()?null:t.isVisited()?null:t.isInteriorAreaEdge()?null:t.getEdge().isInResult()?null:(wl.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(Zp.isResultOfOp(i,e)&&e===Zp.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},pp.prototype.interfaces_=function(){return[]},pp.prototype.getClass=function(){return pp};var fp=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new Ul;var t=arguments[0],e=arguments[1];this._op=t,this._geometryFactory=e};fp.prototype.filterCoveredNodeToPoint=function(t){var e=t.getCoordinate();if(!this._op.isCoveredByLA(e)){var n=this._geometryFactory.createPoint(e);this._resultPointList.add(n)}},fp.prototype.extractNonCoveredResultNodes=function(t){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();){var n=e.next();if(!(n.isInResult()||n.isIncidentEdgeInResult()||0!==n.getEdges().getDegree()&&t!==Zp.INTERSECTION)){var i=n.getLabel();Zp.isResultOfOp(i,t)&&this.filterCoveredNodeToPoint(n)}}},fp.prototype.build=function(t){return this.extractNonCoveredResultNodes(t),this._resultPointList},fp.prototype.interfaces_=function(){return[]},fp.prototype.getClass=function(){return fp};var dp=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};dp.prototype.transformPoint=function(t,e){return this._factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},dp.prototype.transformPolygon=function(t,e){var n=!0,i=this.transformLinearRing(t.getExteriorRing(),t);null!==i&&i instanceof bu&&!i.isEmpty()||(n=!1);for(var r=new Ul,o=0;o<t.getNumInteriorRing();o++){var a=this.transformLinearRing(t.getInteriorRingN(o),t);null===a||a.isEmpty()||(a instanceof bu||(n=!1),r.add(a))}if(n)return this._factory.createPolygon(i,r.toArray([]));var s=new Ul;return null!==i&&s.add(i),s.addAll(r),this._factory.buildGeometry(s)},dp.prototype.createCoordinateSequence=function(t){return this._factory.getCoordinateSequenceFactory().create(t)},dp.prototype.getInputGeometry=function(){return this._inputGeom},dp.prototype.transformMultiLineString=function(t,e){for(var n=new Ul,i=0;i<t.getNumGeometries();i++){var r=this.transformLineString(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},dp.prototype.transformCoordinates=function(t,e){return this.copy(t)},dp.prototype.transformLineString=function(t,e){return this._factory.createLineString(this.transformCoordinates(t.getCoordinateSequence(),t))},dp.prototype.transformMultiPoint=function(t,e){for(var n=new Ul,i=0;i<t.getNumGeometries();i++){var r=this.transformPoint(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},dp.prototype.transformMultiPolygon=function(t,e){for(var n=new Ul,i=0;i<t.getNumGeometries();i++){var r=this.transformPolygon(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},dp.prototype.copy=function(t){return t.copy()},dp.prototype.transformGeometryCollection=function(t,e){for(var n=new Ul,i=0;i<t.getNumGeometries();i++){var r=this.transform(t.getGeometryN(i));null!==r&&(this._pruneEmptyGeometry&&r.isEmpty()||n.add(r))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(Fu.toGeometryArray(n)):this._factory.buildGeometry(n)},dp.prototype.transform=function(t){if(this._inputGeom=t,this._factory=t.getFactory(),t instanceof vu)return this.transformPoint(t,null);if(t instanceof wu)return this.transformMultiPoint(t,null);if(t instanceof bu)return this.transformLinearRing(t,null);if(t instanceof mu)return this.transformLineString(t,null);if(t instanceof hu)return this.transformMultiLineString(t,null);if(t instanceof _u)return this.transformPolygon(t,null);if(t instanceof Pu)return this.transformMultiPolygon(t,null);if(t instanceof uu)return this.transformGeometryCollection(t,null);throw new Fs("Unknown Geometry subtype: "+t.getClass().getName())},dp.prototype.transformLinearRing=function(t,e){var n=this.transformCoordinates(t.getCoordinateSequence(),t);if(null===n)return this._factory.createLinearRing(null);var i=n.size();return 0<i&&i<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},dp.prototype.interfaces_=function(){return[]},dp.prototype.getClass=function(){return dp};var yp=function t(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new kh,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof mu&&"number"==typeof arguments[1]){var e=arguments[0],n=arguments[1];t.call(this,e.getCoordinates(),n)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var i=arguments[0],r=arguments[1];this._srcPts=i,this._isClosed=t.isClosed(i),this._snapTolerance=r}};yp.prototype.snapVertices=function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),i=0;i<n;i++){var r=t.get(i),o=this.findSnapForVertex(r,e);null!==o&&(t.set(i,new Us(o)),0===i&&this._isClosed&&t.set(t.size()-1,new Us(o)))}},yp.prototype.findSnapForVertex=function(t,e){for(var n=0;n<e.length;n++){if(t.equals2D(e[n]))return null;if(t.distance(e[n])<this._snapTolerance)return e[n]}return null},yp.prototype.snapTo=function(t){var e=new Zl(this._srcPts);return this.snapVertices(e,t),this.snapSegments(e,t),e.toCoordinateArray()},yp.prototype.snapSegments=function(t,e){if(0===e.length)return null;var n=e.length;e[0].equals2D(e[e.length-1])&&(n=e.length-1);for(var i=0;i<n;i++){var r=e[i],o=this.findSegmentIndexToSnap(r,t);0<=o&&t.add(o+1,new Us(r),!1)}},yp.prototype.findSegmentIndexToSnap=function(t,e){for(var n=Gs.MAX_VALUE,i=-1,r=0;r<e.size()-1;r++){if(this._seg.p0=e.get(r),this._seg.p1=e.get(r+1),this._seg.p0.equals2D(t)||this._seg.p1.equals2D(t)){if(this._allowSnappingToSourceVertices)continue;return-1}var o=this._seg.distance(t);o<this._snapTolerance&&o<n&&(n=o,i=r)}return i},yp.prototype.setAllowSnappingToSourceVertices=function(t){this._allowSnappingToSourceVertices=t},yp.prototype.interfaces_=function(){return[]},yp.prototype.getClass=function(){return yp},yp.isClosed=function(t){return!(t.length<=1)&&t[0].equals2D(t[t.length-1])};var mp=function(t){this._srcGeom=t||null},gp={SNAP_PRECISION_FACTOR:{configurable:!0}};mp.prototype.snapTo=function(t,e){var n=this.extractTargetCoordinates(t);return new vp(e,n).transform(this._srcGeom)},mp.prototype.snapToSelf=function(t,e){var n=this.extractTargetCoordinates(this._srcGeom),i=new vp(t,n,!0).transform(this._srcGeom),r=i;return e&&Ks(r,xu)&&(r=i.buffer(0)),r},mp.prototype.computeSnapTolerance=function(t){return this.computeMinimumSegmentLength(t)/10},mp.prototype.extractTargetCoordinates=function(t){for(var e=new Pr,n=t.getCoordinates(),i=0;i<n.length;i++)e.add(n[i]);return e.toArray(new Array(0).fill(null))},mp.prototype.computeMinimumSegmentLength=function(t){for(var e=Gs.MAX_VALUE,n=0;n<t.length-1;n++){var i=t[n].distance(t[n+1]);i<e&&(e=i)}return e},mp.prototype.interfaces_=function(){return[]},mp.prototype.getClass=function(){return mp},mp.snap=function(t,e,n){var i=new Array(2).fill(null),r=new mp(t);i[0]=r.snapTo(e,n);var o=new mp(e);return i[1]=o.snapTo(i[0],n),i},mp.computeOverlaySnapTolerance=function(){if(1===arguments.length){var t=arguments[0],e=mp.computeSizeBasedSnapTolerance(t),n=t.getPrecisionModel();if(n.getType()===Nu.FIXED){var i=1/n.getScale()*2/1.415;e<i&&(e=i)}return e}if(2===arguments.length){var r=arguments[0],o=arguments[1];return Math.min(mp.computeOverlaySnapTolerance(r),mp.computeOverlaySnapTolerance(o))}},mp.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*mp.SNAP_PRECISION_FACTOR},mp.snapToSelf=function(t,e,n){return new mp(t).snapToSelf(e,n)},gp.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(mp,gp);var vp=function(i){function t(t,e,n){i.call(this),this._snapTolerance=t||null,this._snapPts=e||null,this._isSelfSnap=void 0!==n&&n}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.snapLine=function(t,e){var n=new yp(t,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(e)},t.prototype.transformCoordinates=function(t,e){var n=t.toCoordinateArray(),i=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(i)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(dp),xp=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};xp.prototype.getCommon=function(){return Gs.longBitsToDouble(this._commonBits)},xp.prototype.add=function(t){var e=Gs.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=xp.signExpBits(this._commonBits),this._isFirst=!1,null):xp.signExpBits(e)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=xp.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=xp.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},xp.prototype.toString=function(){if(1===arguments.length){var t=arguments[0],e=Gs.longBitsToDouble(t),n="0000000000000000000000000000000000000000000000000000000000000000"+Gs.toBinaryString(t),i=n.substring(n.length-64);return i.substring(0,1)+" "+i.substring(1,12)+"(exp) "+i.substring(12)+" [ "+e+" ]"}},xp.prototype.interfaces_=function(){return[]},xp.prototype.getClass=function(){return xp},xp.getBit=function(t,e){return 0!=(t&1<<e)?1:0},xp.signExpBits=function(t){return t>>52},xp.zeroLowerBits=function(t,e){return t&~((1<<e)-1)},xp.numCommonMostSigMantissaBits=function(t,e){for(var n=0,i=52;0<=i;i--){if(xp.getBit(t,i)!==xp.getBit(e,i))return n;n++}return 52};var _p=function(){this._commonCoord=null,this._ccFilter=new bp},wp={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};_p.prototype.addCommonBits=function(t){var e=new Pp(this._commonCoord);t.apply(e),t.geometryChanged()},_p.prototype.removeCommonBits=function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new Us(this._commonCoord);e.x=-e.x,e.y=-e.y;var n=new Pp(e);return t.apply(n),t.geometryChanged(),t},_p.prototype.getCommonCoordinate=function(){return this._commonCoord},_p.prototype.add=function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},_p.prototype.interfaces_=function(){return[]},_p.prototype.getClass=function(){return _p},wp.CommonCoordinateFilter.get=function(){return bp},wp.Translater.get=function(){return Pp},Object.defineProperties(_p,wp);var bp=function(){this._commonBitsX=new xp,this._commonBitsY=new xp};bp.prototype.filter=function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},bp.prototype.getCommonCoordinate=function(){return new Us(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},bp.prototype.interfaces_=function(){return[Ol]},bp.prototype.getClass=function(){return bp};var Pp=function(){this.trans=null;var t=arguments[0];this.trans=t};Pp.prototype.filter=function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,i=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,i)},Pp.prototype.isDone=function(){return!1},Pp.prototype.isGeometryChanged=function(){return!0},Pp.prototype.interfaces_=function(){return[lu]},Pp.prototype.getClass=function(){return Pp};var Sp=function(t,e){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()};Sp.prototype.selfSnap=function(t){return new mp(t).snapTo(t,this._snapTolerance)},Sp.prototype.removeCommonBits=function(t){this._cbr=new _p,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},Sp.prototype.prepareResult=function(t){return this._cbr.addCommonBits(t),t},Sp.prototype.getResultGeometry=function(t){var e=this.snap(this._geom),n=Zp.overlayOp(e[0],e[1],t);return this.prepareResult(n)},Sp.prototype.checkValid=function(t){t.isValid()||hl.out.println("Snapped geometry is invalid")},Sp.prototype.computeSnapTolerance=function(){this._snapTolerance=mp.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},Sp.prototype.snap=function(t){var e=this.removeCommonBits(t);return mp.snap(e[0],e[1],this._snapTolerance)},Sp.prototype.interfaces_=function(){return[]},Sp.prototype.getClass=function(){return Sp},Sp.overlayOp=function(t,e,n){return new Sp(t,e).getResultGeometry(n)},Sp.union=function(t,e){return Sp.overlayOp(t,e,Zp.UNION)},Sp.intersection=function(t,e){return Sp.overlayOp(t,e,Zp.INTERSECTION)},Sp.symDifference=function(t,e){return Sp.overlayOp(t,e,Zp.SYMDIFFERENCE)},Sp.difference=function(t,e){return Sp.overlayOp(t,e,Zp.DIFFERENCE)};var Cp=function(t,e){this._geom=new Array(2).fill(null),this._geom[0]=t,this._geom[1]=e};Cp.prototype.getResultGeometry=function(t){var e=null,n=!1,i=null;try{e=Zp.overlayOp(this._geom[0],this._geom[1],t),n=!0}catch(t){if(!(t instanceof xl))throw t;i=t}if(!n)try{e=Sp.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof xl?i:t}return e},Cp.prototype.interfaces_=function(){return[]},Cp.prototype.getClass=function(){return Cp},Cp.overlayOp=function(t,e,n){return new Cp(t,e).getResultGeometry(n)},Cp.union=function(t,e){return Cp.overlayOp(t,e,Zp.UNION)},Cp.intersection=function(t,e){return Cp.overlayOp(t,e,Zp.INTERSECTION)},Cp.symDifference=function(t,e){return Cp.overlayOp(t,e,Zp.SYMDIFFERENCE)},Cp.difference=function(t,e){return Cp.overlayOp(t,e,Zp.DIFFERENCE)};var Mp=function(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e};Mp.prototype.computeIntersections=function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},Mp.prototype.interfaces_=function(){return[]},Mp.prototype.getClass=function(){return Mp};var Tp=function t(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var e=arguments[0],n=arguments[1];this._eventType=t.DELETE,this._xValue=e,this._insertEvent=n}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._eventType=t.INSERT,this._label=i,this._xValue=r,this._obj=o}},Ap={INSERT:{configurable:!0},DELETE:{configurable:!0}};Tp.prototype.isDelete=function(){return this._eventType===Tp.DELETE},Tp.prototype.setDeleteEventIndex=function(t){this._deleteEventIndex=t},Tp.prototype.getObject=function(){return this._obj},Tp.prototype.compareTo=function(t){var e=t;return this._xValue<e._xValue?-1:this._xValue>e._xValue?1:this._eventType<e._eventType?-1:this._eventType>e._eventType?1:0},Tp.prototype.getInsertEvent=function(){return this._insertEvent},Tp.prototype.isInsert=function(){return this._eventType===Tp.INSERT},Tp.prototype.isSameLabel=function(t){return null!==this._label&&this._label===t._label},Tp.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},Tp.prototype.interfaces_=function(){return[Vs]},Tp.prototype.getClass=function(){return Tp},Ap.INSERT.get=function(){return 1},Ap.DELETE.get=function(){return 2},Object.defineProperties(Tp,Ap);var Ep=function(){};Ep.prototype.interfaces_=function(){return[]},Ep.prototype.getClass=function(){return Ep};var Ip=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=n};Ip.prototype.isTrivialIntersection=function(t,e,n,i){if(t===n&&1===this._li.getIntersectionNum()){if(Ip.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.getNumPoints()-1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},Ip.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},Ip.prototype.setIsDoneIfProperInt=function(t){this._isDoneWhenProperInt=t},Ip.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},Ip.prototype.isBoundaryPointInternal=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next().getCoordinate();if(t.isIntersection(i))return!0}return!1},Ip.prototype.hasProperIntersection=function(){return this._hasProper},Ip.prototype.hasIntersection=function(){return this._hasIntersection},Ip.prototype.isDone=function(){return this._isDone},Ip.prototype.isBoundaryPoint=function(t,e){return!(null===e||!this.isBoundaryPointInternal(t,e[0])&&!this.isBoundaryPointInternal(t,e[1]))},Ip.prototype.setBoundaryNodes=function(t,e){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},Ip.prototype.addIntersections=function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[i],s=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,a,s),this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,n,i)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},Ip.prototype.interfaces_=function(){return[]},Ip.prototype.getClass=function(){return Ip},Ip.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var Lp=function(t){function e(){t.call(this),this.events=new Ul,this.nOverlaps=null}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.prepareEvents=function(){_h.sort(this.events);for(var t=0;t<this.events.size();t++){var e=this.events.get(t);e.isDelete()&&e.getInsertEvent().setDeleteEventIndex(t)}},e.prototype.computeIntersections=function(){if(1===arguments.length){var t=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var e=0;e<this.events.size();e++){var n=this.events.get(e);if(n.isInsert()&&this.processOverlaps(e,n.getDeleteEventIndex(),n,t),t.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof Ip&&Ks(arguments[0],Bl)&&Ks(arguments[1],Bl)){var i=arguments[0],r=arguments[1],o=arguments[2];this.addEdges(i,i),this.addEdges(r,r),this.computeIntersections(o)}else if("boolean"==typeof arguments[2]&&Ks(arguments[0],Bl)&&arguments[1]instanceof Ip){var a=arguments[0],s=arguments[1];arguments[2]?this.addEdges(a,null):this.addEdges(a),this.computeIntersections(s)}},e.prototype.addEdge=function(t,e){for(var n=t.getMonotoneChainEdge(),i=n.getStartIndexes(),r=0;r<i.length-1;r++){var o=new Mp(n,r),a=new Tp(e,n.getMinX(r),o);this.events.add(a),this.events.add(new Tp(n.getMaxX(r),a))}},e.prototype.processOverlaps=function(t,e,n,i){for(var r=n.getObject(),o=t;o<e;o++){var a=this.events.get(o);if(a.isInsert()){var s=a.getObject();n.isSameLabel(a)||(r.computeIntersections(s,i),this.nOverlaps++)}}},e.prototype.addEdges=function(){if(1===arguments.length)for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.addEdge(e,e)}else if(2===arguments.length)for(var n=arguments[0],i=arguments[1],r=n.iterator();r.hasNext();){var o=r.next();this.addEdge(o,i)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ep),Rp=function(){this._min=Gs.POSITIVE_INFINITY,this._max=Gs.NEGATIVE_INFINITY},Op={NodeComparator:{configurable:!0}};Rp.prototype.getMin=function(){return this._min},Rp.prototype.intersects=function(t,e){return!(this._min>e||this._max<t)},Rp.prototype.getMax=function(){return this._max},Rp.prototype.toString=function(){return vl.toLineString(new Us(this._min,0),new Us(this._max,0))},Rp.prototype.interfaces_=function(){return[]},Rp.prototype.getClass=function(){return Rp},Op.NodeComparator.get=function(){return Np},Object.defineProperties(Rp,Op);var Np=function(){};Np.prototype.compare=function(t,e){var n=t,i=e,r=(n._min+n._max)/2,o=(i._min+i._max)/2;return r<o?-1:o<r?1:0},Np.prototype.interfaces_=function(){return[Bs]},Np.prototype.getClass=function(){return Np};var kp=function(i){function t(){i.call(this),this._item=null;var t=arguments[0],e=arguments[1],n=arguments[2];this._min=t,this._max=e,this._item=n}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Rp),zp=function(n){function t(){n.call(this),this._node1=null,this._node2=null;var t=arguments[0],e=arguments[1];this._node1=t,this._node2=e,this.buildExtent(this._node1,this._node2)}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.buildExtent=function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},t.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Rp),Dp=function(){this._leaves=new Ul,this._root=null,this._level=0};Dp.prototype.buildTree=function(){_h.sort(this._leaves,new Rp.NodeComparator);for(var t=this._leaves,e=null,n=new Ul;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},Dp.prototype.insert=function(t,e,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new kp(t,e,n))},Dp.prototype.query=function(t,e,n){this.init(),this._root.query(t,e,n)},Dp.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},Dp.prototype.printNode=function(t){hl.out.println(vl.toLineString(new Us(t._min,this._level),new Us(t._max,this._level)))},Dp.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},Dp.prototype.buildLevel=function(t,e){this._level++,e.clear();for(var n=0;n<t.size();n+=2){var i=t.get(n);if(null===(n+1<t.size()?t.get(n):null))e.add(i);else{var r=new zp(t.get(n),t.get(n+1));e.add(r)}}},Dp.prototype.interfaces_=function(){return[]},Dp.prototype.getClass=function(){return Dp};var Fp=function(){this._items=new Ul};Fp.prototype.visitItem=function(t){this._items.add(t)},Fp.prototype.getItems=function(){return this._items},Fp.prototype.interfaces_=function(){return[mh]},Fp.prototype.getClass=function(){return Fp};var Gp=function(){this._index=null;var t=arguments[0];if(!Ks(t,xu))throw new Fs("Argument must be Polygonal");this._index=new qp(t)},jp={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};Gp.prototype.locate=function(t){var e=new Ml(t),n=new Vp(e);return this._index.query(t.y,t.y,n),e.getLocation()},Gp.prototype.interfaces_=function(){return[ac]},Gp.prototype.getClass=function(){return Gp},jp.SegmentVisitor.get=function(){return Vp},jp.IntervalIndexedGeometry.get=function(){return qp},Object.defineProperties(Gp,jp);var Vp=function(){this._counter=null;var t=arguments[0];this._counter=t};Vp.prototype.visitItem=function(t){var e=t;this._counter.countSegment(e.getCoordinate(0),e.getCoordinate(1))},Vp.prototype.interfaces_=function(){return[mh]},Vp.prototype.getClass=function(){return Vp};var qp=function(){this._index=new Dp;var t=arguments[0];this.init(t)};qp.prototype.init=function(t){for(var e=Uc.getLines(t).iterator();e.hasNext();){var n=e.next().getCoordinates();this.addLine(n)}},qp.prototype.addLine=function(t){for(var e=1;e<t.length;e++){var n=new kh(t[e-1],t[e]),i=Math.min(n.p0.y,n.p1.y),r=Math.max(n.p0.y,n.p1.y);this._index.insert(i,r,n)}},qp.prototype.query=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new Fp;return this._index.query(t,e,n),n.getItems()}if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._index.query(i,r,o)}},qp.prototype.interfaces_=function(){return[]},qp.prototype.getClass=function(){return qp};var Bp=function(a){function o(){if(a.call(this),this._parentGeom=null,this._lineEdgeMap=new Ou,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Wc,2===arguments.length){var t=arguments[0],e=arguments[1],n=Nl.OGC_SFS_BOUNDARY_RULE;this._argIndex=t,this._parentGeom=e,this._boundaryNodeRule=n,null!==e&&this.add(e)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._argIndex=i,this._parentGeom=r,this._boundaryNodeRule=o,null!==r&&this.add(r)}}return a&&(o.__proto__=a),((o.prototype=Object.create(a&&a.prototype)).constructor=o).prototype.insertBoundaryPoint=function(t,e){var n=this._nodes.addNode(e).getLabel(),i=1;n.getLocation(t,Zu.ON)===Hs.BOUNDARY&&i++;var r=o.determineBoundary(this._boundaryNodeRule,i);n.setLocation(t,r)},o.prototype.computeSelfNodes=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.computeSelfNodes(t,e,!1)}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=new Ip(n,!0,!1);o.setIsDoneIfProperInt(r);var a=this.createEdgeSetIntersector(),s=this._parentGeom instanceof bu||this._parentGeom instanceof _u||this._parentGeom instanceof Pu,l=i||!s;return a.computeIntersections(this._edges,o,l),this.addSelfIntersectionNodes(this._argIndex),o}},o.prototype.computeSplitEdges=function(t){for(var e=this._edges.iterator();e.hasNext();)e.next().eiList.addSplitEdges(t)},o.prototype.computeEdgeIntersections=function(t,e,n){var i=new Ip(e,n,!0);return i.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,t._edges,i),i},o.prototype.getGeometry=function(){return this._parentGeom},o.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},o.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},o.prototype.addPoint=function(){if(arguments[0]instanceof vu){var t=arguments[0].getCoordinate();this.insertPoint(this._argIndex,t,Hs.INTERIOR)}else if(arguments[0]instanceof Us){var e=arguments[0];this.insertPoint(this._argIndex,e,Hs.INTERIOR)}},o.prototype.addPolygon=function(t){this.addPolygonRing(t.getExteriorRing(),Hs.EXTERIOR,Hs.INTERIOR);for(var e=0;e<t.getNumInteriorRing();e++){var n=t.getInteriorRingN(e);this.addPolygonRing(n,Hs.INTERIOR,Hs.EXTERIOR)}},o.prototype.addEdge=function(t){this.insertEdge(t);var e=t.getCoordinates();this.insertPoint(this._argIndex,e[0],Hs.BOUNDARY),this.insertPoint(this._argIndex,e[e.length-1],Hs.BOUNDARY)},o.prototype.addLineString=function(t){var e=Xl.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=e[0],null;var n=new bc(e,new $u(this._argIndex,Hs.INTERIOR));this._lineEdgeMap.put(t,n),this.insertEdge(n),wl.isTrue(2<=e.length,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},o.prototype.getInvalidPoint=function(){return this._invalidPoint},o.prototype.getBoundaryPoints=function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,i=t.iterator();i.hasNext();){var r=i.next();e[n++]=r.getCoordinate().copy()}return e},o.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},o.prototype.addSelfIntersectionNode=function(t,e,n){if(this.isBoundaryNode(t,e))return null;n===Hs.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)},o.prototype.addPolygonRing=function(t,e,n){if(t.isEmpty())return null;var i=Xl.removeRepeatedPoints(t.getCoordinates());if(i.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=i[0],null;var r=e,o=n;Tl.isCCW(i)&&(r=n,o=e);var a=new bc(i,new $u(this._argIndex,Hs.BOUNDARY,r,o));this._lineEdgeMap.put(t,a),this.insertEdge(a),this.insertPoint(this._argIndex,i[0],Hs.BOUNDARY)},o.prototype.insertPoint=function(t,e,n){var i=this._nodes.addNode(e),r=i.getLabel();null===r?i._label=new $u(t,n):r.setLocation(t,n)},o.prototype.createEdgeSetIntersector=function(){return new Lp},o.prototype.addSelfIntersectionNodes=function(t){for(var e=this._edges.iterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.eiList.iterator();r.hasNext();){var o=r.next();this.addSelfIntersectionNode(t,o.coord,i)}},o.prototype.add=function(){if(1!==arguments.length)return a.prototype.add.apply(this,arguments);var t=arguments[0];if(t.isEmpty())return null;if(t instanceof Pu&&(this._useBoundaryDeterminationRule=!1),t instanceof _u)this.addPolygon(t);else if(t instanceof mu)this.addLineString(t);else if(t instanceof vu)this.addPoint(t);else if(t instanceof wu)this.addCollection(t);else if(t instanceof hu)this.addCollection(t);else if(t instanceof Pu)this.addCollection(t);else{if(!(t instanceof uu))throw new Error(t.getClass().getName());this.addCollection(t)}},o.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},o.prototype.locate=function(t){return Ks(this._parentGeom,xu)&&50<this._parentGeom.getNumGeometries()?(null===this._areaPtLocator&&(this._areaPtLocator=new Gp(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},o.prototype.findEdge=function(){if(1!==arguments.length)return a.prototype.findEdge.apply(this,arguments);var t=arguments[0];return this._lineEdgeMap.get(t)},o.prototype.interfaces_=function(){return[]},o.prototype.getClass=function(){return o},o.determineBoundary=function(t,e){return t.isInBoundary(e)?Hs.BOUNDARY:Hs.INTERIOR},o}(ch),Up=function(){if(this._li=new Sl,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new Bp(0,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=Nl.OGC_SFS_BOUNDARY_RULE;0<=e.getPrecisionModel().compareTo(n.getPrecisionModel())?this.setComputationPrecision(e.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Bp(0,e,i),this._arg[1]=new Bp(1,n,i)}else if(3===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2];0<=r.getPrecisionModel().compareTo(o.getPrecisionModel())?this.setComputationPrecision(r.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Bp(0,r,a),this._arg[1]=new Bp(1,o,a)}};Up.prototype.getArgGeometry=function(t){return this._arg[t].getGeometry()},Up.prototype.setComputationPrecision=function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},Up.prototype.interfaces_=function(){return[]},Up.prototype.getClass=function(){return Up};var Wp=function(){};Wp.prototype.interfaces_=function(){return[]},Wp.prototype.getClass=function(){return Wp},Wp.map=function(){if(arguments[0]instanceof Il&&Ks(arguments[1],Wp.MapOp)){for(var t=arguments[0],e=arguments[1],n=new Ul,i=0;i<t.getNumGeometries();i++){var r=e.map(t.getGeometryN(i));null!==r&&n.add(r)}return t.getFactory().buildGeometry(n)}if(Ks(arguments[0],jl)&&Ks(arguments[1],Wp.MapOp)){for(var o=arguments[0],a=arguments[1],s=new Ul,l=o.iterator();l.hasNext();){var u=l.next(),h=a.map(u);null!==h&&s.add(h)}return s}},Wp.MapOp=function(){};var Zp=function(n){function o(){var t=arguments[0],e=arguments[1];n.call(this,t,e),this._ptLocator=new Wc,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new fc,this._resultPolyList=new Ul,this._resultLineList=new Ul,this._resultPointList=new Ul,this._graph=new ch(new cc),this._geomFact=t.getFactory()}return n&&(o.__proto__=n),((o.prototype=Object.create(n&&n.prototype)).constructor=o).prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),i=t.getLabel();e.isPointwiseEqual(t)||(i=new $u(t.getLabel())).flip();var r=e.getDepth();r.isNull()&&r.add(n),r.add(i),n.merge(i)}else this._edgeList.add(t)},o.prototype.getGraph=function(){return this._graph},o.prototype.cancelDuplicateResultEdges=function(){for(var t=this._graph.getEdgeEnds().iterator();t.hasNext();){var e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}},o.prototype.isCoveredByLA=function(t){return!!this.isCovered(t,this._resultLineList)||!!this.isCovered(t,this._resultPolyList)},o.prototype.computeGeometry=function(t,e,n,i){var r=new Ul;return r.addAll(t),r.addAll(e),r.addAll(n),r.isEmpty()?o.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(r)},o.prototype.mergeSymLabels=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().mergeSymLabels()},o.prototype.isCovered=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();if(this._ptLocator.locate(t,i)!==Hs.EXTERIOR)return!0}return!1},o.prototype.replaceCollapsedEdges=function(){for(var t=new Ul,e=this._edgeList.iterator();e.hasNext();){var n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this._edgeList.addAll(t)},o.prototype.updateNodeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}},o.prototype.getResultGeometry=function(t){return this.computeOverlay(t),this._resultGeom},o.prototype.insertUniqueEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertUniqueEdge(n)}},o.prototype.computeOverlay=function(t){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var e=new Ul;this._arg[0].computeSplitEdges(e),this._arg[1].computeSplitEdges(e),this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),hp.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();var n=new ph(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var i=new pp(this,this._geomFact,this._ptLocator);this._resultLineList=i.build(t);var r=new fp(this,this._geomFact,this._ptLocator);this._resultPointList=r.build(t),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,t)},o.prototype.labelIncompleteNode=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setLocation(e,n)},o.prototype.copyPoints=function(t){for(var e=this._arg[t].getNodeIterator();e.hasNext();){var n=e.next();this._graph.addNode(n.getCoordinate()).setLabel(t,n.getLabel().getLocation(t))}},o.prototype.findResultAreaEdges=function(t){for(var e=this._graph.getEdgeEnds().iterator();e.hasNext();){var n=e.next(),i=n.getLabel();i.isArea()&&!n.isInteriorAreaEdge()&&o.isResultOfOp(i.getLocation(0,Zu.RIGHT),i.getLocation(1,Zu.RIGHT),t)&&n.setInResult(!0)}},o.prototype.computeLabelsFromDepths=function(){for(var t=this._edgeList.iterator();t.hasNext();){var e=t.next(),n=e.getLabel(),i=e.getDepth();if(!i.isNull()){i.normalize();for(var r=0;r<2;r++)n.isNull(r)||!n.isArea()||i.isNull(r)||(0===i.getDelta(r)?n.toLine(r):(wl.isTrue(!i.isNull(r,Zu.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(r,Zu.LEFT,i.getLocation(r,Zu.LEFT)),wl.isTrue(!i.isNull(r,Zu.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(r,Zu.RIGHT,i.getLocation(r,Zu.RIGHT))))}}},o.prototype.computeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},o.prototype.labelIncompleteNodes=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getLabel();e.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(e,0):this.labelIncompleteNode(e,1)),e.getEdges().updateLabelling(n)}},o.prototype.isCoveredByA=function(t){return!!this.isCovered(t,this._resultPolyList)},o.prototype.interfaces_=function(){return[]},o.prototype.getClass=function(){return o},o}(Up);Zp.overlayOp=function(t,e,n){return new Zp(t,e).getResultGeometry(n)},Zp.intersection=function(t,e){if(t.isEmpty()||e.isEmpty())return Zp.createEmptyResult(Zp.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){var n=e;return cp.map(t,{interfaces_:function(){return[Wp.MapOp]},map:function(t){return t.intersection(n)}})}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),Cp.overlayOp(t,e,Zp.INTERSECTION)},Zp.symDifference=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Zp.createEmptyResult(Zp.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),Cp.overlayOp(t,e,Zp.SYMDIFFERENCE)},Zp.resultDimension=function(t,e,n){var i=e.getDimension(),r=n.getDimension(),o=-1;switch(t){case Zp.INTERSECTION:o=Math.min(i,r);break;case Zp.UNION:o=Math.max(i,r);break;case Zp.DIFFERENCE:o=i;break;case Zp.SYMDIFFERENCE:o=Math.max(i,r)}return o},Zp.createEmptyResult=function(t,e,n,i){var r=null;switch(Zp.resultDimension(t,e,n)){case-1:r=i.createGeometryCollection(new Array(0).fill(null));break;case 0:r=i.createPoint();break;case 1:r=i.createLineString();break;case 2:r=i.createPolygon()}return r},Zp.difference=function(t,e){return t.isEmpty()?Zp.createEmptyResult(Zp.DIFFERENCE,t,e,t.getFactory()):e.isEmpty()?t.copy():(t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),Cp.overlayOp(t,e,Zp.DIFFERENCE))},Zp.isResultOfOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=t.getLocation(0),i=t.getLocation(1);return Zp.isResultOfOp(n,i,e)}if(3===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2];switch(r===Hs.BOUNDARY&&(r=Hs.INTERIOR),o===Hs.BOUNDARY&&(o=Hs.INTERIOR),a){case Zp.INTERSECTION:return r===Hs.INTERIOR&&o===Hs.INTERIOR;case Zp.UNION:return r===Hs.INTERIOR||o===Hs.INTERIOR;case Zp.DIFFERENCE:return r===Hs.INTERIOR&&o!==Hs.INTERIOR;case Zp.SYMDIFFERENCE:return r===Hs.INTERIOR&&o!==Hs.INTERIOR||r!==Hs.INTERIOR&&o===Hs.INTERIOR}return!1}},Zp.INTERSECTION=1,Zp.UNION=2,Zp.DIFFERENCE=3,Zp.SYMDIFFERENCE=4;var Xp=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new Wc,this._seg=new kh;var t=arguments[0],e=arguments[1];this._g=t,this._boundaryDistanceTolerance=e,this._linework=this.extractLinework(t)};Xp.prototype.isWithinToleranceOfBoundary=function(t){for(var e=0;e<this._linework.getNumGeometries();e++)for(var n=this._linework.getGeometryN(e).getCoordinateSequence(),i=0;i<n.size()-1;i++)if(n.getCoordinate(i,this._seg.p0),n.getCoordinate(i+1,this._seg.p1),this._seg.distance(t)<=this._boundaryDistanceTolerance)return!0;return!1},Xp.prototype.getLocation=function(t){return this.isWithinToleranceOfBoundary(t)?Hs.BOUNDARY:this._ptLocator.locate(t,this._g)},Xp.prototype.extractLinework=function(t){var e=new Hp;t.apply(e);var n=e.getLinework(),i=Fu.toLineStringArray(n);return t.getFactory().createMultiLineString(i)},Xp.prototype.interfaces_=function(){return[]},Xp.prototype.getClass=function(){return Xp};var Hp=function(){this._linework=null,this._linework=new Ul};Hp.prototype.getLinework=function(){return this._linework},Hp.prototype.filter=function(t){if(t instanceof _u){var e=t;this._linework.add(e.getExteriorRing());for(var n=0;n<e.getNumInteriorRing();n++)this._linework.add(e.getInteriorRingN(n))}},Hp.prototype.interfaces_=function(){return[su]},Hp.prototype.getClass=function(){return Hp};var Yp=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var t=arguments[0];this._g=t};Yp.prototype.extractPoints=function(t,e,n){for(var i=t.getCoordinates(),r=0;r<i.length-1;r++)this.computeOffsetPoints(i[r],i[r+1],e,n)},Yp.prototype.setSidesToGenerate=function(t,e){this._doLeft=t,this._doRight=e},Yp.prototype.getPoints=function(t){for(var e=new Ul,n=Uc.getLines(this._g).iterator();n.hasNext();){var i=n.next();this.extractPoints(i,t,e)}return e},Yp.prototype.computeOffsetPoints=function(t,e,n,i){var r=e.x-t.x,o=e.y-t.y,a=Math.sqrt(r*r+o*o),s=n*r/a,l=n*o/a,u=(e.x+t.x)/2,h=(e.y+t.y)/2;if(this._doLeft){var c=new Us(u-l,h+s);i.add(c)}if(this._doRight){var p=new Us(u+l,h-s);i.add(p)}},Yp.prototype.interfaces_=function(){return[]},Yp.prototype.getClass=function(){return Yp};var Kp=function t(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=t.TOLERANCE,this._testCoords=new Ul;var e=arguments[0],n=arguments[1],i=arguments[2];this._boundaryDistanceTolerance=t.computeBoundaryDistanceTolerance(e,n),this._geom=[e,n,i],this._locFinder=[new Xp(this._geom[0],this._boundaryDistanceTolerance),new Xp(this._geom[1],this._boundaryDistanceTolerance),new Xp(this._geom[2],this._boundaryDistanceTolerance)]},Jp={TOLERANCE:{configurable:!0}};Kp.prototype.reportResult=function(t,e,n){hl.out.println("Overlay result invalid - A:"+Hs.toLocationSymbol(e[0])+" B:"+Hs.toLocationSymbol(e[1])+" expected:"+(n?"i":"e")+" actual:"+Hs.toLocationSymbol(e[2]))},Kp.prototype.isValid=function(t){this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]);var e=this.checkValid(t);return e},Kp.prototype.checkValid=function(){if(1===arguments.length){for(var t=arguments[0],e=0;e<this._testCoords.size();e++){var n=this._testCoords.get(e);if(!this.checkValid(t,n))return this._invalidLocation=n,!1}return!0}if(2===arguments.length){var i=arguments[0],r=arguments[1];return this._location[0]=this._locFinder[0].getLocation(r),this._location[1]=this._locFinder[1].getLocation(r),this._location[2]=this._locFinder[2].getLocation(r),!!Kp.hasLocation(this._location,Hs.BOUNDARY)||this.isValidResult(i,this._location)}},Kp.prototype.addTestPts=function(t){var e=new Yp(t);this._testCoords.addAll(e.getPoints(5*this._boundaryDistanceTolerance))},Kp.prototype.isValidResult=function(t,e){var n=Zp.isResultOfOp(e[0],e[1],t),i=!(n^e[2]===Hs.INTERIOR);return i||this.reportResult(t,e,n),i},Kp.prototype.getInvalidLocation=function(){return this._invalidLocation},Kp.prototype.interfaces_=function(){return[]},Kp.prototype.getClass=function(){return Kp},Kp.hasLocation=function(t,e){for(var n=0;n<3;n++)if(t[n]===e)return!0;return!1},Kp.computeBoundaryDistanceTolerance=function(t,e){return Math.min(mp.computeSizeBasedSnapTolerance(t),mp.computeSizeBasedSnapTolerance(e))},Kp.isValid=function(t,e,n,i){return new Kp(t,e,i).isValid(n)},Jp.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(Kp,Jp);var Qp=function t(e){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=t.extractFactory(e),this._inputGeoms=e};Qp.prototype.extractElements=function(t,e){if(null===t)return null;for(var n=0;n<t.getNumGeometries();n++){var i=t.getGeometryN(n);this._skipEmpty&&i.isEmpty()||e.add(i)}},Qp.prototype.combine=function(){for(var t=new Ul,e=this._inputGeoms.iterator();e.hasNext();){var n=e.next();this.extractElements(n,t)}return 0===t.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(t)},Qp.prototype.interfaces_=function(){return[]},Qp.prototype.getClass=function(){return Qp},Qp.combine=function(){if(1===arguments.length){var t=arguments[0];return new Qp(t).combine()}if(2===arguments.length){var e=arguments[0],n=arguments[1];return new Qp(Qp.createList(e,n)).combine()}if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];return new Qp(Qp.createList(i,r,o)).combine()}},Qp.extractFactory=function(t){return t.isEmpty()?null:t.iterator().next().getFactory()},Qp.createList=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new Ul;return n.add(t),n.add(e),n}if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2],a=new Ul;return a.add(i),a.add(r),a.add(o),a}};var $p=function(){this._inputPolys=null,this._geomFactory=null;var t=arguments[0];this._inputPolys=t,null===this._inputPolys&&(this._inputPolys=new Ul)},tf={STRTREE_NODE_CAPACITY:{configurable:!0}};$p.prototype.reduceToGeometries=function(t){for(var e=new Ul,n=t.iterator();n.hasNext();){var i=n.next(),r=null;Ks(i,Bl)?r=this.unionTree(i):i instanceof Il&&(r=i),e.add(r)}return e},$p.prototype.extractByEnvelope=function(t,e,n){for(var i=new Ul,r=0;r<e.getNumGeometries();r++){var o=e.getGeometryN(r);o.getEnvelopeInternal().intersects(t)?i.add(o):n.add(o)}return this._geomFactory.buildGeometry(i)},$p.prototype.unionOptimized=function(t,e){var n=t.getEnvelopeInternal(),i=e.getEnvelopeInternal();if(!n.intersects(i))return Qp.combine(t,e);if(t.getNumGeometries()<=1&&e.getNumGeometries()<=1)return this.unionActual(t,e);var r=n.intersection(i);return this.unionUsingEnvelopeIntersection(t,e,r)},$p.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var t=new Mh($p.STRTREE_NODE_CAPACITY),e=this._inputPolys.iterator();e.hasNext();){var n=e.next();t.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var i=t.itemsTree();return this.unionTree(i)},$p.prototype.binaryUnion=function(){if(1===arguments.length){var t=arguments[0];return this.binaryUnion(t,0,t.size())}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2];if(i-n<=1){var r=$p.getGeometry(e,n);return this.unionSafe(r,null)}if(i-n==2)return this.unionSafe($p.getGeometry(e,n),$p.getGeometry(e,n+1));var o=Math.trunc((i+n)/2),a=this.binaryUnion(e,n,o),s=this.binaryUnion(e,o,i);return this.unionSafe(a,s)}},$p.prototype.repeatedUnion=function(t){for(var e=null,n=t.iterator();n.hasNext();){var i=n.next();e=null===e?i.copy():e.union(i)}return e},$p.prototype.unionSafe=function(t,e){return null===t&&null===e?null:null===t?e.copy():null===e?t.copy():this.unionOptimized(t,e)},$p.prototype.unionActual=function(t,e){return $p.restrictToPolygons(t.union(e))},$p.prototype.unionTree=function(t){var e=this.reduceToGeometries(t);return this.binaryUnion(e)},$p.prototype.unionUsingEnvelopeIntersection=function(t,e,n){var i=new Ul,r=this.extractByEnvelope(n,t,i),o=this.extractByEnvelope(n,e,i),a=this.unionActual(r,o);return i.add(a),Qp.combine(i)},$p.prototype.bufferUnion=function(){if(1===arguments.length){var t=arguments[0];return t.get(0).getFactory().buildGeometry(t).buffer(0)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().createGeometryCollection([e,n]).buffer(0)}},$p.prototype.interfaces_=function(){return[]},$p.prototype.getClass=function(){return $p},$p.restrictToPolygons=function(t){if(Ks(t,xu))return t;var e=Bc.getPolygons(t);return 1===e.size()?e.get(0):t.getFactory().createMultiPolygon(Fu.toPolygonArray(e))},$p.getGeometry=function(t,e){return e>=t.size()?null:t.get(e)},$p.union=function(t){return new $p(t).union()},tf.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties($p,tf);var ef=function(){};ef.prototype.interfaces_=function(){return[]},ef.prototype.getClass=function(){return ef},ef.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Zp.createEmptyResult(Zp.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),Cp.overlayOp(t,e,Zp.UNION)};var nf=function(){return new Ar};Ar.prototype={constructor:Ar,reset:function(){this.s=this.t=0},add:function(t){Er(rf,t,this.t),Er(this,rf.s,this.s),this.s?this.t+=rf.t:this.s=rf.t},valueOf:function(){return this.s}};var rf=new Ar,of=1e-6,af=Math.PI,sf=af/2,lf=af/4,uf=2*af,hf=180/af,cf=af/180,pf=Math.abs,ff=Math.atan,df=Math.atan2,yf=Math.cos,mf=Math.exp,gf=Math.log,vf=Math.sin,xf=Math.sqrt,_f=Math.tan,wf={Feature:function(t,e){Rr(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)Rr(n[i].geometry,e)}},bf={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){Or(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)Or(n[i],e,0)},Polygon:function(t,e){Nr(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)Nr(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)Rr(n[i],e)}},Pf=function(t,e){t&&wf.hasOwnProperty(t.type)?wf[t.type](t,e):Rr(t,e)},Sf=(nf(),nf(),nf(),function(n,i){function t(t,e){return t=n(t,e),i(t[0],t[1])}return n.invert&&i.invert&&(t.invert=function(t,e){return(t=i.invert(t,e))&&n.invert(t[0],t[1])}),t});qr.invert=qr;var Cf=function(){var n,e=[];return{point:function(t,e){n.push([t,e])},lineStart:function(){e.push(n=[])},lineEnd:Lr,rejoin:function(){1<e.length&&e.push(e.pop().concat(e.shift()))},result:function(){var t=e;return e=[],n=null,t}}},Mf=function(t,e,n,i,r,o){var a,s=t[0],l=t[1],u=0,h=1,c=e[0]-s,p=e[1]-l;if(a=n-s,c||!(0<a)){if(a/=c,c<0){if(a<u)return;a<h&&(h=a)}else if(0<c){if(h<a)return;u<a&&(u=a)}if(a=r-s,c||!(a<0)){if(a/=c,c<0){if(h<a)return;u<a&&(u=a)}else if(0<c){if(a<u)return;a<h&&(h=a)}if(a=i-l,p||!(0<a)){if(a/=p,p<0){if(a<u)return;a<h&&(h=a)}else if(0<p){if(h<a)return;u<a&&(u=a)}if(a=o-l,p||!(a<0)){if(a/=p,p<0){if(h<a)return;u<a&&(u=a)}else if(0<p){if(a<u)return;a<h&&(h=a)}return 0<u&&(t[0]=s+u*c,t[1]=l+u*p),h<1&&(e[0]=s+h*c,e[1]=l+h*p),!0}}}}},Tf=function(t,e){return pf(t[0]-e[0])<of&&pf(t[1]-e[1])<of},Af=function(t,e,n,i,o){var a,r,s=[],l=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],r=t[e];if(Tf(i,r)){for(o.lineStart(),a=0;a<e;++a)o.point((i=t[a])[0],i[1]);o.lineEnd()}else s.push(n=new Hr(i,t,null,!0)),l.push(n.o=new Hr(i,null,n,!1)),s.push(n=new Hr(r,t,null,!1)),l.push(n.o=new Hr(r,null,n,!0))}}),s.length){for(l.sort(e),Yr(s),Yr(l),a=0,r=l.length;a<r;++a)l[a].e=n=!n;for(var u,h,c=s[0];;){for(var p=c,f=!0;p.v;)if((p=p.n)===c)return;u=p.z,o.lineStart();do{if(p.v=p.o.v=!0,p.e){if(f)for(a=0,r=u.length;a<r;++a)o.point((h=u[a])[0],h[1]);else i(p.x,p.n.x,1,o);p=p.n}else{if(f)for(u=p.p.z,a=u.length-1;0<=a;--a)o.point((h=u[a])[0],h[1]);else i(p.x,p.p.x,-1,o);p=p.p}u=(p=p.o).z,f=!f}while(!p.v);o.lineEnd()}}},Ef=function(t,e){return t<e?-1:e<t?1:e<=t?0:NaN},If=(function(t){1===t.length&&(t=function(n){return function(t,e){return Ef(n(t),e)}}(t))}(Ef),function(t){for(var e,n,i,r=t.length,o=-1,a=0;++o<r;)a+=t[o].length;for(n=new Array(a);0<=--r;)for(e=(i=t[r]).length;0<=--e;)n[--a]=i[e];return n}),Lf=1e9,Rf=-Lf,Of=nf(),Nf=(nf(),function(t){return t}),kf=(nf(),nf(),1/0),zf=kf,Df=-kf,Ff=Df,Gf={point:function(t,e){t<kf&&(kf=t),Df<t&&(Df=t),e<zf&&(zf=e),Ff<e&&(Ff=e)},lineStart:Lr,lineEnd:Lr,polygonStart:Lr,polygonEnd:Lr,result:function(){var t=[[kf,zf],[Df,Ff]];return Df=Ff=-(zf=kf=1/0),t}},jf=(nf(),function(v,x,_,w){return function(i,s){function e(t,e){var n=i(t,e);v(t=n[0],e=n[1])&&s.point(t,e)}function t(t,e){var n=i(t,e);p.point(n[0],n[1])}function n(){g.point=t,p.lineStart()}function r(){g.point=e,p.lineEnd()}function l(t,e){c.push([t,e]);var n=i(t,e);y.point(n[0],n[1])}function o(){y.lineStart(),c=[]}function a(){l(c[0][0],c[0][1]),y.lineEnd();var t,e,n,i,r=y.clean(),o=d.result(),a=o.length;if(c.pop(),u.push(c),c=null,a)if(1&r){if(n=o[0],0<(e=n.length-1)){for(m||(s.polygonStart(),m=!0),s.lineStart(),t=0;t<e;++t)s.point((i=n[t])[0],i[1]);s.lineEnd()}}else 1<a&&2&r&&o.push(o.pop().concat(o.shift())),h.push(o.filter(Kr))}var u,h,c,p=x(s),f=i.invert(w[0],w[1]),d=Cf(),y=x(d),m=!1,g={point:e,lineStart:n,lineEnd:r,polygonStart:function(){g.point=l,g.lineStart=o,g.lineEnd=a,h=[],u=[]},polygonEnd:function(){g.point=e,g.lineStart=n,g.lineEnd=r,h=If(h);var t=function(t,e){var n=e[0],i=e[1],r=[vf(n),-yf(n),0],o=0,a=0;Of.reset();for(var s=0,l=t.length;s<l;++s)if(h=(u=t[s]).length)for(var u,h,c=u[h-1],p=c[0],f=c[1]/2+lf,d=vf(f),y=yf(f),m=0;m<h;++m,p=v,d=_,y=w,c=g){var g=u[m],v=g[0],x=g[1]/2+lf,_=vf(x),w=yf(x),b=v-p,P=0<=b?1:-1,S=P*b,C=af<S,M=d*_;if(Of.add(df(M*P*vf(S),y*w+M*yf(S))),o+=C?b+P*uf:b,C^n<=p^n<=v){var T=Fr(zr(c),zr(g));Vr(T);var A=Fr(r,T);Vr(A);var E=(C^0<=b?-1:1)*Ir(A[2]);(E<i||i===E&&(T[0]||T[1]))&&(a+=C^0<=b?1:-1)}}return(o<-of||o<of&&Of<-of)^1&a}(u,f);h.length?(m||(s.polygonStart(),m=!0),Af(h,Jr,t,_,s)):t&&(m||(s.polygonStart(),m=!0),s.lineStart(),_(null,null,1,s),s.lineEnd()),m&&(s.polygonEnd(),m=!1),h=u=null},sphere:function(){s.polygonStart(),s.lineStart(),_(null,null,1,s),s.lineEnd(),s.polygonEnd()}};return g}}),Vf=jf(function(){return!0},function(r){var o,a=NaN,s=NaN,l=NaN;return{lineStart:function(){r.lineStart(),o=1},point:function(t,e){var n=0<t?af:-af,i=pf(t-a);pf(i-af)<of?(r.point(a,s=0<(s+e)/2?sf:-sf),r.point(l,s),r.lineEnd(),r.lineStart(),r.point(n,s),r.point(t,s),o=0):l!==n&&af<=i&&(pf(a-l)<of&&(a-=l*of),pf(t-n)<of&&(t-=n*of),s=function(t,e,n,i){var r,o,a=vf(t-n);return pf(a)>of?ff((vf(e)*(o=yf(i))*vf(n)-vf(i)*(r=yf(e))*vf(t))/(r*o*a)):(e+i)/2}(a,s,t,e),r.point(l,s),r.lineEnd(),r.lineStart(),r.point(n,s),o=0),r.point(a=t,s=e),l=n},lineEnd:function(){r.lineEnd(),a=s=NaN},clean:function(){return 2-o}}},function(t,e,n,i){var r;if(null==t)r=n*sf,i.point(-af,r),i.point(0,r),i.point(af,r),i.point(af,0),i.point(af,-r),i.point(0,-r),i.point(-af,-r),i.point(-af,0),i.point(-af,r);else if(pf(t[0]-e[0])>of){var o=t[0]<e[0]?af:-af;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])},[-af,-sf]);$r.prototype={constructor:$r,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var qf=yf(30*cf),Bf=function(t,e){return+e?function(E,I){function L(t,e,n,i,r,o,a,s,l,u,h,c,p,f){var d=a-t,y=s-e,m=d*d+y*y;if(4*I<m&&p--){var g=i+u,v=r+h,x=o+c,_=xf(g*g+v*v+x*x),w=Ir(x/=_),b=pf(pf(x)-1)<of||pf(n-l)<of?(n+l)/2:df(v,g),P=E(b,w),S=P[0],C=P[1],M=S-t,T=C-e,A=y*M-d*T;(I<A*A/m||.3<pf((d*M+y*T)/m-.5)||i*u+r*h+o*c<qf)&&(L(t,e,n,i,r,o,S,C,b,g/=_,v/=_,x,p,f),f.point(S,C),L(S,C,b,g,v,x,a,s,l,u,h,c,p,f))}}return function(r){function t(t,e){t=E(t,e),r.point(t[0],t[1])}function e(){y=NaN,_.point=n,r.lineStart()}function n(t,e){var n=zr([t,e]),i=E(t,e);L(y,m,d,g,v,x,y=i[0],m=i[1],d=t,g=n[0],v=n[1],x=n[2],16,r),r.point(y,m)}function i(){_.point=t,r.lineEnd()}function o(){e(),_.point=a,_.lineEnd=s}function a(t,e){n(l=t,e),u=y,h=m,c=g,p=v,f=x,_.point=n}function s(){L(y,m,d,g,v,x,u,h,l,c,p,f,16,r),(_.lineEnd=i)()}var l,u,h,c,p,f,d,y,m,g,v,x,_={point:t,lineStart:e,lineEnd:i,polygonStart:function(){r.polygonStart(),_.lineStart=o},polygonEnd:function(){r.polygonEnd(),_.lineStart=e}};return _}}(t,e):function(n){return Qr({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}})}(t)},Uf=Qr({point:function(t,e){this.stream.point(t*cf,e*cf)}});no.invert=function(t,e){return[t,2*ff(mf(e))-sf]},io.invert=function(t,e){return[-e,2*ff(mf(t))-sf]};var Wf=function(){var t=function(n){function e(){var t=af*l(),e=a(function(e){function t(t){return t=e(t[0]*cf,t[1]*cf),t[0]*=hf,t[1]*=hf,t}return e=Br(e[0]*cf,e[1]*cf,e.length>2?e[2]*cf:0),t.invert=function(t){return t=e.invert(t[0]*cf,t[1]*cf),t[0]*=hf,t[1]*=hf,t},t}(a.rotate()).invert([0,0]));return h(null==c?[[e[0]-t,e[1]-t],[e[0]+t,e[1]+t]]:n===no?[[Math.max(e[0]-t,c),i],[Math.min(e[0]+t,r),o]]:[[c,Math.max(e[1]-t,i)],[r,Math.min(e[1]+t,o)]])}var i,r,o,a=eo(n),s=a.center,l=a.scale,u=a.translate,h=a.clipExtent,c=null;return a.scale=function(t){return arguments.length?(l(t),e()):l()},a.translate=function(t){return arguments.length?(u(t),e()):u()},a.center=function(t){return arguments.length?(s(t),e()):s()},a.clipExtent=function(t){return arguments.length?(null==t?c=i=r=o=null:(c=+t[0][0],i=+t[0][1],r=+t[1][0],o=+t[1][1]),e()):null==c?null:[[c,i],[r,o]]},e()}(io),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],2<t.length?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)};t.projection=Qo,t.random=ks,t.clusters=zs,t.helpers=vo,t.invariant=_o,t.meta=xo,t.isolines=function(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.zProperty||"elevation",r=n.commonProperties||{},o=n.breaksProperties||[];if(H(t,"Point","Input must contain Points"),!e)throw new Error("breaks is required");if(!Array.isArray(e))throw new Error("breaks must be an Array");if(!W(r))throw new Error("commonProperties must be an Object");if(!Array.isArray(o))throw new Error("breaksProperties must be an Array");var a=function(e,t){if(!W(t=t||{}))throw new Error("options is invalid");var n=t.zProperty||"elevation",i=t.flip,r=t.flags;H(e,"Point","input must contain Points");for(var o=function(t,n){var i={};return S(e,function(t){var e=k(t)[1];i[e]||(i[e]=[]),i[e].push(t)}),Object.keys(i).map(function(t){return i[t].sort(function(t,e){return k(t)[0]-k(e)[0]})}).sort(function(t,e){return n?k(t[0])[1]-k(e[0])[1]:k(e[0])[1]-k(t[0])[1]})}(0,i),a=[],s=0;s<o.length;s++){for(var l=o[s],u=[],h=0;h<l.length;h++){var c=l[h];c.properties[n]?u.push(c.properties[n]):u.push(0),!0===r&&(c.properties.matrixPosition=[s,h])}a.push(u)}return a}(t,{zProperty:i,flip:!0});return B(function(t,e,n){var i=Z(n),r=i[2]-i[0],o=i[3]-i[1],a=i[0],s=i[1],l=e[0].length-1,u=e.length-1,h=r/l,c=o/u,p=function(t){t[0]=t[0]*h+a,t[1]=t[1]*c+s};return t.forEach(function(t){b(t,p)}),t}(function(t,e,n,i,r){for(var o=[],a=1;a<e.length;a++){var s=+e[a],l=Object.assign({},i,r[a]);l[n]=s;var u=h(Q(t,s),l);o.push(u)}return o}(a,e,i,r,o),a,t))},t.convex=Tt,t.pointsWithinPolygon=It,t.concave=function(t,s){if(!W(s=s||{}))throw new Error("options is invalid");if(!t)throw new Error("points is required");var l=s.maxEdge||1/0;if(!U(l))throw new Error("maxEdge is invalid");var e=Lt(function(t){var n=[],i={};return S(t,function(t){if(t.geometry){var e=t.geometry.coordinates.join("-");i.hasOwnProperty(e)||(n.push(t),i[e]=!0)}}),B(n)}(t));if(e.features=e.features.filter(function(t){var e=t.geometry.coordinates[0][0],n=t.geometry.coordinates[0][1],i=t.geometry.coordinates[0][2],r=kt(e,n,s),o=kt(n,i,s),a=kt(e,i,s);return r<=l&&o<=l&&a<=l}),e.features.length<1)return null;var n=Ht(e,s);return 1===n.coordinates.length&&(n.coordinates=n.coordinates[0],n.type="Polygon"),G(n)},t.collect=function(t,e,n,i){var r=So(6),o=e.features.map(function(t){return{minX:t.geometry.coordinates[0],minY:t.geometry.coordinates[1],maxX:t.geometry.coordinates[0],maxY:t.geometry.coordinates[1],property:t.properties[n]}});return r.load(o),t.features.forEach(function(e){e.properties||(e.properties={});var t=Z(e),n=[];r.search({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}).forEach(function(t){At([t.minX,t.minY],e)&&n.push(t.property)}),e.properties[i]=n}),t},t.flip=function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if(!t)throw new Error("geojson is required");return!1!==n&&void 0!==n||(t=zt(t)),b(t,function(t){var e=t[0],n=t[1];t[0]=n,t[1]=e}),t},t.simplify=function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=void 0!==e.tolerance?e.tolerance:1,i=e.highQuality||!1,r=e.mutate||!1;if(!t)throw new Error("geojson is required");if(n&&n<0)throw new Error("invalid tolerance");return!0!==r&&(t=zt(t)),T(t,function(t){!function(t,e,n){var i=t.type;if("Point"===i||"MultiPoint"===i)return;Yt(t,!0);var r=t.coordinates;switch(i){case"LineString":t.coordinates=$t(r,e,n);break;case"MultiLineString":t.coordinates=r.map(function(t){return $t(t,e,n)});break;case"Polygon":t.coordinates=te(r,e,n);break;case"MultiPolygon":t.coordinates=r.map(function(t){return te(t,e,n)})}}(t,n,i)}),t},t.bezierSpline=ee,t.tag=function(t,n,i,r){return t=zt(t),n=zt(n),S(t,function(e){e.properties||(e.properties={}),S(n,function(t){void 0===e.properties[r]&&At(e,t)&&(e.properties[r]=t.properties[i])})}),t},t.sample=function(t,e){if(!t)throw new Error("featurecollection is required");if(null==e)throw new Error("num is required");if("number"!=typeof e)throw new Error("num must be a number");return B(function(t,e){for(var n,i,r=t.slice(0),o=t.length,a=o-e;o-- >a;)i=Math.floor((o+1)*Math.random()),n=r[i],r[i]=r[o],r[o]=n;return r.slice(a)}(t.features,e))},t.envelope=ie,t.square=re,t.circle=ae,t.midpoint=function(t,e){return oe(t,kt(t,e)/2,se(t,e))},t.center=le,t.centerOfMass=function t(e,n){switch(J(e)){case"Point":return e;case"Polygon":var i=[];b(e,function(t){i.push(t)});var r,o,a,s,l,u,h,c,p=ue(e,n),f=p.geometry.coordinates,d=0,y=0,m=0,g=i.map(function(t){return[t[0]-f[0],t[1]-f[1]]});for(r=0;r<i.length-1;r++)s=(o=g[r])[0],u=o[1],l=(a=g[r+1])[0],m+=c=s*(h=a[1])-l*u,d+=(s+l)*c,y+=(u+h)*c;if(0===m)return p;var v=1/(.5*m*6);return j([f[0]+v*d,f[1]+v*y],n);default:var x=Tt(e);return x?t(x,n):ue(e,n)}},t.centroid=ue,t.combine=function(t){function e(t,e,n){n?i[e].coordinates=i[e].coordinates.concat(t.geometry.coordinates):i[e].coordinates.push(t.geometry.coordinates),i[e].properties.push(t.properties)}var i={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}},n=Object.keys(i).reduce(function(t,e){return t[e.replace("Multi","")]=e,t},{});return S(t,function(t){t.geometry&&(i[t.geometry.type]?e(t,t.geometry.type,!0):n[t.geometry.type]&&e(t,n[t.geometry.type],!1))}),B(Object.keys(i).filter(function(t){return i[t].coordinates.length}).sort().map(function(t){return G({type:t,coordinates:i[t].coordinates},{collectedProperties:i[t].properties})}))},t.distance=kt,t.explode=he,t.bbox=Z,t.tesselate=function(t){if(!t.geometry||"Polygon"!==t.geometry.type&&"MultiPolygon"!==t.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var e={type:"FeatureCollection",features:[]};return"Polygon"===t.geometry.type?e.features=Me(t.geometry.coordinates):t.geometry.coordinates.forEach(function(t){e.features=e.features.concat(Me(t))}),e},t.bboxPolygon=ne,t.booleanPointInPolygon=At,t.nearestPoint=Te,t.nearestPointOnLine=He,t.nearestPointToLine=function(t,n,e){if(!W(e=e||{}))throw new Error("options is invalid");var i=e.units,r=e.properties||{};if(!t)throw new Error("points is required");if(!(t=function(t){var e=[];switch(t.geometry?t.geometry.type:t.type){case"GeometryCollection":return T(t,function(t){"Point"===t.type&&e.push({type:"Feature",properties:{},geometry:t})}),{type:"FeatureCollection",features:e};case"FeatureCollection":return t.features=t.features.filter(function(t){return"Point"===t.geometry.type}),t;default:throw new Error("points must be a Point Collection")}}(t)).features.length)throw new Error("points must contain features");if(!n)throw new Error("line is required");if("LineString"!==J(n))throw new Error("line must be a LineString");var o=1/0,a=null;return S(t,function(t){var e=rn(t,n,{units:i});e<o&&(o=e,a=t)}),a&&(a.properties=Object.assign({dist:o},a.properties,r)),a},t.planepoint=function(t,e){var n=X(t),i=Y(e).coordinates[0];if(i.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var r=e.properties||{},o=r.a,a=r.b,s=r.c,l=n[0],u=n[1],h=i[0][0],c=i[0][1],p=void 0!==o?o:i[0][2],f=i[1][0],d=i[1][1],y=void 0!==a?a:i[1][2],m=i[2][0],g=i[2][1],v=void 0!==s?s:i[2][2];return(v*(l-h)*(u-d)+p*(l-f)*(u-g)+y*(l-m)*(u-c)-y*(l-h)*(u-g)-v*(l-f)*(u-c)-p*(l-m)*(u-d))/((l-h)*(u-d)+(l-f)*(u-g)+(l-m)*(u-c)-(l-h)*(u-g)-(l-f)*(u-c)-(l-m)*(u-d))},t.tin=Lt,t.bearing=se,t.destination=oe,t.kinks=function(t){var e,n,o={type:"FeatureCollection",features:[]};if("LineString"===(n="Feature"===t.type?t.geometry:t).type)e=[n.coordinates];else if("MultiLineString"===n.type)e=n.coordinates;else if("MultiPolygon"===n.type)e=[].concat.apply([],n.coordinates);else{if("Polygon"!==n.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");e=n.coordinates}return e.forEach(function(r){e.forEach(function(t){for(var e=0;e<r.length-1;e++)for(var n=e;n<t.length-1;n++){if(r===t){if(1===Math.abs(e-n))continue;if(0===e&&n===r.length-2&&r[e][0]===r[r.length-1][0]&&r[e][1]===r[r.length-1][1])continue}var i=function(t,e,n,i,r,o,a,s){var l,u,h,c,p={x:null,y:null,onLine1:!1,onLine2:!1};return 0==(l=(s-o)*(n-t)-(a-r)*(i-e))?null!==p.x&&null!==p.y&&p:(c=(n-t)*(u=e-o)-(i-e)*(h=t-r),u=((a-r)*u-(s-o)*h)/l,h=c/l,p.x=t+u*(n-t),p.y=e+u*(i-e),0<=u&&u<=1&&(p.onLine1=!0),0<=h&&h<=1&&(p.onLine2=!0),!(!p.onLine1||!p.onLine2)&&[p.x,p.y])}(r[e][0],r[e][1],r[e+1][0],r[e+1][1],t[n][0],t[n][1],t[n+1][0],t[n+1][1]);i&&o.features.push(j([i[0],i[1]]))}})}),o},t.pointOnFeature=an,t.area=ln,t.along=function(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i;if("Feature"===t.type)i=t.geometry.coordinates;else{if("LineString"!==t.type)throw new Error("input must be a LineString Feature or Geometry");i=t.coordinates}if(!U(e))throw new Error("distance must be a number");for(var r=0,o=0;o<i.length&&!(r<=e&&o===i.length-1);o++){if(e<=r){var a=e-r;if(a){var s=se(i[o],i[o-1])-180;return oe(i[o],a,s,n)}return j(i[o])}r+=kt(i[o],i[o+1],n)}return j(i[i.length-1])},t.length=pn,t.lineSlice=function(t,e,n){var i=k(n);if("LineString"!==J(n))throw new Error("line must be a LineString");for(var r,o=He(n,t),a=He(n,e),s=[(r=o.properties.index<=a.properties.index?[o,a]:[a,o])[0].geometry.coordinates],l=r[0].properties.index+1;l<r[1].properties.index+1;l++)s.push(i[l]);return s.push(r[1].geometry.coordinates),q(s,n.properties)},t.lineSliceAlong=fn,t.pointGrid=vn,t.truncate=xn,t.flatten=function(t){if(!t)throw new Error("geojson is required");var e=[];return E(t,function(t){e.push(t)}),B(e)},t.lineIntersect=Ze,t.lineChunk=function(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.units,r=n.reverse;if(!t)throw new Error("geojson is required");if(e<=0)throw new Error("segmentLength must be greater than 0");var o=[];return E(t,function(t){r&&(t.geometry.coordinates=t.geometry.coordinates.reverse()),function(t,e,n,i){var r=pn(t,{units:n});if(r<=e)return i(t);var o=r/e;Number.isInteger(o)||(o=Math.floor(o)+1);for(var a=0;a<o;a++){var s=fn(t,e*a,e*(a+1),{units:n});i(s)}}(t,e,i,function(t){o.push(t)})}),B(o)},t.unkinkPolygon=function(t){var n=[];return E(t,function(e){"Polygon"===e.geometry.type&&S(ta(e),function(t){n.push(V(t.geometry.coordinates,e.properties))})}),B(n)},t.greatCircle=function(t,e,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var i=n.properties,r=n.npoints,o=n.offset;return t=X(t),e=X(e),i=i||{},r=r||100,o=o||10,new la({x:t[0],y:t[1]},{x:e[0],y:e[1]},i).Arc(r,{offset:o}).json()},t.lineSegment=We,t.lineSplit=function(t,e){if(!t)throw new Error("line is required");if(!e)throw new Error("splitter is required");var n=J(t),i=J(e);if("LineString"!==n)throw new Error("line must be LineString");if("FeatureCollection"===i)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===i)throw new Error("splitter cannot be a GeometryCollection");var r=xn(e,{precision:7});switch(i){case"Point":return Sn(t,r);case"MultiPoint":return Pn(t,r);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Pn(t,Ze(t,r))}},t.lineArc=Tn,t.polygonToLine=En,t.lineToPolygon=Ln,t.bboxClip=function(t,e){var n=function(t){return t.geometry?t.geometry.type:t.type}(t),i=k(t),r=t.properties;switch(n){case"LineString":case"MultiLineString":var o=[];return"LineString"===n&&(i=[i]),i.forEach(function(t){ua(t,e,o)}),1===o.length?q(o[0],r):h(o,r);case"Polygon":return V(Dn(i,e),r);case"MultiPolygon":return l(i.map(function(t){return Dn(t,e)}),r);default:throw new Error("geometry "+n+" not supported")}},t.lineOverlap=qn,t.sector=function(t,e,n,i,r){if(!W(r=r||{}))throw new Error("options is invalid");if(!t)throw new Error("center is required");if(null==n)throw new Error("bearing1 is required");if(null==i)throw new Error("bearing2 is required");if(!e)throw new Error("radius is required");if("object"!=typeof r)throw new Error("options must be an object");if(Un(n)===Un(i))return ae(t,e,r);var o=k(t),a=[[o]];return b(Tn(t,e,n,i,r),function(t){a[0].push(t)}),a[0].push(o),V(a)},t.rhumbBearing=Ye,t.rhumbDistance=Je,t.rhumbDestination=Wn,t.polygonTangents=function(t,e){var n,i,r,o=k(t),a=k(e);switch(J(e)){case"Polygon":n=a[0][0],i=a[0][0],r=Xn(a[0][0],a[0][a[0].length-1],o);var s=Zn(a[0],o,r,void 0,n,i);n=s[0],i=s[1];break;case"MultiPolygon":n=a[0][0][0],i=a[0][0][0],r=Xn(a[0][0][0],a[0][0][a[0][0].length-1],o),a.forEach(function(t){var e=Zn(t[0],o,r,void 0,n,i);n=e[0],i=e[1]})}return B([j(n),j(i)])},t.rewind=function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.reverse||!1,i=e.mutate||!1;if(!t)throw new Error("<geojson> is required");if("boolean"!=typeof n)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof i)throw new Error("<mutate> must be a boolean");!1===i&&(t=zt(t));var r=[];switch(t.type){case"GeometryCollection":return T(t,function(t){Yn(t,n)}),t;case"FeatureCollection":return S(t,function(t){S(Yn(t,n),function(t){r.push(t)})}),B(r)}return Yn(t,n)},t.isobands=function(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.zProperty||"elevation",r=n.commonProperties||{},o=n.breaksProperties||[];if(H(t,"Point","Input must contain Points"),!e)throw new Error("breaks is required");if(!Array.isArray(e))throw new Error("breaks is not an Array");if(!W(r))throw new Error("commonProperties is not an Object");if(!Array.isArray(o))throw new Error("breaksProperties is not an Array");var a=function(e,t){if(!W(t=t||{}))throw new Error("options is invalid");var n=t.zProperty||"elevation",i=t.flip,r=t.flags;H(e,"Point","input must contain Points");for(var o=function(t,n){var i={};return S(e,function(t){var e=k(t)[1];i[e]||(i[e]=[]),i[e].push(t)}),Object.keys(i).map(function(t){return i[t].sort(function(t,e){return k(t)[0]-k(e)[0]})}).sort(function(t,e){return n?k(t[0])[1]-k(e[0])[1]:k(e[0])[1]-k(t[0])[1]})}(0,i),a=[],s=0;s<o.length;s++){for(var l=o[s],u=[],h=0;h<l.length;h++){var c=l[h];c.properties[n]?u.push(c.properties[n]):u.push(0),!0===r&&(c.properties.matrixPosition=[s,h])}a.push(u)}return a}(t,{zProperty:i,flip:!0}),s=function(t,e,n){for(var i=[],r=1;r<e.length;r++){var o=+e[r-1],a=+e[r],s=Qn(t,o,a-o),l=function(t){var n=[],i=[];t.forEach(function(t){var e=ln(V([t]));i.push(e),n.push({ring:t,area:e})}),i.sort(function(t,e){return e-t});var r=[];return i.forEach(function(t){for(var e=0;e<n.length;e++)if(n[e].area===t){r.push(n[e].ring),n.splice(e,1);break}}),r}(s),u=function(t){for(var e=t.map(function(t){return{lrCoordinates:t,grouped:!1}}),n=[];!function(t){for(var e=0;e<t.length;e++)if(!1===t[e].grouped)return!1;return!0}(e);)for(var i=0;i<e.length;i++)if(!e[i].grouped){var r=[];r.push(e[i].lrCoordinates),e[i].grouped=!0;for(var o=V([e[i].lrCoordinates]),a=i+1;a<e.length;a++)if(!e[a].grouped){var s=V([e[a].lrCoordinates]);!function(t,e){for(var n=he(t),i=0;i<n.features.length;i++)if(!At(n.features[i],e))return!1;return!0}(s,o)||(r.push(e[a].lrCoordinates),e[a].grouped=!0)}n.push(r)}return n}(l),h={};h.groupedRings=u,h[n]=o+"-"+a,i.push(h)}return i}(a,e,i);return B((s=function(t,e,n){var i=Z(n),r=i[2]-i[0],o=i[3]-i[1],a=i[0],s=i[1],l=e[0].length-1,u=e.length-1,h=r/l,c=o/u,p=function(t){t[0]=t[0]*h+a,t[1]=t[1]*c+s};return t.forEach(function(t){t.groupedRings.forEach(function(t){t.forEach(function(t){t.forEach(p)})})}),t}(s,a,t)).map(function(t,e){if(o[e]&&!W(o[e]))throw new Error("Each mappedProperty is required to be an Object");var n=Object.assign({},r,o[e]);return n[i]=t[i],l(t.groupedRings,n)}))},t.transformRotate=ei,t.transformScale=ni,t.transformTranslate=function(t,n,i,e){if(!W(e=e||{}))throw new Error("options is invalid");var r=e.units,o=e.zTranslation,a=e.mutate;if(!t)throw new Error("geojson is required");if(null==n||isNaN(n))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===n&&0===o)return t;if(null==i||isNaN(i))throw new Error("direction is required");return n<0&&(n=-n,i=-i),!1!==a&&void 0!==a||(t=zt(t)),b(t,function(t){var e=k(Wn(t,n,i,{units:r}));t[0]=e[0],t[1]=e[1],o&&3===t.length&&(t[2]+=o)}),t},t.lineOffset=function(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.units;if(!t)throw new Error("geojson is required");if(null==e||isNaN(e))throw new Error("distance is required");var r=J(t),o=t.properties;switch(r){case"LineString":return ai(t,e,i);case"MultiLineString":var a=[];return E(t,function(t){a.push(ai(t,e,i).geometry.coordinates)}),h(a,o);default:throw new Error("geometry "+r+" is not supported")}},t.polygonize=function(t){var e=ls.fromGeoJson(t);e.deleteDangles(),e.deleteCutEdges();var n=[],i=[];return e.getEdgeRings().filter(function(t){return t.isValid()}).forEach(function(t){t.isHole()?n.push(t):i.push(t)}),n.forEach(function(t){as.findEdgeRingContaining(t,i)&&i.push(t)}),B(i.map(function(t){return t.toPolygon()}))},t.booleanDisjoint=function(t,n){var i;return E(t,function(e){E(n,function(t){if(!1===i)return!1;i=function(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return!function(t,e){return t[0]===e[0]&&t[1]===e[1]}(t.coordinates,e.coordinates);case"LineString":return!ui(e,t);case"Polygon":return!At(t,e)}break;case"LineString":switch(e.type){case"Point":return!ui(t,e);case"LineString":return!function(t,e){return 0<Ze(t,e).features.length}(t,e);case"Polygon":return!hi(e,t)}break;case"Polygon":switch(e.type){case"Point":return!At(e,t);case"LineString":return!hi(t,e);case"Polygon":return!function(t,e){for(var n=0;n<t.coordinates[0].length;n++)if(At(t.coordinates[0][n],e))return!0;for(var i=0;i<e.coordinates[0].length;i++)if(At(e.coordinates[0][i],t))return!0;return!1}(e,t)}}}(e.geometry,t.geometry)})}),i},t.booleanContains=function(t,e){var n=J(t),i=J(e),r=Y(t),o=Y(e),a=k(t),s=k(e);switch(n){case"Point":switch(i){case"Point":return pi(a,s);default:throw new Error("feature2 "+i+" geometry not supported")}case"MultiPoint":switch(i){case"Point":return function(t,e){var n,i=!1;for(n=0;n<t.coordinates.length;n++)if(pi(t.coordinates[n],e.coordinates)){i=!0;break}return i}(r,o);case"MultiPoint":return function(t,e){for(var n=0;n<e.coordinates.length;n++){for(var i=!1,r=0;r<t.coordinates.length;r++)if(pi(e.coordinates[n],t.coordinates[r])){i=!0;break}if(!i)return!1}return!0}(r,o);default:throw new Error("feature2 "+i+" geometry not supported")}case"LineString":switch(i){case"Point":return dn(o,r,{ignoreEndVertices:!0});case"LineString":return function(t,e){for(var n=!1,i=0;i<e.coordinates.length;i++)if(dn({type:"Point",coordinates:e.coordinates[i]},t,{ignoreEndVertices:!0})&&(n=!0),!dn({type:"Point",coordinates:e.coordinates[i]},t,{ignoreEndVertices:!1}))return!1;return n}(r,o);case"MultiPoint":return function(t,e){for(var n=!1,i=0;i<e.coordinates.length;i++)if(dn(e.coordinates[i],t,{ignoreEndVertices:!0})&&(n=!0),!dn(e.coordinates[i],t))return!1;return!!n}(r,o);default:throw new Error("feature2 "+i+" geometry not supported")}case"Polygon":switch(i){case"Point":return At(o,r,{ignoreBoundary:!0});case"LineString":return function(t,e){var n=!1,i=0,r=Z(t),o=Z(e);if(!ci(r,o))return!1;for(;i<e.coordinates.length-1;i++){var a=function(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}(e.coordinates[i],e.coordinates[i+1]);if(At({type:"Point",coordinates:a},t,{ignoreBoundary:!0})){n=!0;break}}return n}(r,o);case"Polygon":return function(t,e){var n=Z(t),i=Z(e);if(!ci(n,i))return!1;for(var r=0;r<e.coordinates[0].length;r++)if(!At(e.coordinates[0][r],t))return!1;return!0}(r,o);case"MultiPoint":return function(t,e){for(var n=0;n<e.coordinates.length;n++)if(!At(e.coordinates[n],t,{ignoreBoundary:!0}))return!1;return!0}(r,o);default:throw new Error("feature2 "+i+" geometry not supported")}default:throw new Error("feature1 "+n+" geometry not supported")}},t.booleanCrosses=function(t,e){var n=J(t),i=J(e),r=Y(t),o=Y(e);switch(n){case"MultiPoint":switch(i){case"LineString":return fi(r,o);case"Polygon":return yi(r,o);default:throw new Error("feature2 "+i+" geometry not supported")}case"LineString":switch(i){case"MultiPoint":return fi(o,r);case"LineString":return function(t,e){if(0<Ze(t,e).features.length)for(var n=0;n<t.coordinates.length-1;n++)for(var i=0;i<e.coordinates.length-1;i++){var r=!0;if(0!==i&&i!==e.coordinates.length-2||(r=!1),mi(t.coordinates[n],t.coordinates[n+1],e.coordinates[i],r))return!0}return!1}(r,o);case"Polygon":return di(r,o);default:throw new Error("feature2 "+i+" geometry not supported")}case"Polygon":switch(i){case"MultiPoint":return yi(o,r);case"LineString":return di(o,r);default:throw new Error("feature2 "+i+" geometry not supported")}default:throw new Error("feature1 "+n+" geometry not supported")}},t.booleanClockwise=Hn,t.booleanOverlap=_i,t.booleanPointOnLine=dn,t.booleanEqual=function(t,e){if(!t)throw new Error("feature1 is required");if(!e)throw new Error("feature2 is required");return J(t)===J(e)&&new fs({precision:6}).compare(Yt(t),Yt(e))},t.booleanWithin=yn,t.clone=zt,t.cleanCoords=Yt,t.clustersDbscan=function(n,t,e){if("object"!=typeof(e=e||{}))throw new Error("options is invalid");var i=e.minPoints,r=e.units;if(H(n,"Point","Input must contain Points"),null==t)throw new Error("maxDistance is required");if(!(0<Math.sign(t)))throw new Error("Invalid maxDistance");if(!(null==i||0<Math.sign(i)))throw new Error("Invalid minPoints");n=zt(n),i=i||3;var o=new vs.DBSCAN,a=-1;return o.run(M(n),c(t,r),i,kt).forEach(function(t){a++,t.forEach(function(t){var e=n.features[t];e.properties||(e.properties={}),e.properties.cluster=a,e.properties.dbscan="core"})}),o.noise.forEach(function(t){var e=n.features[t];e.properties||(e.properties={}),e.properties.cluster?e.properties.dbscan="edge":e.properties.dbscan="noise"}),n},t.clustersKmeans=function(t,e){if("object"!=typeof(e=e||{}))throw new Error("options is invalid");var n=e.numberOfClusters,i=e.mutate;H(t,"Point","Input must contain Points");var r=t.features.length;(n=n||Math.round(Math.sqrt(r/2)))>r&&(n=r),!1!==i&&void 0!==i||(t=zt(t));var o=M(t),a=o.slice(0,n),s=Ps(o,n,a),l={};return s.centroids.forEach(function(t,e){l[e]=t}),S(t,function(t,e){var n=s.idxs[e];t.properties.cluster=n,t.properties.centroid=l[n]}),t},t.pointToLineDistance=rn,t.booleanParallel=function(t,e){if(!t)throw new Error("line1 is required");if(!e)throw new Error("line2 is required");if("LineString"!==bi(t,"line1"))throw new Error("line1 must be a LineString");if("LineString"!==bi(e,"line2"))throw new Error("line2 must be a LineString");for(var n=We(Yt(t)).features,i=We(Yt(e)).features,r=0;r<n.length;r++){var o=n[r].geometry.coordinates;if(!i[r])break;if(!function(t,e){var n=p(Ye(t[0],t[1])),i=p(Ye(e[0],e[1]));return n===i}(o,i[r].geometry.coordinates))return!1}return!0},t.shortestPath=function(t,e,n){if(!W(n=n||{}))throw new Error("options is invalid");var i=n.resolution,r=n.minDistance,o=n.obstacles||B([]);if(!t)throw new Error("start is required");if(!e)throw new Error("end is required");if(i&&!U(i)||i<=0)throw new Error("options.resolution must be a number, greater than 0");if(r)throw new Error("options.minDistance is not yet implemented");var a=X(t),s=X(e);switch(t=j(a),e=j(s),J(o)){case"FeatureCollection":if(0===o.features.length)return q([a,s]);break;case"Polygon":o=B([G(Y(o))]);break;default:throw new Error("invalid obstacles")}var l=o;l.features.push(t),l.features.push(e);var u=Z(ni(ne(Z(l)),1.15));i=i||kt([u[0],u[1]],[u[2],u[1]],n)/100,l.features.pop(),l.features.pop();for(var h=u[0],c=u[1],p=u[2],f=u[3],d=i/kt([h,c],[p,c],n)*(p-h),y=i/kt([h,c],[h,f],n)*(f-c),m=p-h,g=f-c,v=(m-Math.floor(m/d)*d)/2,x=[],_=[],w=[],b=[],P=1/0,S=1/0,C=f-(g-Math.floor(g/y)*y)/2,M=0;c<=C;){for(var T=[],A=[],E=h+v,I=0;E<=p;){var L=j([E,C]),R=function(t,e){for(var n=0;n<e.features.length;n++)if(At(t,e.features[n]))return!0;return!1}(L,o);T.push(R?0:1),A.push(E+"|"+C);var O=kt(L,t);!R&&O<P&&(P=O,w={x:I,y:M});var N=kt(L,e);!R&&N<S&&(S=N,b={x:I,y:M}),E+=d,I++}_.push(T),x.push(A),C-=y,M++}var k=new Si(_,{diagonal:!0}),z=k.grid[w.y][w.x],D=k.grid[b.y][b.x],F=[a];return Ss.search(k,z,D).forEach(function(t){var e=x[t.x][t.y].split("|");F.push([+e[0],+e[1]])}),F.push(s),Yt(q(F))},t.voronoi=function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.bbox||[-180,-85,180,85];if(!t)throw new Error("points is required");if(!Array.isArray(n))throw new Error("bbox is invalid");return H(t,"Point","points"),B(function(){function e(i){return new Hi(i.map(function(t,e){var n=[Math.round(r(t,e,i)/Os)*Os,Math.round(o(t,e,i)/Os)*Os];return n.index=e,n.data=t,n}),n)}var r=Ti,o=Ai,n=null;return e.polygons=function(t){return e(t).polygons()},e.links=function(t){return e(t).links()},e.triangles=function(t){return e(t).triangles()},e.x=function(t){return arguments.length?(r="function"==typeof t?t:Cs(+t),e):r},e.y=function(t){return arguments.length?(o="function"==typeof t?t:Cs(+t),e):o},e.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],e):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},e.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],e):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},e}().x(function(t){return t.geometry.coordinates[0]}).y(function(t){return t.geometry.coordinates[1]}).extent([[n[0],n[1]],[n[2],n[3]]]).polygons(t.features).map(Yi))},t.ellipse=Ki,t.centerMean=Qi,t.centerMedian=function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.counter||10;if(!U(n))throw new Error("counter must be a number");var i=e.weight,r=Qi(t,{weight:e.weight}),o=B([]);return S(t,function(t){o.features.push(ue(t,{weight:t.properties[i]}))}),o.properties={tolerance:e.tolerance,medianCandidates:[]},function t(o,e,n,i){var r=n.properties.tolerance||.001,a=0,s=0,l=0,u=0;if(S(n,function(t){var e=t.properties.weight,n=null==e?1:e;if(!U(n=Number(n)))throw new Error("weight value must be a number");if(0<n){u+=1;var i=n*kt(t,o);0===i&&(i=1);var r=n/i;a+=t.geometry.coordinates[0]*r,s+=t.geometry.coordinates[1]*r,l+=r}}),u<1)throw new Error("no features to measure");var h=a/l,c=s/l;return 1===u||0===i||Math.abs(h-e[0])<r&&Math.abs(c-e[1])<r?j([h,c],{medianCandidates:n.properties.medianCandidates}):(n.properties.medianCandidates.push([h,c]),t([h,c],o,n,i-1))}(r.geometry.coordinates,[0,0],o,n)},t.standardDeviationalEllipse=function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var n=e.steps||64,i=e.weight,r=e.properties||{};if(!U(n))throw new Error("steps must be a number");if(!W(r))throw new Error("properties must be a number");var o=M(t).length,a=Qi(t,{weight:i}),s=0,l=0,u=0;S(t,function(t){var e=t.properties[i]||1,n=$i(k(t),k(a));s+=Math.pow(n.x,2)*e,l+=Math.pow(n.y,2)*e,u+=n.x*n.y*e});var h=s-l,c=Math.sqrt(Math.pow(h,2)+4*Math.pow(u,2)),p=2*u,f=Math.atan((h+c)/p),d=180*f/Math.PI,y=0,m=0,g=0;S(t,function(t){var e=t.properties[i]||1,n=$i(k(t),k(a));y+=Math.pow(n.x*Math.cos(f)-n.y*Math.sin(f),2)*e,m+=Math.pow(n.x*Math.sin(f)+n.y*Math.cos(f),2)*e,g+=e});var v=Math.sqrt(2*y/g),x=Math.sqrt(2*m/g),_=Ki(a,v,x,{units:"degrees",angle:d,steps:n,properties:r}),w=It(t,B([_])),b={meanCenterCoordinates:k(a),semiMajorAxis:v,semiMinorAxis:x,numberOfFeatures:o,angle:d,percentageWithinEllipse:100*M(w).length/o};return _.properties.standardDeviationalEllipse=b,_},t.difference=function(t,e){var n=Y(t),i=Y(e),r=t.properties||{};if(n=Tr(n),i=Tr(i),!n)return null;if(!i)return G(n,r);var o=new Uu,a=o.read(n),s=o.read(i),l=Zp.difference(a,s);return l.isEmpty()?null:G((new Wu).write(l),r)},t.buffer=function(t,n,e){var i=(e=e||{}).units,r=e.steps||64;if(!t)throw new Error("geojson is required");if("object"!=typeof e)throw new Error("options must be an object");if("number"!=typeof r)throw new Error("steps must be an number");if(void 0===n)throw new Error("radius is required");if(r<=0)throw new Error("steps must be greater than 0");r=r||64,i=i||"kilometers";var o=[];switch(t.type){case"GeometryCollection":return T(t,function(t){var e=ro(t,n,i,r);e&&o.push(e)}),B(o);case"FeatureCollection":return S(t,function(t){var e=ro(t,n,i,r);e&&S(e,function(t){t&&o.push(t)})}),B(o)}return ro(t,n,i,r)},t.union=ao,t.intersect=so,t.dissolve=function(t,e){if(!W(e=e||{}))throw new Error("options is invalid");var r=e.propertyName;H(t,"Polygon","dissolve");var n=zt(t),o=n.features,a=[];o.forEach(function(t,e){t.properties.origIndexPosition=e});var s=qe();for(var l in s.load(n),o){var u=o[l],h=!1;if(s.search(u).features.forEach(function(t){u=o[l];var e=t.properties.origIndexPosition;if(0<a.length&&0!==e)if(e>a[a.length-1])e-=a.length;else{var n=function(i,t){var r,o;if(!Array.isArray(t))throw new Error("Get closest expects an array as second argument");return t.forEach(function(t,e){var n=t-i;0<=n&&(void 0===o||n<o)&&(o=n,r=e)}),r}(e,a);0!==n&&(e-=n)}if(e!==+l){var i=o[e];i&&u&&(void 0!==r&&i.properties[r]!==u.properties[r]||_i(u,i)&&function(t,e){var n=q(M(t)),i=q(M(e));return 0<Ze(n,i).features.length}(u,i)&&(o[l]=ao(u,i),a.push(t.properties.origIndexPosition),a.sort(function(t,e){return t-e}),s.remove(t),o.splice(e,1),u.properties.origIndexPosition=l,s.remove(u,function(t,e){return t.properties.origIndexPosition===e.properties.origIndexPosition}),h=!0))}}),h){if(!u)continue;u.properties.origIndexPosition=l,s.insert(u),l--}}return o.forEach(function(t){delete t.properties.origIndexPosition,delete t.bbox}),n},t.hexGrid=lo,t.mask=function(t,e){var n=function(t){return V(t&&t.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]])}(e),i=function(t){var r=[],o=[];return E(t,function(t){var e=t.geometry.coordinates,n=e[0],i=e.slice(1);r.push(V([n])),i.forEach(function(t){o.push(V([t]))})}),[B(r),B(o)]}(t),r=i[0],o=i[1];return function(t,e,n){var i=[];return i.push(t.geometry.coordinates[0]),E(e,function(t){i.push(t.geometry.coordinates[0])}),E(n,function(t){i.push(t.geometry.coordinates[0])}),V(i)}(n,r=uo(r),o=uo(o))},t.squareGrid=co,t.triangleGrid=po,t.interpolate=function(e,t,s){if("object"!=typeof(s=s||{}))throw new Error("options is invalid");var l=s.gridType,u=s.property,h=s.weight;if(!e)throw new Error("points is required");if(H(e,"Point","input must contain Points"),!t)throw new Error("cellSize is required");if(void 0!==h&&"number"!=typeof h)throw new Error("weight must be a number");u=u||"elevation",l=l||"square",h=h||1;var n,i=Z(e);switch(l){case"point":case"points":n=vn(i,t,s);break;case"square":case"squares":n=co(i,t,s);break;case"hex":case"hexes":n=lo(i,t,s);break;case"triangle":case"triangles":n=po(i,t,s);break;default:throw new Error("invalid gridType")}var c=[];return S(n,function(r){var o=0,a=0;S(e,function(t){var e,n=kt("point"===l?r:ue(r),t,s);if(void 0!==u&&(e=t.properties[u]),void 0===e&&(e=t.geometry.coordinates[2]),void 0===e)throw new Error("zValue is missing");0===n&&(o=e);var i=1/Math.pow(n,h);a+=i,o+=i*e});var t=zt(r);t.properties[u]=o/a,c.push(t)}),B(c)},t.pointOnSurface=an,t.polygonToLineString=En,t.lineStringToPolygon=Ln,t.inside=At,t.within=It,t.bezier=ee,t.nearest=Te,t.pointOnLine=He,t.lineDistance=pn,t.radians2degrees=f,t.degrees2radians=v,t.distanceToDegrees=u,t.distanceToRadians=y,t.radiansToDistance=d,t.bearingToAngle=p,t.convertDistance=c,t.toMercator=Qe,t.toWgs84=$e,t.randomPosition=tr,t.randomPoint=er,t.randomPolygon=nr,t.randomLineString=ir,t.getCluster=or,t.clusterEach=ar,t.clusterReduce=sr,t.createBins=lr,t.applyFilter=ur,t.propertiesContainsFilter=hr,t.filterProperties=cr,t.earthRadius=fo,t.factors=yo,t.unitsFactors=mo,t.areaFactors=go,t.feature=G,t.geometry=e,t.point=j,t.points=n,t.polygon=V,t.polygons=i,t.lineString=q,t.lineStrings=r,t.featureCollection=B,t.multiLineString=h,t.multiPoint=o,t.multiPolygon=l,t.geometryCollection=a,t.round=s,t.radiansToLength=d,t.lengthToRadians=y,t.lengthToDegrees=u,t.bearingToAzimuth=p,t.radiansToDegrees=f,t.degreesToRadians=v,t.convertLength=c,t.convertArea=m,t.isNumber=U,t.isObject=W,t.validateBBox=g,t.validateId=x,t.getCoord=X,t.getCoords=k,t.containsNumber=z,t.geojsonType=D,t.featureOf=F,t.collectionOf=H,t.getGeom=Y,t.getGeomType=K,t.getType=J,t.coordEach=b,t.coordReduce=_,t.propEach=w,t.propReduce=P,t.featureEach=S,t.featureReduce=C,t.coordAll=M,t.geomEach=T,t.geomReduce=A,t.flattenEach=E,t.flattenReduce=I,t.segmentEach=L,t.segmentReduce=R,t.lineEach=O,t.lineReduce=N,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.dataPath=t.dataPath,this.desc=t.desc}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.getAutoworkflow=function(t){},o.prototype.getStatus=function(t){},o.prototype.find=function(t){},o.prototype.delete=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.geometry=t.geometry}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(t){t=t||{},this.id=t.id,this.time=t.time,this.from=t.from,this.to=t.to,this.$type="Message,http://www.Gs.com"}return n.prototype.getType=function(){return"Message"},n.prototype.replace=function(t){this.id=t.id,this.time=t.time,this.from=t.from,this.to=t.to},n.prototype.unset=function(){},n.prototype.reset=function(){},t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(82),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.conditions=t.conditions}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(359),n(23),n,e,t],void 0===(r=function(i,r,t,e,n){var o={save:function(t){var e=window.crawUrl;if(e){var n=new r;new i({url:e,http:n}).save(t)}return!0},filter:function(t){return!0}};return n.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.name=t.name,this.url=t.url,this.type=t.type,this.time=t.time,this.method=t.method}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.name=t.name,this.request=t.request,this.header=t.header,this.auth=t.auth,this.token=t.token,this.request_type=t.request_type,this.response_type=t.response_type,this.parameters=t.parameters}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.name=t.name,this.value=t.value,this.style=t.style}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.getConfigurations=function(){},o.prototype.getCapabilities=function(t){},o.prototype.create=function(t,e){},o.prototype.getStatus=function(t){},o.prototype.download=function(t){},o.prototype.cancel=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.service=void 0===t.service?"WMS":t.service,this.VERSION=void 0===t.version?"1.3.0":t.version}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.id=t.id,this.name=t.name,this.type=t.type,this.districtcode=t.districtcode,this.location=t.location,this.address=t.address,this.distance=t.distance,this.route=t.route,this.$type="Source,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.layer=t.layer,this.imageType=t.imageType,this.srid=t.srid,this.minX=t.minX,this.minY=t.minY,this.maxX=t.maxX,this.maxY=t.maxY,this.minLevel=t.minLevel,this.maxLevel=t.maxLevel,this.tileSize=t.tileSize,this.createTime=t.createTime}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.name=e.name,this.type=e.type,this.description=e.description,this.serviceId=e.serviceId,this.createTime=e.createTime,this.updateTime=e.updateTime}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(15),n,e,t],void 0===(r=function(o,t,e,n){function i(t){t=t||{},this.max=t.max,this.min=t.min,this.minSize=t.minSize,this.maxSize=t.maxSize,this.gradient=t.stops,function(){if(this.gradient){var t=document.createElement("canvas");t.width=256,t.height=1,this.context=t.getContext("2d");for(var e=this.context.createLinearGradient(0,0,256,1),n=0,i=this.gradient.getCount();n<i;++n){var r=this.gradient.getItem(n),o=r.color;o=a.replace("{0}",o.r).replace("{1}",o.g).replace("{2}",o.b).replace("{3}",o.a/255),e.addColorStop(r.step,o)}this.context.fillStyle=e,this.context.fillRect(0,0,256,1)}}.call(this)}var a="rgba({0},{1},{2},{3})";return i.prototype.getColor=function(t){var e=this.context.getImageData(0,0,256,1).data;if(void 0===t)return e;var n=this.max,i=this.min;n<t&&(t=n),t<i&&(t=i);var r=Math.floor((t-i)/(n-i)*255*4);return new o({r:e[r],g:e[r+1],b:e[r+2],a:e[r+3]})},i.prototype.getSize=function(t){return t>this.max&&(t=this.max),t<this.min&&(t=this.min),this.minSize+(t-this.min)/(this.max-this.min)*(this.maxSize-this.minSize)},n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(76),n(35),n(50),n(127),n(22),n,e,t],void 0===(r=function(t,i,r,e,o,n,a,s,l){function u(t){if(i.call(this,t),this.$type="Feature,http://www.Gs.com",t)if(t instanceof r){this.fields=t,this.values=[];for(var e=0,n=t.getCount();e<n;++e)this.values.push(new o)}else this.values=t.values,this.fields=t.fields,this.geometry=t.geometry,this.objectId=t.objectId}return t.extend2(u,i),u.prototype.getFields=function(){return this.fields},u.prototype.getValue=function(t){var e=this.fields.findIndex(t);return-1!=e?this.values[e].getValue():null},u.prototype.setValue=function(t,e){var n=this.fields.findIndex(t);-1!=n&&this.values[n].setValue(e)},u.prototype.getObjectId=function(){return this.objectId?this.objectId:this.getValue("objectId")},u.prototype.getId=function(){return this.getValue("id")},u.prototype.getGeometry=function(){if(this.geometry)return this.geometry;var e=this,n=null;return this.fields.fields.forEach(function(t){100<t.dataType&&t.dataType<200&&(n=e.getValue(t.name))}),n},u.prototype.copy=function(){for(var t={values:[],fields:this.fields,geometry:this.geometry.copy(),objectId:this.objectId},e=0,n=this.values.length;e<n;++e){var i=new o;i.setValue(this.values[e].getValue()),t.values.push(i)}return new u(t)},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(69),n(39),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.text=e.text,this.textStyle=e.textStyle}return t.extend2(a,n),a.prototype.toHtml=function(){return"<span style='{0}'>{1}</span>".replace("{0}",this.textStyle.toStyle()).replace("{1}",this.text)},a.prototype.getPatternType=function(){return e.TextLabel},a.prototype.format=function(){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.color=t.color,this.fontFamily=t.fontFamily,this.fontSize=t.fontSize,this.fontStyle=t.fontStyle,this.fontWeight=t.fontWeight}return i.prototype.toStyle=function(){return function(t,e){for(var n=t,i=0;i<e.length;i++)if(e[i]){var r="{"+i+"}";n=n.replace(r,e[i])}return n}("font-family:{0};font-size:{1};font-style:{2};font-weight:{3};color:{4};",[this.fontFamily,this.fontSize+"px",this.fontStyle,this.fontWeight,this.color])},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(69),n(39),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.source=e.source,this.height=e.height,this.width=e.width,this.opacity=e.opacity}t.extend2(a,n),a.prototype.toHtml=function(){return"<img src='{0}' draggable='false' width='{1}' height='{2}' style='{3}'>".replace("{0}",this.source).replace("{1}",this.width).replace("{2}",this.height).replace("{3}","opacity:"+this.opacity)},a.prototype.getPatternType=function(){return e.PictureLabel};var s={name:"",icons:[]};return a.prototype.format=function(){var t=When.defer(),e=JSON.parse(JSON.stringify(s));return e.icons.push(this.source),t.resolve({legend:e}),t.promise},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(21),n(69),n(39),n,e,t],void 0===(r=function(t,n,i,e,r,o,a){function s(t){var e=t||{};i.call(this,e),this.source=e.source,this.height=e.height,this.width=e.width,this.opacity=e.opacity}t.extend2(s,i),s.prototype.toHtml=function(){return"<img src='{0}' draggable='false' width='{1}' height='{2}' style='{3}'>".replace("{0}",this.source).replace("{1}",this.width).replace("{2}",this.height).replace("{3}","opacity:"+this.opacity)},s.prototype.getPatternType=function(){return e.NorthArrow};var l={graphic:""};return s.prototype.format=function(){var t=n.defer(),e=JSON.parse(JSON.stringify(l));return e.graphic=this.source,t.resolve({northArrowDef:e}),t.promise},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(21),n(69),n(39),n,e,t],void 0===(r=function(t,n,i,e,r,o,a){function s(t){var e=t||{};i.call(this,e),this.scale=e.scale,this.unit=e.unit,this.height=e.height,this.width=e.width,this.align=e.align||"left",this.verticalAlign=e.verticalAlign||"top",this.type=e.type||"bar_sub",this.intervals=e.intervals||5,this.background=e.background,this.typeSource=e.typeSource,this.unit=e.unit,this.lockUnits=e.lockUnits||!1,this.orientation=e.orientation}t.extend2(s,i),s.prototype.toHtml=function(){return"<img src='{0}' draggable='false'>".replace("{0}",this.typeSource)},s.prototype.getPatternType=function(){return e.ScaleBar};var l={align:"left",verticalAlign:"top",intervals:5,type:"bar_sub",unit:"km",lockUnits:!0,orientation:""};return s.prototype.format=function(){var t=n.defer(),e=JSON.parse(JSON.stringify(l));return e.align=this.align,e.verticalAlign=this.verticalAlign,e.type=this.type,e.intervals=this.intervals,e.unit=this.unit,e.lockUnits=this.lockUnits,e.orientation=this.orientation,t.resolve({scalebar:e}),t.promise},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(21),n(69),n(39),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){var e=t||{};n.call(this,e),this.column=e.column,this.height=e.height,this.width=e.width,this.contentStyle=e.contentStyle,this.titleStyle=e.titleStyle,this.legend=e.legend}t.extend2(s,n),s.prototype.toHtml=function(){this.column>=this.legend.getCount()&&(this.column=this.legend.getCount());for(var t=this.titleStyle.toStyle(),e=this.contentStyle.toStyle(),n='<table style="width: {0}px;height: {1}px"><caption style="text-align: center"><div class="caption" style="{2}">{3}</div></caption><tbody>'.replace("{3}",this.legend.name).replace("{2}",t).replace("{1}",this.height).replace("{0}",this.width),i=this.legend.getCount()%this.column,r=(this.legend.getCount()-i)/this.column,o=0;o<r;o++){for(var a="<tr>",s=0;s<this.column;s++){var l=this.legend.getItem(this.column*o+s);a+='<td>{0}</td><td><div class = "item" style="{1}">{2}</div></td>'.replace("{0}",l.svg.innerHTML).replace("{1}",e).replace("{2}",l.content)}n+=a+="</tr>"}for(a="<tr>",o=0;o<i;o++){l=this.legend.getItem(this.column*r+o);a+='<td>{0}</td><td><div class = "item" style="{1}">{2}</div></label></td>'.replace("{0}",l.svg.innerHTML).replace("{1}",e).replace("{2}",l.content)}return n+=a+="</tr>",n+="</tbody></table>"},s.prototype.getPatternType=function(){return i.LegendLabel};var l={name:"",icons:[]};return s.prototype.format=function(){var i=e.defer(),r=JSON.parse(JSON.stringify(l)),o=document.createElement("div");return o.innerHTML=this.toHtml(),document.body.appendChild(o),html2canvas(o,{allowTaint:!0,taintTest:!1,onrendered:function(t){var e=t.toDataURL("image/png",1);document.body.removeChild(o),o.style.display="none";var n={legend:r};n.legend.icons.push(e),n.legend.name="",i.resolve(n)}}),i.promise},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(42),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layerIds=t.layerIds,this.map=null,this.tooltipWare=null,this.selectionSet=null}return t.extend2(o,e),o.prototype.isEnabled=function(){if(!this.map)return!1;for(var t=0,e=0;this.layerIds&&e<this.layerIds.length;++e){var n=this.layerIds[e],i=this.map.findLayer(n);i&&"function"==typeof i.getCount&&(t+=i.getCount())}return!(0<t)},o.prototype.onCreate=function(t){o.prototype.uber.onCreate(t),this.map=t.map,this.tooltipWare=t.tooltipWare,this.selectionSet=t.graphicSelectionSet},o.prototype.onClick=function(t){o.prototype.uber.onClick();var e=this.getLayers();if(t){var n=this;this.messageBox(t).result.then(function(){n.onClear(e),n.clearLayer(e,n.tooltipWare),n.selectionSet.clear(),n.notify()})}else this.onClear(e),this.clearLayer(e,this.tooltipWare),this.selectionSet.clear(),this.notify()},o.prototype.clearLayer=function(t,n){var i=this;t&&t.forEach(function(e){i.findLayerGrahpic(e.getLayerId()).forEach(function(t){e&&e.unSelect(t)}),e.clear(),n.remove(e.getLayerId())})},o.prototype.onClear=function(t){},o.prototype.findLayerGrahpic=function(t){for(var e=[],n=0,i=this.selectionSet.getCount();n<i;++n){var r=this.selectionSet.getGraphic(0),o=r.layer;o&&o.getLayerId()===t&&e.push(r)}return e},o.prototype.getLayers=function(){if(this.layerIds){for(var t=[],e=0;e<this.layerIds.length;e++){var n=this.layerIds[e],i=this.map.findLayer(n);t.push(i)}return t}return this.map.getLayers()},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.RUNNING=1,i.PAUSED=2,i.FINISHED=4,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.start=function(t){},i.prototype.pause=function(){},i.prototype.resume=function(){},i.prototype.stop=function(){},i.prototype._step=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.start=function(t){},i.prototype.pause=function(){},i.prototype.resume=function(){},i.prototype.stop=function(){},i.prototype._step=function(t){},i.prototype.state=function(){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.newAnimation=function(t){},i.prototype.remove=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.play=function(t){},i.prototype.pause=function(t){},i.prototype.resume=function(t){},i.prototype.stop=function(t){},i.prototype.on=function(t,e){},i.prototype.un=function(t,e){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.enable=function(){},i.prototype.disable=function(){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(208),n(206),n(27),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){t=t||{},e.call(this,t),this.animation=t.animation,this.done=t.done,this.id=i.newGuid(),this._state=n.FINISHED}return t.extend2(s,e),s.prototype.start=function(t){if(this._state==n.FINISHED){this._state=n.RUNNING;var e=this;this.animation.start(function(){e._done()},t)}},s.prototype.reStart=function(){if(this._state==n.RUNNING){this._state=n.RUNNING;var t=this;this.animation.reStart(function(){t._done()})}},s.prototype._done=function(){this.stopCallback()},s.prototype.pause=function(){this._state==n.RUNNING&&(this._state=n.PAUSED,this.animation.pause())},s.prototype.resume=function(){this._state==n.PAUSED&&(this._state=n.RUNNING,this.animation.resume())},s.prototype.stopCallback=function(){this._state!=n.FINISHED&&(this._state=n.FINISHED,this.done(this.id))},s.prototype.stop=function(){this._state!=n.FINISHED&&(this._state=n.FINISHED,this.animation.loop=!1,this.animation.stop())},s.prototype.state=function(){return this._state},s.prototype._step=function(t){this._state==n.RUNNING&&this.animation._step(t)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(209),n(31),n(41),n(28),n(32),n(212),n(214),n(215),n(216),n(230),n,e,t],void 0===(r=function(t,e,r,s,l,u,n,h,c,p,o,i,a,f){function d(t){t=t||{},e.call(this,t)}function y(t,e,n,i){return new r({size:t,fillColor:e,borderColor:null!==n?n:e,borderThickness:null!==i?i:1})}function m(t){return new s({offsetX:16,offsetY:16,width:32,height:32,rotation:0,opacity:1,source:t})}function g(t){return t=new n({animation:t})}return t.extend2(d,e),d.prototype.newAnimation=function(t){switch(t.animationType){case 1:return function(t,e,n,i,r,o,a){var s=y(i,r,r,1);return g(new h({loop:a,geometry:t,symbol:s,gap:e,count:n,effect:o,type:1}))}(t.geometry,t.gap,t.count,t.size,t.color,t.effect,t.loop);case 2:return function(t,e,n,i,r){var o=i instanceof s?i:m(i);return g(new h({loop:r,geometry:t,symbol:o,gap:e,count:n,type:2}))}(t.geometry,t.gap,t.count,t.img,t.loop);case 3:return function(t,e,n,i,r,o,a,s){var l=r.copy(),u=y(l.a=0,l,r,o);return g(new c({loop:s,geometry:t,symbol:u,life:e,gap:n,radius:i,size:o,effect:a,updateFill:!1}))}(t.geometry,t.life,t.gap,t.radius,t.color,t.size,t.effect,t.loop);case 4:return function(t,e,n,i,r,o,a,s,l){var u=y(0,o,r,a);return g(new c({loop:l,geometry:t,symbol:u,life:e,gap:n,radius:i,size:a,effect:s,updateFill:!0}))}(t.geometry,t.life,t.gap,t.radius,t.color,t.fillColor,t.size,t.effect,t.loop);case 5:return function(t,e,n,i,r,o){var a=y(n,e,e,1);return g(new p({loop:o,symbol:a,line:t,speed:i,skip:r,updateStyle:!1}))}(t.geometry,t.color,t.size,t.speed,t.skip,t.loop);case 6:return function(t,e,n,i,r,o){var a=e instanceof s?e:m(e);return g(new p({loop:r,symbol:a,line:t,speed:n,skip:i,isRotate:o,updateStyle:!0}))}(t.geometry,t.img,t.speed,t.skip,t.loop,t.isRotate);case 7:return function(t,e,n,i,r,o){var a=function(t){return new l({color:t,width:20})}(i);return g(new h({loop:o,geometry:t,symbol:a,gap:e,count:n,effect:r,type:5}))}(t.geometry,t.gap,t.count,t.color,t.effect,t.loop);case 8:return function(t,e,n,i,r,o){var a=function(t,e,n){return new u({fillColor:e,borderColor:null!=t?t:e,borderThickness:null!=n?n:10})}(i,i,20);return g(new h({loop:o,geometry:t,symbol:a,gap:e,count:n,effect:r,type:4}))}(t.geometry,t.gap,t.count,t.color,t.effect,t.loop);case 9:return function(t,e,n,i,r){return g(new o({geometry:t,symbol:e,clockWise:n,loop:i,gap:r}))}(t.geometry,t.symbol,t.clockwise,t.loop,t.gap)}},f.exports=d}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(72),n(88),n(17),n,e,t],void 0===(r=function(t,n,i,e,r,o,a){function s(t){var e=t||{};n.call(this,e),this.symbol=e.symbol,this.geometry=e.geometry,this.effect=e.effect||"normal",this.count=e.count,this._type=e.type,this.layer=e.layer}return t.extend2(s,n),s.prototype.doStart=function(){1===this.count&&!0===this.loop&&(this.count+=1,this.initialCount=1),2===this._type&&(this.count=2*(this.count-1)),3!==this._type&&4!==this._type&&1!==this._type&&5!==this._type||(this.count=4*(this.count-1)),this.trackElement=new e({geometry:this.geometry.copy(),symbol:this.symbol}),this.layer.add(this.trackElement)},s.prototype.doUpdate=function(t,e){switch(this._type){case 1:case 3:case 4:(function(t,e){if(t<e){var n=(0,i[this.effect])(t%4/4);this.symbol.fillColor.a=255*n,this.layer.update(this.trackElement,!0)}}).call(this,t,e);break;case 2:(function(t,e){var n=this.symbol.opacity;n=1===n?0:1,this.symbol.opacity=n,this.layer.update(this.trackElement,!0)}).call(this,t,e);break;case 5:(function(t,e){if(t<e){var n=(0,i[this.effect])(t%4/4);this.symbol.color.a=255*n,this.layer.update(this.trackElement,!0)}}).call(this,t,e)}},s.prototype.doStop=function(){null!==this.trackElement&&(this.layer.remove(this.trackElement),delete this.trackElement)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(72),n(88),n(17),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){t=t||{},e.call(this,t),this.symbol=t.symbol,this.point=t.geometry,this.life=t.life,this.radius=t.radius,this.size=t.size,this.effect=t.effect||"normal",this._updateFill=t.updateFill}return t.extend2(s,e),s.prototype.doStart=function(){this.count=Math.floor(this.life/this.gap),this.startRadius=this.radius/this.count,this.changeRadius=this.radius-this.startRadius,this.easingFunc=n[this.effect],this.trackElement=new i({geometry:this.point,symbol:this.symbol}),this.layer.add(this.trackElement)},s.prototype.doUpdate=function(t,e){var n=t/e,i=this.easingFunc(n),r=255*(1-i);this.symbol.borderColor.a=r,this.symbol.size=this.startRadius+this.changeRadius*i,this.symbol.with=this.size*i,!0===this._updateFill&&(this.symbol.fillColor.a=r),this.trackElement.symbol=this.symbol,this.layer.update(this.trackElement,!0)},s.prototype.doStop=function(){void 0!==this.trackElement&&(this.layer.remove(this.trackElement),delete this.trackElement,delete this.easingFunc,delete this.startRadius,delete this.changeRadius)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(72),n(36),n(17),n(6),n,e,t],void 0===(r=function(t,e,n,i,o,r,a,s){function l(t){t=t||{},e.call(this,t),this.symbol=t.symbol,this.line=t.line,this.speed=t.speed,this.lifetime=0,this.skip=t.skip||1,this.isRotate=null!=t.isRotate&&t.isRotate,this._updateStyle=t.updateStyle}var u=new n({});return t.extend2(l,e),l.prototype.start=function(t,e){this.running||(this.running=!0,this.index=0,this.gapCount=0,this.done=t,this.doStart(e))},l.prototype.doStart=function(t){this.init(),this.index=Math.ceil(t*this.count/this.lifetime),this.trackElement=new i({geometry:this.line3857.getPoint(this.index),symbol:this.symbol}),this.layer.add(this.trackElement)},l.prototype.init=function(){this.inverse=!1,this.srid=this.line.spatialReference,this.normalize(),this.line3857=u.transform(this.line,3857);var t=this.line3857.length();this.count=Math.floor(t/this.skip)+1,this.lifetime=t/this.speed*3600,this.gap=this.lifetime/this.count},l.prototype.getLifeTime=function(){this.line3857=u.transform(this.line,3857);var t=this.line3857.length();return this.lifetime=t/this.speed*3600,this.lifetime},l.prototype.normalize=function(){var t=this.line.startPoint(),e=this.line.endPoint();if(t.equals(e)){for(var n=new o,i=this.line.getPointCount(),r=0;r<i;r++)n.addPoint(this.line.getPoint(r));0<n.area()&&(this.inverse=!0)}},l.prototype.getInterLine=function(){var t=u.transform(this.line,3857),e=t.length(),n=Math.floor(e/this.skip)+1,i=this.line.copy();i.paths?i.paths[0].points.length=0:i.removeAllPoint();for(var r=0;r<n;r++){var o=t.getPartPoint(r*this.skip);o.setSpatialReference(3857),i.addPoint(u.transform(o,i.getSpatialReference()))}return i},l.prototype.doUpdate=function(t,e){var n=this.line3857.getPartPoint(t*this.skip);if(n.spatialReference=3857,this.trackElement.geometry=u.transform(n,this.srid),this._updateStyle){var i=t+1<e?t+1:e,r=this.line3857.getPartPoint(i*this.skip);if(this.isRotate){var o=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.atan2(i,n);return this.inverse?180*r/Math.PI:180*-r/Math.PI}.call(this,n,r);this.trackElement.symbol.rotation=o}this.layer.update(this.trackElement,!0,!0)}this.layer.update(this.trackElement,!1,!0),this.updated(this.trackElement,t)},l.prototype.doStop=function(){void 0!==this.trackElement&&(this.layer.remove(this.trackElement),delete this.trackElement,delete this.line3857,delete this.srid)},l.prototype.updated=function(t,e){},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.transform=function(t,e){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){var e=t||{};n.call(this,e),this.$type="Surface,http://www.Gs.com"}return t.extend2(n,n),a.prototype.getGeometryType=function(){return e.Surface},a.prototype.area=function(){return 0},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(47),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.area=function(){return!1},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(47),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.isClose=function(){return!1},a.prototype.length=function(){return 0},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n(52),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){var e=t||{};n.call(this,e),this.center=e.center,this.radius=e.radius,this.height=e.height,this.slices=e.slices,this.$type="Cone,http://www.Gs.com"}return t.extend2(l,n),l.prototype.getGeometryType=function(){return e.Cone},l.prototype.setCenter=function(t){this.center=t},l.prototype.setRadius=function(t){this.radius=t},l.prototype.getCenter=function(){return this.center},l.prototype.getRadius=function(){return this.radius},l.prototype.envelope=function(){var t=r.convert(this.radius,this.spatialReference);return new i({minx:this.center.x-t,miny:this.center.y-t,minz:this.center.z-this.height/2,maxx:this.center.x+t,maxy:this.center.y+t,maxz:this.center.z+this.height/2,spatialReference:this.spatialReference})},l.prototype.copy=function(){return new l({center:this.center.copy(),radius:this.radius,height:this.height,slices:this.slices,spatialReference:this.spatialReference})},l.prototype.asWkt=function(t){},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n(52),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){var e=t||{};n.call(this,e),this.center=e.center,this.depth=e.depth,this.height=e.height,this.width=e.width,this.$type="Cube,http://www.Gs.com"}return t.extend2(l,n),l.prototype.getGeometryType=function(){return e.Cube},l.prototype.setCenter=function(t){this.center=t},l.prototype.setRadius=function(t){},l.prototype.getCenter=function(){return this.center},l.prototype.getRadius=function(){},l.prototype.envelope=function(){var t=r.convert(this.width,this.spatialReference),e=r.convert(this.height,this.spatialReference);return new i({minx:this.center.x-t/2,miny:this.center.y-e/2,minz:this.center.z-this.depth/2,maxx:this.center.x+t/2,maxy:this.center.y+e/2,maxz:this.center.z+this.depth/2,spatialReference:this.spatialReference})},l.prototype.copy=function(){return new l({center:this.center.copy(),depth:this.depth,height:this.height,width:this.width,spatialReference:this.spatialReference})},l.prototype.asWkt=function(t){},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n(52),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){var e=t||{};n.call(this,e),this.center=e.center,this.bottomRadius=e.bottomRadius,this.topRadius=e.topRadius,this.height=e.height,this.slices=e.slices,this.$type="Cylinder,http://www.Gs.com"}return t.extend2(l,n),l.prototype.getGeometryType=function(){return e.Cylinder},l.prototype.setCenter=function(t){this.center=t},l.prototype.setRadius=function(t,e){this.topRadius=t,this.bottomRadius=e},l.prototype.getCenter=function(){return this.center},l.prototype.getRadius=function(){return this.radius},l.prototype.envelope=function(){var t=Math.max(this.topRadius,this.bottomRadius);return t=r.convert(t,this.spatialReference),new i({minx:this.center.x-t,miny:this.center.y-t,minz:this.center.z-this.height/2,maxx:this.center.x+t,maxy:this.center.y+t,maxz:this.center.z+this.height/2,spatialReference:this.spatialReference})},l.prototype.copy=function(){return new l({center:this.center.copy(),topRadius:this.topRadius,bottomRadius:this.bottomRadius,height:this.height,slices:this.slices,spatialReference:this.spatialReference})},l.prototype.asWkt=function(t){},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n(52),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){var e=t||{};n.call(this,e),this.center=e.center,this.radiusX=e.radiusX,this.radiusY=e.radiusY,this.radiusZ=e.radiusZ,this.$type="Ellipsoid,http://www.Gs.com"}return t.extend2(l,n),l.prototype.getGeometryType=function(){return e.Ellipsoid},l.prototype.setCenter=function(t){this.center=t},l.prototype.setRadius=function(t,e,n){this.radiusX=t,this.radiusY=e,this.radiusZ=n},l.prototype.getCenter=function(){return this.center},l.prototype.getRadius=function(){return this.radius},l.prototype.envelope=function(){var t=r.convert(this.radiusX,this.spatialReference),e=r.convert(this.radiusY,this.spatialReference),n=r.convert(this.radiusZ,this.spatialReference);return new i({minx:this.center.x-t,miny:this.center.y-e,minz:this.center.z-n,maxx:this.center.x+t,maxy:this.center.y+e,maxz:this.center.z+n,spatialReference:this.spatialReference})},l.prototype.copy=function(){return new l({center:this.center.copy(),radiusX:this.radiusX,radiusY:this.radiusY,radiusZ:this.radiusZ,spatialReference:this.spatialReference})},l.prototype.asWkt=function(t){},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(93),n(92),n(8),n(13),n,e,t],void 0===(r=function(t,n,i,r,o,e,a,s){function l(t){var e=t||{};n.call(this,e),i.call(this,e),this.paths=[],this.shape=e.shape,this.$type="Pipeline,http://www.Gs.com"}return t.extend2(l,n),t.extend2(l,i),l.prototype.getGeometryType=function(){return r.Pipeline},l.prototype.addGeometry=function(t){t.getGeometryType()==r.Path&&this.paths.push(t)},l.prototype.insertGeometry=function(t,e){e.getGeometryType()==r.Path&&this.paths.splice(t,0,e)},l.prototype.removeGeometry=function(t){if(t.getGeometryType()==r.Path){var e=this.paths.indexOf(t);this.paths.splice(e,1)}},l.prototype.length=function(){for(var t=0,e=0,n=this.paths.length;e<n;++e)t+=this.paths[e].length();return t},l.prototype.removeAllGeometry=function(){this.paths.splice(0,this.points.length)},l.prototype.getGeometryCount=function(){return this.paths.length},l.prototype.getGeometry=function(t){return this.paths[t]},l.prototype.indexOfGeometry=function(t){this.paths.indexOf(t)},l.prototype.isGeometryEmpty=function(){return 0==this.paths.length},l.prototype.addPoint=function(t){var e=this.last();null!=e&&e.addPoint(t)},l.prototype.insertPoint=function(t,e){var n=this.last();null!=n&&n.insertPoint(t,e)},l.prototype.removePoint=function(t){for(var e=0,n=this.paths.length;e<n;++e)this.paths[e].removePoint(t)},l.prototype.removeAllPoint=function(){for(var t=0,e=this.paths.length;t<e;++t)this.paths[t].removeAllPoint();this.paths.splice(0,this.paths.length)},l.prototype.getPointCount=function(){for(var t=0,e=0,n=this.paths.length;e<n;++e)t+=this.paths[e].getPointCount();return t},l.prototype.getPoint=function(t){for(var e=0,n=0,i=this.paths.length;n<i;++n){var r=this.paths[n];if(t<(e+=r.getPointCount()))return r.getPoint(r.getPointCount()-(e-t))}},l.prototype.indexOfPoint=function(t){for(var e=0,n=0,i=this.paths.length;n<i;++n){var r=this.paths[n],o=r.indexOf(t);if(-1!=o)return e+o;e+=r.getPointCount()}return-1},l.prototype.isPointEmpty=function(){return 0==this.getPointCount()},l.prototype.copy=function(){var t=new l;t.spatialReference=this.spatialReference;for(var e=0,n=this.paths.length;e<n;++e)t.addGeometry(this.paths[e].copy());return t},l.prototype.setSpatialReference=function(t){this.spatialReference=t;for(var e=0,n=this.paths.length;e<n;++e)this.paths[e].setSpatialReference(t)},l.prototype.first=function(){if(0<this.paths.length)return this.getGeometry(0)},l.prototype.last=function(){if(0<this.paths.length)return this.getGeometry(this.paths.length-1)},l.prototype.envelope=function(){for(var t=new o({spatialReference:this.spatialReference}),e=0,n=this.paths.length;e<n;++e)t=t.union(this.paths[e].envelope());return t.spatialReference=this.spatialReference,t},l.prototype.offset=function(t){for(var e=0,n=this.paths.length;e<n;++e)this.paths[e].offset(t);return this},l.prototype.middlePoint=function(){for(var t=this.length()/2,e=0,n=0,i=0,r=this.paths.length;i<r;++i){var o=this.paths[i];if(t<=e+(n=o.length()))return o.getPartPoint(t-e);e+=n}return this},l.prototype.normalize=function(){for(var t=0,e=this.paths.length;t<e;++t)this.paths[t].normalize()},l.prototype.asWkt=function(t){var e=this.getGeometryCount();if(1==e){var n=this.getGeometry(0).points,i=this.points2WKT(n,t);return"linestring{0}".replace("{0}",i)}if(1<e){for(var r="",o=0;o<e;++o){n=this.getGeometry(o).points;r+=","+(i=this.points2WKT(n,t))}return"multilinestring({0})".replace("{0}",r.substr(1))}},l.prototype.asGeoJson=function(t){var e={type:"",coordinates:[]},n=this.getGeometryCount();e.type=1==n?"LineString":"MultiLineString";for(var i=0;i<n;i++){var r=this.getGeometry(i).points;e.coordinates.push(this.getPointsArray(r,t))}return e},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(5),n(13),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){var e=t||{};n.call(this,e),this.extrudeHeight=void 0===e.extrudeHeight?void 0:e.extrudeHeight,this.perPositionHeight=e.perPositionHeight||!1,this.$type="PolyHedron,http://www.Gs.com"}return t.extend2(s,n),s.prototype.getGeometryType=function(){return e.Polyhedron},s.prototype.envelope=function(){var t=s.prototype.uber.envelope.call(this),e=Number.MAX_VALUE,n=-Number.MAX_VALUE;return n=this.extrudeHeight?(e=0,this.extrudeHeight):(e=0,t.maxz),new i({minx:t.minx,miny:t.miny,minz:e,maxx:t.maxx,maxy:t.maxy,maxz:n,spatialReference:this.spatialReference})},s.prototype.copy=function(){var t=new s;t.spatialReference=this.spatialReference,this.shell&&t.setShell(this.shell.copy());for(var e=0,n=this.holes.length;e<n;e++)t.addHole(this.hole[e].copy());return t.extrudeHeight=this.extrudeHeight,t.perPositionHeight=this.perPositionHeight,t},s.prototype.asWkt=function(t){},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n(52),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){var e=t||{};n.call(this,e),this.center=e.center,this.radius=e.radius,this.$type="Sphere,http://www.Gs.com"}return t.extend2(l,n),l.prototype.getGeometryType=function(){return e.Sphere},l.prototype.setCenter=function(t){this.center=t},l.prototype.setRadius=function(t){this.radius=t},l.prototype.getCenter=function(){return this.center},l.prototype.getRadius=function(){return this.radius},l.prototype.envelope=function(){var t=r.convert(this.radius,this.spatialReference);return new i({minx:this.center.x-t,miny:this.center.y-t,minz:this.center.z-this.radius,maxx:this.center.x+t,maxy:this.center.y+t,maxz:this.center.z+this.radius,spatialReference:this.spatialReference})},l.prototype.copy=function(){return new l({center:this.center.copy(),radius:this.radius,spatialReference:this.spatialReference})},l.prototype.asWkt=function(t){},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(22),n(13),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){var e=t||{};n.call(this,e),this.positions=e.positions||[],this.minHeights=e.minHeights,this.maxHeights=e.maxHeights,this.$type="Wall,http://www.Gs.com"}return t.extend2(s,n),s.prototype.getGeometryType=function(){return e.Wall},s.prototype.envelope=function(){var e=miny=minz=Number.MAX_VALUE,n=maxy=maxz=-Number.MAX_VALUE;return this.positions.forEach(function(t){e>t.x&&(e=t.x),n<t.x&&(n=t.x),miny>t.y&&(miny=t.y),maxy<t.y&&(maxy=t.y)}),"number"==typeof this.minHeights?(minz=this.minHeights,maxz=this.maxHeights):(this.maxHeights.forEach(function(t){maxz<t&&(maxz=t)}),this.minHeights.forEach(function(t){minz>t&&(minz=t)})),new i({minx:e,miny:miny,minz:minz,maxx:n,maxy:maxy,maxz:maxz,spatialReference:this.spatialReference})},s.prototype.copy=function(){var e,n,i=[];return this.positions.forEach(function(t){i.push(t.copy())}),this.minHeights instanceof Array?(e=[],this.minHeights.forEach(function(t){e.push(t)})):e=this.minHeights,this.maxHeights instanceof Array?(n=[],this.maxHeights.forEach(function(t){n.push(t)})):n=this.maxHeights,new s({positions:i,maxHeights:n,minHeights:e,spatialReference:this.spatialReference})},s.prototype.asWkt=function(t){},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(8),n(29),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){var e=t||{};n.call(this,e),this.$type="ExtrudedLine,http://www.Gs.com"}return t.extend2(a,n),a.prototype.getGeometryType=function(){return e.ExtrudedLine},a.prototype.copy=function(){var t=new a;t.spatialReference=this.spatialReference;for(var e=0,n=this.points.length;e<n;++e)t.addPoint(this.points[e].copy());return t},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(72),n(88),n(17),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){t=t||{},e.call(this,t),this.symbol=t.symbol,this.geometry=t.geometry,t.clockWise||(this.gap=-this.gap),this.layer=t.layer,this.angle=this.symbol.rotation}return t.extend2(s,e),s.prototype.doStart=function(){this.count=Math.abs(Math.ceil(360/this.gap)),this.trackElement=new i({geometry:this.geometry.copy(),symbol:this.symbol}),this.layer.add(this.trackElement)},s.prototype.doUpdate=function(t,e){this.angle=(this.angle+this.gap)%360,this.symbol.rotation=this.angle,this.layer.update(this.trackElement,!0)},s.prototype.doStop=function(){void 0!==this.trackElement&&(this.layer.remove(this.trackElement),delete this.trackElement)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this.clips=[]}return i.prototype.add=function(t){this.clips.push(t)},i.prototype.remove=function(t){var e=this.find(t);if(null!==e){var n=this.clips.indexOf(e);this.clips.splice(n,1)}},i.prototype.find=function(t){for(var e=0;e<this.clips.length;e++){var n=this.clips[e];if(n.id===t)return n}return null},i.prototype.removeFinished=function(){var e=[];this.clips.forEach(function(t){t.animation.canDelete||e.push(t)}),this.clips=e},i.prototype.forEach=function(e){this.clips.forEach(function(t){e(t)})},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(42),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=t.layer,this.selectionSet=null}return t.extend2(o,e),o.prototype.isEnabled=function(){return!(0<this.findLayerGrahpic().length)},o.prototype.findLayerGrahpic=function(){var t=[];if(!this.selectionSet)return t;for(var e=0,n=this.selectionSet.getCount();e<n;++e){var i=this.selectionSet.getGraphic(0),r=i.layer;r&&r.getLayerId()===this.layer.getLayerId()&&t.push(i)}return t},o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.selectionSet=t.graphicSelectionSet},o.prototype.onClick=function(t){if(o.prototype.uber.onClick.call(this,t),t){var e=this;this.messageBox(t).result.then(function(){e.cancelSelected(),e.deleteSelected(),e.selectionSet.clear()})}else this.cancelSelected(),this.deleteSelected(),this.selectionSet.clear()},o.prototype.onDeleteGraphic=function(t,e){},o.prototype.cancelSelected=function(){this.findLayerGrahpic().forEach(function(t){var e=t.layer;e&&e.unSelectEdit(t)})},o.prototype.deleteSelected=function(){var t=this.findLayerGrahpic(),n=this;t.forEach(function(t){var e=t.layer;e&&n.onDeleteGraphic(e,t),n.selectionSet.remove(t)}),this.notify()},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(87),n(20),n(11),n,e,t],void 0===(r=function(t,e,i,n,r,o,a){function s(t){(t=t||{}).layerTypes=[n.FeatureLayer],this._styleFunc=null,e.call(this,t)}return t.extend2(s,e),s.prototype.onCreate=function(t){s.prototype.uber.onCreate.call(this,t)},s.prototype.selectFeature=function(t,e){var n=new i({feature:e});n.layer=t,this._styleFunc&&(t.selectSymbol=this._styleFunc.call(this,n)),this.selectGraphic(t,n)},s.prototype.setSelectedSymbolFunc=function(t){this._styleFunc=t},s.prototype.unSelectFeature=function(t,e){var n=new i({feature:e});this.unSelectGraphic(t,n)},s.prototype.onSelectGraphic=function(t,e){this.onSelectFeature(t,e.feature)},s.prototype.onUnSelectGraphic=function(){this.onUnSelectFeature()},s.prototype.onSelectFeature=function(t,e){},s.prototype.onUnSelectFeature=function(){},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(87),n(20),n(11),n,e,t],void 0===(r=function(t,e,i,n,r,o,a){function s(t){(t=t||{}).layerTypes=[n.VectorTileLayer],e.call(this,t)}return t.extend2(s,e),s.prototype.onCreate=function(t){s.prototype.uber.onCreate.call(this,t)},s.prototype.selectFeature=function(t,e){var n=new i({feature:e});this.selectGraphic(t,n)},s.prototype.unSelectFeature=function(t,e){var n=new i({feature:e});this.unSelectGraphic(t,n)},s.prototype.onSelectGraphic=function(t,e){this.onSelectFeature(t,e.feature)},s.prototype.onUnSelectGraphic=function(){this.onUnSelectFeature()},s.prototype.onSelectFeature=function(t,e){},s.prototype.onUnSelectFeature=function(){},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(87),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.selectCount=t.selectCount}return t.extend2(o,e),o.prototype.canContinue=function(t){return t.getCount()!=this.selectCount},o.prototype.onUnSelectGraphic=function(){this.cancelSelected()},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.isWhite=function(t){},i.prototype.need=function(){},i.prototype.take=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.ClusterLayer},a.prototype.setStyleFunc=function(t){},a.prototype.add=function(t){},a.prototype.addElements=function(t){},a.prototype.remove=function(t){},a.prototype.removeElements=function(t){},a.prototype.showElement=function(t,e){},a.prototype.update=function(t,e){},a.prototype.find=function(t){},a.prototype.getCount=function(){},a.prototype.get=function(t){},a.prototype.select=function(t){},a.prototype.unSelect=function(t){},a.prototype.contains=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.ElementLayer},a.prototype.add=function(t){},a.prototype.addElements=function(t,e){},a.prototype.addGElement=function(t){},a.prototype.addElementCollection=function(t){},a.prototype.remove=function(t){},a.prototype.showElement=function(t,e){},a.prototype.update=function(t,e){},a.prototype.find=function(t){},a.prototype.getCount=function(){},a.prototype.get=function(t){},a.prototype.select=function(t){},a.prototype.unSelect=function(t){},a.prototype.selectEdit=function(t){},a.prototype.contains=function(t){},a.prototype.unSelectEdit=function(t){},a.prototype.bringTop=function(t){},a.prototype.sendBottom=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.FeatureLayer},a.prototype.add=function(t){},a.prototype.addFeatures=function(t){},a.prototype.remove=function(t){},a.prototype.update=function(t){},a.prototype.find=function(t){},a.prototype.getCount=function(){},a.prototype.get=function(t){},a.prototype.render=function(t){},a.prototype.unRender=function(t){},a.prototype.selectEdit=function(t){},a.prototype.unSelectEdit=function(t){},a.prototype.boxSelect=function(t){},a.prototype.getExtent=function(){},a.prototype.bringTop=function(t){},a.prototype.sendBottom=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.GroupLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){e.call(this,t)}return t.extend2(a,e),a.prototype.getLayerType=function(){return n.HeatMapLayer},a.prototype.add=function(t){},a.prototype.addHeats=function(t){},a.prototype.remove=function(t){},a.prototype.update=function(t){},a.prototype.get=function(t){},a.prototype.getCount=function(){},a.prototype.getBlur=function(){},a.prototype.setBlur=function(t){},a.prototype.getRadius=function(){},a.prototype.setRadius=function(t){},a.prototype.setGradient=function(t){},a.prototype.getGradient=function(){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.url=e.url}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.ImageLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.createLayer=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.delete=function(t,e,n,i){},i.prototype.get=function(t,e,n,i){},i.prototype.post=function(t,e,n,i){},i.prototype.put=function(t,e,n,i){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){"use strict";function i(t){var e;this.name="RuntimeError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}return Object.create&&((i.prototype=Object.create(Error.prototype)).constructor=i),i.prototype.toString=function(){var t=this.name+": "+this.message;return this.stack||(t+="\n"+this.stack.toString()),t},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){"use strict";function i(t,e,n){this.statusCode=t,this.response=e,this.responseHeaders=n,"string"==typeof this.responseHeaders&&(this.responseHeaders=function(t){var e={};if(!t)return e;for(var n=t.split("\r\n"),i=0;i<n.length;++i){var r=n[i],o=r.indexOf(": ");if(0<o){var a=r.substring(0,o),s=r.substring(o+2);e[a]=s}}return e}(this.responseHeaders))}return i.prototype.toString=function(){var t="Request has failed.";return this.statusCode&&(t+=" Status Code: "+this.statusCode),t},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.url=e.url}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.TileLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.PatternLayer},a.prototype.add=function(t){},a.prototype.update=function(t,e){},a.prototype.remove=function(t){},a.prototype.find=function(t){},a.prototype.hitTest=function(t,e){},a.prototype.getCount=function(){},a.prototype.get=function(t){},a.prototype.clear=function(){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.PointsLayer},a.prototype.add=function(t){},a.prototype.addFeatures=function(t){},a.prototype.remove=function(t){},a.prototype.update=function(t){},a.prototype.find=function(t){},a.prototype.getCount=function(){},a.prototype.get=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(94),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.url=e.url}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.ProxyLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.create=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.url=e.url}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.TraficLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){e.call(this,t)}return t.extend2(a,e),a.prototype.getLayerType=function(){return n.VectorLayer},a.prototype.add=function(t){},a.prototype.remove=function(t){},a.prototype.update=function(t){},a.prototype.getCount=function(){},a.prototype.get=function(t){},a.prototype.selectEdit=function(t){},a.prototype.unSelectEdit=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.url=e.url}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.VectorTileLayer},a.prototype.render=function(t){},a.prototype.unRender=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.WeaRadarLayer},a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={ImageWMS:701,ImageStatic:702,ImageWMS:701,ImageStatic:702,ImageCanvas:703};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(151),n(236),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),n.call(this,t),this.level=t.level,this.token=t.token,this.empetyImage=t.emptyImage?t.emptyImage:"/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAE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mXcxspsF1uni6GNJFJJVjrq1iRX3K5HtlY9qK1Wp59knKKqIWvKGofVOBm8+/NqYfDybH72jag1dfi6WtVZDf3bWkleahFcy7U6V86z+tGqWo0Y5rXeFa341s7zM3N18lYdNX6ogz83nsnL2P5NXHw7uJdfmZUFK3pJrz4r9rQhsQWW/ztK/UxkrNsI2WeCKZ6sf7+r2udzMylM2H68fk2siLnbmfQx8y3JcSvezrF67AyBd6bGxs+avoZ8FfAybPQTLHA9kkjYlWNsjW+no5X16lMGD6ts17eHuN6ZZul57S07+VPPjxt5ylFuVdWvt59bnaOhRsJX1JtVbMskl6Ww6zBEqyLGxIxz6xWJKXnlcCXm8pmZJdZbZE6JtWKtWmo5uZRrU6mfRy8mhPe0paefUq02eGOnkVZHPeq+XeEzM3NrGFlIoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/9k=",this.newUrl=t.newUrl}return t.extend2(a,e),t.extend2(a,n),a.prototype.do=function(t){},a.prototype.isWhite=function(t){return function(t){for(var e="",n=0,i=t.length;n<i;++n)e+=String.fromCharCode(t[n]);return btoa(e)}(new Uint8Array(t))===this.empetyImage},a.prototype.need=function(t){return t>this.level},a.prototype.take=function(t){var e=this.newUrl+function(t){{if(0<=t.indexOf("?")){var e=t.indexOf("?");return t=t.substring(e,t.length)}e=t.indexOf("wmts");return t=t.substring(e+4,t.length)}}(t)+"&address="+function(t){{if(0<=t.indexOf("?")){var e=t.indexOf("?");return t=t.substring(0,e)}e=t.indexOf("wmts");return t=t.substring(0,e+4)}}(t)+"&token="+this.token;return e=e.replace("format=","Format=").replace("tilematrix=","TileMatrix=").replace("tilecol=","TileCol=").replace("tilerow=","TileRow=")},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(25),n(115),n(61),n(116),n(259),n,e,t],void 0===(r=function(e,n,i,r,o,t,a,s){function l(){}return l.createProperty=function(t){return e.GeometryBegin<=t&&e.GeometryEnd>=t?new n:i.None<=t&&i.Boolean>=t?new r:e.ElementBegin<=t&&e.ElementEnd>=t?new o:void 0},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(35),n(77),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},n.call(this,t),this.element=t.element||null,this.$type="ElementProperty,http://www.Gs.com"}return t.extend2(a,n),a.prototype.setValue=function(t){this.element=t},a.prototype.getValue=function(){return this.element},a.prototype.copy=function(){return new a({changed:this.changed,element:null!==this.element?this.element.copy():null})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(55),n(152),n(54),n(9),n(111),n(20),n(10),n(23),n,e,t],void 0===(r=function(t,u,a,s,e,n,h,i,r,o,l,c){function p(t){var e=t||{};a.call(this,e),this.glStyle=e.glStyle;var n=this;if(e.transformRequest)this._transformRequest=e.transformRequest;else{var i,r=/http:\/\/(\d+\.\d+\.\d+\.\d+(:\d+)*)|https:\/\/(\d+\.\d+\.\d+\.\d+(:\d+)*)|(^((http:\/\/)|(https:\/\/))?([_a-zA-Z0-9]([_a-zA-Z0-9\-]{0,61}[_a-zA-Z0-9])?\.)+[a-zA-Z]{2,6})/,o=r.exec(this.glStyle);null!==o&&Array.isArray(o)&&(i=o[0]),this._transformRequest=function(t,e){return"Style"===e?{url:t,headers:{Authorization:n._token}}:{url:void 0!==i?t.replace(r,i):t,headers:{Authorization:n._token}}}}this._options=e,this.setVisible(this.visible),this.isChangedStyle=void 0!==e.isChangedStyle&&e.isChangedStyle}return t.extend2(p,a),p.prototype.loadStyle=function(t,e){this._glMap.setStyle(t,{diff:e})},p.prototype.getStyle=function(){return this._glMap.getStyle()},p.prototype.setLayoutProperty=function(t,e,n){this._glMap.setLayoutProperty(t,e,n)},p.prototype.setPaintProperty=function(t,e,n){this._glMap.setPaintProperty(t,e,n)},p.prototype.showLayers=function(r,o){var t=this;function e(){if(!0===o){if(Array.isArray(r))for(var t=0,e=r.length;t<e;t++)this._glMap.setLayoutProperty(r[t],"visibility","visible");"string"==typeof r&&this._glMap.setLayoutProperty(r,"visibility","visible")}else if(!1===o){if(Array.isArray(r))for(var n=0,i=r.length;n<i;n++)this._glMap.setLayoutProperty(r[n],"visibility","none");"string"==typeof r&&this._glMap.setLayoutProperty(r,"visibility","none")}}this._glMap&&(this._glMap.isStyleLoaded()?e.call(this):this._glMap.once("load",function(){e.call(t)}))},p.prototype.setChangedStyle=function(t){this.isChangedStyle=t},p.prototype.getChangedStyle=function(){return this.isChangedStyle},p.prototype.hitTestList=function(t,e){var n=new s,i=this,r=1*this.projection.split(":")[1],o=[t,e],a=this._glMap.queryRenderedFeatures(o);return Array.isArray(a)&&a.forEach(function(t){var e=u.fromGeoJson(t,r);n.add(new h({feature:e,layer:i}))}),n},p.prototype.hitTest=function(t,e){var n=[t,e],i=null,r=1*this.projection.split(":")[1],o=this._glMap.queryRenderedFeatures(n);if(Array.isArray(o)){for(var a=0,s=o.length;a<s;a++){var l=u.fromGeoJson(o[a],r);i=new h({feature:l,layer:this});break}return i}return null},p.prototype.formatLayer=function(t){var e={},n=this._options;if(e.type="WVTS",this.getChangedStyle())e.styleJSON=JSON.stringify(this.getStyle());else{var i=n.formatUrl||n.glStyle;e.baseURL=i}e.zoom=t||10;var r=n.formatToken;return r||!this._token&&!this._restHttp||(r=this._token||this._restHttp.getToken()),r?(e.accessMode="Basic",e.accessKey=r):e.accessKey="basic",e},p.prototype.enableFormat=function(){return!1!==this.visible&&0!==this.opacity},c.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(154),n(10),n,e,t],void 0===(r=function(t,e,n,i,r,o){var a=function(t){t=t||{},e.call(this,t)};t.extend2(a,e),n(a.prototype,{visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}}});var s=["click","dblclick","mouseover","mouseout","mousedown","mouseup","visible","opacity"];function l(c,p){var f=this;if("mouseover"==c||"mouseout"==c){var d={selectedObj:null,deselectedObj:null,selFlag:!1,selectedGraphic:null,deselectedGraphic:null};function t(t,e,n,i,r,o,a){for(var s,l=f.groupLayers.length-1;0<=l;l--){var u=f.groupLayers[l];if(u&&(s=u.hitTest(n,i)))break}if(s){var h=s.feature||s.element;d.selectedObj!==h?(d.selFlag=!0,null!=d.selectedObj?(d.deselectedObj=d.selectedObj,d.deselectedGraphic=d.selectedGraphic,d.selectedObj=h,d.selectedGraphic=s):(d.selectedObj=h,d.selectedGraphic=s,d.deselectedGraphic=null,d.deselectedObj=null)):(d.selFlag=!1,d.selectedObj=h,d.selectedGraphic=s,d.deselectedObj=null,d.deselectedGraphic=null)}else d.selFlag=!1,null!=d.selectedObj?(d.deselectedObj=d.selectedObj,d.deselectedGraphic=d.selectedGraphic,d.selectedObj=null,d.selectedGraphic=null):(d.deselectedObj=null,d.selectedObj=null,d.selectedGraphic=null,d.deselectedGraphic=null);return d.deselectedObj&&"mouseout"==c?p(n,i,r,o,d.deselectedGraphic):d.selectedObj&&d.selFlag&&"mouseover"==c?p(n,i,r,o,s):void 0}p.registerFunc=t,a.prototype.uber.on.call(this,c,p),this.map.on("mousemove",t)}else if("visible"===c||"opacity"===c)a.prototype.uber.on.call(this,c,p);else{function e(t,e,n,i,r,o,a){for(var s=f.groupLayers.length-1;0<=s;s--){var l=f.groupLayers[s];if(l){var u=l.hitTest(n,i);if(u)return p(n,i,r,o,u)}}}p.registerFunc=e,a.prototype.uber.on.call(this,c,p),this.map.on(c,e)}}return a.prototype.un=function(t,e){if("visible"===t||"opacity"===t)a.prototype.uber.un.call(this,t,e);else for(var n=0;n<s.length;n++)t==s[n]&&(a.prototype.uber.un.call(this,t,e),this.map.un("mouseover"==(i=t)||"mouseout"==i?"mousemove":i,e.registerFunc));var i},a.prototype.on=function(t,e){for(var n=0;n<s.length;n++)t==s[n]&&l.call(this,t,e)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.fromSymbol=function(t){},i.prototype.toSymbol=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(9),n,e,t],void 0===(r=function(t,d,e,n,i){function o(t,e){this.value=t||"",this.name=e||"token",this.CLASS_NAME="SuperMap.Credential"}var r="ISERVER",a="IPORTAL",s="ONLINE",y="METER",l="KILOMETER",m="DEGREE",u="INCH",h="FOOT",g={getToken:function(t){if(t){this.tokens=this.tokens||{};var e=this.getTokenStorageKey(t);return this.tokens[e]}},getTokenStorageKey:function(t){var e=t.match(/(.*?):\/\/([^\/]+)/i);return e?e[0]:t},getKey:function(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;return this.keys[e]},getUrlRestString:function(t){if(!t)return t;var e=t.match(/http:\/\/(.*\/rest)/i);return e?e[0]:t}},v={resolutionToScale:function(t,e,n){var i=t*e*(1/.0254)*this.getMeterPerMapUnit(n);return i=1/i},getMeterPerMapUnit:function(t){var e;if(t===y)e=1;else if(t===m)e=2*Math.PI*6378137/360;else if(t===l)e=.001;else if(t===u)e=1/.025399999918;else{if(t!==h)return e;e=.3048}return e}};o.prototype.getUrlParameters=function(){return this.name+"="+this.value},o.prototype.getValue=function(){return this.value},o.prototype.destroy=function(){this.value=null,this.name=null};var x=function(c){(c=c||{}).format=c.format?c.format:"png";var t=c.url+"/tileImage."+c.format+"?";c.serverType=c.serverType||r,this.attributions=c.attributions,this.cacheSize=c.cacheSize,this.crossOrigin=c.crossOrigin,this.logo=c.logo,this.opaque=c.opaque,this.projection=c.projection,this.reprojectionErrorThreshold=c.reprojectionErrorThreshold,this.state=c.state,this.tileClass=c.tileClass,this.tileGrid=c.tileGrid,this.tileLoadFunction=c.tileLoadFunction,this.tilePixelRatio=c.tilePixelRatio,c.tileUrlFunction=function(t,e,n){p.tileGrid||(p.extent?(p.tileGrid=x.createTileGrid(c.extent),p.resolutions&&(p.tileGrid.resolutions=p.resolutions)):("EPSG:3857"===n.getCode()&&(p.tileGrid=x.createTileGrid([-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892]),p.extent=[-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892]),"EPSG:4326"===n.getCode()&&(p.tileGrid=x.createTileGrid([-180,-90,180,90]),p.extent=[-180,-90,180,90])));p.origin=p.tileGrid.getOrigin(0);var i=t[0],r=t[1],o=t[2],a=p.tileGrid.getResolution(i),s=n.getUnits();"degrees"!==s&&"degress"!==s||(s=m);"m"===s&&(s=y);var l=v.resolutionToScale(a,96,s),u=d.size.toSize(p.tileGrid.getTileSize(i,p.tmpSize)),h=function(){this._paramsChanged&&(this._layerUrl=f.call(this),this._paramsChanged=!1);return this._layerUrl||f.call(this)}.call(p)+encodeURI("&x="+r+"&y="+o+"&width="+u[0]+"&height="+u[1]+"&scale="+l);p.tileProxy&&(h=p.tileProxy+encodeURIComponent(h));p.cacheEnabled||(h+="&_t="+(new Date).getTime());return h},this.url=c.url,this.urls=c.urls,this.wrapX=void 0!==c.wrapX&&c.wrapX,this.cacheEnabled=c.cacheEnabled,this.layersID=c.layersID,d.source.TileImage.call(this,c),c.tileProxy&&(this.tileProxy=c.tileProxy),this.options=c,this._url=c.url,this.tileSetsIndex=-1,this.tempIndex=-1;var p=this;function f(){return this._layerUrl=t+encodeURI(function(){this.requestParams=this.requestParams||function(){var t={};return t.redirect=void 0!==c.redirect&&c.redirect,t.transparent=void 0===c.transparent||c.transparent,t.cacheEnabled=!(!1===c.cacheEnabled),this.cacheEnabled=t.cacheEnabled,t._cache=t.cacheEnabled,this.origin&&(t.origin=JSON.stringify({x:this.origin[0],y:this.origin[1]})),c.prjCoordSys&&(t.prjCoordSys=JSON.stringify(c.prjCoordSys)),c.layersID&&(t.layersID=c.layersID.toString()),c.clipRegion instanceof d.geom.Geometry&&(c.clipRegionEnabled=!0,c.clipRegion=_Util.Util.toSuperMapGeometry((new d.format.GeoJSON).writeGeometryObject(c.clipRegion)),c.clipRegion=_iclientCommon.CommonUtil.toJSON(_iclientCommon.ServerGeometry.fromGeometry(c.clipRegion)),t.clipRegionEnabled=c.clipRegionEnabled,t.clipRegion=JSON.stringify(c.clipRegion)),c.overlapDisplayed?t.overlapDisplayed=!0:(t.overlapDisplayed=!1,c.overlapDisplayedOptions&&(t.overlapDisplayedOptions=this.overlapDisplayedOptions.toString())),c.cacheEnabled&&c.tileversion&&(t.tileversion=c.tileversion.toString()),t}.call(this);var t=[];for(var e in this.requestParams)t.push(e+"="+this.requestParams[e]);return t.join("&")}.call(this)),this._layerUrl=function(t,e){var n,i,r=t;switch(e){case a:n=(n=(i=g.getToken(p._url))?new o(i,"token"):null)||((i=g.getKey(p._url))?new o(i,"key"):null);break;case s:n=(i=g.getKey(p._url))?new o(i,"key"):null;break;default:n=(i=g.getToken(p._url))?new o(i,"token"):null}return n&&(r+="&"+n.getUrlParameters()),r}(this._layerUrl,c.serverType),this._layerUrl}};return t.extend2(x,d.source.TileImage),x.prototype.setTileSetsInfo=function(t){this.tileSets=t,_Util.Util.isArray(this.tileSets)&&(this.tileSets=t[0]),this.tileSets&&(this.dispatchEvent({type:"tilesetsinfoloaded",value:{tileVersions:this.tileSets.tileVersions}}),this.changeTilesVersion())},x.prototype.lastTilesVersion=function(){this.tempIndex=this.tileSetsIndex-1,this.changeTilesVersion()},x.prototype.nextTilesVersion=function(){this.tempIndex=this.tileSetsIndex+1,this.changeTilesVersion()},x.prototype.changeTilesVersion=function(){var t=this;if(null!=t.tileSets&&!(t.tempIndex===t.tileSetsIndex||this.tempIndex<0)){var e=t.tileSets.tileVersions;if(e&&t.tempIndex<e.length&&0<=t.tempIndex){var n=e[t.tempIndex].name;t.mergeTileVersionParam(n)&&(t.tileSetsIndex=t.tempIndex,t.dispatchEvent({type:"tileversionschanged",value:{tileVersion:e[t.tempIndex]}}))}}},x.prototype.updateCurrentTileSetsIndex=function(t){this.tempIndex=t},x.prototype.mergeTileVersionParam=function(t){return!!t&&(this.requestParams.tileversion=t,this._paramsChanged=!0,this.refresh(),!0)},x.optionsFromMapJSON=function(t,l){var e={};e.url=t,e.crossOrigin="anonymous";var u=[l.bounds.left,l.bounds.bottom,l.bounds.right,l.bounds.top],n=function(){var t,e=u[2]-u[0],n=u[3]-u[1],i=n<=e?e:n;t=i==e?i/l.viewer.width:i/l.viewer.height;var r=[],o=y;l.coordUnit===_iclientCommon.Unit.DEGREE&&(o=m);if(l.visibleScalesEnabled&&l.visibleScales&&0<l.visibleScales.length)for(var a=0;a<l.visibleScales.length;a++)r.push(_Util.Util.scaleToResolution(l.visibleScales[a],96,o));else for(var s=0;s<17;s++)r.push(t/Math.pow(2,s));return r.sort(function(t,e){return e-t})}();return e.tileGrid=new d.tilegrid.TileGrid({extent:u,resolutions:n}),e},x.createTileGrid=function(t,e,n,i,r){var o=d.tilegrid.createXYZ({extent:t,maxZoom:e,minZoom:n,tileSize:i});return new d.tilegrid.TileGrid({extent:t,minZoom:n,origin:r,resolutions:o.getResolutions(),tileSize:o.getTileSize()})},i.exports=x}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(9),n(161),n(43),n,e,t],void 0===(r=function(a,e,n,t,i,r){function o(t){t=t||{},this._creator=t.sourceCreator||new e}return o.prototype.createTileLayer=function(t){switch(t.tileType){case n.XYZ:return function(t){return new a.layer.Tile({source:this._creator.createFromXYZ(t),tileUrlFunction:t.tileUrlFunction})}.call(this,t);case n.WMS:return function(t){t.version=t.version||"1.1.0";var e=this._creator.createFromWMS(t);return new a.layer.Tile({source:e})}.call(this,t);case n.WMTS:return function(t){var e=this._creator.createFromWMTS(t);return new a.layer.Tile({source:e})}.call(this,t);case n.BingMaps:return function(t){var e=this._creator.createFromBingMaps(t);return new a.layer.Tile({preload:1/0,source:e})}.call(this,t);case n.BaiduMap:return function(t){var e=this._creator.createFromBaiduMap(t);return new a.layer.Tile({source:e})}.call(this,t);case n.GaodeMap:return function(t){return new a.layer.Tile({source:this._creator.createFromGaodeMap(t)})}.call(this,t);case n.Tianditu:return function(t){for(var e=[],n=t.urls,i=0;i<n.length;++i){var r=n[i],o=new a.layer.Tile({source:this._creator.createTianditu({url:r})});e.push(o)}return new a.layer.Group({crossOrigin:t.crossOrigin,layers:e})}.call(this,t);case n.OpenStreetMap:return function(t){return new a.layer.Tile({source:new a.source.OSM({url:t.url,crossOrigin:t.crossOrigin})})}.call(this,t);case n.ArcGisRest:return function(t){return new a.layer.Tile({extent:t.extent,source:this._creator.createFromArcGISRest(t)})}.call(this,t);case n.SuperMapRest:return function(t){return new a.layer.Tile({extent:t.extent,source:this._creator.createFromSuperMapRest(t)})}.call(this,t);case n.Google:return function(t){return new a.layer.Tile({source:this._creator.createFromGoogle(t)})}.call(this,t);case n.TencentMap:return function(t){return new a.layer.Tile({source:this._creator.createFromTencentMap(t)})}.call(this,t);default:return new a.layer.Tile({extent:t.extent})}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(64),n(10),n(122),n(17),n(73),n(30),n(268),n(166),n(275),n(168),n(170),n(276),n(277),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,l,o,p,u,f,d,y,m,g,a,s,h,c){function v(t){var e=t||{};i.call(this,e)}return t.extend2(v,i),n(v.prototype,{visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}}}),v.prototype.update=function(t,e){this.isExist(t)&&(e?this.updateSymbol.update(t):this.updateElement.update(t))},v.prototype.add=function(t){t&&t instanceof o&&v.prototype.uber.add.call(this,t)},v.prototype.findIndex=function(t){var e=t;t instanceof r?e=t.parent:t instanceof o&&(e=t);for(var n=0,i=this.elements.length;n<i;++n)if(this.elements[n]===e||e.id===this.elements[n].id)return n;return-1},v.prototype.getLayerType=function(){return a.CanvasLayer},v.prototype.isExist=function(t){return!!this.lookup(t)},v.prototype.lookup=function(t){for(var e=this._layer.getSource().getFeatures(),n=0,i=e.length;n<i;++n){var r=e[n];if(r.Element===t||t.id&&r.Element.id&&t.id===r.Element.id)return r}return null},v.prototype.getAttributeList=function(t){for(var e=[],n=[],i=[],r=0;r<this.getCount();++r)for(var o=this.get(r),a=0,s=o.attributeSet.attributes.length;a<s;++a)for(var l=o.attributeSet.attributes[a].dic,u=0,h=t.dics.length;u<h;u++)if(t.dics[u].code==l)if(0<i.length){for(var c=0,p=(e=i).length;c<p;++c)n.push(e[c].code);n.indexOf(l)<0&&i.push(t.dics[u])}else i.push(t.dics[u]);return i},v.prototype.attributeStatics=function(t,e){for(var n=new u({ways:e,code:t.code,broweName:t.alias}),i=0,r=t.items.length;i<r;++i){var o=t.items[i],a=new y({name:o.name,alias:o.alias,type:o.code}),s=new f({field:a,value:t.code});n.add(s)}return new p({elementLayer:this}).stat(n)},v.prototype.getPlotTypeList=function(t){for(var e=[],n=0,i=this.getCount();n<i;++n)for(var r=this.get(n),o=[],a=[],s=0;s<t.PlotType.length;++s)if(0<=t.PlotType[s].dic.indexOf(r.kind))if(0<(o=e).length){for(var l=0;l<o.length;++l)a.push(o[l].type);a.indexOf(t.PlotType[s].type)<0&&e.push(t.PlotType[s])}else e.push(t.PlotType[s]);return e},v.prototype.getPlotTypeDic=function(t){for(var e=[],n=0;n<this.getCount();++n){var i=this.get(n),r={kind:i.kind,attributeSet:new l};if(0<=t.dic.indexOf(i.kind)){for(var o=0;o<i.attributeSet.attributes.length;o++){var a=i.attributeSet.attributes[o];(0<=a.type.indexOf("int")||0<=a.type.indexOf("double"))&&""==a.ref&&r.attributeSet.add(i.attributeSet.attributes[o])}if(0<e.length)for(var s=0;s<e.length;++s){0==e.filter(function(t){return t.kind===r.kind}).length&&e.push(r)}else e.push(r)}}return e},v.prototype.typeStatics=function(t,e,n,i){if(0!=i&&0<e.length){for(var r=new d({ways:i,group:n.type,broweName:n.type}),o=0;o<e.length;++o)for(var a=e[o].attributeSet.attributes,s=0;s<a.length;++s)if(1==a[s].checkbox){var l=new y({name:a[s].name,alias:a[s].alias}),u=new f({field:l,value:a[s].value}),h=new m({kind:e[o].kind});0<r.kindItems.length&&r.contains(h)?r.kindItems[o].statItems.push(u):(h.add(u),r.add(h))}var c=new g;for(o=0;o<t.PlotType.length;++o)c.add(t.PlotType[o]);return new p({kindGroup:c,elementLayer:this}).stat(r)}},c.exports=v}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(17),n(30),n(164),n,e,t],void 0===(r=function(e,n,i,t,r,o){function a(t){this.canvas=t.canvas,this.hightLightElement=new i(t)}return a.prototype.selectEdit=function(t){t.accept(this)},a.prototype.visit=function(t){t instanceof e?this.visitElement(t):t instanceof n&&this.visitPlotElement(t)},a.prototype.visitElement=function(t){var e=this.canvas.lookup(t);e&&(e.selected=!0,this.hightLight(e))},a.prototype.visitPlotElement=function(t){this.visitElement(t)},a.prototype.hightLight=function(t){t.selected&&t.Element&&this.hightLightElement.highLight(t)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(17),n(30),n(38),n,e,t],void 0===(r=function(e,n,i,t,r,o){function a(t){this.canvas=t.canvas,this.symbolconvertor=t.symbolConvertor,this._hashMap=t.hashMap}return a.prototype.unSelect=function(t){t instanceof e?this.unSelectElement(t):(t instanceof n||t instanceof i)&&this.unSelectElements(t)},a.prototype.unSelectElement=function(t){var e=this.canvas.lookup(t);null!=e&&null!=t&&(e.selected=!1,e.setStyle(this.symbolconvertor.toSymbol(t.symbol)),this.clearSelect(e))},a.prototype.unSelectElements=function(t){var e=this.canvas.lookup(t);e&&(e.selected=!1,delete e.selected,this.clearSelect(e))},a.prototype.clearSelect=function(t){var e=t.HighLight;if(e){for(var n=this.canvas.getLayer().getSource(),i=0,r=e.length;i<r;++i){var o=e[i];n.removeFeature(o),this._hashMap.remove(o.Element),delete o.Element,o.dispose()}t.hasOwnProperty("HighLight")&&delete t.HighLight,e.length=0}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(269),n(166),n(168),n(270),n(271),n(272),n(273),n(274),n(170),n(123),n,e,t],void 0===(r=function(t,n,e,i,r,s,o,a,l,u,h,c,p,f){function d(t,e){return t&e}function y(t){var e=t||{};n.call(this,e),this.kindGroup=e.kindGroup,this.elementLayer=e.elementLayer}return t.extend2(y,n),y.prototype.stat=function(t){return t instanceof e?this.groupStat(t):t instanceof i?this.kindStat(t):void 0},y.prototype.groupStat=function(t){var e=this.extractGroupElements(t);return{stat:function(t,e){for(var n=this.createOutput(t),i=0;i<t.getCount();++i){var r=t.getItem(i),o=this.extract(e,t.code,r),a=this.statElement(t.ways,r.field.type,o,r);n.add(a)}return n},statElement:function(t,e,n,i){var r=new l,o=i.field;return r.add(o.alias),d(t,h.Sum)&&r.add(this.sum(n,e,i)),d(t,h.Avg)&&r.add(this.avg(n,e,i)),d(t,h.Count)&&r.add(this.count(n)),r},extract:function(t,e,n){n.field;for(var i=0;i<t.length;++i){var r=t[i],o=r.attributeSet.findByDic(e);null!=o&&o.value==n.value&&t.push(r)}return t},count:function(t){return t.length},sum:function(t,e,n){for(var i=0,r=0;r<t.length;++r){var o=t[r].attributeSet,a=o.findByDic(e);if(null!=a){var s=o.find(a.ref);null!=s&&(i+=parseFloat(s.value))}}return i},avg:function(t,e,n){for(var i=0,r=0,o=0;o<t.length;++o){var a=t[o].attributeSet,s=a.findByDic(e);null!=s&&null!=a.find(s.ref)&&(i+=s.value,r++)}return i/r},createOutput:function(t){var e=[],n=t.ways;return e.push(new u({name:t.broweName,alias:t.broweName})),d(n,h.Sum)&&e.push(new u({name:"sum",alias:"合计"})),d(n,h.Avg)&&e.push(new u({name:"avg",alias:"平均值"})),d(n,h.Count)&&e.push(new u({name:"count",alias:"总数"})),new r({fields:e})}}.stat(t,e)},y.prototype.kindStat=function(t){var e=this.extractKindElements(t);return{stat:function(t,e){t.ways;for(var n=new s,i=0;i<t.getCount();++i){var r=t.getItem(i),o=this.extract(r.kind,e),a=this.statRow(t.ways,o,r);n.add(a)}return n},statRow:function(t,e,n){for(var i=new a({kind:n.kind}),r=0;r<n.getCount();r++){var o=n.getItem(r).field;d(t,h.Sum)&&i.add(this.statCell(h.Sum,e,o)),d(t,h.Avg)&&i.add(this.statCell(h.Avg,e,o)),d(t,h.Count)&&i.add(this.statCell(h.Count,e,o))}return i},statCell:function(t,e,n){var i=this.statValue(t,e,n);return new o({way:t,value:i,field:n})},statValue:function(t,e,n){switch(t){case h.Sum:return this.sum(e,n);case h.Avg:return this.avg(e,n);case h.Count:return this.count(e)}return 0},count:function(t){return t.length},sum:function(t,e){for(var n=0,i=0;i<t.length;++i){var r=t[i].attributeSet.find(e.name);n+=parseFloat(r.value)}return n},avg:function(t,e){for(var n=0,i=t.length,r=0;r<t.length;++r){var o=t[r].attributeSet.find(e.name);n+=parseFloat(o.value)}return n/i},extract:function(t,e){for(var n=[],i=0;i<e.length;++i){var r=e[i];r.kind==t&&n.push(r)}return n}}.stat(t,e)},y.prototype.extractKindElements=function(t){for(var e=[],n=this.kindGroup.find(t.group),i=0;i<this.elementLayer.getCount();++i){var r=this.elementLayer.get(i);this.kindGroup.contains(n,r.kind)&&e.push(r)}return e},y.prototype.extractGroupElements=function(t){for(var e=[],n=t.code,i=0;i<this.elementLayer.getCount();++i){var r=this.elementLayer.get(i);r.attributeSet.containsDic(n)&&e.push(r)}return e},f.exports=y}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.stat=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(169),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.fields=e.fields,this.rows=[]}return t.extend2(o,n),o.prototype.add=function(t){this.rows.push(t)},o.prototype.remove=function(t){var e=this.rows.indexOf(t);this.rows.splice(e,1)},o.prototype.getCount=function(){return this.rows.length},o.prototype.getItem=function(t){return this.rows[t]},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(169),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.rows=[]}return t.extend2(o,n),o.prototype.add=function(t){this.rows.push(t)},o.prototype.remove=function(t){var e=this.rows.indexOf(t);this.rows.splice(e,1)},o.prototype.getCount=function(){return this.rows.length},o.prototype.getItem=function(t){return this.rows[t]},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.way=e.way,this.field=e.field,this.value=e.value}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.kind=e.kind,this.cells=[]}return i.prototype.add=function(t){this.cells.push(t)},i.prototype.remove=function(t){var e=this.cells.indexOf(t);this.cells.splice(e,1)},i.prototype.getCount=function(){return this.cells.length},i.prototype.getItem=function(t){return this.cells[t]},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.values=[]}return i.prototype.add=function(t){this.values.push(t)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(123),n,e,t],void 0===(r=function(t,e,n,i){function r(t){var e=t||{};this.field=e.field,this.value=e.value}return i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.kind=e.kind,this.statItems=[]}return i.prototype.add=function(t){this.statItems.push(t)},i.prototype.remove=function(t){var e=this.statItems.indexOf(t);this.statItems.splice(e,1)},i.prototype.getCount=function(){return this.statItems.length},i.prototype.getItem=function(t){return this.statItems[t]},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.kinds=[]}return i.prototype.add=function(t){this.kinds.push(t)},i.prototype.remove=function(t){var e=this.kinds.indexOf(t);this.kinds.splice(e,1)},i.prototype.getCount=function(){return this.kinds.length},i.prototype.getItem=function(t){return this.kinds[t]},i.prototype.find=function(t){for(var e=0;e<this.kinds.length;++e){var n=this.kinds[e];if(n.type==t)return n}return null},i.prototype.contains=function(t,e){for(var n=0;n<t.dic.length;++n){if(t.dic[n]==e)return!0}return!1},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.toGML=function(t){},i.prototype.fromGML=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(280),n(35),n(50),n(127),n(75),n(117),n(33),n(61),n(25),n(9),n,e,t],void 0===(r=function(t,e,f,d,n,s,y,i,m,g,u,r,o,a){function l(){e.call(this),this.olGeometryConvertor=new i,v=this}var v;return l.prototype.toFeatures=function(t){for(var e=[],n=t.getCount(),i=0;i<n;i++){var r=v.toFeature(t.getFeature(i));e.push(r)}return e},l.prototype.toFeature=function(t){for(var e=new u.Feature,n=v.olGeometryConvertor.toGeometry(t.geometry),i=t.objectId,r={},o=t.getFields(),a=o.getCount(),s=0;s<a;s++){var l=o.getField(s).name;r[l]=t.getValue(l)}return e.setGeometry(n),e.setProperties(r),e.setId(i),e},l.prototype.fromFeatures=function(t){var e=t.length,n=null;if(0<e){n=new f;var i=(p=t[0]).getProperties(),r=p.getGeometry(),o=p.getGeometryName(),a=function(t){if(!t)return null;switch(t.getType()){case"Point":return g.Point;case"MultiPoint":return g.MultiPoint;case"LineString":return g.LineString;case"MultiLineString":return g.MultiLineString;case"LinearRing":return g.LinearRing;case"Polygon":return g.Polygon;case"MultiPolygon":return g.MultiPolygon;case"Circle":return g.Circle;case"GeometryCollection":return g.GeometryCollection;default:return g.GeometryBegin}}(r),s=p.getId();for(var l in s&&n.add(new d({name:"id",dataType:m.String})),i){var u;u=l===o?a:m.String,n.add(new d({name:l,dataType:u}))}}for(var h=new y({fields:n}),c=0;c<e;c++){var p=v.fromFeature(t[c],n);h.add(p)}return h},l.prototype.fromFeature=function(t,e){var n=new s({fields:e}),i=v.olGeometryConvertor.fromGeometry(t.getGeometry()),r=t.getId();r&&n.setValue("id",r);var o=t.getProperties();for(var a in o)n.setValue(a,o[a]);return n.setGeometry(i),n},a.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.toFeature=function(){},i.prototype.toFeatures=function(){},i.prototype.fromFeature=function(t){},i.prototype.fromFeatures=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.addClassCollection=function(t){for(var e in t){var n=t[e];for(var i in n){var r=n[i];if("function"==typeof r)try{var o=new r({});if(!0===o.hasOwnProperty("$type"))this[o.$type.split(",")[0].trim()]=r}catch(t){}}}},i.addClass=function(t,e){this[t]=e},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(125),n(62),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.symbolConvertor=new i,this.offset=[0,-32]}return t.extend2(a,n),a.prototype.getOffset=function(){return this.offset},a.prototype.render=function(o,t,a){var s=this.symbolConvertor,l={};for(var e in t)l[e]=[s.toSymbol(t[e])];this._layer.setStyle(function(t,e){var n=t.Feature;if(a){var i=a(n);return[s.toSymbol(i)]}var r=n.getValue(o);return r in l||(r="default"),l[r]})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(124),n(10),n(11),n(9),n,e,t],void 0===(r=function(t,e,n,i,y,r,o,a){function s(t){y.source.Cluster.call(this,t)}t.olInherits(s,y.source.Cluster),s.prototype.cluster=function(){if(void 0!==this.resolution){this.features.length=0;for(var t=2*(this.distance*this.resolution),e=this.source.getFeatures(),n={},i=0,r=e.length;i<r;i++){var o=e[i],a=this.geometryFunction(o);if(a){var s=a.getCoordinates(),l=Math.floor(s[0]/t),u=Math.floor(s[1]/t),h=l+"-"+u,c=n[h];c?c.features.push(o):((c=n[h]={}).features=[o],c.i=l,c.j=u,c.x=(l+.5)*t,c.y=(u+.5)*t)}}for(var p in n){var f=n[p];if(0<f.features.length){var d=new y.Feature(new y.geom.Point([f.x,f.y]));d.set("features",f.features),this.features.push(d)}}}};function l(t){t=t||{},this.minWeight=t.minWeight||0,this.maxWeight=t.maxWeight||100,this.distance=t.distance||40,this.shadowColor=t.shadowColor||[255,250,50,1],this.shadowBlur=void 0===t.shadowBlur?20:t.shadowBlur,this.gradient=t.gradient||{.25:[0,0,255,1],.55:[0,255,0,1],.85:[255,255,0,1],1:[255,0,0,1]},e.call(this,t),this.clusterSource=new s({source:this.source,wrapX:void 0!==t.wrapX&&t.wrapX,distance:t.distance||40}),this.currentClusterSource=this.clusterSource,this._layer.setSource(this.clusterSource)}return t.extend2(l,e),n(l.prototype,{clusterLevel:{get:function(){return this._clusterLevel},set:function(t){this._clusterLevel!=t&&(this._clusterLevel=t)}},visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}}}),l.prototype.getLayerType=function(){return i.HoneyCombLayer},l.prototype.setLayerStyle=function(t,e,n,i,r,o){t=t||this.clusterSource.getDistance()||40,this.clusterSource.setDistance(t);var a=this,s=new y.style.Fill({color:r||a.textFillColor}),l=new y.style.Stroke({color:"rgba(0, 0, 0, 0.6)",width:3}),u={},h=document.createElement("canvas"),c=h.getContext("2d");c.fillStyle="rgba(255, 255, 255, 1)",c.shadowColor="rgba({0}, {1}, {2}, {3})".replace("{0}",this.shadowColor[0]).replace("{1}",this.shadowColor[1]).replace("{2}",this.shadowColor[2]).replace("{3}",this.shadowColor[3]),c.shadowBlur=this.shadowBlur;var p=2*this.distance,f=2*this.distance;a=this;this._layer.setStyle(function(t,e){var n=t.get("features").length;if(1<=n){var i=u[n];return i||(i=[new y.style.Style({image:new y.style.Icon({anchor:[a.distance,a.distance],size:[p,f],opacity:1,anchorXUnits:"pixels",anchorYUnits:"pixels",rotation:0,src:(c.beginPath(),c.rect(0,0,p,f),c.fillStyle="rgba(255,0,255,0.2)",c.fill(),h.toDataURL()),scale:1}),text:new y.style.Text({text:n.toString(),fill:s,stroke:l,font:o+"px sans-serif"})})],u[n]=i),i}})},a.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(241),n(9),n(33),n(10),n,e,t],void 0===(r=function(t,r,o,a,e,n,i,s){function l(t){var e=t||{};r.call(this,e),this.geometryConvertor=new a,this.source=new o.source.Vector({wrapX:void 0!==e.wrapX&&e.wrapX}),this.map=null;var n=e.weightFunction,i="weight";n&&n instanceof Function&&(i=function(t){return n(t.Heat)}),this._layer=new o.layer.Heatmap({gradient:e.gradient,source:this.source,blur:e.blur,radius:e.radius,weight:i}),this._visible=null==e.visible||e.visible,this._opacity=null==e.opacity?1:e.opacity,this._zIndex=null==e.zIndex?0:e.zIndex,this._heats=[],this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex)}function u(t,e,n){return t.map.getView().getResolutionForZoom(e)/(n/256)}function h(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=n/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}return t.extend2(l,r),e(l.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}}}),l.prototype.clear=function(t){var e=null!=t&&t;try{var n=this._layer.getSource(),i=n.getFeatures();n.clear(e);for(var r=0,o=i.length;r<o;++r){var a=i[r];a.Heat=null,delete a.Heat,a.dispose()}i.length=0,this._heats.length=0}catch(t){console.error(t)}},l.prototype.getLayer=function(){return this._layer},l.prototype.setVisible=function(t){l.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},l.prototype.setOpacity=function(t){l.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},l.prototype.setZIndex=function(t){l.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},l.prototype.add=function(t){var e=new o.Feature({geometry:this.geometryConvertor.toGeometry(t.geometry),weight:t.weight});this._heats.push(t),e.Heat=t,this.source.addFeature(e)},l.prototype.addHeats=function(t){for(var e=[],n=t.length,i=0;i<n;i++){var r=new o.Feature({geometry:this.geometryConvertor.toGeometry(t[i].geometry),weight:t[i].weight});r.Heat=t[i],e.push(r)}this.source.addFeatures(e)},l.prototype.remove=function(t){var e=this.lookup(t);e&&this.source.removeFeature(e);var n=this._heats.indexOf(t);0<=n&&this._heats.splice(n,1)},l.prototype.update=function(t){var e=this.lookup(t);e&&e.set("weight",t.weight)},l.prototype.get=function(t){return this.source.getFeatures()[t].Heat},l.prototype.getCount=function(){return this.source.getFeatures().length},l.prototype.getBlur=function(){return this._layer.getBlur()},l.prototype.setBlur=function(t){this._layer.setBlur(t)},l.prototype.getRadius=function(){return this._layer.getRadius()},l.prototype.setRadius=function(t){this._layer.setRadius(t)},l.prototype.setGradient=function(t){this._layer.setGradient(t)},l.prototype.getGradient=function(){return this._layer.getGradient()},l.prototype.lookup=function(t){for(var e=this._layer.getSource().getFeatures(),n=0,i=e.length;n<i;++n){var r=e[n];if(r.Heat===t)return r}return null},l.prototype.setMinZoom=function(t){if(this.map){var e=u(this.map,t,256);this._layer.setMaxResolution(e+.001)}},l.prototype.setMaxZoom=function(t){if(this._maxZoom=t,this.map){var e=u(this.map,t,256);this._layer.setMinResolution(e)}},l.prototype.getMinZoom=function(){return h(this.map,this._layer.getMaxResolution()-.001,256)},l.prototype.getMaxZoom=function(){return h(this.map,this._layer.getMinResolution(),256)},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(124),n(10),n(11),n(9),n,e,t],void 0===(r=function(t,e,n,i,M,r,o,a){function s(t){M.source.Cluster.call(this,t)}t.olInherits(s,M.source.Cluster),s.prototype.cluster=function(){if(void 0!==this.resolution){this.features.length=0;for(var t=this.distance*this.resolution,e=t*Math.sqrt(3),n=1.5*t,i=this.source.getFeatures(),r={},o=0,a=0,s=0,l=i.length;s<l;s++){var u=i[s],h=this.geometryFunction(u);if(h){var c=h.getCoordinates(),p=(c[1]-a)/n,f=Math.round(p),d=(c[0]-o)/e-(1&f?.5:0),y=Math.round(d),m=p-f;if(1<3*Math.abs(m)){var g=d-y,v=y+(d<y?-1:1)/2,x=f+(p<f?-1:1),_=d-v,w=p-x;_*_+w*w<g*g+m*m&&(y=v+(1&f?1:-1)/2,f=x)}var b=y+"-"+f,P=r[b];P?P.features.push(u):((P=r[b]={}).features=[u],P.i=y,P.j=f,P.x=(y+(1&f?.5:0))*e,P.y=f*n)}}for(key in r){var S=r[key];if(0<S.features.length){var C=new M.Feature(new M.geom.Point([S.x,S.y]));C.set("features",S.features),this.features.push(C)}}}};function l(t){t=t||{},this.minWeight=t.minWeight||0,this.maxWeight=t.maxWeight||100,this.distance=t.distance||40,this.shadowColor=t.shadowColor||[255,250,50,1],this.shadowBlur=void 0===t.shadowBlur?20:t.shadowBlur,this.gradient=t.gradient||{.25:[0,0,255,1],.55:[0,255,0,1],.85:[255,255,0,1],1:[255,0,0,1]},e.call(this,t),this.clusterSource=new s({source:this.source,wrapX:void 0!==t.wrapX&&t.wrapX,distance:t.distance||40}),this.currentClusterSource=this.clusterSource,this._layer.setSource(this.clusterSource)}return t.extend2(l,e),n(l.prototype,{clusterLevel:{get:function(){return this._clusterLevel},set:function(t){this._clusterLevel!=t&&(this._clusterLevel=t)}},visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}}}),l.prototype.getLayerType=function(){return i.HoneyCombLayer},l.prototype.setLayerStyle=function(t,e,n,i,r,o){var a=this,s=new M.style.Fill({color:r||a.textFillColor}),l=new M.style.Stroke({color:"rgba(0, 0, 0, 0.6)",width:3}),u={},h=document.createElement("canvas"),c=this.distance*Math.sqrt(3),p=2*this.distance;h.width=c,h.height=p;var f=h.getContext("2d");f.fillStyle="rgba(255, 255, 255, 1)",f.shadowColor="rgba({0}, {1}, {2}, {3})".replace("{0}",this.shadowColor[0]).replace("{1}",this.shadowColor[1]).replace("{2}",this.shadowColor[2]).replace("{3}",this.shadowColor[3]),f.shadowBlur=this.shadowBlur;for(var d,y,m=[],g=0;g<6;g++)m.push((void 0,d=60*g+30,y=Math.PI/180*d,[Math.cos(y),Math.sin(y)]));a=this;this._layer.setStyle(function(t,e){var n=t.get("features").length;if(1<=n){var i=u[n];return i||(i=[new M.style.Style({image:new M.style.Icon({anchor:[c/2,p/2],size:[c,p],opacity:1,anchorXUnits:"pixels",anchorYUnits:"pixels",rotation:0,src:function(){f.clearRect(0,0,c,p),f.fillStyle="rgba(255, 255, 255, 1)",f.beginPath();for(var t=.5*c,e=.5*p,n=0;n<6;++n){var i=m[n];f.lineTo(t+a.distance*i[0],e+a.distance*i[1])}return f.fillStyle="rgba(255,0,255,0.2)",f.fill(),f.closePath(),h.toDataURL()}(),scale:1}),text:new M.style.Text({text:n.toString(),fill:s,stroke:l,font:o+"px sans-serif"})})],u[n]=i),i}})},a.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(44),n(43),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).tileType=n.WMTS,e.call(this,t),this.level=t.level}return t.extend2(a,e),a.prototype._getWMTSMatrices=function(t){for(var e=[],n=t.projection||"EPSG: 4490",i=this._layer.getSource().getResolutions()[1],r=this._layer.getSource().getTileGrid().getOrigin(),o=void 0===t.matrixPrefix?"":t.matrixPrefix,a=1;a<20;++a){var s={},l=a;s.identifier=o+l.toString(),"EPSG:3857"===n?s.matrixSize=[Math.pow(2,a),Math.pow(2,a)]:"EPSG:4326"!==n&&"EPSG:4490"!==n||(s.matrixSize=[Math.pow(2,a),Math.pow(2,a-1)]),s.scaleDenominator=279541132.0143589/Math.pow(2,a-1),s.tileSize=[256,256],s.topLeftCorner=r,s.resolution=i/Math.pow(2,a-1),e.push(s)}return e},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(253),n(20),n(171),n(62),n(33),n(54),n(10),n,e,t],void 0===(r=function(t,i,a,e,r,o,s,n,l,u,h){function c(t){var e=t||{};i.call(this,e);var n=new r;this.map=e.map?e.map:null,this.geometryConvertor=new o,this.source=new ol.source.Vector,this.symbol=n.toSymbol(e.symbol),this.selectSymbol=n.toSymbol(e.selectSymbol),this._layer=new ol.layer.Vector({source:this.source,style:this.symbol}),this._visible=null==e.visible||e.visible,this._opacity=null==e.opacity?1:e.opacity,this._zIndex=null==e.zIndex?0:e.zIndex,this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex)}function p(t,e,n){return t.map.getView().getResolutionForZoom(e)/(n/256)}function f(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=n/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}return t.extend2(c,i),n(c.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}}}),c.prototype.getLayer=function(){return this._layer},c.prototype.add=function(t){var e=new ol.Feature({geometry:this.geometryConvertor.toGeometry(t)});e.Vector=t,this.source.addFeature(e)},c.prototype.remove=function(t){var e=this.lookup(t);e&&this.source.removeFeature(e)},c.prototype.update=function(t){var e=this.lookup(t);e&&(e.geometry=this.geometryConvertor.toGeometry(t))},c.prototype.getCount=function(){return this.source.getFeatures().length},c.prototype.get=function(t){return this.source.getFeatures()[t].Geometry},c.prototype.clear=function(){this.source.clear()},c.prototype.select=function(t){if(t){var e=t.geometry;if(e){var n=this.lookup(e);n&&n.setStyle(this.selectSymbol)}}},c.prototype.unSelect=function(t){if(t){var e=t.geometry;if(e){var n=this.lookup(e);n&&n.setStyle(this.symbol)}}},c.prototype.selectEdit=function(t){t&&this.select(t)},c.prototype.unSelectEdit=function(t){t&&this.unSelect(t)},c.prototype.setVisible=function(t){c.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},c.prototype.setOpacity=function(t){c.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},c.prototype.setZIndex=function(t){c.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},c.prototype.hitTest=function(t,e){var n=[],i=this._layer;return this.map.map.forEachFeatureAtPixel([t,screenY],function(t){n.push(t)},{layerFilter:function(t){return i==t}}),0<n.length?new a({geometry:n[0].Vector}):null},c.prototype.hitTestList=function(t,e){var n=[],i=new s,r=this._layer;this.map.map.forEachFeatureAtPixel([t,e],function(t){n.push(t)},{layerFilter:function(t){return r==t}});for(var o=0;o<n.length;o++)i.add(new a({geometry:n[o].Vector}));return i},c.prototype.lookup=function(t){for(var e=this._layer.getSource().getFeatures(),n=0,i=e.length;n<i;++n){var r=e[n];if(r.Vector===t)return r}return null},c.prototype.setMinZoom=function(t){if(this._minZoom=t,this.map){var e=p(this.map,t,256);this._layer.setMaxResolution(e+.001)}},c.prototype.setMaxZoom=function(t){if(this._maxZoom=t,this.map){var e=p(this.map,t,256);this._layer.setMinResolution(e)}},c.prototype.getMinZoom=function(){return f(this.map,this._layer.getMaxResolution()-.001,256)},c.prototype.getMaxZoom=function(){return f(this.map,this._layer.getMinResolution(),256)},h.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(250),n(44),n(9),n(43),n(10),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l){function u(t){t=t||{},e.call(this,t),n.call(this,t)}return t.extend2(u,n),l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(56),n(0),n(252),n(9),n(43),n(10),n(23),n,e,t],void 0===(r=function(s,t,n,l,e,i,r,o,a,u){function h(t){t=t||{},n.call(this,t);var e=function(){var t={},p={forEachPoint:function(s){return function(t,e,n){var i,r=t.length,o=n||2;i=e||(2!==o?t.slice():new Array(r));for(var a=0;a<r;a+=o)s(t,i,a);return i}},convertor:function(t,e,n,i){var r=t[n],o=t[n+1],a=i[0]+i[1]*Math.abs(r),s=Math.abs(o)/i[9],l=i[2]+i[3]*s+i[4]*s*s+i[5]*s*s*s+i[6]*s*s*s*s+i[7]*s*s*s*s*s+i[8]*s*s*s*s*s*s;e[n]=a*(r<0?-1:1),e[n+1]=l*(o<0?-1:1)},delta:function(t,e){var n,i,r,o,a,s,l=.006693421622965943,u=(r=2*(n=t-105)-100+3*(i=e-35)+.2*i*i+.1*n*i+.2*Math.sqrt(Math.abs(n)),r+=2*(20*Math.sin(6*n*Math.PI)+20*Math.sin(2*n*Math.PI))/3,r+=2*(20*Math.sin(i*Math.PI)+40*Math.sin(i/3*Math.PI))/3,r+=2*(160*Math.sin(i/12*Math.PI)+320*Math.sin(i*Math.PI/30))/3),h=(s=300+(o=t-105)+2*(a=e-35)+.1*o*o+.1*o*a+.1*Math.sqrt(Math.abs(o)),s+=2*(20*Math.sin(6*o*Math.PI)+20*Math.sin(2*o*Math.PI))/3,s+=2*(20*Math.sin(o*Math.PI)+40*Math.sin(o/3*Math.PI))/3,s+=2*(150*Math.sin(o/12*Math.PI)+300*Math.sin(o/30*Math.PI))/3),c=e/180*Math.PI,p=Math.sin(c);p=1-l*p*p;var f=Math.sqrt(p);return u=180*u/(6378245*(1-l)/(p*f)*Math.PI),[h=180*h/(6378245/f*Math.cos(c)*Math.PI),u]},outOfChina:function(t,e){return t<72.004||137.8347<t||(e<.8293||55.8271<e)}},o={RADIUS:6378137,MAX_LATITUDE:85.0511287798,RAD_PER_DEG:Math.PI/180};o.forward=p.forEachPoint(function(t,e,n){var i=Math.max(Math.min(o.MAX_LATITUDE,t[n+1]),-o.MAX_LATITUDE),r=Math.sin(i*o.RAD_PER_DEG);e[n]=o.RADIUS*t[n]*o.RAD_PER_DEG,e[n+1]=o.RADIUS*Math.log((1+r)/(1-r))/2}),o.inverse=p.forEachPoint(function(t,e,n){e[n]=t[n]/o.RADIUS/o.RAD_PER_DEG,e[n+1]=(2*Math.atan(Math.exp(t[n+1]/o.RADIUS))-Math.PI/2)/o.RAD_PER_DEG});var r={};r.forward=p.forEachPoint(function(t,e,n){var i,r,o,a,s=function(t,e,n){var i=n-e;for(;n<t;)t-=i;for(;t<e;)t+=i;return t}(t[n],-180,180),l=(i=t[n+1],r=-74,o=74,i=Math.max(i,r),i=Math.min(i,o)),u=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],h=[75,60,45,30,15,0],c=null;for(a=0;a<h.length;++a)if(h[a]<=l){c=u[a];break}if(null===c)for(a=h.length-1;0<=a;--a)if(l<=-h[a]){c=u[a];break}e[n]=s,e[n+1]=l,p.convertor(e,e,n,c)}),r.inverse=p.forEachPoint(function(t,e,n){for(var i=Math.abs(t[n+1]),r=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],o=null,a=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],s=0;s<a.length;s++)if(a[s]<=i){o=r[s];break}p.convertor(t,e,n,o)});var a={};a.toWGS84=p.forEachPoint(function(t,e,n){var i=t[n],r=t[n+1];if(!p.outOfChina(i,r)){var o=p.delta(i,r);i-=o[0],r-=o[1]}e[n]=i,e[n+1]=r}),a.fromWGS84=p.forEachPoint(function(t,e,n){var i=t[n],r=t[n+1];if(!p.outOfChina(i,r)){var o=p.delta(i,r);i+=o[0],r+=o[1]}e[n]=i,e[n+1]=r});var s={};s.toWGS84=function(t,e,n){var s=3e3*Math.PI/180;var i=p.forEachPoint(function(t,e,n){var i=t[n]-.0065,r=t[n+1]-.006,o=Math.sqrt(i*i+r*r)-2e-5*Math.sin(r*s),a=Math.atan2(r,i)-3e-6*Math.cos(i*s);return e[n]=o*Math.cos(a),e[n+1]=o*Math.sin(a),e})(t,e,n);return a.toWGS84(i,i,n)},s.fromWGS84=function(t,e,n){var s=3e3*Math.PI/180,i=a.fromWGS84(t,e,n);return p.forEachPoint(function(t,e,n){var i=t[n],r=t[n+1],o=Math.sqrt(i*i+r*r)+2e-5*Math.sin(r*s),a=Math.atan2(r,i)+3e-6*Math.cos(i*s);return e[n]=o*Math.cos(a)+.0065,e[n+1]=o*Math.sin(a)+.006,e})(i,i,n)},t.smerc2bmerc=function(t,e,n){var i=o.inverse(t,e,n);return i=s.fromWGS84(i,i,n),r.forward(i,i,n)},t.bmerc2smerc=function(t,e,n){var i=r.inverse(t,e,n);return i=s.toWGS84(i,i,n),o.forward(i,i,n)},t.bmerc2ll=function(t,e,n){var i=r.inverse(t,e,n);return s.toWGS84(i,i,n)},t.ll2bmerc=function(t,e,n){var i=s.fromWGS84(t,e,n);return r.forward(i,i,n)},t.ll2smerc=o.forward,t.smerc2ll=o.inverse;var e=new l.proj.Projection({code:"baidu",extent:l.extent.applyTransform([72.004,.8293,137.8347,55.8271],t.ll2bmerc),units:"m"});return l.proj.addProjection(e),l.proj.addCoordinateTransforms("EPSG:4490",e,t.ll2bmerc,t.bmerc2ll),l.proj.addCoordinateTransforms("EPSG:4326",e,t.ll2bmerc,t.bmerc2ll),l.proj.addCoordinateTransforms("EPSG:3857",e,t.smerc2bmerc,t.bmerc2smerc),t}();t.projzh=e,this.clientId=t.clientId,this.clientSecret=t.clientSecret,t.restHttp||(this._restHttp=new r({client_id:t.clientId,client_secret:t.clientSecret}),t.restHttp=this._restHttp),this.source=function(o){var t=o.extent||[72.004,.8293,137.8347,55.8271];if(!o.resolutions){for(var e=new Array(19),n=0;n<19;++n)e[n]=Math.pow(2,18-n);o.resolutions=e}o.origin=o.origin||[0,0],o.extent=l.extent.applyTransform(t,o.projzh.ll2bmerc);var i=o.tileSize||[256,256],r=void 0===o.crossOrigin?"anonymous":o.crossOrigin,a=o.scaler?o.scaler:1;o.tileUrlFunction||(o.tileUrlFunction=function(t){var e=t[1],n=-t[2]-1,i=t[0],r=(new Date).getTime();return o.url+"?time="+r+"&level="+i+"&x="+e+"&y="+n+"&scaler="+a});return new l.source.XYZ({url:o.url,wrapX:void 0!==o.wrapX&&o.wrapX,crossOrigin:r,tileSize:i,projection:o.projection||"baidu",tileGrid:new l.tilegrid.TileGrid({origin:o.origin,resolutions:o.resolutions,tileSize:i,extent:o.extent}),tileUrlFunction:o.tileUrlFunction,tileLoadFunction:o.tileLoadFunction?o.tileLoadFunction:function(t,e){!function(t,i,e){t&&t._token?t.get(e,"arraybuffer",void 0,void 0).then(function(t){var e=new Uint8Array(t),n="data:image/png;base64,"+s.decode(e);i.src=n}):i.src=e}(o.restHttp,t.getImage(),e)}})}(t),this._layer=new l.layer.Tile({source:this.source}),this.map=t.map,"number"==typeof t.maxZoom&&t.maxZoom==t.maxZoom&&this.setMaxZoom(t.maxZoom),"number"==typeof t.minZoom&&t.minZoom==t.minZoom&&this.setMinZoom(t.minZoom),this._visible=null==t.visible||t.visible,this._opacity=null==t.opacity?1:t.opacity,this._zIndex=null==t.zIndex?0:t.zIndex,this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex)}function c(t,e,n){return t.map.getView().getResolutionForZoom(e)/((n=n||256)/256)}function p(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=(n=n||256)/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}return t.extend2(h,n),i(h.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){var t=this._layer.getMaxResolution();return p(this.map,t,this._layer.tileSize)},set:function(t){var e=c(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e)}},maxZoom:{get:function(){var t=this._layer.getMaxResolution();return p(this.map,t,this._layer.tileSize)},set:function(t){var e=c(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}}}),h.prototype.getLayer=function(){return this._layer},h.prototype.setZIndex=function(t){h.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},h.prototype.setVisible=function(t){h.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},h.prototype.setOpacity=function(t){h.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},h.prototype.on=function(t,e){"visible"===t||"opacity"===t?h.prototype.uber.on.call(this,t,e):this.map.on(t,e)},h.prototype.un=function(t,e){"visible"===t||"opacity"===t?h.prototype.uber.un.call(this,t,e):this.map.un(t,e)},h.prototype.setMinZoom=function(t){if(this._minZoom=t,this.map){this._minZoom=t;var e=c(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e+.001)}},h.prototype.setMaxZoom=function(t){if(this._maxZoom=t,this.map){this._maxZoom=t;var e=c(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}},h.prototype.getMinZoom=function(){var t=this._layer.getMaxResolution();return p(this.map,t-.001,this._layer.tileSize)},h.prototype.getMaxZoom=function(){var t=this._layer.getMinResolution();return p(this.map,t,this._layer.tileSize)},h.prototype.format=function(){},u.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(38),n(64),n(10),n(122),n(17),n(73),n(30),n(11),n(20),n(37),n,e,t],void 0===(r=function(i,x,_,t,n,e,r,o,a,s,l,u,h,c){function p(t){var e=t||{};n.call(this,e),this.leadLabels=[],this.resolutionchangedEvent=function(t,e,n){this.mapResolution=t;for(var i=0;i<this.leadLabels.length;++i){var r=this.leadLabels[i];this.update(r)}}.bind(this),this.mapResolution=0,this.leadLabelHash=new l,this.hashMap=new l}function w(t,e,n){var i={};i.idName=t.id;var r=t.geometry;return _.toGeoJSON(i,r,e,n)}function b(t,e){var n=t.symbol,i={type:"text"};i.fontColor=n.foreground.toHexExcludeAlpha(),i.fontFamily=n.fontFamilyName,i.fontSize=parseInt(n.fontSize/1.3*e)+"px",i.fontWeight=n.fontWeight,i.haloColor=n.borderColor.toHexExcludeAlpha(),i.haloRadius=Number(n.borderThickness/2.6*e)||0,i.haloOpacity=n.borderColor.a/255,i.label=n.text,i.fillColor=n.textBackgroundColor.toHexExcludeAlpha(),i.fillOpacity=n.textBackgroundColor.a/255,i.labelAnchorPointX=.5,i.labelAnchorPointY=.5,i.labelRotation=n.rotation,i.labelXOffset=0,i.labelYOffset=0;var r={},o=[];return o.push(i),r.symbolizers=o,r}return i.extend2(p,n),t(p.prototype,{visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}}}),p.prototype.init=function(){p.prototype.uber.init.call(this),this.map&&(this.mapResolution=this.map.getResolution(),this.map.on("resolutionchanged",this.resolutionchangedEvent))},p.prototype.unInit=function(){this.map&&this.map.un("resolutionchanged",this.resolutionchangedEvent),p.prototype.uber.unInit.call(this)},p.prototype.add=function(t){if(t&&!(0<=this.leadLabels.indexOf(t))){this.leadLabels.push(t);var e=t.format(this.mapResolution);this.leadLabelHash.put(t,e),this.hashMap.put(e,t),p.prototype.uber.add.call(this,e)}},p.prototype.remove=function(t){var e=this.leadLabels.indexOf(t);if(0<=e){this.leadLabels.splice(e,1);var n=this.leadLabelHash.get(t);this.leadLabelHash.remove(t),this.hashMap.remove(n),p.prototype.uber.remove.call(this,n)}},p.prototype.update=function(t){if(t){var e=this.leadLabelHash.get(t);t.update(this.mapResolution,e),p.prototype.uber.update.call(this,e),p.prototype.uber.update.call(this,e,!0)}},p.prototype.clear=function(t){for(var e=0;e<this.leadLabels.length;++e){var n=this.leadLabels[e];i.destroyObject(n)}this.leadLabels.length=0,this.leadLabelHash.clear(),this.hashMap.clear(),p.prototype.uber.clear.call(this,t)},p.prototype.getLayerType=function(){return a.LeadLabelLayer},p.prototype.formatLayer=function(t,e,n,i,r){var o={},a={},s=[],l={};a.type="FeatureCollection",l.version="2";for(var u=0;u<this.elements.length;++u){var h,c,p=this.elements[u];if(p instanceof x){var f=p.getCount();if(0<f)for(var d=0;d<f;++d){var y="[idName = '"+p.getItem(d).id+"']",m=p.getItem(d).symbol;if(m.hasOwnProperty("$type")){var g=m.$type.split(",")[0].trim();"TextSymbol"===g?(h=p.getItem(d),l[y]=b.call(this,p.getItem(d),r)):(s.push(w(p.getItem(d),n,i)),l[y]=_.toGeoStyle(m,r)),"SimpleFillSymbol"===g&&(c=p.getItem(d).geometry.getBaryCenter())}}if(h&&c){var v=h.copy();v.id=h.id,v.geometry.x=c.x,v.geometry.y=c.y,s.push(w(v,n,i))}}}return a.features=s,o.type="geojson",o.style=l,o.geoJson=a,o.renderAsSvg=!0,o},p.prototype.enableFormat=function(){return!1!==this.visible&&0!==this.opacity&&0!==this.elements.length},c.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(151),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.map=t.map,this.blankService=t.blankService}return t.extend2(o,e),o.prototype.do=function(t){var e=this,n=this.map.getZoomLevel();n%1==0&&t<n&&this.blankService.contains(this.map.getExtent()).then(function(t){t?18<=n?e.map.setMaxZoom(18):e.map.setMaxZoom(n+1):(16<n&&e.map.zoomTo(16),e.map.setMaxZoom(n))},function(t){throw console.error(t),t})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(293),n(16),n(12),n,e,t],void 0===(r=function(t,e,n,r,i,o,a){function s(t){t=t||{},e.call(this,t),n.call(this,t),this.url=t.url,this.http=t.http}return t.extend2(s,e),t.extend2(s,n),s.prototype.contains=function(t){var e=new r,n="{url}".replace("{url}",this.url),i={type:1,leftX:t.minx,leftY:t.miny,rightX:t.maxx,rightY:t.maxy};return this._postRequest(n,e.getUrlTemplate(i),"json","application/x-www-form-urlencoded").then(function(t){return 0==t.status&&t.intersect},function(t){throw console.error(t),t})},s.prototype.intersects=function(t){var e=new r,n="{url}".replace("{url}",this.url),i={type:2,leftX:t.minx,leftY:t.miny,rightX:t.maxx,rightY:t.maxy};return this._postRequest(n,e.getUrlTemplate(i),"json","application/x-www-form-urlencoded").then(function(t){return 0==t.status&&t.intersect},function(t){throw console.error(t),t})},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.contains=function(t){},i.prototype.intersects=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this.layers=[],this.tool=null,this.cursor=null,this.events=function(){var t={click:[],mousemove:[],mouseout:[],mouseover:[],mousedown:[],mouseup:[],drag:[],dblclick:[],extentchanged:[],resize:[],resolutionchanged:[],postrender:[],prerender:[],precompose:[],postcompose:[],wheel:[],position3d:[],addlayer:[],removelayer:[],keydown:[],keyup:[]};return t}()}return i.prototype.init=function(t){},i.prototype.addLayer=function(t){this.layers.push(t),this.onAddLayer(t)},i.prototype.getExtent=function(){},i.prototype.removeLayer=function(t){var e=this.layers.indexOf(t);0<=e&&(this.layers.splice(e,1),this.onRemoveLayer(t))},i.prototype.setCursor=function(t){},i.prototype.getViewSize=function(){},i.prototype.setViewSize=function(t,e){},i.prototype.getLayerCount=function(){return this.layers.length},i.prototype.getLayer=function(t){return this.layers[t]},i.prototype.getLayers=function(){return this.layers},i.prototype.getZoomLevel=function(){},i.prototype.getResolution=function(){},i.prototype.setResolution=function(t){},i.prototype.getOrigin=function(){},i.prototype.findLayer=function(t){for(var e=0;e<this.layers.length;++e){var n=this.layers[e];if(n.name==t||n.id==t)return n}return null},i.prototype.moveLayer=function(t,e){},i.prototype.on=function(t,e){t in this.events&&this.events[t].push(e)},i.prototype.un=function(t,e){if(t in this.events)for(var n=this.events[t],i=0,r=n.length;i<r;++i){n[i]===e&&(n.splice(i,1),i--,r--)}},i.prototype.fullExtent=function(){},i.prototype.zoomOut=function(){},i.prototype.zoomIn=function(){},i.prototype.zoomTo=function(t){},i.prototype.setMaxZoom=function(t){},i.prototype.getMaxZoom=function(){},i.prototype.setMinZoom=function(t){},i.prototype.getMinZoom=function(){},i.prototype.pan=function(t,e){},i.prototype.rotate=function(t){},i.prototype.setCenter=function(t){},i.prototype.getPixelFromCoordinate=function(t){},i.prototype.getCoordinateFromPixel=function(t){},i.prototype.export=function(t){},i.prototype.dragPan=function(){},i.prototype.exportPDF=function(t){},i.prototype.stopDragPan=function(){},i.prototype.resumeDragPan=function(){},i.prototype.stopDbClick=function(){},i.prototype.resumeDbClick=function(){},i.prototype.stopMouseWheelZoom=function(){},i.prototype.resumeMouseWheelZoom=function(){},i.prototype.addControl=function(t){},i.prototype.currentTool=function(t){this.tool!=t&&(null!=this.tool&&this.tool.deactivate(),this.tool=t,null!=this.tool&&(this.cursor=this.tool.cursor))},i.prototype.onMouseClick=function(t,e,n,i,r,o,a){this.tool&&this.tool.onMouseClick(t,e,n,i,r,o,a);for(var s=0;s<this.events.click.length;++s){(0,this.events.click[s])(t,e,n,i,r,o,a)}},i.prototype.onMouseOver=function(t){null!=this.tool&&this.tool.onMouseOver(t)},i.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.tool&&this.tool.onMouseDown(t,e,n,i,r,o,a);for(var s=0;s<this.events.mousedown.length;++s){(0,this.events.mousedown[s])(t,e,n,i,r,o,a)}},i.prototype.onMouseUp=function(t,e,n,i,r,o,a){this.tool&&this.tool.onMouseUp(t,e,n,i,r,o,a);for(var s=0;s<this.events.mouseup.length;++s){(0,this.events.mouseup[s])(t,e,n,i,r,o,a)}},i.prototype.onMouseMove=function(t,e,n,i,r,o,a){this.tool&&this.tool.onMouseMove(t,e,n,i,r,o,a);for(var s=0;s<this.events.mousemove.length;++s){(0,this.events.mousemove[s])(t,e,n,i,r,o,a)}},i.prototype.onKeyDown=function(t,e){this.tool&&this.tool.onKeyDown(t,e);for(var n=0;n<this.events.keydown.length;++n){(0,this.events.keydown[n])(t,e)}},i.prototype.onKeyUp=function(t,e){this.tool&&this.tool.onKeyUp(t,e);for(var n=0;n<this.events.keyup.length;++n){(0,this.events.keyup[n])(t,e)}},i.prototype.onDrag=function(t,e,n,i){for(var r=0;r<this.events.drag.length;++r){(0,this.events.drag[r])(t,e,n,i)}},i.prototype.onExtentChanged=function(t,e,n,i){for(var r=0;r<this.events.extentchanged.length;++r){(0,this.events.extentchanged[r])(t,e,n,i)}},i.prototype.onDblclick=function(t,e,n,i,r,o,a){this.tool&&this.tool.onDblclick(t,e,n,i,r,o,a);for(var s=0;s<this.events.dblclick.length;++s){(0,this.events.dblclick[s])(t,e,n,i,r,o,a)}},i.prototype.getMapControl=function(){},i.prototype.onResolutionChanged=function(t,e,n){for(var i=0;i<this.events.resolutionchanged.length;++i){(0,this.events.resolutionchanged[i])(t,e,n)}},i.prototype.onResize=function(t,e){for(var n=0;n<this.events.resize.length;++n){(0,this.events.resize[n])(t,e)}},i.prototype.onPostRender=function(t){for(var e=0;e<this.events.postrender.length;++e){(0,this.events.postrender[e])(t)}},i.prototype.onPreCompose=function(t){for(var e=0;e<this.events.precompose.length;++e){(0,this.events.precompose[e])(t)}},i.prototype.onPostCompose=function(t){for(var e=0;e<this.events.postcompose.length;++e){(0,this.events.postcompose[e])(t)}},i.prototype.onWheel=function(t){for(var e=0;e<this.events.wheel.length;++e){(0,this.events.wheel[e])(t)}},i.prototype.onAddLayer=function(t){for(var e=0;e<this.events.addlayer.length;++e){(0,this.events.addlayer[e])(t)}},i.prototype.onRemoveLayer=function(t){for(var e=0;e<this.events.removelayer.length;++e){(0,this.events.removelayer[e])(t)}},i.prototype.removeInteractions=function(){},i.prototype.resumeInteractions=function(){},i.prototype.setClusterScatter=function(t){},i.prototype.getSrid=function(){},i.prototype.globalToken=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(66),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.projection=t.projection,this.layers=t.layers,this.format=t.format,this.extent=t.extent,this.tiled=t.tiled,this.transition=t.transition||0,this.styles=t.styles||""}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.TileWMS},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(66),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.projection=t.projection,this.layers=t.layers,this.format=t.format,this.style=t.style,this.matrix=t.matrix,this.matrixIds=t.matrixIds,this.matrixSet=t.matrixSet,this.matrixPrefix=t.matrixPrefix,this.origin=t.origin,this.resolutions=t.resolutions,this.tileSize=t.tileSize,this.extent=t.extent}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.WMTS},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(79),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.projection=t.projection,this.layers=t.layers,this.format=t.format,this.matrix=t.matrix,this.matrixIds=t.matrixIds,this.matrixSet=t.matrixSet,this.matrixPrefix=t.matrixPrefix,this.origin=t.origin,this.resolutions=t.resolutions,this.tileSize=t.tileSize}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.VectorTile},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(80),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.url=t.url,this.requestVertexNormals=t.requestVertexNormals,this.requestWaterMask=t.requestWaterMask}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.Terrain},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(130),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.token=t.token,this.name=t.name,this.url=t.url,this.filter=t.filter,this.client_id=t.client_id,this.client_secret=t.client_secret}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.WBMS},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(130),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.token=t.token,this.url=t.url,this.name=t.name,this.filter=t.filter}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.WFS},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(66),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.projection=t.projection,this.layers=t.layers,this.format=t.format,this.extent=t.extent,this.tiled=void 0!==t.tiled&&t.tiled,this.transition=t.transition||0,this.catalog=t.catalog,this.styles=t.styles||""}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.WDMS},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(79),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.capability=t.capability}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.WPMS},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(131),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){}return t.extend2(o,e),o.prototype.findByName=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(131),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){}return t.extend2(o,e),o.prototype.findEntityStyle=function(){},o.prototype.findBySymbolName=function(t){},o.prototype.findStyleSummaries=function(){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.clear=function(){},i.prototype.remove=function(t){},i.prototype.show=function(t,e){},i.prototype.add=function(t,e){},i.prototype.update=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(26),n(36),n(8),n(1),n(3),n(2),n(307),n(180),n,e,t],void 0===(r=function(t,e,_,o,w,b,P,S,C,n,i,r){function a(t){(t=t||{}).cursor=t.cursor||"pointer",e.call(this,t),this.drawLayer=t.drawLayer,this.map=null,this.currentElement=null,this.mousedownFlag=!1}function M(t){var e;switch(t.getGeometryType()){case o.Polygon:e=t.getShell().points;break;case o.Polyline:e=t.paths[0].points;break;case o.Point:e=[t]}for(var n=e[0],i=e[0],r=1;r<e.length;r++)e[r].x<n.x&&(n=e[r]),e[r].y<i.y&&(i=e[r]);return[n,i]}return t.extend2(a,e),a.prototype.deactivate=function(){a.prototype.uber.deactivate.call(this),this.stopEdit()},a.prototype.onCreate=function(t){a.prototype.uber.onCreate(t),this.map=t.map},a.prototype.onClick=function(t){a.prototype.uber.onClick.call(this,t)},a.prototype.onMouseDown=function(t,e,n,i,r,o,a){var s=this.drawLayer.hitTest(n,i);if(s){var l=this.editType(s);switch(this.currentElement=s.layer.elements.filter(function(t){return t.find(s.element.id)})[0],l){case"close":this.drawLayer.remove(this.currentElement);break;case"drag":this.mousedownFlag=!0,this.map.stopDragPan()}}else this.stopEdit()},a.prototype.onMouseUp=function(t,e,n,i,r,o,a,s){this.mousedownFlag=!1,this.map.stopDragPan(),this.map.resumeDragPan(),this.map.setCursor("hand"),this.currentElement=null},a.prototype.onMouseMove=function(t,e,n,i,r,o,a){this.mousedownFlag&&this.currentElement&&(this.handleMove(r,o),this.drawLayer.update(this.currentElement),this.drawLayer.update(this.currentElement,!0),this.onDrawingEdit(this.currentElement))},a.prototype.handleMove=function(t,e){var n,i,r,o,a,s;this.currentElement.elements.forEach(function(t){switch(t.kind){case"origin":n=t;break;case"buffer":i=t;break;case"label":r=t;break;case"axis":o=t;break;case"drag":a=t;break;case"close":s=t}}),this.currentElement.elements=[],this.currentElement.add(n);var l=n.tag.bottomPoint,u=l.spatialReference,h=new b({spatialReference:u}),c=new P({spatialReference:u});c.addPoint(l),c.addPoint(new w({x:t,y:e,spatialReference:u})),h.addGeometry(c);var p=new _,f=new S({projectService:p}).length(h),d=new C({projectService:p}).buffer(n.geometry,f),y=M(d)[0],m=M(d)[1];if(i&&(i.geometry=d,this.currentElement.add(i)),r){var g=l.y-m.y,v=r.tag.position,x=m.copy();switch(v){case"top":x.y+=g;break;case"right":x.x+=g;break;case"bottom":x.y-=g;break;case"left":x.x-=g}r.geometry=x,r.symbol.text=""+f,this.currentElement.add(r)}o&&(o.geometry.paths[0].points[1]=m,this.currentElement.add(o)),a.geometry=m,this.currentElement.add(a),s&&(s.geometry=y,this.currentElement.add(s))},a.prototype.beginEdit=function(t){},a.prototype.stopEdit=function(){this.map.stopDragPan(),this.map.resumeDragPan(),this.onEndDraw(this.selectElement),this.currentElement=null,this.mousedownFlag=!1},a.prototype.editType=function(t){return t.element.kind},a.prototype.onDrawingEdit=function(t){},a.prototype.onEndDraw=function(t){},r.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(308),n(8),n(49),n,e,t],void 0===(r=function(t,n,i,p,e,r,o){var f=Math.PI/180;function a(t){for(var e=0,n=t.getPointCount(),i=t.startPoint().x,r=t.startPoint().y,o=0;o<n;o++){var a=t.getPoint(o).x,s=t.getPoint(o).y;e+=(a-i)*f*(2+Math.sin(r*f)+Math.sin(s*f)),i=a,r=s}return 6371008.8*e*6371008.8/2}function s(t){n.call(this,t);var e=t||{};this.projectService=e.projectService}var l={calcPolygon:function(t){var e,n=t.getGeometryCount();e=Math.abs(a(t.getGeometry(0)));for(var i=1;i<n;++i)e-=Math.abs(l.calcRing(t.getGeometry(i)));return e},calcEnvelope:function(t){return Math.abs(t.maxx-t.minx)*Math.abs(t.maxy-t.miny)},calcCircle:function(t){return Math.PI*Math.pow(t.radius,2)},calcEllipse:function(t){return Math.PI*t.axisX*t.axisY},calcSquare:function(t){return Math.pow(t.side,2)},calcRing:function(t){return Math.abs(a(t))},calcMultiPolygon:function(t){for(var e=0,n=0,i=t.getGeometryCount();n<i;++n)e+=l.calcPolygon(t.getGeometry(n));return e}},u={calcGeometry:function(t,e){for(var n=e.transform(t,p.EPSG4326),i=0,r=n.getGeometryCount(),o=0;o<r;++o)i+=u.calcPath(n.getGeometry(o));return i},calcEnvelope:function(t){return 2*(Math.abs(t.maxx-t.minx)+Math.abs(t.maxy-t.miny))},calcCircle:function(t){return Math.PI*t.radius*2},calcEllipse:function(t){var e=[axisX=t.axisX,t.axisY],n=Math.max(e[0],e[1]),i=Math.min(e[0],e[1]);return 2*Math.PI*i+4*(n-i)},calcSquare:function(t){return 4*t.side},calcLineString:function(t,e){for(var n,i,r=e.transform(t,p.EPSG4326),o=0,a=0,s=r.numPoints()-1;a<s;++a){n=r.pointN(a),i=r.pointN(a+1);var l=n.y*f,u=i.y*f,h=l-u,c=(n.x-i.x)*f;o+=2*Math.asin(Math.sqrt(Math.pow(Math.sin(h/2),2)+Math.cos(l)*Math.cos(u)*Math.pow(Math.sin(c/2),2)))}return o=6378.137*o*1e3},calcPath:function(t){for(var e,n,i=0,r=0,o=t.getPointCount()-1;r<o;++r){e=t.getPoint(r),n=t.getPoint(r+1);var a=e.y*f,s=n.y*f,l=a-s,u=(e.x-n.x)*f;i+=2*Math.asin(Math.sqrt(Math.pow(Math.sin(l/2),2)+Math.cos(a)*Math.cos(s)*Math.pow(Math.sin(u/2),2)))}return i=6378.137*i*1e3},calcMultiPolygon:function(t,e){for(var n=0,i=0,r=t.getGeometryCount();i<r;++i)n+=u.calcGeometry(t.getGeometry(i),e);return n}};return t.extend2(s,n),s.prototype.area=function(t){var e=this.projectService.transform(t,p.EPSG4326);switch(t.getGeometryType()){case i.Polyline:case i.Point:return 0;case i.Polygon:return l.calcPolygon(e);case i.MultiPolygon:return l.calcMultiPolygon(e);case i.Circle:return l.calcCircle(e);case i.Ellipse:return l.calcEllipse(e);case i.Envelope:return l.calcEnvelope(e);case i.Square:return l.calcSquare(e);default:return 0}},s.prototype.length=function(t){var e=this.projectService.transform(t,p.EPSG3857);switch(t.getGeometryType()){case i.Polyline:case i.Polygon:return u.calcGeometry(e,this.projectService);case i.LineString:return u.calcLineString(e,this.projectService);case i.MultiPolygon:return u.calcMultiPolygon(e,this.projectService);case i.Point:return 0;case i.Circle:return u.calcCircle(e);case i.Ellipse:return u.calcEllipse(e);case i.Envelope:return u.calcEnvelope(e);case i.Square:return u.calcSquare(e);default:return 0}},s.prototype.position=function(t){return t},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.area=function(t,e,n){},i.prototype.length=function(t,e,n){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i=function(t){};return(i=function(){}).prototype.boundary=function(t){},i.prototype.buffer=function(t,e){},i.prototype.simplify=function(t,e){},i.prototype.convexHull=function(t){},i.prototype.difference=function(t,e){},i.prototype.intersect=function(t,e){},i.prototype.union=function(t,e){},i.prototype.symmetricDifference=function(t,e){},i.prototype.clip=function(t,e){},i.prototype.cut=function(t,e){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(76),n(27),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){this.$type="EntitySet,http://www.Gs.com",t&&(this.fields=t.fields,this.entities=t.entities)}return o.prototype.add=function(t){this.entities.push(t)},o.prototype.addAll=function(t){Array.isArray(t)&&(this.entities=this.entities.concat(t))},o.prototype.remove=function(t){var e=this.entities.indexOf(t);-1!==e&&this.entities.splice(e,1)},o.prototype.size=function(){return this.entities.length},o.prototype.get=function(t){return this.entities[t]},o.prototype.isEmpty=function(){return 0==this.size()},o.prototype.clear=function(){this.entities=[]},o.prototype.reset=function(){var e=this;this.entities.forEach(function(t){t.fields=e.fields})},o.prototype.unReset=function(){this.entities.forEach(function(t){t.fields=null})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.features=t.features||{},this.$type="FeatureCollection,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.subFields=t.subFields||"*",this.where=t.where||"",this.geometry=t.geometry||null,this.spatialRelType=t.spatialRelType||0,this.$type="GQueryFilter,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.feature=t.feature,this.business=t.business,this.$type="ResourceEntity,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.srid=t.srid,this.extent=t.extent,this.createTime=t.createTime}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.count=t.count,this.layers=t.layers}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.queryByGeometry=function(t,e){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.count=t.count,this.models=t.models}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.getTypes=function(){},o.prototype.getValue=function(t,e){},o.prototype.list=function(t,e){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.geometry=function(t){return t.asWkt()}(t.geometry),this.mode=void 0===t.mode?2:t.mode,this.distance=t.distance,this.capStyle=void 0===t.capStyle?1:t.capStyle}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(185),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.features=t.features}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.getCapabilities=function(t){},o.prototype.bufferAnalysis=function(t){},o.prototype.simplyBuffer=function(t){},o.prototype.topoOperationAnalysis=function(t){},o.prototype.topoRelationAnalysis=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.geometry=t.geometry,this.distance=t.distance}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.flag=t.flag}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(1),n(2),n(3),n(6),n(48),n(29),n(5),n(24),n(59),n(8),n(74),n(58),n,e,t],void 0===(r=function(p,t,e,n,f,d,y,m,g,i,v,x,r,o,a){function _(){}function w(t,e){return new p({x:t[0],y:t[1],spatialReference:e})}function b(t,e){for(var n=new d({spatialReference:e}),i=0,r=t.length;i<r;++i){var o=t[i];n.addPoint(w(o,e))}return n}function P(t,e){for(var n=new y({spatialReference:e}),i=0,r=t.length;i<r;++i)n.addGeometry(s(t[i],e));return n}function s(t,e){for(var n=new f({spatialReference:e}),i=0,r=t.length;i<r;++i){var o=t[i];n.addPoint(w(o,e))}return n}function u(t,e){var n=/\([^\(\)]*\)/g,i=S(t).match(n);if(0<i.length){var r=new y({spatialReference:e});n=/\s*-?\d+[.]?\d*\s+-?\d+[.]?\d*\s*/g;for(var o=0,a=i.length;o<a;++o){var s=i[o].match(n),l=new f;r.addGeometry(l);for(var u=0,h=s.length;u<h;++u){var c=s[u].split(" ");l.addPoint(new p({x:parseFloat(c[0]),y:parseFloat(c[1]),spatialReference:e}))}}return r}}function S(t){return t.replace(/\s*,\s*/g,",")}return _.createGeometryFromGeoJson=function(t,e){if(null==t||""==t)return null;var n=t.type,i=t.coordinates;switch(n){case"Point":return w(i,e);case"LineString":return b(i,e);case"Polygon":return P(i,e);case"MultiPoint":return function(t,e){for(var n=new v({spatialReference:e}),i=0,r=t.length;i<r;i++){var o=t[i];n.addPoint(w(o,e))}return n}(i,e);case"MultiLineString":for(var r=new g({spatialReference:e}),o=0,a=i.length;o<a;++o)r.addGeometry(b(i[o],e));return r;case"MultiPolygon":var s=new m({spatialReference:e});for(o=0,a=i.length;o<a;++o){var l=P(i[o],e);s.addGeometry(l)}return s;case"GeometryCollection":var u=t.geometries,h=new x({spatialReference:e});for(o=0,a=u.length;o<a;o++){var c=this.createGeometryFromGeoJson(u[o],e);h.addGeometry(c)}return h}},_.createGeometryFromWkt=function(t,e){return t?0===t.indexOf("multipoint")||0===t.indexOf("multipoint".toUpperCase())?function(t,e){var n=S(t).match(/\s*-?\d+[.]?\d*\s+-?\d+[.]?\d*\s*/g);if(0<n.length){for(var i=new v({spatialReference:e}),r=0,o=n.length;r<o;r++){var a=n[r].split(" ");i.addPoint(new p({x:parseFloat(a[0]),y:parseFloat(a[1]),spatialReference:e}))}return i}}(t,e):0===t.indexOf("multilinestring")||0===t.indexOf("multilinestring".toUpperCase())?function(t,e){var n=/\([^\(\)]*\)/g,i=S(t).match(n);if(0<i.length){var r=new g({spatialReference:e});n=/\s*-?\d+[.]?\d*\s+-?\d+[.]?\d*\s*/g;for(var o=0,a=i.length;o<a;o++){var s=i[o].match(n),l=new d;r.addGeometry(l);for(var u=0,h=s.length;u<h;++u){var c=s[u].split(" ");l.addPoint(new p({x:parseFloat(c[0]),y:parseFloat(c[1]),spatialReference:e}))}}return r}}(t,e):0===t.indexOf("multipolygon")||0===t.indexOf("multipolygon".toUpperCase())?function(t,e){t=t.replace("(((","((").replace(")))","))");var n=-1,i=-1;n=t.indexOf("(("),i=t.indexOf("))");var r=[];for(;0<=n;)r.push(t.substr(n,i+2)),t=t.substr(i+2),n=t.indexOf("(("),i=t.indexOf("))");for(var o=new m({spatialReference:e}),a=0,s=r.length;a<s;++a){var l=u(r[a]);o.addGeometry(l)}return o}(t,e):0===t.indexOf("point")||0===t.indexOf("point".toUpperCase())?function(t,e){var n=S(t).match(/\s*-?\d+[.]?\d*\s+-?\d+[.]?\d*\s*/g);if(0<n.length){var i=n[0].split(" ");return new p({x:parseFloat(i[0]),y:parseFloat(i[1]),spatialReference:e})}}(t,e):0===t.indexOf("linestring")||0===t.indexOf("linestring".toUpperCase())?function(t,e){var n=S(t).match(/\s*-?\d+[.]?\d*\s+-?\d+[.]?\d*\s*/g);if(0<n.length){for(var i=new d({spatialReference:e}),r=0,o=n.length;r<o;++r){var a=n[r].split(" ");i.addPoint(new p({x:parseFloat(a[0]),y:parseFloat(a[1]),spatialReference:e}))}return i}}(t,e):0===t.indexOf("polygon")||0===t.indexOf("polygon".toUpperCase())?u(t,e):0===t.indexOf("geometrycollection")||0===t.indexOf("geometrycollection".toUpperCase())?function(t,e){var n=new x({spatialReference:e}),i=S(t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))),r=/,[a-zA-Z]+/g,o=i.match(r),a=i.split(r),s=[];s.push(a[0]);for(var l=0;l<o.length;l++){var u=o[l].split(/,/)[1];u+=a[l+1],s.push(u)}var h=s.length;if(0<h){for(l=0;l<h;l++)if(0<s[l].length){var c=_.createGeometryFromWkt(s[l],e);n.addGeometry(c)}return n}}(t,e):void 0:null},a.exports=_}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.transform=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e){var n={ONMEMBERJOINED:0,ONMEMBERLEAVED:1,ONENDMEETING:2,ONADDMESSAGE:16,ONUPDATEMESSAGE:17,ONREMOVEMESSAGE:18,UNKNOWN:255};return t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(){}return n.prototype.onConnected=function(){},n.prototype.onDisconnected=function(){},t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(t){}return n.prototype.create=function(t,e,n,i){},n.prototype.join=function(t,e){},n.prototype.unReadCount=function(){},n.prototype.queryUnRead=function(t,e){},n.prototype.leave=function(){},n.prototype.close=function(){},n.prototype.add=function(t){},n.prototype.update=function(t){},n.prototype.remove=function(t){},n.prototype.exist=function(t,e){},n.prototype.list=function(t){},n.prototype.query=function(t,e,n,i,r){},n.prototype.download=function(t,e){},n.prototype.on=function(t,e){},n.prototype.un=function(t,e){},t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(){}return n.ONMEMBERJOINED="ONMEMBERJOINED",n.ONMEMBERLEAVED="ONMEMBERLEAVED",n.ONENDMEETING="ONENDMEETING",n.ONADDMESSAGE="ONADDMESSAGE",n.ONUPDATEMESSAGE="ONUPDATEMESSAGE",n.ONREMOVEMESSAGE="ONREMOVEMESSAGE",n.ONCONNECTED="ONCONNECTED",n.ONDISCONNECTED="ONDISCONNECTED",t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(){}return n.prototype.onMemberJoined=function(t){},n.prototype.onMemberLeaved=function(t){},n.prototype.onEnd=function(){},n.prototype.onAdd=function(t,e){},n.prototype.onUpdate=function(t,e){},n.prototype.onRemove=function(t,e){},t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(t){}return n.prototype.create=function(t,e,n,i,r){},n.prototype.join=function(t,e,n){},n.prototype.unReadCount=function(t){},n.prototype.queryUnRead=function(t,e,n){},n.prototype.leave=function(t){},n.prototype.close=function(t){},n.prototype.query=function(t,e,n,i,r){},n.prototype.download=function(t,e){},n.prototype.add=function(t,e){},n.prototype.update=function(t,e){},n.prototype.remove=function(t,e){},n.prototype.exist=function(t,e){},n.prototype.list=function(t){},t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(186),t,e],void 0===(r=function(t,e,n,i){function r(t){t=t||{},e.call(this,t),this.element=t.element,this.$type="PlotMessage,http://www.Gs.com"}return t.extend2(r,e),r.prototype.getType=function(){return"PlotMessage"},r.prototype.replace=function(t){r.prototype.uber.replace.call(this,t),t.element&&this.element.replace(t.element)},r.prototype.unset=function(){this.element&&this.element.unReset()},r.prototype.reset=function(){this.element&&this.element.reset()},n.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(332),n(16),n(12),t,e],void 0===(r=function(t,n,i,r,e,o){function a(t){n.call(this,t),i.call(this,t);var e=t||{};this.serviceFix="wcps",this.url=e.url,this.deserializer=e.deserializer,this.serviceInput=new r,this.$type="RestWCPSService,http://www.Gs.com"}return t.extend2(a,n),t.extend2(a,i),a.prototype.create=function(t,e,n,i,r){var o={clientId:t,layer:e,meetingId:n,name:i,description:r},a=this.url+"/"+this.serviceFix+"/meeting/create?"+this.serviceInput.getUrlTemplate(o);return this._getRequestWithSerializer(a)},a.prototype.join=function(t,e,n){var i={clientId:t,layer:e,meetingId:n},r=this.url+"/"+this.serviceFix+"/meeting/join?"+this.serviceInput.getUrlTemplate(i);return this._getRequestWithSerializer(r)},a.prototype.unReadCount=function(t,e,n){var i={gid:t,meetingId:e,clientId:n},r=this.url+"/"+this.serviceFix+"/message/unReadCount?"+this.serviceInput.getUrlTemplate(i);return this._getRequest(r)},a.prototype.queryUnRead=function(t,e,n,i,r){var o={gid:t,meetingId:e,clientId:n,page:i,size:r},a=this.url+"/"+this.serviceFix+"/message/queryUnRead?"+this.serviceInput.getUrlTemplate(o);return this._getRequestWithSerializer(a)},a.prototype.leave=function(t,e,n){var i={gid:t,meetingId:e,clientId:n},r=this.url+"/"+this.serviceFix+"/meeting/leave?"+this.serviceInput.getUrlTemplate(i);return this._getRequest(r)},a.prototype.close=function(t,e,n){var i={gid:t,meetingId:e,clientId:n},r=this.url+"/"+this.serviceFix+"/meeting/close?"+this.serviceInput.getUrlTemplate(i);return this._getRequest(r)},a.prototype.query=function(t,e,n,i,r){var o={layer:t,start:e,end:n,page:i,size:r},a=this.url+"/"+this.serviceFix+"/meeting/query?"+this.serviceInput.getUrlTemplate(o),s=this;return this._getRequestWithSerializer(a).then(function(t){return t.$type="PageMeeting,http://www.Gs.com",s.deserializer.createJsInstance(t)})},a.prototype.download=function(t,e){var n={layer:t,meetingId:e},i=this.url+"/"+this.serviceFix+"/meeting/download?"+this.serviceInput.getUrlTemplate(n);return this._getRequestWithSerializer(i)},a.prototype.add=function(t,e,n,i){var r={gid:t,meetingId:e,clientId:n},o=this.url+"/"+this.serviceFix+"/message/add?"+this.serviceInput.getUrlTemplate(r);return this._postRequest(o,i)},a.prototype.update=function(t,e,n,i){var r={gid:t,meetingId:e,clientId:n},o=this.url+"/"+this.serviceFix+"/message/update?"+this.serviceInput.getUrlTemplate(r);return this._putRequest(o,i)},a.prototype.remove=function(t,e,n,i){var r={gid:t,meetingId:e,clientId:n,messageId:i},o=this.url+"/"+this.serviceFix+"/message/remove?"+this.serviceInput.getUrlTemplate(r);return this._deleteRequest(o)},a.prototype.exist=function(t,e){var n={layer:t,meetingId:e},i=this.url+"/"+this.serviceFix+"/meeting/exist?"+this.serviceInput.getUrlTemplate(n);return this._getRequest(i)},a.prototype.list=function(t){var e={layer:t},n=this.url+"/"+this.serviceFix+"/meeting/list?"+this.serviceInput.getUrlTemplate(e);return this._getRequestWithSerializer(n)},e.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.plugins=[]}return i.prototype.addSucessor=function(t){this.plugins.push(t)},i.prototype.addElement=function(t,e){if(this.plugins)for(var n=0;n<this.plugins.length;++n){var i=this.plugins[n];i.addElement&&i.addElement(t,e)}},i.prototype.removeElement=function(t,e){if(this.plugins)for(var n=0;n<this.plugins.length;++n){var i=this.plugins[n];i.removeElement&&i.removeElement(t,e)}},i.prototype.updateElement=function(t,e){if(this.plugins)for(var n=0;n<this.plugins.length;++n){var i=this.plugins[n];i.updateElement&&i.updateElement(t,e)}},i.prototype.showElement=function(t,e,n){if(this.plugins)for(var i=0;i<this.plugins.length;++i){var r=this.plugins[i];r.showElement&&r.showElement(t,e,n)}},i.prototype.clear=function(t){if(this.plugins)for(var e=0;e<this.plugins.length;++e){var n=this.plugins[e];n.clear&&n.clear(t)}},i.prototype.selectElement=function(t,e){if(this.plugins)for(var n=0;n<this.plugins.length;++n){var i=this.plugins[n];i.selectElement&&i.selectElement(t,e)}},i.prototype.unSelectElement=function(t,e){if(this.plugins)for(var n=0;n<this.plugins.length;++n){var i=this.plugins[n];i.unSelectElement&&i.unSelectElement(t,e)}},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(112),n(23),n(327),n(21),t,e],void 0===(r=function(t,n,u,h,e,i){function r(t){var e=t||{};this.url=t.url,this.callback=e.cb,this.co=e.co,this.ds=e.ds,this.clientId=e.clientId,this.clientSecret=e.clientSecret,this.tokenUrl=e.tokenUrl,this._http=new n({}),this._accessToken=null}return r.prototype.init=function(o,a,s){if(this.tokenUrl&&this.clientSecret&&this.clientSecret){var l=this;return function(e){var n=this,t=this.tokenUrl+"?client_id={client_id}&client_secret={client_secret}".replace("{client_id}",this.clientId).replace("{client_secret}",this.clientSecret);return this._http.get(t,"json").then(function(t){if(t)return n._accessToken=t.access_token,function(t,e){var n="client_id={client_id}&access_token={access_token}",i=e.clientId,r=e._accessToken;if(i&&r){var o=t.lastIndexOf("?");-1===o?t=t+"?"+n.replace("{client_id}",i).replace("{access_token}",r):o===t.length-1?t+=n.replace("{client_id}",i).replace("{access_token}",r):t=t+"&"+n.replace("{client_id}",i).replace("{access_token}",r)}return t}(e,n)})}.call(this,this.url).then(function(t){var e="",n=t.indexOf("?");n<0?e="?":n!=t.length-1&&(e="&");var i=t+e+"cid="+o+"&name="+a+"&avator="+s;l.websocket=new WebSocket(i);var r=h.defer();return l.websocket.onclose=function(t){l.co.onDisconnected(),clearInterval(l.timer),delete l.timer},l.websocket.onopen=function(t){l.co.onConnected(),r.resolve(!0),l.timer=setInterval(function(){l.heartbeat()},3e4)},l.websocket.onmessage=function(t){var e=t.data;switch((e=l.ds.create(JSON.parse(e))).action){case u.ONMEMBERJOINED:l.onMemberJoined(e.payload);break;case u.ONMEMBERLEAVED:l.onMemberLeaved(e.payload);break;case u.ONENDMEETING:l.onEnd();break;case u.ONADDMESSAGE:l.onAdd(e.payload);break;case u.ONUPDATEMESSAGE:l.onUpdate(e.payload);break;case u.ONREMOVEMESSAGE:l.onRemove(e.payload);break;case u.UNKNOWN:}},r.promise})}var t="";this.url.indexOf("?")<0&&(t="?");var e=this.url+t+"cid="+o+"&name="+a+"&avator="+s;this.websocket=new WebSocket(e);var n=this,i=h.defer();return this.websocket.onclose=function(t){n.co.onDisconnected(),clearInterval(n.timer),delete n.timer},this.websocket.onopen=function(t){n.co.onConnected(),i.resolve(!0),n.timer=setInterval(function(){n.heartbeat()},3e4)},this.websocket.onmessage=function(t){var e=t.data;switch((e=n.ds.create(JSON.parse(e))).action){case u.ONMEMBERJOINED:n.onMemberJoined(e.payload);break;case u.ONMEMBERLEAVED:n.onMemberLeaved(e.payload);break;case u.ONENDMEETING:n.onEnd();break;case u.ONADDMESSAGE:n.onAdd(e.payload);break;case u.ONUPDATEMESSAGE:n.onUpdate(e.payload);break;case u.ONREMOVEMESSAGE:n.onRemove(e.payload);break;case u.UNKNOWN:}},i.promise},r.prototype.close=function(){null!==this.websocket&&void 0!==this.websocket&&this.websocket.close()},r.prototype.heartbeat=function(){this.websocket.send("ping")},r.prototype.onMemberJoined=function(t){var e=this.ds.createJsInstance(JSON.parse(t));this.callback.onMemberJoined(e)},r.prototype.onMemberLeaved=function(t){var e=t;this.callback.onMemberLeaved(e)},r.prototype.onEnd=function(){this.callback.onEnd()},r.prototype.onAdd=function(t){var e=this.ds.createJsInstance(JSON.parse(t));e.unset(),this.callback.onAdd(e.from,e)},r.prototype.onUpdate=function(t){var e=this.ds.createJsInstance(JSON.parse(t));e.reset(),this.callback.onUpdate(e.from,e)},r.prototype.onRemove=function(t){var e=this.ds.createJsInstance(JSON.parse(t));this.callback.onRemove(e.from,e.id)},e.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(338),n(9),n,e,t],void 0===(r=function(p,i,t,e,n){function r(t){this.FEATURE_PREFIX="topp",this.XMLNS="http://www.w3.org/2000/xmlns/",this.OGCNS="http://www.opengis.net/ogc",this.WFSNS="http://www.opengis.net/wfs",this.FESNS="http://www.opengis.net/fes/2.0",this.SCHEMA_LOCATIONS={"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"},this.DEFAULT_VERSION="1.1.0",this.QUERY_SERIALIZERS={"http://www.opengis.net/wfs":{PropertyName:p.makeChildAppender(p.writeStringTextNode)}},this.GETFEATURE_SERIALIZERS={"http://www.opengis.net/wfs":{Query:p.makeChildAppender(this.writeQuery,this)},"http://www.opengis.net/fes/2.0":{During:p.makeChildAppender(this.writeDuringFilter,this),And:p.makeChildAppender(this.writeLogicalFilter,this),Or:p.makeChildAppender(this.writeLogicalFilter,this),Not:p.makeChildAppender(this.writeNotFilter,this),BBOX:p.makeChildAppender(this.writeBboxFilter,this),Contains:p.makeChildAppender(this.writeContainsFilter,this),Intersects:p.makeChildAppender(this.writeIntersectsFilter,this),Within:p.makeChildAppender(this.writeWithinFilter,this),PropertyIsEqualTo:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsNotEqualTo:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsLessThan:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsLessThanOrEqualTo:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsGreaterThan:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsGreaterThanOrEqualTo:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsNull:p.makeChildAppender(this.writeIsNullFilter,this),PropertyIsBetween:p.makeChildAppender(this.writeIsBetweenFilter,this),PropertyIsLike:p.makeChildAppender(this.writeIsLikeFilter,this)},"http://www.opengis.net/ogc":{During:p.makeChildAppender(this.writeDuringFilter,this),And:p.makeChildAppender(this.writeLogicalFilter,this),Or:p.makeChildAppender(this.writeLogicalFilter,this),Not:p.makeChildAppender(this.writeNotFilter,this),BBOX:p.makeChildAppender(this.writeBboxFilter,this),Contains:p.makeChildAppender(this.writeContainsFilter,this),Intersects:p.makeChildAppender(this.writeIntersectsFilter,this),Within:p.makeChildAppender(this.writeWithinFilter,this),PropertyIsEqualTo:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsNotEqualTo:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsLessThan:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsLessThanOrEqualTo:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsGreaterThan:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsGreaterThanOrEqualTo:p.makeChildAppender(this.writeComparisonFilter,this),PropertyIsNull:p.makeChildAppender(this.writeIsNullFilter,this),PropertyIsBetween:p.makeChildAppender(this.writeIsBetweenFilter,this),PropertyIsLike:p.makeChildAppender(this.writeIsLikeFilter,this)}},f=this}var f;return r.prototype.writeFilterCondition=function(t,e,n){var i={node:t};p.pushSerializeAndPop(i,f.GETFEATURE_SERIALIZERS,p.makeSimpleNodeFactory(e.getTagName()),[e],n)},r.prototype.writeQuery=function(t,e,n){var i,r=n[n.length-1],o=r.featurePrefix,a=r.featureNS,s=r.propertyNames,l=r.srsName;i=o?this.getTypeName(o,e):e,t.setAttribute("typeName",i),l&&t.setAttribute("srsName",l),a&&t.setAttributeNS(this.XMLNS,"xmlns:"+o,a);var u=p.assign({},r);u.node=t,p.pushSerializeAndPop(u,f.QUERY_SERIALIZERS,p.makeSimpleNodeFactory("PropertyName"),s,n);var h=r.filter;if(h){var c=p.createElementNS(this.OGCNS,"Filter");t.appendChild(c),this.writeFilterCondition(c,h,n)}},r.prototype.getTypeName=function(t,e){var n=(t=t||this.FEATURE_PREFIX)+":";return 0===e.indexOf(n)?e:n+e},r.prototype.writeBboxFilter=function(t,e,n){n[n.length-1].srsName=e.srsName,this.writeOgcPropertyName(t,e.geometryName),i.format.GML3.prototype.writeGeometryElement(t,e.extent,n)},r.prototype.writeContainsFilter=function(t,e,n){n[n.length-1].srsName=e.srsName,this.writeOgcPropertyName(t,e.geometryName),i.format.GML3.prototype.writeGeometryElement(t,e.geometry,n)},r.prototype.writeIntersectsFilter=function(t,e,n){n[n.length-1].srsName=e.srsName,this.writeOgcPropertyName(t,e.geometryName),i.format.GML3.prototype.writeGeometryElement(t,e.geometry,n)},r.prototype.writeWithinFilter=function(t,e,n){n[n.length-1].srsName=e.srsName,this.writeOgcPropertyName(t,e.geometryName),i.format.GML3.prototype.writeGeometryElement(t,e.geometry,n)},r.prototype.writeDuringFilter=function(t,e,n){var i=p.createElementNS(this.FESNS,"fes:ValueReference");p.writeStringTextNode(i,e.propertyName),t.appendChild(i);var r=p.createElementNS(this.GMLNS,"TimePeriod");t.appendChild(r);var o=p.createElementNS(this.GMLNS,"begin");r.appendChild(o),this.writeTimeInstant(o,e.begin);var a=p.createElementNS(this.GMLNS,"end");r.appendChild(a),this.writeTimeInstant(a,e.end)},r.prototype.writeTimeInstant=function(t,e){var n=p.createElementNS(this.GMLNS,"TimeInstant");t.appendChild(n);var i=p.createElementNS(this.GMLNS,"timePosition");n.appendChild(i),p.writeStringTextNode(i,e)},r.prototype.writeLogicalFilter=function(t,e,n){for(var i={node:t},r=e.conditions,o=0,a=r.length;o<a;++o){var s=r[o];p.pushSerializeAndPop(i,f.GETFEATURE_SERIALIZERS,p.makeSimpleNodeFactory(s.getTagName()),[s],n)}},r.prototype.writeNotFilter=function(t,e,n){var i={node:t},r=e.condition;p.pushSerializeAndPop(i,f.GETFEATURE_SERIALIZERS,p.makeSimpleNodeFactory(r.getTagName()),[r],n)},r.prototype.writeComparisonFilter=function(t,e,n){void 0!==e.matchCase&&t.setAttribute("matchCase",e.matchCase.toString()),this.writeOgcPropertyName(t,e.propertyName),this.writeOgcLiteral(t,""+e.expression)},r.prototype.writeIsNullFilter=function(t,e,n){this.writeOgcPropertyName(t,e.propertyName)},r.prototype.writeIsBetweenFilter=function(t,e,n){this.writeOgcPropertyName(t,e.propertyName);var i=p.createElementNS(this.OGCNS,"LowerBoundary");t.appendChild(i),this.writeOgcLiteral(i,""+e.lowerBoundary);var r=p.createElementNS(this.OGCNS,"UpperBoundary");t.appendChild(r),this.writeOgcLiteral(r,""+e.upperBoundary)},r.prototype.writeIsLikeFilter=function(t,e,n){t.setAttribute("wildCard",e.wildCard),t.setAttribute("singleChar",e.singleChar),t.setAttribute("escapeChar",e.escapeChar),void 0!==e.matchCase&&t.setAttribute("matchCase",e.matchCase.toString()),this.writeOgcPropertyName(t,e.propertyName),this.writeOgcLiteral(t,""+e.pattern)},r.prototype.writeOgcExpression=function(t,e,n){var i=p.createElementNS(this.FESNS,t);p.writeStringTextNode(i,n),e.appendChild(i)},r.prototype.writeOgcPropertyName=function(t,e){this.writeOgcExpression("fes:ValueReference",t,e)},r.prototype.writeOgcLiteral=function(t,e){this.writeOgcExpression("Literal",t,e)},r.prototype.writeFilter=function(t){var e=p.createElementNS(this.FESNS,"fes:Filter");return e.setAttributeNS(this.FESNS,"gml","http://www.opengis.net/gml/3.2"),t=t.format(),this.writeFilterCondition(e,t,[]),e},n.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.DOCUMENT=document.implementation.createDocument("","",null),i.XML_SCHEMA_INSTANCE_URI="http://www.w3.org/2001/XMLSchema-instance",i.assign="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,r=arguments.length;i<r;++i){var o=arguments[i];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n},i.createElementNS=function(t,e){return this.DOCUMENT.createElementNS(t,e)},i.getAllTextContent=function(t,e){return this.getAllTextContent_(t,e,[]).join("")},i.getAllTextContent_=function(t,e,n){var i;if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?n.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(t.nodeValue);else for(i=t.firstChild;i;i=i.nextSibling)this.getAllTextContent_(i,e,n);return n},i.isDocument=function(t){return"documentElement"in t},i.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)||""},i.parse=function(t){return(new DOMParser).parseFromString(t,"application/xml")},i.makeArrayPusher=function(i,r){return function(t,e){var n=i.call(void 0!==r?r:this,t,e);void 0!==n&&e[e.length-1].push(n)}},i.makeReplacer=function(i,r){return function(t,e){var n=i.call(void 0!==r?r:this,t,e);void 0!==n&&(e[e.length-1]=n)}},i.makeObjectPropertyPusher=function(o,a,s){return function(t,e){var n=o.call(void 0!==s?s:this,t,e);if(void 0!==n){var i=e[e.length-1],r=void 0!==a?a:t.localName;(r in i?i[r]:i[r]=[]).push(n)}}},i.makeObjectPropertySetter=function(i,r,o){return function(t,e){var n=i.call(void 0!==o?o:this,t,e);void 0!==n&&(e[e.length-1][void 0!==r?r:t.localName]=n)}},i.makeChildAppender=function(i,r){return function(t,e,n){i.call(void 0!==r?r:this,t,e,n),n[n.length-1].node.appendChild(t)}},i.makeArraySerializer=function(r,o){var a,s;return function(t,e,n){if(void 0===a){a={};var i={};i[t.localName]=r,a[t.namespaceURI]=i,s=this.makeSimpleNodeFactory(t.localName)}this.serialize(a,s,e,n,o)}},i.makeSimpleNodeFactory=function(t,a){var s=t;return function(t,e,n){var i=e[e.length-1].node,r=s;void 0===r&&(r=n);var o=void 0!==a?a:i.namespaceURI;return this.createElementNS(o,r)}},i.makeSequence=function(t,e){for(var n=e.length,i=new Array(n),r=0;r<n;++r)i[r]=t[e[r]];return i},i.makeStructureNS=function(t,e,n){var i,r,o=void 0!==n?n:{};for(i=0,r=t.length;i<r;++i)o[t[i]]=e;return o},i.parseNode=function(t,e,n,i){var r;for(r=e.firstElementChild;r;r=r.nextElementSibling){var o=t[r.namespaceURI];if(void 0!==o){var a=o[r.localName];void 0!==a&&a.call(i,r,n)}}},i.pushParseAndPop=function(t,e,n,i,r){return i.push(t),this.parseNode(e,n,i,r),i.pop()},i.serialize=function(t,e,n,i,r,o){for(var a,s,l=(void 0!==r?r:n).length,u=0;u<l;++u)void 0!==(a=n[u])&&void 0!==(s=e.call(void 0!==o?o:this,a,i,void 0!==r?r[u]:void 0))&&t[s.namespaceURI][s.localName].call(o,s,a,i)},i.pushSerializeAndPop=function(t,e,n,i,r,o,a){return r.push(t),this.serialize(e,n,i,r,o,a),r.pop()},i.writeStringTextNode=function(t,e){t.appendChild(this.DOCUMENT.createTextNode(e))},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(187),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="And",1===arguments.length?t.conditions&&(this.conditions=t.conditions):this.conditions=Array.prototype.slice.call(arguments)}return t.extend2(o,e),o.prototype.format=function(){for(var t=[],e=0;e<this.conditions.length;++e){var n=this.conditions[e];t.push(n.format())}return{tagName:this.tagName,conditions:t,getTagName:function(){return this.tagName}}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(187),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="Or",1===arguments.length?t.conditions&&(this.conditions=t.conditions):this.conditions=Array.prototype.slice.call(arguments)}return t.extend2(o,e),o.prototype.format=function(){for(var t=[],e=0;e<this.conditions.length;++e){var n=this.conditions[e];t.push(n.format())}return{tagName:this.tagName,conditions:t,getTagName:function(){return this.tagName}}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(82),n(33),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.tagName="BBOX",this.geometryName=t.geometryName,this.extent=t.extent,this.srsName=t.srsName}return t.extend2(a,e),a.prototype.format=function(){return{tagName:this.tagName,geometryName:this.geometryName,extent:[this.extent.minx,this.extent.miny,this.extent.maxx,this.extent.maxy],srsName:this.srsName,getTagName:function(){return this.tagName}}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(82),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="Not",this.condition=t.condition}return t.extend2(o,e),o.prototype.format=function(){return{tagName:this.tagName,condition:this.condition.format(),getTagName:function(){return this.tagName}}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(134),n(33),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.tagName="Contains"}return t.extend2(a,e),a.prototype.format=function(){var t=new n;return{tagName:this.tagName,geometryName:this.geometryName,geometry:t.toGeometry(this.geometry),srsName:this.srsName,getTagName:function(){return this.tagName}}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(83),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="During",this.begin=t.begin,this.end=t.end}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(68),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsEqualTo"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(68),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsGreaterThan"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(68),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsGreaterThanOrEqualTo"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(134),n(33),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.tagName="Intersects"}return t.extend2(a,e),a.prototype.format=function(){var t=new n;return{tagName:this.tagName,geometryName:this.geometryName,geometry:t.toGeometry(this.geometry),srsName:this.srsName,getTagName:function(){return this.tagName}}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(83),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsBetween",this.lowerBoundary=t.lowerBoundary,this.upperBoundary=t.upperBoundary}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(83),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsLike",this.pattern=t.pattern,this.wildCard=void 0!==t.wildCard?t.wildCard:"*",this.singleChar=void 0!==t.singleChar?t.singleChar:".",this.escapeChar=void 0!==t.escapeChar?t.escapeChar:"!",this.matchCase=t.matchCase}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(83),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsNull"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(68),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsLessThan"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(68),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsLessThanOrEqualTo"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(68),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tagName="PropertyIsNotEqualTo"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(134),n(33),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.tagName="Within"}return t.extend2(a,e),a.prototype.format=function(){var t=new n;return{tagName:this.tagName,geometryName:this.geometryName,geometry:t.toGeometry(this.geometry),srsName:this.srsName,getTagName:function(){return this.tagName}}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.GetCapabilities=function(t){},o.prototype.GetFeature=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.geocode=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.location=t.location,this.level=t.level}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(360),n(16),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).serviceFix="gather/serviceinfo",e.call(this,t),n.call(this,t),this.url=t.url,this.serviceFix=t.serviceFix}return t.extend2(a,e),t.extend2(a,n),a.prototype.save=function(t){var e="{url}/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/save";return this._postRequest(e,t).then(function(t){return t&&0===t.status?result.data:t},function(t){throw console.error(t),t})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.save=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(362),n(16),n(128),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){t=t||{},e.call(this,t),n.call(this,t),this.serviceFix="gather",this.http=t.http,this.url=t.url,this.deserializer=new i}var l="{url}/{serviceName}";function u(t,e){return t.then(function(t){return 0===t.status?t.result?e.createJsInstance(t.result):t:1===t.status?e.createJsInstance(t.result):-1===t.status?t:t?e.createJsInstance(t):void 0},function(t){throw console.error(t),t})}return t.extend2(s,e),t.extend2(s,n),s.prototype.gather=function(t){var e=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/add";return this._postRequest(e,t)},s.prototype.findAll=function(){var t=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findAll";return u(this._getRequest(t),this.deserializer)},s.prototype.findByType=function(t){var e=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findByType?type="+t;return u(this._getRequest(e),this.deserializer)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.gather=function(t){},i.prototype.findAll=function(){},i.prototype.findByType=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.location=function(t){},o.prototype.locationByIP=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.type=t.type,this.location=t.location,this.radius=t.radius,this.desc=t.desc,this.country=t.country,this.province=t.province,this.city=t.city,this.citycode=t.citycode,this.district=t.district,this.road=t.road,this.ctime=t.ctime,this.bldg=t.bldg,this.bldgid=t.bldgid,this.bldgname=t.bldgname,this.floor=t.floor,this.indoor=t.indoor,this.error=t.error}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.address=t.address,this.content=t.content}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.address=t.address,this.address_detail=t.address_detail,this.location=t.location}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.province=t.province,this.city=t.city,this.city_code=t.city_code,this.district=t.district,this.street=t.street,this.street_number=t.street_number}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.getCapabilities=function(t){},o.prototype.getFeatureInfo=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(98),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),t.location&&"string"==typeof t.location?this.location=t.location:t.location&&"object"==typeof t.location&&(this.location=t.location.getCoordinates()),this.radius=void 0===t.radius?1e3:t.radius,this.radius_limit=t.radius_limit,this.sortrule=void 0===t.sortrule?"distance":t.sortrule}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(98),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=t.layer||"baidu",this.uid=t.uid,this.format=void 0===t.format?"json":t.format,this.scope=t.scope}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.searchKeyWord=function(t){},o.prototype.searchAround=function(t){},o.prototype.searchBounds=function(t){},o.prototype.searchDetail=function(t){},o.prototype.keyWord=function(t){},o.prototype.around=function(t){},o.prototype.bounds=function(t){},o.prototype.detail=function(t){},o.prototype.district=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(98),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.admin_code=t.admin_code,this.city_limit=t.city_limit}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(375),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},this.child_admins=t.child_admins||[],e.call(this,t),this.$type="CRegionNode,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.admin_code=t.admin_code,this.count=t.count,this.location=t.location,this.$type="RegionNode,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.query=function(t,e){},o.prototype.statistic=function(t,e){},o.prototype.districtSearch=function(t,e){},o.prototype.districtStat=function(t,e){},o.prototype.nearbySearch=function(t,e,n){},o.prototype.nearbyStat=function(t,e,n){},o.prototype.boundsSearch=function(t,e){},o.prototype.boundsStat=function(t,e){},o.prototype.regionStat=function(t,e,n){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.id=t.id,this.name=t.name,this.comment=t.comment,this.code=t.code,this.tag=t.tag,this.$type="ResourceNode,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.find=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.rescueAnalysis=function(t,e,n,i){},o.prototype.materialAnalysis=function(t,e,n,i){},o.prototype.equipmentAnalysis=function(t,e,n,i){},o.prototype.route=function(t,e,n){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.regeocode=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.location=t.location,this.formatted_address=t.formatted_address,this.address_component=t.address_component,this.pois=t.pois||[],this.roads=t.roads||[]}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.country=t.country,this.province=t.province,this.city=t.city,this.district=t.district,this.town=t.town,this.street=t.street,this.street_number=t.street_number,this.adcode=t.adcode}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.address=t.address,this.distance=t.distance,this.name=t.name,this.point=t.point,this.uid=t.uid,this.zip=t.zip,this.type=t.type,this.direction=t.direction,this.tel=t.tel}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.distance=t.distance}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.getLayer=function(t,e){},o.prototype.findById=function(t,e,n){},o.prototype.find=function(t,e,n){},o.prototype.deleteById=function(t,e){},o.prototype.delete=function(t,e){},o.prototype.create=function(t,e){},o.prototype.save=function(t,e){},o.prototype.update=function(t,e){},o.prototype.batchSave=function(t,e){},o.prototype.pageQuery=function(t,e,n,i){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(136),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(100),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.traffic_condition=t.traffic_condition}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(101),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.leg_index=t.leg_index,this.direction=t.direction,this.turn=t.turn,this.traffic_condition=t.traffic_condition}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.geo_cnt=t.geo_cnt,this.status=t.status}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.driving=function(t){},o.prototype.transit=function(t){},o.prototype.riding=function(t){},o.prototype.walking=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(136),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(100),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(101),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.turn_type=t.turn_type,this.direction=t.direction,this.name=t.name}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.type=t.type,this.stop_num=t.stop_num,this.on_station=t.on_station,this.off_station=t.off_station,this.first_time=t.first_time,this.last_time=t.last_time,this.start_info=t.start_info,this.end_info=t.end_info}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.start_name=t.start_name,this.start_uid=t.start_uid,this.start_time=t.start_time}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.end_name=t.end_name,this.end_uid=t.end_uid,this.end_time=t.end_time}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.city_name=t.city_name,this.location=t.location}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.origin=t.origin,this.destination=t.destination,this.taxi=t.taxi,this.total=t.total,this.routes=t.routes||[]}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.ticket_type=t.ticket_type,this.ticket_price=t.ticket_price}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(100),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.arrive_time=t.arrive_time,this.price=t.price,this.price_detail=t.price_detail||[]}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.schemes=t.schemes||[]}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(101),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.vehicle_info=t.vehicle_info,this.traffic_condition=t.traffic_condition}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.detail=t.detail||[],this.distance=t.distance,this.duration=t.duration,this.remark=t.remark}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.desc=t.desc,this.km_price=t.km_price,this.start_price=t.start_price,this.total_price=t.total_price}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.detail=t.detail,this.type=t.type}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.price=t.price,this.booking=t.booking,this.provider_name=t.provider_name,this.provider_url=t.provider_url,this.departure_station=t.departure_station,this.arrive_station=t.arrive_station,this.departure_time=t.departure_time,this.arrive_time=t.arrive_time,this.start_info=t.start_info,this.end_info=t.end_info}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.price=t.price,this.discount=t.discount,this.airlines=t.airlines,this.booking=t.booking,this.departure_station=t.departure_station,this.arrive_station=t.arrive_station,this.departure_time=t.departure_time,this.arrive_time=t.arrive_time,this.start_info=t.start_info,this.end_info=t.end_info}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.price=t.price,this.booking=t.booking,this.departure_station=t.departure_station,this.arrive_station=t.arrive_station,this.departure_time=t.departure_time,this.arrive_time=t.arrive_time,this.start_info=t.start_info,this.end_info=t.end_info}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.start_name=t.start_name,this.start_city=t.start_city,this.start_time=t.start_time}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.end_name=t.end_name,this.end_city=t.end_city,this.end_time=t.end_time}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(136),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(100),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(101),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.direction=t.direction}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.findAll=function(t){},o.prototype.findOne=function(t){},o.prototype.find=function(t,e){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.count=t.count,this.layers=t.layers}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(195),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.id=t.id}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.imageType=t.imageType,this.page_size=void 0===t.page_size?10:t.page_size,this.page_num=void 0===t.page_num?0:t.page_num}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.getCapabilities=function(t){},o.prototype.findOne=function(t,e){},o.prototype.find=function(t,e){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.create=function(t){},o.prototype.delete=function(t){},o.prototype.update=function(t){},o.prototype.detail=function(t){},o.prototype.addEntity=function(t){},o.prototype.deleteEntity=function(t,e){},o.prototype.updateEntity=function(t){},o.prototype.listEntity=function(t,e,n){},o.prototype.addPoint=function(t,e){},o.prototype.addPoints=function(t,e){},o.prototype.getTrack=function(t){},o.prototype.rectifyTrack=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){var e=t||{};this.points=e.points,this.total=e.total,this.distance=e.distance,this.toll_distance=e.toll_distance}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(138),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.loc_time=e.loc_time,this.speed=e.speed,this.radius=e.radius,this.direction=e.direction,this.height=e.height,this.coord_type_input=e.coord_type_input}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(138),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.createTime=e.createTime}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.total=e.total,this.track=e.track}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.entityName=e.entityName,this.entityType=e.entityType,this.entityDesc=e.entityDesc,this.serviceId=e.serviceId,this.createTime=e.createTime,this.updateTime=e.updateTime}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n,e,t,n(196)],void 0===(r=function(t,e,n,i){function r(t){var e=t||{};this.total=e.total,this.entities=e.entities}return n.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.query=function(t,e){},i.prototype.data=function(t,e,n,i,r){},i.prototype.queryByType=function(t,e,n,i){},i.prototype.getLegend=function(t,e){},i.prototype.forecastLayers=function(t,e){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(1),n(2),n(3),n(15),n(28),n(17),n(30),n(4),n,e,t],void 0===(r=function(a,s,l,u,h,c,p,t,e,n,i){var r=t.getRotateAngle,o=-1,f=1,d=2,y=3,m=4,g=5,v=6;function x(t){this.plotLayer=t.plotLayer,this.editElement=null,this.rotateElement=function(t,e){var n=new s;n.addPoint(new a({spatialReference:t})),n.addPoint(new a({spatialReference:t}));var i=new l({spatialReference:t});i.addGeometry(n);var r=e||new h({width:1,color:new u({r:0,g:0,b:0}),style:0}),o=new p;return o.add(new c({geometry:i,symbol:r})),o}(t.srid,this.plotLayer.rotatelineSymbol),this.lastPoint=null,this.editPoint=null,this.drawOp=o,this.srid=t.srid}return x.prototype.beginEdit=function(t,e){this.editElement=t,this.drawOp=d,this.lastPoint=e},x.prototype.editingElement=function(t,e){this.editElement=t,this.drawOp=d,this.lastPoint=e.copy()},x.prototype.editingPoint=function(t,e){this.editPoint=t,this.lastPoint=e;var n=this.editElement.plot;if(n.isCenterPoint(t))this.drawOp=d;else if(n.isRotatePoint(t))this.drawOp=y,this.updateRotateLine(),this.plotLayer.add(this.rotateElement);else if(n.isControlPoint(t))this.drawOp=f;else if(n.isMiddlePoint(t)){this.drawOp=m;var i=n.findMiddlePointIndex(t);0<=i&&(n.insertControlPoint(i,t),this.updateElement(!0))}else n.isExtentPoint(t)&&(this.drawOp=v)},x.prototype.deleteNode=function(t){var e=this.editElement.plot;if(e.isControlPoint(t)){var n=e.findControlPointIndex(t);0<=n&&(this.drawOp=g,e.removeControlPoint(n),this.updateElement(!0))}},x.prototype.endEdit=function(){this.plotLayer.remove(this.rotateElement),this.drawOp=o},x.prototype.drag=function(t){switch(this.drawOp){case d:this.move({x:t.x-this.lastPoint.x,y:t.y-this.lastPoint.y},t.z),this.lastPoint=t;break;case y:this.rotate(t),this.updateRotateLine(),this.plotLayer.update(this.rotateElement);break;case f:this.update({x:t.x-this.lastPoint.x,y:t.y-this.lastPoint.y}),this.lastPoint=t;break;case v:this.lastPoint=t,this.scale(t)}},x.prototype.move=function(t,e){this.editElement.plot.offset(t,2);for(var n=this.editElement.getCount(),i=0;i<n;++i){var r=this.editElement.getItem(i),o=r.geometry.copy();o.offset(t),o instanceof a&&o.z&&(o.z=e),r.geometry=o}this.updateElement(!0)},x.prototype.update=function(t){this.editPoint.offset(t),this.updateElement(!0)},x.prototype.rotate=function(t){var e=this.rotateAngle(t);e&&(this.editElement.plot.offset(e,8),this.updateElement(!1))},x.prototype.scale=function(t){var e,n,i=this.editElement.plot,r=i.findExtentPointIndex(this.editPoint);0===r?(e=i.getExtentPoint(1),n=i.getExtentPoint(0)):1===r&&(e=i.getExtentPoint(0),n=i.getExtentPoint(1));var o=n.x-e.x,a=t.x-e.x,s=n.y-e.y,l=t.y-e.y;if(0!=o&&0!=a&&0!=s&&0!=l){var u=l/s,h=a/o;i.scale(e,h,u),this.updateElement(!0)}},x.prototype.updateElement=function(t){var e=this.editElement.plot,n=this.editElement.algorithm.createGeometries(e);this.updateGeos(n),t&&e.update(n),e.updateExtentPoints(n),this.plotLayer.update(this.editElement)},x.prototype.updateGeos=function(t){for(var e=this.editElement,n=0,i=t.length;n<i;++n){var r=e.elements[n];r.geometry=t[n],r.geometry.spatialReference=this.srid}},x.prototype.rotateAngle=function(t){var e=this.editElement.plot,n=e.getCenterPoint();e.getRotatePoint();return r(n,this.editPoint,t)},x.prototype.updateRotateLine=function(){var t=this.editElement.plot,e=t.getCenterPoint(),n=t.getRotatePoint(),i=this.rotateElement.getItem(0).geometry.first(),r=i.startPoint(),o=i.endPoint();r.x=e.x,r.y=e.y,o.x=n.x,o.y=n.y},i.exports=x}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(27),n(26),n(1),n(30),n(429),n(73),n(13),n,e,t],void 0===(r=function(t,s,n,h,l,r,o,c,e,i,a){function u(t,e,n,i){for(var r=new l({algorithm:e,kind:i,attributeSet:n}),o=0,a=t.length;o<a;++o){var s=t[o].copy();s.symbol=t[o].symbol,s.kind=i,s.attributeSet=n,r.add(s),r.attributeSet=n}return r}function p(t){(t=t||{}).cursor=t.cursor||"crosshair",n.call(this,t),this.name=t.name,this.activeCommandName=null==t.activeCommandName?"PlotEdit":t.activeCommandName,this.plotElementTemplate=u(t.elements,t.algorithm,function(t){var e=new o;if(null!=t&&void 0!==t)for(var n=0;n<t.length;n++){var i=new r(t[n]);e.add(i)}return e}(t.plotAttribute),this.name),t.drawTemplate&&(this.drawTemplate=t.drawTemplate,this.drawElement=u([t.drawTemplate]),this.drawElement.reset()),this.plotLayer=t.plotLayer,this.plotElement=null,this.srid=null,this.map=null,this.plotPlugin=null,this.pushNum=0,this.finishCoordinate=null,this.isEndDraw=!1,this.pickZ=t.pickZ||!1,this.mapz=0,this.drawElementRemoved=!1;var e=t.algorithm;this.freeDraw=void 0!==e.freeDraw&&e.freeDraw,this.freeTolerance=t.freeTolerance?t.freeTolerance:30,this.freeDraw&&(this.isMouseDownDraw=!0,this.isMouseDownDraw?this.onMouseUp=function(t,e,n,i,r,o,a){var s=new h({x:r,y:o,z:this.mapz,spatialReference:this.srid});this.plotElement.plot.addControlPoint(s),this.endDraw(s),this.isDraw=!1}:this.onDblclick=function(t,e,n,i,r,o,a){var s=new h({x:r,y:o,z:this.mapz,spatialReference:this.srid});this.endDraw(s)}),this.isDraw=!1}return t.extend2(p,n),p.prototype.isEnabled=function(){return!this.plotLayer.visible},p.prototype.onCreate=function(t){p.prototype.uber.onCreate.call(this,t),this.map=t.map,this.srid=this.map.getSrid(),this.plotPlugin=t.plotPlugin},p.prototype.onClick=function(t){p.prototype.uber.onClick.call(this,t),this.pushNum=0,this.plotElement=this.plotElementTemplate.copy(),this.drawElementRemoved=!1,this.OnStepDesCallback(this.getDescription())},p.prototype.deactivate=function(){0==this.isEndDraw&&(this.plotLayer.remove(this.plotElement),this.plotLayer.remove(this.drawElement))},p.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.freeDraw&&(this.isDraw=!0,this.firstFreeCoordinate=[n,i]),this.isMouseDownDraw?this.map.stopDragPan():this.map.stopDbClick(),99==this.pushNum?this.pushNum=0:this.entryDraw(t,r,o)},p.prototype.onMouseUp=function(t,e,n,i,r,o,a){},p.prototype.onMouseMove=function(t,e,n,i,r,o,a){if(this.freeDraw)this.isDraw&&(!function(t){var e=!1;if(this.firstFreeCoordinate){var n=t[0]-this.firstFreeCoordinate[0],i=t[1]-this.firstFreeCoordinate[1];e=Math.sqrt(n*n+i*i)>this.freeTolerance}return e&&(this.firstFreeCoordinate=t),e}.call(this,[n,i])||this.entryDraw(t,r,o));else if(1<=this.pushNum){var s=new h({x:r,y:o,z:this.mapz,spatialReference:this.srid});this.drawing(s)}},p.prototype.onPosition3d=function(t,e,n){this.pickZ&&(this.mapz=n)},p.prototype.entryDraw=function(t,e,n){var i=new h({x:e,y:n,z:this.mapz,spatialReference:this.srid});this.isEndDraw=!1,0==t||-1===t&&this.isDraw?0==this.pushNum?this.beginDraw(i):1==this.pushNum&&this.pauseDraw(i):this.endDraw(null)},p.prototype.beginDraw=function(t){this.map.stopDbClick();var e=new Date;this.plotElement=this.plotElementTemplate.copy(),this.plotElement.id=s.newGuid();var n=null,i=null,r=null;n=2!=e.getHours().toString().length?"0"+e.getHours().toString():e.getHours().toString(),i=2!=e.getMinutes().toString().length?"0"+e.getMinutes().toString():e.getMinutes().toString(),r=2!=e.getSeconds().toString().length?"0"+e.getSeconds().toString():e.getSeconds().toString(),this.plotElement.name=this.name+"_"+n+i+r;var o=this.plotElement.plot;o.addControlPoint(t),this.drawElement&&this.plotLayer.add(this.drawElement),this.plotLayer.add(this.plotElement),this.pushNum++,o.controlPointCount()==this.plotElement.algorithm.maxCpt&&this.endDraw(t);var a=this.plotElement.algorithm.getStepDes(1);this.OnStepDesCallback(a)},p.prototype.pauseDraw=function(t){var e=this.map.getPixelFromCoordinate([t.x,t.y,t.z]),n=this.plotElement.algorithm;if(this.atFinish(e)&&!this.freeDraw){var i=n.maxCpt,r=this.plotElement.algorithm.getStepDes(i);return this.OnStepDesCallback(r),void this.endDraw(null)}var o=this.plotElement.plot;if(o.addControlPoint(t),(i=o.controlPointCount())<n.maxCpt){var a=n.createGeometries(o,t);this.updateElement(a)}else this.endDraw(t);r=this.plotElement.algorithm.getStepDes(i);this.OnStepDesCallback(r)},p.prototype.drawing=function(t){var e=this.plotElement.plot,n=this.plotElement.algorithm,i=e.controlPointCount();if(2<=i&&this.drawElement&&!this.drawElementRemoved&&(this.plotLayer.remove(this.drawElement),this.drawElementRemoved=!0),1==i){(r=n.createGeometries(e,t))&&this.drawElement&&(r[0].setSpatialReference(this.srid),this.drawElement.getItem(0).geometry=r[0],this.plotLayer.update(this.drawElement))}else{var r=n.createGeometries(e,t);this.updateElement(r)}},p.prototype.updateElement=function(t){this.updatePlotGeometry(t),this.plotLayer.update(this.plotElement)},p.prototype.updatePlotGeometry=function(t){for(var e=this.plotElement.elements,n=0,i=e.length;n<i;++n){var r=e[n];if(t){var o=t[n];o.setSpatialReference(this.srid),r.geometry=o}}},p.prototype.endDraw=function(t){this.isEndDraw=!0,this.finishCoordinate=null;var e=this.plotElement.algorithm;if(this.plotElement.setName(this.plotElement.name),this.plotElement.tag={toolId:this.id,name:this.name},this.plotElement.plot.controlPointCount()>=e.minCpt){for(var n=this.plotElement.plot,i=e.createGeometries(n.copy(),t),r=0;r<i.length;++r)i[r].spatialReference=this.srid;n.update(i);var o=function(t){return t.algorithm.$type.split(",")[0]}(this.plotElement);if("FreePolylineAlgorithm"!==o&&"PolylineAlgorithm"!==o||n.updateMiddlePoints(!1),"FreePolygonAlgorithm"!==o&&"PolygonAlgorithm"!==o||(n.updateMiddlePoints(!0),n.isClose=!0),"FreePolylineAlgorithm"===o||"FreePolygonAlgorithm"===o){var a=new c({spatialReference:this.srid});for(r=0;r<i.length;++r){var s=i[r].envelope();a.union(s)}var l=new h({spatialReference:this.srid,x:a.minx,y:a.miny}),u=new h({spatialReference:this.srid,x:a.maxx,y:a.maxy});n.addExtentPoint(l),n.addExtentPoint(u)}this.normalizeGeos(i),this.updateElement(i)}else this.plotLayer.remove(this.plotElement);this.plotPlugin&&this.plotPlugin.addElement(this,this.plotElement),this.onEndDraw(this.plotElement),this.plotElement.reset(),this.reset()},p.prototype.onEndDraw=function(t){},p.prototype.reset=function(){this.pushNum=0,this.map.resumeDbClick(),this.map.resumeDragPan(),this.activeCommand(this.activeCommandName,null),this.drawElement&&this.plotLayer.remove(this.drawElement),this.drawElement=u([this.drawTemplate]),this.drawElement.reset()},p.prototype.normalizeGeos=function(t){for(var e=0,n=t.length;e<n;++e){t[e].normalize()}},p.prototype.atFinish=function(t){var e=!1;if(this.finishCoordinate){var n=t[0]-this.finishCoordinate[0],i=t[1]-this.finishCoordinate[1];e=Math.sqrt(n*n+i*i)<12}return this.finishCoordinate=t,e&&(this.finishCoordinate=null),e},p.prototype.getDescription=function(){return this.plotElement.algorithm.getDescription()},p.prototype.OnStepDesCallback=function(t){},a.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.alias=t.alias,this.type=t.type,this.value=t.value,this.dic=t.dic,this.ref=t.ref,this.$type="Attribute,http://www.Gs.com"}return i.prototype.copy=function(){return new i({name:this.name,alias:this.alias,type:this.type,value:this.value,dic:this.dic,ref:this.ref})},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l,u){var h=t.extend2;t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle;distance=n.distance;function c(t){this.$type="PointAlgorithm,http://www.Gs.com",e.call(this,{minCpt:1,maxCpt:1}),this._inilization(),this.p1=null}return h(c,e),c.prototype.createGeometries=function(t,e){return[t.getControlPoints()[0]]},c.prototype.getDescription=function(){return"通过在地图上点击绘制一个点"},c.prototype.getStepDes=function(t){return"完成绘制"},c.prototype.getType=function(){return"pointalgorithm"},u.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,l,_,w,b,u,i,r,o){var a=t.extend2,P=(t.deepCopy,n.scalePoint,n.optionWay,n.pathLength);n.linePerpenPoints,n.bTypeline;vertex=n.vertex,angle=n.angle,bzLine=n.bzLine,gainPt=n.gainPt,distance=n.distance,calInterPoints=n.calInterPoints,calHollowArraowhead=n.calHollowArraowhead,calPathPerpenPoints=n.calPathPerpenPoints;function s(t){this.$type="SimpleArrowAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this._inilization()}return a(s,e),s.prototype._inilization=function(){this.m_Ctrlpts=[];for(var t=0;t<3;t++)this.m_Ctrlpts[t]=new _;this.length=0},s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===(this.length=i)){var r=new l,o=new u;return r.addPoint(n[0]),r.addPoint(e),o.addGeometry(r),[o]}if(2===i&&null!=e){for(var a=0;a<2;a++)this.m_Ctrlpts[a].x=n[a].x,this.m_Ctrlpts[a].y=n[a].y;this.m_Ctrlpts[2].x=e.x,this.m_Ctrlpts[2].y=e.y}if(3===i)for(var s=0;s<3;s++)this.m_Ctrlpts[s].x=n[s].x,this.m_Ctrlpts[s].y=n[s].y;return this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e=0,n=[],i=new _,r=new _,o=new _,a=new _,s=new _,l=[],u=[],h=[],c=[],p=[];if((c=this.m_Ctrlpts)[2].x===c[1].x&&c[2].y===c[1].y&&((c=[])[0]=this.m_Ctrlpts[0],c[1]=this.m_Ctrlpts[2]),null!=c&&(h=calInterPoints(c,c.length,h),e=P(c),n=calHollowArraowhead(h[parseInt(5*h.length/6)],c[c.length-1],e/5,Math.PI/5,Math.PI/2,Math.PI/10),u[0]=n[0],l[0]=n[4],calPathPerpenPoints(c,0,e/5,s,i,!0),calPathPerpenPoints(c,0,e/5,s,r,!1),calPathPerpenPoints(c,4*e/7,e/20,s,o,!0),calPathPerpenPoints(c,4*e/7,e/20,s,a,!1)),u[1]=o,u[2]=i,l[1]=a,l[2]=r,l[0].x===l[1].x&&l[0].y===l[1].y||u[0].x===u[1].x&&u[0].y===u[1].y||l[1].x===l[2].x&&l[1].y===l[2].y||u[1].x===u[2].x&&u[1].y===u[2].y)return null;var f=new w,d=new b;p[0]=[],p[0][0]=i,p[0][1]=o,p[0][2]=o,p[0][3]=u[0],p[1]=[],p[1][0]=l[0],p[1][1]=a,p[1][2]=a,p[1][3]=r;var y,m=[],g=[],v=0;m=p[0],g=[],y=(g=bzLine(m))[0],v=g.length;for(var x=0;x<v;x++)f.addPoint(g[x]);v=n.length;for(x=0;x<v;x++)f.addPoint(n[x]);m=p[1],g=[],v=(g=bzLine(m)).length;for(x=0;x<v;x++)f.addPoint(g[x]);return f.addPoint(y),d.addGeometry(f),[d]},s.prototype.getType=function(){return"simplearrowalgorithm"},s.prototype.getDescription=function(){return"在地图上绘制三个点用于绘制单箭头,在地图上点击绘制第一个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制第二个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(7),n(0),n(2),n(4),n(6),n(5),n,e,t],void 0===(r=function(t,e,n,i,f,d,r,o,a){function s(){this.$type="ShockWayAlgorithm,http://www.Gs.com",t.call(this,{minCpt:2,maxCpt:2}),this._inilization()}var l=e.extend2,y=(e.deepCopy,i.scalePoint),m=(i.pathLength,i.vertex),g=i.distance;i.angle;return l(s,t),s.prototype._inilization=function(){this.p1=null,this.p2=null},s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;return 1===i?(this.p1=n[0],this.p2=e,this.getGraphParts(1)):2===i?(this.p1=n[0],this.p2=n[1],this.getGraphParts(1)):void 0},s.prototype.getGraphParts=function(t){var e=g(this.p1,this.p2)*t,n=y(this.p1,this.p2,.8),i=m(this.p1,this.p2,this.p1,e/3,!0),r=m(this.p1,this.p2,this.p1,e/3,!1),o=m(this.p1,this.p2,n,e/2,!0),a=m(this.p1,this.p2,n,e/2,!1),s=m(this.p1,this.p2,n,e/5,!0),l=m(this.p1,this.p2,n,e/5,!1),u=this.p2,h=new f,c=[i,s,o,u,a,l,r,i];0<h.points.length?h.points=c:h.addPoint(c);var p=new d;return p.addGeometry(h),[p]},s.prototype.getType=function(){return"shockwayalgorithm"},s.prototype.getDescription=function(){return"在地图上绘制2个点用于绘制突击方向箭头在地图上点击绘制第一个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"在地图上点击绘制最后一个点。";case 2:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(197),n(41),n(51),n,e,t],void 0===(r=function(t,e,s,n,i,r,o){function a(t){t=t||{},this.fillColor=t.fillColor,this.shadowBlur=void 0===t.shadowBlur?20:t.shadowBlur,this.shadowColor=t.shadowColor,this.maxSize=void 0===t.maxSize?50:t.maxSize,this.minSize=void 0===t.minSize?15:t.minSize,this.maxWeight=void 0===t.maxWeight?100:t.maxWeight,this.minWeight=void 0===t.minWeight?0:t.minWeight,this.shadow=void 0===t.shadow||t.shadow,this.intensity=new e({max:this.maxWeight,min:this.minWeight,minSize:this.minSize,maxSize:this.maxSize}),this.fieldName=t.fieldName,this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d")}t.extend2(a,n),a.prototype.canRender=function(){return!0};var l={};return a.prototype.render=function(t){var e=t.getValue(this.fieldName),n=l[e];if(!n){var i=Math.round(this.intensity.getSize(e)),r=2*i,o=2*i,a=document.createElement("canvas").getContext("2d");a.save(),a.fillStyle="rgba(2",n=new s({width:r,height:o,scale:1,offsetX:i,offsetY:i,source:this.canvas.toDataURL()}),this.context.restore(),l[e]=n}return n},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(51),n(84),n(85),n(32),n(15),n(105),n(34),n(63),n,e,t],void 0===(r=function(t,e,h,c,p,f,n,l,u,i,r,o){function a(t){t=t||{},e.call(this,t),this.fieldName=t.fieldName,t.grade?(this.colorRamp=t.colorRamp,this.grade=t.grade,this.minDataValue=t.minDataValue,this.maxDataValue=t.maxDataValue,this.legendOptions=function(t,e,n,i){for(var r=Math.floor((e-t)/n),o=[],a=i.createRamp(),s=[],l=0;l<=n;l++){var u=t+l*r;o.push(u),0<l&&s.push({value:u,color:a[l-1],content:o[l-1]+"-"+o[l]})}t+n*r<e&&(o.pop(),o.push(e),s.pop(),s.push({value:e,color:a[n-1],content:o[l-2]+"-"+o[l-1]}));return s}(this.minDataValue,this.maxDataValue,this.grade,this.colorRamp)):(this.symbol=t.symbol,this.classfications=t.classfications,this.showLabel=t.showLabel||!1,this.labelField=t.labelField),this._cachedSymbols={},this.convertor=new n,(d=this).$type="ClassBreaksRenderer,http://www.Gs.com"}var d=null;function y(t,e,n,i){if(this.showLabel){var r=e.getValue(this.labelField)+"",o=r+"_"+n+"_"+i;if(!this._cachedSymbols.hasOwnProperty(o)){var a,s=t.copy();(this._cachedSymbols[o]=s)instanceof l?a=s:s instanceof u&&(a=s.textSymbol),a.text=r}return this._cachedSymbols[o]}return t}return t.extend2(a,e),a.prototype.canRender=function(){return!0},a.prototype.createLegend=function(t,e){var n=new h,i=null;if(this.grade)for(var r=0;r<this.legendOptions.length;r++){var o=this.legendOptions[r];o.color="#"+o.color.substring(3,o.color.length),i=new c({color:o.color,content:o.content}),n.add(i)}else{r=0;for(var a=this.classfications.length;r<a;++r){var s=this.classfications[r],l=s.startValue+"_"+s.endValue,u=this.convertor.toImage(s.symbol,t,e);i=new c({content:l,image:u}),n.add(i)}}return n},a.prototype.render=function(t){if(this.grade){var e,n=t.getValue(d.fieldName),i=null;for(e=0;e<d.legendOptions.length;e++)if(d.legendOptions[e].value>=n){if(d._cachedSymbols.hasOwnProperty(e))return d._cachedSymbols[e];i=d.legendOptions[e].color;break}var r=f.fromHex(i);r.a=155;var o=new p({borderColor:r,fillColor:r});return d._cachedSymbols[e]=o}n=t.getValue(this.fieldName);for(var a=0,s=this.classfications.length;a<s;++a){var l=this.classfications[a];if(l.startValue<=n&&l.endValue>=n){var u=l.symbol;return y.call(this,u,t,n,0)}}return y.call(this,this.symbol,t,n,0)},a.prototype.renderSymbol=function(t,e){return y.call(this,e,t,"",1)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.toImage=function(t,e,n){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(197),n(41),n(51),n,e,t],void 0===(r=function(t,e,o,n,i,r,a){function s(t){t=t||{},this.fillColor=t.fillColor,this.shadowBlur=void 0===t.shadowBlur?20:t.shadowBlur,this.shadowColor=t.shadowColor,this.size=void 0===t.size?10:t.size,this.maxWeight=void 0===t.maxWeight?100:t.maxWeight,this.minWeight=void 0===t.minWeight?0:t.minWeight,this.shadow=void 0===t.shadow||t.shadow,this.intensity=new e({max:this.maxWeight,min:this.minWeight,minSize:this.minSize,maxSize:this.maxSize,stops:t.stopCollection}),this.fieldName=t.fieldName,this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d")}t.extend2(s,n),s.prototype.canRender=function(){return!0};var l={};return s.prototype.render=function(t){var e=t.getValue(this.fieldName),n=l[e];if(!n){var i=2*this.size,r=2*this.size;this.canvas.width=this.canvas.height=2*this.size,this.context.clearRect(0,0,i,r),this.shadow&&(this.context.shadowColor=this.shadowColor.toHex(),this.context.shadowBlur=this.shadowBlur),this.context.beginPath(),this.context.fillStyle=this.intensity.getColor(e).toHex(),this.context.arc(this.size,this.size,this.size,0,2*Math.PI),this.context.fill(),n=new o({width:i,height:r,scale:1,offsetX:this.size,offsetY:this.size,source:this.canvas.toDataURL()}),l[e]=n}return n},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(51),n(84),n(85),n(105),n(34),n(63),n,e,t],void 0===(r=function(t,e,s,l,n,u,h,i,r,o){function a(t){t=t||{},e.call(this,t),this.symbol=t.symbol,this.showLabel=t.showLabel||!1,this.labelField=t.labelField,this.fieldName=t.fieldName,this.convertor=new n,this.infos=[],this._cachedSymbols={},this.$type="UniqueValueRenderer,http://www.Gs.com"}function c(t,e,n,i){if(this.showLabel){var r=e.getValue(this.labelField)+"",o=r+"_"+n+"_"+i;if(!this._cachedSymbols.hasOwnProperty(o)){var a,s=t.copy();(this._cachedSymbols[o]=s)instanceof u?a=s:s instanceof h&&(a=s.textSymbol),a.text=r}return this._cachedSymbols[o]}return t}return t.extend2(a,e),a.prototype.canRender=function(){return!0},a.prototype.createLegend=function(t,e){var n=new s,i=null;if(0<this.infos.length)for(var r=0;r<this.infos.length;r++){var o=this.infos[r],a=this.convertor.toImage(o.symbol,t,e);i=new l({content:o.value,image:a}),n.add(i)}else{a=this.convertor.toImage(this.symbol,t,e);i=new l({content:this.value,image:a}),n.add(i)}return n},a.prototype.render=function(t){var e=t.getValue(this.fieldName);if(0<this.infos.length){for(var n=0;n<this.infos.length;n++)if(this.infos[n].value===e){var i=this.infos[n].symbol;return c.call(this,i,t,e,0)}return c.call(this,this.symbol,t,e,0)}return c.call(this,this.symbol,t,e,0)},a.prototype.renderSymbol=function(t,e){return c.call(this,e,t,"",1)},a.prototype.addValue=function(t){for(var e=0;e<this.infos.length;e++)if(this.infos[e].value===t.value)return;this.infos.push(t)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.value=e.value,this.symbol=e.symbol}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(198),n,e,t],void 0===(r=function(t,e,n,i){function r(t){this.$type="FeatureSet,http://www.Gs.com",this.features=[],this.fields=t}return r.prototype.createFeature=function(){return new t(this.fields)},r.prototype.add=function(t){this.features.push(t)},r.prototype.remove=function(t){for(var e=0,n=this.features.length;e<n;++e)if(t===this.features[e]){this.features.splice(e,1);break}},r.prototype.getCount=function(){return this.features.length},r.prototype.getFeature=function(t){return this.features[t]},r.prototype.getFeatures=function(){return this.features},r.prototype.reset=function(){var e=this;this.features.forEach(function(t){t.fields=e.fields})},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.fromCsv=function(t){},i.prototype.toCsv=function(){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(46),n(15),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.waveWidth=e.waveWidth,this.flowDirection=e.flowDirection,this.flowSpeed=e.flowSpeed,this.waterColor=e.waterColor||new i({a:255,r:0,g:106,b:180}),this.texture=e.texture,this.$type="RippleSymbol,http://www.Gs.com"}return t.extend2(a,n),a.prototype.copy=function(){return new a({waveWidth:this.waveWidth,flowDirection:this.flowDirection,flowSpeed:this.flowSpeed,waterColor:this.waterColor.copy(),texture:this.texture.copy()})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,w){var n,i;n=[w(21),w(15),w(32),w(28),w(31),w(41),w(34),w(95),w(21),w(56),w,e,t],void 0===(i=function(s,t,e,n,i,r,o,a,l,u,h,c,p){function f(){}var d={Accept:"model/vnd.gltf.binary,model/vnd.gltf+json,model/gltf.binary,model/gltf+json;q=0.8,application/json;q=0.2,*/*;q=0.01"};function y(t){var e=l.defer();return e.resolve(t),e.promise}f.createSimpleMarkerSymbol=function(t){return new i(t)},f.createSimpleMarkerSymbolAsync=function(t){return y(f.createSimpleMarkerSymbol(t))},f.createPictureMarkerSymbolAsync=function(e){return _(e.source).then(function(t){return e.source=t.source,new r(e)})},f.createVectorMarkerSymbolAsync=function(e){e.source;return function(t){var e=s.defer(),n=function(e){var n;if(window.ActiveXObject)(n=new ActiveXObject("Microsoft.XMLDOM")).load(e);else try{(n=document.implementation.createDocument("","",null)).async=!1,n.load(e)}catch(t){try{var i=new window.XMLHttpRequest;i.open("GET",e,!1),i.send(null),n=i.responseXML.documentElement}catch(t){error=t.message}}return n}(t.source);n.width=t.width,n.height=t.height;var i=(new XMLSerializer).serializeToString(n),r="data:image/svg+xml;base64,"+window.btoa(i);return e.resolve(r),e.promise}(e).then(function(t){return e.source=t,new a(e)})},f.createTextSymbol=function(t){return new o(t)},f.createTextSymbolAsync=function(t){return y(f.createTextSymbol(t))},f.createMarker3DSymbolAsync=function(n){var i=w(903);return function(t){var e=new XMLHttpRequest,n=s.defer();for(var i in e.open("GET",t,!0),d)d.hasOwnProperty(i)&&e.setRequestHeader(i,d[i]);return e.responseType="arraybuffer",e.onload=function(){e.status<200||300<=e.status?n.reject():n.resolve(e.response)},e.send(),n.promise}(n.source).then(function(t){var e=new Uint8Array(t);return n.source=u.decode(e),new i(n)})},f.createVideoSymbol=function(t){return new(w(443))(t)},f.createVideoSymbolAsync=function(t){return y(f.createVideoSymbol(t))},f.createWaterSymbol=function(t){return new(w(444))(t)},f.createWaterSymbolAsync=function(t){return y(f.createWaterSymbol(t))},f.createSimpleLineSymbol=function(t){return new n(t)},f.createSimpleLineSymbolAsync=function(t){return y(f.createSimpleLineSymbol(t))},f.createRippleSymbolAsync=function(i){var t=i.source,e=new Image,n=s.defer();return e.crossOrigin="Anonymous",e.onload=function(){n.resolve(e)},e.src=t,n.promise.then(function(t){var e=w(140),n=w(441);return i.source=t,i.width=t.width,i.height=t.height,i.texture=new e(i),new n(i)})},f.createTextureLineSymbolAsync=function(e){var n=w(140),i=w(445),t=e.source;return _.call(this,t).then(function(t){return e.source=t.source,e.width=t.width,e.height=t.height,e.texture=new n(e),new i(e)})},f.createSimpleFillSymbol=function(t){return new e(t)},f.createSimpleFillSymbolAsync=function(t){return y(f.createSimpleFillSymbol(t))},f.createTextureFillSymbolAsync=function(e){var n=w(140),i=w(446);return _(e.source).then(function(t){return e.source=t.source,e.width=t.width,e.height=t.height,e.texture=new n(e),new i(e)})};var m=document.createElement("canvas"),g=m.getContext("2d"),v=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/),x=!!v&&parseInt(v[1]);function _(t,e){var o=new Image,a=s.defer();return o.crossOrigin="Anonymous",o.onload=function(){var i;if(x){var r=new XMLHttpRequest;r.onload=function(t){var e=new Uint8Array(r.response),n=u.decode(e);i="data:image/png;base64,"+n,a.resolve({source:i,width:o.width,height:o.height})},r.open("GET",t,!0),r.responseType="arraybuffer",r.send()}else m.height=o.height,m.width=o.width,g.drawImage(o,0,0),i=e?m.toDataURL(e):m.toDataURL(),a.resolve({source:i,width:o.width,height:o.height})},o.src=t,a.promise}return p.exports=f}.apply(e,n))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(46),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.url=e.url,this.$type="VideoSymbol,http://www.Gs.com"}return t.extend2(o,n),o.prototype.copy=function(){return new o(this)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(46),n(15),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.frequency=e.frequency||8e3,this.animationSpeed=e.animationSpeed||.02,this.amplitude=e.amplitude||5,this.specularIntensity=e.specularIntensity||.8,this.fillColor=null==t.fillColor?new i({a:255,r:0,g:106,b:180}):e.fillColor,this.blendColor=null==t.blendColor?new i({a:255,r:0,g:186,b:255}):e.blendColor,this.clampToGround=t.clampToGround,this.isEffect=t.isEffect,this.$type="WaterSymbol,http://www.Gs.com"}return t.extend2(a,n),a.prototype.copy=function(){return new a({frequency:this.frequency,animationSpeed:this.animationSpeed,amplitude:this.amplitude,specularIntensity:this.specularIntensity,borderThickness:this.borderThickness,borderColor:void 0!==this.borderColor?this.borderColor.copy():new i({a:153,r:19,g:181,b:177}),fillColor:void 0!==this.fillColor?this.fillColor.copy():new i({a:153,r:19,g:181,b:177}),blendColor:void 0!==this.blendColor?this.blendColor.copy():new i({a:153,r:19,g:181,b:177}),clampToGround:this.clampToGround,isEffect:this.isEffect})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(108),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.texture=e.texture,this.$type="TextureLineSymbol,http://www.Gs.com"}return t.extend2(o,n),o.prototype.copy=function(){return new o({width:this.width,texture:this.texture.copy()})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(46),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.texture=e.texture,this.$type="TextureFillSymbol,http://www.Gs.com"}return t.extend2(o,n),o.prototype.copy=function(){return new o({borderColor:this.borderColor?this.borderColor.copy():void 0,borderThickness:this.borderThickness,opacity:this.opacity,texture:this.texture?this.texture.copy():void 0})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.contains=function(t,e){},i.prototype.crosses=function(t,e){},i.prototype.disjoint=function(t,e){},i.prototype.equal=function(t,e){},i.prototype.overlap=function(t,e){},i.prototype.within=function(t,e){},i.prototype.touches=function(t,e){},i.prototype.intersect=function(t,e){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(21),n(69),n(39),n,e,t],void 0===(r=function(t,n,i,e,r,o,a){function s(t){var e=t||{};i.call(this,e),this.source=e.source}t.extend2(s,i),s.prototype.toHtml=function(){return"<img src='{0}' draggable='false'>".replace("{0}",this.source)},s.prototype.getPatternType=function(){return e.PictureLegend};var l={name:"",icons:[]};return s.prototype.format=function(){var t=n.defer(),e=JSON.parse(JSON.stringify(l));return e.icons.push(this.source),t.resolve({legend:e}),t.promise},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this.builder=null}return i.prototype.setBuilder=function(t){this.builder=t},i.prototype.build=function(t){if(this.builder)return this.builder.build(t)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this.tool=null,this.layers=[],this.cursor=null,this.events=function(){var t={click:[],mousemove:[],mousedown:[],mouseup:[],dblclick:[],extentchanged:[],resize:[],resolutionchanged:[],tick:[]};return t}()}return i.prototype.init=function(t){},i.prototype.addLayer=function(t){this.layers.push(t)},i.prototype.getExtent=function(){},i.prototype.removeLayer=function(t){var e=this.layers.indexOf(t);0<e&&this.layers.splice(e,1)},i.prototype.moveLayer=function(t,e){if(-1<e&&e<this.layers.length)for(var n=0;n<this.layers.length;n++)if(t.name==this.layers[n].name){this.layers.splice(n,1),this.layers.splice(e,0,t);for(var i=0;i<this.layers.length;i++)this.layers[i].setZIndex(i);return}},i.prototype.setCursor=function(t){},i.prototype.getViewSize=function(){},i.prototype.getLayerCount=function(){return this.layers.length},i.prototype.getLayer=function(t){return this.layers[t]},i.prototype.getLayers=function(){return this.layers},i.prototype.getZoomLevel=function(){},i.prototype.getResolution=function(){},i.prototype.setResolution=function(){},i.prototype.getOrigin=function(){},i.prototype.findLayer=function(t){for(var e=0;e<this.layers.length;++e){var n=this.layers[e];if(n.name==t||n.id==t)return n}return null},i.prototype.on=function(t,e){t in this.events&&this.events[t].push(e)},i.prototype.un=function(t,e){if(t in this.events)for(var n=this.events[t],i=0,r=n.length;i<r;++i){n[i]===e&&(n.splice(i,1),i--,r--)}},i.prototype.getScale=function(){},i.prototype.toHtml=function(t){},i.prototype.fullExtent=function(){},i.prototype.zoomOut=function(){},i.prototype.zoomIn=function(){},i.prototype.zoomTo=function(t){},i.prototype.pan=function(t){},i.prototype.setCenter=function(t){},i.prototype.getPixelFromCoordinate=function(t){},i.prototype.getCoordinateFromPixel=function(t){},i.prototype.getCenter=function(){},i.prototype.export=function(t,e){},i.prototype.exportPDF=function(t){},i.prototype.stopDragPan=function(){},i.prototype.resumeDragPan=function(){},i.prototype.stopDbClick=function(){},i.prototype.resumeDbClick=function(){},i.prototype.currentTool=function(t){this.tool!=t&&(null!=this.tool&&this.tool.deactivate(),this.tool=t,null!=this.tool&&(this.cursor=this.tool.cursor))},i.prototype.onMouseClick=function(t,e,n,i,r,o,a){this.tool&&this.tool.onMouseClick(t,e,n,i,r,o,a);for(var s=0;s<this.events.click.length;++s){(0,this.events.click[s])(t,e,n,i,r,o,a)}},i.prototype.onMouseOver=function(t){null!=this.tool&&this.tool.onMouseOver(t)},i.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.tool&&this.tool.onMouseDown(t,e,n,i,r,o,a);for(var s=0;s<this.events.mousedown.length;++s){(0,this.events.mousedown[s])(t,e,n,i,r,o,a)}},i.prototype.onMouseUp=function(t,e,n,i,r,o,a){this.tool&&this.tool.onMouseUp(t,e,n,i,r,o,a);for(var s=0;s<this.events.mouseup.length;++s){(0,this.events.mouseup[s])(t,e,n,i,r,o,a)}},i.prototype.onMouseMove=function(t,e,n,i,r,o,a){this.tool&&this.tool.onMouseMove(t,e,n,i,r,o,a);for(var s=0;s<this.events.mousemove.length;++s){(0,this.events.mousemove[s])(t,e,n,i,r,o,a)}},i.prototype.onExtentChanged=function(t,e,n,i){for(var r=0;r<this.events.extentchanged.length;++r){(0,this.events.extentchanged[r])(t,e,n,i)}},i.prototype.onTick=function(t){for(var e=0;e<this.events.tick.length;++e){(0,this.events.tick[e])(t)}},i.prototype.onDblclick=function(t,e,n,i){for(var r=0;r<this.events.dblclick.length;++r){(0,this.events.dblclick[r])(t,e,n,i)}},i.prototype.onResolutionChanged=function(t,e,n){for(var i=0;i<this.events.resolutionchanged.length;++i){(0,this.events.resolutionchanged[i])(t,e,n)}},i.prototype.onResize=function(t,e){for(var n=0;n<this.events.resize.length;++n){(0,this.events.resize[n])(t,e)}},i.prototype.format=function(t,e,n,i){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(21),n(450),n(9),n(64),n(13),n(1),n(11),n(27),n,e,t],void 0===(r=function(t,d,i,r,y,m,e,n,g,o,a,s){function v(t){t=t||{},i.call(this,t),this.interactions=new r.Collection,this.dragPan=new r.interaction.DragPan({kinetic:new r.Kinetic(-.005,.05,100)}),this.mouseWheelZoom=new r.interaction.MouseWheelZoom,this.doubleClickZoom=new r.interaction.DoubleClickZoom,this.pinchZoom=new r.interaction.PinchZoom,this.pinchRotate=new r.interaction.PinchRotate,this.keyboardPan=new r.interaction.KeyboardPan,this.interactions.push(this.dragPan),this.interactions.push(this.mouseWheelZoom),this.interactions.push(this.doubleClickZoom),this.interactions.push(this.pinchZoom),this.interactions.push(this.pinchRotate),this.interactions.push(this.keyboardPan);var e=t.defaultExtent||{},n=e.projection||"EPSG:3857";this.spatialReference=parseInt(n.split(":")[1]),this.fullExtent=t.fullExtent,this.tool=null,this.map=t.map||new r.Map({view:new r.View({maxZoom:e.maxZoom||15,minZoom:e.minZoom||2,center:e.center||[0,0],zoom:e.level||6,projection:function(t){var e=t.projection?t.projection:"EPSG:3857";return t.extent?new r.proj.Projection({code:t.projection,extent:t.extent,global:!0}):e}(e)}),overlays:[],interactions:this.interactions}),this.autoMap=!0,t.map&&(this.autoMap=!1),this._patternLayer=void 0,this.dpi=t.dpi||144,this.layout=t.layout||"layout",this.outputFormat=t.outputFormat||"pdf",this.producer=t.producer||"Gsafety",this.unit=t.unit||"Gsafety",this.userCustomData=t.userCustomData,this.IsTransform=void 0!==t.IsTransform&&t.IsTransform,this.transformProj=t.transformProj}var l=null;t.extend2(v,i),v.prototype.setPatternLayer=function(t){(this._patternLayer=t).map=this},v.prototype.getPatternLayer=function(){return this._patternLayer},v.prototype.init=function(t){this.map.setTarget(t.targetId),l=t.targetId,this.map.updateSize();var e=this.map;e.getControls().forEach(function(t){e.removeControl(t)}),this.bindEvents(),this.bindKeyEvent()},v.prototype.bindKeyEvent=function(){var t=this.map.getViewport(),e=this;t.addEventListener("keydown",function(t){e.tool&&e.tool.onKeyDown(t.keyCode,t.shiftKey)}),t.addEventListener("keyup",function(t){e.tool&&e.tool.onKeyUp(t.keyCode,t.shiftKey)})},v.prototype.bindEvents=function(){this.map.on("click",this.onClick,this),this.map.on("pointermove",this.onMouseMove,this),this.map.on("pointerdown",this.onMouseDown,this),this.map.on("pointerup",this.onMouseUp,this),this.map.on("dblclick",this.onDblclick,this),this.map.on("moveend",this.onExtentChanged,this),this.map.on("change:size",this.onResize,this),this.map.on("postcompose",this.onTick,this),this.map.getView().on("change:resolution",this.onResolutionChanged,this)},v.prototype.getZoomLevel=function(){return this.map.getView().getZoom()},v.prototype.getExtent=function(){var t=this.map.getSize(),e=this.map.getView().calculateExtent(t);return new m({minx:e[0],miny:e[1],maxx:e[2],maxy:e[3],spatialReference:this.spatialReference})},v.prototype.pan=function(t,e){var n=this.map.getView(),i=this.map.getSize(),r=t.envelope();n.fit([r.minx,r.miny,r.maxx,r.maxy],i,{padding:e||[10,10,10,10]})},v.prototype.zoomOut=function(){var t=this.map.getView();t.setZoom(t.getZoom()-1)},v.prototype.zoomIn=function(){var t=this.map.getView();t.setZoom(t.getZoom()+1)},v.prototype.zoomTo=function(t){this.map.getView().setZoom(t)},v.prototype.setCenter=function(t){var e=this.map.getView(),n=new r.animation.pan({duration:100,source:e.getCenter()});this.map.beforeRender(n),e.setCenter([t.x,t.y])};var u=new e;v.prototype.getCenter=function(){var t=this.map.getView().getCenter();return u.x=t[0],u.y=t[1],u.spatialReference=this.spatialReference,u},v.prototype.getResolution=function(){return this.map.getView().getResolution()},v.prototype.setResolution=function(t){this.map.getView().setResolution(t)},v.prototype.getOrigin=function(){var t=this.map.getView().getProjection().getExtent();return r.extent.getTopLeft(t)},v.prototype.getViewSize=function(){return this.map.getSize()},v.prototype.fullExtent=function(){var t=this.map.getView();t.setCenter(this.fullExtent.center),t.setZoom(this.fullExtent.level)},v.prototype.getPixelFromCoordinate=function(t){return this.map.getPixelFromCoordinate(t)},v.prototype.getCoordinateFromPixel=function(t){return this.map.getCoordinateFromPixel(t)},v.prototype.addLayer=function(t){null!=t&&(v.prototype.uber.addLayer.call(this,t),this.autoMap&&this.map.addLayer(t.getLayer()))},v.prototype.removeLayer=function(t){t.clear(),v.prototype.uber.removeLayer.call(this,t),this.autoMap&&this.map.removeLayer(t.getLayer())},v.prototype.moveLayer=function(t,e){null!=t&&v.prototype.uber.moveLayer.call(this,t,e)},v.prototype.onResolutionChanged=function(t){var e=t.oldValue,n=this.map.getView(),i=n.getResolution(),r=n.getZoom();v.prototype.uber.onResolutionChanged.call(this,i,e,r)},v.prototype.onTick=function(t){var e=t.frameState.time;this.uber.onTick.call(this,e)},v.prototype.stopDragPan=function(){this.draggpanFlag&&this.map.removeInteraction(this.dragPan),this.draggpanFlag=!1},v.prototype.resumeDragPan=function(){this.removeInteractionsFlag||(this.draggpanFlag||this.map.addInteraction(this.dragPan),this.draggpanFlag=!0,this.setCursor("pointer"))},v.prototype.stopDbClick=function(){this.dbClickFlag&&this.map.removeInteraction(this.doubleClickZoom),this.dbClickFlag=!1},v.prototype.resumeDbClick=function(){if(!this.removeInteractionsFlag){var t=this;setTimeout(function(){t.dbClickFlag||t.map.addInteraction(t.doubleClickZoom),t.dbClickFlag=!0},300)}},v.prototype.onExtentChanged=function(t){var e=this.map.getView(),n=t.frameState.extent,i=(n[0]+n[2])/2,r=(n[1]+n[3])/2,o=e.getProjection().getExtent(),a=o[0],s=o[1],l=o[2],u=o[3],h=i,c=r,p=!1;if(o&&(l<i&&1e-5<Math.abs(l-i)?(h=l,p=!0):i<a&&1e-5<Math.abs(a-i)&&(h=a,p=!0),u<r&&1e-5<Math.abs(u-r)?(c=u,p=!0):r<s&&1e-5<Math.abs(s-r)&&(c=s,p=!0),p)){this.map.un("moveend",this.onExtentChanged,this),e.setCenter([h,c]);var f=this;setTimeout(function(){f.map.on("moveend",f.onExtentChanged,f)},500)}v.prototype.uber.onExtentChanged.call(this,n[0],n[3],n[2],n[1])},v.prototype.onClick=function(t){var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];v.prototype.uber.onMouseClick.call(this,e,!1,n,i,r,o,!1)},v.prototype.onMouseDown=function(t){this.map.getViewport().setAttribute("tabindex",1);var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];v.prototype.uber.onMouseDown.call(this,e,!1,n,i,r,o,!1)},v.prototype.onMouseUp=function(t){var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];v.prototype.uber.onMouseUp.call(this,e,!1,n,i,r,o,!1)},v.prototype.onMouseMove=function(t){var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];v.prototype.uber.onMouseMove.call(this,e,!1,n,i,r,o,!1)},v.prototype.onDblclick=function(t){var e=t.pixel,n=t.coordinate;null!=this.tool&&this.tool.onDblclick(t.originalEvent.button),v.prototype.uber.onDblclick.call(this,e[0],e[1],n[0],n[1])},v.prototype.setCursor=function(t){var e=t||"pointer";this.map.getViewport().style.cursor=e},v.prototype.onResize=function(t){var e=this.getViewSize(),n=t.oldValue;v.prototype.uber.onResize.call(this,e,n)},v.prototype.getScale=function(){var t=this.map.getView().getResolution();return parseInt(72*t*39.3701)},v.prototype.toHtml=function(n){var t=document.getElementById(l);html2canvas(t,{allowTaint:!0,useCORS:!0}).then(function(t){var e=document.createElement("div");e.appendChild(t),n(e)})},v.prototype.export=function(p,f,d){var t=document.getElementById(l);html2canvas(t,{allowTaint:!0}).then(function(t){for(var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/),n=!!e&&parseInt(e[1]),i=t.toDataURL().replace(/^data:image\/png;base64,/,""),r=atob(i),o=new ArrayBuffer(r.length),a=new Uint8Array(o),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);var l=new Blob([a],{type:"image/"+f});if(""==p&&(p=g.newGuid()),n){if(navigator.msSaveBlob)return navigator.msSaveBlob(l,p+"."+f)}else{var u=document.createElement("a"),h=window.URL.createObjectURL(l);"download"in u?u.setAttribute("download",p):u.setAttribute("target","_blank"),u.href=h;var c=document.createEvent("MouseEvents");c.initEvent("click",!0,!0),u.dispatchEvent(c),d()}})},v.prototype.exportPDF=function(i){var t=document.getElementById(l);html2canvas(t,{allowTaint:!0}).then(function(t){var e=t.toDataURL(),n=new jsPDF("l","mm",[t.width,t.height]);n.addImage(e,"png",0,0,t.width,t.height,void 0,"fast"),n.save(i+".pdf")})};var x={outputFormat:"png",layout:"A4 landscape1",mapTitle:"Map Print",producer:"小明",unit:"Gsafety",attributes:{map:{projection:"EPSG:4490",dpi:72,rotation:0,bbox:[-180,-90,180,90],longitudeFirst:!0,layers:[]}}};return v.prototype.format=function(t,e,n){var i=JSON.parse(JSON.stringify(x));i.mapTitle=t,i.layout=this.layout,i.outputFormat=this.outputFormat,i.producer=this.producer,i.unit=this.unit,this.userCustomData&&(i.userCustomData=this.userCustomData);var r=i.attributes.map;r.projection="EPSG:"+this.spatialReference;var o=this.getExtent();if(r.bbox=e||[o.minx,o.miny,o.maxx,o.maxy],this.IsTransform&&this.transformProj){var a=new m({minx:r.bbox[0],miny:r.bbox[1],maxx:r.bbox[2],maxy:r.bbox[3],spatialReference:this.spatialReference}),s=y.transGeometryToGCJ(a,this.transformProj);r.bbox=[s.minx,s.miny,s.maxx,s.maxy]}r.dpi=this.dpi;for(var l=this.getLayerCount(),u=d.defer(),h=l-1;0<=h;--h){var c=this.getLayer(h);if(c.enableFormat()){var p=c.formatLayer(c.level,c.printMaxZoom,this.IsTransform,this.transformProj,n);p&&r.layers.push(p)}}if(this._patternLayer){var f=this._patternLayer.format();[].push(f),f.then(function(t){var e=i.attributes;for(var n in t)e[n]=t[n];u.resolve(i)})}else u.resolve(i);return u.promise},s.exports=v}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.poorEffect=0,i.generalEffect=1,i.wellEffect=2,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.A9="A9",i.A9_LandScape="A9_LandScape",i.A8="A8",i.A8_LandScape="A8_LandScape",i.A7="A7",i.A7_LandScape="A7_LandScape",i.A6="A6",i.A6_LandScape="A6_LandScape",i.A5="A5",i.A5_LandScape="A5_LandScape",i.A4="A4",i.A4_LandScape="A4_LandScape",i.A3="A3",i.A3_LandScape="A3_LandScape",i.A2="A2",i.A2_LandScape="A2_LandScape",i.A1="A1",i.A1_LandScape="A1_LandScape",i.A0="A0",i.A0_LandScape="A0_LandScape",i.two_A0="2A0",i.two_A0_LandScape="2A0_LandScape",i.four_A0="4A0",i.four_A0_LandScape="4A0_LandScape",i.getPixelSize=function(t){var e=[3370,2384];switch(t){case"4A0":e=[6357,8988];break;case"2A0":e=[4494,6357];break;case"A0":e=[3179,4494];break;case"A1":e=[2245,3179];break;case"A2":e=[1587,2245];break;case"A3":e=[1123,1587];break;case"A4":e=[794,1123];break;case"A5":e=[559,794];break;case"A6":e=[397,559];break;case"A7":e=[280,397];break;case"A8":e=[197,280];break;case"A9":e=[140,197];break;case"4A0_LandScape":e=[8988,6357];break;case"2A0_LandScape":e=[6357,4494];break;case"A0_LandScape":e=[4494,3179];break;case"A1_LandScape":e=[3179,2245];break;case"A2_LandScape":e=[2245,1587];break;case"A3_LandScape":e=[1587,1123];break;case"A4_LandScape":e=[1123,794];break;case"A5_LandScape":e=[794,559];break;case"A6_LandScape":e=[559,397];break;case"A7_LandScape":e=[397,280];break;case"A8_LandScape":e=[280,197];break;case"A9_LandScape":e=[197,140]}return e},i.getInchSize=function(t){var e=[46.8,33.1];switch(t){case"4A0":e=[66.2,93.6];break;case"2A0":e=[46.8,66.2];break;case"A0":e=[33.1,46.8];break;case"A1":e=[23.4,33.1];break;case"A2":e=[16.5,23.4];break;case"A3":e=[11.7,16.5];break;case"A4":e=[8.3,11.7];break;case"A5":e=[5.8,8.3];break;case"A6":e=[4.1,5.8];break;case"A7":e=[2.9,4.1];break;case"A8":e=[2,2.9];break;case"A9":e=[1.5,2];break;case"4A0_LandScape":e=[93.6,66.2];break;case"2A0_LandScape":e=[66.2,46.8];break;case"A0_LandScape":e=[46.8,33.1];break;case"A1_LandScape":e=[33.1,23.4];break;case"A2_LandScape":e=[23.4,16.5];break;case"A3_LandScape":e=[16.5,11.7];break;case"A4_LandScape":e=[11.7,8.3];break;case"A5_LandScape":e=[8.3,5.8];break;case"A6_LandScape":e=[5.8,4.1];break;case"A7_LandScape":e=[4.1,2.9];break;case"A8_LandScape":e=[2.9,2];break;case"A9_LandScape":e=[2,1.5]}return e},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.add=function(t){},i.prototype.update=function(t){},i.prototype.remove=function(t){},i.prototype.getCount=function(){},i.prototype.get=function(t){},i.prototype.clear=function(){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(456),n(457),n(458),n(459),n(460),n(88),n(89),n(206),n(90),n(207),n(208),n(209),n(210),n(211),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(144),n(468),n(145),n(469),n(72),n(212),n(213),n(470),n(214),n(471),n(230),n(216),n(215),n(231),n(205),n(472),n(473),n(232),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(60),n(20),n(54),n(488),n(489),n(151),n(236),n(490),n(237),n(491),n(238),n(239),n(240),n(241),n(242),n(19),n(243),n(152),n(495),n(247),n(248),n(249),n(250),n(251),n(94),n(252),n(253),n(254),n(113),n(255),n(256),n(11),n(496),n(497),n(498),n(257),n(499),n(43),n(500),n(501),n(502),n(159),n(503),n(504),n(505),n(265),n(124),n(122),n(125),n(282),n(506),n(507),n(283),n(154),n(284),n(164),n(171),n(285),n(129),n(508),n(161),n(290),n(509),n(260),n(510),n(511),n(288),n(162),n(158),n(266),n(165),n(512),n(286),n(264),n(44),n(263),n(289),n(64),n(267),n(163),n(261),n(287),n(155),n(513),n(514),n(515),n(516),n(291),n(268),n(166),n(270),n(272),n(277),n(518),n(273),n(168),n(276),n(271),n(269),n(170),n(167),n(275),n(169),n(274),n(123),n(519),n(520),n(294),n(521),n(522),n(523),n(524),n(525),n(526),n(173),n(527),n(528),n(529),n(530),n(80),n(531),n(14),n(533),n(298),n(534),n(79),n(66),n(295),n(130),n(297),n(299),n(301),n(535),n(300),n(296),n(302),n(65),n(174),n(131),n(175),n(536),n(537),n(538),n(303),n(539),n(81),n(540),n(541),n(542),n(543),n(544),n(304),n(545),n(546),n(176),n(547),n(548),n(177),n(550),n(552),n(553),n(554),n(555),n(556),n(281),n(0),n(10),n(128),n(244),n(246),n(23),n(245),n(557),n(56),n(112),n(179),n(558),n(27),n(37),n(21),n(559),n(560),n(561),n(306),n(562),n(150),n(45),n(563),n(564),n(565),n(566),n(107),n(567),n(568),n(569),n(570),n(311),n(571),n(312),n(572),n(18),n(573),n(133),n(313),n(16),n(67),n(574),n(12),n(575),n(576),n(577),n(315),n(578),n(316),n(317),n(97),n(579),n(580),n(581),n(582),n(318),n(583),n(584),n(319),n(585),n(183),n(184),n(586),n(587),n(588),n(589),n(590),n(591),n(592),n(593),n(321),n(594),n(595),n(322),n(596),n(320),n(185),n(597),n(323),n(598),n(599),n(324),n(600),n(601),n(326),n(602),n(603),n(327),n(328),n(329),n(330),n(604),n(331),n(332),n(605),n(606),n(607),n(608),n(186),n(609),n(610),n(333),n(334),n(611),n(612),n(613),n(614),n(336),n(615),n(616),n(337),n(617),n(356),n(618),n(619),n(339),n(341),n(83),n(68),n(343),n(344),n(345),n(82),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(187),n(342),n(354),n(340),n(134),n(355),n(338),n(357),n(620),n(621),n(358),n(188),n(96),n(622),n(623),n(361),n(362),n(360),n(190),n(191),n(359),n(189),n(624),n(363),n(625),n(367),n(626),n(365),n(364),n(366),n(627),n(192),n(628),n(629),n(630),n(631),n(632),n(633),n(634),n(368),n(635),n(636),n(193),n(637),n(638),n(639),n(640),n(372),n(641),n(642),n(369),n(370),n(371),n(373),n(98),n(135),n(374),n(376),n(375),n(643),n(644),n(645),n(646),n(378),n(377),n(647),n(648),n(649),n(650),n(379),n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(194),n(658),n(659),n(660),n(661),n(380),n(662),n(382),n(663),n(383),n(381),n(384),n(385),n(664),n(665),n(666),n(386),n(387),n(388),n(389),n(390),n(667),n(668),n(391),n(392),n(393),n(394),n(396),n(395),n(397),n(406),n(669),n(398),n(407),n(399),n(400),n(401),n(402),n(403),n(404),n(408),n(405),n(410),n(409),n(99),n(136),n(100),n(101),n(670),n(411),n(412),n(413),n(414),n(671),n(416),n(417),n(415),n(195),n(672),n(137),n(673),n(674),n(675),n(418),n(676),n(677),n(678),n(679),n(680),n(681),n(419),n(682),n(683),n(684),n(420),n(421),n(685),n(686),n(687),n(422),n(423),n(688),n(689),n(138),n(424),n(425),n(690),n(691),n(196),n(293),n(292),n(426),n(692),n(106),n(693),n(694),n(695),n(696),n(697),n(698),n(141),n(699),n(42),n(700),n(701),n(102),n(71),n(233),n(235),n(234),n(87),n(26),n(702),n(703),n(704),n(428),n(705),n(427),n(335),n(4),n(7),n(430),n(706),n(707),n(708),n(709),n(710),n(711),n(432),n(431),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(719),n(720),n(721),n(722),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(103),n(737),n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(104),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(433),n(434),n(862),n(436),n(863),n(172),n(864),n(437),n(865),n(867),n(51),n(868),n(869),n(139),n(870),n(438),n(871),n(280),n(147),n(262),n(435),n(105),n(279),n(33),n(62),n(181),n(36),n(217),n(259),n(76),n(872),n(310),n(50),n(35),n(114),n(118),n(25),n(115),n(116),n(61),n(77),n(258),n(127),n(429),n(73),n(38),n(873),n(17),n(109),n(874),n(875),n(876),n(160),n(30),n(877),n(878),n(198),n(879),n(439),n(75),n(117),n(55),n(880),n(881),n(882),n(440),n(278),n(883),n(126),n(110),n(221),n(222),n(91),n(223),n(146),n(224),n(49),n(13),n(229),n(22),n(58),n(47),n(325),n(153),n(884),n(8),n(52),n(885),n(29),n(48),n(220),n(59),n(74),n(24),n(219),n(2),n(225),n(1),n(92),n(93),n(226),n(5),n(3),n(6),n(886),n(227),n(148),n(218),n(142),n(228),n(887),n(888),n(143),n(889),n(890),n(891),n(892),n(70),n(308),n(307),n(15),n(893),n(894),n(895),n(63),n(896),n(897),n(46),n(898),n(197),n(119),n(120),n(108),n(78),n(57),n(899),n(121),n(41),n(86),n(156),n(157),n(441),n(32),n(28),n(31),n(900),n(901),n(902),n(53),n(442),n(904),n(34),n(140),n(446),n(445),n(905),n(95),n(443),n(444),n(309),n(447),n(180),n(906),n(907),n(908),n(909),n(910),n(911),n(450),n(449),n(912),n(453),n(451),n(452),n(913),n(914),n(915),n(454),n(916),n(305),n(917),n(918),n(69),n(919),n(920),n(40),n(84),n(85),n(204),n(448),n(921),n(202),n(39),n(201),n(203),n(199),n(200),n(178),n(922),n(132)],void 0===(r=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C,M,T,A,E,I,L,R,O,N,k,z,D,F,G,j,V,q,B,U,W,Z,X,H,Y,K,J,Q,$,tt,et,nt,it,rt,ot,at,st,lt,ut,ht,ct,pt,ft,dt,yt,mt,gt,vt,xt,_t,wt,bt,Pt,St,Ct,Mt,Tt,At,Et,It,Lt,Rt,Ot,Nt,kt,zt,Dt,Ft,Gt,jt,Vt,qt,Bt,Ut,Wt,Zt,Xt,Ht,Yt,Kt,Jt,Qt,$t,te,ee,ne,ie,re,oe,ae,se,le,ue,he,ce,pe,fe,de,ye,me,ge,ve,xe,_e,we,be,Pe,Se,Ce,Me,Te,Ae,Ee,Ie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qp,$p,tf,ef,nf,rf,of,af,sf,lf,uf,hf,cf,pf,ff,df,yf,mf,gf,vf,xf,_f,wf,bf,Pf,Sf,Cf,Mf,Tf,Af,Ef,If,Lf,Rf,Of,Nf,kf,zf,Df,Ff,Gf,jf,Vf,qf,Bf,Uf,Wf,Zf,Xf,Hf,Yf,Kf,Jf,Qf,$f,td,ed,nd,id,rd,od,ad,sd,ld,ud,hd,cd,pd,fd,dd,yd,md,gd,vd,xd,_d,wd,bd,Pd,Sd,Cd,Md,Td,Ad,Ed,Id,Ld,Rd,Od,Nd,kd,zd,Dd,Fd,Gd,jd,Vd,qd,Bd,Ud,Wd,Zd,Xd,Hd,Yd,Kd,Jd,Qd,$d,ty,ey,ny,iy,ry,oy,ay,sy,ly,uy,hy,cy,py,fy,dy,yy,my,gy,vy,xy,_y,Ha,wy,by,Py,Sy,Cy,My,Ty,Ay,Ey,Iy,Ly,Ry,Oy,Ny,ky,zy,Dy,Fy,Gy,jy,Vy,qy,By,Uy){var Wy=Wy||{};return Wy.advan=Wy.advan||{},Wy.analyst=Wy.analyst||{},Wy.ani=Wy.ani||{},Wy.basic=Wy.basic||{},Wy.carto=Wy.carto||{},Wy.cat=Wy.cat||{},Wy.control=Wy.control||{},Wy.core=Wy.core||{},Wy.draw=Wy.draw||{},Wy.ews=Wy.ews||{},Wy.gdm=Wy.gdm||{},Wy.interact=Wy.interact||{},Wy.plot=Wy.plot||{},Wy.render=Wy.render||{},Wy.sfs=Wy.sfs||{},Wy.them=Wy.them||{},Wy.tour=Wy.tour||{},Wy.widget=Wy.widget||{},Wy.advan.ClearGeocoderCommand=t,Wy.advan.GeocoderTool=e,Wy.advan.IdentifySearchAddressTool=n,Wy.advan.IdentifySearchAroundTool=i,Wy.advan.SearchAroundAddressTool=r,Wy.ani.AnimationEffects=o,Wy.ani.AnimationParameter=a,Wy.ani.AnimationState=s,Wy.ani.FlashParameter=l,Wy.ani.IAnimation=u,Wy.ani.IAnimationClip=h,Wy.ani.IAnimationCreator=c,Wy.ani.IAnimationPlayer=p,Wy.ani.IAnimator=f,Wy.ani.PictureFlashParameter=d,Wy.ani.PictureRotationParameter=y,Wy.ani.PictureSlideParameter=m,Wy.ani.PolygonFlashParameter=g,Wy.ani.PolylineFlashParameter=v,Wy.ani.SimpleFlashParameter=x,Wy.ani.SimpleSlideParameter=_,Wy.ani.SlideParameter=w,Wy.ani.SpreadEarthquakeParameter=b,Wy.ani.SpreadParameter=P,Wy.ani.SpreadWaterRippleParameter=S,Wy.ani.Animation=C,Wy.ani.AnimationClip=M,Wy.ani.AnimationCreator=T,Wy.ani.Animator=A,Wy.ani.FlashAnimation=E,Wy.ani.MarkerRotateAnimation=I,Wy.ani.PictureRotationAnimation=L,Wy.ani.SlideAnimation=R,Wy.ani.SpreadAnimation=O,Wy.ani.Storage=N,Wy.basic.ClearLayersCommand=k,Wy.basic.CompositeCommand=z,Wy.basic.DeleteElementCommand=D,Wy.basic.DeleteGraphicCommand=F,Wy.basic.ExportMapPdfCommand=G,Wy.basic.IdentifyBaseMapTool=j,Wy.basic.IdentifyElementTool=V,Wy.basic.IdentifyFeatureTool=q,Wy.basic.IdentifyRenderFeatureTool=B,Wy.basic.LeadLabelEditTool=U,Wy.basic.CutRasterLayerTool=W,Wy.basic.CutVectorLayerTool=Z,Wy.basic.AddFeatureTool=X,Wy.basic.EditFeatureTool=H,Wy.basic.MeasureTool=Y,Wy.basic.PictureConverter=K,Wy.basic.LocationService=J,Wy.basic.TopoTool=Q,Wy.carto.BaiduCoordinateTransform=$,Wy.carto.Graphic=tt,Wy.carto.GraphicSelectionSet=et,Wy.carto.Heat=nt,Wy.carto.IBimLayer=it,Wy.carto.IBlankStrategy=rt,Wy.carto.IBlankTaker=ot,Wy.carto.IBuildingLayer=at,Wy.carto.IClusterLayer=st,Wy.carto.IContourLayer=lt,Wy.carto.IElementLayer=ut,Wy.carto.IFeatureLayer=ht,Wy.carto.IGroupLayer=ct,Wy.carto.IHeatMapLayer=pt,Wy.carto.IImageLayer=ft,Wy.carto.ILayer=dt,Wy.carto.ILayerCreator=yt,Wy.carto.IMBTileLayer=mt,Wy.carto.IModelLayer=gt,Wy.carto.IPanoCoverageLayer=vt,Wy.carto.IPatternLayer=xt,Wy.carto.IPointsLayer=_t,Wy.carto.IProxyLayer=wt,Wy.carto.ISourceCreator=bt,Wy.carto.ITileLayer=Pt,Wy.carto.ITrafficLayer=St,Wy.carto.IVectorLayer=Ct,Wy.carto.IVectorTileLayer=Mt,Wy.carto.IWeaRadarLayer=Tt,Wy.carto.IWindLayer=At,Wy.carto.ImageType=Et,Wy.carto.LayerType=It,Wy.carto.ModelLayer=Lt,Wy.carto.ParticleLayer=Rt,Wy.carto.PipleLayer=Ot,Wy.carto.ReplaceBlankStrategy=Nt,Wy.carto.TerrainLayer=kt,Wy.carto.TileType=zt,Wy.carto.AMVTVectorTileLayer=Dt,Wy.carto.AVectorTileGroupLayer=Ft,Wy.carto.AVectorTileLayer=Gt,Wy.carto.AddElement=jt,Wy.carto.BDPanoCoverageLayer=Vt,Wy.carto.BaiDuLayer=qt,Wy.carto.BingLayer=Bt,Wy.carto.CanvasLayer=Ut,Wy.carto.ClusterLayer=Wt,Wy.carto.ElementLayer=Zt,Wy.carto.FeatureLayer=Xt,Wy.carto.FeatureRenderLayer=Ht,Wy.carto.GaoDeLayer=Yt,Wy.carto.GoogleLayer=Kt,Wy.carto.GridLayer=Jt,Wy.carto.GroupLayer=Qt,Wy.carto.HeatMapLayer=$t,Wy.carto.HighlightElement=te,Wy.carto.HighlightGeometry=ee,Wy.carto.HoneyCombLayer=ne,Wy.carto.ImageLayer=ie,Wy.carto.LayerCreator=re,Wy.carto.LayerSourceCreator=oe,Wy.carto.LeadLabelLayer=ae,Wy.carto.MBTileLayer=se,Wy.carto.MVTVectorTileLayer=le,Wy.carto.PatternLayer=ue,Wy.carto.PointsLayer=he,Wy.carto.ProxyLayer=ce,Wy.carto.RemoveElement=pe,Wy.carto.RenderFeature=fe,Wy.carto.SelectEditElement=de,Wy.carto.SelectElement=ye,Wy.carto.TencentLayer=me,Wy.carto.TianDiTuLayer=ge,Wy.carto.TileCreator=ve,Wy.carto.TileLayer=xe,Wy.carto.TileSuperMapRest=_e,Wy.carto.TrafficLayer=we,Wy.carto.TransGeoJson=be,Wy.carto.UnselectEditElement=Pe,Wy.carto.UpdateElement=Se,Wy.carto.VectorGroupLayer=Ce,Wy.carto.VectorLayer=Me,Wy.carto.VectorTileLayer=Te,Wy.carto.WeaRadarFeatureLayer=Ae,Wy.carto.WeaRadarImageLayer=Ee,Wy.carto.WeaRadarLayer=Ie,Wy.carto.WindLayer=Le,Wy.carto.ZoomStrategy=Re,Wy.carto.ElementStatistics=Oe,Wy.carto.GroupStatisticsInput=Ne,Wy.carto.GroupStatisticsOutput=ke,Wy.carto.KindCell=ze,Wy.carto.KindGroup=De,Wy.carto.KindItem=Fe,Wy.carto.KindRow=Ge,Wy.carto.KindStatisticsInput=je,Wy.carto.KindStatisticsItem=Ve,Wy.carto.KindStatisticsOutput=qe,Wy.carto.PlotStatistics=Be,Wy.carto.StatisticsField=Ue,Wy.carto.StatisticsInput=We,Wy.carto.StatisticsItem=Ze,Wy.carto.StatisticsOutput=Xe,Wy.carto.StatisticsRow=He,Wy.carto.StatisticsWay=Ye,Wy.carto.ICamera=Ke,Wy.carto.IGlobe=Je,Wy.carto.IMap=Qe,Wy.carto.Map=$e,Wy.carto.ArcGISRest=tn,Wy.carto.BaiduMap=en,Wy.carto.BingMaps=nn,Wy.carto.Contour=rn,Wy.carto.Google=on,Wy.carto.Image=an,Wy.carto.ImageStatic=sn,Wy.carto.ImageWMS=ln,Wy.carto.OSM=un,Wy.carto.Offline=hn,Wy.carto.Source=cn,Wy.carto.SourceCreator=pn,Wy.carto.SourceType=fn,Wy.carto.SuperMap=dn,Wy.carto.Terrain=yn,Wy.carto.Tianditu=mn,Wy.carto.Tile=gn,Wy.carto.TileImage=vn,Wy.carto.TileWMS=xn,Wy.carto.Vector=_n,Wy.carto.VectorTile=wn,Wy.carto.WBMS=bn,Wy.carto.WDMS=Pn,Wy.carto.WES=Sn,Wy.carto.WFS=Cn,Wy.carto.WMTS=Mn,Wy.carto.WPMS=Tn,Wy.carto.XYZ=An,Wy.cat.CatalogDescriptor=En,Wy.cat.ICatalogDescriptorService=In,Wy.cat.RestCatalogDescriptorService=Ln,Wy.cat.BubbleRenderDescriptor=Rn,Wy.cat.Classification=On,Wy.cat.ClassifyRenderDescriptor=Nn,Wy.cat.IRenderDescriptorService=kn,Wy.cat.IntensityRenderDescriptor=zn,Wy.cat.RenderDescriptor=Dn,Wy.cat.RestRenderDescriptorService=Fn,Wy.cat.SimpleRenderDescriptor=Gn,Wy.cat.UniqueRenderDescriptor=jn,Wy.cat.UniqueStyle=Vn,Wy.cat.GEntityStyleDescriptor=qn,Wy.cat.IStyleDescriptorService=Bn,Wy.cat.MapStyleDescriptor=Un,Wy.cat.RestStyleDescriptorService=Wn,Wy.cat.StyleDescriptor=Zn,Wy.cat.StyleSummary=Xn,Wy.control.BaiduPanoramaControl=Hn,Wy.control.BasePanoramaControl=Yn,Wy.control.TencentPanoramaControl=Kn,Wy.control.FullScreenControl=Jn,Wy.control.InfoWindowControl=Qn,Wy.control.OverviewMap=$n,Wy.control.ScaleControl=ti,Wy.control.ZoomControl=ei,Wy.core.ClassTable=ni,Wy.core.ClassUtil=ii,Wy.core.DefineProperties=ri,Wy.core.Deserializer=oi,Wy.core.IHttp=ai,Wy.core.RequestErrorEvent=si,Wy.core.RestHttp=li,Wy.core.RuntimeError=ui,Wy.core.WebSocket=hi,Wy.core.Base64Encode=ci,Wy.core.Cookie=pi,Wy.core.Event=fi,Wy.core.Format=di,Wy.core.Guid=yi,Wy.core.HashMap=mi,Wy.core.When=gi,Wy.draw.BringElementTopTool=vi,Wy.draw.BringFeatureTopTool=xi,Wy.draw.BufferDrawTool=_i,Wy.draw.BufferEditTool=wi,Wy.draw.DraftTool=bi,Wy.draw.DrawEditTool=Pi,Wy.draw.DrawTool=Si,Wy.draw.EditDrawTool=Ci,Wy.draw.FreeDrawTool=Mi,Wy.draw.SendElementBottomTool=Ti,Wy.draw.SendFeatureBottomTool=Ai,Wy.draw.GeometryBuilder=Ei,Wy.ews.Business=Ii,Wy.ews.BusinessCollection=Li,Wy.ews.CompreQueryOutput=Ri,Wy.ews.CompreStatisticOutput=Oi,Wy.ews.FeatureCollectionWrapper=Ni,Wy.ews.FeatureWrapper=ki,Wy.ews.GQueryFilter=zi,Wy.ews.GSpatialFilter=Di,Wy.ews.IGeoService=Fi,Wy.ews.PageQueryOutput=Gi,Wy.ews.QueryFilterWrapper=ji,Wy.ews.ResourceEntity=Vi,Wy.ews.RestGeoService=qi,Wy.ews.ServiceCapability=Bi,Wy.ews.ServiceIdentification=Ui,Wy.ews.ServiceInput=Wi,Wy.ews.ServiceMetadata=Zi,Wy.ews.ServiceOperation=Xi,Wy.ews.SpatialRel=Hi,Wy.ews.DataLayer=Yi,Wy.ews.DataQueryInput=Ki,Wy.ews.DataResult=Ji,Wy.ews.IDataService=Qi,Wy.ews.RestDataService=$i,Wy.ews.RestWBIMSService=tr,Wy.ews.RestWBMSService=er,Wy.ews.RestWOPSService=nr,Wy.ews.RestWTTSService=ir,Wy.ews.WBMSQueryResult=rr,Wy.ews.DicItem=or,Wy.ews.DicType=ar,Wy.ews.IDICSService=sr,Wy.ews.RestDICSService=lr,Wy.ews.AutoworkflowBaseInput=ur,Wy.ews.IWQPAPService=hr,Wy.ews.RestWOPPSService=cr,Wy.ews.RestWRSPSService=pr,Wy.ews.WOPPSAutoworkflowInput=fr,Wy.ews.WQPAPQueryInput=dr,Wy.ews.WRSPSAutoworkflowInput=yr,Wy.ews.TokenManager=mr,Wy.ews.TokenService=gr,Wy.ews.BufferAnalysisInput=vr,Wy.ews.BufferAnalysisResult=xr,Wy.ews.BufferCapStyle=_r,Wy.ews.BufferMode=wr,Wy.ews.IWBASService=br,Wy.ews.RestWBASService=Pr,Wy.ews.SimpleBufferInput=Sr,Wy.ews.SimpleBufferResult=Cr,Wy.ews.TopoOperationInput=Mr,Wy.ews.TopoOperationResult=Tr,Wy.ews.TopoOperationType=Ar,Wy.ews.TopoRelationInput=Er,Wy.ews.TopoRelationResult=Ir,Wy.ews.TopoRelationType=Lr,Wy.ews.FromType=Rr,Wy.ews.IWCCSService=Or,Wy.ews.RestWCCSService=Nr,Wy.ews.WCCSInput=kr,Wy.ews.CallBackActions=zr,Wy.ews.ConnectionObserver=Dr,Wy.ews.ConsultService=Fr,Wy.ews.EventNames=Gr,Wy.ews.ExtendMessage=jr,Wy.ews.IWCPSCallback=Vr,Wy.ews.IWCPSService=qr,Wy.ews.Meeting=Br,Wy.ews.MeetingPart=Ur,Wy.ews.MeetingRecord=Wr,Wy.ews.Member=Zr,Wy.ews.Message=Xr,Wy.ews.Messages=Hr,Wy.ews.PageMeetings=Yr,Wy.ews.PlotMessage=Kr,Wy.ews.RestWCPSService=Jr,Wy.ews.SimpleConsultService=Qr,Wy.ews.Topic=$r,Wy.ews.WCPSCallback=to,Wy.ews.WCPSCapability=eo,Wy.ews.WebSocketClient=no,Wy.ews.FeatureInput=io,Wy.ews.FeatureTypeInput=ro,Wy.ews.FilterFormat=oo,Wy.ews.FilterOutput=ao,Wy.ews.IWFSService=so,Wy.ews.RestWFSService=lo,Wy.ews.WFSCapabilitiesInput=uo,Wy.ews.And=ho,Wy.ews.Bbox=co,Wy.ews.Comparison=po,Wy.ews.ComparisonBinary=fo,Wy.ews.Contains=yo,Wy.ews.During=mo,Wy.ews.EqualTo=go,Wy.ews.Filter=vo,Wy.ews.GreaterThan=xo,Wy.ews.GreaterThanOrEqualTo=_o,Wy.ews.Intersects=wo,Wy.ews.IsBetween=bo,Wy.ews.IsLike=Po,Wy.ews.IsNull=So,Wy.ews.LessThan=Co,Wy.ews.LessThanOrEqualTo=Mo,Wy.ews.LogicalNary=To,Wy.ews.Not=Ao,Wy.ews.NotEqualTo=Eo,Wy.ews.Or=Io,Wy.ews.Spatial=Lo,Wy.ews.Within=Ro,Wy.ews.xml=Oo,Wy.ews.IWGCSService=No,Wy.ews.RestWGCSService=ko,Wy.ews.WGCSInput=zo,Wy.ews.WGCSResult=Do,Wy.ews.CrawHandler=Fo,Wy.ews.Description=Go,Wy.ews.FetchCraw=jo,Wy.ews.GatherHandler=Vo,Wy.ews.GatherInfoService=qo,Wy.ews.IGatherInfoService=Bo,Wy.ews.IWGSService=Uo,Wy.ews.MethodInfo=Wo,Wy.ews.ParameterInfo=Zo,Wy.ews.RestWGSService=Xo,Wy.ews.ServiceInfo=Ho,Wy.ews.XMLHttpRequestCraw=Yo,Wy.ews.IWILSService=Ko,Wy.ews.RestWILSService=Jo,Wy.ews.WILSAddressDetail=Qo,Wy.ews.WILSInput=$o,Wy.ews.WILSIpResult=ta,Wy.ews.WILSResult=ea,Wy.ews.WILSResultContent=na,Wy.ews.ControlInfo=ia,Wy.ews.IWMPSService=ra,Wy.ews.IWMPSService2=oa,Wy.ews.PageInfo=aa,Wy.ews.RestWMPSService=sa,Wy.ews.RestWMPSService2=la,Wy.ews.TitleInfo=ua,Wy.ews.WMPSInput=ha,Wy.ews.FeatureInfoInput=ca,Wy.ews.IWMSService=pa,Wy.ews.RestWMSService=fa,Wy.ews.WMSCapabilitiesInput=da,Wy.ews.WMSInput=ya,Wy.ews.AroundInput=ma,Wy.ews.BoundsInput=ga,Wy.ews.DetailInput=va,Wy.ews.DistrictInput=xa,Wy.ews.IWPSSService=_a,Wy.ews.KeywordInput=wa,Wy.ews.RestWPSSService=ba,Wy.ews.SearchAroundInput=Pa,Wy.ews.SearchBoundsInput=Sa,Wy.ews.SearchDetailInput=Ca,Wy.ews.SearchKeywordInput=Ma,Wy.ews.WPSSInput=Ta,Wy.ews.WPSSSearchInput=Aa,Wy.ews.CRegionNode=Ea,Wy.ews.IWRASService=Ia,Wy.ews.RegionNode=La,Wy.ews.RegionTree=Ra,Wy.ews.RestWRASService=Oa,Wy.ews.WRASCapability=Na,Wy.ews.CompositeResourceNode=ka,Wy.ews.IWRCSService=za,Wy.ews.ResourceNode=Da,Wy.ews.ResourceTree=Fa,Wy.ews.RestWRCSService=Ga,Wy.ews.WRCSCapability=ja,Wy.ews.Equipment=Va,Wy.ews.IWRDSService=qa,Wy.ews.LngLat=Ba,Wy.ews.Material=Ua,Wy.ews.MaterialSource=Wa,Wy.ews.Resource=Za,Wy.ews.RestWRDSService=Xa,Wy.ews.Route=Ha,Wy.ews.RoutePlan=Ya,Wy.ews.Source=cn,Wy.ews.Step=Ka,Wy.ews.StepTraffic=Ja,Wy.ews.TeamSource=Qa,Wy.ews.WRDSCapability=$a,Wy.ews.IWRGSService=ts,Wy.ews.RestWRGSService=es,Wy.ews.WRGSAddress=ns,Wy.ews.WRGSInput=is,Wy.ews.WRGSPoi=rs,Wy.ews.WRGSResult=os,Wy.ews.WRGSRoad=as,Wy.ews.IWRMSService=ss,Wy.ews.RestWRMSService=ls,Wy.ews.WRMSCapability=us,Wy.ews.DrivingInput=hs,Wy.ews.DrivingOutput=cs,Wy.ews.DrivingRoute=ps,Wy.ews.DrivingStep=fs,Wy.ews.DrivingStepTrafficCondition=ds,Wy.ews.IWRPSService=ys,Wy.ews.RestWRPSService=ms,Wy.ews.RidingInput=gs,Wy.ews.RidingOutput=vs,Wy.ews.RidingRoute=xs,Wy.ews.RidingStep=_s,Wy.ews.TransitBusDetail=ws,Wy.ews.TransitBusEndStationInfo=bs,Wy.ews.TransitBusStartStationInfo=Ps,Wy.ews.TransitCityStation=Ss,Wy.ews.TransitCoachDetail=Cs,Wy.ews.TransitInput=Ms,Wy.ews.TransitOutput=Ts,Wy.ews.TransitPlaneDetail=As,Wy.ews.TransitPriceDetail=Es,Wy.ews.TransitRoute=Is,Wy.ews.TransitStep=Ls,Wy.ews.TransitStepScheme=Rs,Wy.ews.TransitTaxi=Os,Wy.ews.TransitTaxiDetail=Ns,Wy.ews.TransitTrainDetail=ks,Wy.ews.TransitVehicle=zs,Wy.ews.TransitVehicleEndStationInfo=Ds,Wy.ews.TransitVehicleStartStationInfo=Fs,Wy.ews.WRPSInput=Gs,Wy.ews.WRPSOutput=js,Wy.ews.WRPSRoute=Vs,Wy.ews.WRPSStep=qs,Wy.ews.WalkingInput=Bs,Wy.ews.WalkingOutput=Us,Wy.ews.WalkingRoute=Ws,Wy.ews.WalkingStep=Zs,Wy.ews.IWRQSService=Xs,Wy.ews.RestWRQSService=Hs,Wy.ews.WRQSLayer=Ys,Wy.ews.WRQSPageQueryInput=Ks,Wy.ews.WRQSQueryResult=Js,Wy.ews.WRQSResult=Qs,Wy.ews.WRQSSpatialQueryInput=$s,Wy.ews.BasicSearchInput=tl,Wy.ews.BoundsSearchInput=el,Wy.ews.FilterSearchInput=nl,Wy.ews.GQueryOutput=il,Wy.ews.IWSQSService=rl,Wy.ews.NearbySearchInput=ol,Wy.ews.PolygonSearchInput=al,Wy.ews.RestWSQSService=sl,Wy.ews.ShapeRelation=ll,Wy.ews.WSQSCapability=ul,Wy.ews.DenoiseGrade=hl,Wy.ews.IWTSService=cl,Wy.ews.NeedMapMatch=pl,Wy.ews.RectifyOption=fl,Wy.ews.RectifyTrackInput=dl,Wy.ews.RectifyTrackOutput=yl,Wy.ews.RectifyTrackPoint=ml,Wy.ews.RestWTSService=gl,Wy.ews.SupplementMode=vl,Wy.ews.TrackQueryInput=xl,Wy.ews.TrackQueryPoint=_l,Wy.ews.TrackQueryResult=wl,Wy.ews.TransportMode=bl,Wy.ews.VacuateGrade=Pl,Wy.ews.WTSBasePoint=Sl,Wy.ews.WTSInstance=Cl,Wy.ews.WTSInstanceOutput=Ml,Wy.ews.WTSPoint=Tl,Wy.ews.WTSPointList=Al,Wy.ews.WTSServant=El,Wy.ews.IBlankService=Il,Wy.ews.TDTBlankService=Ll,Wy.ews.IWWQSService=Rl,Wy.ews.RestWWQSService=Ol,Wy.gdm.CommandBase=Nl,Wy.gdm.CommandManager=kl,Wy.gdm.CommandNotify=zl,Wy.gdm.IMessageBox=Dl,Wy.gdm.IProgress=Fl,Wy.gdm.IPromptBox=Gl,Wy.gdm.IShowView=jl,Wy.gdm.ToolBase=Vl,Wy.interact.BoxSelectTool=ql,Wy.interact.Command=Bl,Wy.interact.FullExtentCommand=Ul,Wy.interact.NoopTool=Wl,Wy.interact.PageLayoutTool=Zl,Wy.interact.SelectElementTool=Xl,Wy.interact.SelectFeatureTool=Hl,Wy.interact.SelectMultiTool=Yl,Wy.interact.SelectRenderFeatureTool=Kl,Wy.interact.SelectTool=Jl,Wy.interact.Tool=Ql,Wy.interact.ZoomInCommand=$l,Wy.interact.ZoomOutCommand=tu,Wy.plot.PlotEditTool=eu,Wy.plot.PlotTool=nu,Wy.plot.PlotToolBuilder=iu,Wy.plot.EditMode=ru,Wy.plot.PlotPlugin=ou,Wy.plot.Gmath=au,Wy.plot.PlotAlgorithm=su,Wy.plot.PointAlgorithm=lu,Wy.plot.PointAlgorithmWater=uu,Wy.plot.BeelineArrowAlgorithm=hu,Wy.plot.CurveArrowAlgorithm=cu,Wy.plot.DoubleArrowAlgorithm=pu,Wy.plot.DoubleArrowAlgorithm2=fu,Wy.plot.MultiArrowAlgorithm=du,Wy.plot.ShockWayAlgorithm=yu,Wy.plot.SimpleArrowAlgorithm=mu,Wy.plot.SimpleArrowAlgorithm2=gu,Wy.plot.SlightnessArrowAlgorithm=vu,Wy.plot.SwallowtailArrowAlgorithm=xu,Wy.plot.SwallowtailArrowAlgorithm2=_u,Wy.plot.AerialCable=wu,Wy.plot.AerialCable1=bu,Wy.plot.AerialCommunicationOpenWire12=Pu,Wy.plot.AerialCommunicationOpenWire2=Su,Wy.plot.AirDefenceLineCountryProperty=Cu,Wy.plot.AirDefencelineDistrictProperty=Mu,Wy.plot.AirDefencelineRegionProperty=Tu,Wy.plot.AirDefencelineResidentProperty=Au,Wy.plot.AirDefencelineStreetProperty=Eu,Wy.plot.AirDefendMarchProperty=Iu,Wy.plot.ArmyRendezvousAreProperty=Lu,Wy.plot.ArtilleryMarchProperty=Ru,Wy.plot.BlockAdelineAlgorithm=Ou,Wy.plot.BridgeRepairTeam=Nu,Wy.plot.ChongMarchControlProperty=ku,Wy.plot.ChuMarchControlProperty=zu,Wy.plot.CivilDefenceReserveTeam=Du,Wy.plot.CivilDefenceTeam=Fu,Wy.plot.CoaxialCable=Gu,Wy.plot.CommunicateReserveTeam=ju,Wy.plot.CommunicateTeam=Vu,Wy.plot.CompletedStreetAlgorithm=qu,Wy.plot.CoveredWireLine2=Bu,Wy.plot.CoveredWireLine3=Uu,Wy.plot.DeliveryWayProperty=Wu,Wy.plot.DiaoMarchControlProperty=Zu,Wy.plot.Disguise=Xu,Wy.plot.DisguiseReserveTeam=Hu,Wy.plot.ElectricRepairTeam=Yu,Wy.plot.EvacuateAlgorithm=Ku,Wy.plot.FireFightingReserve=Ju,Wy.plot.FireFightingTeam=Qu,Wy.plot.GaspipeRepairTeam=$u,Wy.plot.HighwayRepairTeam=th,Wy.plot.MarchControlProperty=eh,Wy.plot.MarchOnFootProperty=nh,Wy.plot.MarchOnMotorProperty=ih,Wy.plot.MaterialSupport=rh,Wy.plot.MaterialSupportReserve=oh,Wy.plot.MedicalReverseTeam=ah,Wy.plot.MedicalTeam=sh,Wy.plot.MissileProperty=lh,Wy.plot.MyRendezvousAreProperty=uh,Wy.plot.NucleusAirExplodeCircleAlgorithm=hh,Wy.plot.NucleusGroundExplodeCircleAlgorithm=ch,Wy.plot.PipeLineRepairTeam=ph,Wy.plot.PlanningStreetAlgorithm=fh,Wy.plot.PoisonCloudHazardAlgorithm=dh,Wy.plot.PollutedAreaAlgorithm=yh,Wy.plot.PreventionReserveTeam=mh,Wy.plot.PreventionTeam=gh,Wy.plot.RadioactiveGroundInjuryAreaAlgorithm=vh,Wy.plot.RailRoadRepairTeam=xh,Wy.plot.ReceivingTeamProperty=_h,Wy.plot.Rescue=wh,Wy.plot.RescueReserveTeam=bh,Wy.plot.SecurityBlockAde=Ph,Wy.plot.SecurityBlockAdeReserver=Sh,Wy.plot.TankRendezvousAreProperty=Ch,Wy.plot.TelecoCable=Mh,Wy.plot.TelecoCable1=Th,Wy.plot.TransportReserveTeam=Ah,Wy.plot.TransportTeam=Eh,Wy.plot.UnderWaterCable=Ih,Wy.plot.UnderWaterCable1=Lh,Wy.plot.UndergroundCable=Rh,Wy.plot.UndergroundCable1=Oh,Wy.plot.UnestablishedStreetAlgorithm=Nh,Wy.plot.WaterwayRepairTeam=kh,Wy.plot.WithdrawAlgorithm=zh,Wy.plot.AbatisAlgorithm=Dh,Wy.plot.AirMobileAlgorithm=Fh,Wy.plot.AirwayAlgorithm=Gh,Wy.plot.AntiAirCraftForceAlgorithm=jh,Wy.plot.ArtilleryAlgorithm=Vh,Wy.plot.ArtilleryManenCampmentAlgorithm=qh,Wy.plot.AttackOrderAlgorithm=Bh,Wy.plot.AttackTurnDefend1Algorithm=Uh,Wy.plot.AttackTurnDefend2Algorithm=Wh,Wy.plot.AttackTurnDefend3Algorithm=Zh,Wy.plot.CannonAlgorithm=Xh,Wy.plot.CommunicateLineAlgorithm=Hh,Wy.plot.CurrentTaskLineAlgorithm=Yh,Wy.plot.FinderLineAlgorithm=Kh,Wy.plot.FixedPipeLayingAlgorithm=Jh,Wy.plot.ForbidFlyLineAlgorithm=Qh,Wy.plot.HelicopterTransportAlgorithm=$h,Wy.plot.HighwayAlgorithm=tc,Wy.plot.ImportantPlaceAlgorithm=ec,Wy.plot.LadderLineAlgorithm=nc,Wy.plot.LadderLineAlgorithm2=ic,Wy.plot.LaighstakeAlgorithm=rc,Wy.plot.LandMobileAlgorithm=oc,Wy.plot.LatterTaskLineAlgorithm=ac,Wy.plot.LineAbatis1Algorithm=sc,Wy.plot.LineAbatis2Algorithm=lc,Wy.plot.LineAbatis3Algorithm=uc,Wy.plot.MissileMarchAlgorithm=hc,Wy.plot.MotorbikeTeamAlgorithm=cc,Wy.plot.MusketerByTankAlgorithm=pc,Wy.plot.MusketryAlgorithm=fc,Wy.plot.NavalShipsAlgorithm=dc,Wy.plot.OriginalBirthAlgorithm=yc,Wy.plot.PatrolLeralAlgorithm=mc,Wy.plot.PatrolLineAlgorithm=gc,Wy.plot.PedrailColumnAlgorithm=vc,Wy.plot.PipeLayingAlgorithm=xc,Wy.plot.PolygonTextAlgorithm=_c,Wy.plot.RailAgeAlgorithm=wc,Wy.plot.RecceSearchAlgorithm=bc,Wy.plot.RendezvousArea1Algorithm=Pc,Wy.plot.RendezvousArea2Algorithm=Sc,Wy.plot.RendezvousArea3Algorithm=Cc,Wy.plot.RendezvousArea4Algorithm=Mc,Wy.plot.RoundsLineAlgorithm=Tc,Wy.plot.SeaMobileAlgorithm=Ac,Wy.plot.StakeAlgorithm=Ec,Wy.plot.TankAndMusketerAlgorithm=Ic,Wy.plot.TankAttackAlgorithm=Lc,Wy.plot.TankMusColumnAlgorithm=Rc,Wy.plot.TrenchAlgorithm=Oc,Wy.plot.UnderProp2Algorithm=Nc,Wy.plot.UnderProp3Algorithm=kc,Wy.plot.WarBoundaryAlgorithm=zc,Wy.plot.WaterAgeAlgorithm=Dc,Wy.plot.ArmyAlgorithm=Fc,Wy.plot.ArsenalProperty=Gc,Wy.plot.ExpertProtectAlgorithm=jc,Wy.plot.FireProtectAlgorithm=Vc,Wy.plot.MedicalCureAlgorithm=qc,Wy.plot.PowerRepairAlgorithm=Bc,Wy.plot.ProchymicAlgorithm=Uc,Wy.plot.ProjectAlgorithm=Wc,Wy.plot.ProsuccorAlgorithm=Zc,Wy.plot.ArcAlgorithm=Xc,Wy.plot.CamberAlgorithm=Hc,Wy.plot.CircleAlgorithm=Yc,Wy.plot.CloseCurveAlgorithm=Kc,Wy.plot.CurveAlgorithm=Jc,Wy.plot.EllipseAlgorithm=Qc,Wy.plot.ExactPolygonAlgorithm=$c,Wy.plot.FreePolygonAlgorithm=tp,Wy.plot.FreePolylineAlgorithm=ep,Wy.plot.PolygonAlgorithm=np,Wy.plot.PolylineAlgorithm=ip,Wy.plot.RectangleAlgorithm=rp,Wy.plot.RectangleAlgorithm2=op,Wy.plot.SectorAlgorithm=ap,Wy.render.BubbleRenderer=sp,Wy.render.ClassBreaksRenderer=lp,Wy.render.DotDensityRenderer=up,Wy.render.IntensityRender=hp,Wy.render.RenderCreator=cp,Wy.render.SimpleRenderer=pp,Wy.render.SimpleVectorTileRenderer=fp,Wy.render.UniqueValueRenderer=dp,Wy.render.BarChart=yp,Wy.render.ColorRamp=mp,Wy.render.FeatureRenderer=gp,Wy.render.LineChart=vp,Wy.render.PieChart=xp,Wy.render.StatChart=_p,Wy.render.Symbol2Image=wp,Wy.render.UniqueValueInfo=bp,Wy.render.ChartRenderer=Pp,Wy.sfs.IFeatureConvertor=Sp,Wy.sfs.IGeometryConvertor=Cp,Wy.sfs.ISymbolConvertor=Mp,Wy.sfs.ISymbolToImage=Tp,Wy.sfs.SymbolToImage=Ap,Wy.sfs.FeatureConvertor=Ep,Wy.sfs.GeometryConvertor=Ip,Wy.sfs.SymbolConvertor=Lp,Wy.sfs.TfGeometryConvertor=Rp,Wy.sfs.CoordinateTransform=Op,Wy.sfs.IProjectService=Np,Wy.sfs.ElementProperty=kp,Wy.sfs.Entity=zp,Wy.sfs.EntityDef=Dp,Wy.sfs.EntitySet=Fp,Wy.sfs.Field=Gp,Wy.sfs.Fields=jp,Wy.sfs.GEntity=Vp,Wy.sfs.GEntityCollection=qp,Wy.sfs.GEntityPropertyTypes=Bp,Wy.sfs.GeometryProperty=Up,Wy.sfs.PrimitiveProperty=Wp,Wy.sfs.PrimitiveTypes=Zp,Wy.sfs.Property=Xp,Wy.sfs.PropertyCreator=Hp,Wy.sfs.Value=Yp,Wy.sfs.Attribute=Kp,Wy.sfs.AttributeSet=Jp,Wy.sfs.CompositeElement=Qp,Wy.sfs.DistanceDisplayCondition=$p,Wy.sfs.Element=tf,Wy.sfs.ElementBase=ef,Wy.sfs.GElement=nf,Wy.sfs.GElementCollection=rf,Wy.sfs.LeadLabel=of,Wy.sfs.Plot=af,Wy.sfs.PlotElement=sf,Wy.sfs.ESAnalyzer=lf,Wy.sfs.ESField=uf,Wy.sfs.Feature=hf,Wy.sfs.FeatureFormatter=cf,Wy.sfs.FeatureSet=pf,Wy.sfs.GFeature=ff,Wy.sfs.GFeatureCollection=df,Wy.sfs.GFeatureFormatter=yf,Wy.sfs.GModel=mf,Wy.sfs.GModelCollection=gf,Wy.sfs.Model=vf,Wy.sfs.ICsvFormat=xf,Wy.sfs.IGMLFormat=_f,Wy.sfs.CsvFormat=wf,Wy.sfs.GMLFormat=bf,Wy.sfs.Circle=Pf,Wy.sfs.Cone=Sf,Wy.sfs.Cube=Cf,Wy.sfs.Curve=Mf,Wy.sfs.Cylinder=Tf,Wy.sfs.Ellipse=Af,Wy.sfs.Ellipsoid=Ef,Wy.sfs.EnumSpatialReference=If,Wy.sfs.Envelope=Lf,Wy.sfs.ExtrudedLine=Rf,Wy.sfs.Geometry=Of,Wy.sfs.GeometryBag=Nf,Wy.sfs.GeometryCollection=kf,Wy.sfs.GeometryFactory=zf,Wy.sfs.GeometryFormatter=Df,Wy.sfs.GeometryLayout=Ff,Wy.sfs.GeometryType=Gf,Wy.sfs.LengthConvertor=jf,Wy.sfs.Line=Vf,Wy.sfs.LineString=qf,Wy.sfs.LinearRing=Bf,Wy.sfs.MultiCurve=Uf,Wy.sfs.MultiLineString=Wf,Wy.sfs.MultiPoint=Zf,Wy.sfs.MultiPolygon=Xf,Wy.sfs.MultiSurface=Hf,Wy.sfs.Path=Yf,Wy.sfs.Pipeline=Kf,Wy.sfs.Point=Jf,Wy.sfs.PointCollection=Qf,Wy.sfs.PolyCurve=$f,Wy.sfs.PolyHedron=td,Wy.sfs.Polygon=ed,Wy.sfs.Polyline=nd,Wy.sfs.Ring=id,Wy.sfs.Segment=rd,Wy.sfs.Sphere=od,Wy.sfs.Square=ad,Wy.sfs.Surface=sd,Wy.sfs.Transform=ld,Wy.sfs.Wall=ud,Wy.sfs.ClippingPlane=hd,Wy.sfs.ClippingPlaneCollection=cd,Wy.sfs.Matrix4=pd,Wy.sfs.Plane=fd,Wy.sfs.Quaternion=dd,Wy.sfs.Ray=yd,Wy.sfs.Util=md,Wy.sfs.Vector3=gd,Wy.sfs.IMeasureService=vd,Wy.sfs.MeasureService=xd,Wy.sfs.Color=_d,Wy.sfs.ColorRampEx=wd,Wy.sfs.ConePrimitive=bd,Wy.sfs.CubePrimitive=Pd,Wy.sfs.CurrencySymbol=Sd,Wy.sfs.CylinderPrimitive=Cd,Wy.sfs.EllipsoidPrimitive=Md,Wy.sfs.FillSymbol=Td,Wy.sfs.GroundLineFlowSymbol=Ad,Wy.sfs.Intensity=Ed,Wy.sfs.LineCombinedSymbol=Id,Wy.sfs.LineStyle=Ld,Wy.sfs.LineSymbol=Rd,Wy.sfs.LinearGradientFillSymbol=Od,Wy.sfs.MarkerSymbol=Nd,Wy.sfs.MixSymbol=kd,Wy.sfs.PatternMarkerFillSymbol=zd,Wy.sfs.PictureMarkerSymbol=Dd,Wy.sfs.Primitive=Fd,Wy.sfs.RadioGradientFillSymbol=Gd,Wy.sfs.RegularShapeMarkerSymbol=jd,Wy.sfs.RippleSymbol=Vd,Wy.sfs.SimpleFillSymbol=qd,Wy.sfs.SimpleLineSymbol=Bd,Wy.sfs.SimpleMarkerSymbol=Ud,Wy.sfs.SpherePrimitive=Wd,Wy.sfs.Stop=Zd,Wy.sfs.StopCollection=Xd,Wy.sfs.Symbol=Hd,Wy.sfs.SymbolCreator=Yd,Wy.sfs.SymbolTable=Kd,Wy.sfs.TextSymbol=Jd,Wy.sfs.Texture=Qd,Wy.sfs.TextureFillSymbol=$d,Wy.sfs.TextureLineSymbol=ty,Wy.sfs.TextureResource=ey,Wy.sfs.VectorMarkerSymbol=ny,Wy.sfs.VideoSymbol=iy,Wy.sfs.WaterSymbol=ry,Wy.sfs.ITopoOperation=oy,Wy.sfs.ITopoRelation=ay,Wy.sfs.TopoOperation=sy,Wy.sfs.TopoRelation=ly,Wy.them.PrintAddTool=uy,Wy.them.PrintEditTool=hy,Wy.them.ThematicAddTool=cy,Wy.them.ThematicEditTool=py,Wy.them.DefaultLegendBuilder=fy,Wy.them.IPageLayout=dy,Wy.them.LegendBuilder=yy,Wy.them.EGISPageLayout=my,Wy.them.LayoutNameType=gy,Wy.them.PageLayout=vy,Wy.them.PrintEffectType=xy,Wy.tour.TrackControl=_y,Wy.tour.Route=Ha,Wy.tour.RouteStop=wy,Wy.widget.IOverlayWare=by,Wy.widget.IPopupWindowWare=Py,Wy.widget.ITooltipWare=Sy,Wy.widget.LegendWare=Cy,Wy.widget.OverLay=My,Wy.widget.Pattern=Ty,Wy.widget.PopupWindow=Ay,Wy.widget.ToolTipPositioning=Ey,Wy.widget.Tooltip=Iy,Wy.widget.Legend=Ly,Wy.widget.LegendItem=Ry,Wy.widget.LegendLabel=Oy,Wy.widget.PictureLegend=Ny,Wy.widget.OverlayWare=ky,Wy.widget.NorthArrow=zy,Wy.widget.PatternType=Dy,Wy.widget.PictureLabel=Fy,Wy.widget.ScaleBar=Gy,Wy.widget.TextLabel=jy,Wy.widget.TextStyle=Vy,Wy.widget.TooltipWareImpl=qy,Wy.widget.InfoWindowWare=By,Wy.widget.TooltipWare=Uy,Wy.name="egis-2d",Wy.version="1.0.141",Wy.core.ClassTable.addClassCollection([Wy.sfs,Wy.plot,Wy.cat,Wy.ews]),window.egis=Wy,window.EGIS_BASE_URL=void 0,Wy}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(205),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.showView=e.showView}return t.extend2(o,n),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.tooltipWare=t.tooltipWare},o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,t)},o.prototype.onClear=function(){this.showView.hideViews(!1),this.activeCommand('"NoopTool"',null),this.tooltipWare.clear()},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n(40),n(1),n,e,t],void 0===(r=function(t,e,u,n,i,r,o){function a(t){(t=t||{}).cursor=t.cursor||"help",e.call(this,t),this.geoCoderLayer=t.geoCoderLayer,this.pointEle=t.pointEle,this.WGCSService=null,this.projectService=null,this.tooltipWare=null,this.progress=null,this.promptbox=null,this.locationDesc=null,this.wgcsLayer=t.wgcsLayer,this.wgcsType=t.wgcsType,this.spatialRef=null,h=this}var h=null;return t.extend2(a,e),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.tooltipWare=t.tooltipWare,this.WGCSService=t.WGCSService,this.projectService=t.projectService,this.progress=t.progress,this.promptbox=t.promptbox,this.locationDesc=t.locationDesc,this.map=t.map,this.spatialRef=this.map.getSrid()},a.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.progress.show();var s=r+","+o;try{var l=this;this.WGCSService.regeocoder(this.wgcsLayer,s,this.srid,500).then(function(t){if(0<t.length){var e=t[0];"wgcs_bd"===l.wgcsType&&4326===l.srid&&(e.location=l.projectService.transform(e.location,4326)),l.pointEle.geometry=e.location,l.geoCoderLayer.add(l.pointEle),l.geoCoderLayer.update(l.pointEle),function(t,e,n){var i=[{key:"详细地址",value:e},{key:"经度",value:t.x.toFixed(4)},{key:"纬度",value:t.y.toFixed(4)}],r=new u({anchor:t,id:"000-000",layerId:null,title:"逆向地理编码",offset:[0,-32]});r.pieceTemplate(i),h.tooltipWare.add(r,!0)}.call(l,e.location,e.formattedAddress,l.srid),l.map.setCenter(e.location)}else l.promptbox.notify("没有找到地名地址!");l.progress.close()},function(t){l.progress.close(),console.error(t),l.promptbox.error("识别地名地址出错!")})}catch(t){l.progress.close(),l.promptbox.error("没有找到地名地址!"),l.log.error(t)}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(71),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layerIds=t.layerIds,this.callBack=null}return t.extend2(o,e),o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,this.layerIds),this.callBack=t},o.prototype.onSelectElement=function(t,e){this.callBack(e.address)},o.prototype.onUnSelectElement=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(71),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.layerIds=e.layerIds,this.callBack=null}return t.extend2(o,n),o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,this.layerIds),this.callBack=t},o.prototype.onSelectElement=function(t,e){this.callBack(e.address)},o.prototype.onUnSelectElement=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(45),n(20),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};e.cursor=e.cursor||"help",n.call(this,e),this.viewFacade=null,this.selectionSet=null,this.geoCoder=null,this.geoCoderLayer=e.geoCoderLayer,this.showView=e.showView}return t.extend2(a,n),a.prototype.onClick=function(t){a.prototype.uber.onClick.call(this,t),this.geoCoder=t},a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.selectionSet=t.graphicSelectionSet},a.prototype.onEndDraw=function(t){var e=t.geometry;this.geoCoderLayer.add(t);var n=new i({layer:this.geoCoderLayer,element:t});this.geoCoderLayer.select(n),this.selectionSet.add(n),document.getElementById("searchAroundAddr").style.display="",this.showView.displayView({geometry:e,geoCoderLayer:this.geoCoderLayer,geoCoder:this.geoCoder})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(90),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.img=t.img,this.animationType=2}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(89),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.symbol=t.symbol,this.geometry=t.geometry,this.clockwise=void 0!==t.clockwise&&t.clockwise,this.gap=t.gap||10,this.animationType=9}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(144),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.img=t.img,this.animationType=6,this.isRotate=null!=t.isRotate&&t.isRotate}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(90),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.color=t.color,this.effect=t.effect,this.animationType=8}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(90),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.color=t.color,this.effect=t.effect,this.animationType=7}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(90),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.color=t.color,this.size=t.size,this.effect=t.effect,this.animationType=1}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(144),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.color=t.color,this.size=t.size,this.animationType=5}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(145),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.color=t.color,this.size=t.size,this.fillColor=t.fillColor,this.animationType=4}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(145),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.color=t.color,this.size=t.size,this.animationType=3}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(211),n(210),n(231),n(213),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){t=t||{},e.call(this,t),n.call(this.options),this.running=!1,this.layer=t.layer,this.storage=new i,this.creator=new r,this.events={},this.events.onRunning=[],this.events.onPaused=[],this.events.onFinished=[],u=this}var u;return t.extend2(l,e),t.extend2(l,n),l.prototype.enable=function(){if(!this.running){this.running=!0,this._time=(new Date).getTime();var n=this;this._animationId=requestAnimationFrame(function t(){if(n.running){var e=(new Date).getTime();n.storage.removeFinished(),n._update(e-n._time),n._time=e,n._animationId=requestAnimationFrame(t)}})}},l.prototype.disable=function(){this.running&&(this.running=!1,cancelAnimationFrame(this._animationId),this.storage.forEach(function(t){t.stop()}),this.storage=new i)},l.prototype.getAnimation=function(t){return this.storage.find(t)},l.prototype.play=function(t){var e=this.creator.newAnimation(t);if(e)return this._add(e),e.start(t.startTime||0),this.events.onRunning.forEach(function(t){t(e.id)}),e.id},l.prototype.pause=function(t){var e=this.storage.find(t);e&&(e.pause(),this.events.onPaused.forEach(function(t){t(e.id)}))},l.prototype.resume=function(t){var e=this.storage.find(t);e&&(e.resume(),this.events.onRunning.forEach(function(t){t(e.id)}))},l.prototype.stop=function(t){var e=this.storage.find(t);e&&(e.stop(),this._done(e.id))},l.prototype._done=function(e){u.events.onFinished.forEach(function(t){t(e)})},l.prototype.on=function(t,e){this.events[t].push(e)},l.prototype.un=function(t,e){for(var n=-1,i=0;i<this.events[t].length;i++){if(this.events[t][i]===e){n=i;break}}-1!=n&&this.events[t].splice(n,1)},l.prototype._add=function(t){t.animation.layer=this.layer,t.done=this._done,this.storage.add(t)},l.prototype._update=function(e){this.storage.forEach(function(t){t._step(e)})},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(72),n(88),n(17),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){t=t||{},e.call(this,t),this.symbol=t.symbol,this.geometry=t.geometry,t.clockWise&&(this.gap=-this.gap),this.layer=t.layer,this.angle=this.symbol.rotation}return t.extend2(s,e),s.prototype.doStart=function(){this.trackElement=new i({geometry:this.point.copy(),symbol:this.symbol}),this.layer.add(this.trackElement)},s.prototype.doUpdate=function(t,e){this.angle=(this.angle+this.step)%360,this.symbol.rotation=this.angle,this.layer.add(this.trackElement,!0)},s.prototype.doStop=function(){void 0!==this.trackElement&&(this.layer.remove(this.trackElement),delete this.trackElement)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(42),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),o.prototype.onClick=function(t){o.prototype.uber.onClick();for(var e=0;e<t.length;++e){var n=t[e];this.activeCommand(n)}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(232),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tooltipWare=null}return t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.tooltipWare=t.tooltipWare},o.prototype.onDeleteGraphic=function(t,e){var n=e.element;this.tooltipWare.remove(n.id),t.remove(n),this.onDeleteElement(t,n)},o.prototype.onDeleteElement=function(t,e){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(42),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.map=null}return t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.map=t.map},o.prototype.onClick=function(t){this.map.exportPDF("地图")},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n(20),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.layerId=t.layerId,this.selectionSet=null,this.layers=t.layers,this.featureCount=t.featureCount,this.srs=t.srs,this.format=t.format,this.progress=null,this.viewFacade=null,this.promptbox=null,this.map=null,this.identifyService=null,this.showView=t.showView}return t.extend2(a,e),a.prototype.onCreate=function(t){a.prototype.uber.onCreate(t),this.selectionSet=t.graphicSelectionSet,this.progress=t.progress,this.viewFacade=t.viewFacade,this.promptbox=t.promptbox,this.map=t.map,this.identifyService=t.WMSService},a.prototype.isEnabled=function(){},a.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.cancelSelected(),this.progress.show();var s=this,l=this.map.findLayer(this.layerId),u=this.layers,h=[];h.push(u);var c=this.featureCount,p=this.map.getExtent(),f=this.map.getViewSize(),d=this.srs,y=this.format,m=this.selectionSet;this.identifyService.getFeatureInfo(u,h,c,p,f[0],f[1],n,i,d,y).then(function(t){s.showView.activeView({layer:l,featureInfoResult:t,selectionSet:m}),s.progress.close()},function(t){s.log.error(t),s.progress.close(),s.promptbox.error("调用要素识别服务异常")}),this.activeCommand("NoopTool")},a.prototype.onMouseUp=function(t,e,n,i,r,o,a){},a.prototype.onEndSelect=function(t){},a.prototype.cancelSelected=function(){var t=this.map.getLayers(),i=this;t&&this.selectionSet&&(t.forEach(function(t){for(var e=0;e<i.selectionSet.getCount();++e){var n=i.selectionSet.getGraphic(e);t.unSelect(n)}}),i.selectionSet.clear())},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(71),n(49),n(8),n(40),n,e,t],void 0===(r=function(t,e,o,u,l,n,i,r){function a(t){t=t||{},e.call(this,t),this.locationService=null,this.lastLayer=null,this.localize=null}return t.extend2(a,e),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.locationService=t.locationService,this.localize=t.localize,this.measureService=t.WTMSService,this.tooltipWare=t.tooltipWare},a.prototype.onClick=function(t){if(a.prototype.uber.onClick.call(this,t),t){var e=t.layer,n=t.feature;this.cancelSelected(),this.selectFeature(e,n),this.showLengthAndArea(e,n,!0,this.measureService)}},a.prototype.onSelectElement=function(t,e){this.showLengthAndArea(t,e,!1,this.measureService)},a.prototype.onUnSelectElement=function(){},a.prototype.showLengthAndArea=function(t,e,n,i){switch(e.geometry.getGeometryType()){case u.Polygon:case u.Circle:case u.Ellipse:case u.Square:case u.Envelope:case u.MultiPolygon:this.showArea(t,e,n,i);break;case u.Polyline:case u.LineString:case u.MultiLineString:this.showLength(t,e,n,i);break;case u.Point:case u.MultiPoint:this.elementDes(t,e,n,[])}},a.prototype.showArea=function(i,r,o,t){var e=r.geometry,n=t.area2D(e),a=[],s=this;n.then(function(t){var e=s.area(t.area),n=s.length(t.length);a.push(n),a.push(e),s.elementDes(i,r,o,a)})},a.prototype.showLength=function(n,i,r,t){var e,o=i.geometry,a=o.getGeometryType(),s=[];e=u.Polyline===a||u.LineString===a||u.MultiLineString===a?t.length2D(o):t.area2D(o);var l=this;e.then(function(t){var e=l.length(t);s.push(e),l.elementDes(n,i,r,s)})},a.prototype.area=function(t){return 1e6<t?(t/1e6).toFixed(2)+"km²":t.toFixed(0)+"m²"},a.prototype.length=function(t){return 1e3<t?(t/1e3).toFixed(2)+"km":t.toFixed(0)+"m"},a.prototype.elementDes=function(t,e,n,i){for(var r=[],o=this.shapeDes(t,e,n,i),a=0;a<o.length;++a){var s=o[a];r.push(s)}r.push({key:"id",value:e.id}),r.push({key:"name",value:e.name}),r.push({key:"kind",value:e.kind}),this.location(t,e,n,r)},a.prototype.shapeDes=function(t,e,n,i){var r=e.geometry;if(!r)return[];switch(r.getGeometryType()){case u.Point:switch(r.getSpatialReference()){case o.EPSG4326:case o.EPSG4490:return[{key:"经度",value:r.x.toFixed(4)},{key:"纬度",value:r.y.toFixed(4)}];case o.EPSG3857:return[{key:"X ",value:r.x.toFixed(4)},{key:"Y ",value:r.y.toFixed(4)}]}case u.Polygon:case u.Circle:case u.Ellipse:case u.Square:case u.Envelope:case u.MultiPolygon:return[{key:"周长",value:i[0]},{key:"面积",value:i[1]}];case u.Polyline:case u.LineString:case u.MultiLineString:return[{key:"长度",value:i[0]}]}},a.prototype.location=function(t,e,n,i){this.lastLayer=t;var r=function(t){switch(t.getGeometryType()){case u.Point:return t;case u.Polygon:case u.Circle:case u.Ellipse:case u.Square:case u.Envelope:case u.MultiPolygon:return t.envelope().center();case u.Polyline:case u.LineString:case u.MultiLineString:return t.middlePoint()}}(e.geometry),o=e.id,a=this,s=new l({title:"元素识别",anchor:r,id:o,layerId:t.getLayerId(),offset:t.getOffset(),onClose:function(){a.cancelSelected()}});s.pieceTemplate(i),this.tooltipWare.add(s)},r.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(233),n(49),n(8),n(40),n(25),n,e,t],void 0===(r=function(t,e,o,u,l,h,n,i,r){function a(t){t=t||{},e.call(this,t),this.locationService=null,this.lastLayer=null,this.localize=null,this.measureService=null}return t.extend2(a,e),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.locationService=t.locationService,this.localize=t.localize,this.measureService=t.WTMSService,this.tooltipWare=t.tooltipWare},a.prototype.onClick=function(t){if(a.prototype.uber.onClick.call(this,t),t){var e=t.layer,n=t.feature;this.cancelSelected(),e&&n&&(this.selectFeature(e,n),this.showLengthAndArea(e,n,!0,this.measureService))}},a.prototype.onSelectFeature=function(t,e){this.showLengthAndArea(t,e,!1,this.measureService)},a.prototype.onUnSelectFeature=function(){this.tooltipWare.clear()},a.prototype.showLengthAndArea=function(t,e,n,i){switch((e.geometry||e.getGeometry()).getGeometryType()){case u.Polygon:case u.Circle:case u.Ellipse:case u.Square:case u.Envelope:case u.MultiPolygon:this.showArea(t,e,n,i);break;case u.Polyline:case u.MultiLineString:case u.LineString:this.showLength(t,e,n,i);break;case u.Point:case u.MultiPoint:this.featureDes(t,e,n,[])}},a.prototype.showArea=function(i,r,o,t){var e=r.geometry||r.getGeometry(),n=t.area2D(e),a=[],s=this;n.then(function(t){var e=s.area(t.area),n=s.length(t.length);a.push(n),a.push(e),s.featureDes(i,r,o,a)})},a.prototype.showLength=function(n,i,r,t){var e,o=i.geometry||i.getGeometry(),a=o.getGeometryType(),s=[];e=u.Polyline===a?t.length2D(o):t.area2D(o);var l=this;e.then(function(t){var e=l.length(t.length);s.push(e),l.featureDes(n,i,r,s)})},a.prototype.area=function(t){return 1e6<t?(t/1e6).toFixed(2)+"km²":t.toFixed(0)+"m²"},a.prototype.length=function(t){return 1e3<t?(t/1e3).toFixed(2)+"km":t.toFixed(0)+"m"},a.prototype.featureDes=function(t,e,n,i){for(var r=[],o=e.getFields(),a=0;a<o.getCount();++a){var s=o.getField(a);h.isGeometryType(s.dataType)||r.push({key:s.alias,value:e.getValue(s.name)})}e.geometry||e.getGeometry();this.location(t,e,n,r)},a.prototype.shapeDes=function(t,e,n,i){var r=e.geometry||e.getGeometry();if(!r)return[];switch(r.getGeometryType()){case u.Point:switch(r.getSpatialReference()){case o.EPSG4326:case o.EPSG4490:return[{key:"经度",value:r.x.toFixed(4)},{key:"纬度",value:r.y.toFixed(4)}];case o.EPSG3857:return[{key:"X ",value:r.x.toFixed(4)},{key:"Y ",value:r.y.toFixed(4)}]}case u.Polygon:return[{key:"周长",value:i[0]},{key:"面积",value:i[1]}];case u.Polyline:return[{key:"长度",value:i[0]}];case u.MultiPolygon:return[{key:"周长",value:i[0]},{key:"面积",value:i[1]}]}},a.prototype.location=function(t,e,n,i){this.lastLayer=t;var r=function(t){switch(t.getGeometryType()){case u.Point:return t;case u.Polygon:return t.envelope().center();case u.Polyline:return t.middlePoint();case u.MultiPolygon:return t.envelope().center()}}(e.geometry||e.getGeometry()),o=e.objectId,a=this,s=new l({title:"要素详情",anchor:r,id:o,layerId:t.getLayerId(),offset:t.getOffset()||[0,-32],onClose:function(){a.cancelSelected()}});s.pieceTemplate(i),this.tooltipWare.add(s,!0)},r.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(234),n(40),n,e,t],void 0===(r=function(t,e,l,n,i,r){function o(t){t=t||{},e.call(this,t),this.tooltipWare=null,this.lastLayer=null}return t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.tooltipWare=t.tooltipWare},o.prototype.onClick=function(t){if(o.prototype.uber.onClick.call(this,t),t){var e=t.layer,n=t.feature;this.cancelSelected(),this.selectFeature(e,n),this.location(e,n,!0)}},o.prototype.onSelectFeature=function(t,e){this.location(t,e,!1)},o.prototype.onUnSelectFeature=function(){},o.prototype.location=function(t,e,n){this.lastLayer=t;var i=e.getProperties(),r=e.getExtent().center(),o=e.objectId,a=this,s=new l({title:"矢量切片渲染要素识别",anchor:r,id:o,layerId:t.getLayerId(),offset:t.getOffset(),onClose:function(){a.cancelSelected()}});s.pieceTemplate(i),this.tooltipWare.add(s)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n(1),n(31),n(32),n(34),n(70),n,e,t],void 0===(r=function(t,e,h,c,p,f,u,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=t.layer,this.mousedownFlag=!1,this.leadLabel=null,this.editMode=-1,this.currentElement=null}function d(t){this.leadLabel&&(this.leadLabel.anchor.x=t.x,this.leadLabel.anchor.y=t.y,this.layer.update(this.leadLabel,this.currentElement))}t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.map=t.map},o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,t),this.editMode=-1},o.prototype.onMouseDown=function(t,e,n,i,r,o,a,s){this.mousedownFlag=!0;var l=this.layer.hitTest(n,i);if(l){this.map.stopDragPan();var u=new h({x:r,y:o});switch(this.editMode=function(t){var e=t.element;this.currentElement=e.parent;var n=e.symbol;{if(this.leadLabel=this.layer.hashMap.get(this.currentElement),n instanceof c)return 1;if(n instanceof p||n instanceof f)return 2}return-1}.call(this,l),this.editMode){case 1:d.call(this,u);break;case 2:(function(t,e){if(this.leadLabel){var n=this.currentElement.getItem(2).geometry,i=this.map.getPixelFromCoordinate([n.x,n.y]);this.offSetX=i[0]-t,this.offSetY=i[1]-e}}).call(this,n,i)}}else this.map.resumeDragPan(),this.currentElement=null},o.prototype.onMouseMove=function(t,e,n,i,r,o,a,s){if(this.leadLabel&&this.mousedownFlag){var l=new h({x:r,y:o,spatialReference:this.map.getSrid()});switch(this.editMode){case 1:d.call(this,l);break;case 2:(function(t,e){var n=this.leadLabel.anchor,i=this.map.getPixelFromCoordinate([n.x,n.y]),r=[t+this.offSetX,e+this.offSetY],o=Math.sqrt(Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2));m.x=r[0]-i[0],m.y=r[1]-i[1];var a=u.angleBetween(y,m);a=a/Math.PI*180,0<r[1]-i[1]&&(a=360-a);this.leadLabel.angle=a,this.leadLabel.leadLength=o}).call(this,n,i)}this.layer.update(this.leadLabel)}else this.currentElement=null,this.map.resumeDragPan()},o.prototype.onMouseUp=function(t,e,n,i,r,o,a,s){this.mousedownFlag=!1,this.leadLabel=null,this.editMode=-1,this.currentElement=null};var y=new u({x:1,y:0,z:0}),m=new u;return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(45),n(20),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.selectionSet=null,this.cutInputLayer=e.cutInputLayer}return t.extend2(a,n),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.selectionSet=t.graphicSelectionSet,this.cutRasterLayerService=t.cutRasterLayerService},a.prototype.onEndDraw=function(t){var e=t.geometry;this.cutInputLayer.add(t);var n=new i({layer:this.cutInputLayer,element:t});this.cutInputLayer.select(n),this.selectionSet.add(n),this.cutRasterLayerService.cutRaster(e,function(t){},function(t){})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(45),n(20),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.viewFacade=null,this.selectionSet=null,this.cutInputLayer=e.cutInputLayer,this.showView=e.showView}return t.extend2(a,n),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.selectionSet=t.graphicSelectionSet},a.prototype.onEndDraw=function(t){var e=t.geometry;this.cutInputLayer.add(t);var n=new i({layer:this.cutInputLayer,element:t});this.cutInputLayer.select(n),this.selectionSet.add(n),this.showView.activeView({geometry:e})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(45),n(1),n(2),n(3),n(48),n(5),n(17),n(25),n,e,t],void 0===(r=function(t,n,a,s,l,u,h,c,p,e,i,r){function o(t){var e=t||{};e.canContinue=!1,n.call(this,e),this.layer=null,this.entity=null,this.symbolTable=null,this.viewFacade=null,this.spatialRef=null,this.sureCallback=null,this.cancelCallback=null,this.dataType=null,(f=this).showView=e.showView}var f;return t.extend2(o,n),o.prototype.deactivate=function(){o.prototype.uber.deactivate.call(this)},o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.symbolTable=t.symbolTable,this.spatialRef=t.map.getSrid()},o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,t),this.layer=t.layer,this.entity=t.entity,this.sureCallback=t.sureCallback,this.cancelCallback=t.cancelCallback,this.showView.displayView({dataType:t.dataType,entity:this.entity,sureCallback:this.sure,cancelCallback:this.cancel});var e=this.createElement(t.dataType);this.switch(e)},o.prototype.sure=function(){f.sureCallback()},o.prototype.cancel=function(){f.layer.remove(f.entity),f.cancelCallback()},o.prototype.onEndDraw=function(t){this.entity.setGeometry(t.geometry),this.layer.addFeature(this.entity)},o.prototype.cancelAdd=function(){f.layer.remove(this.feature)},o.prototype.createElement=function(t){this.dataType=t;var e=this.spatialRef;switch(t){case p.Point:case p.MultiPoint:return new c({geometry:new a({x:0,y:0,spatialReference:e}),symbol:this.symbolTable.find("PointFeatureSymbol")});case p.LineString:case p.MultiLineString:var n=new s({spatialReference:e}),i=new l({spatialReference:e});return i.addGeometry(n),new c({geometry:i,symbol:this.symbolTable.find("TrafficDamage3")});case p.Polygon:case p.MultiPolygon:var r=new u({spatialReference:e}),o=new h({spatialReference:e});return o.addGeometry(r),new c({geometry:o,symbol:this.symbolTable.find("PolygonQueryDraw")})}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(150),n(1),n(17),n(8),n,e,t],void 0===(r=function(t,n,e,i,a,r,o,s){function l(t){var e=t||{};e.cursor="crosshair",n.call(this,e),this.layer=null,this.entity=null,this.lastGeometry=null,this.symbolTable=null,this.viewFacade=null,this.spatialRef=null,this.sureCallback=null,this.cancelCallback=null,(u=this).showView=e.showView}var u;return t.extend2(l,n),l.prototype.deactivate=function(){l.prototype.uber.deactivate.call(this),this.showView.displayView(!1)},l.prototype.onCreate=function(t){l.prototype.uber.onCreate.call(this,t),this.symbolTable=t.symbolTable,this.viewFacade=t.viewFacade,this.spatialRef=t.map.getSrid()},l.prototype.onClick=function(t){l.prototype.uber.onClick.call(this,t),this.layer=t.layer,this.entity=t.entity,this.lastGeometry=this.entity.getGeometry().copy(),this.sureCallback=t.sureCallback,this.cancelCallback=t.cancelCallback,this.showView.displayView({dataType:t.dataType,entity:this.entity,sureCallback:this.sure,cancelCallback:this.cancel});var e=this.createElement(t.dataType);this.layer.remove(this.entity),this.switch(e)},l.prototype.sure=function(){u.stopEdit(),u.sureCallback()},l.prototype.updateGeometry=function(t,e){return e},l.prototype.cancel=function(){u.stopEdit(),this.entity.setGeometry(u.lastGeometry),u.layer.updateEntity(u.entity),u.cancelCallback()},l.prototype.canEdit=function(t,e){if(e){var n=e.getGeometry();switch(this.entity.getGeometry().getGeometryType()){case a.Point:return n===this.entity.getGeometry();case a.MultiPoint:case a.Polygon:case a.Polyline:case a.MultiPolygon:case a.MultiLineString:case a.LineString:for(var i=this.entity.getGeometry(),r=0,o=i.getPointCount();r<o;++r){if(i.getPoint(r)===n)return!0}return!1}}return!1},l.prototype.onEndDraw=function(t){t&&(this.entity.setGeometry(t.geometry),this.layer.addFeature(this.entity))},l.prototype.createElement=function(t){var e=null;switch(t){case 102:e=this.symbolTable.find("PointFeatureSelectEditSymbol");break;case 103:e=this.symbolTable.find("TrafficDamage3");break;case 104:e=this.symbolTable.find("PolygonQueryDraw")}return new i({geometry:this.entity.getGeometry(),symbol:e})},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(45),n(8),n(49),n(1),n(40),n,e,t],void 0===(r=function(t,e,n,r,i,s,o,a,l){function u(t){(t=t||{}).canContinue=!1,e.call(this,t),this.templateElement=t.templateElement,this.layer=t.layer,this.WTMSService=null,this.tooltipWare=null}return t.extend2(u,e),u.prototype.isEnabled=function(){return!this.layer.visible},u.prototype.onCreate=function(t){u.prototype.uber.onCreate.call(this,t),this.tooltipWare=t.tooltipWare,this.WTMSService=t.measureService},u.prototype.onEndDraw=function(t){switch(t.geometry.getGeometryType()){case n.Point:this.measurePoint(t);break;case n.Polyline:case n.LineString:this.measurePolyline(t);break;case n.Polygon:this.measurePolygon(t)}this.addElement(t),this.activeCommand("SelectMeasureLayer",[this.layer.getLayerId()])},u.prototype.addElement=function(t){this.layer.add(t)},u.prototype.measurePoint=function(t){var e=t.geometry;this.showPositon(t,e,"坐标测量")},u.prototype.measurePolyline=function(t){var e=t.geometry,n=this.WTMSService.length(e),i=e.middlePoint();this.showLength(t,i,n,"长度测量")},u.prototype.measureCircle=function(r){var o=r.geometry,t=this.WTMSService.area2D(o),a=this;t.then(function(t){var e=t.length,n=t.area,i=o.getCenter();a.showLengthArea(r,i,e,n,"面积测量")})},u.prototype.measurePolygon=function(t){var e=t.geometry,n=this.WTMSService.area(e),i=this.WTMSService.length(e),r=e.envelope().center();this.showLengthArea(t,r,i,n,"面积测量")},u.prototype.measureEllipse=function(r){var o=r.geometry,t=this.WTMSService.area2D(o),a=this;t.then(function(t){var e=t.length,n=t.area,i=o.getCenter();a.showLengthArea(r,i,e,n,"面积测量")})},u.prototype.showPositon=function(t,e,n){var i=null;i=e.getSpatialReference()===r.EPSG4326||e.getSpatialReference()===r.EPSG4490?[{key:"经度:",value:e.x.toFixed(6)},{key:"纬度:",value:e.y.toFixed(6)}]:[{key:"X:",value:e.x.toFixed(6)},{key:"Y:",value:e.y.toFixed(6)}],this.show(t,e,i,n)},u.prototype.showLength=function(t,e,n,i){var r=[{key:"长度:",value:this.length(n)}];this.show(t,e,r,i)},u.prototype.showLengthArea=function(t,e,n,i,r){var o=[{key:"周长:",value:this.length(n)},{key:"面积:",value:this.area(i)}];this.show(t,e,o,r)},u.prototype.show=function(t,e,n,i){var r=t.id,o=this,a=new s({anchor:e,id:r,layerId:this.layer.getLayerId(),title:i,onClose:function(){o.layer.remove(t)},offset:[0,0],autoPan:!0});a.pieceTemplate(n),this.tooltipWare.add(a,!1)},u.prototype.length=function(t){return 1e3<t?(t/1e3).toFixed(2)+"km":t.toFixed(0)+"m"},u.prototype.area=function(t){return 1e6<t?(t/1e6).toFixed(2)+"km²":t.toFixed(0)+"m²"},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.convertPngToBase64=function(t,e){var n=document.createElement("canvas"),i=n.getContext("2d"),r=new Image;r.crossOrigin="Anonymous",r.onload=function(){var t;n.height=r.height,n.width=r.width,i.drawImage(r,0,0),t=n.toDataURL("image/png"),e.call(this,t),n=null},r.src=t},i.prototype.convertPngToBase64NoHeader=function(t,e){var n=document.createElement("canvas"),i=n.getContext("2d"),r=new Image;r.crossOrigin="Anonymous",r.onload=function(){var t;n.height=r.height,n.width=r.width,i.drawImage(r,0,0),t=n.toDataURL("image/png"),e.call(this,t),n=null},r.src=t},i.prototype.convertSvgToBase64NoHeader=function(t,i){jQuery.ajax({url:t,dataType:"xml",async:!1,success:function(t){jQuery(t).find("svg").each(function(t){var e=(new XMLSerializer).serializeToString(jQuery(this)[0]),n=window.btoa(e);i.call(this,n)})}})},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.map=e.map,this.toolTipWare=e.toolTipWare}return i.prototype.location=function(t,e,n,i){null!=t&&this.map.setCenter(t),-1!=n&&this.map.zoomTo(n),e&&this.toolTipWare.add(e,i)},n.exports=i}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(11),n(8),n(17),n(235),n,e,t],void 0===(r=function(t,n,a,s,i,e,r,o){function l(t){var e=t||{};e.layerTypes=[n.FeatureLayer,n.ElementLayer,n.CanvasLayer],this.layer=e.layer,this.symbolTable=e.symbolTable,this.geometries=[],this.count=0,this.total=e.selectCount,i.call(this,e)}return t.extend2(l,i),l.prototype.onCreate=function(t){l.prototype.uber.onCreate.call(this,t),this.symbolTable=t.symbolTable},l.prototype.onClick=function(t){l.prototype.uber.onClick.call(this,t),this.count=0},l.prototype.onSelectGraphic=function(t,e){this.count++;var n=e.getGeometry(),i=(this.count-1)%this.total;this.geometries[i]=n,this.count==this.total&&(this.topoAnalysis(this.geometries),this.endSelect())},l.prototype.topoAnalysis=function(t){},l.prototype.endSelect=function(){this.count=0},l.prototype.render=function(t,e){switch(t.getGeometryType()){case a.Point:var n=new s({geometry:t,symbol:this.symbolTable.find("TopoSymbol")});this.layer.add(n);break;case a.MultiPoint:for(var i=t.geometries.length,r=0;r<i;r++){n=new s({geometry:t.getPoint(r),symbol:this.symbolTable.find("TopoSymbol")});this.layer.add(n)}break;case a.Polyline:n=new s({geometry:t,symbol:this.symbolTable.find("CutLine2")});this.layer.add(n);break;case a.MultiLineString:for(i=t.geometries.length,r=0;r<i;r++){n=new s({geometry:t.geometryN(r),symbol:this.symbolTable.find("TopoLine")});this.layer.add(n)}break;case a.LineString:n=new s({geometry:t,symbol:this.symbolTable.find("TopoLine")});this.layer.add(n);break;case a.Polygon:var o=null;o=e&&"boundarytool"==e?this.symbolTable.find("TopoLine"):this.symbolTable.find("TopoPolygon1");n=new s({geometry:t,symbol:o});this.layer.add(n);break;case a.MultiPolygon:case a.GeometryBag:for(i=t.geometries.length,r=0;r<i;r++)this.render(t.geometries[r])}},o.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.geometry=e.geometry,this.weight=e.weight}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(94),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.BuildingLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.ContourLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(w,t,e){(function(t){var e;e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:this,w.exports=function(e){"use strict";var t,n=(e=e||{}).Base64,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(t){for(var e={},n=0,i=t.length;n<i;n++)e[t.charAt(n)]=n;return e}(r),a=String.fromCharCode,i=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?a(192|e>>>6)+a(128|63&e):a(224|e>>>12&15)+a(128|e>>>6&63)+a(128|63&e)}var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return a(240|e>>>18&7)+a(128|e>>>12&63)+a(128|e>>>6&63)+a(128|63&e)},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,l=function(t){return t.replace(s,i)},u=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(1<t.length?t.charCodeAt(1):0)<<8|(2<t.length?t.charCodeAt(2):0),i=[r.charAt(n>>>18),r.charAt(n>>>12&63),2<=e?"=":r.charAt(n>>>6&63),1<=e?"=":r.charAt(63&n)];return i.join("")},h=e.btoa?function(t){return e.btoa(t)}:function(t){return t.replace(/[\s\S]{1,3}/g,u)},c=function(t){return h(l(t))},p=function(t,e){return e?c(String(t)).replace(/[+\/]/g,function(t){return"+"==t?"-":"_"}).replace(/=/g,""):c(String(t))},f=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),d=function(t){switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return a(55296+(n>>>10))+a(56320+(1023&n));case 3:return a((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return a((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},y=function(t){return t.replace(f,d)},m=function(t){var e=t.length,n=e%4,i=(0<e?o[t.charAt(0)]<<18:0)|(1<e?o[t.charAt(1)]<<12:0)|(2<e?o[t.charAt(2)]<<6:0)|(3<e?o[t.charAt(3)]:0),r=[a(i>>>16),a(i>>>8&255),a(255&i)];return r.length-=[0,0,2,1][n],r.join("")},g=e.atob?function(t){return e.atob(t)}:function(t){return t.replace(/\S{1,4}/g,m)},v=function(t){return y(g(t))},x=function(t){return v(String(t).replace(/[-_]/g,function(t){return"-"==t?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};if(e.Base64={VERSION:"2.5.1",atob:function(t){return g(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},btoa:h,fromBase64:x,toBase64:p,utob:l,encode:p,encodeURI:function(t){return p(t,!0)},btou:y,decode:x,noConflict:function(){var t=e.Base64;return e.Base64=n,t},__buffer__:t},"function"==typeof Object.defineProperty){var _=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};e.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",_(function(){return x(this)})),Object.defineProperty(String.prototype,"toBase64",_(function(t){return p(this,t)})),Object.defineProperty(String.prototype,"toBase64URI",_(function(){return p(this,!0)}))}}return e.Meteor&&(Base64=e.Base64),w.exports&&(w.exports.Base64=e.Base64),e.Base64}(e)}).call(this,e(493))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.ModelLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.ModelLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(19),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.ParticleLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e){},function(t,e,n){var i,r;i=[n(0),n(94),n(11),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e)}return t.extend2(a,n),a.prototype.getLayerType=function(){return e.TerrainLayer},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(55),n(260),n(54),n(9),n(111),n(20),n(10),n(23),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l,u,h,c){function p(t){var e=t||{};n.call(this,e),this.depth=e.depth||0,this.layers=[],this.sourceIdMap={}}return t.extend2(p,n),p.prototype.init=function(){p.prototype.uber.init.call(this);var n=this;this._glMap.on("load",function(){n.layers=n.getStyle().layers,n.layers.forEach(function(t){var e=t.metadata.key;n.sourceIdMap[e]?n.sourceIdMap[e].push(t.id):n.sourceIdMap[e]=[t.id]}),console.log(n.layers),n.onload(n._glMap)}),this.map.on("extentchanged",function(){var t=n.map.getZoomLevel();console.log(t);var e=n.depth;(e=t<4?0:t<7?1:t<8?2:t<10?3:4)!=n.depth&&n.changeDepth(e)})},p.prototype.onload=function(t){console.log(t)},p.prototype.changeDepth=function(t){var e;e=this.getIdsByDepth(this.depth),this.hiddenLayers(e,!0),e=this.getIdsByDepth(t),this.hiddenLayers(e,!1);var n=0==t?0:1==t?4:2==t?7:3==t?8:10;this.map.zoomTo(n),this.depth=t},p.prototype.hiddenLayers=function(t,e){for(var n=0;n<t.length;n++)this._glMap.setLayoutProperty(t[n],"visibility",e?"none":"visible")},p.prototype.getIds=function(){return this.layers.map(function(t){return t.id})},p.prototype.getIdsByDepth=function(e){return this.layers.filter(function(t){return t.metadata.depth==e}).map(function(t){return t.id})},p.prototype.getIdsByKeys=function(t){var e=[],n=this;return t.forEach(function(t){e.push.apply(e,n.sourceIdMap[t])}),e},p.prototype.setFilter=function(t,e){for(var n=0;n<t.length;n++)this._glMap.setFilter(t[n],e)},p.prototype.getFilter=function(t){return this._glMap.getFilter(t)},p.prototype.removeFilter=function(t){t=t||this.getIds();for(var e=0;e<t.length;e++)this._glMap.setFilter(t[e])},p.prototype.filter=function(t){var e=[],n=[];switch(this.depth){case 0:e=this.getIdsByKeys(["country_fill","country_line","country_symbol"]),n=["in","FCNAME"].concat(t);break;case 1:e=this.getIdsByKeys(["sheng_fill","sheng_line","sheng_symbol"]),n=["in","NAME"].concat(t);break;case 2:e=this.getIdsByKeys(["shi_fill","shi_line","shi_symbol"]),n=["in","NAME"].concat(t);break;case 3:e=this.getIdsByKeys(["xian_fill","xian_line","xian_symbol"]),n=["in","NAME"].concat(t);break;case 4:e=this.getIdsByKeys(["xiang_fill","xiang_line","xiang_symbol"]),n=["in","NAME"].concat(t)}this.setFilter(e,n)},p.prototype.repaint=function(){this._glMap.ttiggerRepaint()},c.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(261),n(10),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),n(a.prototype,{visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}}}),a.prototype.filterGroup=function(e){this.groupLayers.forEach(function(t){t.setFilter(e)})},a.prototype.renderGroup=function(e){this.groupLayers.forEach(function(t){t.render(e)})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(10),n(13),n(155),n(158),n(37),n,e,t],void 0===(r=function(t,e,s,n,l,i,r,o,a){function u(o,a,s){return function(r,e){r.setLoader(function(n,t,i){o.get(e,"arraybuffer",void 0,void 0).then(function(t){var e=r.getFormat().readFeatures(t,{extent:n,featureProjection:i});a&&(e=e.filter(function(t){return t.getProperties().layer==a})),s&&(e=e.filter(function(e){if("Or"!=s.tagName)return h(e,s);var n=!1;return s.conditions.forEach(function(t){n=n||h(e,t)}),n})),r.setFeatures(e),tileCount++})})}}function h(t,e){var n=t.getProperties()[e.propertyName];switch(e.tagName){case"PropertyIsLike":return function(t,e){return-1!=t.indexOf(e)}(n,e.pattern);case"PropertyIsBetween":return function(t,e,n){return e<=t&&t<n}(n,e.lowerBoundary,e.upperBoundary);case"PropertyIsEqualTo":return function(t,e,n){return e?t==n:t.toString().toLowerCase()==n.toString().toLowerCase()}(n,e.matchCase,e.expression);default:return!0}}function c(t){t=t||{},this.layerName=t.layerName,this.filter=t.filter,n.call(this,t),this._layer.getSource().tileLoadFunction=u(this._restHttp,this.layerName,this.filter),this._layer.setMinZoom(0),this._layer.setMaxZoom(22)}return t.extend2(c,n),e(c.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}}}),c.prototype.setFilter=function(t){this._layer.getSource().setTileLoadFunction(u(this._restHttp,this.layerName,t)),this._layer.getSource().refresh()},c.prototype.render=function(o){this.vectorTileRender=o;var a=this.symbolConverter,s=this._cachedSymbols;this._renderedFeatures;this._layer.setStyle(function(t,e){var n=new l(t);if(o.canRender(n,e)){var i=o.render(n,e);if(s.contains(i))return s.get(i);var r=[a.toSymbol(i)];return s.put(i,r),r}})},c.prototype.getExtent=function(){for(var t=this._layer.getSource(),e=new s({spatialReference:t.getProjection().getCode().split(":")[1]}),n=Object.keys(t.sourceTileByCoordKey_),i=0;i<n.length;i++){var r=t.sourceTileByCoordKey_[n[i]].getFeatures();if(r)for(var o=0;o<r.length;o++){var a=new s({spatialReference:t.getProjection().getCode().split(":")[1],minx:r[o].getExtent()[0],miny:r[o].getExtent()[1],maxx:r[o].getExtent()[2],maxy:r[o].getExtent()[3]});e.union(a)}}return e},a.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(56),n(0),n(247),n(9),n(60),n(43),n(10),n(23),n,e,t],void 0===(r=function(a,t,n,s,i,r,e,o,l,u,h){function c(t){t=t||{},n.call(this,t);var e=i;t.projzh=e,this.tileType=r.BaiduPanoCoverage,this.clientId=t.clientId,this.clientSecret=t.clientSecret,t.restHttp||(this._restHttp=new o({client_id:t.clientId,client_secret:t.clientSecret}),t.restHttp=this._restHttp),this.source=function(r){var t=r.extent||[72.004,.8293,137.8347,55.8271];if(!r.resolutions){for(var e=new Array(19),n=0;n<19;++n)e[n]=Math.pow(2,18-n);r.resolutions=e}r.origin=r.origin||[0,0],r.extent=s.extent.applyTransform(t,r.projzh.ll2bmerc);var i=r.tileSize||[256,256],o=void 0===r.crossOrigin?"anonymous":r.crossOrigin;r.scaler&&r.scaler;r.tileUrlFunction||(r.tileUrlFunction=function(t){var e=t[1],n=-t[2]-1,i=t[0];return(r.url||"http://pcsv0.map.bdimg.com/tile/?udt=20150114&qt=tile&styles=pl")+"&x="+e+"&y="+n+"&z="+i});return new s.source.XYZ({url:r.url,wrapX:void 0!==r.wrapX&&r.wrapX,crossOrigin:o,tileSize:i,projection:r.projection||"baidu",tileGrid:new s.tilegrid.TileGrid({origin:r.origin,resolutions:r.resolutions,tileSize:i,extent:r.extent}),tileUrlFunction:r.tileUrlFunction,tileLoadFunction:r.tileLoadFunction?r.tileLoadFunction:function(t,e){!function(t,i,e){t&&t._token?t.get(e,"arraybuffer",void 0,void 0).then(function(t){var e=new Uint8Array(t),n="data:image/png;base64,"+a.decode(e);i.src=n}):i.src=e}(r.restHttp,t.getImage(),e)}})}(t),this._layer=new s.layer.Tile({source:this.source}),this.map=t.map,"number"==typeof t.maxZoom&&t.maxZoom==t.maxZoom&&this.setMaxZoom(t.maxZoom),"number"==typeof t.minZoom&&t.minZoom==t.minZoom&&this.setMinZoom(t.minZoom),this._visible=null==t.visible||t.visible,this._opacity=null==t.opacity?1:t.opacity,this._zIndex=null==t.zIndex?0:t.zIndex,this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex)}function p(t,e,n){return t.map.getView().getResolutionForZoom(e)/((n=n||256)/256)}function f(t,e,n){var i=t.map.getView().getZoomForResolution(e),r=(n=n||256)/256,o=0;return r%2==0?o=r/2:.5%r==0&&(o=-.5/r),i<0?0:i-o}return t.extend2(c,n),e(c.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){var t=this._layer.getMaxResolution();return f(this.map,t,this._layer.tileSize)},set:function(t){var e=p(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e)}},maxZoom:{get:function(){var t=this._layer.getMaxResolution();return f(this.map,t,this._layer.tileSize)},set:function(t){var e=p(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}}}),c.prototype.getLayer=function(){return this._layer},c.prototype.setZIndex=function(t){c.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},c.prototype.setVisible=function(t){c.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},c.prototype.setOpacity=function(t){c.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},c.prototype.on=function(t,e){"visible"===t||"opacity"===t?c.prototype.uber.on.call(this,t,e):this.map.on(t,e)},c.prototype.un=function(t,e){"visible"===t||"opacity"===t?c.prototype.uber.un.call(this,t,e):this.map.un(t,e)},c.prototype.setMinZoom=function(t){if(this._minZoom=t,this.map){this._minZoom=t;var e=p(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e+.001)}},c.prototype.setMaxZoom=function(t){if(this._maxZoom=t,this.map){this._maxZoom=t;var e=p(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}},c.prototype.getMinZoom=function(){var t=this._layer.getMaxResolution();return f(this.map,t-.001,this._layer.tileSize)},c.prototype.getMaxZoom=function(){var t=this._layer.getMinResolution();return f(this.map,t,this._layer.tileSize)},c.prototype.format=function(){},h.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(60),n(44),n(10),n,e,t],void 0===(r=function(t,n,i,e,r,o,a){function s(t){(t=t||{}).tileType=202,t.projection="baidu",t.baiduType=null==t.baiduType?1:t.baiduType;var e=n;t.projzh=e,i.call(this,t)}return t.extend2(s,i),e(s.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e)}},maxZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}}}),s.prototype.formatLayer=function(t,e){var n=function(t,e){var n,i={},r=t.formatUrl||t.url,o=r.lastIndexOf("?"),a={};if(-1===o)n=r;else{n=r.substr(0,o+1);for(var s=r.substr(o+1,r.length-1).split("&"),l=0;l<s.length;++l){var u=s[l].split("=");"{x}"!==u[1]&&"{y}"!==u[1]&&"{z}"!==u[1]?a[s[l].split("=")[0]]=s[l].split("=")[1]:n+=s[l]+"&"}n=n.substr(0,n.length-1)}return i.layerType=t.baiduType,i.type="baidu",i.baseURL=n,i.customParams=function(t,e){switch(t){case 0:e.qt="tile",e.styles="pl",e.scaler=1,e.p=1;break;case 1:e.fm=46;break;case 2:e.qt="tile",e.styles="sl",e.scaler=1,e.p=1;break;case 3:e.label="web2D",e.v="016"}return e}(t.baiduType,a),i.imageExtension="png",i.maxZoom=e||19,i}(this._options,e),i=this._token||this._restHttp.getToken();return i&&(n.accessMode="Basic",n.accessKey=i),n},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(44),n(10),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).tileType=203,t.type=t.type||1,e.call(this,t)}return t.extend2(a,e),n(a.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e)}},maxZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}}}),a.prototype.formatLayer=function(t,e){var n=function(t,e){var n,i={},r=t.formatUrl||t.url,o=r.lastIndexOf("?"),a={};if(-1===o)n=r,a.g=50;else{n=r.substr(0,o+1);for(var s=r.substr(o+1,r.length-1).split("&"),l=0;l<s.length;++l){var u=s[l].split("=");"{x}"!==u[1]&&"{y}"!==u[1]&&"{z}"!==u[1]?a[s[l].split("=")[0]]=s[l].split("=")[1]:n+=s[l]+"&"}n=n.substr(0,n.length-1)}return i.type="bing",i.baseURL=n,i.layerType=t.type,i.customParams=a,i.maxZoom=e||19,i}(this._options,e),i=this._token||this._restHttp.getToken();return i&&(n.accessMode="Basic",n.accessKey=i),n},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(44),n(10),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).tileType=210,t.projection="gcj02",e.call(this,t)}return t.extend2(a,e),n(a.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e)}},maxZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}}}),a.prototype.formatLayer=function(t,e){var n=function(t,e){var n,i={},r=t.formatUrl||t.url,o=r.lastIndexOf("?"),a={};if(-1===o)n=r;else{n=r.substr(0,o+1);for(var s=r.substr(o+1,r.length-1).split("&"),l=0;l<s.length;++l){var u=s[l].split("=");"{x}"!==u[1]&&"{y}"!==u[1]&&"{z}"!==u[1]?a[s[l].split("=")[0]]=s[l].split("=")[1]:n+=s[l]+"&"}n=n.substr(0,n.length-1)}return i.type="amap",i.baseURL=n,i.customParams=a,i.imageExtension="png",i.maxZoom=e||21,i}(this._options,e),i=this._token||this._restHttp.getToken();return i&&(n.accessMode="Basic",n.accessKey=i),n},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(44),n(10),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).tileType=201,t.projection="gcj02",e.call(this,t)}return t.extend2(a,e),n(a.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e)}},maxZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}}}),a.prototype.formatLayer=function(t,e){var n=function(t,e){var n,i={},r=t.formatUrl||t.url,o=r.lastIndexOf("?"),a={};if(-1===o)n=r;else{n=r.substr(0,o+1);for(var s=r.substr(o+1,r.length-1).split("&"),l=0;l<s.length;++l){var u=s[l].split("=");"{x}"!==u[1]&&"{y}"!==u[1]&&"{z}"!==u[1]?a[s[l].split("=")[0]]=s[l].split("=")[1]:n+=s[l]+"&"}n=n.substr(0,n.length-1)}return i.type="google",i.baseURL=n,i.customParams=a,i.imageExtension="png",i.maxZoom=e||21,i}(this._options,e),i=this._token||this._restHttp.getToken();return i&&(n.accessMode="Basic",n.accessKey=i),n},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(243),n(11),n(44),n(286),n(155),n(287),n(122),n(125),n(129),n(265),n(124),n(283),n(285),n(154),n(282),n(284),n(288),n(289),n(290),n(172),n,e,t],void 0===(r=function(t,e,i,n,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P){function S(t){t=t||{},this.map=t.map,this.symbolTable=t.symbolTable,e.call(this)}var C=function(t){var e=t.layeropts;return new n(e)},M=function(t){var e=t.layeropts;return new r(e)},T=function(t){var e=t.layeropts;return new o(e)},A=function(t){var e=t.symbolTable,n=t.layeropts;return n.symbol=e.find(n.symbol),n.selectSymbol=e.find(n.selectSymbol),new a(n||{symbol:symbol,selectSymbol:selectSymbol})},E=function(t){var e=t.symbolTable,n=t.layeropts;return"object"!=typeof n.symbol&&(n.symbol=e.find(n.symbol)),n.selectSymbol=e.find(n.selectSymbol),new l(n)},I=function(t){var e=t.layeropts;return new s(e)},L=function(t){var e=t.layeropts;return new h(e)},R=function(t){var e=t.layeropts;return new x(e)},O=function(t){var e=t.layeropts;return new u(e)},N=function(t){var e=t.symbolTable,n=t.layeropts;return n.selectSymbol=e.find(n.selectSymbol),new y(n)},k=function(t){var e=t.layeropts;return new m(e)},z=function(t){for(var e=t.layeropts.layers,n=t.layerCreator,i=[],r=0,o=e.length;r<o;++r)i.push(n.createLayer(e[r]));return t.layeropts.layers=i,new d(t.layeropts)},D=function(t){return new c(t.layeropts||{})},F=function(t){var e=t.layeropts;return new g(e)},G=function(t){var e=t.layeropts;return new p(e)},j=function(t){var e=t.layeropts;return new f(e)},V=function(t){var e=t.layeropts;return new v(e)};return t.extend2(S,e),S.prototype.createLayer=function(t){var e=t||{};e.zIndex=this.map.getLayerCount();var n={layeropts:e,symbolTable:this.symbolTable,layerCreator:this};switch(t.layerType){case i.TileLayer:return C(n);case i.TianDiTuLayer:return M(n);case i.VectorTileLayer:return T(n);case i.ElementLayer:return I(n);case i.VectorLayer:return A(n);case i.FeatureLayer:return E(n);case i.ImageLayer:return O(n);case i.HeatMapLayer:return k(n);case i.GroupLayer:return z(n);case i.CanvasLayer:return L(n);case i.FeatureRenderLayer:return N(n);case i.ClusterLayer:return D(n);case i.ProxyLayer:return F(n);case i.GridLayer:return G(n);case i.HoneyCombLayer:return j(n);case i.TraficLayer:return V(n);case i.LeadLabelLayer:return R(n)}return null},P.exports=S}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(291),n(257),n(152),n(292),n(9),n(111),n(20),n(10),n(23),n,e,t],void 0===(r=function(t,e,l,u,n,i,r,o,a,s,h,c,p){function f(t){var e=t||{};u.call(this,e);var n,i,a=this;if(this.minZoom=e.minZoom||1,this.maxZoom=e.maxZoom||24,this.url=e.url,this.tileSize=e.tileSize||256,this.layer=e.layer,this.style=e.style||"default",this.matrixSet=e.matrixSet,this.format=e.format,this.emptyImage=e.emptyImage,this.level=e.level?e.level:12,this.newUrl=e.newUrl,e.tilesUrl)this.tilesUrl=e.tilesUrl;else{var r="?";0<this.url.indexOf("?")&&(r="&"),this.tilesUrl=this.url+r+"layer="+this.layer+"&tilematrixset="+this.matrixSet+"&Service=WMTS&Request=GetTile&Version=1.0.0&style="+this.style+"&Format="+this.format+"&TileMatrix={z}&TileCol={x}&TileRow={y}"}if(this.glStyle=function(){var t={version:8,type:"raster",sources:{},layers:[{id:this.id,type:"raster",minzoom:this.minZoom,maxzoom:this.maxZoom,layout:{visibility:"visible"},source:null}]},e=this.id;e||(e=(new Date).getTime(),this.id=e);return t.sources[e]={type:"raster",tiles:[this.tilesUrl],tileSize:this.tileSize},t.layers[0].source=e,t}.call(this),this.newUrl&&(this.strategy=function(){switch(d(this.newUrl)){case 0:break;case 1:return new l({level:this.level,token:this._token,newUrl:this.newUrl,emptyImage:this.emptyImage})}}.call(this),1==d(this.newUrl)&&(this.glStyle.sources[this.id].blankTaker=this.strategy)),e.transformRequest)this._transformRequest=e.transformRequest;else{var o=/http:\/\/(\d+\.\d+\.\d+\.\d+(:\d+)*)|https:\/\/(\d+\.\d+\.\d+\.\d+(:\d+)*)/,s=/TileMatrix=(\d+)/gi;n=this.url,null!==(i=o.exec(n))&&Array.isArray(i)&&i[0];this._transformRequest=function(t,e){var n;if(n=t,"Tile"===e&&-1<n.indexOf("wmts")){var i=n.match(s)[0],r=parseInt(i.split("=")[1]),o=i.replace(r,++r);return{url:n.replace(i,o),headers:{Authorization:a._token}}}}}this._options=e,this.setVisible(this.visible)}function d(t){return null==t||""==t?0:-1<t.indexOf("wmts")?1:2}return t.extend2(f,u),f.prototype.init=function(){f.prototype.uber.init.call(this)},f.prototype.setMaxZoom=function(t){this._layer.setMaxZoom(t)},f.prototype.setMinZoom=function(t){this._layer.setMinZoom(t)},f.prototype._getWMTSMatrices=function(t){for(var e=[],n=[-180,90],i=t.matrixPrefix,r=t.maxZoom||22,o=1;o<r;++o){var a={},s=o;a.identifier=i?i+s.toString():s.toString(),a.matrixSize=[Math.pow(2,o),Math.pow(2,o-1)],a.scaleDenominator=279541132.0143589/Math.pow(2,o-1),a.tileSize=[256,256],a.topLeftCorner=n,a.resolution=.703125/Math.pow(2,o-1),e.push(a)}return e},f.prototype._transWMTS=function(t,e){var n,i,r={},o=t.formatUrl||t.url,a=o.lastIndexOf("?"),s={};if(-1===a)i=o;else{i=o.substr(0,a);var l=o.substr(a+1,o.length-1).split("&");if(l)for(var u=0;u<l.length;++u)s[l[u].split("=")[0]]=l[u].split("=")[1]}r.customParams=s,r.baseURL=i,r.type="WMTS",r.layer=t.layer,r.imageFormat=t.format,r.version=void 0===t.version?"1.0.0":t.version,r.dimensions=null,r.dimensionParams={},r.requestEncoding="KVP",r.opacity=t.opacity||1,r.matrixSet=t.matrixSet;var h=t.formatToken;return h||!this._token&&!this._restHttp||(h=this._token||this._restHttp.getToken()),h&&(r.accessMode="Basic",r.accessKey=h),18<e&&(e=18),n=this._getWMTSMatrices(t),r.matrices=e?[n[e-1]]:n,r},f.prototype.formatLayer=function(t){var e=this._options;return this._transWMTS(e,t)},f.prototype.enableFormat=function(){return!1!==this.visible&&0!==this.opacity},p.exports=f}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(21),n(248),n(9),n,e,t],void 0===(r=function(t,r,n,i,e,o,a){function s(t){var e=t||{};n.call(this,e),this.patterns=[],this.pattern=null,this.map=e.map?e.map:null,this.dragging=null}return t.extend2(s,n),s.prototype.add=function(t){var e=this.createElement(t),n=new i.Overlay({element:e,positioning:"center-center",offset:[0,0],stopEvent:!0});t.tag=n,t.Element=e,this.patterns.push(t),this.map.map.addOverlay(n),n.setPosition([t.x,t.y])},s.prototype.update=function(t,e){this.find(t.id)&&t.tag.setPosition([t.x,t.y]),e&&t.tag.setElement(this.createElement(t))},s.prototype.remove=function(t){var e=this.find(t.id);if(e){this.map.map.removeOverlay(t.tag);var n=this.patterns.indexOf(e);-1!=n&&this.patterns.splice(n,1)}},s.prototype.find=function(t){for(var e=0;e<this.patterns.length;e++){var n=this.patterns[e];if(n.id==t)return n}},s.prototype.hitTest=function(t,e){return this.pattern},s.prototype.getCount=function(){return this.patterns.length},s.prototype.get=function(t){return this.patterns[t]},s.prototype.getLayer=function(){return this.layer},s.prototype.createElement=function(t){var e=document.createElement("div");e.style.display="block",e.style.zIndex=2;var n=document.createElement("div");return n.className="popup-content",n.id=t.id,n.innerHTML=t.toHtml(),e.appendChild(n),n.onmousedown=this.onMouseDown.bind(this),n.onmouseup=this.onMouseUp.bind(this),n.ondblclick=this.onDbClick.bind(this),e},s.prototype.clear=function(){for(;0<this.patterns.length;){var t=this.patterns[0];this.remove(t)}},s.prototype.onMouseDown=function(t){var e=t.currentTarget,n=this.find(e.id);if(n&&this.map){this.pattern=n;var i=this.map.map.getEventPixel(t),r={originalEvent:{button:0},pixel:i,coordinate:this.map.map.getCoordinateFromPixel(i)};this.map.onMouseDown(r)}},s.prototype.onMouseUp=function(t){var e=t.currentTarget;if(this.find(e.id)&&this.map){this.pattern=null;var n=this.map.map.getEventPixel(t),i={originalEvent:{buton:0},pixel:n,coordinate:this.map.map.getCoordinateFromPixel(n)};this.map.onMouseUp(i)}},s.prototype.onDbClick=function(t){var e=t.currentTarget,n=this.find(e.id);if(n&&this.map){this.pattern=n;var i=this.map.map.getEventPixel(t),r={originalEvent:{buton:0},pixel:i,coordinate:this.map.map.getCoordinateFromPixel(i)};this.map.onDblclick(r),this.pattern=null}},s.prototype.format=function(){for(var o={},a=r.defer(),t=[],e=0,n=this.patterns.length;e<n;++e){var i=this.patterns[e].format();t.push(i)}return r.all(t,function(t){for(var e=0,n=t.length;e<n;++e){var i=t[e];if(i)for(var r in i)o[r]=i[r]}a.resolve(o)}),a.promise},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(37),n(23),n(10),n(9),n(249),n(41),n(31),n(33),n(20),n(54),n,e,t],void 0===(r=function(t,n,i,e,l,r,o,a,s,u,h,c,p,f){function d(t){this.maxZIndex=1,this.minZIndex=0,t=t||{},r.call(this,t),this._cachedSymbols=new n,this.map=t.map?t.map:null,this.geometryConvertor=new s,t.selectSymbol&&(this._selectSymbol=t.selectSymbol),this._symbol=t.symbol;var e=void 0===t.declutterDistance?20:t.declutterDistance;this.source=new l.source.Vector({wrapX:void 0!==t.wrapX&&t.wrapX,declutter:t.declutter,declutterDistance:e}),this._layer=new l.layer.WebGLPoints({source:this.source,style:function(t){if(t){var e;if(this._cachedSymbols.contains(t))return this._cachedSymbols.get(t);if(t instanceof o)return e={symbol:{symbolType:"image",src:t.source,size:[t.width*t.scale,t.height*t.scale],rotateWithView:!1,offset:[t.offsetX,t.offsetY],opacity:t.opacity}},this._cachedSymbols.put(t,e),e;if(t instanceof a)return e={symbol:{symbolType:"circle",size:t.size,color:t.fillColor.toArray(),opacity:t.opacity}}}}.call(this,this._symbol)}),this.offset=t.offset||[0,0],this.features=[],this._visible=null==t.visible||t.visible,this._opacity=null==t.opacity?1:t.opacity,this._zIndex=null==t.zIndex?0:t.zIndex,this.clientId=t.clientId,this.clientSecret=t.clientSecret,t.restHttp?this._restHttp=t.restHttp:this._restHttp=new i({client_id:t.clientId,client_secret:t.clientSecret}),this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex)}t.extend2(d,r),e(d.prototype,{visible:{get:function(){return this._visible},set:function(t){this._visible!=t&&(this._visible=t,this._layer&&this._layer.setVisible(t),this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!=t&&(this._opacity=t,this._layer&&this._layer.setOpacity(t),this.onOpacity(this,t))}},zIndex:{get:function(){return this._zIndex},set:function(t){this._zIndex!=t&&(this._zIndex=t,this._layer&&this._layer.setZIndex(t))}},selectSymbol:{get:function(){return this._selectSymbol},set:function(t){this._selectSymbol=t}},symbol:{get:function(){return this._symbol},set:function(t){this._symbol=t}}}),d.prototype.setVisible=function(t){d.prototype.uber.setVisible.call(this,t),this._layer.setVisible(t)},d.prototype.setZIndex=function(t){d.prototype.uber.setZIndex.call(this,t),this._layer.setZIndex(t)},d.prototype.setOpacity=function(t){d.prototype.uber.setOpacity.call(this,t),this._layer.setOpacity(t)},d.prototype.getLayer=function(){return this._layer},d.prototype.add=function(t){var e=new l.Feature({geometry:this.geometryConvertor.toGeometry(t.geometry)});e.Feature=t,this.features.push(t),this.source.addFeature(e)},d.prototype.addFeatures=function(t){for(var e=t.getCount(),n=[],i=0;i<e;++i){var r=t.getFeature(i),o=new l.Feature({geometry:this.geometryConvertor.toGeometry(r.geometry)});o.Feature=r,n.push(o),this.features.push(r)}this.source.addFeatures(n)},d.prototype.addFeatureCollection=function(t){for(var e=t.size(),n=[],i=t.getIdentityIndex(),r=0;r<e;++r){var o=t.get(r),a=o.getPropertyByIndex(i).getValue();if(a){var s=new l.Feature({geometry:this.geometryConvertor.toGeometry(a)});s.Feature=o,n.push(s),this.features.push(o)}}this.source.addFeatures(n)},d.prototype.addFeature=function(t){var e=t.getGeometry();if(e){var n=new l.Feature({geometry:this.geometryConvertor.toGeometry(e)});(n.Feature=t).olFeature=n,this.features.push(t),this.source.addFeature(n)}},d.prototype.remove=function(t){var e=this.lookup(t);e&&this.source.removeFeature(e);var n=this.features.indexOf(t);this.features.splice(n,1)},d.prototype.lookup=function(t){for(var e=this._layer.getSource().getFeatures(),n=0,i=e.length;n<i;++n){var r=e[n];if(r.Feature===t)return r}return null},d.prototype.clear=function(t){try{for(var e=null!=t&&t,n=0;n<this.features.length;n++){(a=this.features[n]).olFeature&&(a.olFeature.Feature=null,delete a.olFeature.Feature,delete a.olFeature)}var i=this._layer.getSource(),r=i.getFeatures();i.clear(e);n=0;for(var o=r.length;n<o;++n){var a;(a=r[n]).Geometry=null,a.Feature=null,a.dispose()}r.length=0,r=i=null,this.features.length=0}catch(t){}},d.prototype.hitTest=function(t,e){var n=[],i=this._layer;return this.map&&(this.map.map.forEachFeatureAtPixel([t,e],function(t){n.push(t)},{layerFilter:function(t){return i==t}}),0<n.length)?new u({feature:n[0].Feature,layer:this}):null},d.prototype.select=function(t){if(t){var e=t.feature;if(e)this.lookup(e)&&this._selectSymbol}},d.prototype.hitTestList=function(t,e){var n=[],i=new h,r=this._layer;if(this.map){this.map.map.forEachFeatureAtPixel([t,e],function(t){n.push(t)},{layerFilter:function(t){return r==t}});for(var o=0;o<n.length;o++)i.add(new u({feature:n[o].Feature}))}return i},d.prototype.setSource=function(a){if(a){var s=this;this.source=new l.source.Vector({format:new l.format.GML32,loader:function(t,e,n){if(s._restHttp)s._restHttp.get(i).then(function(t){var e=s.source.getFormat().readFeatures(t,{extent:[-180,90,180,90]});s.source.addFeatures(e);for(var n=(new GMLFormat).fromGML(t),i=0;i<e.length;++i)e[i].Feature=n.get(i)});else{n.getCode();var i=a.url,r=new XMLHttpRequest;r.open("GET",i);function o(){s.source.removeLoadedExtent(t)}r.onerror=o,r.onload=function(){if(200==r.status){var t=s.source.getFormat().readFeatures(r.responseText,{extent:[-180,90,180,90]});s.source.addFeatures(t);for(var e=(new GMLFormat).fromGML(r.responseText,"3.2"),n=0;n<t.length;++n)t[n].Feature=e.get(n)}else o()},r.send()}}}),this._layer.setSource(this.source)}};var y=["click","dblclick","mouseover","mouseout","mousedown","mouseup","visible","opacity"];return d.prototype.un=function(t,e){if("visible"===t||"opacity"===t)d.prototype.uber.un.call(this,t,e);else for(var n=0;n<y.length;n++)t==y[n]&&(d.prototype.uber.un.call(this,t,e),this.map.un("mouseover"==(i=t)||"mouseout"==i?"mousemove":i,e.registerFunc));var i},d.prototype.on=function(t,e){for(var n=0;n<y.length;n++)t==y[n]&&this.handleEvent(t,e)},d.prototype.handleEvent=function(l,u){var h=this;if("mouseover"==l||"mouseout"==l){var c={selectedObj:null,deselectedObj:null,selFlag:!1,selectedGraphic:null,deselectedGraphic:null};function t(t,e,n,i,r,o,a){var s=h.hitTest(n,i);return s?c.selectedObj!=s.feature?(c.selFlag=!0,null!=c.selectedObj?(c.deselectedObj=c.selectedObj,c.deselectedGraphic=c.selectedGraphic,c.selectedObj=s.feature,c.selectedGraphic=s):(c.selectedObj=s.feature,c.selectedGraphic=s,c.deselectedObj=null,c.deselectedGraphic=null)):(c.selFlag=!1,c.selectedObj=s.feature,c.selectedGraphic=s,c.deselectedGraphic=null,c.deselectedObj=null):(c.selFlag=!1,null!=c.selectedObj?(c.deselectedObj=c.selectedObj,c.deselectedGraphic=c.selectedGraphic):(c.deselectedObj=null,c.deselectedGraphic=null),c.selectedObj=null,c.selectedGraphic=null),c.deselectedObj&&"mouseout"==l?u(n,i,r,o,c.deselectedGraphic):c.selectedObj&&c.selFlag&&"mouseover"==l?u(n,i,r,o,s):void 0}u.registerFunc=t,d.prototype.uber.on.call(this,l,u),this.map.on("mousemove",t)}else if("visible"===l||"opacity"===l)d.prototype.uber.on.call(this,l,u);else{function e(t,e,n,i,r,o,a){var s=h.hitTest(n,i);if(s)return u(n,i,r,o,s)}u.registerFunc=e,d.prototype.uber.on.call(this,l,u),this.map.on(l,e)}},f.exports=d}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(44),n(10),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).tileType=209,t.projection="gcj02",t.type=null==t.type?1:t.type,e.call(this,t)}return t.extend2(a,e),n(a.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}},minZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMaxResolution(e)}},maxZoom:{get:function(){var t=this._layer.getMaxResolution();return resolution2Zoom(this.map,t,this._layer.tileSize)},set:function(t){var e=zoom2Resolution(this.map,t,this._layer.tileSize);this._layer.setMinResolution(e)}}}),a.prototype.formatLayer=function(t,e){var n=function(t,e){var n,i={},r=t.formatUrl||t.url,o=r.lastIndexOf("?"),a={},s=t.type;if(-1===o)n=r,2===s&&(a.styleid=2);else{n=r.substr(0,o+1);for(var l=r.substr(o+1,r.length-1).split("&"),u=0;u<l.length;++u){var h=l[u].split("=");"{x}"!==h[1]&&"{y}"!==h[1]&&"{z}"!==h[1]?a[l[u].split("=")[0]]=l[u].split("=")[1]:n+=l[u]+"&"}n=n.substr(0,n.length-1)}return 1===s&&(i.imageExtension="jpg"),i.type="tencent",i.baseURL=n,i.layerType=t.type,i.customParams=a,i.maxZoom=e||17,i}(this._options,e),i=this._token||this._restHttp.getToken();return i&&(n.accessMode="Basic",n.accessKey=i),n},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(9),n(0),n(10),n(125),n(11),n(113),n(55),n,e,t],void 0===(r=function(i,t,e,n,r,o,a,s,l,u){function h(t){t=t||{},o.call(this,t),n.call(this,t),this._layer=this.getLayer(),this.service=t.service}return t.extend2(h,o),t.extend2(h,n),e(h.prototype,{interval:{get:function(){return this._interval},set:function(t){this._interval!=t&&(this._interval=t,this._animater&&this._animater.updateInterval(this._interval))}},playing:{get:function(){return this._playing},set:function(t){this._playing!=t&&(this._playing=t)}},paused:{get:function(){return this._paused},set:function(t){this._paused!=t&&(this._paused=t)}}}),h.prototype.setSource=function(t){var n=this;this.service.data(t.type1,t.type2,t.date,t.name,t.format).then(function(t){n.source=new i.source.Vector({wrapX:void 0!==this.source.wrapX&&this.source.wrapX});var e=a.fromGeoJson(t);n.addFeatures(e),n._layer.setSource(n.source)})},h.prototype._updateSource=function(t){this.setSource(t)},h.prototype.getLayerType=function(){return r.WeaRadarFeatureLayer},u.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(10),n(129),n(11),n(113),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){(t=t||{}).imageType=702,r.call(this,t),n.call(this,t),this._layer=this.getLayer()}return t.extend2(l,r),t.extend2(l,n),e(l.prototype,{interval:{get:function(){return this._interval},set:function(t){this._interval!=t&&(this._interval=t,this._animater&&this._animater.updateInterval(this._interval))}},playing:{get:function(){return this._playing},set:function(t){this._playing!=t&&(this._playing=t)}},paused:{get:function(){return this._paused},set:function(t){this._paused!=t&&(this._paused=t)}}}),l.prototype._updateSource=function(t){t=this._imageCreator.createFromImageStatic(t);this._layer.setSource(t)},l.prototype.getLayerType=function(){return i.WeaRadarImageLayer},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(10),n(44),n(43),n(11),n(113),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l){function u(t){(t=t||{}).tileType=i.XYZ,o.call(this,t),n.call(this,t),this._layer=this.getLayer()}return t.extend2(u,o),t.extend2(u,n),e(u.prototype,{interval:{get:function(){return this._interval},set:function(t){this._interval!=t&&(this._interval=t,this._animater&&this._animater.updateInterval(this._interval))}},playing:{get:function(){return this._playing},set:function(t){this._playing!=t&&(this._playing=t)}},paused:{get:function(){return this._paused},set:function(t){this._paused!=t&&(this._paused=t)}}}),u.prototype._updateSource=function(t){var e=this._layer.getSource();e.setUrl(t.url),this._layer.setSource(e)},u.prototype.getLayerType=function(){return r.WeaRadarLayer},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(10),n(255),n(129),n(517),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){this.options=t||{},n.call(this,t),i.call(this,t),this._layer=new r(this.options.data,{layerName:this.options.name,map:this.options.map.map,projection:this.options.projection?this.options.projection:"EPSG:4326",devicePixelRatio:window.devicePixelRatio,colorScale:this.options.colorScale,minVelocity:this.options.minVelocity||0,maxVelocity:this.options.maxVelocity||10,velocityScale:this.options.velocityScale||.05,particleAge:this.options.particleAge||90,lineWidth:this.options.lineWidth||1,particleMultiplier:this.options.particleMultiplier||.01}),this.setOpacity(this._opacity),this.setVisible(this._visible),this.setZIndex(this._zIndex),this.map=null}return t.extend2(l,n),t.extend2(l,i),e(l.prototype,{layer:{get:function(){return this._layer},set:function(t){this._layer=t}},visible:{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._layer&&this._layer.setVisible(t),this._visible=t,this.onVisible(this,t))}},opacity:{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._layer&&this._layer.setOpacity(t),this._opacity=t,this.onOpacity(this,t))}}}),l.prototype.init=function(){this._layer.setMap(this.map.map)},l.prototype.getLayer=function(){return this._layer},l.prototype.getParams=function(){return this._layer.getParams()},l.prototype.updateParams=function(t){this._layer.updateParams(t)},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){
/*!
* author: sakitam-fdd <smilefdd@gmail.com>
* wind-layer v0.1.1
* build-time: 2020-1-14 18:17
* LICENSE: MIT
* (c) 2017-2020 https://sakitam-fdd.github.io/wind-layer
*/
t.exports=function(r){"use strict";var c=function(h){void 0===h&&(h={}),this.params=h;var f=this;f.canvas=h.canvas;var e=["rgb(36,104, 180)","rgb(60,157, 194)","rgb(128,205,193 )","rgb(151,218,168 )","rgb(198,231,181)","rgb(238,247,217)","rgb(255,238,159)","rgb(252,217,125)","rgb(255,182,100)","rgb(252,150,75)","rgb(250,112,52)","rgb(245,64,32)","rgb(237,45,28)","rgb(220,24,32)","rgb(180,0,35)"],n=function(t){t.projection||(t.projection="EPSG:4326"),f.MIN_VELOCITY_INTENSITY=t.minVelocity||0,f.MAX_VELOCITY_INTENSITY=t.maxVelocity||10,f.VELOCITY_SCALE=(t.velocityScale||.005)*(Math.pow(window.devicePixelRatio,1/3)||1),f.MAX_PARTICLE_AGE=t.particleAge||90,f.PARTICLE_LINE_WIDTH=t.lineWidth||1,f.PARTICLE_MULTIPLIER=t.particleMultiplier||1/300,f.PARTICLE_REDUCTION=Math.pow(window.devicePixelRatio,1/3)||1.6,f.FRAME_RATE=t.frameRate||16,f.COLOR_SCALE=t.colorScale||e,f.DEVICEPIXELRATIO=t.devicePixelRatio||1,f.map=t.map};n(h),window.FRAME_TIME=1e3/f.FRAME_RATE;var d,y,l,m,g,v,x,u,c,p,a=[NaN,NaN,null],o=f.params.data,r=function(t,e,n,i,r,o){var a=1-t,s=1-e,l=a*s,u=t*s,h=a*e,c=t*e,p=n[0]*l+i[0]*u+r[0]*h+o[0]*c,f=n[1]*l+i[1]*u+r[1]*h+o[1]*c;return[p,f,Math.sqrt(p*p+f*f)]},_=function(t){var e=null,n=null;return t.forEach(function(t){switch(t.header.parameterCategory+","+t.header.parameterNumber){case"1,2":case"2,2":e=t;break;case"1,3":case"2,3":n=t}}),function(t,e){var n=t.data,i=e.data;return{header:t.header,data:function(t){return[n[t],i[t]]},interpolate:r}}(e,n)},w=function(t,e){if(!y)return null;var n,i=P(t-m,360)/v,r=(g-e)/x,o=Math.floor(i),a=o+1,s=Math.floor(r),l=s+1;if(n=y[s]){var u=n[o],h=n[a];if(b(u)&&b(h)&&(n=y[l])){var c=n[o],p=n[a];if(b(c)&&b(p))return d.interpolate(i-o,r-s,u,h,c,p)}}return null},b=function(t){return null!=t},P=function(t,e){return t-e*Math.floor(t/e)},S=function(t,e,n,i,r,o,a,s){var l=a[0]*o,u=a[1]*o,h=C(t,e,n,i,r,s);return a[0]=h[0]*l+h[2]*u,a[1]=h[1]*l+h[3]*u,a},C=function(t,e,n,i,r,o){var a=2*Math.PI,s="EPSG:4326"===f.params.projection?5:Math.pow(10,-5.2),l=e<0?s:-s,u=n<0?s:-s,h=A(n,e+l,o),c=A(n+u,e,o),p=Math.cos(n/360*a);return[(h[0]-i)/l/p,(h[1]-r)/l/p,(c[0]-i)/u,(c[1]-r)/u]},M=function(i,r,t){function o(t,e){var n=i[Math.round(t)];return n&&n[Math.round(e)]||a}o.release=function(){i=[]},o.randomize=function(t){for(var e,n,i=0;e=Math.round(Math.floor(Math.random()*r.width)+r.x),n=Math.round(Math.floor(Math.random()*r.height)+r.y),null===o(e,n)[2]&&i++<30;);return t.x=e,t.y=n,t},t(r,o)},s=function(t){return t/180*Math.PI},T=function(t,e,n){var i=f.map.getCoordinateFromPixel([t,e]);return[i[0],i[1]]},A=function(t,e,n){var i=f.map.getPixelFromCoordinate([e,t]);return[i[0],i[1]]},E=function(i,s){var l=function(e,n){return f.COLOR_SCALE.indexFor=function(t){return Math.max(0,Math.min(f.COLOR_SCALE.length-1,Math.round((t-e)/(n-e)*(f.COLOR_SCALE.length-1))))},f.COLOR_SCALE}(f.MIN_VELOCITY_INTENSITY,f.MAX_VELOCITY_INTENSITY),u=l.map(function(){return[]}),t=Math.round(i.width*i.height*f.PARTICLE_MULTIPLIER);/android|blackberry|iemobile|ipad|iphone|ipod|opera mini|webos/i.test(navigator.userAgent)&&(t*=f.PARTICLE_REDUCTION);for(var r=[],e=0;e<t;e++)r.push(s.randomize({age:Math.floor(Math.random()*f.MAX_PARTICLE_AGE)+0}));var o=f.canvas.getContext("2d");o.lineWidth=f.PARTICLE_LINE_WIDTH,o.fillStyle="rgba(0, 0, 0, 0.97)",o.globalAlpha=.6;var a=Date.now();!function t(){p=requestAnimationFrame(t);var e=Date.now(),n=e-a;n>FRAME_TIME&&(a=e-n%FRAME_TIME,u.forEach(function(t){t.length=0}),r.forEach(function(t){t.age>f.MAX_PARTICLE_AGE&&(s.randomize(t).age=0);var e=t.x,n=t.y,i=s(e,n),r=i[2];if(null===r)t.age=f.MAX_PARTICLE_AGE;else{var o=e+i[0],a=n+i[1];null!==s(o,a)[2]?(t.xt=o,t.yt=a,u[l.indexFor(r)].push(t)):(t.x=o,t.y=a)}t.age+=1}),o.globalCompositeOperation="destination-in",o.fillRect(i.x,i.y,f.canvas.width,f.canvas.height),o.globalCompositeOperation="lighter",o.globalAlpha=.9,u.forEach(function(t,e){0<t.length&&(o.beginPath(),o.strokeStyle=l[e],t.forEach(function(t){Math.abs(t.xt-t.x)<100&&(o.moveTo(t.x*f.DEVICEPIXELRATIO,t.y*f.DEVICEPIXELRATIO),o.lineTo(t.xt*f.DEVICEPIXELRATIO,t.yt*f.DEVICEPIXELRATIO),t.x=t.xt,t.y=t.yt)}),o.stroke())}),h.onDraw&&h.onDraw())}()},I=function(e,n,i,t){var r={south:s(t[0][1]),north:s(t[1][1]),east:s(t[1][0]),west:s(t[0][0]),width:n,height:i};L(),function(t,e){var n=(d=_(t)).header;m=n.lo1,g=Math.max(n.la2,n.la1),v=n.dx,x=n.dy,u=n.nx,c=n.ny,(l=new Date(n.refTime)).setHours(l.getHours()+n.forecastTime),y=[];for(var i=0,r=Math.floor(u*v)>=360,o=0;o<c;o++){var a=[];for(var s=0;s<u;s++,i++){a[s]=d.data(i)}if(r){a.push(a[0])}y[o]=a}e({date:l,interpolate:w})}(o,function(t){!function(s,l,u,n){var h={},t=(u.south-u.north)*(u.west-u.east),c=f.VELOCITY_SCALE*Math.pow(t,.4),p=[],i=l.x;function r(t){var e=[];for(var n=l.y;n<=l.yMax;n+=2){var i=T(t,n,u);if(i){var r=i[0],o=i[1];if(isFinite(r)){var a=s.interpolate(r,o);if(a){a=S(h,r,o,t,n,c,a,u);e[n+1]=e[n]=a}}}}p[t+1]=p[t]=e}(function t(){var e=Date.now();while(i<l.width){r(i);i+=2;if(Date.now()-e>1e3){setTimeout(t,25);return}}M(p,l,n)})()}(t,function(t,e,n){var i=t[0],r=t[1],o=Math.round(i[0]),a=Math.max(Math.floor(i[1],0),0),s=Math.min(Math.ceil(r[0],e),e-1),l=Math.min(Math.ceil(r[1],n),n-1);return{x:o,y:a,xMax:e,yMax:l,width:e,height:n}}(e,n,i),r,function(t,e){R.field=e,E(t,e)})})},L=function(){R.field&&R.field.release(),p&&cancelAnimationFrame(p)},R={params:f.params,start:I,stop:L,update:function(t,e,n,i,r){if(delete f.params.data,f.params.data=t,r){I(e,n,i,r)}},shift:function(t,e){var n=f.canvas,i=n.width,r=n.height,o=n.getContext("2d");if(i>t&&r>e){var a=function(t,e){return Math.max(0,Math.min(t,e))};var s=o.getImageData(a(i,-t),a(r,-e),a(i,i-t),a(r,r-e));o.clearRect(0,0,i,r);o.putImageData(s,a(i,t),a(r,e));for(var l=0,u=particles.length;l<u;l++){particles[l].x+=t;particles[l].y+=e}}},createField:M,interpolatePoint:w,setData:function(t){o=t},updateParams:function(t){f.params=t,n(f.params)},getParams:function(){return f.params},buildParams:n};return R};window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/window.FRAME_RATE)},window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)});var o=function(t){return t/.514},a=function(t){return 3.6*t};return function(n){function t(t,e){void 0===e&&(e={}),n.call(this,e),this._canvas=null,this.data=t,this.$Windy=null,this.isClear=!1,this.options=e,this.setSource(new r.source.ImageCanvas({logo:e.logo,state:e.state,attributions:e.attributions,resolutions:e.resolutions,canvasFunction:this.canvasFunction.bind(this),ratio:e.hasOwnProperty("ratio")?e.ratio:1})),this.on("postrender",this.redraw,this)}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.getData=function(){return this.data},t.prototype.setData=function(t){var e=this.getMap();if(!e)return this;if(this.data=t,this.isClear=!1,!this.$Windy&&this._canvas)this.renderWind(this._canvas),e.renderSync();else if(this.$Windy&&this._canvas){this._cloneLayer&&(e.addLayer(this._cloneLayer),delete this._cloneLayer);var n=this._getExtent();this.$Windy.update(this.getData(),n[0],n[1],n[2],n[3])}else console.warn("please create new instance");return this},t.prototype.renderWind=function(t){var e=this._getExtent();if(this.isClear||!this.getData()||!e)return this;if(t&&!this.$Windy){var n=this.options,i=n.minVelocity,r=n.maxVelocity,o=n.velocityScale,a=n.particleAge,s=n.lineWidth,l=n.particleMultiplier,u=n.colorScale;n.map;this.$Windy=new c({canvas:t,projection:this._getProjectionCode(),data:this.getData(),minVelocity:i,map:n.map,maxVelocity:r,velocityScale:o,particleAge:a,lineWidth:s,particleMultiplier:l,colorScale:u,devicePixelRatio:this.options.devicePixelRatio}),this.$Windy.start(e[0],e[1],e[2],e[3])}else if(t&&this.$Windy){var h=this._getExtent();this.$Windy.start(h[0],h[1],h[2],h[3])}return this},t.prototype.redraw=function(){if(!this.isClear){var t=this.options.extent||this._getMapExtent();this.setExtent(t)}},t.prototype.canvasFunction=function(t,e,n,i,r){return this._canvas?(this._canvas.width=i[0],this._canvas.height=i[1]):this._canvas=function(t,e,n){if(typeof document!=="undefined"){var i=document.createElement("canvas");i.width=t;i.height=e;return i}else{return new n(t,e)}}(i[0],i[1]),e<=this.get("maxResolution")&&this.renderWind(this._canvas),this._canvas},t.prototype._getExtent=function(){var t=this._getMapSize(),e=this._getMapExtent();if(t&&e){var n=this._getProjectionCode(),i=r.proj.transformExtent(e,n,"EPSG:4326");return[[[0,0],[t[0],t[1]]],t[0],t[1],[[i[0],i[1]],[i[2],i[3]]]]}return!1},t.prototype._getMapExtent=function(){if(this.getMap()){var t=this._getMapSize(),e=this.getMap().getView();return e&&e.calculateExtent(t)}},t.prototype._getMapSize=function(){if(this.getMap())return this.getMap().getSize()},t.prototype.appendTo=function(t){if(!(t&&t instanceof r.Map))throw new Error("not map object");this.set("originMap",t),t.addLayer(this)},t.prototype.getPointData=function(t){if(!this.$Windy)return null;var e=this.$Windy.interpolatePoint(t[0],t[1]);return e&&!isNaN(e[0])&&!isNaN(e[1])&&e[2]?{direction:function(t,e,n){if(n.endsWith("CCW")){e=e>0?e=-e:Math.abs(e)}var i=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),r,o=Math.atan2(t/i,e/i)*180/Math.PI+180;if(n==="bearingCW"||n==="meteoCCW"){o+=180;if(o>=360){o-=360}}return o}(e[0],e[1],this.options.angleConvention||"bearingCCW"),speed:function(t,e,n){var i=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));if(n==="k/h"){return a(i)}else if(n==="kt"){return o(i)}else{return i}}(e[0],e[1],this.options.speedUnit)}:void 0},t.prototype.clearWind=function(){var t=this.getMap();t&&(this.$Windy&&this.$Windy.stop(),this.isClear=!0,this._cloneLayer=this,t.removeLayer(this),this.changed(),this.getMap().renderSync())},t.prototype.removeLayer=function(){var t=this.getMap();t&&(this.$Windy&&this.$Windy.stop(),this.un("postrender",this.redraw,this),t.removeLayer(this),delete this._canvas,delete this.$Windy,delete this._cloneLayer)},t.prototype.setMap=function(t){this.set("originMap",t)},t.prototype.getMap=function(){return this.get("originMap")},t.prototype._getProjectionCode=function(){var t="",e=this.getMap();return t=e?"EPSG:4490"===(t=e.getView()&&e.getView().getProjection().getCode())?"EPSG:4326":t:"EPSG:3857"},t.prototype.updateParams=function(t){if(this.options=Object.assign(this.options,t),this.$Windy){var e=this.options,n=e.minVelocity,i=e.maxVelocity,r=e.velocityScale,o=e.particleAge,a=e.lineWidth,s=e.particleMultiplier,l=e.colorScale,u=e.map;this.$Windy&&(this.$Windy.updateParams({minVelocity:n,maxVelocity:i,velocityScale:r,particleAge:o,lineWidth:a,particleMultiplier:s,colorScale:l,devicePixelRatio:this.options.devicePixelRatio,map:u}),this.getMap()&&this._canvas&&this.data&&this.renderWind(this._canvas))}return this},t.prototype.getParams=function(){return this.$Windy&&this.$Windy.getParams()},t}(r.layer.Image)}(n(9))},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.name=e.name,this.items=e.items}return i.prototype.contains=function(t){for(var e=0;e<this.items.length;++e){if(this.items[e]==t)return!0}return!1},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(10),n,e,t],void 0===(r=function(t,e,n,i){function r(t){}return t(r.prototype,{position:{get:function(){},set:function(t){}},heading:{get:function(){},set:function(t){}},pitch:{get:function(){},set:function(t){}},roll:{get:function(){},set:function(t){}},height:{get:function(){}}}),r.prototype.flyTo=function(t,e,n,i){},r.prototype.lookAt=function(t,e,n,i){},r.prototype.lookAtTransform=function(t,e,n,i){},r.prototype.setView=function(t){},r.prototype.move=function(t,e){},r.prototype.rotateUp=function(t){},r.prototype.rotateDown=function(t){},r.prototype.rotateLeft=function(t){},r.prototype.rotateRight=function(t){},r.prototype.moveForward=function(t){},r.prototype.moveBackward=function(t){},r.prototype.moveUp=function(t){},r.prototype.moveDown=function(t){},r.prototype.moveLeft=function(t){},r.prototype.moveRight=function(t){},r.prototype.rotate=function(t,e){},r.prototype.rotateHorizontal=function(t){},r.prototype.rotateVertical=function(t){},r.prototype.calculateRotationn=function(t,e){},r.prototype.calculateRotateAngle=function(t,e){},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.flyTo=function(t,e,n){},i.prototype.flyPath=function(t,e,n){},i.prototype.flyToGeometry=function(t){},i.prototype.getAltitude=function(t,e){},i.prototype.flyPath=function(t,e,n,i){},i.prototype.stopFly=function(){},i.prototype.pauseFly=function(){},i.prototype.enableSkyAtmosphere=function(t){},i.prototype.isPointVisible=function(t){},i.prototype.enableLight=function(t){},i.prototype.pickPosition=function(t){},i.prototype.pickSurfacePosition=function(t){},i.prototype.enableShadows=function(t){},i.prototype.startAnimation=function(){},i.prototype.stopAnimation=function(){},i.prototype.onMouseClick3d=function(t,e,n,i,r){this.tool&&this.tool.onMouseClicked&&this.tool.onMouseClicked(t,e,n,i,r);for(var o=0;o<this.events.click.length;++o){(0,this.events.click[o])(t,e,n,i,0,0,r)}},i.prototype.onMouseDown3d=function(t,e,n,i,r){this.tool&&this.tool.onMouseDown3d&&this.tool.onMouseDown3d(t,e,n,i,r);for(var o=0;o<this.events.mousedown.length;++o){(0,this.events.mousedown[o])(t,e,n,i,0,0,r)}},i.prototype.onMouseUp3d=function(t,e,n,i,r){this.tool&&this.tool.onMouseUp3d&&this.tool.onMouseUp3d(t,e,n,i,r);for(var o=0;o<this.events.mouseup.length;++o){(0,this.events.mouseup[o])(t,e,n,i,0,0,r)}},i.prototype.onMouseMove3d=function(t,e,n,i,r){this.tool&&this.tool.onMouseMove3d&&this.tool.onMouseMove3d(t,e,n,i,r);for(var o=0;o<this.events.mousemove.length;++o){(0,this.events.mousemove[o])(t,e,n,i,0,0,r)}},i.prototype.onPosition3d=function(t,e,n){this.tool&&this.tool.onPosition3d&&this.tool.onPosition3d(t,e,n);for(var i=0,r=this.events.position3d.length;i<r;++i){(0,this.events.position3d[i])(t,e,n)}},i.prototype.onDblclick3d=function(t,e){this.tool&&this.tool.onDblclick3d&&this.tool.onDblclick3d(screenX,screenY);for(var n=0;n<this.events.dblclick.length;++n){(0,this.events.dblclick[n])(t,e,coordinateX,coordinateY)}},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var r,o;r=[n(0),n(294),n(9),n(13),n(1),n(27),n(149),n,e,t],void 0===(o=function(t,o,l,n,e,d,r,a,s,u){!function(){r.defs("EPSG:2436","+title=Beijing_1954+proj=tmerc+lat_0=0+lon_0=117+k=1+x_0=500000+y_0=0+ellps=krass+towgs84=15.8,-154.4,-82.3,0,0,0,0+units=m +no_defs"),r.defs("EPSG:4509","+title=CGCS2000+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),r.defs("EPSG:4490","+title=CGCS2000+proj=longlat +ellps=GRS80 +no_defs");var t=new l.proj.Projection({axisOrientation:"neu",code:"urn:ogc:def:crs:EPSG::4490",units:"degrees",extent:[-180,-90,180,90],worldExtent:[-180,-90,180,90],global:!0});l.proj.addProjection(t),l.proj.addProjection(new l.proj.Projection({code:"EPSG:2436",units:"m",extent:[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244]})),l.proj.addProjection(new l.proj.Projection({code:"EPSG:4509",units:"m",extent:[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244]})),l.proj.addProjection(new l.proj.Projection({code:"EPSG:4490",units:"degrees",worldExtent:[-180,-90,180,90],extent:[-180,-90,180,90],global:!0})),l.proj.addProjection(new l.proj.Projection({code:"EPSG:4326",units:"degrees",extent:[-180,-90,180,90],worldExtent:[-180,-90,180,90],global:!0})),l.proj.addProjection(new l.proj.Projection({code:"http://www.opengis.net/gml/srs/epsg.xml#4326",units:"degrees",extent:[-180,-90,180,90],worldExtent:[-180,-90,180,90]})),l.proj.addProjection(new l.proj.Projection({code:"http://www.opengis.net/gml/srs/epsg.xml#4490",units:"degrees",extent:[-180,-90,180,90],worldExtent:[-180,-90,180,90]}))}();function h(t){return t.projection?t.projection:"EPSG:3857"}function p(t){t=t||{},o.call(this,t);var e=this;this.draggpanFlag=!0,this.dbClickFlag=!0,this.mouseWheelZoomFlag=!0,this.pinchZoomFlag=!0,this.removeInteractionsFlag=!1,this.clusterScatterFlag=!1,this.keyboardPanFlag=!0,this.interactions=new l.Collection,this.dragPan=new l.interaction.DragPan({condition:function(){return e.draggpanFlag&&!e.removeInteractionsFlag},kinetic:new l.Kinetic(-.005,.05,100)}),this.mouseWheelZoom=new l.interaction.MouseWheelZoom({condition:function(){return e.mouseWheelZoomFlag&&!e.removeInteractionsFlag},duration:void 0===t.duration?800:t.duration,timeout:void 0===t.timeout?300:t.timeout}),this.doubleClickZoom=new l.interaction.DoubleClickZoom({condition:function(){return e.dbClickFlag&&!e.removeInteractionsFlag},duration:void 0===t.duration?800:t.duration,timeout:void 0===t.timeout?300:t.timeout}),this.pinchZoom=new l.interaction.PinchZoom({condition:function(){return e.pinchZoomFlag&&!e.removeInteractionsFlag},duration:void 0===t.duration?800:t.duration,timeout:void 0===t.timeout?300:t.timeout});var s=new l.style.Fill({color:"rgba(255, 255, 255, 0.01)"});if(this.select=new l.interaction.Select({condition:function(t){return e.clusterScatterFlag&&!e.removeInteractionsFlag&&("singleclick"===t.type||"pointermove"===t.type)},style:function(t,e){for(var n,i=[new l.style.Style({image:new l.style.Circle({radius:t.get("radius"),fill:s})})],r=t.get("features"),o=r.length-1;0<=o;--o){var a=(n=r[o]).getStyle();a.setGeometry(n.getGeometry()),i.push(a)}return i},layers:function(t){if(t.getSource()instanceof l.source.Cluster)return t}}),this.keyboardPan=new l.interaction.KeyboardPan({condition:function(){return e.keyboardPanFlag&&!e.removeInteractionsFlag}}),this.interactions.push(this.select),this.interactions.push(this.dragPan),this.interactions.push(this.mouseWheelZoom),this.interactions.push(this.doubleClickZoom),this.interactions.push(this.pinchZoom),this.interactions.push(this.keyboardPan),this.tempControl=[],this._fullExtent=t.fullExtent,(i=t.defaultExtent||{}).center||i.level){this.mode=0;var n=i.projection||"EPSG:3857";this.spatialReference=parseInt(n.split(":")[1]),this.map=new l.Map({view:new l.View({maxZoom:null==i.maxZoom?21:i.maxZoom,minZoom:null==i.minZoom?2:i.minZoom,center:i.center||[0,0],zoom:null==i.level?6:i.level,projection:h(i),resolutions:i.resolutions,pixelRatio:1,extent:i.extent}),controls:[],overlays:[],interactions:this.interactions,renderer:t.renderer||"canvas",extent:i.extent,loadTilesWhileInteracting:void 0===t.loadTilesWhileInteracting||t.loadTilesWhileInteracting})}else{this.mode=1,this.spatialReference=t.srid;var i={projection:"EPSG:"+t.srid,extent:t.extent},r=new l.View({maxZoom:null==t.maxZoom?21:t.maxZoom,minZoom:null==t.minZoom?2:t.minZoom,center:[0,0],zoom:6,projection:h(i),extent:i.extent});this.map=new l.Map({view:r,controls:[],overlays:[],interactions:this.interactions,renderer:t.renderer||"canvas",pixelRatio:1,loadTilesWhileInteracting:void 0===t.loadTilesWhileInteracting||t.loadTilesWhileInteracting}),this.defaultExtent=t.defaultExtent}this.map.setSize([window.innerWidth,window.innerHeight]),this.tool=null,this._glLayers=[],this.bindFunc={click:this.onMouseClick.bind(this),pointermove:this.onMouseMove.bind(this),pointerdown:this.onMouseDown.bind(this),pointerup:this.onMouseUp.bind(this),pointerdrag:this.onDrag.bind(this),dblclick:this.onDblclick.bind(this),moveend:this.onExtentChanged.bind(this),"change:size":this.onResize.bind(this),"change:resolution":this.onResolutionChanged.bind(this),postrender:this.onPostRender.bind(this),precompose:this.onPreCompose.bind(this),postcompose:this.onPostCompose.bind(this)}}function c(t,e){this.panoContainer=document.createElement("div"),this.panoContainer.id="panorama_container",this.panoContainer.className="bdPano_Container",t.parentNode.appendChild(this.panoContainer),this.panoContainer.style.display="none";var n=document.createElement("div");n.className="BMap_noprint",n.title="进入全景";var i=document.createElement("span");i.innerText="全景",i.style="position:relative;top:33px;",n.appendChild(i);var r=this.getMapControl().getViewport().querySelector(".ol-overlaycontainer-stopevent");r?r.appendChild(n):this.getMapControl().getViewport().appendChild(n);var o=0;n.addEventListener("click",function(){1===++o?singleClickTimer=setTimeout(function(){o=0,e()},300):2===o&&(clearTimeout(singleClickTimer),o=0)})}function f(){for(var n=function(t){if(t)if(t.groupLayers)for(var e=0;e<t.groupLayers.length;e++)n(t.groupLayers[e]);else if(t._glMap)try{t._glMap.resize()}catch(t){}},t=0;t<this.layers.length;t++){var e=this.layers[t];n(e)}}t.extend2(p,o),p.prototype.init=function(t){for(this.map.setTarget(t.targetId),i=0;i<this.tempControl.length;i++)this.map.addControl(this.tempControl[i]);1===this.mode&&this.defaultExtent&&this.map.getView().fit(this.defaultExtent);if(this.panomap&&this.panomap.used){var e=document.getElementById(t.targetId);c.call(this,e,this.panomap.clickFuc),this.panomap=null,delete this.panomap}(function(){var t=this.map.getViewport(),e=this;t.addEventListener("keydown",function(t){e.onKeyDown(t.keyCode,t.shiftKey)}),t.addEventListener("keyup",function(t){e.onKeyUp(t.keyCode,t.shiftKey)})}).call(this),function(){this.map.on("click",this.bindFunc.click),this.map.on("pointermove",this.bindFunc.pointermove),this.map.on("pointerdown",this.bindFunc.pointerdown),this.map.on("pointerup",this.bindFunc.pointerup),this.map.on("pointerdrag",this.bindFunc.pointerdrag),this.map.on("dblclick",this.bindFunc.dblclick),this.map.on("moveend",this.bindFunc.moveend),this.map.on("change:size",this.bindFunc["change:size"]),this.map.getView().on("change:resolution",this.bindFunc["change:resolution"]),this.map.on("postrender",this.bindFunc.postrender),this.map.on("precompose",this.bindFunc.precompose),this.map.on("postcompose",this.bindFunc.postcompose)}.call(this);var n=this;setTimeout(function(){n.map.updateSize()},200)},p.prototype.addControl=function(t){this.tempControl.push(t),t&&(t._egismap=this)},p.prototype.getSrid=function(){return this.spatialReference},p.prototype.addScaleLineControl=function(t){var e=new l.control.ScaleLine({className:t});this.map.addControl(e)},p.prototype.addPanoramaControl=function(t){var e=this.getMapControl().getViewport().parentNode;e?c.call(this,e,t.controlClickFun):this.panomap={used:!0,clickFuc:t.controlClickFun}},p.prototype.removePanoramaControl=function(t){var e=document.getElementById("panorama_container");e&&(e.remove(),delete this.panoContainer);var n=document.getElementsByClassName("BMap_noprint");0<n.length&&n[0].remove(),t&&t._rightClick instanceof Function&&(t._rightClick(),t.map.map.getViewport().removeEventListener("contextmenu",t._rightClick),t._enterEvent.removeAll(),t._exitEvent.removeAll(),t._cancelEvent.removeAll())},p.prototype.setMaxZoom=function(t){t=t||15,this.map.getView().setMaxZoom(t)},p.prototype.getMaxZoom=function(){return this.map.getView().getMaxZoom()},p.prototype.setMinZoom=function(t){t=t||2,this.map.getView().setMinZoom(t)},p.prototype.getMinZoom=function(){return this.map.getView().getMinZoom()},p.prototype.addLayer=function(t){null!=t&&(p.prototype.uber.addLayer.call(this,t),this.map.addLayer(t.getLayer()),t.hasOwnProperty("map")&&null==t.map&&(t.map=this),function(t){var e=t.events;for(var n in e)for(var i=e[n],r=0;r<i.length;r++){var o=i[r].registerFunc;"mouseover"==n||"mouseout"==n?this.on("mousemove",o):this.on(n,o)}}.call(this,t),t.init())},p.prototype.removeLayer=function(t,e){t&&((e=void 0===e||e)&&t.clear(),p.prototype.uber.removeLayer.call(this,t),function(t){var e=t.events;for(var n in e)for(var i=e[n],r=0;r<i.length;r++){var o=i[r].registerFunc;"mouseover"==n||"mouseout"==n?this.un("mousemove",o):this.un(n,o)}}.call(this,t),t.unInit(),this.map.removeLayer(t.getLayer()))},p.prototype.setClusterScatter=function(t){this.clusterScatterFlag=t},p.prototype.getExtent=function(){var t=this.map.getSize(),e=this.map.getView().calculateExtent(t);return new n({minx:-180==e[0]?-180:e[0]%180,miny:e[1],maxx:180==e[2]?180:e[2]%180,maxy:e[3],spatialReference:this.spatialReference})},p.prototype.getZoomLevel=function(){return this.map.getView().getZoom()},p.prototype.getResolution=function(){return this.map.getView().getResolution()},p.prototype.setResolution=function(t){this.map.getView().setResolution(t)},p.prototype.getMapControl=function(){return p.prototype.uber.getMapControl.call(this),this.map},p.prototype.getOrigin=function(){var t=this.map.getView().getProjection().getExtent();return l.extent.getTopLeft(t)},p.prototype.getViewSize=function(){return this.map.getSize()},p.prototype.moveLayer=function(t,e){if(-1<e&&e<this.layers.length)for(var n=0;n<this.layers.length;n++)if(t.name==this.layers[n].name){this.layers.splice(n,1),this.layers.splice(e,0,t);for(var i=0;i<this.layers.length;i++)this.layers[i].setZIndex(i);return}},p.prototype.setViewSize=function(t,e){this.map.setSize([t,e]),f.call(this)},p.prototype.updateViewSize=function(){this.map.updateSize(),f.call(this)},p.prototype.onMouseDown=function(t){this.map.getViewport().tabIndex=1;var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];p.prototype.uber.onMouseDown.call(this,e,!1,n,i,r,o,!1)},p.prototype.onMouseUp=function(t){var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];p.prototype.uber.onMouseUp.call(this,e,!1,n,i,r,o,!1)},p.prototype.onDrag=function(t){var e=t.frameState.extent;p.prototype.uber.onDrag.call(this,e[0],e[3],e[2],e[1])},p.prototype.onMouseMove=function(t){var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];p.prototype.uber.onMouseMove.call(this,e,!1,n,i,r,o,!1)},p.prototype.onExtentChanged=function(t){var e=this.map.getView(),n=t.frameState.extent,i=(n[0]+n[2])/2,r=(n[1]+n[3])/2,o=e.getProjection().getExtent(),a=o[0],s=o[1],l=o[2],u=o[3],h=!1;if(o&&(l<i&&1e-5<Math.abs(l-i)?(l,h=!0):i<a&&1e-5<Math.abs(a-i)&&(a,h=!0),u<r&&1e-5<Math.abs(u-r)?(u,h=!0):r<s&&1e-5<Math.abs(s-r)&&(s,h=!0),h)){this.map.un("moveend",this.onExtentChanged,this);var c=this;setTimeout(function(){c.map.on("moveend",c.onExtentChanged,c)},500)}p.prototype.uber.onExtentChanged.call(this,n[0],n[3],n[2],n[1])},p.prototype.onMouseClick=function(t){var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];p.prototype.uber.onMouseClick.call(this,e,!1,n,i,r,o,!1)},p.prototype.onDblclick=function(t){var e=t.originalEvent.button||0,n=t.pixel[0],i=t.pixel[1],r=t.coordinate[0],o=t.coordinate[1];t.pixel,t.coordinate;p.prototype.uber.onDblclick.call(this,e,!1,n,i,r,o,!1)},p.prototype.onResize=function(t){var e=this.getViewSize(),n=t.oldValue;p.prototype.uber.onResize.call(this,e,n)},p.prototype.onResolutionChanged=function(t){var e=t.oldValue,n=this.map.getView(),i=n.getResolution(),r=n.getZoom();p.prototype.uber.onResolutionChanged.call(this,i,e,r)},p.prototype.onPreCompose=function(t){p.prototype.uber.onPreCompose.call(this,t)},p.prototype.onPostRender=function(t){p.prototype.uber.onPostRender.call(this,t)},p.prototype.exportData=function(n){var e=document.getElementById(this.map.getTarget());this.map.once("postcompose",function(t){html2canvas(e,{allowTaint:!0}).then(function(t){var e=t.toDataURL();n(e)})}),this.map.renderSync()},p.prototype.export=function(p,f){var e=document.getElementById(this.map.getTarget());this.map.once("postcompose",function(t){html2canvas(e,{allowTaint:!0}).then(function(t){for(var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/),n=!!e&&parseInt(e[1]),i=t.toDataURL().replace(/^data:image\/png;base64,/,""),r=atob(i),o=new ArrayBuffer(r.length),a=new Uint8Array(o),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);var l=new Blob([a],{type:"image/"+f});if(""==p&&(p=d.newGuid()),n){if(navigator.msSaveBlob)return navigator.msSaveBlob(l,p+"."+f)}else{var u=document.createElement("a"),h=window.URL.createObjectURL(l);"download"in u?u.setAttribute("download",p+"."+f):u.setAttribute("target","_blank"),u.href=h;var c=document.createEvent("MouseEvents");c.initEvent("click",!0,!0),u.dispatchEvent(c)}})}),this.map.renderSync()},p.prototype.exportPDF=function(i){var e=document.getElementById(this.map.getTarget());this.map.once("postcompose",function(t){html2canvas(e,{allowTaint:!0}).then(function(t){var e=t.toDataURL(),n=new jsPDF("l","mm",[t.width,t.height]);n.addImage(e,"png",0,0,t.width,t.height,void 0,"fast"),n.save(i+".pdf")})}),this.map.renderSync()},p.prototype.stopDragPan=function(){this.draggpanFlag=!1},p.prototype.resumeDragPan=function(){this.removeInteractionsFlag||(this.draggpanFlag=!0,this.setCursor("pointer"))},p.prototype.stopPinchZoom=function(){this.pinchZoomFlag&&this.map.removeInteraction(this.pinchZoom),this.pinchZoomFlag=!1},p.prototype.resumePinchZoom=function(){this.pinchZoomFlag||(this.pinchZoomFlag||this.map.addInteraction(this.pinchZoom),this.pinchZoomFlag=!0)},p.prototype.stopDbClick=function(){this.dbClickFlag&&this.map.removeInteraction(this.doubleClickZoom),this.dbClickFlag=!1},p.prototype.resumeDbClick=function(){if(!this.removeInteractionsFlag){var t=this;setTimeout(function(){t.dbClickFlag||t.map.addInteraction(t.doubleClickZoom),t.dbClickFlag=!0},300)}},p.prototype.stopMouseWheelZoom=function(){this.mouseWheelZoomFlag=!1},p.prototype.resumeMouseWheelZoom=function(){this.removeInteractionsFlag||(this.mouseWheelZoomFlag=!0)},p.prototype.removeInteractions=function(){var e=this;this.interactions.forEach(function(t){t!==e.dragPan&&t!==e.mouseWheelZoom&&t!==e.keyboardPan&&t!==e.select&&e.map.removeInteraction(t)}),this.dbClickFlag=!1,this.draggpanFlag=!1,this.keyboardPanFlag=!1,this.clusterScatterFlag=!1,this.removeInteractionsFlag=!0},p.prototype.resumeInteractions=function(){var e=this;setTimeout(function(){e.interactions.forEach(function(t){t!==e.dragPan&&t!==e.mouseWheelZoom&&t!==e.keyboardPan&&t!==e.select&&e.map.addInteraction(t)})},300),this.dbClickFlag=!0,this.draggpanFlag=!0,this.keyboardPanFlag=!0,this.clusterScatterFlag=!1,this.removeInteractionsFlag=!1},p.prototype.fullExtent=function(){var t=this.map.getView();0===this.mode?(t.setCenter(this._fullExtent.center),t.setZoom(this._fullExtent.level)):1===this.mode&&this._fullExtent&&t.fit(this._fullExtent)},p.prototype.zoomOut=function(){var t=this.map.getView();t.setZoom(t.getZoom()-1)},p.prototype.zoomIn=function(){var t=this.map.getView();t.setZoom(t.getZoom()+1)},p.prototype.zoomTo=function(t){this.map.getView().setZoom(t)},p.prototype.setCursor=function(t){var e=t||"pointer";this.map.getViewport().style.cursor=e},p.prototype.getViewport=function(){return this.map.getViewport()},p.prototype.rotate=function(t){var e=this.map.getView();t=t%360/180*Math.PI,e.animate({rotation:t})},p.prototype.setCenter=function(t){this.map.getView().setCenter([t.x,t.y])};var y=new e;return p.prototype.getCenter=function(){var t=this.map.getView().getCenter();return y.x=t[0],y.y=t[1],y.spatialReference=this.spatialReference,y},p.prototype.pan=function(t,e,n,i){var r=this.map.getView(),o=this.map.getSize(),a=t.envelope();a=a.expand(i),r.fit([a.minx,a.miny,a.maxx,a.maxy],{size:o,padding:e||[10,10,10,10],constrainResolution:null==n||n})},p.prototype.getPixelFromCoordinate=function(t){return this.map.getPixelFromCoordinate(t)},p.prototype.getCoordinateFromPixel=function(t){return this.map.getCoordinateFromPixel(t)},p.prototype.destroy=function(){this.removeInteractions(),function(){this.map.un("click",this.bindFunc.click),this.map.un("pointermove",this.bindFunc.pointermove),this.map.un("pointerdown",this.bindFunc.pointerdown),this.map.un("pointerup",this.bindFunc.pointerup),this.map.un("pointerdrag",this.bindFunc.pointerdrag),this.map.un("dblclick",this.bindFunc.dblclick),this.map.un("moveend",this.bindFunc.moveend),this.map.un("change:size",this.bindFunc["change:size"]),this.map.getView().un("change:resolution",this.bindFunc["change:resolution"]),this.map.un("postrender",this.bindFunc.postrender),this.map.un("precompose",this.bindFunc.precompose),this.map.un("postcompose",this.bindFunc.postcompose)}.call(this),this.select={};for(var t=["addlayer","click","dblclick","drag","extentchanged","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","position3d","postrender","prerender","removelayer","resize","resolutionchanged","wheel"],e=t.length-1;0<=e;--e)this.events[t[e]]&&(this.events[t[e]]=[]);this.tool=null,this.cursor=null,this.tempControl=[],this.map.getOverlays().clear(),this.map.getControls().clear(),this.map.getInteractions().clear();for(e=this.layers.length-1;0<=e;--e){var n=this.layers[e];this.removeLayer(n);var i=n.getLayer();if(i){if(i instanceof l.layer.Group)i.getLayers().forEach(function(t){t.dispose()});i.dispose()}}var r=this.map.getTargetElement();if(null!=r){var o=r.childNodes;if(null!=o&&0<o.length)for(e=o.length-1;0<=e;--e)r.removeChild(o[e])}this.map=null},u.exports=p}.apply(e,r))||(t.exports=o)},function(t,e,n){var i,r;i=[n(0),n(65),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.format=t.format,this.type=t.type,this.transparent=t.transparent}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.ArcGISRest},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(66),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.matrix=t.matrix,this.origin=t.origin,this.baiduType=t.baiduType}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.BaiduMap},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(66),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.matrix=t.matrix,this.key=t.key}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.BingMaps},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(80),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.Contour},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(65),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.Google},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(173),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.extent=t.extent}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.ImageStatic},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(173),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.layers=t.layers,this.tiled=t.tiled,this.version=t.version}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.ImageWMS},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(65),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.OSM},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(66),n(14),n(23),n(128),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){t=t||{},e.call(this,t),this.projection=t.projection,this.minZoom=t.minZoom,this.maxZoom=t.maxZoom,this.resolutions=t.resolutions,this.tileSize=t.tileSize,this.extent=t.extent,this.source=t.source}return t.extend2(l,e),l.prototype.copy=function(){return new l(this)},l.prototype.getSourceType=function(){return n.OfflineLayer},l.prototype.createService=function(){},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(13),n(295),n(296),n(297),n(298),n(532),n(299),n(300),n(301),n(65),n(302),n,e,t],void 0===(r=function(u,r,h,c,o,a,s,l,p,t,f,e,n,i){var d={},y="WBMSCapability",m="WBTSCapability",g="WFSCapability",v="TSWFSCapability",x="AGWFSCapability",_="WMSCapability",w="WMTSCapability",b="WDMSCapability",P="WOPSCapability",S="WTTSCapability",C="WVTSCapability",M="WPXYZCapability",T="WPWMTSCapability",A="WPWMSCapability",E="EPSG:";return d.createSource=function(t,e,n,i){if(e&&e.hasOwnProperty("$type"))switch(e.$type.split(",")[0].trim()){case _:return function(t,e){e.extent;return new r({projection:E+e.srid,layers:e.name,url:t})}(t,e);case w:return function(t,e){var n=e.extent,i=e.gridset.tileMatrixs,r=[],o=[];i.forEach(function(t){r.push(t.resolution),o.push(t.name)});var a=e.gridset.origin,s=[a.x,a.y],l=[e.gridset.tileWidth,e.gridset.tileHeight],u=e.gridset.name;return new h({url:t,projection:E+e.srid,layers:e.name,extent:n,format:e.format,style:e.style,matrix:i.length,matrixSet:u,matrixIds:o,matrixPrefix:u+":",origin:s,resolutions:r,tileSize:l[0]})}(t,e);case C:return function(t,e){var n=e.extent,i=e.gridset.tileMatrixs,r=[],o=[];i.forEach(function(t){r.push(t.resolution),o.push(t.name)});var a=e.gridset.origin,s=[a.x,a.y],l=[e.gridset.tileWidth,e.gridset.tileHeight],u=e.gridset.name;return new c({url:t,extent:n,projection:E+e.srid,layers:e.name,format:e.format,matrix:i.length,matrixIds:o,matrixSet:u,matrixPrefix:u+":",origin:s,resolutions:r,tileSize:l})}(t,e);case S:return function(t,e){return new o({url:t+"/"+e.name,requestVertexNormals:!0,requestWaterMask:!0})}(t,e);case m:return function(t,e){return new a({url:t+"/"+e.name+"/tileset.json",maximumOfLoadedTiles:40,maximumScreenSpaceError:8,maximumMemoryUsage:60})}(t,e);case P:return function(t,e){return new a({url:t+"/"+e.name+"/tileset.json"})}(t,e);case y:return function(t,e){return new s({url:t,name:e.name})}(t,e);case g:case v:case x:return function(t,e){return new l({url:t,name:e.name})}(t,e);case b:return function(t,e,n,i){var r=new u({spatialReference:e.srid});e.entityNames;n instanceof Array&&(n=n.join(","));i instanceof Array&&(i=i.join(","));for(var o=n.split(","),a=0,s=o.length;a<s;++a){var l=e.getExtentByName(o[a]);l&&(r=r.union(l))}return new p({projection:E+e.srid,layers:n,catalog:e.name,url:t,styles:i})}(t,e,n,i);case M:case T:case A:return function(t,e){return new f({url:t,capability:e})}(t,e)}},i.exports=d}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(79),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.url=t.url,this.maximumScreenSpaceError=t.maximumScreenSpaceError,this.maximumOfLoadedTiles=t.maximumOfLoadedTiles,this.maximumMemoryUsage=t.maximumMemoryUsage}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.Tile3D},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(65),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.SuperMap},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(65),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.Tianditu},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(130),n(14),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.token=t.token,this.url=t.url,this.filter=t.filter}return t.extend2(a,e),a.prototype.copy=function(){return new a(this)},a.prototype.getSourceType=function(){return n.WES},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(81),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.fillColor=t.fillColor,this.maxSize=t.maxSize,this.minSize=t.minSize,this.maxWeight=t.maxWeight,this.minWeight=t.minWeight,this.shadow=t.shadow,this.shadowBlur=t.shadowBlur,this.shadowColor=t.shadowColor,this.$type="BubbleRenderDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.startValue=t.startValue,this.endValue=t.endValue,this.styleName=t.styleName,this.$type="Classification,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(81),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.showLabel=t.showLabel,this.labelField=t.labelField,this.defaultStyleName=t.defaultStyleName,this.classifyStyles=t.classifyStyles||[],this.$type="ClassifyRenderDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(81),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.fillColor=t.fillColor,this.size=t.size,this.maxWeight=t.maxWeight,this.minWeight=t.minWeight,this.shadow=t.shadow,this.shadowBlur=t.shadowBlur,this.shadowColor=t.shadowColor,this.stopCollection=t.stopCollection,this.$type="IntensityRenderDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(303),n(175),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).serviceFix="render",e.call(this,t),n.call(this,t),this.url=t.url,this.serviceFix=t.serviceFix}return t.extend2(a,e),t.extend2(a,n),a.prototype.findByName=function(t){var e="{url}/wscs/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findByName?name="+t;return this._getRequestWithSerializer(e)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(81),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.showLabel=t.showLabel,this.labelField=t.labelField,this.styleName=t.styleName,this.$type="SimpleRenderDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(81),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.defaultStyleName=t.defaultStyleName,this.showLabel=t.showLabel,this.labelField=t.labelField,this.uniqueStyles=t.uniqueStyles||[],this.$type="UniqueRenderDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.uniqueValue=t.uniqueValue,this.styleName=t.styleName,this.$type="UniqueStyle,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(176),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.symbol=t.symbol,this.$type="GEntityStyleDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(176),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.content=t.content,this.$type="MapStyleDescriptor,http://www.Gs.com"}return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(304),n(175),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).serviceFix="style",e.call(this,t),n.call(this,t),this.url=t.url,this.serviceFix=t.serviceFix}var s="{url}/wscs/{serviceName}";return t.extend2(a,e),t.extend2(a,n),a.prototype.findEntityStyle=function(){var t=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findEntityStyle";return this._getRequestWithSerializer(t)},a.prototype.findBySymbolName=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findBySymbolName?symbolName="+t;return this._getRequestWithSerializer(e)},a.prototype.findStyleSummaries=function(){var t=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findStyleSummaries";return this._getRequest(t)},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.styleName=t.styleName,this.kind=t.kind,this.$type="StyleSummary,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(177),n(1),n(549),n(10),n(60),n(36),n(132),n(40),n,e,t],void 0===(r=function(t,e,n,i,r,h,o,a,s,l,u,c){function p(t){t=t||{},e.call(this,t),f=this}var f;return t.extend2(p,e),p.prototype.mouseMove=function(t,e,n,i,r,o,a){p.prototype.uber.mouseMove.call(f,t,e,n,i,r,o,a);var s=f.toolTip.anchor;s=f._projectService.transform(s,3857);var l="http://pcsv0.map.bdimg.com/?qt=qsdata&x={0}&y={1}&r=50&action=1",u=h.smerc2bmerc([s.x,s.y]);l=l.replace("{0}",u[0]).replace("{1}",u[1]),setTimeout(function(){n===f._lastScreenX&&i===f._lastScreenY&&fetch(l).then(function(t){t.json().then(function(t){if(t.content){var e=t.content[0].ID,n=t.content[0].Rname,i="http://pcsv0.map.bdimg.com/scape/?qt=pdata&sid={0}&pos=0_0&z=0";i=i.replace("{0}",e);var r=new Image;r.src=i,r.onload=function(){f.toolTip.content='<img src= "'+r.src+'" style="width:100px;height:75px;"/><br /><div class="pano_icon"></div>',n&&(f.toolTip.content=f.toolTip.content.replace("<br />","<span>"+n+"</span><br />")),f.toolTipWare.update(f.toolTip)},r.onerror=function(){console.error("error")}}else f.toolTip.content='<img src= "'+f._defaultNullImage+'" /><br /><div class="pano_icon"></div>',f.toolTipWare.update(f.toolTip)})})},f._waitTime),f.toolTipWare.update(f.toolTip)},p.prototype.mouseClick=function(t,e,n,i,r,o,a){p.prototype.uber.mouseClick.call(f,t,e,n,i,r,o,a);var s=f.toolTip.anchor;s=f._projectService.transform(s,3857);var l="http://pcsv0.map.bdimg.com/?qt=qsdata&x={0}&y={1}&r=50&action=1",u=h.smerc2bmerc([s.x,s.y]);l=l.replace("{0}",u[0]).replace("{1}",u[1]),fetch(l).then(function(t){t.json().then(function(t){if(t.content){var e=t.content[0].ID;f._pano||(f._pano=new window.BMap.Panorama(f.map.panoContainer.id),f._pano.setPov({heading:f._heading,pitch:f._pitch}),f._pano.setOptions({navigationControl:f._navigationControl,linksControl:f._linksControl})),f.map.getMapControl().getViewport().parentNode.style.display="none",f.map.panoContainer.style.display="block",f.map.panoContainer.appendChild(f._hidePanoDiv),f._pano.setId(e),f._rightClick(),f._enterEvent.raiseEvent(s)}})})},c.exports=p}.apply(e,i))||(t.exports=r)},function(module,exports){window.TILE_VERSION={ditu:{normal:{version:"088",updateDate:"20210223"},satellite:{version:"009",updateDate:"20210223"},normalTraffic:{version:"081",updateDate:"20210223"},satelliteTraffic:{version:"083",updateDate:"20210223"},mapJS:{version:"104",updateDate:"20210223"},satelliteStreet:{version:"083",updateDate:"20210223"},earthVector:{version:"001",updateDate:"20210223"}},webapp:{high_normal:{version:"001",updateDate:"20210223"},lower_normal:{version:"002",updateDate:"20210223"}},api_for_mobile:{vector:{version:"002",updateDate:"20210223"},vectorIcon:{version:"002",updateDate:"20210223"}}},function(){if(null!=window.BMAP_AUTHENTIC_KEY){var l=void 0,p=!0,q=null,t=!1,fa,ga=[],ja,A=ja=A||{version:"1.3.4"};A.da="$BAIDU$",window[A.da]=window[A.da]||{},A.object=A.object||{},A.extend=A.object.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},A.U=A.U||{},A.U.fa=function(t){return"string"==typeof t||t instanceof String?document.getElementById(t):t&&t.nodeName&&(1==t.nodeType||9==t.nodeType)?t:q},A.fa=A.Ic=A.U.fa,A.U.aa=function(t){return(t=A.U.fa(t))===q||(t.style.display="none"),t},A.aa=A.U.aa,A.lang=A.lang||{},A.lang.Eg=function(t){return"[object String]"==Object.prototype.toString.call(t)},A.Eg=A.lang.Eg,A.lang.jE=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return t;for(var n in e)return t;return p},A.jE=A.lang.jE,A.U.Zj=function(t){return A.lang.Eg(t)?document.getElementById(t):t},A.Zj=A.U.Zj,A.U.getElementsByClassName=function(t,e){var n;if(t.getElementsByClassName)n=t.getElementsByClassName(e);else{(i=t)==q&&(i=document),n=[];var i,r,o,a=(i=i.getElementsByTagName("*")).length,s=RegExp("(^|\\s)"+e+"(\\s|$)");for(o=r=0;r<a;r++)s.test(i[r].className)&&(n[o]=i[r],o++)}return n},A.getElementsByClassName=A.U.getElementsByClassName,A.U.contains=function(t,e){var n=A.U.Zj;t=n(t),e=n(e);return t.contains?t!=e&&t.contains(e):!!(16&t.compareDocumentPosition(e))},A.ga=A.ga||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(A.ga.oa=A.oa=document.documentMode||+RegExp.$1);var ka={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"},M1p;A.ga.oa<8?(ka.for="htmlFor",ka.class="className"):(ka.htmlFor="for",ka.className="class"),A.U.IG=ka,A.U.hF=function(t,e,n){return(t=A.U.fa(t))===q||("style"==e?t.style.cssText=n:(e=A.U.IG[e]||e,t.setAttribute(e,n))),t},A.hF=A.U.hF,A.U.iF=function(t,e){if((t=A.U.fa(t))===q)return t;for(var n in e)A.U.hF(t,n,e[n]);return t},A.iF=A.U.iF,A.cl=A.cl||{},M1p=RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g"),A.cl.trim=function(t){return(""+t).replace(M1p,"")},A.trim=A.cl.trim,A.cl.hp=function(t,e){t=""+t;var i=Array.prototype.slice.call(arguments,1),r=Object.prototype.toString;return i.length?(i=1==i.length&&e!==q&&/\[object Array\]|\[object Object\]/.test(r.call(e))?e:i,t.replace(/#\{(.+?)\}/g,function(t,e){var n=i[e];return"[object Function]"==r.call(n)&&(n=n(e)),void 0===n?"":n})):t},A.hp=A.cl.hp,A.U.rc=function(t,e){if((t=A.U.fa(t))===q)return t;for(var n,i,r=t.className.split(/\s+/),o=e.split(/\s+/),a=o.length,s=0;s<a;++s)for(i=0,n=r.length;i<n;++i)if(r[i]==o[s]){r.splice(i,1);break}return t.className=r.join(" "),t},A.rc=A.U.rc,A.U.Nx=function(t,e,n){return(t=A.U.fa(t))===q||(t.insertAdjacentHTML?t.insertAdjacentHTML(e,n):(i=t.ownerDocument.createRange(),"AFTERBEGIN"==(e=e.toUpperCase())||"BEFOREEND"==e?(i.selectNodeContents(t),i.collapse("AFTERBEGIN"==e)):(i[(e="BEFOREBEGIN"==e)?"setStartBefore":"setEndAfter"](t),i.collapse(e)),i.insertNode(i.createContextualFragment(n)))),t;var i},A.Nx=A.U.Nx,A.U.show=function(t){return(t=A.U.fa(t))===q||(t.style.display=""),t},A.show=A.U.show,A.U.DD=function(t){return(t=A.U.fa(t))===q?t:9==t.nodeType?t:t.ownerDocument||t.document},A.U.ib=function(t,e){if((t=A.U.fa(t))===q)return t;for(var n=e.split(/\s+/),i=t.className,r=" "+i+" ",o=0,a=n.length;o<a;o++)r.indexOf(" "+n[o]+" ")<0&&(i=i+" "+n[o]);return t.className=i,t},A.ib=A.U.ib,A.U.CB=A.U.CB||{},A.U.Wl=A.U.Wl||[],A.U.Wl.filter=function(t,e,n){for(var i,r=0,o=A.U.Wl;i=o[r];r++)(i=i[n])&&(e=i(t,e));return e},A.cl.wO=function(t){return t.indexOf("-")<0&&t.indexOf("_")<0?t:t.replace(/[-_][^-_]/g,function(t){return t.charAt(1).toUpperCase()})},A.U.r0=function(t){A.U.it(t,"expand")?A.U.rc(t,"expand"):A.U.ib(t,"expand")},A.U.it=function(e){if(arguments.length<=0||"function"==typeof e)return this;if(this.size()<=0)return t;var i,r=(e=e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," ")).split(" ");return A.forEach(this,function(e){e=e.className;for(var n=0;n<r.length;n++)if(!~(" "+e+" ").indexOf(" "+r[n]+" "))return void(i=t);i!==t&&(i=p)}),i},A.U.Dg=function(t,e){var n=A.U;if((t=n.fa(t))===q)return t;e=A.cl.wO(e);if(!(r=t.style[e])){var i=n.CB[e],r=t.currentStyle||(A.ga.oa?t.style:getComputedStyle(t,q));r=i&&i.get?i.get(t,r):r[i||e]}return(i=n.Wl)&&(r=i.filter(e,r,"get")),r},A.Dg=A.U.Dg,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(A.ga.opera=+RegExp.$1),A.ga.oM=/webkit/i.test(navigator.userAgent),A.ga.KY=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),A.ga.qE="CSS1Compat"==document.compatMode,A.U.ma=function(t){if((t=A.U.fa(t))===q)return t;var e=A.U.DD(t),n=A.ga,i=A.U.Dg;0<n.KY&&e.getBoxObjectFor&&i(t,"position");var r,o={left:0,top:0};if(t==(n.oa&&!n.qE?e.body:e.documentElement))return o;if(t.getBoundingClientRect)t=t.getBoundingClientRect(),o.left=Math.floor(t.left)+Math.max(e.documentElement.scrollLeft,e.body.scrollLeft),o.top=Math.floor(t.top)+Math.max(e.documentElement.scrollTop,e.body.scrollTop),o.left=o.left-e.documentElement.clientLeft,o.top=o.top-e.documentElement.clientTop,t=e.body,e=parseInt(i(t,"borderLeftWidth")),i=parseInt(i(t,"borderTopWidth")),n.oa&&!n.qE&&(o.left=o.left-(isNaN(e)?2:e),o.top=o.top-(isNaN(i)?2:i));else{r=t;do{if(o.left=o.left+r.offsetLeft,o.top=o.top+r.offsetTop,0<n.oM&&"fixed"==i(r,"position")){o.left=o.left+e.body.scrollLeft,o.top=o.top+e.body.scrollTop;break}r=r.offsetParent}while(r&&r!=t);for((0<n.opera||0<n.oM&&"absolute"==i(t,"position"))&&(o.top=o.top-e.body.offsetTop),r=t.offsetParent;r&&r!=e.body;)o.left=o.left-r.scrollLeft,n.opera&&"TR"==r.tagName||(o.top=o.top-r.scrollTop),r=r.offsetParent}return o},/firefox\/(\d+\.\d)/i.test(navigator.userAgent)&&(A.ga.Xe=+RegExp.$1),/BIDUBrowser/i.test(navigator.userAgent)&&(A.ga.A2=p);var la=navigator.userAgent;/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(la)&&!/chrome/i.test(la)&&(A.ga.xy=+(RegExp.$1||RegExp.$2)),/chrome\/(\d+\.\d)/i.test(navigator.userAgent)&&(A.ga.Lw=+RegExp.$1),A.oc=A.oc||{},A.oc.Pb=function(e,n){var i,r,o=e.length;if("function"==typeof n)for(r=0;r<o&&(i=e[r],(i=n.call(e,i,r))!==t);r++);return e},A.Pb=A.oc.Pb,A.lang.da=function(){return"TANGRAM__"+(window[A.da]._counter++).toString(36)},window[A.da]._counter=window[A.da]._counter||1,window[A.da]._instances=window[A.da]._instances||{},A.lang.wt=function(t){return"[object Function]"==Object.prototype.toString.call(t)},A.lang.Ja=function(t){this.da=t||A.lang.da(),window[A.da]._instances[this.da]=this},window[A.da]._instances=window[A.da]._instances||{},A.lang.Ja.prototype.gi=ha(0),A.lang.Ja.prototype.toString=function(){return"[object "+(this.yQ||"Object")+"]"},A.lang.Iu=function(t,e){this.type=t,this.returnValue=p,this.target=e||q,this.currentTarget=q},A.lang.Ja.prototype.addEventListener=function(t,e,n){if(A.lang.wt(e)){e.nl||(e.nl={}),this.Li||(this.Li={});var i,r=this.Li;"string"==typeof n&&n&&(/[^\w\-]/.test(n)&&ba("nonstandard key:"+n),i=e.Dx=n),0!=t.indexOf("on")&&(t="on"+t),"object"!=typeof r[t]&&(r[t]={}),"object"!=typeof e.nl[t]&&(e.nl[t]={}),i=i||A.lang.da(),e.nl[t].Dx=i,r[t][i]=e}},A.lang.Ja.prototype.removeEventListener=function(t,e){if(0!=t.indexOf("on")&&(t="on"+t),A.lang.wt(e)){if(!e.nl||!e.nl[t])return;e=e.nl[t].Dx}else if(!A.lang.Eg(e))return;this.Li||(this.Li={});var n=this.Li;n[t]&&n[t][e]&&delete n[t][e]},A.lang.Ja.prototype.dispatchEvent=function(t,e){A.lang.Eg(t)&&(t=new A.lang.Iu(t)),this.Li||(this.Li={});var n;e=e||{};for(n in e)t[n]=e[n];var i=this.Li,r=t.type;if(t.target=t.target||this,t.currentTarget=this,0!=r.indexOf("on")&&(r="on"+r),A.lang.wt(this[r])&&this[r].apply(this,arguments),"object"==typeof i[r])for(n in i[r])i[r][n].apply(this,arguments);return t.returnValue},A.lang.xa=function(t,e,n){var i,r,o=t.prototype;for(i in(r=new Function).prototype=e.prototype,r=t.prototype=new r,o)r[i]=o[i];(t.prototype.constructor=t).e0=e.prototype,"string"==typeof n&&(r.yQ=n)},A.xa=A.lang.xa,A.lang.Tc=function(t){return window[A.da]._instances[t]||q},A.platform=A.platform||{},A.platform.iM=/macintosh/i.test(navigator.userAgent),A.platform.L4=/MicroMessenger/i.test(navigator.userAgent),A.platform.pM=/windows/i.test(navigator.userAgent),A.platform.TY=/x11/i.test(navigator.userAgent),A.platform.yj=/android/i.test(navigator.userAgent),/android (\d+(\.\d)?)/i.test(navigator.userAgent)&&(A.platform.ZB=A.ZB=RegExp.$1),A.platform.MY=/ipad/i.test(navigator.userAgent),A.platform.mE=/iphone/i.test(navigator.userAgent),A.lang.Yw=function(t){var e=window[A.da];e.ES&&delete e.ES[t]},A.event={},A.V=A.event.V=function(e,n,i){return(e=A.fa(e))&&(n=n.replace(/^on/,""),e.addEventListener?e.addEventListener(n,i,t):e.attachEvent&&e.attachEvent("on"+n,i)),e},A.gd=A.event.gd=function(e,n,i){return(e=A.fa(e))&&(n=n.replace(/^on/,""),e.removeEventListener?e.removeEventListener(n,i,t):e.detachEvent&&e.detachEvent("on"+n,i)),e},A.U.it=function(e,n){if(!e||!e.className||"string"!=typeof e.className)return t;var i=-1;try{i=e.className==n||e.className.search(RegExp("(\\s|^)"+n+"(\\s|$)"))}catch(e){return t}return-1<i},A.UK=(D3p.prototype={Lk:"ontouchstart"in window||"createTouch"in document,start:function(e){na(e),this.yh=t,this.pu=this.Lk?e.touches[0].clientX:e.clientX,this.qu=this.Lk?e.touches[0].clientY:e.clientY,this.element.addEventListener(this.kD,this,t),this.element.addEventListener(this.jD,this,t)},move:function(t){oa(t);var e=this.Lk?t.touches[0].clientY:t.clientY;(10<Math.abs((this.Lk?t.touches[0].clientX:t.clientX)-this.pu)||10<Math.abs(e-this.qu))&&(this.yh=p)},end:function(e){oa(e),this.yh||((e=document.createEvent("Event")).initEvent("tap",t,p),this.element.dispatchEvent(e)),this.element.removeEventListener(this.kD,this,t),this.element.removeEventListener(this.jD,this,t)},handleEvent:function(t){if(t)switch(t.type){case this.XK:this.start(t);break;case this.kD:this.move(t);break;case this.jD:this.end(t)}}},function(t){return new D3p(t)});var D=window.BMap||{};D.version="3.0",D.r2=Math.random()<.34;var pa=window.BMAP_SECKEY;window.BMAP_SECKEY=q,0<=D.version.indexOf("#")&&(D.version="3.0"),D.Gr=[],D.df=function(t){this.Gr.push(t)},D.xr=[],D.Rk=function(t){this.xr.push(t)},D.OU=D.apiLoad||u(),D.V0=D.verify||function(){D.version&&1.5<=D.version&&qa(D.td+"?qt=verify&ak="+ra,function(t){if(t&&0!==t.error){"undefined"!=typeof map&&(map.Ta().innerHTML="",map.Li={}),D=q;var e="百度未授权使用地图API可能是因为您提供的密钥不是有效的百度LBS开放平台密钥或此密钥未对本应用的百度地图JavaScriptAPI授权。您可以访问如下网址了解如何获取有效的密钥http://lbsyun.baidu.com/apiconsole/key#。";switch(t.error){case 101:e="开发者禁用了该ak的jsapi服务权限。您可以访问如下网址了解如何获取有效的密钥http://lbsyun.baidu.com/apiconsole/key#。";break;case 102:e="开发者Referer不正确。您可以访问如下网址了解如何获取有效的密钥http://lbsyun.baidu.com/apiconsole/key#。"}alert(e)}}),window.__abbaidu_2063_cb=function(t){pa=JSON.parse(t).data||q};var e=H("script",{type:"text/javascript",async:""});e.charset="utf-8",e.src="",e.addEventListener?e.addEventListener("load",function(t){(t=t.target).parentNode.removeChild(t)},t):e.attachEvent&&e.attachEvent("onreadystatechange",function(){var t=window.event.srcElement;!t||"loaded"!=t.readyState&&"complete"!=t.readyState||t.parentNode.removeChild(t)}),setTimeout(function(){document.getElementsByTagName("head")[0].appendChild(e),e=q},1)};var ra=window.BMAP_AUTHENTIC_KEY;window.BMAP_AUTHENTIC_KEY=q;var ua=window.BMap_loadScriptTime,va=(new Date).getTime(),wa=q,xa=p,ya=5042,za=5002,Ba=5003,Ca="load_mapclick",Da=5038,Ea=5041,Fa=5047,Ha=5036,Ia=5039,Ja=5037,Ka=5040,La=5011,Ma=7e3,Na=0;A.lang.xa(Oa,A.lang.Ja,"Map"),A.extend(Oa.prototype,{Ba:function(){var t=H("div");(e=t.style).overflow="visible",e.position="absolute",e.zIndex="0",e.top=e.left="0px";var e,n=(e=H("div",{class:"BMap_mask"})).style;return n.position="absolute",n.top=n.left="0px",n.zIndex="9",n.overflow="hidden",n.WebkitUserSelect="none",t.appendChild(e),t},wB:function(t){var e=t.style;e.overflow="hidden","absolute"!==Za(t).position&&(e.position="relative",e.zIndex=0),e.backgroundColor="#F3F1EC",e.color="#000",e.textAlign="left"},ha:function(){var i=this;i.Co=function(){var t=i.zb();if(i.width!==t.width||i.height!==t.height){var e=new N(i.width,i.height),n=new P("onbeforeresize");n.size=e,i.dispatchEvent(n),i.qk((t.width-i.width)/2,(t.height-i.height)/2),i.Ee.style.width=(i.width=t.width)+"px",i.Ee.style.height=(i.height=t.height)+"px",(e=new P("onresize")).size=t,i.dispatchEvent(e)}},i.M.Ns&&(i.ba.hm=setInterval(i.Co,80))},qk:function(e,n,i,r){var o=this.ya().$b(this.la()),a=this.Fc,s=p;i&&(i instanceof Q||i instanceof L)&&(i=$a(i,this.M.Ma)),i&&Q.lE(i)&&(this.he=new L(i.lng,i.lat),s=t),(i=i&&r?a.ri(i,this.Ob):this.Vb)&&(this.Vb=new L(i.lng+e*o,i.lat-n*o),(e=a.xh(this.Vb,this.Ob))&&s&&(this.he=e))},Rg:function(t,e){var n;ab(t)&&(this.av(),this.dispatchEvent(new P("onzoomstart")),(t=this.Zn(t).zoom)!==this.Za)&&(this.Bc=this.Za,this.Za=t,e?n=e:this.qh()&&(n=this.qh().ma()),n&&(n=this.no($a(n,this.M.Ma),this.Bc),this.qk(this.width/2-n.x,this.height/2-n.y,this.pg(n,this.Bc),p)),this.dispatchEvent(new P("onzoomstartcode")))},Xc:function(t){this.Rg(t)},$F:function(t){this.Rg(this.Za+1,t)},aG:function(t){this.Rg(this.Za-1,t)},zi:function(t){(t instanceof Q||t instanceof L)&&(t=$a(t,this.M.Ma),this.Vb=this.Fc.ri(t,this.Ob),this.he=Q.lE(t)?new L(t.lng,t.lat):this.Fc.xh(this.Vb,this.Ob))},Kg:function(t,e){t=Math.round(t)||0,e=Math.round(e)||0,this.qk(-t,-e)},ds:function(t){t&&bb(t.Me)&&(t.Me(this),this.dispatchEvent(new P("onaddcontrol",t)))},DN:function(t){t&&bb(t.remove)&&(t.remove(),this.dispatchEvent(new P("onremovecontrol",t)))},bm:function(t){t&&bb(t.za)&&(t.za(this),this.dispatchEvent(new P("onaddcontextmenu",t)))},Pp:function(t){t&&bb(t.remove)&&(this.dispatchEvent(new P("onremovecontextmenu",t)),t.remove())},Ra:function(t){t&&bb(t.Me)&&(t.Me(this),this.dispatchEvent(new P("onaddoverlay",t)))},Jb:function(t){t&&bb(t.remove)&&(t.remove(),this.dispatchEvent(new P("onremoveoverlay",t)))},lK:function(){this.dispatchEvent(new P("onclearoverlays"))},Ue:function(t){t&&this.dispatchEvent(new P("onaddtilelayer",t))},cg:function(t){t&&this.dispatchEvent(new P("onremovetilelayer",t))},Og:function(t){if(this.Ua!==t){this.M.cZ&&this.C_(t);var e=new P("onsetmaptype");e.C5=this.Ua,this.Ua=this.M.Ua=t,this.Fc=this.Ua.uj(),this.qk(0,0,this.mv(),p),this.av();var n=this.Zn(this.la()).zoom;this.Rg(n),this.dispatchEvent(e),(e=new P("onmaptypechange")).Za=n,e.Ua=t,this.dispatchEvent(e),t.rF(this.M.Ma),t!==cb&&t!==Ua||Ta(Ba)}},C_:function(e){e===cb||e===Ua?(this.By(p),this.VN(t),this.M.yg=t,this.M.yk=t):(this.By(t),this.VN(p),this.M.yg=p,this.M.yk=p)},zf:function(e){var n=this;if(e instanceof Q||e instanceof L)n.zi(e,{noAnimation:p});else if(db(e))if(n.Ua===Sa){var t=I.hC[e];t&&(pt=t.o,n.zf(pt))}else{var i=this.JH();i.eu(function(t){0===i.Em()&&2===i.Ka.result.type&&(t=eb(t=new L((t=t.Ik(0).point).lng,t.lat),n.M.Ma),n.zf(t),Sa.Ck(e)&&n.kF(e))}),i.search(e,{log:"center"})}},ud:function(n,i){"[object Undefined]"!==Object.prototype.toString.call(i)&&(i=parseInt(i)),D.Cq("cus.fire","time",{z_loadscripttime:va-ua});var r=this;if(db(n))if(r.Ua===Sa){var t=I.hC[n];t&&(pt=t.o,r.ud(pt,i))}else{var o=r.JH();o.eu(function(t){if(0===o.Em()&&(2===o.Ka.result.type||11===o.Ka.result.type)){var e=t.Ik(0).point;t=i||fb.ix(o.Ka.content.level,r),e=new L(e.lng,e.lat);r.ud(e,t),Sa.Ck(n)&&r.kF(n)}}),o.search(n,{log:"center"})}else if((n instanceof Q||n instanceof L)&&i){i=r.Zn(i).zoom,r.Bc=r.Za||i,r.Za=i,t=r.he,n=$a(n,this.M.Ma),r.he=new L(n.lng,n.lat),r.Vb=r.Fc.ri(r.he,r.Ob),r.zC=r.zC||r.Za,r.yC=r.yC||r.he;var e=new P("onload"),a=new P("onloadcode");e.point=new L(n.lng,n.lat),e.pixel=r.no(r.he,r.Za),e.zoom=i,r.loaded||(r.loaded=p,r.dispatchEvent(e),wa=wa||gb()),r.dispatchEvent(a),(e=new P("onmoveend")).Rz="centerAndZoom",t.Ub(r.he)||r.dispatchEvent(e),r.dispatchEvent(new P("onmoveend")),r.Bc!==r.Za&&((t=new P("onzoomend")).Rz="centerAndZoom",r.dispatchEvent(t)),r.M.ap&&r.ap()}},JH:function(){return this.ba.FM||(this.ba.FM=new hb(1)),this.ba.FM},reset:function(){this.ud(this.yC,this.zC,p)},enableDragging:function(){this.M.jc=p},disableDragging:function(){this.M.jc=t},enableInertialDragging:function(){this.M.bx=p},disableInertialDragging:function(){this.M.bx=t},enableScrollWheelZoom:function(){this.M.ep=p},disableScrollWheelZoom:function(){this.M.ep=t},enableContinuousZoom:function(){this.M.cp=p},disableContinuousZoom:function(){this.M.cp=t},enableDoubleClickZoom:function(){this.M.$C=p},disableDoubleClickZoom:function(){this.M.$C=t},enableKeyboard:function(){this.M.dx=p},disableKeyboard:function(){this.M.dx=t},enablePinchToZoom:function(){this.M.dp=p},disablePinchToZoom:function(){this.M.dp=t},enableAutoResize:function(){this.M.Ns=p,this.Co(),this.ba.hm||(this.ba.hm=setInterval(this.Co,80))},disableAutoResize:function(){this.M.Ns=t,this.ba.hm&&(clearInterval(this.ba.hm),this.ba.hm=q)},enableBizAuthLogo:function(){this.M.WC=p,this.Ko&&this.Ko.show()},disableBizAuthLogo:function(){this.M.WC=t,this.Ko&&this.Ko.aa()},enableMapClick:function(){this.M.um=p;var t=this;window.MPC_Mgr&&window.MPC_Mgr[t.da]?window.MPC_Mgr[t.da].open():(setTimeout(function(){Ta(Ca)},1e3),Wa.load("mapclick",function(){window.MPC_Mgr=window.MPC_Mgr||{},window.MPC_Mgr[t.da]=new Xa(t)},p))},disableMapClick:function(){window.MPC_Mgr&&window.MPC_Mgr[this.da]&&window.MPC_Mgr[this.da].close(),this.M.um=t},ap:function(){this.M.ap=p,this.Mn||(this.Mn=new BuildingLayer({m3:p}),this.Ue(this.Mn))},hW:function(){this.M.ap=t,this.Mn&&(this.cg(this.Mn),this.Mn=q,delete this.Mn)},zb:function(){return this.As&&this.As instanceof N?new N(this.As.width,this.As.height):new N(this.cb.clientWidth,this.cb.clientHeight)},He:function(t){t&&t instanceof N?(this.As=t,this.cb.style.width=t.width+"px",this.cb.style.height=t.height+"px"):this.As=q},Qb:function(){return eb(this.he,this.M.Ma)},mv:x("he"),la:x("Za"),uV:function(){this.Co()},Zn:function(e){var n=this.M.kc,i=this.M.qc,r=t;return(e=Math.round(e))<n&&(r=p,e=n),i<e&&(r=p,e=i),{zoom:e,lD:r}},Ta:x("cb"),vc:function(t,e){return t=$a(t,this.M.Ma),e=e||this.la(),this.Fc.vc(t,e,this.Vb,this.zb(),this.Ob)},no:function(t,e){return e=e||this.la(),this.Fc.vc(t,e,this.Vb,this.zb(),this.Ob)},pg:function(t,e){return e=e||this.la(),this.Fc.bc(t,e,this.Vb,this.zb(),this.Ob)},bc:function(t,e){return eb(this.pg(t,e),this.M.Ma)},cf:function(t,e){if(t){t=$a(t,this.M.Ma);var n=this.no(new L(t.lng,t.lat),e);return n.x-=this.offsetX,n.y-=this.offsetY,n}},fZ:function(t,e){return e=e||this.la(),this.Fc.gZ(t,e,this.Vb,this.zb(),this.Ob)},eZ:function(t,e){if(t){var n=this.fZ(new L(t.lng,t.lat),e);return n.x-=this.offsetX,n.y-=this.offsetY,n}},oN:function(t,e){if(t){var n=new R(t.x,t.y);return n.x+=this.offsetX,n.y+=this.offsetY,this.bc(n,e)}},kT:function(t,e){if(t){var n=new R(t.x,t.y);return n.x+=this.offsetX,n.y+=this.offsetY,this.pg(n,e)}},pointToPixelFor3D:function(t,e){var n=map.Ob;this.Ua===Sa&&n&&ib.rK(t,this,e)},t5:function(t,e){var n=map.Ob;this.Ua===Sa&&n&&ib.qK(t,this,e)},u5:function(t,e){var n=this,i=map.Ob;n.Ua===Sa&&i&&ib.rK(t,n,function(t){t.x-=n.offsetX,t.y-=n.offsetY,e&&e(t)})},r5:function(t,e){var n=map.Ob;this.Ua===Sa&&n&&(t.x+=this.offsetX,t.y+=this.offsetY,ib.qK(t,this,e))},le:function(t){if(!this.Qx())return new jb;t=(e=t||{}).margins||[0,0,0,0];var e,n=e.zoom||q;return new jb(e=this.bc({x:t[3],y:this.height-t[2]},n),t=this.bc({x:this.width-t[1],y:t[0]},n))},Qx:function(){return!!this.loaded},NR:function(t,e){for(var n=this.ya(),i=e.margins||[10,10,10,10],r=e.zoomFactor||0,o=i[1]+i[3],a=(i=i[0]+i[2],n.rf()),s=n=n.Ze();a<=s;s--){var l=this.ya().$b(s);if(t.LF().lng/l<this.width-o&&t.LF().lat/l<this.height-i)break}return(s+=r)<a&&(s=a),n<s&&(s=n),s},ht:function(t,e){var n={center:this.Qb(),zoom:this.la()};if(!t||!t instanceof jb&&0===t.length||t instanceof jb&&t.Aj())return n;var i=[];t instanceof jb?(i.push(t.sf()),i.push(t.Ae())):i=t.slice(0);e=e||{};for(var r=[],o=0,a=i.length;o<a;o++){var s=$a(i[o],this.M.Ma);r.push(this.Fc.ri(s,this.Ob))}for(i=new jb,o=r.length-1;0<=o;o--)i.extend(r[o]);return i.Aj()?n:(n=i.Qb(),r=this.NR(i,e),e.margins&&(o=((i=e.margins)[1]-i[3])/2,i=(i[0]-i[2])/2,a=this.ya().$b(r),e.offset&&(o=e.offset.width,i=e.offset.height),n.lng+=a*o,n.lat+=a*i),{center:eb(new L((n=this.Fc.xh(n,this.Ob)).lng,n.lat),this.M.Ma),zoom:r})},Pg:function(e,n){var i;i=e&&e.center?e:this.ht(e,n);var r=(n=n||{}).delay||200;if(i.zoom===this.Za&&n.enableAnimation!==t){var o=this;setTimeout(function(){o.zi(i.center,{duration:210})},r)}else this.ud(i.center,i.zoom)},Wf:x("ce"),qh:function(){return this.ba.tb&&this.ba.tb.eb()?this.ba.tb:q},getDistance:function(t,e){if(t&&e){if(t.Ub(e))return 0;t=$a(t,n=this.M?this.M.Ma:5),e=$a(e,n);var n=0;return(n=T.Ek(t,e))!==q&&n!==l||(n=0),n}},vx:function(){var t=[],e=this.ta,n=this.Je;if(e)for(var i in e)e[i]instanceof kb&&t.push(e[i]);if(n)for(i=0,e=n.length;i<e;i++)t.push(n[i]);return t},ya:function(){return this.Ua.rF(this.M.Ma),this.Ua},$X:x("Hd"),Qu:function(){for(var t=this.ba.WE;t<D.Gr.length;t++)D.Gr[t](this);this.ba.WE=t},kF:function(t){this.Ob=Sa.Ck(t),this.Mw=Sa.mL(this.Ob),this.Ua===Sa&&this.Fc instanceof lb&&(this.Fc.lj=this.Ob)},setDefaultCursor:function(t){this.M.Ac=t,this.platform&&(this.platform.style.cursor=this.M.Ac)},getDefaultCursor:function(){return this.M.Ac},setDraggingCursor:function(t){this.M.Kd=t},getDraggingCursor:function(){return this.M.Kd},Ix:function(){return this.M.IW&&1.5<=this.M.devicePixelRatio},QB:function(t,e){e?this.Oh[e]||(this.Oh[e]={}):e="custom",t.tag=e,t instanceof mb&&(this.Oh[e][t.da]=t).za(this);var n=this;Wa.load("hotspot",function(){n.Qu()},p)},$Z:function(t,e){e=e||"custom",this.Oh[e][t.da]&&delete this.Oh[e][t.da]},Ow:function(t){t=t||"custom",this.Oh[t]={}},av:function(){var t=this.Ua.rf(),e=this.Ua.Ze(),n=this.M;n.kc=n.PO||t,n.qc=n.OO||e,n.kc<t&&(n.kc=t),n.qc>e&&(n.qc=e)},setMinZoom:function(t){(t=Math.round(t))>this.M.qc&&(t=this.M.qc),this.M.PO=t,this.wJ()},setMaxZoom:function(t){(t=Math.round(t))<this.M.kc&&(t=this.M.kc),this.M.OO=t,this.wJ()},wJ:function(){this.av();var t=this.M;this.Za<t.kc?this.Xc(t.kc):this.Za>t.qc&&this.Xc(t.qc);var e=new P("onzoomspanchange");e.kc=t.kc,e.qc=t.qc,this.dispatchEvent(e)},i4:x("KB"),getKey:function(){return ra},E_:function(e){function n(t){i.a0=t,nb(D.td+"custom/v2/mapstyle","version=4&ak="+ra+"&"+"is_all=true&is_new=1&styles="+encodeURIComponent(i.EF(t,o)),window[r+"cb"])}var i=this,r=this.da;D.Cq("cus.fire","count","z_setmapstylev2count"),this.By(t),this.M.cZ=p,window.MPC_Mgr&&window.MPC_Mgr[i.da]&&window.MPC_Mgr[i.da].close(),i.M.um=t,this.addEventListener("hidecopyright",function(){i.vk.aa(),i.M.Vo=!!e.customEditor,i.M.Vo===t&&i.jF(new N(1,1))}),i.vk&&i.vk.aa(),this.M.Vo=!!e.customEditor,this.M.a6=!!e.sharing,this.M.G5=!!e.preview,this.M.Vo===t&&this.jF(new N(1,1)),Wa.load("hotspot",function(){i.Qu()},p),window[r+"zoomRegion"]={},window.L6=[],window[r+"zoomStyleBody"]=[],window[r+"zoomFrontStyle"]={};var o=this.la();if(A.extend({},e),window[r+"cb"]=function(t){0===(t=JSON.parse(t)).status&&(3===t.data.style.length?(window[r+"_bmap_baseFs"]=t.data.style,window[r+"StyleBody"]=t.data.style[2]):window[r+"StyleBody"]=t.data.style,i.KO(),i.EY())},e.styleId){var a="jsapi";e.sharing?a="sharing":e.preview&&(a="preview"),this.zX(e.styleId,a,n)}else n(e.styleJson);window.iconSetInfo_high||qa(D.url.proto+D.url.domain.TILE_ONLINE_URLS[0]+"/sty/icons_na2x.js?udt=20190108&v=001&from=jsapi")},zX:function(t,e,n){var i=this,r=this.da,o=(1e5*Math.random()).toFixed(0);window[r+"_cbk_si_phpui"+o]=function(t){var e=[];t.result&&0===t.result.error&&t.content&&0===t.content.status&&(e=i.ky(t.content.data.json)),n&&n(e)},window[r+"_cbk_si_api"+o]=function(t){var e=[];0===t.status&&(e=t.info?i.ky(t.info.json):i.ky(t.data.json)),n&&n(e)};var a="/apiconsole/custommap/";switch(e){case"jsapi":a=D.td+"?qt=custom_map&v=3.0",a+="&style_id="+t+"&type=publish&ak="+ra,a+="&callback="+r+"_cbk_si_phpui"+o;break;case"sharing":a=a+"getSharingJson?styleid="+t+"&type=edit&ck="+r+"_cbk_si_api"+o;break;case"preview":a=a+"getJson?styleid="+t+"&type=edit&ck="+r+"_cbk_si_api"+o}qa(a)},aW:function(){Array.prototype.map||(Array.prototype.map=function(t,e){var n,i,r;this==q&&ba(new TypeError(" this is null or not defined"));var o=Object(this),a=o.length>>>0;for("[object Function]"!=Object.prototype.toString.call(t)&&ba(new TypeError(t+" is not a function")),e&&(n=e),i=Array(a),r=0;r<a;){var s;r in o&&(s=o[r],s=t.call(n,s,r,o),i[r]=s),r++}return i})},ky:function(t){if(t===q||""===t)return[];this.aW();var r={t:"featureType",e:"elementType",v:"visibility",c:"color",l:"lightness",s:"saturation",w:"weight",z:"level",h:"hue",f:"fontsize",zri:"curZoomRegionId",zr:"curZoomRegion"},o={all:"all",g:"geometry","g.f":"geometry.fill","g.s":"geometry.stroke",l:"labels","l.t.f":"labels.text.fill","l.t.s":"labels.text.stroke","l.t":"labels.text","l.i":"labels.icon","g.tf":"geometry.fill"};return t.split(",").map(function(t){var e=(t=t.split("|").map(function(t){var e=r[t.split(":")[0]];switch(t=o[t.split(":")[1]]?o[t.split(":")[1]]:t.split(":")[1]){case"poi":t="poilabel";break;case"districtlabel":t="districtlabel"}var n={};return n[e]=t,n}))[0],n=1;t[1].elementType&&(n=2,A.extend(e,t[1]));for(var i={};n<t.length;n++)A.extend(i,t[n]);return A.extend(e,{stylers:i})})},eY:function(){return this.ef.lg},T3:function(e,t){var n=this,i=this.da,r=(1e5*Math.random()).toFixed(0);window[i+"_cbk"+r]=function(t){t=3===(t=JSON.parse(t)).data.style.length?t.data.style[2]:t.data.style,n.K0(t,e),n.KO(e),t=new P("onzoomfeatureload"+e),n.dispatchEvent(t),delete window[i+"_cbk"+r]};var o=D.td+"custom/v2/mapstyle",a=(a="ak="+ra+"&")+"is_all=true&is_new=1&";t.styleJson?a+="styles="+encodeURIComponent(this.EF(t.styleJson,parseInt(e,10))):t.styleId&&(a+="styles="+encodeURIComponent(n.EF(n.a0,parseInt(e,10)))),nb(o,a,window[i+"_cbk"+r])},jF:function(t,e){var n=new P("oncopyrightoffsetchange",{BE:t,PV:e});this.M.vK=e,this.dispatchEvent(n)},bu:function(e){var n=this;if(window.MPC_Mgr&&window.MPC_Mgr[n.da]&&window.MPC_Mgr[n.da].close(),n.M.um=t,D.Cq("cus.fire","count","z_setmapstylecount"),e){n=this,e.styleJson&&(e.styleStr=n.b0(e.styleJson)),J()&&A.ga.xy?setTimeout(function(){n.M.De=e,n.dispatchEvent(new P("onsetcustomstyles",e))},50):(this.M.De=e,this.dispatchEvent(new P("onsetcustomstyles",e)),this.eM(n.M.De.geotableId));var i={style:e.style};e.features&&0<e.features.length&&(i.features=p),e.styleJson&&0<e.styleJson.length&&(i.styleJson=p),Ta(5050,i),e.style&&(i=n.M.oC[e.style]?n.M.oC[e.style].backColor:n.M.oC.normal.backColor)&&(this.Ta().style.backgroundColor=i)}},xY:function(t){this.controls||(this.controls={navigationControl:new ob,scaleControl:new pb,overviewMapControl:new qb,mapTypeControl:new rb});var e,n=this;for(e in this.controls)n.DN(n.controls[e]);t=t||[],A.oc.Pb(t,function(t){n.ds(n.controls[t])})},eM:function(t){t?this.ys&&this.ys.If===t||(this.cg(this.ys),this.ys=new sb({geotableId:t}),this.Ue(this.ys)):this.cg(this.ys)},Vd:function(){var e=this.la()>=this.M.TF&&this.ya()===Pa&&this.la()<=18,n=t;try{document.createElement("canvas").getContext("2d"),n=p}catch(e){n=t}return e&&n},getCurrentCity:function(){return{name:this.lh,code:this.hs}},bt:function(){return this.W.eo(),this.W},BY:function(e){Pa.setMaxZoom(e.maxZoom||19);var n=new P("oninitindoorlayer");n.af=e,this.dispatchEvent(n),this.M.yg=t},EY:function(t){if(this.M.yg){var e=new P("onupdatestyles");this.dispatchEvent(e)}else(e=new P("oninitindoorlayer")).af=t,this.dispatchEvent(e),this.M.yg=p,this.M.yk=p},By:function(t){this.M.LE=t,this.ef.Kb||(this.ef.Kb=this.ef.Cj[0].Kb),this.ef.Kb.parentElement.style.display=t?"block":"none"},VN:function(t){this.ef.lg.style.display=t?"block":"none"},setPanorama:function(t){this.W=t,this.W.oF(this)},EF:function(t,e){for(var n=this.da,i={featureType:"t",elementType:"e",visibility:"v",color:"c",lightness:"l",saturation:"s",weight:"w",level:"z",hue:"h",fontsize:"f"},r={all:"all",geometry:"g","geometry.fill":"g.f","geometry.stroke":"g.s",labels:"l","labels.text.fill":"l.t.f","labels.text.stroke":"l.t.s","labels.text":"l.t","labels.icon":"l.i","geometry.topfill":"g.f"},o=[],a=this.Ua.rf();a<=this.Ua.Ze();a++)window[n+"zoomFrontStyle"][a]={};window[n+"zoomFrontStyle"].main={};var s;for(a=0;s=t[a];a++)if(!this.NY(s)){e=this.tX(s,e),"land"!==s.featureType&&"all"!==s.featureType&&"background"!==s.featureType||"string"!=typeof s.elementType||"geometry"!==s.elementType&&"geometry.fill"!==s.elementType&&"all"!==s.elementType||!s.stylers||(s.stylers.color&&(window[n+"zoomFrontStyle"][e].bmapLandColor=s.stylers.color),s.stylers.visibility&&"off"===s.stylers.visibility&&(window[n+"zoomFrontStyle"][e].bmapLandColor="#00000000")),"railway"===s.featureType&&"string"==typeof s.elementType&&s.stylers&&(s.stylers.color&&("geometry"===s.elementType&&(window[n+"zoomFrontStyle"][e].bmapRailwayFillColor=s.stylers.color,window[n+"zoomFrontStyle"][e].bmapRailwayStrokeColor=s.stylers.color),"geometry.fill"===s.elementType&&(window[n+"zoomFrontStyle"][e].bmapRailwayFillColor=s.stylers.color),"geometry.stroke"===s.elementType&&(window[n+"zoomFrontStyle"][e].bmapRailwayStrokeColor=s.stylers.color)),s.stylers.visibility&&(window[n+"zoomFrontStyle"][e].bmapRailwayVisibility=s.stylers.visibility)),"roadarrow"===s.featureType&&"labels.icon"===s.elementType&&s.stylers&&(window[n+"zoomFrontStyle"][e].bmapRoadarrowVisibility=s.stylers.visibility);var l={};for(var u in A.extend(l,s),s=l.stylers,delete l.stylers,A.extend(l,s),s=[],i)if(l[u]&&!this.JY(u))if("elementType"===u)s.push(i[u]+":"+r[l[u]]);else{switch(l[u]){case"poilabel":l[u]="poi";break;case"districtlabel":l[u]="label"}s.push(i[u]+":"+l[u])}2<s.length&&o.push(s.join("|"))}return o.join(",")},b0:function(t){for(var e,n={featureType:"t",elementType:"e",visibility:"v",color:"c",lightness:"l",saturation:"s",weight:"w",zoom:"z",hue:"h"},i={all:"all",geometry:"g","geometry.fill":"g.f","geometry.stroke":"g.s",labels:"l","labels.text.fill":"l.t.f","labels.text.stroke":"l.t.s","lables.text":"l.t","labels.icon":"l.i"},r=[],o=0;e=t[o];o++){var a=e.stylers;delete e.stylers,A.extend(e,a);var s;a=[];for(s in n)if(e[s])if("elementType"===s)a.push(n[s]+":"+i[e[s]]);else{switch(e[s]){case"poilabel":e[s]="poi";break;case"districtlabel":e[s]="label"}a.push(n[s]+":"+e[s])}2<a.length&&r.push(a.join("|"))}return r.join(",")},tX:function(t){return(t=t.stylers.level)===l?"main":parseInt(t,10)},NY:function(e){var n={};return A.extend(n,e.stylers),delete n.curZoomRegionId,delete n.curZoomRegion,delete n.level,A.jE(n)?p:t},H4:function(e,n){var i=e.stylers.level;return i===l?p:i===n+""?p:t},JY:function(e){return{curZoomRegionId:p,curZoomRegion:p}[e]?p:t},j4:function(t,e){var n=t.stylers.level,i={};return A.extend(i,e),n!==l&&(i[parseInt(n,10)]=p),i},K0:function(t,e){var n=this.da;if(window[n+"zoomStyleBody"][e]=t,!window[n+"zoomRegion"][e])for(var i=this.Ua.rf(),r=this.Ua.Ze();i<=r;i++)window[n+"zoomRegion"][i]||(window[n+"zoomStyleBody"][i]=t)},KO:function(){var t=this.da;if(window[t+"zoomFrontStyle"].main.bmapRoadarrowVisibility)for(var e=this.Ua.rf();e<=this.Ua.Ze();e++)window[t+"zoomFrontStyle"][e].bmapRoadarrowVisibility||(window[t+"zoomFrontStyle"][e].bmapRoadarrowVisibility=window[t+"zoomFrontStyle"].main.bmapRoadarrowVisibility);if(window[t+"zoomFrontStyle"].main.bmapLandColor)for(e=this.Ua.rf();e<=this.Ua.Ze();e++)window[t+"zoomFrontStyle"][e].bmapLandColor||(window[t+"zoomFrontStyle"][e].bmapLandColor=window[t+"zoomFrontStyle"].main.bmapLandColor);if(window[t+"zoomFrontStyle"].main.bmapRailwayFillColor)for(e=this.Ua.rf();e<=this.Ua.Ze();e++)window[t+"zoomFrontStyle"][e].bmapRailwayFillColor||(window[t+"zoomFrontStyle"][e].bmapRailwayFillColor=window[t+"zoomFrontStyle"].main.bmapRailwayFillColor);if(window[t+"zoomFrontStyle"].main.bmapRailwayStrokeColor)for(e=this.Ua.rf();e<=this.Ua.Ze();e++)window[t+"zoomFrontStyle"][e].bmapRailwayStrokeColor||(window[t+"zoomFrontStyle"][e].bmapRailwayStrokeColor=window[t+"zoomFrontStyle"].main.bmapRailwayStrokeColor);if(window[t+"zoomFrontStyle"].main.bmapRailwayVisibility)for(e=this.Ua.rf();e<=this.Ua.Ze();e++)window[t+"zoomFrontStyle"][e].bmapRailwayVisibility||(window[t+"zoomFrontStyle"][e].bmapRailwayVisibility=window[t+"zoomFrontStyle"].main.bmapRailwayVisibility)},G2:function(t,e){var n={};if(A.extend(n,t),n[e]){for(var i=this.Ua.rf(),r=this.Ua.Ze();i<=r;i++)if(!n[i]){n[i]=p;break}delete n[e]}return n},F4:function(e){return e.vt||"0"===e.uid?t:p},yV:function(){delete this.Ni.PZ},L2:function(){this.Ni={}},Fo:function(e,n,i){return this.M.Vo?(e=e||"sp"+this.ba.d6++,n&&0!==n.length?(i=i||{},this.Ni[e]=this.Ni[e]||{polygon:[],polyline:[]},this.Ni=this.Ni||{},this.Ni[e][i.type].push({zF:n,Xb:i.Xb,type:i.type,style:i.style}),e):void 0):t},XF:function(t){return tb/Math.pow(2,18-t)}});var tb=40075452.74461451,ub,xb,wb=[],vb=new Image;Ta(5e3,{device_pixel_ratio:window.devicePixelRatio,platform:navigator.platform}),D.ZL={TILE_BASE_URLS:["gss0.bdstatic.com/5bwHcj7lABFU8t_jkk_Z1zRvfdw6buu","gss0.bdstatic.com/5bwHcj7lABFV8t_jkk_Z1zRvfdw6buu","gss0.bdstatic.com/5bwHcj7lABFS8t_jkk_Z1zRvfdw6buu","gss0.bdstatic.com/5bwHcj7lABFT8t_jkk_Z1zRvfdw6buu","gss0.bdstatic.com/5bwHcj7lABFY8t_jkk_Z1zRvfdw6buu"],TILE_ONLINE_URLS:["maponline0.bdimg.com","maponline1.bdimg.com","maponline2.bdimg.com","maponline3.bdimg.com"],TIlE_PERSPECT_URLS:["gss0.bdstatic.com/-OR1cTe9KgQFm2e88IuM_a","gss0.bdstatic.com/-ON1cTe9KgQFm2e88IuM_a","gss0.bdstatic.com/-OZ1cTe9KgQFm2e88IuM_a","gss0.bdstatic.com/-OV1cTe9KgQFm2e88IuM_a"],geolocControl:"gsp0.baidu.com/8LkJsjOpB1gCo2Kml5_Y_D3",TILES_YUN_HOST:["gsp0.baidu.com/-eR1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eN1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eZ1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eV1bSahKgkFkRGko9WTAnF6hhy"],traffic:"its.map.baidu.com",iw_pano:"gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_",message:"gsp0.baidu.com/7vo0bSba2gU2pMbgoY3K",baidumap:"gsp0.baidu.com/80MWsjip0QIZ8tyhnq",wuxian:"gsp0.baidu.com/6a1OdTeaKgQFm2e88IuM_a",pano:["gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_","gss0.bdstatic.com/5LUZemfa_QUU8t7mm9GUKT-xh_","gss0.bdstatic.com/5LUZemja_QUU8t7mm9GUKT-xh_"],main_domain_nocdn:{baidu:"gsp0.baidu.com/9_Q4sjOpB1gCo2Kml5_Y_D3",other:"api.map.baidu.com"},main_domain_cdn:{baidu:["gss0.bdstatic.com/9_Q4vHSd2RZ3otebn9fN2DJv","gss0.baidu.com/9_Q4vXSd2RZ3otebn9fN2DJv","gss0.bdstatic.com/9_Q4vnSd2RZ3otebn9fN2DJv"],other:["api.map.baidu.com"],webmap:["gss0.baidu.com/6b1IcTe9R1gBo1vgoIiO_jowehsv"]},map_click:"gsp0.baidu.com/80MWbzKh2wt3n2qy8IqW0jdnxx1xbK",vector_traffic:"gss0.bdstatic.com/8aZ1cTe9KgQIm2_p8IuM_a"},D.oY={TILE_BASE_URLS:["shangetu0.map.bdimg.com","shangetu1.map.bdimg.com","shangetu2.map.bdimg.com","shangetu3.map.bdimg.com","shangetu4.map.bdimg.com"],TILE_ONLINE_URLS:["maponline0.bdimg.com","maponline1.bdimg.com","maponline2.bdimg.com","maponline3.bdimg.com"],TIlE_PERSPECT_URLS:["d0.map.baidu.com","d1.map.baidu.com","d2.map.baidu.com","d3.map.baidu.com"],geolocControl:"loc.map.baidu.com",TILES_YUN_HOST:["g0.api.map.baidu.com","g1.api.map.baidu.com","g2.api.map.baidu.com","g3.api.map.baidu.com"],traffic:"its.map.baidu.com",iw_pano:"mapsv0.bdimg.com",message:"j.map.baidu.com",baidumap:"map.baidu.com",wuxian:"wuxian.baidu.com",pano:["mapsv0.bdimg.com","mapsv1.bdimg.com"],main_domain_nocdn:{baidu:"api.map.baidu.com"},main_domain_cdn:{baidu:["api0.map.bdimg.com","api1.map.bdimg.com","api2.map.bdimg.com"],webmap:["webmap0.map.bdimg.com"]},map_click:"mapclick.map.baidu.com",vector_traffic:"or.map.bdimg.com"},D.L0={0:{proto:"http://",domain:D.oY},1:{proto:"https://",domain:D.ZL},2:{proto:"https://",domain:D.ZL}},window.BMAP_PROTOCOL&&"https"===window.BMAP_PROTOCOL&&(window.HOST_TYPE=2),D.Au=window.HOST_TYPE||"0",D.url=D.L0[D.Au],D.Gp=D.url.proto+D.url.domain.baidumap+"/",D.td=D.url.proto+("2"==D.Au?D.url.domain.main_domain_nocdn.other:D.url.domain.main_domain_nocdn.baidu)+"/",D.pa=D.url.proto+("2"==D.Au?D.url.domain.main_domain_cdn.other[0]:D.url.domain.main_domain_nocdn.baidu)+"/",D.ij=D.url.proto+D.url.domain.main_domain_cdn.webmap[0]+"/",D.mi=function(t,n){var i,e;n=n||"";switch(t){case"main_domain_nocdn":i=D.td+n;break;case"main_domain_cdn":i=D.pa+n;break;default:e=D.url.domain[t],"[object Array]"==Object.prototype.toString.call(e)?(i=[],A.oc.Pb(e,function(t,e){i[e]=D.url.proto+t+"/"+n})):i=D.url.proto+D.url.domain[t]+"/"+n}return i};var Ab="INFINITE";yb.prototype.start=function(){this.Su=gb(),this.Qz=this.Su+this.m.duration,Bb(this)},yb.prototype.add=function(t){this.fg.push(t)},yb.prototype.stop=function(t){this.FF=p;for(var e=0;e<this.fg.length;e++)this.fg[e].stop(),this.fg[e]=q;this.fg.length=0,this.Yr&&(clearTimeout(this.Yr),this.Yr=q),this.m.Nt(this.yy),t&&(this.Qz=this.Su,Bb(this))},yb.prototype.cancel=ha(1);var zb={CM:function(t){return t},reverse:function(t){return 1-t},UC:function(t){return t*t},SC:function(t){return Math.pow(t,3)},Ls:function(t){return-t*(t-2)},QK:function(t){return Math.pow(t-1,3)+1},TC:function(t){return t<.5?2*t*t:-2*(t-2)*t-1},c3:function(t){return t<.5?4*Math.pow(t,3):4*Math.pow(t-1,3)+1},d3:function(t){return(1-Math.cos(Math.PI*t))/2}};zb["ease-in"]=zb.UC,zb["ease-out"]=zb.Ls;var I={dG:34,eG:21,fG:new N(21,32),eP:new N(10,32),dP:new N(24,36),cP:new N(12,36),bG:new N(13,1),ua:D.pa+"images/",z4:"http://api0.map.bdimg.com/images/",cG:D.pa+"images/markers_new.png",aP:24,bP:73,hC:{"北京":{my:"bj",o:new L(116.403874,39.914889)},"上海":{my:"sh",o:new L(121.487899,31.249162)},"深圳":{my:"sz",o:new L(114.025974,22.546054)},"广州":{my:"gz",o:new L(113.30765,23.120049)}},fontFamily:"arial,sans-serif"};A.ga.Xe?(A.extend(I,{CK:"url("+I.ua+"ruler.cur),crosshair",Ac:"-moz-grab",Kd:"-moz-grabbing"}),A.platform.pM&&(I.fontFamily="arial,simsun,sans-serif")):A.ga.Lw||A.ga.xy?A.extend(I,{CK:"url("+I.ua+"ruler.cur) 2 6,crosshair",Ac:"url("+I.ua+"openhand.cur) 8 8,default",Kd:"url("+I.ua+"closedhand.cur) 8 8,move"}):A.extend(I,{CK:"url("+I.ua+"ruler.cur),crosshair",Ac:"url("+I.ua+"openhand.cur),default",Kd:"url("+I.ua+"closedhand.cur),move"});var Nb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",P=A.lang.Iu,iaq,jaq,kaq,laq,maq,naq,oaq,paq,Eaq,Faq,Gaq;D.ZY=(iaq=p,jaq=p,kaq=p,laq=p,maq=0,naq=0,oaq=0,paq=0,{JQ:function(){maq+=1,iaq&&(iaq=t,setTimeout(function(){Ta(5054,{pic:maq}),iaq=p,maq=0},1e4))},E1:function(){naq+=1,jaq&&(jaq=t,setTimeout(function(){Ta(5055,{move:naq}),jaq=p,naq=0},1e4))},G1:function(){oaq+=1,kaq&&(kaq=t,setTimeout(function(){Ta(5056,{zoom:oaq}),kaq=p,oaq=0},1e4))},F1:function(e){paq+=e,laq&&(laq=t,setTimeout(function(){Ta(5057,{tile:paq}),laq=p,paq=0},5e3))}}),D.uq={tG:"#83a1ff",wq:"#808080"},Eaq=window,Faq=document,Gaq=D,function(e,f,a){function s(t){return(t||new Date)-c}function n(e,n,i){if(e){"string"==typeof e&&(i=n,n=e,e=g);try{e==g?(v[n]=v[n]||[],v[n].unshift(i)):e.addEventListener?e.addEventListener(n,i,t):e.attachEvent&&e.attachEvent("on"+n,i)}catch(t){}}}function l(){var t=arguments,e=t[0];if(this.wK||/^(on|un|set|get|create)$/.test(e)){e=o.prototype[e];for(var n=[],i=1,r=t.length;i<r;i++)n.push(t[i]);"function"==typeof e&&e.apply(this,n)}else this.VJ.push(t)}function u(t,e){var n,i={};for(n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i}function o(t){this.name=t,this.Ps={protocolParameter:{postUrl:q,protocolParameter:q}},this.VJ=[],this.alog=g}function i(t){if("*"!=(t=t||"default"))return(e=x[t])||(e=x[t]=new o(t)),e;var e;for(e in t=[],x)t.push(x[e]);return t}var r=a.alog;if(!r||!r.Xo){var h=f.all&&e.attachEvent,c=r&&r.uE||+new Date,d=e.S4||(+new Date).toString(36)+Math.random().toString(36).substr(2,3),y=0,m={},g=function(e){var n,i,r,o,a=arguments;if("define"==e||"require"==e){for(i=1;i<a.length;i++)switch(typeof a[i]){case"string":n=a[i];break;case"object":r=a[i];break;case"function":o=a[i]}"require"==e&&(n&&!r&&(r=[n]),n=q),n=n||"#"+y++,(i=_[n]=_[n]||{}).Xo||(i.name=n,i.c_=r,i.xK=o,"define"==e&&(i.bW=p),function e(n){if(!n.Xo){for(var i=p,r=[],o=n.c_,a=0;o&&a<o.length;a++){var s=o[a],l=_[s]=_[s]||{};if(l.Xo||l==n)r.push(l.Tc);else{if(i=t,!l.bW&&(s=(b.get("alias")||{})[s]||s+".js",!m[s])){m[s]=p;var u=f.createElement("script"),h=f.getElementsByTagName("script")[0];u.async=p,u.src=s,h.parentNode.insertBefore(u,h)}l.Ty=l.Ty||{},l.Ty[n.name]=n}}if(i)for(var c in n.Xo=p,n.xK&&(n.Tc=n.xK.apply(n,r)),n.Ty)e(n.Ty[c])}}(i))}else"function"==typeof e?e(g):(""+e).replace(/^(?:([\w$_]+)\.)?(\w+)$/,function(t,e,n){a[0]=n,l.apply(g.PF(e),a)})},v={},x={},_={u2:{name:"alog",Xo:p,Tc:g}};o.prototype.start=o.prototype.create=function(t){if(!this.wK)for("object"==typeof t&&this.set(t),this.wK=new Date,this.Qs("create",this);t=this.VJ.shift();)l.apply(this,t)},o.prototype.send=function(t,e){var n,i=u({ts:s().toString(36),t:t,sid:d},this.Ps);if("object"==typeof e)i=u(i,e);else{var r=arguments;switch(t){case"pageview":r[1]&&(i.page=r[1]),r[2]&&(i.title=r[2]);break;case"event":r[1]&&(i.eventCategory=r[1]),r[2]&&(i.eventAction=r[2]),r[3]&&(i.eventLabel=r[3]),r[4]&&(i.eventValue=r[4]);break;case"timing":r[1]&&(i.timingCategory=r[1]),r[2]&&(i.timingVar=r[2]),r[3]&&(i.timingValue=r[3]),r[4]&&(i.timingLabel=r[4]);break;case"exception":r[1]&&(i.exDescription=r[1]),r[2]&&(i.exFatal=r[2]);break;default:return}}if(this.Qs("send",i),r=this.Ps.protocolParameter){var o={};for(n in i)r[n]!==q&&(o[r[n]||n]=i[n]);n=o}else n=i;!function(t,e){if(t&&e){var n,i=new Image(1,1),r=[],o="img_"+ +new Date;for(n in e)e[n]&&r.push(n+"="+encodeURIComponent(e[n]));(g[o]=i).onload=i.onerror=function(){g[o]=i=i.onload=i.onerror=q,delete g[o]},i.src=t+"?"+r.join("&")}}(this.Ps.postUrl,n)},o.prototype.set=function(t,e){if("string"==typeof t)"protocolParameter"==t&&(e=u({postUrl:q,protocolParameter:q},e)),this.Ps[t]=e;else if("object"==typeof t)for(var n in t)this.set(n,t[n])},o.prototype.get=function(t,e){var n=this.Ps[t];return"function"==typeof e&&e(n),n},o.prototype.Qs=function(t,e){return g.Qs(this.name+"."+t,e)},o.prototype.V=function(t,e){g.V(this.name+"."+t,e)},o.prototype.gd=function(t,e){g.gd(this.name+"."+t,e)},g.name="alog",g.Xb=d,g.Xo=p,g.timestamp=s,g.gd=function(e,n,i){if(e){"string"==typeof e&&(i=n,n=e,e=g);try{if(e==g){var r=v[n];if(r)for(var o=r.length;o--;)r[o]===i&&r.splice(o,1)}else e.removeEventListener?e.removeEventListener(n,i,t):e.detachEvent&&e.detachEvent("on"+n,i)}catch(t){}}},g.V=n,g.Qs=function(t){var e=v[t],n=0;if(e){for(var i=[],r=arguments,o=1;o<r.length;o++)i.push(r[o]);for(o=e.length;o--;)e[o].apply(this,i)&&n++;return n}},g.PF=i,g("init");var w=o.prototype;V(w,{start:w.start,create:w.create,send:w.send,set:w.set,get:w.get,on:w.V,un:w.gd,fire:w.Qs});var b=i();if(b.set("protocolParameter",{t2:q}),r){for(var P in w=[].concat(r.vb||[],r.Ut||[]),r.vb=r.Ut=q,g)g.hasOwnProperty(P)&&(r[P]=g[P]);for(g.vb=g.Ut={push:function(t){g.apply(g,t)}},r=0;r<w.length;r++)g.apply(g,w[r])}a.alog=g,h&&n(f,"mouseup",function(t){1==(t=t.target||t.srcElement).nodeType&&/^ajavascript:/i.test(t.tagName+t.href)});var S=t;e.onerror=function(e,n,i,r){var o=p;return!n&&/^script error/i.test(e)&&(S?o=t:S=p),o&&a.alog("exception.send","exception",{Jt:e,tE:n,Ft:i,nm:r}),t},a.alog("exception.on","catch",function(t){a.alog("exception.send","exception",{Jt:t.Jt,tE:t.path,Ft:t.Ft,method:t.method,aL:"catch"})})}}(Eaq,Faq,Gaq),function(i,e,a){var n="18_3";J()&&(n="18_4");var r="http://static.tieba.baidu.com";"https:"===i.location.protocol&&(r="https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK");var o=Math.random,s=(r+="/tb/pms/img/st.gif",{Ch:"0.1"}),u={Ch:"0.1"},h={Ch:"0"};if((d={Ch:"0.1"}).Ch&&o()<d.Ch){var c,f=a.alog.PF("monkey"),d=i.screen,y=e.referrer;f.set("ver",5),f.set("pid",241),d&&f.set("px",d.width+"*"+d.height),f.set("ref",y),a.alog("monkey.on","create",function(){c=a.alog.timestamp,f.set("protocolParameter",{reports:q})}),a.alog("monkey.on","send",function(t){"pageview"==t.t&&(t.cmd="open"),t.now&&(t.ts=c(t.now).toString(36),t.now="")}),a.alog("monkey.create",{page:n,pid:"241",p:"18",dv:6,postUrl:r,reports:{refer:1}}),a.alog("monkey.send","pageview",{now:+new Date})}if(s.Ch&&o()<s.Ch){var m=t;i.onerror=function(e,n,i,r){var o=p;return!n&&/^script error/i.test(e)&&(m?o=t:m=p),o&&a.alog("exception.send","exception",{Jt:e,tE:n,Ft:i,nm:r}),t},a.alog("exception.on","catch",function(t){a.alog("exception.send","exception",{Jt:t.Jt,tE:t.path,Ft:t.Ft,method:t.method,aL:"catch"})}),a.alog("exception.create",{postUrl:r,dv:7,page:n,pid:"170",p:"18"})}if(u.Ch&&o()<u.Ch&&(a.alog("cus.on","time",function(e){var n,i={},r=t;if("[object Object]"===e.toString()){for(var o in e)"page"==o?i.page=e[o]:0<(n=parseInt(e[o]))&&/^z_/.test(o)&&(r=p,i[o]=n);r&&a.alog("cus.send","time",i)}}),a.alog("cus.on","count",function(e){var n={},i=t;if("string"==typeof e&&(e=[e]),e instanceof Array)for(var r=0;r<e.length;r++)/^z_/.test(e[r])?(i=p,n[e[r]]=1):/^page:/.test(e[r])&&(n.page=e[r].substring(5));i&&a.alog("cus.send","count",n)}),a.alog("cus.create",{dv:3,postUrl:r,page:n,p:"18"})),h.Ch&&o()<h.Ch){function g(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):e.createElement.apply(e,arguments)}function v(t){return vt(t,l,l)}function x(t,e,n){return 0===t.indexOf("@")?atRule(t):(-1!=t.indexOf("-")&&(t=_t(t)),e?vt(t,e,n):vt(t,"pfx"))}function _(){var t=g("canvas");return!(!t.getContext||!t.getContext("2d"))}function w(){var t=g("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t}function b(){try{return localStorage.setItem("localStorage","localStorage"),localStorage.removeItem("localStorage"),p}catch(e){return t}}function P(){return"content"in e.createElement("template")}function S(){return"createShadowRoot"in e.createElement("a")}function C(){return"registerElement"in e}function M(){return"import"in e.createElement("link")}function T(){return"getItems"in e}function A(){return"EventSource"in window}function E(e,n){var i=new Image;i.onload=function(){n(e,0<i.width&&0<i.height)},i.onerror=function(){n(e,t)},i.src="data:image/webp;base64,"+{V4:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",U4:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",tk:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[e]}function I(t,e){return wt.ii["WebP-"+t]=e}function L(){return"openDatabase"in i}function R(){return"performance"in i&&"timing"in i.performance}function O(){return"performance"in i&&"mark"in i.performance}function N(){return!!(Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray)}function k(){return"Promise"in i&&"cast"in i.xq&&"resolve"in i.xq&&"reject"in i.xq&&"all"in i.xq&&"race"in i.xq&&(new i.xq(function(t){e=t}),"function"==typeof e);var e}function z(){var t=!!i.q1,e=i.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest;return!!i.u1&&t&&e}function D(){return"geolocation"in navigator}function F(){var t=g("canvas"),e="probablySupportsContext"in t?"probablySupportsContext":"supportsContext";return e in t?t[e]("webgl")||t[e]("experimental-webgl"):"WebGLRenderingContext"in i}function G(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").R2}function j(){return!!i.B1}function V(){return"WebSocket"in i&&2===i.y1.m1}function B(){return!!e.createElement("video").canPlayType}function U(){return!!e.createElement("audio").canPlayType}function W(){return!!(i.history&&"pushState"in i.history)}function Z(){return!(!i.o1||!i.p1)}function X(){return"postMessage"in window}function H(){return!!i.webkitNotifications||"Notification"in i&&"permission"in i.xP&&"requestPermission"in i.xP}function Y(){for(var t=["webkit","moz","o","ms"],e=i.requestAnimationFrame,n=0;n<t.length&&!e;++n)e=i[t[n]+"RequestAnimationFrame"];return!!e}function K(){return"JSON"in i&&"parse"in JSON&&"stringify"in JSON}function Q(){return!(!x("exitFullscreen",e,t)&&!x("cancelFullScreen",e,t))}function $(){return!!x("Intl",i)}function tt(){return v("flexBasis")}function et(){return!!v("perspective")}function nt(){return v("shapeOutside")}function it(){var t=g("div");return t.style.cssText=mt.join("filter:blur(2px); "),!!t.style.length&&(e.documentMode===l||9<e.documentMode)}function rt(){return"XMLHttpRequest"in i&&"withCredentials"in new XMLHttpRequest}function ot(){return g("progress").max!==l}function at(){return g("meter").max!==l}function st(){return"sendBeacon"in navigator}function lt(){return v("borderRadius")}function ut(){return v("boxShadow")}function ht(){var t=g("div").style;return t.cssText=mt.join("opacity:.55;"),/^0.55$/.test(t.opacity)}function ct(){return xt(["textShadow"],l)}function pt(){return v("animationName")}function ft(){return v("transition")}function dt(){return-1===navigator.userAgent.indexOf("Android 2.")&&v("transform")}var yt=["Moz","O","ms","Webkit"],mt=["-webkit-","-moz-","-o-","-ms-"],gt=g("dpFeatureTest").style,vt=function(e,n,i){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+yt.join(r+" ")+r).split(" ");if("string"==typeof n||void 0===n)return xt(o,n);t:{var a;for(a in e=o=(e+" "+yt.join(r+" ")+r).split(" "))if(e[a]in n){if(i===t){n=e[a];break t}n="function"==typeof(a=n[e[a]])?fnBind(a,i||n):a;break t}n=t}return n},xt=function(e,n){var i,r,o;for(r=e.length,i=0;i<r;i++)if(~(""+(o=e[i])).indexOf("-")&&(o=_t(o)),gt[o]!==l)return"pfx"==n?o:p;return t},_t=function(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,n){return e+n.toUpperCase()}).replace(/^-/,"")},wt={ii:{},sa:function(t,e,n){this.ii[t]=e.apply(this,[].slice.call(arguments,2))},Id:function(t,e){t.apply(this,[].slice.call(arguments,1))},h_:function(){this.sa("bdrs",lt),this.sa("bxsd",ut),this.sa("opat",ht),this.sa("txsd",ct),this.sa("anim",pt),this.sa("trsi",ft),this.sa("trfm",dt),this.sa("flex",tt),this.sa("3dtr",et),this.sa("shpe",nt),this.sa("fltr",it),this.sa("cavs",_),this.sa("dgdp",w),this.sa("locs",b),this.sa("wctem",P),this.sa("wcsdd",S),this.sa("wccse",C),this.sa("wchti",M),this.Id(E,"lossy",I),this.Id(E,"lossless",I),this.Id(E,"alpha",I),this.Id(E,"animation",I),this.sa("wsql",L),this.sa("natm",R),this.sa("ustm",O),this.sa("arra",N),this.sa("prms",k),this.sa("xhr2",z),this.sa("wbgl",F),this.sa("geol",D),this.sa("svg",G),this.sa("work",j),this.sa("wbsk",V),this.sa("vido",B),this.sa("audo",U),this.sa("hsty",W),this.sa("file",Z),this.sa("psmg",X),this.sa("wknf",H),this.sa("rqaf",Y),this.sa("json",K),this.sa("flsc",Q),this.sa("i18n",$),this.sa("cors",rt),this.sa("prog",ot),this.sa("metr",at),this.sa("becn",st),this.sa("mcrd",T),this.sa("esrc",A)}};(f=a.alog.PF("feature")).V("commit",function(){wt.h_();var e=setInterval(function(){if("WebP-lossy"in wt.ii&&"WebP-lossless"in wt.ii&&"WebP-alpha"in wt.ii&&"WebP-animation"in wt.ii){for(var t in wt.ii)wt.ii[t]=wt.ii[t]?"y":"n";f.send("feature",wt.ii),clearInterval(e)}},500)}),a.alog("feature.create",{a3:4,y5:r,page:n,vb:"18"}),a.alog("feature.fire","commit")}}(Eaq,Faq,Gaq),D.Cq=D.alog||u(),D.alog("cus.fire","count","z_loadscriptcount"),"https:"===location.protocol&&D.alog("cus.fire","count","z_httpscount");var Wb=[72.6892532,.1939743381,136.1168614,54.392257],Xb=[72.69566833,.1999420909,136.1232863,54.39791217],Yb=158,Zb=[98.795985,122.960792,107.867379,118.093451,119.139658,128.035888,79.948212,99.029524,119.923388,122.094977,127.918527,130.94789,106.50606,108.076783,119.8329,126.382207,111.803567,119.324928,100.749858,102.227985,99.860885,100.788921,97.529435,98.841564,99.100017,99.90035,122.917416,123.774367,123.728314,125.507211,123.736065,124.767299,125.488463,126.410675,125.484326,126.07764,130.830784,133.620042,127.912178,128.668957,128.658937,129.638599,132.894179,134.119086,117.379378,119.244569,116.086736,117.431212,114.420233,116.137458,116.492775,119.605527,110.579401,111.86488,74.468228,80.001908,82.867432,91.353788,85.721075,98.976964,127.664757,129.546833,129.476893,130.22449,133.730358,134.745235,134.381034,135.1178,130.868117,131.34409,115.513245,117.544751,115.779271,116.748045,108.536254,110.614326,121.365534,124.626434,126.165992,127.347013,91.281869,95.611754,79.879648,82.945041,76.413314,78.345207,78.275229,80.002329,83.956612,85.734098,85.510186,89.356499,97.997001,98.948845,106.653208,108.610811,111.400183,111.824179,111.592224,111.817136,116.00682,117.024631,116.258574,116.689291,119.436876,119.922961,120.659806,121.395479,120.349116,120.676014,124.59389,125.787788,126.221756,126.788962,95.572955,102.046581,95.583772,96.165551,95.564318,97.806095,91.30446,93.356438,93.330319,94.698145,89.349129,90.548677,82.268802,82.892025,78.335615,80.032266,76.625755,78.361413,73.498248,74.490992,74.846872,76.488771,91.563521,94.878444,88.768214,89.244787,83.247076,83.974127,82.29595,83.256003,81.885315,83.26249,80.760619,81.472404,86.470983,88.276988,102.207537,104.234614,112.164795,116.833667,108.965663,113.032246,111.166575,117.983363],$b=[22.551183,42.284787,17.227969,22.738314,41.300981,50.749638,30.368087,42.332701,21.705055,22.696452,42.426047,48.944674,21.432184,22.651387,50.657409,52.92296,42.212192,45.206905,21.137031,22.57186,21.444502,22.586566,23.741571,25.301472,22.006806,22.56637,38.985114,41.346531,40.295617,41.338581,39.740021,40.351012,40.974644,41.331562,40.726852,41.067192,44.877158,48.018285,41.344597,42.451798,42.016305,42.443235,45.880906,48.214001,45.140027,46.792775,45.141083,46.400433,45.156418,45.748281,47.485889,50.071879,42.223667,43.469487,37.019867,40.668675,42.226823,47.321605,27.72944,30.469853,48.919002,49.650614,48.840188,49.443166,46.949801,48.382798,47.660603,48.472692,42.859946,44.913298,47.605896,48.445914,48.41698,48.909667,42.23507,42.914193,52.8281,53.585952,50.709311,51.662219,42.29968,44.399225,42.302746,45.391958,34.680866,37.03377,30.743515,37.07228,28.245649,30.408935,47.277693,48.504255,25.241528,27.780726,42.223363,42.548418,43.435888,44.696952,44.693193,45.00187,48.886267,49.326755,49.288642,49.632304,50.717486,51.314369,52.914204,53.33964,52.910094,53.115926,52.908382,53.258095,51.64533,52.408305,42.236825,42.699126,43.068466,43.898632,42.670403,43.082219,44.379045,45.187742,44.382336,44.981379,47.310362,48.06019,45.359099,46.814439,40.569751,42.047741,40.587956,41.41263,38.519192,40.185033,35.790476,37.029005,26.825605,27.763896,27.199658,27.751649,29.150192,30.381073,29.573886,30.065162,30.047775,30.384089,30.001277,30.388525,48.494118,49.173841,22.398528,22.601198,7.441114,11.505968,3.767491,9.005209,12.642067,17.410886],ac=95,cc=[110.3961374,105.0743788,96.8991824,95.61810411,93.82412598,91.3892353,91.38931858,89.08325955,87.22469808,86.26278402,85.17353,85.23741211,82.86627441,81.90481038,79.59687147,80.39829237,79.93319363,77.80279948,75.2557704,73.49357829,73.1892532,73.87758816,74.4064738,74.10215224,75.46409695,76.77739692,78.28299615,78.15499485,78.37920654,78.89145345,79.69282199,81.19938178,81.80830295,83.89093424,85.94149523,87.86447266,89.03414958,90.05918132,91.10026937,92.15733832,93.74361735,95.82597331,97.95655545,97.12363037,98.2129739,99.2068571,101.6587874,102.5239084,102.2356106,105.0249238,106.0992342,107.8617093,111.6439372,109.591869,112.284586,117.7961157,118.9495128,114.2076584,118.693565,123.1475225,122.730705,120.9361393,123.4207441,122.3787782,122.1385425,121.5904281,121.1773763,120.6805404,120.2483355,122.795807,122.8759077,121.3060262,122.1392177,123.7418799,126.4177599,128.5647409,129.7194884,131.2259136,131.9950494,133.6289931,135.6168614,131.3875545,130.8743365,128.6303223,126.0997773,124.4015375,122.22161,119.6586483,119.7866827,118.5685878,116.5177976,114.819101,119.0812964,116.453265,111.7431171],dc=[43.2190351,42.38053385,43.17417589,44.42226915,45.09863634,45.56708116,47.33599718,48.68832709,49.62448486,48.9482175,48.4800472,47.33564399,47.43948676,46.03452067,45.20221788,43.34563043,42.32965739,41.39690972,40.82972331,39.95567654,39.25892877,38.36098768,38.05441569,37.16878445,36.38899414,35.36126817,34.30953451,32.58503879,31.56975694,30.77800266,30.43559814,29.7744892,30.0931977,28.71103299,27.70739665,27.5775472,27.01096137,27.77857883,27.50707954,26.50328315,26.70387804,27.95548557,27.29428901,23.64685493,23.62310601,21.67493381,20.77751465,21.32070991,22.1824113,22.31232964,22.51316054,16.80037679,13.19749864,.6939743381,1.541660428,10.50208252,15.58926975,17.89090007,19.94928467,22.18490153,25.37285292,25.61456434,30.62532552,31.08099284,31.89238173,32.50092692,32.80325765,34.25546956,35.15486138,36.90170139,37.8348272,37.941604,38.6480797,38.96797201,40.98146918,41.25573296,42.07218153,42.49132813,44.65259766,44.69330702,48.62286865,48.09383952,49.19628499,50.03402317,53.27678901,53.62976345,53.89420546,52.98933322,52.01872884,50.23210259,50.18807048,47.49769857,47.34362712,46.50502143,45.24770128],ec=[98.7895,122.954182,107.860913,118.087007,119.133165,128.029533,79.941749,99.023087,119.916883,122.08841,127.912143,130.941471,106.499502,108.070244,119.826245,126.375818,111.797006,119.318387,100.743285,102.221517,99.854448,100.782445,97.522928,98.835028,99.093518,99.893783,122.910927,123.767769,123.721954,125.50077,123.729657,124.760724,125.481902,126.404079,125.477737,126.071019,130.824331,133.613395,127.905767,128.662524,128.652527,129.6321,132.887552,134.11249,117.37297,119.237999,116.080154,117.424589,114.413586,116.130948,116.486264,119.598927,110.5728,111.858437,74.465162,79.995337,82.860821,91.347291,85.716024,98.970481,127.658331,129.540202,129.470528,130.21808,133.723748,134.738785,134.374555,135.111443,130.861475,131.337438,115.506627,117.538123,115.772783,116.741632,108.529656,110.60782,121.358945,124.619773,126.159424,127.340582,91.275275,95.605228,79.874427,82.938601,76.413314,78.338763,78.275229,79.995765,83.956612,85.727511,85.503554,89.349858,97.990418,98.942257,106.646704,108.604437,111.393667,111.817723,111.585811,111.810645,116.000232,117.018216,116.252108,116.682705,119.430384,119.916417,120.653168,121.38883,120.342727,120.669383,124.587426,125.781376,126.215282,126.782323,95.566367,102.040026,95.577158,96.159009,95.557772,97.799728,91.298032,93.350057,93.323794,94.691771,89.342471,90.542019,82.264229,82.885485,78.335615,80.025844,76.623947,78.355027,73.495149,74.484473,74.846872,76.482208,91.560117,94.871859,88.761692,89.23822,83.240549,83.967602,82.292367,83.2495,81.878825,83.256003,80.75421,81.465955,86.465421,88.270356,102.201019,104.228033,112.158282,116.827153,108.965663,113.025767,111.166575,117.97687],fc=[22.545421,42.279053,17.226272,22.731982,41.294917,50.743316,30.361986,42.326603,21.699185,22.690751,42.419757,48.938435,21.426505,22.64567,50.651745,52.916705,42.20641,45.201064,21.131326,22.565685,21.438288,22.580379,23.735785,25.295582,22.001087,22.560315,38.979333,41.340757,40.28938,41.332289,39.734164,40.344718,40.968803,41.325813,40.721073,41.061503,44.871533,48.012179,41.338366,42.445601,42.010343,42.436934,45.875217,48.208327,45.134237,46.786509,45.135376,46.394665,45.150734,45.742257,47.480099,50.065931,42.217982,43.46329,37.014057,40.662848,42.221079,47.315558,27.723432,30.46385,48.913298,49.644555,48.83396,49.436824,46.944059,48.376613,47.654503,48.466331,42.854333,44.907682,47.600253,48.440245,48.410926,48.903468,42.229292,42.908294,52.822466,53.58012,50.703491,51.656037,42.29378,44.393379,42.296912,45.385809,34.679282,37.027699,30.740622,37.066377,28.241967,30.403134,47.271949,48.49848,25.235818,27.774976,42.217425,42.542102,43.429763,44.691016,44.687044,44.995758,48.880431,49.320551,49.282865,49.626267,50.711607,51.308382,52.908547,53.333963,52.904419,53.109706,52.902338,53.251938,51.639701,52.402205,42.231045,42.693581,43.062756,43.892771,42.664519,43.075927,44.372942,45.1815,44.376327,44.975476,47.304623,48.054453,45.353174,46.808493,40.563653,42.041556,40.582164,41.4064,38.51618,40.179105,35.789745,37.023144,26.825402,27.757641,27.193806,27.745766,29.144229,30.375186,29.567889,30.059102,30.041938,30.378006,29.995047,30.382338,48.48834,49.169021,22.392816,22.595333,7.439914,11.500161,3.766676,9.000793,12.640512,17.406563],gc=3e3,hc=2e-5,ic=3e-6,jc=.0174532925194,kc=.0065,lc=.006,mc=4e4,nc=0,oc=3,pc=1e-10,qc=6370996.81,rc=1e8;yc.prototype.contains=function(t){return t.lng>this.Gg.lng&&t.lng<this.Ng.lng&&t.lat>this.Gg.lat&&t.lat<this.Ng.lat?oc:Math.abs(t.lng-this.Gg.lng)<pc||Math.abs(t.lng-this.Ng.lng)<pc||Math.abs(t.lat-this.Gg.lat)<pc||Math.abs(t.y-this.Ng.lat)>pc?2:nc},yc.prototype.normalize=function(t,e,n,i){n<t?(this.Gg.lng=n,this.Ng.lng=t):(this.Gg.lng=t,this.Ng.lng=n),i<e?(this.Gg.lat=i,this.Ng.lat=e):(this.Gg.lat=e,this.Ng.lat=i)};var Dc={map:"0zz35j",common:"qfikm4",style:"e0pfib",tile:"0es0ze",groundoverlay:"354afp",pointcollection:"z3tps3",marker:"n3vinr",symbol:"wssaky",canvablepath:"2lhp1d",vmlcontext:"5sm1kh",markeranimation:"uvlfhr",poly:"wqosr1",draw:"4kimvu",drawbysvg:"qq334z",drawbyvml:"zxbjkj",drawbycanvas:"gmz0gt",infowindow:"n5qhnd",oppc:"g2tfrd",opmb:"ql1inu",menu:"s4oiie",control:"kirlcr",navictrl:"x4sga2",geoctrl:"tesxmq",copyrightctrl:"xlo0s5",citylistcontrol:"j0emho",scommon:"iqmr35",local:"c3nyzo",route:"0zbfox",othersearch:"1bvkqu",mapclick:"iyqbbp",buslinesearch:"kg1lsk",hotspot:"pyucq0",autocomplete:"eh3ann",coordtrans:"pfly0c",coordtransutils:"uqy55d",convertor:"344tmo",clayer:"sjawpi",pservice:"fifcez",pcommon:"3rn1ax",panorama:"brxhxv",panoramaflash:"mhkm0e"},Rgq,Sgq,Tgq;A.Ly=(Rgq="BMap_",Sgq=window.localStorage,Tgq="localStorage"in window&&Sgq!==q&&Sgq!==l,{OY:Tgq,set:function(t,e){if(Tgq){for(var n,i=Rgq+t+"_",r=Sgq.length;r--;)-1<(n=Sgq.key(r)).indexOf(i)&&Sgq.removeItem(n);try{Sgq.setItem(Rgq+t+"_"+Dc[t],e)}catch(t){Sgq.clear()}}},get:function(e){return Tgq&&Qgq(e)?Sgq.getItem(Rgq+e+"_"+Dc[e]):t},iK:Qgq}),A.object.extend(Wa,{Mj:{uG:-1,MP:0,pq:1},pL:function(){var t="canvablepath";return J()&&Sb()||Rb()||(Qb()?t="vmlcontext":Sb()),{tile:["style"],control:[],marker:["symbol"],symbol:["canvablepath","common"],canvablepath:"canvablepath"===t?[]:[t],vmlcontext:[],style:[],poly:["marker","drawbycanvas","drawbysvg","drawbyvml"],drawbysvg:["draw"],drawbyvml:["draw"],drawbycanvas:["draw"],infowindow:["common","marker"],menu:[],oppc:[],opmb:[],scommon:[],local:["scommon"],route:["scommon"],othersearch:["scommon"],autocomplete:["scommon"],citylistcontrol:["autocomplete"],mapclick:["scommon"],buslinesearch:["route"],hotspot:[],coordtransutils:["coordtrans"],convertor:[],clayer:["tile"],pservice:[],pcommon:["style","pservice"],panorama:["pcommon"],panoramaflash:["pcommon"]}},B5:{},lG:{YP:D.pa+"getmodules?v=3.0",tU:5e3},BC:t,Xd:{El:{},Gn:[],bw:[]},load:function(e,n,i){var r=this.qb(e);if(r.Se==this.Mj.pq)i&&n();else{if(r.Se==this.Mj.uG){this.nK(e),this.zN(e);var a=this;a.BC==t&&(a.BC=p,setTimeout(function(){for(var e=[],n=0,i=a.Xd.Gn.length;n<i;n++){var r=a.Xd.Gn[n],o="";ja.Ly.iK(r)?o=ja.Ly.get(r):(o="",e.push(r+"_"+Dc[r])),a.Xd.bw.push({RM:r,IE:o})}a.BC=t,(a.Xd.Gn.length=0)==e.length?a.WK():qa(a.lG.YP+"&mod="+e.join(","))},1)),r.Se=this.Mj.MP}r.Xu.push(n)}},nK:function(t){if(t&&this.pL()[t]){t=this.pL()[t];for(var e=0;e<t.length;e++)this.nK(t[e]),this.Xd.El[t[e]]||this.zN(t[e])}},zN:function(t){for(var e=0;e<this.Xd.Gn.length;e++)if(this.Xd.Gn[e]==t)return;this.Xd.Gn.push(t)},g_:function(a,b){var c=this.qb(a);try{eval(b)}catch(t){return}c.Se=this.Mj.pq;for(var f=0,g=c.Xu.length;f<g;f++)c.Xu[f]();c.Xu.length=0},iK:function(t,e){var n=this;n.timeout=setTimeout(function(){n.Xd.El[t].Se!=n.Mj.pq?(n.remove(t),n.load(t,e)):clearTimeout(n.timeout)},n.lG.tU)},qb:function(t){return this.Xd.El[t]||(this.Xd.El[t]={},this.Xd.El[t].Se=this.Mj.uG,this.Xd.El[t].Xu=[]),this.Xd.El[t]},remove:function(t){this.qb(t)},rV:function(e,n){for(var i=this.Xd.bw,r=p,o=0,a=i.length;o<a;o++)""==i[o].IE&&(i[o].RM==e?i[o].IE=n:r=t);r&&this.WK()},WK:function(){for(var t=this.Xd.bw,e=0,n=t.length;e<n;e++)this.g_(t[e].RM,t[e].IE);this.Xd.bw.length=0}}),R.prototype.Ub=function(t){return t&&t.x==this.x&&t.y==this.y},N.prototype.Ub=function(t){return t&&this.width==t.width&&this.height==t.height},mb.da=0,A.extend(mb.prototype,{za:function(t){this.Qh==q&&(this.Qh=t.M.kc),this.Nf==q&&(this.Nf=t.M.qc)},va:function(t){(t instanceof Q||t instanceof L)&&(this.Mb=t)},ma:x("Mb"),fu:ca("ih"),SD:x("ih"),setUserData:ca("IB"),getUserData:x("IB")}),A.lang.xa(Ec,A.lang.Ja,"Control"),A.extend(Ec.prototype,{initialize:function(t){if(this.P=t,this.R)return t.cb.appendChild(this.R),this.R},Me:function(e){!this.R&&this.initialize&&bb(this.initialize)&&(this.R=this.initialize(e)),this.m=this.m||{Mg:t},this.wB(),this.Or(),this.R&&(this.R.pr=this)},wB:function(){var t=this.R;if(t){var e=t.style;e.position="absolute",e.zIndex=this.Uu||"10",e.MozUserSelect="none",e.WebkitTextSizeAdjust="none",this.m.Mg||A.U.ib(t,"BMap_noprint"),J()||A.V(t,"contextmenu",oa)}},remove:function(){this.P=q,this.R&&(this.R.parentNode&&this.R.parentNode.removeChild(this.R),this.R=this.R.pr=q)},Ha:function(){return this.R=Fb(this.P.cb,"<div unselectable='on'></div>"),this.Wa==t&&A.U.aa(this.R),this.R},Or:function(){this.wc(this.m.anchor)},wc:function(e){(this.v2||!ab(e)||isNaN(e)||e<Fc||3<e)&&(e=this.defaultAnchor),this.m=this.m||{Mg:t},this.m.Ga=this.m.Ga||this.defaultOffset;var n=this.m.anchor;if(this.m.anchor=e,this.R){var i=this.R,r=this.m.Ga.width,o=this.m.Ga.height;switch(i.style.left=i.style.top=i.style.right=i.style.bottom="auto",e){case Fc:i.style.top=o+"px",i.style.left=r+"px";break;case Gc:i.style.top=o+"px",i.style.right=r+"px";break;case Hc:i.style.bottom=o+"px",i.style.left=r+"px";break;case 3:i.style.bottom=o+"px",i.style.right=r+"px"}i=["TL","TR","BL","BR"],A.U.rc(this.R,"anchor"+i[n]),A.U.ib(this.R,"anchor"+i[e])}},vD:function(){return this.m.anchor},getContainer:x("R"),Rd:function(e){e instanceof N&&(this.m=this.m||{Mg:t},this.m.Ga=new N(e.width,e.height),this.R&&this.wc(this.m.anchor))},sj:function(){return this.m.Ga},cd:x("R"),show:function(){this.Wa!=p&&(this.Wa=p,this.R&&A.U.show(this.R))},aa:function(){this.Wa!=t&&(this.Wa=t,this.R&&A.U.aa(this.R))},isPrintable:function(){return!!this.m.Mg},Uc:function(){return this.R||this.P?!!this.Wa:t}});var Fc=0,Gc=1,Hc=2;A.lang.xa(ob,Ec,"NavigationControl"),A.extend(ob.prototype,{initialize:function(t){return this.P=t,this.R},kn:function(t){this.m.type=ab(t)&&0<=t&&t<=3?t:0},up:function(){return this.m.type},Ef:function(){var t=this;Wa.load("navictrl",function(){t.Df()})}}),A.lang.xa(Ic,Ec,"GeolocationControl"),A.extend(Ic.prototype,{location:function(){this.ue.push({method:"location",arguments:arguments})},getAddressComponent:ea(q)}),A.lang.xa(Jc,Ec,"CopyrightControl"),A.object.extend(Jc.prototype,{initialize:function(t){return this.P=t,this.R},Aw:function(t){if(t&&ab(t.id)&&!isNaN(t.id)){var e,n={bounds:q,content:""};for(e in t)n[e]=t[e];if(t=this.xm(t.id))for(var i in n)t[i]=n[i];else this.gc.push(n)}},xm:function(t){for(var e=0,n=this.gc.length;e<n;e++)if(this.gc[e].id==t)return this.gc[e]},CD:x("gc"),XE:function(t){for(var e=0,n=this.gc.length;e<n;e++)this.gc[e].id==t&&(r=this.gc.splice(e,1),e--,n=this.gc.length)},Ef:function(){var t=this;Wa.load("copyrightctrl",function(){t.Df()})}}),A.lang.xa(qb,Ec,"OverviewMapControl"),A.extend(qb.prototype,{initialize:function(t){return this.P=t,this.R},wc:function(t){Ec.prototype.wc.call(this,t)},ve:function(){this.ve.qo=p,this.m.eb=!this.m.eb,this.R||(this.ve.qo=t)},He:function(t){t instanceof N||(t=new N(150,150)),t.width=0<t.width?t.width:150,t.height=0<t.height?t.height:150,this.m.size=t},zb:function(){return this.m.size},eb:function(){return this.m.eb},Ef:function(){var t=this;Wa.load("control",function(){t.Df()})}}),A.lang.xa(Kc,Ec,"CityListControl"),A.object.extend(Kc.prototype,{initialize:function(t){return this.P=t,this.R},Ef:function(){var t=this;Wa.load("citylistcontrol",function(){t.Df()},p)}}),A.lang.xa(pb,Ec,"ScaleControl"),A.object.extend(pb.prototype,{initialize:function(t){return this.P=t,this.R},Wk:function(t){this.m.color=t+""},B3:function(){return this.m.color},uF:function(t){this.m.hd=this.Zh[t]&&this.Zh[t].name||this.m.hd},dY:function(){return this.m.hd},Ef:function(){var t=this;Wa.load("control",function(){t.Df()})}});var Lc=0;A.lang.xa(rb,Ec,"MapTypeControl"),A.object.extend(rb.prototype,{initialize:function(t){return this.P=t,this.R},My:function(t){this.P.bo=t},Ef:function(){var t=this;Wa.load("control",function(){t.Df()},p)}}),A.lang.xa(Mc,Ec,"PanoramaControl"),A.extend(Mc.prototype,{initialize:function(t){return this.P=t,this.R},Ef:function(){var t=this;Wa.load("control",function(){t.Df()})}}),A.lang.xa(Pc,A.lang.Ja,"ContextMenu"),A.object.extend(Pc.prototype,{za:function(t,e){this.P=t,this.Jl=e||q},remove:function(){this.P=this.Jl=q},es:function(t){if(t&&!("menuitem"!=t.Nb||""==t.ih||t.fj<=0)){for(var e=0,n=this.Da.length;e<n;e++)if(this.Da[e]===t)return;this.Da.push(t),this.Pf.push(t)}},removeItem:function(t){if(t&&"menuitem"==t.Nb){for(var e=0,n=this.Da.length;e<n;e++)this.Da[e]===t&&(this.Da[e].remove(),this.Da.splice(e,1),n--);for(e=0,n=this.Pf.length;e<n;e++)this.Pf[e]===t&&(this.Pf[e].remove(),this.Pf.splice(e,1),n--)}},TB:function(){this.Da.push({Nb:"divider",Uj:this.Ke.length}),this.Ke.push({U:q})},$E:function(t){if(this.Ke[t]){for(var e=0,n=this.Da.length;e<n;e++)this.Da[e]&&"divider"==this.Da[e].Nb&&this.Da[e].Uj==t&&(this.Da.splice(e,1),n--),this.Da[e]&&"divider"==this.Da[e].Nb&&this.Da[e].Uj>t&&this.Da[e].Uj--;this.Ke.splice(t,1)}},cd:x("R"),show:function(){this.Ph!=p&&(this.Ph=p)},aa:function(){this.Ph!=t&&(this.Ph=t)},v_:function(t){t&&(this.m.cursor=t)},getItem:function(t){return this.Pf[t]}});var Qc=I.ua+"menu_zoom_in.png",Rc=I.ua+"menu_zoom_out.png";A.lang.xa(Sc,A.lang.Ja,"MenuItem"),A.object.extend(Sc.prototype,{za:function(t,e){this.P=t,this.Kh=e},remove:function(){this.P=this.Kh=q},fu:function(t){t&&(this.ih=t+"")},Wb:function(t){t&&(this.m.Km=t)},cd:x("R"),enable:function(){this.Nh=p},disable:function(){this.Nh=t}}),A.object.extend(jb.prototype,{Aj:function(){return!this.Xl||!this.Hl},Ub:function(e){return e instanceof jb&&!this.Aj()?this.Ae().Ub(e.Ae())&&this.sf().Ub(e.sf()):t},Ae:x("Xl"),sf:x("Hl"),GV:function(e){return e instanceof jb&&!this.Aj()&&!e.Aj()?e.Te>this.Te&&e.Ne<this.Ne&&e.ee>this.ee&&e.be<this.be:t},Qb:function(){return this.Aj()?q:new Q((this.Te+this.Ne)/2,(this.ee+this.be)/2)},ot:function(t){if(!(t instanceof jb)||Math.max(t.Te,t.Ne)<Math.min(this.Te,this.Ne)||Math.min(t.Te,t.Ne)>Math.max(this.Te,this.Ne)||Math.max(t.ee,t.be)<Math.min(this.ee,this.be)||Math.min(t.ee,t.be)>Math.max(this.ee,this.be))return q;var e=Math.max(this.Te,t.Te),n=Math.min(this.Ne,t.Ne),i=Math.max(this.ee,t.ee);t=Math.min(this.be,t.be);return new jb(new Q(e,i),new Q(n,t))},ns:function(e){return!(e instanceof Q||e instanceof L)||this.Aj()?t:e.lng>=this.Te&&e.lng<=this.Ne&&e.lat>=this.ee&&e.lat<=this.be},extend:function(t){if(t instanceof Q||t instanceof L){var e=t.lng;t=t.lat;this.Xl||(this.Xl=new Q(0,0)),this.Hl||(this.Hl=new Q(0,0)),(!this.Te||this.Te>e)&&(this.Xl.lng=this.Te=e),(!this.Ne||this.Ne<e)&&(this.Hl.lng=this.Ne=e),(!this.ee||this.ee>t)&&(this.Xl.lat=this.ee=t),(!this.be||this.be<t)&&(this.Hl.lat=this.be=t)}},LF:function(){return this.Aj()?new Q(0,0):new Q(Math.abs(this.Ne-this.Te),Math.abs(this.be-this.ee))}}),Q.lE=function(t){return t&&t.lng<=180&&-180<=t.lng&&t.lat<=74&&-74<=t.lat},Q.prototype.Ub=function(t){return t&&this.lat==t.lat&&this.lng==t.lng},L.lE=function(t){return t&&t.lng<=180&&-180<=t.lng&&t.lat<=74&&-74<=t.lat},L.prototype.Ub=function(t){return t&&this.lat==t.lat&&this.lng==t.lng},Tc.prototype.Hg=function(){ba("lngLatToPoint方法未实现")},Tc.prototype.Ej=function(){ba("pointToLngLat方法未实现")};var ib={rK:function(t,e,n){Wa.load("coordtransutils",function(){ib.RU(t,e,n)},p)},qK:function(t,e,n){Wa.load("coordtransutils",function(){ib.QU(t,e,n)},p)}};A.xa(Vc,A.lang.Ja,"Convertor"),A.extend(Vc.prototype,{translate:function(t,e,n,i){this.Qa.push({method:"translate",arguments:[t,e,n,i]})}}),V(Vc.prototype,{translate:Vc.prototype.translate}),T.prototype=new Tc,A.extend(T,{oP:6370996.81,yG:[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],Lu:[86,60,45,30,15,0],uP:[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],vG:[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],H3:function(t,e){return t&&e&&(t=this.hc(t))?(n=this.el(t.lng),i=this.el(t.lat),(e=this.hc(e))?this.Md(n,this.el(e.lng),i,this.el(e.lat)):0):0;var n,i},Ek:function(t,e){return t&&e?(t.lng=this.JD(t.lng,-180,180),t.lat=this.OD(t.lat,-74,74),e.lng=this.JD(e.lng,-180,180),e.lat=this.OD(e.lat,-74,74),this.Md(this.el(t.lng),this.el(e.lng),this.el(t.lat),this.el(e.lat))):0},hc:function(t){if(t===q||t===l)return new L(0,0);var e,n;e=new L(Math.abs(t.lng),Math.abs(t.lat));for(var i=0;i<this.yG.length;i++)if(e.lat>=this.yG[i]){n=this.uP[i];break}return new L((t=this.sK(t,n)).lng,t.lat)},Ya:function(t){if(t===q||t===l||180<t.lng||t.lng<-180||90<t.lat||t.lat<-90)return new L(0,0);var e,n;t.lng=this.JD(t.lng,-180,180),t.lat=this.OD(t.lat,-85,85),e=new L(t.lng,t.lat);for(var i=0;i<this.Lu.length;i++)if(e.lat>=this.Lu[i]){n=this.vG[i];break}if(!n)for(i=0;i<this.Lu.length;i++)if(e.lat<=-this.Lu[i]){n=this.vG[i];break}return new L((t=this.sK(t,n)).lng,t.lat)},sK:function(t,e){if(t&&e){var n=e[0]+e[1]*Math.abs(t.lng),i=Math.abs(t.lat)/e[9];i=e[2]+e[3]*i+e[4]*i*i+e[5]*i*i*i+e[6]*i*i*i*i+e[7]*i*i*i*i*i+e[8]*i*i*i*i*i*i;return new L(n=n*(t.lng<0?-1:1),i=i*(t.lat<0?-1:1))}},Md:function(t,e,n,i){return this.oP*Math.acos(Math.sin(n)*Math.sin(i)+Math.cos(n)*Math.cos(i)*Math.cos(e-t))},el:function(t){return Math.PI*t/180},k6:function(t){return 180*t/Math.PI},OD:function(t,e,n){return e!=q&&(t=Math.max(t,e)),n!=q&&(t=Math.min(t,n)),t},JD:function(t,e,n){for(;n<t;)t-=n-e;for(;t<e;)t+=n-e;return t}}),A.extend(T.prototype,{ri:function(t){return T.Ya(t)},Hg:function(t){return new R((t=T.Ya(t)).lng,t.lat)},xh:function(t){return T.hc(t)},Ej:function(t){return t=new L(t.x,t.y),new Q((t=T.hc(t)).lng,t.lat)},vc:function(t,e,n,i,r){if(t)return t=this.ri(t,r),e=this.$b(e),new R(Math.round((t.lng-n.lng)/e+i.width/2),Math.round((n.lat-t.lat)/e+i.height/2))},gZ:function(t,e,n,i){if(t)return e=this.$b(e),new R(Math.round((t.lng-n.lng)/e+i.width/2),Math.round((n.lat-t.lat)/e+i.height/2))},bc:function(t,e,n,i,r){if(t)return e=this.$b(e),this.xh(new L(n.lng+e*(t.x-i.width/2),n.lat-e*(t.y-i.height/2)),r)},$b:function(t){return Math.pow(2,18-t)},TN:ca("Ma")}),lb.prototype=new T,A.extend(lb.prototype,{ri:function(t,e){return this.GQ(e,T.Ya(t))},xh:function(t,e){return T.hc(this.HQ(e,t))},lngLatToPointFor3D:function(t,e){var n=this,i=T.Ya(t);Wa.load("coordtrans",function(){var t=new R((t=Uc.MD(n.lj||"bj",i)).x,t.y);e&&e(t)},p)},pointToLngLatFor3D:function(t,e){var n=this,i=new Q(t.x,t.y);Wa.load("coordtrans",function(){var t=new Q((t=Uc.KD(n.lj||"bj",i)).lng,t.lat);t=T.hc(t);e&&e(t)},p)},GQ:function(t,e){if(Wa.qb("coordtrans").Se!=Wa.Mj.pq)return Wa.load("coordtrans",u()),new Q(0,0);var n=Uc.MD(t||"bj",e);return new Q(n.x,n.y)},HQ:function(t,e){if(Wa.qb("coordtrans").Se!=Wa.Mj.pq)return Wa.load("coordtrans",u()),new Q(0,0);var n=Uc.KD(t||"bj",e);return new Q(n.lng,n.lat)},$b:function(t){return Math.pow(2,20-t)},TN:ca("Ma")}),A.lang.xa(Wc,A.lang.Ja,"Overlay"),Wc.Kk=function(t){return(t*=1)?-1e5*t<<1:0},A.extend(Wc.prototype,{Me:function(t){!this.ca&&bb(this.initialize)&&(this.ca=this.initialize(t))&&(this.ca.style.WebkitUserSelect="none"),this.draw()},initialize:function(){ba("initialize方法未实现")},draw:function(){ba("draw方法未实现")},remove:function(){this.ca&&this.ca.parentNode&&this.ca.parentNode.removeChild(this.ca),this.ca=q,this.dispatchEvent(new P("onremove"))},aa:function(){this.ca&&A.U.aa(this.ca)},show:function(){this.ca&&A.U.show(this.ca)},Uc:function(){return this.ca&&"none"!=this.ca.style.display&&"hidden"!=this.ca.style.visibility?p:t}}),D.df(function(t){function e(t,e){var n=H("div"),i=n.style;return i.position="absolute",i.top=i.left=i.width=i.height="0",i.zIndex=e,t.appendChild(n),n}var n=t.ba;n.Wc=t.Wc=e(t.platform,200),t.ce.oD=e(n.Wc,800),t.ce.DE=e(n.Wc,700),t.ce.bL=e(n.Wc,600),t.ce.vE=e(n.Wc,500),t.ce.NM=e(n.Wc,400),t.ce.OM=e(n.Wc,300),t.ce.UO=e(n.Wc,201),t.ce.Gt=e(n.Wc,200)}),A.lang.xa(kb,Wc,"OverlayInternal"),A.extend(kb.prototype,{initialize:function(t){return this.map=t,A.lang.Ja.call(this,this.da),q},sx:x("map"),draw:u(),Oj:u(),remove:function(){this.map=q,A.lang.Yw(this.da),Wc.prototype.remove.call(this)},aa:function(){this.Wa!==t&&(this.Wa=t)},show:function(){this.Wa!==p&&(this.Wa=p)},Uc:function(){return this.ca?!!this.Wa:t},Ta:x("ca"),SN:function(t){var e;t=t||{};for(e in t)this.K[e]=t[e]},cq:ca("zIndex"),qj:function(){this.K.qj=p},jW:function(){this.K.qj=t},bm:ca("og"),Pp:function(){this.og=q}}),D.df(function(e){var o=new Xc;(o.map=e).ta=o.ta,e.Je=o.Je,e.addEventListener("load",function(t){o.draw(t)}),e.addEventListener("moveend",function(t){o.draw(t)}),A.ga.oa&&A.ga.oa<8||"BackCompat"===document.compatMode?e.addEventListener("zoomend",function(t){setTimeout(function(){o.draw(t)},20)}):e.addEventListener("zoomend",function(t){o.draw(t)}),e.addEventListener("maptypechange",function(t){o.draw(t)}),e.addEventListener("addoverlay",function(e){if((e=e.target)instanceof kb)o.ta[e.da]||(o.ta[e.da]=e);else{for(var n=t,i=0,r=o.Je.length;i<r;i++)if(o.Je[i]===e){n=p;break}n||o.Je.push(e)}}),e.addEventListener("removeoverlay",function(t){if((t=t.target)instanceof kb)delete o.ta[t.da];else for(var e=0,n=o.Je.length;e<n;e++)if(o.Je[e]===t){o.Je.splice(e,1);break}}),e.addEventListener("clearoverlays",function(){for(var e in this.Mc(),o.ta)o.ta[e].K.qj&&(o.ta[e].remove(),delete o.ta[e]);e=0;for(var n=o.Je.length;e<n;e++)o.Je[e].enableMassClear!==t&&(o.Je[e].remove(),o.Je[e]=q,o.Je.splice(e,1),e--,n--)}),e.addEventListener("infowindowopen",function(){var t=this.Fb;t&&(A.U.aa(t.Cc),A.U.aa(t.cc))}),e.addEventListener("movestart",function(){this.qh()&&this.qh().ZI()}),e.addEventListener("moveend",function(){this.qh()&&this.qh().NI()})}),Xc.prototype.draw=function(t){if(D.tq){var e=D.tq.Xs(this.map);"canvas"===e.Nb&&e.canvas&&e.BQ(e.canvas.getContext("2d"))}for(var n in this.ta)this.ta[n].draw(t);A.oc.Pb(this.Je,function(t){t.draw()}),this.map.ba.tb&&this.map.ba.tb.va(),D.tq&&e.qF()},A.lang.xa(Zc,kb,"Graph"),Zc.nx=function(t){var e=[];return t&&(db(t)&&A.oc.Pb(t.split(";"),function(t){t=t.split(","),e.push(new Q(t[0],t[1]))}),"[object Array]"==Object.prototype.toString.apply(t)&&0<t.length&&(e=t)),e},Zc.OE=[.09,.005,1e-4,1e-5],A.extend(Zc.prototype,{initialize:function(t){return this.map=t,q},draw:u(),Nr:function(t){this.kf.length=0,this.ja=Zc.nx(t).slice(0),this.Hh()},Sd:function(t){this.Nr(t)},Hh:function(){if(this.ja){var e=this;e.Tu=new jb,A.oc.Pb(this.ja,function(t){e.Tu.extend(t)})}},$e:x("ja"),jn:function(t,e){e&&this.ja[t]&&(this.kf.length=0,this.ja[t]=new Q(e.lng,e.lat),this.Hh())},setStrokeColor:function(t){this.K.strokeColor=t},WX:function(){return this.K.strokeColor},bq:function(t){0<t&&(this.K.tc=t)},FL:function(){return this.K.tc},$p:function(t){t==l||1<t||t<0||(this.K.zd=t)},XX:function(){return this.K.zd},$t:function(t){1<t||t<0||(this.K.zg=t)},rX:function(){return this.K.zg},aq:function(t){"solid"!=t&&"dashed"!=t||(this.K.strokeStyle=t)},EL:function(){return this.K.strokeStyle},setFillColor:function(t){this.K.fillColor=t||""},qX:function(){return this.K.fillColor},le:x("Tu"),remove:function(){this.map&&this.map.removeEventListener("onmousemove",this.vv),kb.prototype.remove.call(this),this.kf.length=0},pf:function(){if(!(this.ja.length<2)){this.K.pf=p;var t=this;Wa.load("poly",function(){t.dm()},p)}},iW:function(){this.K.pf=t;var e=this;Wa.load("poly",function(){e.kj()},p)},nX:function(){return this.K.pf},uX:function(){for(var t=[],e=0;e<this.ja.length-1;e++){var n=this.kV(this.ja[e],this.ja[e+1]);t=t.concat(n)}return t.concat(this.ja[this.ja.length-1])},kV:function(t,e){if(t.Ub(e))return[t];var n=T.Md(U(t.lng),U(t.lat),U(e.lng),U(e.lat));if((n=T.Ek(t,e))<25e4)return[t];var i=[],r=(n=Math.round(n/15e4),this.cK(t,e));i.push(t);for(var o=0;o<n;o++){var a=this.dK(t,e,o/n,r);i.push(a)}return i.push(e),i},dK:function(t,e,n,i){var r=U(t.lat),o=U(e.lat),a=(t=U(t.lng),U(e.lng));e=Math.sin((1-n)*i)/Math.sin(i),n=Math.sin(n*i)/Math.sin(i),i=e*Math.cos(r)*Math.cos(t)+n*Math.cos(o)*Math.cos(a),t=e*Math.cos(r)*Math.sin(t)+n*Math.cos(o)*Math.sin(a);return new Q(Math.atan2(t,i)/Math.PI*180,Math.atan2(e*Math.sin(r)+n*Math.sin(o),Math.sqrt(Math.pow(i,2)+Math.pow(t,2)))/Math.PI*180)},cK:function(t,e){var n=U(t.lat),i=U(e.lat);return Math.acos(Math.sin(n)*Math.sin(i)+Math.cos(n)*Math.cos(i)*Math.cos(Math.abs(U(e.lng)-U(t.lng))))}}),A.lang.xa($c,kb,"Division"),A.extend($c.prototype,{Oj:function(){var t=this.K,e=this.content,n=['<div class="BMap_Division" style="position:absolute;'];n.push("width:"+t.width+"px;display:block;"),n.push("overflow:hidden;"),"none"!=t.borderColor&&n.push("border:"+t.Vx+"px "+t.YY+" "+t.AM+";"),n.push("opacity:"+t.opacity+"; filter:(opacity="+100*t.opacity+")"),n.push("background:"+t.background+";"),n.push('z-index:60;">'),n.push(e),n.push("</div>"),this.ca=Fb(this.map.Wf().DE,n.join(""))},initialize:function(t){return this.map=t,this.Oj(),this.ca&&A.V(this.ca,J()?"touchstart":"mousedown",function(t){na(t)}),this.ca},draw:function(){var t=this.map.cf(this.K.point);this.K.Ga=new N(-Math.round(this.K.width/2)-Math.round(this.K.Vx),-Math.round(this.K.height/2)-Math.round(this.K.Vx)),this.ca.style.left=t.x+this.K.Ga.width+"px",this.ca.style.top=t.y+this.K.Ga.height+"px"},ma:function(){return this.K.point},V1:function(){return this.map.no(this.ma())},va:function(t){this.K.point=t,this.draw()},w_:function(t,e){this.K.width=Math.round(t),this.K.height=Math.round(e),this.ca&&(this.ca.style.width=this.K.width+"px",this.ca.style.height=this.K.height+"px",this.draw())}}),A.extend(ad.prototype,{UN:function(t){t&&(this.imageUrl=t)},N_:function(t){t&&(this.printImageUrl=t)},He:function(t){t&&(this.size=new N(t.width,t.height))},wc:function(t){t&&(this.anchor=new N(t.width,t.height))},au:function(t){t&&(this.imageOffset=new N(t.width,t.height))},B_:function(t){t&&(this.infoWindowAnchor=new N(t.width,t.height))},y_:function(t){t&&(this.imageSize=new N(t.width,t.height))},toString:ea("Icon")}),A.extend(bd.prototype,{setPath:ca("iB"),setAnchor:function(t){this.Mi=this.style.anchor=t},setRotation:function(t){this.style.rotation=t},setScale:function(t){this.style.scale=t},setStrokeWeight:function(t){this.style.tc=t},setStrokeColor:function(t){t=A.ks.rC(t,this.style.zd),this.style.strokeColor=t},setStrokeOpacity:function(t){this.style.zd=t},setFillOpacity:function(t){this.style.zg=t},setFillColor:function(t){this.style.fillColor=t}}),A.lang.xa(dd,A.lang.Ja,"InfoWindow"),A.extend(dd.prototype,{setWidth:function(t){!t&&0!=t||isNaN(t)||t<0||(0!=t&&(t<220&&(t=220),730<t&&(t=730)),this.K.width=t)},setHeight:function(t){!t&&0!=t||isNaN(t)||t<0||(0!=t&&(t<60&&(t=60),650<t&&(t=650)),this.K.height=t)},YN:function(t){!t&&0!=t||isNaN(t)||t<0||(0!=t&&(t<220&&(t=220),730<t&&(t=730)),this.K.maxWidth=t)},Hc:function(t){this.K.title=t},getTitle:function(){return this.K.title},Pc:ca("content"),Dk:x("content"),cu:function(t){this.K.FE=t+""},re:u(),Ms:function(){this.K.Ms=p},disableAutoPan:function(){this.K.Ms=t},enableCloseOnClick:function(){this.K.YC=p},disableCloseOnClick:function(){this.K.YC=t},oh:function(){this.K.oh=p},$w:function(){this.K.oh=t},show:function(){this.Wa=p},aa:function(){this.Wa=t},close:function(){this.aa()},Zx:function(){this.me=p},restore:function(){this.me=t},Uc:function(){return this.eb()},eb:ea(t),ma:function(){if(this.ub&&this.ub.ma)return this.ub.ma()},sj:function(){return this.K.Ga}}),Oa.prototype.Vc=function(e,n){if(e instanceof dd&&(n instanceof Q||n instanceof L)){var i=this.ba;i.Om?i.Om.va(n):(i.Om=new W(n,{icon:new ad(I.ua+"blank.gif",{width:1,height:1}),offset:new N(0,0),clickable:t}),i.Om.BR=1),this.Ra(i.Om),i.Om.Vc(e)}},Oa.prototype.Mc=function(){var t=this.ba.tb||this.ba.yl;t&&t.ub&&t.ub.Mc()},kb.prototype.Vc=function(t){this.map&&(this.map.Mc(),t.Wa=p,(this.map.ba.yl=t).ub=this,A.lang.Ja.call(t,t.da))},kb.prototype.Mc=function(){this.map&&this.map.ba.yl&&(this.map.ba.yl.Wa=t,A.lang.Yw(this.map.ba.yl.da),this.map.ba.yl=q)},A.lang.xa(ed,kb,"Label"),A.extend(ed.prototype,{ma:function(){return this.ho?this.ho.ma():this.map?eb(this.point,this.map.M.Ma):this.point},bk:function(){return this.ho?this.ho.bk():this.point},va:function(t){(t instanceof Q||t instanceof L)&&!this.tx()&&(this.point=this.K.position=new Q(t.lng,t.lat))},Pc:ca("content"),pF:function(t){0<=t&&t<=1&&(this.K.opacity=t)},Rd:function(t){t instanceof N&&(this.K.Ga=new N(t.width,t.height))},sj:function(){return this.K.Ga},Td:function(t){t=t||{},this.K.hq=A.extend(this.K.hq,t)},Ci:function(t){return this.Td(t)},Hc:function(t){this.K.title=t||""},getTitle:function(){return this.K.title},XN:function(t){this.point=(this.ho=t)?this.K.position=t.bk():this.K.position=q},tx:function(){return this.ho||q},Dk:x("content")}),A.lang.xa(fd,kb,"GroundOverlay"),A.extend(fd.prototype,{setBounds:function(t){this.K.jb=t},getBounds:function(){return this.K.jb},setOpacity:function(t){this.K.opacity=t},getOpacity:function(){return this.K.opacity},setImageURL:function(t){this.K.yp=t},getImageURL:function(){return this.K.yp},setDisplayOnMinLevel:function(t){this.K.Ds=t},getDisplayOnMinLevel:function(){return this.K.Ds},setDisplayOnMaxLevel:function(t){this.K.Cs=t},getDisplayOnMaxLevel:function(){return this.K.Cs}});var gd=3,hd=4;A.lang.xa(jd,kb,"PointCollection"),A.extend(jd.prototype,{initialize:function(t){this.fB&&this.fB.push({method:"initialize",arguments:arguments})},setPoints:function(t){this.ue&&this.ue.push({method:"setPoints",arguments:arguments})},setStyles:function(t){this.ue&&this.ue.push({method:"setStyles",arguments:arguments})},clear:function(){this.ue&&this.ue.push({method:"clear",arguments:arguments})},remove:function(){this.ue&&this.ue.push({method:"remove",arguments:arguments})}});var kd=new ad(I.ua+"marker_red_sprite.png",new N(19,25),{anchor:new N(10,25),infoWindowAnchor:new N(10,0)}),ld=new ad(I.ua+"marker_red_sprite.png",new N(20,11),{anchor:new N(6,11),imageOffset:new N(-19,-13)});W.Ou=Wc.Kk(-90)+1e6,W.pG=W.Ou+1e6,A.lang.xa(W,kb,"Marker"),A.extend(W.prototype,{Wb:function(t){(t instanceof ad||t instanceof bd)&&(this.K.Be=t)},lp:function(){return this.K.Be},Ey:function(t){t instanceof ad&&(this.K.Yk=t)},getShadow:function(){return this.K.Yk},Fj:function(t){this.K.label=t||q},Ys:function(){return this.K.label},jc:function(){this.K.jc=p},Bs:function(){this.K.jc=t},bk:x("point"),ma:function(){return this.point instanceof Q||this.point instanceof L?this.map?eb(this.point,this.map.M.Ma):new Q(this.point.lng,this.point.lat):this.point},va:function(t){(t instanceof Q||t instanceof L)&&(this.point=this.map?$a(t,this.map.M.Ma):new L(t.lng,t.lat))},Di:function(t,e){this.K.rE=!!t,t&&(this.NG=e||0)},Hc:function(t){this.K.title=t+""},getTitle:function(){return this.K.title},Rd:function(t){t instanceof N&&(this.K.Ga=t)},sj:function(){return this.K.Ga},dn:ca("Eq"),Zp:function(t){this.K.rotation=t},CL:function(){return this.K.rotation}}),md.prototype=new Wc,md.prototype.initialize=function(t){this.P=t;var e=this.canvas=document.createElement("canvas"),n=this.canvas.getContext(this.HV);e.style.cssText="position:absolute;left:0;top:0;z-index:"+this.zIndex+";",nd(this),od(n),t.getPanes()[this.AZ].appendChild(e);var i=this;return t.addEventListener("resize",function(){nd(i),od(n),i.ob()}),this.canvas},md.prototype.draw=function(){var t=this,e=arguments;clearTimeout(t.o0),t.o0=setTimeout(function(){t.ob.apply(t,e)},15)},fa=md.prototype,fa.ob=function(){var t=this.P;this.canvas.style.left=-t.offsetX+"px",this.canvas.style.top=-t.offsetY+"px",this.dispatchEvent("draw"),this.options.update&&this.options.update.apply(this,arguments)},fa.Ta=x("canvas"),fa.show=function(){this.canvas||this.P.Ra(this),this.canvas.style.display="block"},fa.aa=function(){this.canvas.style.display="none"},fa.cq=function(t){this.canvas.style.zIndex=t},fa.Kk=x("zIndex"),A.lang.xa(pd,Zc,"Polygon"),A.extend(pd.prototype,{Sd:function(t,e){this.Ao=Zc.nx(t).slice(0);var n=Zc.nx(t).slice(0);1<n.length&&n.push(new Q(n[0].lng,n[0].lat)),Zc.prototype.Sd.call(this,n,e)},jn:function(t,e){this.Ao[t]&&(this.Ao[t]=new Q(e.lng,e.lat),this.ja[t]=new Q(e.lng,e.lat),0!=t||this.ja[0].Ub(this.ja[this.ja.length-1])||(this.ja[this.ja.length-1]=new Q(e.lng,e.lat)),this.Hh())},$e:function(){var t=this.Ao;return 0==t.length&&(t=this.ja),t}}),A.lang.xa(qd,Zc,"Polyline"),rd.OE=[.01,1e-4,1e-5,4e-6],A.lang.xa(rd,pd,"Circle"),A.extend(rd.prototype,{initialize:function(t){return this.map=t,this.ja=this.pv(this.point,this.Fa),this.Hh(),q},Qb:function(){return this.map?eb(this.point,this.map.M.Ma):this.point},mv:x("point"),zf:function(t){t&&(this.point=t)},AL:x("Fa"),Af:function(t){this.Fa=Math.abs(t)},pv:function(t,e){if(!t||!e||!this.map)return[];for(var n=[],i=e/6378800,r=Math.PI/180*t.lat,o=Math.PI/180*t.lng,a=0;a<360;a+=9){var s=Math.PI/180*a,l=Math.asin(Math.sin(r)*Math.cos(i)+Math.cos(r)*Math.sin(i)*Math.cos(s));s=new Q(((o-Math.atan2(Math.sin(s)*Math.sin(i)*Math.cos(r),Math.cos(i)-Math.sin(r)*Math.sin(l))+Math.PI)%(2*Math.PI)-Math.PI)*(180/Math.PI),l*(180/Math.PI));n.push(s)}return i=n[0],n.push(new Q(i.lng,i.lat)),n}});var sd={};D.df(function(t){var e=new td(t);e.za(),t.ef=e}),A.extend(td.prototype,{za:function(){var e=this,t=e.map;t.addEventListener("loadcode",function(){e.Fp()}),t.addEventListener("addtilelayer",function(t){e.Ue(t)}),t.addEventListener("removetilelayer",function(t){e.cg(t)}),t.addEventListener("setmaptype",function(t){e.Og(t)}),t.addEventListener("zoomstartcode",function(t){e.Rc(t)}),t.addEventListener("setcustomstyles",function(t){e.bu(t.target),e.ag(p)}),t.addEventListener("initindoorlayer",function(t){e.gE(t)})},Fp:function(){var e=this;if(A.ga.oa)try{document.execCommand("BackgroundImageCache",t,p)}catch(t){}this.loaded||e.Lx(),e.ag(),this.loaded||(this.loaded=p,Wa.load("tile",function(){e.WP()}))},gE:function(t){this.Bu=new ud(this),this.Bu.Ue(new vd(this.map,this.Bu,t.af))},Lx:function(){for(var t=this.map.ya().jf,e=0;e<t.length;e++){var n=new wd;A.extend(n,t[e]),this.Cj.push(n),n.za(this.map,this.fo)}this.bu()},Oq:function(t){var e=H("div");return e.style.position="absolute",e.style.overflow="visible",e.style.left=e.style.top="0",e.style.zIndex=t,e},Ff:function(){this.Ok--;var e=this;this.kE&&(this.map.dispatchEvent(new P("onfirsttileloaded")),this.kE=t),0==this.Ok&&(this.Ri&&(clearTimeout(this.Ri),this.Ri=q),this.Ri=setTimeout(function(){0==e.Ok&&(e.map.dispatchEvent(new P("ontilesloaded")),e.kE=p),e.Ri=q},80))},TD:function(t,e){return"TILE-"+e.da+"-"+t[0]+"-"+t[1]+"-"+t[2]},Hx:function(t){var e=t.Hb;e&&Eb(e)&&e.parentNode.removeChild(e),delete this.Ig[t.name],t.loaded||(xd(t),t.Hb=q,t.Pm=q)},KL:function(e,n,i){var r,o=this.map,a=o.ya(),s=o.Za,l=o.Vb,u=a.$b(s),h=(m=this.kX())[0],c=m[1],f=m[2],d=m[3],y=m[4],m=(i=void 0!==i?i:0,a=a.Nd(),o.da.replace(/^TANGRAM_/,""));for(this.Ie?this.Ie.length=0:this.Ie=[];h<f;h++)for(var g=c;g<d;g++){var v=h,x=g;this.Ie.push([v,x]),v=m+"_"+n+"_"+v+"_"+x+"_"+s,this.XV[v]=v}for(this.Ie.sort((r=[y[0]-1,y[1]-1],function(t,e){return.4*Math.abs(t[0]-r[0])+.6*Math.abs(t[1]-r[1])-(.4*Math.abs(e[0]-r[0])+.6*Math.abs(e[1]-r[1]))})),l=[Math.round(-l.lng/u),Math.round(l.lat/u)],h=-o.offsetY+o.height/2,e.style.left=-o.offsetX+o.width/2+"px",e.style.top=h+"px",this.Ve?this.Ve.length=0:this.Ve=[],h=0,o=e.childNodes.length;h<o;h++)(g=e.childNodes[h]).mr=t,this.Ve.push(g);if(h=this.Tm)for(var _ in h)delete h[_];else this.Tm={};for(this.We?this.We.length=0:this.We=[],h=0,o=this.Ie.length;h<o;h++)for(_=this.Ie[h][0],u=this.Ie[h][1],g=0,c=this.Ve.length;g<c;g++)if((f=this.Ve[g]).id==m+"_"+n+"_"+_+"_"+u+"_"+s){f.mr=p,this.Tm[f.id]=f;break}for(h=0,o=this.Ve.length;h<o;h++)(f=this.Ve[h]).mr||this.We.push(f);for(this.IF=[],g=(a+i)*this.map.M.devicePixelRatio,h=0,o=this.Ie.length;h<o;h++)_=this.Ie[h][0],u=this.Ie[h][1],d=_*a+l[0]-i/2,y=(-1-u)*a+l[1]-i/2,v=m+"_"+n+"_"+_+"_"+u+"_"+s,c=this.Tm[v],f=q,c?((f=c.style).left=d+"px",f.top=y+"px",c.Tn||this.IF.push([_,u,c])):(0<this.We.length?((c=this.We.shift()).getContext("2d").clearRect(-i/2,-i/2,g,g),f=c.style):((f=(c=document.createElement("canvas")).style).position="absolute",f.width=a+i+"px",f.height=a+i+"px",this.RY()&&(f.WebkitTransform="scale(1.001)"),c.setAttribute("width",g),c.setAttribute("height",g),e.appendChild(c)),c.id=v,f.left=d+"px",f.top=y+"px",-1<v.indexOf("bg")&&(d="#F3F1EC",this.map.M.SU&&(d=this.map.M.SU),f.background=d||""),this.IF.push([_,u,c])),c.style.visibility="";for(h=0,o=this.We.length;h<o;h++)this.We[h].style.visibility="hidden";return this.IF},RY:function(){return/M040/i.test(navigator.userAgent)},kX:function(){var t=this.map,e=(o=t.ya()).PL(t.Za),n=t.Vb,i=Math.ceil(n.lng/e),r=Math.ceil(n.lat/e),o=o.Nd();return[(e=[i,r,(n.lng-i*e)/e*o,(n.lat-r*e)/e*o])[0]-Math.ceil((t.width/2-e[2])/o),e[1]-Math.ceil((t.height/2-e[3])/o),e[0]+Math.ceil((t.width/2+e[2])/o),e[1]+Math.ceil((t.height/2+e[3])/o),e]},U_:function(e,n,i,r){var o=this;o.J2=n;var a=this.map.ya(),s=o.TD(e,i),l=a.Nd(),u=(n=[e[0]*l+n[0],(-1-e[1])*l+n[1]],this.Ig[s]);if(this.map.ya()!==cb&&this.map.ya()!==Ua){var h=this.Hw(e[0],e[2]).offsetX;n[0]+=h,n.c2=h}u&&u.Hb?(Cb(u.Hb,n),r&&(r=new R(e[0],e[1]),a=this.map.M.De?this.map.M.De.style:"normal",r=i.getTilesUrl(r,e[2],a),u.loaded=t,yd(u,r)),u.loaded?this.Ff():zd(u,function(){o.Ff()})):(u=this.jj[s])&&u.Hb?(i.Kb.insertBefore(u.Hb,i.Kb.lastChild),Cb((this.Ig[s]=u).Hb,n),r&&(r=new R(e[0],e[1]),a=this.map.M.De?this.map.M.De.style:"normal",r=i.getTilesUrl(r,e[2],a),u.loaded=t,yd(u,r)),u.loaded?this.Ff():zd(u,function(){o.Ff()})):(u=l*Math.pow(2,a.Ze()-e[2]),new L(e[0]*u,e[1]*u),r=new R(e[0],e[1]),a=this.map.M.De?this.map.M.De.style:"normal",zd(u=new Ad(this,r=i.getTilesUrl(r,e[2],a),n,e,i),function(){o.Ff()}),u.eo(),this.Ig[s]=u)},Ff:function(){this.Ok--;var i=this;0==this.Ok&&(this.Ri&&(clearTimeout(this.Ri),this.Ri=q),this.Ri=setTimeout(function(){if(0==i.Ok&&(i.map.dispatchEvent(new P("ontilesloaded")),xa)){if(ua&&va&&wa){var e=gb(),n=i.map.zb();setTimeout(function(){Ta(5030,{load_script_time:va-ua,load_tiles_time:e-wa,map_width:n.width,map_height:n.height,map_size:n.width*n.height})},1e4),D.Cq("cus.fire","time",{z_imgfirstloaded:e-wa})}xa=t}i.Ri=q},80))},TD:function(t,e){return this.map.ya()===Sa?"TILE-"+e.da+"-"+this.map.Mw+"-"+t[0]+"-"+t[1]+"-"+t[2]:"TILE-"+e.da+"-"+t[0]+"-"+t[1]+"-"+t[2]},Hx:function(t){var e=t.Hb;e&&(Bd(e),Eb(e)&&e.parentNode.removeChild(e)),delete this.Ig[t.name],t.loaded||(Bd(e),xd(t),t.Hb=q,t.Pm=q)},Hw:function(t,e){for(var n=0,i=6*Math.pow(2,e-3),r=i/2-1,o=-i/2;r<t;)t-=i,n-=this.LA;for(;t<o;)t+=i,n+=this.LA;return{offsetX:n=Math.round(n/Math.pow(2,18-e)),nm:t}},mV:function(t){for(var e=t.lng;e>this.OA;)e-=this.iI;for(;e<this.PA;)e+=this.iI;return t.lng=e,t},nV:function(t,e){for(var n=256*Math.pow(2,18-e),i=Math.floor(this.OA/n),r=Math.floor(this.PA/n),o=(n=Math.floor(this.LA/n),[]),a=0;a<t.length;a++){var s=(l=t[a])[0],l=l[1];if(i<=s){var u="id_"+(s=s+n)+"_"+l+"_"+e;t[u]||(t[u]=p,o.push([s,l]))}else s<=r&&(t[u="id_"+(s-=n)+"_"+l+"_"+e]||(t[u]=p,o.push([s,l])))}for(a=0;a<o.length;a++)t.push(o[a]);return t},ag:function(t){if(!this.map.M.yg){var e=this;if(e.map.ya()==Sa)Wa.load("coordtrans",function(){e.map.Ob||(e.map.Ob=Sa.Ck(e.map.lh),e.map.Mw=Sa.mL(e.map.Ob)),e.kI()},p);else{if(t&&t)for(var n in this.jj)delete this.jj[n];e.kI(t)}}},kI:function(e){var n=this.Cj.concat(this.dg),i=n.length,r=this.map,o=r.ya(),a=r.Vb,s=r.width;s=r.ya().$b(r.Za)*s,s=this.HY(a.lng-s/2,a.lng+s/2);this.map.ya()!==cb&&this.map.ya()!==Ua&&(a=this.mV(a));for(var l=0;l<i;l++){var u=n[l];if(u.kc&&r.Za<u.kc)break;if(u.Gw){var h=this.Kb=u.Kb;if(e)if((y=h)&&y.childNodes)for(var c=y.childNodes.length,f=c-1;0<=f;f--)c=y.childNodes[f],y.removeChild(c),c=q;if(this.map.Vd()){this.tg.style.display="block",h.style.display="none",this.map.dispatchEvent(new P("vectorchanged"),{isvector:p});continue}h.style.display="block",this.tg.style.display="none",this.map.dispatchEvent(new P("vectorchanged"),{isvector:t})}if(!u.b2&&!(u.Rx&&!this.map.Vd()||u.nM&&this.map.Vd())){h=(o=(r=this.map).ya()).uj(),c=r.Za,a=r.Vb,o==Sa&&a.Ub(new L(0,0))&&(a=r.Vb=h.ri(r.he,r.Ob));var d=o.$b(c),y=(h=o.PL(c),Math.ceil(a.lng/h)),m=Math.ceil(a.lat/h),g=o.Nd(),v=(h=[y,m,(a.lng-y*h)/h*g,(a.lat-m*h)/h*g],m=s?r.width/2*1.5:r.width/2,f=h[0]-Math.ceil((m-h[2])/g),y=h[1]-Math.ceil((r.height/2-h[3])/g),m=h[0]+Math.ceil((m+h[2])/g),0);o===Sa&&15==r.la()&&(v=1),o=h[1]+Math.ceil((r.height/2+h[3])/g)+v,this.TJ=new L(a.lng,a.lat);var x,_=this.Ig;g=-this.TJ.lng/d,v=this.TJ.lat/d,a=[Math.ceil(g),Math.ceil(v)],d=r.la();for(x in _){var w=_[x],b=w.info;(b[2]!=d||b[2]==d&&(f>b[0]||m<=b[0]||y>b[1]||o<=b[1]))&&this.Hx(w)}for(_=-r.offsetX+r.width/2,w=-r.offsetY+r.height/2,u.Kb&&(u.Kb.style.left=Math.ceil(g+_)-a[0]+"px",u.Kb.style.top=Math.ceil(v+w)-a[1]+"px",u.Kb.style.WebkitTransform="translate3d(0,0,0)"),g=[],r.KB=[];f<m;f++)for(v=y;v<o;v++)g.push([f,v]),r.KB.push({x:f,y:v});for(this.map.ya()!==cb&&this.map.ya()!==Ua&&(g=this.nV(g,c)),g.sort(function(n){return function(t,e){return.4*Math.abs(t[0]-n[0])+.6*Math.abs(t[1]-n[1])-(.4*Math.abs(e[0]-n[0])+.6*Math.abs(e[1]-n[1]))}}([h[0]-1,h[1]-1])),c=g.length,this.Ok+=c,f=0;f<c;f++)this.U_([g[f][0],g[f][1],d],a,u,e)}}},HY:function(t,e){return t<this.PA||e>this.OA},Ue:function(t){var e=this,n=t.target;if(e.map.Vd(),n.vn&&this.map.Ue(n.vn),n.Rx){for(t=0;t<e.Qg.length;t++)if(e.Qg[t]==n)return;Wa.load("vector",function(){n.za(e.map,e.tg),e.Qg.push(n)},p)}else{for(t=0;t<e.dg.length;t++)if(e.dg[t]==n)return;n.za(this.map,this.Il),e.dg.push(n)}},cg:function(t){if(t=t.target,this.map.Vd(),t.vn&&this.map.cg(t.vn),t.Rx)for(var e=0,n=this.Qg.length;e<n;e++)t==this.Qg[e]&&this.Qg.splice(e,1);else for(e=0,n=this.dg.length;e<n;e++)t==this.dg[e]&&this.dg.splice(e,1);t.remove()},Og:function(){for(var t=this.Cj,e=0,n=t.length;e<n;e++)t[e].remove();delete this.Kb,this.Cj=[],this.jj=this.Ig={},this.Lx(),this.ag()},Rc:function(){var t=this;t.Bd&&A.U.aa(t.Bd),setTimeout(function(){t.ag(),t.map.dispatchEvent(new P("onzoomend"))},10)},y6:u(),bu:function(a){var t=this.map.ya();if(!this.map.Vd()&&(a?this.map.M.c0=a:a=this.map.M.c0,a))for(var e,s="2"==D.Au?[D.url.proto+D.url.domain.main_domain_cdn.other[0]+"/"]:[D.url.proto+D.url.domain.main_domain_cdn.baidu[0]+"/",D.url.proto+D.url.domain.main_domain_cdn.baidu[1]+"/",D.url.proto+D.url.domain.main_domain_cdn.baidu[2]+"/"],n=0;e=this.Cj[n];n++)if(e.P_==p){t.m.qc=18,e.getTilesUrl=function(t,e){var n=t.x,i=(n=this.map.ef.Hw(n,e).nm,t.y),r=Vb("normal"),o=1;return this.map.Ix()&&(o=2),r="customimage/tile?&x="+n+"&y="+i+"&z="+e+"&udt="+r+"&scale="+o+"&ak="+ra,r=a.styleStr?r+"&styles="+encodeURIComponent(a.styleStr):r+"&customid="+a.style,s[Math.abs(n+i)%s.length]+r};break}}}),Ad.prototype.eo=function(){this.Hb.src=0<A.ga.oa&&A.ga.oa<=6&&this.vJ?I.ua+"blank.gif":""!==this.src&&this.Hb.src==this.src?this.src+"&t = "+Date.now():this.src};var Cd=!A.ga.oa||8<A.ga.oa;wd.sS=0,A.lang.xa(wd,A.lang.Ja,"TileLayer"),A.extend(wd.prototype,{za:function(t,e){if(this.Gw&&(this.zIndex=-100),this.map=t,!this.Kb){var n=H("div"),i=n.style;i.position="absolute",i.overflow="visible",i.zIndex=this.zIndex,i.left=Math.ceil(-t.offsetX+t.width/2)+"px",i.top=Math.ceil(-t.offsetY+t.height/2)+"px",e.appendChild(n),this.Kb=n}},remove:function(){this.Kb&&this.Kb.parentNode&&(this.Kb.innerHTML="",this.Kb.parentNode.removeChild(this.Kb)),delete this.Kb},At:x("G0"),getTilesUrl:function(t,e){if(this.map.ya()!==cb&&this.map.ya()!==Ua)var n=this.map.ef.Hw(t.x,e).nm;var i="";return this.af.tileUrlTemplate&&(i=(i=(i=this.af.tileUrlTemplate.replace(/\{X\}/,n)).replace(/\{Y\}/,t.y)).replace(/\{Z\}/,e)),i},xm:x("JV"),ya:function(){return this.Ua||Pa}}),Dd.prototype=new wd,Dd.prototype.za=function(t,e){wd.prototype.za.call(this,t,e),this.P=t},Dd.prototype.At=ea(p),Dd.prototype.getTilesUrl=function(t,e){var n="";this.m.predictDate?n="HistoryService?day="+(this.m.predictDate.weekday-1)+"&hour="+this.m.predictDate.hour+"&t="+(new Date).getTime()+"&":(n="TrafficTileService?time="+(new Date).getTime()+"&",n+="label=web2D&v=016&");n=this.sU+n+"level="+e+"&x="+t.x+"&y="+t.y;var i=1;return this.P.Ix()&&(i=2),(n+"&scaler="+i).replace(/-(\d+)/gi,"M$1")};var Ed=[D.url.proto+D.url.domain.TILES_YUN_HOST[0]+"/georender/gss",D.url.proto+D.url.domain.TILES_YUN_HOST[1]+"/georender/gss",D.url.proto+D.url.domain.TILES_YUN_HOST[2]+"/georender/gss",D.url.proto+D.url.domain.TILES_YUN_HOST[3]+"/georender/gss"],Fd=D.url.proto+D.url.domain.main_domain_nocdn.baidu+"/style/poi/rangestyle",Gd=100;sb.prototype=new wd,sb.prototype.za=function(t,e){wd.prototype.za.call(this,t,e),this.P=t},sb.prototype.getTilesUrl=function(t,e){var n=t.x,i=t.y,r=this.fb;n=Ed[Math.abs(n+i)%Ed.length]+"/image?grids="+n+"_"+i+"_"+e+"&q="+r.Ut+"&tags="+r.rO+"&filter="+r.filter+"&sortby="+r.iO+"&ak="+this.fb.YB+"&age="+r.QJ+"&page_size="+r.vN+"&format="+r.n0;return r.SF||(n+="&timeStamp="+(r=(1e5*Math.random()).toFixed(0))),this.If?n+="&geotable_id="+this.If:this.Rn&&(n+="&databox_id="+this.Rn),n},sb.prototype.enableUseCache=function(){this.fb.SF=p},sb.prototype.disableUseCache=function(){this.fb.SF=t},sb.RT=/^point\(|\)$/gi,sb.ST=/\s+/,sb.UT=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;var Hd={},Jd=[0,0,0,8,7,7,6,6,5,5,4,3,3,3,2,2,1,1,0,0,0,0],Kd=[512,2048,4096,32768,65536,262144,1048576,4194304,8388608],Ld=[0,0,0,3,5,5,7,7,9,9,10,12,12,12,15,15,17,17,19,19,19,19],Md=[0,0,0,256,256,512,256,512,256,512,256,256,512,1024,256,512,512,1024,512,1024,2048,4096];Id.prototype={getName:x("nd"),Nd:function(t){return"na"===this.nd?Md[t]:this.m.Py},Ws:function(t){return"na"===this.nd?Ld[t]:t},uj:function(){return this.m.Fc},$b:function(t){return Math.pow(2,this.ZP-t)},LD:function(t){return"na"===this.nd?Kd[Jd[t]]:this.$b(t)*this.Nd(t)}};var Nd={drawPoly:function(t,e,n,i,r,o){var a=t[1];if(a){t=t[6];for(var s=0;s<a.length;s++){var l=a[s][0],u=r.wj(l,"polygon",n,o);if(u&&u.length)for(var h=a[s][1],c=0;c<h.length;c++){var p=h[c][1];r.Uc(p[0],n)&&(p["cache"+n]||(p["cache"+n]=r.Vm(p[1],n,i,t)),p=p["cache"+n],r.P.Fo(e.canvas.id,p,{type:"polygon",Xb:l,style:u}),this.AW(e,p,u,n))}}}},AW:function(t,e,n,i){if(!(n=n[0]).Xb||!(6<i&&(71013===n.Xb||71012===n.Xb||71011===n.Xb)||6===i&&(71011===n.Xb||71012===n.Xb)||5===i&&(71011===n.Xb||71013===n.Xb)||i<5&&(71012===n.Xb||71013===n.Xb))){t.fillStyle=n.hx,t.beginPath(),t.moveTo(e[0],e[1]);i=2;for(var r=e.length;i<r;i+=2)t.lineTo(e[i],e[i+1]);t.closePath(),n.borderWidth&&(t.strokeStyle=n.Lo,t.lineWidth=n.borderWidth/2,t.stroke()),t.fill()}},drawGaoqingRoadBorder:function(t,e,n,i,r){var o=t[1];if(o){t=t[6];for(var a=0;a<o.length;a++){var s=o[a][0],l=r.wj(s,"polygon",n);if(l&&l.length&&l[0].borderWidth)for(var u=o[a][1],h=0;h<u.length;h++){var c=u[h][1];r.Uc(c[0],n)&&(c["cache"+n]||(c["cache"+n]=r.Vm(c[1],n,i,t)),c=c["cache"+n],r.P.Fo(e.canvas.id,c,{type:"polygon",Xb:s,style:l}),this.DW(e,c,l))}}}},drawGaoqingRoadFill:function(t,e,n,i,r){var o=t[1];if(o){t=t[6];for(var a=0;a<o.length;a++){var s=o[a][0],l=r.wj(s,"polygon",n);if(l&&l.length)for(var u=o[a][1],h=0;h<u.length;h++){var c=u[h][1];r.Uc(c[0],n)&&(c["cache"+n]||(c["cache"+n]=r.Vm(c[1],n,i,t)),c=c["cache"+n],r.P.Fo(e.canvas.id,c,{type:"polygon",Xb:s,style:l}),this.EW(e,c,l))}}}},DW:function(t,e,n){n=n[0],t.beginPath(),t.moveTo(e[0],e[1]);for(var i=2,r=e.length;i<r;i+=2)t.lineTo(e[i],e[i+1]);t.closePath(),t.strokeStyle=n.Lo,t.lineWidth=n.borderWidth/2,t.stroke()},EW:function(t,e,n){t.fillStyle=n[0].hx,t.beginPath(),t.moveTo(e[0],e[1]);n=2;for(var i=e.length;n<i;n+=2)t.lineTo(e[n],e[n+1]);t.closePath(),t.fill()}},Od={drawArrow:function(t,e,n,i,r,o){e.lineWidth=1.5,e.lineCap="butt",e.lineJoin="miter",e.strokeStyle="rgba(153,153,153,1)";var a=t[7];if(a)for(t=a[1],i=o.Vm(a[0],n,i),a=0;a<t.length;a++)if(o.Uc(t[a],n)){var s=i[4*a],l=i[4*a+1],u=(s+(c=i[4*a+2]))/2,h=(l+(p=i[4*a+3]))/2,c=(s=u+(c=(s-c)/r)/2,u-c/2),p=(l=h+(p=(l-p)/r)/2,h-p/2);this.tW(e,s,l,c,p)}},tW:function(t,e,n,i,r){t.beginPath(),t.moveTo(e,n),t.lineTo(i,r),t.stroke(),e=(n=this.jV([e,n],[i,r]))[0],n=n[1],t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i,r),t.closePath(),t.stroke()},jV:function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=1.8*Math.sqrt(n*n+i*i),o=e[0]+n/r*4.8410665352790705;r=e[1]+i/r*4.8410665352790705,n=Math.atan2(i,n)+Math.PI;return[[o+4.8410665352790705*Math.cos(n-.3),r+4.8410665352790705*Math.sin(n-.3)],[o+4.8410665352790705*Math.cos(n+.3),r+4.8410665352790705*Math.sin(n+.3)]]}},Pd={drawHregion:function(t,e,n,i,r){var o=t[1];if(o){t=t[6];for(var a=0;a<o.length;a++){var s=o[a][0],l=r.wj(s,"polygon3d",n);if(l&&l.length)for(var u=o[a][1],h=0;h<u.length;h++){var c=u[h][2];if(r.Uc(c[0],n)){var p=c[2];c["cache"+n]||(c["cache"+n]=r.Vm(c[1],n,i,t)),c=c["cache"+n],r.P.Fo(e.canvas.id,c,{type:"polygon",Xb:s,style:l}),this.BW(e,c,p,l)}}}}},BW:function(t,e,n,i){if(!(n<(i=i[0]).filter)){t.fillStyle=i.UW,t.beginPath(),t.moveTo(e[0],e[1]);n=2;for(var r=e.length;n<r;n+=2)t.lineTo(e[n],e[n+1]);t.closePath(),i.borderWidth&&(t.strokeStyle=i.Lo,t.lineWidth=i.borderWidth/2,t.stroke()),t.fill()}}},Qd={parse:function(e,n,i,r,o){for(var a=r.P,s=a.la(),l=Math.pow(2,18-s),u=(d=a.Fc.ri(a.Qb())).lng,h=d.lat,c=(d=a.zb()).width,f=d.height,d=[],y=0;y<e.length;y++){var m=[],g=e[y].l0;m.x=g[0],m.y=g[1],m.J6=g[2];for(var v=(g[0]*i*l-u)/l+c/2,x=(h-(g[1]+1)*i*l)/l+f/2,_=0;_<e[y].length;_++)e[y][_].tM?this.rN(e[y][_].tM,g,r,n,i,v,x,s,l,c,f,m):e[y][_].tY?this.rN(e[y][_].tY,g,r,n,i,v,x,s,l,c,f,m,p,window.A4):this.GZ(e[y][_].WY,g,r,n,i,v,x,s,l,c,f,m,o);d.push(m)}if(/collision=0/.test(location.search))for(e=[],y=0;y<d.length;y++)for(_=0;_<d[y].length;_++)e.push(d[y][_]);else e=this.UZ(d,r.P.la());for(a.yV(),y=0;y<e.length;y++)if(!(i=e[y]).vt)if(_=[i.Zf,i.$f,i.Zf,i.vi,i.ui,i.vi,i.ui,i.$f,i.Zf,i.$f],i.style&&a.Fo("poi",_,{type:"polygon",Xb:i.style.Xb,style:i.style}),"fixed"===i.type){if(_=t,i.Be&&i.style&&4===i.direction&&(_=p),i.Be)if(_){var w=this;this.Ks(n,i,r,_,function(t){for(var e=0;e<t.Bf.length;e++)w.NK(n,t.Bf[e].ie,t.Bf[e].je,t.Bf[e].text,t.style,r)})}else this.Ks(n,i,r);if(i.style&&!_)for(_=0;_<i.Bf.length;_++)this.NK(n,i.Bf[_].ie,i.Bf[_].je,i.Bf[_].text,i.style,r)}else if("line"===i.type)for(_=0;_<i.ZO.length;_++)o=i.ZO[_],Qd.wW(n,o.ie,o.je,o.NU,o.XO,o.width,o.height,i.style,r);return d},rN:function(t,e,n,i,r,o,a,s,l,u,h,c,p,f){if(t=t[1])for(e=0;e<t.length;e++){var d=(m=t[e])[0],y=n.wj(d,"point",s,f),m=(d=n.wj(d,"pointText",s,f),m[1]),g=q,v=100,x=0,_=0;for(y&&y[0]&&(g=(y=y[0]).Be,v=y.zoom||100),d=d&&d[0]?d[0]:q,y=0;y<m.length;y++){var w=m[y][4];if(w&&n.Uc(w[2],s)){var b=Math.round(w[0]/100)/l+o,P=r-Math.round(w[1]/100)/l+a;if(p||!(b<-50||P<-50||u+50<b||h+50<P)){var S=w[7]||"",C={type:"fixed",uid:w[3]||"",name:S,uy:w[4],lt:q,Bf:[],gy:[b,P],style:d};if(g){var M=window.iconSetInfo_high[g]||window.iconSetInfo_high["MapRes/"+g];if(!M)48<=(T=g.charCodeAt(0))&&T<=57&&(M=window.iconSetInfo_high["_"+g]);M&&(x=(x=M[2])/2*v/100,_=(_=M[3])/2*v/100,C.lt={ie:b-x/2,je:P-_/2,width:x,height:_},C.Be=g)}if(d){"number"!=typeof(w=w[5])&&(w=0);var T,A=M=0,E=.2*(T=(d.fontSize||12)/2);i.font=Qd.mx(d,n);var I=(S=S.split("\\")).length;C.direction=w;for(var L=0;L<I;L++){var R=S[L],O=i.measureText(R).width;switch(w){case 3:M=b-O-x/2,A=(A=P-T/2*I-E*(I-1)/2)+T*L+E*L;break;case 1:M=b+x/2,A=(A=P-T/2*I-E*(I-1)/2)+T*L+E*L;break;case 2:M=b-O/2,A=(A=P-_/2-T*I-E*(I-1)-E)+T*L+E*L;break;case 0:M=b-O/2,A=(A=P+_/2+E/2)+T*L+E*L;break;case 4:M=b-O/2,A=(A=P-T/2*I-E*(I-1)/2)+T*L+E*L}C.Bf.push({ie:M,je:A,width:O,height:T,text:R})}}c.push(C)}}}}},GZ:function(t,e,n,i,r,o,a,s,u,h,c,p,f){if(e=t[7].length,(h=n.wj(t[0],"pointText",s))&&h.length){h=h[0],i.font=Qd.mx(h,n);c=h.fontSize/2;for(var d=t[1],y=t[2],m=y.split("").length,g=(S=t[4]).slice(0,2),v=2;v<S.length;v+=2)g[v]=g[v-2]+S[v],g[v+1]=g[v-1]+S[v+1];for(v=2;v<S.length;v+=2)0==v%(2*m)||1==v%(2*m)||(g[v]=g[v-2]+S[v]/f,g[v+1]=g[v-1]+S[v+1]/f);for(f=0;f<e;f++)if(n.Uc(t[7][f],s)){v=[];var x=l,_=l,w=l,b=l,P=y.split("");t[6][f]&&P.reverse();for(var S=2*f*m,C=(S=g.slice(S,S+2*m),0);C<m;C++){var M=t[5][m*f+C],T=S[2*C]/100/u+o,A=r-S[2*C+1]/100/u+a,E=P[C],I=i.measureText(E).width;if(x===l)w=(x=T-I/2)+I,b=(_=A-c/2)+c;else{var L=T-I/2,R=A-c/2;L<x&&(x=L),R<_&&(_=R),w<L+I&&(w=L+I),b<R+c&&(b=R+c)}v.push({XO:E,ie:T,je:A,NU:M,width:I,height:c})}p.push({type:"line",uy:d,style:h,ZO:v,Zf:x,$f:_,ui:w,vi:b})}}},Ks:function(t,e,n,i,r){var o=e.Be;if("lanche"!==o)if(Qd.Jx[o])this.KK(t,e,Qd.Jx[o],i,r);else if(n=n.tL(o)){var a=new Image;a.setAttribute("crossOrigin","anonymous");var s=this;a.onload=function(){Qd.Jx[o]=this,s.KK(t,e,this,i,r),a.onload=q},a.src=n}},KK:function(e,n,i,r,o){var a=n.lt,s=a.ie,l=a.je,u=q,h=q,c=p,f=n.style?n.style.Xb:q;if(n.style&&62203===f){for(var d=h=u=0;d<n.Bf.length;d++)u<n.Bf[d].width&&(u=n.Bf[d].width),h+=20;u=Math.ceil(u)+10}r&&519===f&&(c=t),u!==q&&h!==q?this.zW(e,n,i,8,u,h):r&&c?(u=Math.ceil(n.Bf[0].width)+6,this.sW(e,n,i,12,u,i.height/2)):e.drawImage(i,s,l,a.width,a.height),o&&o(n)},zW:function(t,e,n,i,r,o){var a=e.gy[0]-r/2;e=e.gy[1]-o/2;0<navigator.userAgent.indexOf("iPhone")&&(e+=1);var s=i/2;t.drawImage(n,0,0,i,i,a,e,s,s),t.drawImage(n,i,0,1,i,a+s,e,r-2*s,s),t.drawImage(n,n.width-i,0,i,i,a+r-s,e,s,s),t.drawImage(n,0,i,i,1,a,e+s,s,o-2*s),t.drawImage(n,i,i,1,1,a+s,e+s,r-2*s,o-2*s),t.drawImage(n,n.width-i,i,i,1,a+r-s,e+s,s,o-2*s),t.drawImage(n,0,n.height-i,i,i,a,e+o-s,s,s),t.drawImage(n,i,n.height-i,1,i,a+s,e+o-s,r-2*s,s),t.drawImage(n,n.width-i,n.height-i,i,i,a+r-s,e+o-s,s,s)},sW:function(t,e,n,i,r,o){var a=e.gy[0]-r/2;e=e.gy[1]-o/2,o=i/2;t.drawImage(n,0,0,i,n.height,a,e,o,n.height/2),t.drawImage(n,i,0,1,n.height,a+o,e,r-2*o,n.height/2),t.drawImage(n,n.width-i,0,i,n.height,a+r-o,e,o,n.height/2)},wW:function(t,e,n,i,r,o,a,s,l){t.font=Qd.mx(s,l),t.fillStyle=s.cL,o/=2,a/=2,t.save(),t.translate(e,n),t.rotate(-i/180*Math.PI),0<s.Bx&&(t.lineWidth=s.Bx,t.strokeStyle=s.UL,t.strokeText(r,-o,-a)),t.fillText(r,-o,-a),t.restore()},NK:function(t,e,n,i,r,o){t.font=Qd.mx(r,o),t.fillStyle=r.cL,0<r.Bx&&(t.lineWidth=r.Bx,t.strokeStyle=r.UL,t.strokeText(i,e,n)),t.fillText(i,e,n)},mx:function(t,e){var n=t.fontSize/2,i=10*t.fontWeight;return e.mE?i+" bold "+n+'px arial, "PingFang SC", sans-serif':i+" "+n+"px arial, sans-serif"},UZ:function(e,n){var i=[],r=0;5===n&&(r=1),e.sort(function(t,e){return t.x*t.y<e.x*e.y?-1:1});for(var o=0,a=e.length;o<a;o++)for(var s=e[o],u=0,h=s.length;u<h;u++){var c=s[u],f=l,d=l,y=l,m=l;if("fixed"===c.type){var g=c.lt,v=c.Bf;for(g&&(f=g.ie,d=g.je,y=g.ie+g.width,m=g.je+g.height),g=0;g<v.length;g++){var x=v[g];f!==l?(x.ie<f&&(f=x.ie),x.je<d&&(d=x.je),x.ie+x.width>y&&(y=x.ie+x.width),x.je+x.height>m&&(m=x.je+x.height)):(f=x.ie,d=x.je,y=x.ie+x.width,m=x.je+x.height)}}else"line"===c.type?(f=c.Zf,d=c.$f,y=c.ui,m=c.vi):"biaopai"===c.type&&(f=(m=c.x5).ie,d=m.je,y=m.ie+m.width,m=m.je+m.height);f!==l&&(c.Zf=f,c.$f=d,c.ui=y,c.vi=m,i.push(c))}for(i.sort(function(t,e){return e.uy-t.uy||e.Zf-t.Zf||e.$f-t.$f}),o=0,a=i.length;o<a;o++)for((h=i[o]).vt=t,h.WJ=[],u=o+1;u<a;u++)s=i[u],h.ui-r<s.Zf||h.Zf>s.ui-r||h.vi-r<s.$f||h.$f>s.vi-r||h.WJ.push(u);for(o=0,a=i.length;o<a;o++)if((u=i[o]).vt===t)for(r=u.WJ,u=0,h=r.length;u<h;u++)i[r[u]].vt=p;return i},Jx:{}},Rd=["round","butt","square"],Sd=["miter","round","bevel"],Td={daojiao:[{stroke:"#FF6600",Db:1,Bb:"round",Cb:"round",yd:[4,3]}],daojiao_bai:[{stroke:"#f5f3f0",Db:1,Bb:"round",Cb:"round",yd:[4,3]}],junhuoxian:[{stroke:"#DB7093",Db:1,Bb:"round",Cb:"round",yd:[4,3]}],lundu:[{stroke:"#5c91c5",Db:1,Bb:"round",Cb:"round",yd:[10,11]}],shengjie:[{stroke:"#737373",Db:1,Bb:"round",Cb:"round",yd:[6,3]}],weidingguojie:[{stroke:"#aea08a",Db:1,Bb:"round",Cb:"round",yd:[4,3]}],weidingguojie_guowai:[{stroke:"#a29e96",Db:2,Bb:"round",Cb:"round",yd:[4,3]}],weidingguojie_guonei:[{stroke:"#b5a37c",Db:2,Bb:"round",Cb:"round",yd:[4,3]}]},Ud={},Wd={drawLink:function(e,n,i,r,o){this.da=o.P.da;var a=e[1];a&&(e=e[6],this.HO(a,i,r,n,e,o,p),this.HO(a,i,r,n,e,o,t))},HO:function(t,e,n,i,r,o,a){for(var s=0;s<t.length;s++){var l=t[s][0],u=o.wj(l,"line",e);if(u&&u.length&&(!a||u[0].borderWidth)&&(!u[0].gp||Vd(u[0].gp,e,this.da)))for(var h=t[s][1],c=0;c<h.length;c++){var p=h[c][3];o.Uc(p[0],e)&&(p["cache"+e]||(p["cache"+e]=o.Vm(p[1],e,n,r)),p=p["cache"+e],o.P.Fo(i.canvas.id,p,{type:"polyline",Xb:l,style:u}),this.xW(i,p,u,a,e))}}},drawSingleTexture:function(t,e,n,i,r){var o=t[1];if(o){t=t[6];for(var a=0;a<o.length;a++){var s=r.wj(o[a][0],"line",n);if(s&&s.length)for(var l=o[a][1],u=0;u<l.length;u++){var h,c=l[u][11];if(r.Uc(c[0],n))c["cache"+n]||(c["cache"+n]=r.Vm(c[1],n,i,t)),h=c["cache"+n],c=c[3],c*=Math.pow(2,n-r.f1[n].Sc),this.yW(e,h,s,c,r)}}}},yW:function(t,e,n,i,r){var o=n[0].gp,a=this;if(Ud[o])a.Ks(e,i,t,Ud[o]);else if(n=r.tL(o)){var s=new Image;s.onload=function(){Ud[o]=s,a.Ks(e,i,t,s),s.onload=q},s.src=n}},Ks:function(t,e,n,i){var r=[t[0],t[1]],o=(t=(o=[t[2],t[3]])[0]-r[0],o[1]-r[1]),a=(r=[r[0]+t/2,r[1]+o/2],Math.sqrt(t*t+o*o));e/=10,t=Math.atan2(o,t);n.save(),n.translate(r[0],r[1]),n.rotate(Math.PI/2+t),n.drawImage(i,-e/2,-a/2,e,a),n.restore()},xW:function(t,e,n,i,r){if(n=n[0],!i&&n.gp&&Vd(n.gp,r,this.da))this.FW(t,e,n,Vd(n.gp,r,this.da));else{t.beginPath(),t.moveTo(e[0],e[1]);r=2;for(var o=e.length;r<o;r+=2)t.lineTo(e[r],e[r+1]);n.borderWidth&&i?(t.strokeStyle=n.Lo,t.lineCap=Rd[n.cV],t.lineJoin=Sd[1],t.lineWidth=n.borderWidth/2,t.stroke()):i||(t.strokeStyle=n.hx,t.lineCap=Rd[n.TW],t.lineJoin=Sd[1],t.lineWidth=n.ZK/2,t.stroke())}},FW:function(t,e,n,i){if(n=i[1]){t.strokeStyle=n.stroke,t.lineCap=n.Bb,t.lineJoin=n.Cb,t.lineWidth=n.Db,t.beginPath(),t.moveTo(e[0],e[1]);n=2;for(var r=e.length;n<r;n+=2)t.lineTo(e[n],e[n+1]);t.stroke()}if(i=i[0])if(i.yd)this.vW(t,e,i);else{for(t.strokeStyle=i.stroke,t.lineCap=i.Bb,t.lineJoin=i.Cb,t.lineWidth=i.Db,t.beginPath(),t.moveTo(e[0],e[1]),n=2,r=e.length;n<r;n+=2)t.lineTo(e[n],e[n+1]);t.stroke()}},vW:function(t,e,n){t.strokeStyle=n.stroke,t.lineCap=n.Bb,t.lineJoin=n.Cb,t.lineWidth=n.Db;var i=p;n=n.yd[0];t.beginPath();for(var r=0;r<e.length-2;r+=2){var o=e[r],a=e[r+1],s=e[r+2]-o,l=e[r+3]-a,u=0!=s?l/s:0<l?1e15:-1e15,h=(l=Math.sqrt(s*s+l*l),n);for(t.moveTo(o,a);.1<=l;){l<h&&(h=l);var c=Math.sqrt(h*h/(1+u*u));s<0&&(c=-c),o+=c,a+=u*c,t[i?"lineTo":"moveTo"](o,a),l-=h,i=!i}}t.stroke()}},Xd=3,Yd=4,Zd=7,$d=8,ae=15,be=16,ce={},de={},ee={},fe,ge={3:{start:3,Sc:3},4:{start:4,Sc:5},5:{start:4,Sc:5},6:{start:6,Sc:7},7:{start:6,Sc:7},8:{start:8,Sc:9},9:{start:8,Sc:9},10:{start:10,Sc:10},11:{start:11,Sc:12},12:{start:11,Sc:12},13:{start:11,Sc:12},14:{start:14,Sc:15},15:{start:14,Sc:15},16:{start:16,Sc:17},17:{start:16,Sc:17},18:{start:18,Sc:19},19:{start:18,Sc:19},20:{start:18,Sc:19},21:{start:18,Sc:19}};he.prototype={OC:function(t,e,n,i,r,o,a,s,l){this.P.mO={};var u=this,h=u.P.da;if(l=l||0,!window[h+"StyleBody"]&&l<100)setTimeout(function(){u.OC(t,e,n,i,r,o,a,s,l+1)},100);else{fe=fe||s;var c=e.getContext("2d"),f=e.parentNode;if(f.removeChild(e),c.clearRect(0,0,o,o),f.appendChild(e),1<(f=this.Lc)&&!e._scale&&(c.scale(f,f),e._scale=p),c.fillStyle=this.qN("#F5F3F0"),window[h+"zoomFrontStyle"][r].bmapLandColor&&(c.fillStyle=this.qN(window[h+"zoomFrontStyle"][r].bmapLandColor)),h=e.style.width,e.style.width="0px",e.style.width=h,c.fillRect(0,0,o,o),t[0])for(h=0;h<t[0].length;h++)(f=t[0][h])[0]===Zd&&Nd.drawPoly(f,c,r,o,this);17<=this.P.la()?(u.MK(t,c,r,o,a,n,i),e.Tn=p):setTimeout(function(){e.oH||(u.MK(t,c,r,o,a,n,i),e.Tn=p)},1)}},MK:function(t,e,n,i){var r=this.P.da;if(t[0])for(var o=0;o<t[0].length;o++){var a=t[0][o],s=a[0];s===Yd?Wd.drawLink(a,e,n,i,this):s===be?Wd.drawLink(a,e,n,i,this):s===ae?(Nd.drawGaoqingRoadBorder(a,e,n,i,this),Nd.drawGaoqingRoadFill(a,e,n,i,this)):18===s?window[r+"zoomFrontStyle"]&&window[r+"zoomFrontStyle"][n]&&"off"!==window[r+"zoomFrontStyle"][n].bmapRoadarrowVisibility&&Od.drawArrow(a,e,n,i,Math.pow(2,n-ge[n].Sc),this):s===$d?Pd.drawHregion(a,e,n,i,this):19===s&&Wd.drawSingleTexture(a,e,n,i,this)}},LK:function(t,e,n,i,r,o,a){var s=this,l=s.P.da;a=a||0,!window[l+"StyleBody"]&&a<100?setTimeout(function(){s.LK(t,e,n,i,r,o,a+1)},100):(fe=fe||e,t.NZ=Qd.parse(t,n,i,this,r))},wj:function(t,e,n,i){var r=t+"-"+e+"-"+n;return i?(ce[r]||(ce[r]=this.Dg(t,e,n,i)),ce[r]):(this.P.mO[r]=this.Dg(t,e,n),this.P.mO[r])},Dg:function(t,e,n,i){var r,o=this.P.da;if(r=i||window[o+"_bmap_baseFs"],o=window[o+"StyleBody"],i=r[2],"arrow"===e)return this.CZ(i[2]);switch(e){case"point":i=i[0],o=o[0]||{};break;case"pointText":i=i[1],o=o[1]||{};break;case"line":i=i[3],o=o[3]||{};break;case"polygon":i=i[4],o=o[4]||{};break;case"polygon3d":i=i[5],o=o[5]||{}}var a=[];if(!(n=r[1][n-1][0][t]))return a;for(r=0;r<n.length;r++){var s=o[n[r]]||i[n[r]];if(s){switch(e){case"polygon":s=this.LZ(s,t);break;case"line":s=this.HZ(s,t);break;case"pointText":s=this.JZ(s,t);break;case"point":s=this.IZ(s,t);break;case"polygon3d":s=this.KZ(s,t)}s.e6=n[r],a[a.length]=s}}return a},JZ:function(t,e){return{Xb:e,cL:this.Lg(t[0]),UL:this.Lg(t[1]),z2:this.Lg(t[2]),fontSize:t[3],Bx:t[4],fontWeight:t[5],fontStyle:t[6],eW:t[7]}},IZ:function(t,e){return{Xb:e,uy:t[0],w6:t[1],Be:t[2],pY:t[3],f5:t[4],eW:t[5],zoom:t[6]}},HZ:function(t,e){return{Xb:e,Lo:this.Lg(t[0]),hx:this.Lg(t[1]),borderWidth:t[2],ZK:t[3],cV:t[4],TW:t[5],o4:t[6],p4:t[7],q4:t[8],I4:t[9],J4:t[10],dV:t[11],gp:t[12],eV:t[13],l3:t[14],G4:t[15],m4:t[16],e5:t[17],J5:t[18]}},LZ:function(t,e){return{Xb:e,hx:this.Lg(t[0]),Lo:this.Lg(t[1]),borderWidth:t[2],dV:t[3],eV:t[4],E6:t[5],l4:t[6],i6:t[7],j6:this.Lg(t[8])}},KZ:function(t,e){return{Xb:e,filter:t[0],CN:t[1],n4:t[2],borderWidth:t[3],Lo:this.Lg(t[4]),UW:this.Lg(t[5]),k3:this.Lg(t[6]),v5:t[7]}},CZ:function(t){for(var e in t)return t=t[e],{color:this.Lg(t[0]),pY:t[1],Be:t[2]}},Lg:function(t){var e=t;return ee[e]||(t>>>=0,ee[e]="rgba("+(255&t)+","+(t>>8&255)+","+(t>>16&255)+","+(t>>24&255)/255+")"),ee[e]},qN:function(t){6===(t=t.replace("#","")).length&&(t+="ff");for(var e="rgba(",n=0;n<8;n+=2)e=n<6?e+(parseInt(t.slice(n,n+2),16)+","):e+(parseInt(t.slice(n,n+2),16)/255+")");return e},Uc:function(t,e){var n;return de[t]||((n=t.toString(2)).length<8&&(n=Array(8-n.length+1).join("0")+n),de[t]=n),"1"===(n=de[t])[e-ge[e].start]},Vm:function(t,e,n){var i=[],r=(e=Math.pow(2,e-ge[e].Sc)/100,t[0]*e),o=t[1]*e;i[i.length]=r,i[i.length]=n-o;for(var a=2;a<t.length;a+=2)r+=t[a]*e,o+=t[a+1]*e,i[i.length]=r,i[i.length]=n-o;return i},tL:function(t){if(t){var e=t.length%fe.length,n=this.wX();return fe[e]+t+".png?v="+n.UF+"&udt="+n.QF}},wX:function(){if(this.bE)return this.bE;var t="undefined"!=typeof MSV?MSV.X4:{};return this.bE={UF:t.version?t.version:"001",QF:t.H0?t.H0:"20150621"}}},P=A.lang.Iu,Xd=3,Yd=4,Zd=7,$d=8,ae=15,be=16,window.VectorIndoorTileLayer="VectorIndoorTileLayer",fa=vd.prototype,fa.za=function(){var t=this.P,e=t.ef;if(!this.Bo){var n=e.Oq(this.fb.zIndex);n.style.WebkitTransform="translate3d(0px, 0px, 0)",this.Bo=n}if(e.lg.appendChild(this.Bo),e.B4=n,this.fb.wF){ie(this);var s=this;t.addEventListener("checkvectorclick",function(t){var e;t:{e=t.offsetX;var n=t.offsetY,i=s.vs.NZ;if(i)for(var r=0;r<i.length;r++)for(var o=i[r],a=0;a<o.length;a++)if(!(t=o[a]).vt&&t.lt&&e>t.Zf&&e<t.ui&&n>t.$f&&n<t.vi){e=t.lt,e={type:9,name:t.name,uid:t.uid,point:{x:e.ie+e.width/2,y:e.je+6}};break t}e=q}e&&((t=new P("onvectorclick")).x4=e,t.Ye="base",this.dispatchEvent(t))})}},fa.$X=x("Hd"),fa.update=function(e,n){if(n=n||{},this.RF=n.RF,n.vm&&(this.I0=n.vm),this.fb.wF&&(n.lm&&this.lm(),n.V_)){var i=this.Lc,r=(o=this.P.zb()).width,o=o.height,a=this.Tx,s=a.style;s.width=r+"px",s.height=o+"px",a.width=r*i,a.height=o*i,this.Cp.scale(i,i),this.Cp.textBaseline="top"}if(n.z6)for(r=0,o=(i=this.Bo).childNodes.length;r<o;r++)i.childNodes[r].Tn=t;this.Ww=e,this.Fp(e)},fa.Fp=function(e){this.vs=[];var n,i=(n=this.P).la(),r=n.Fc.ri(n.he),o=this.Hd.$b(i),a=(r=[Math.round(-r.lng/o),Math.round(r.lat/o)],o=this.Hd.Nd(i),n.da.replace(/^TANGRAM_/,"")),s=this.Hd.Ws(i),l=-(n=this.P).offsetY+n.height/2,u=this.Bo;for(u.style.left=-n.offsetX+n.width/2+"px",u.style.top=l+"px",this.Ve?this.Ve.length=0:this.Ve=[],n=0,l=u.childNodes.length;n<l;n++){(c=u.childNodes[n]).mr=t,this.Ve.push(c)}if(n=this.Tm)for(var h in n)delete n[h];else this.Tm={};for(this.We?this.We.length=0:this.We=[],n=0,l=e.length;n<l;n++){var c=e[n][0],f=e[n][1];h=0;for(var d=this.Ve.length;h<d;h++){if((y=this.Ve[h]).id===a+"_"+c+"_"+f+"_"+s+"_"+i){y.mr=p,this.Tm[y.id]=y;break}}}for(n=0,l=this.Ve.length;n<l;n++)(y=this.Ve[n]).mr||(y.LB=q,delete y.LB,y.Tn=t,this.We.push(y));for(h=[],d=o*this.Lc,n=0,l=e.length;n<l;n++){c=e[n][0],f=e[n][1];var y=c*o+r[0],m=(-1-f)*o+r[1],g=a+"_"+c+"_"+f+"_"+s+"_"+i,v=this.Tm[g],x=q;if(v)(x=v.style).left=y+"px",x.top=m+"px",x.width=o+"px",x.height=o+"px",v.Tn?v.HF&&v.HF&&this.vs.push(v.HF):(v.oH=p,v.LB=q,delete v.LB,h.push([c,f,v]));else{if(0<this.We.length){var _=(v=this.We.shift()).getContext("2d");v.getAttribute("width")!==d&&(v._scale=t),v.setAttribute("width",d),v.setAttribute("height",d),(x=v.style).width=o+"px",x.height=o+"px",_.clearRect(0,0,d,d)}else(x=(v=document.createElement("canvas")).style).position="absolute",this.fb.backgroundColor&&(x.background=this.fb.backgroundColor),x.width=o+"px",x.height=o+"px",v.setAttribute("width",d),v.setAttribute("height",d),u.appendChild(v);v.id=g,x.left=y+"px",x.top=m+"px",h.push([c,f,v])}v.style.visibility=""}for(n=0,l=this.We.length;n<l;n++)this.We[n].style.visibility="hidden";if(0===h.length){for(je(this),e=this.P.da.replace(/^TANGRAM_/,""),i=this.P.la(),r=this.Hd.Ws(i),o={},a=0;a<this.Ww.length;a++)s=e+"_"+(s=this.Ww[a])[0]+"_"+s[1]+"_"+r+"_"+i,this.nh[s]&&(o[s]=this.nh[s],this.RF&&this.ow.PC.OC(this.nh[s].W0,this.nh[s].k0,this.nh[s].nm,this.nh[s].an,this.nh[s].CE,this.Hd.Nd(this.nh[s].CE),this.Hd.LD(this.nh[s].CE),this.fb.aE));this.nh=o}else{for(this.Bt=h.length,this.Px=t,i=this.Hd.Ws(this.P.la()),r=0;r<e.length;r++)e[r][3]=i;for(r=0;r<h.length;r++)e=h[r][2],o=h[r][0],a=h[r][1],h[r][3]=i,e.Tn=t,e.oH=t,ke(this,o,a,i,e)}},fa.lm=function(){var t=this.P.zb(),e=this.Lc;this.Cp.clearRect(0,0,t.width*e,t.height*e)},fa.remove=function(){var t=this.P.ef;this.Bo&&t.lg.removeChild(this.Bo)},window.VectorIndoorTileMgr="VectorIndoorTileMgr",fa=ud.prototype,fa.za=function(){var e=this,t=this.P;t.addEventListener("addtilelayer",function(t){e.Ue(t.target)}),t.addEventListener("removetilelayer",function(t){e.cg(t.target)}),setTimeout(function(){t.addEventListener("onmoveend",function(t){"centerAndZoom"!==t.Rz&&e.update({vm:"moveend"})}),t.addEventListener("onmoving",function(){e.update({vm:"moving"})}),t.addEventListener("onzoomend",function(t){"centerAndZoom"!==t.Rz&&e.update({lm:p,vm:"zoomend"})}),t.addEventListener("centerandzoom",function(){e.update({lm:p,vm:"centerandzoom"})}),t.addEventListener("onupdatestyles",function(){e.update({lm:p,RF:p,vm:"updatestyles"}),e.P.zf(e.P.Qb()),setTimeout(function(){e.P.dispatchEvent(new P("onvectordrawend"))},10)}),t.addEventListener("onmaptypechange",function(t){t.Ua===Pa&&e.update({lm:p,vm:"maptypechange"})})},1),t.addEventListener("indoor_data_refresh",u()),t.addEventListener("onresize",function(){e.update({V_:p})}),e.update()},fa.Ue=function(t){if(t instanceof vd){for(var e=0;e<this.jf.length;e++)if(this.jf[e]===t)return;this.jf.push(t),t.za(),this.P.loaded&&this.update()}},fa.cg=function(t){if(t instanceof vd){for(var e=0;e<this.jf.length;e++)if(this.jf[e]===t){this.jf.splice(e,1);break}t.remove()}},fa.KL=function(t){var e=t.getName();if(this.Xr[e])return this.Xr[e];var n=(u=this.P).la(),i=u.Vb,r=t.LD(n);u.da.replace(/^TANGRAM_/,"");var o,a=Math.ceil(i.lng/r),s=Math.ceil(i.lat/r),l=(t=t.Nd(n),[a,s,(i.lng/r-a)*t,(i.lat/r-s)*t]),u=(n=l[0]-Math.ceil((u.width/2-l[2])/t),i=l[1]-Math.ceil((u.height/2-l[3])/t),r=l[0]+Math.ceil((u.width/2+l[2])/t),l[1]+Math.ceil((u.height/2+l[3])/t));for(this.Ie?this.Ie.length=0:this.Ie=[],t=n;t<r;t++)for(n=i;n<u;n++)this.Ie.push([t,n]);return this.Ie.sort((o=[a,s],function(t,e){return.4*Math.abs(t[0]-o[0])+.6*Math.abs(t[1]-o[1])-(.4*Math.abs(e[0]-o[0])+.6*Math.abs(e[1]-o[1]))})),this.Xr[e]=this.Ie.slice(0),this.Xr[e]},fa.update=function(t){this.Xr={};for(var e=0;e<this.jf.length;e++){var n=this.jf[e],i=this.KL(n.Hd);n.update(i,t)}},A.extend(ne.prototype,{getName:x("nd"),ft:function(){return this.m.p0},P3:function(){return this.m.wE},ZX:function(){return this.jf[0]},f4:x("jf"),Nd:function(){return this.m.Py},rf:function(){return this.m.kc},Ze:function(){return this.m.qc},setMaxZoom:function(t){this.m.qc=t},Gm:function(){return this.m.GF},uj:function(){return this.m.Fc},I3:function(){return this.m.iD},Nd:function(){return this.m.Py},$b:function(t){return Math.pow(2,18-t)},PL:function(t){return this.$b(t)*this.Nd()},rF:function(t){this.uj().TN(t)}});var oe=[D.url.proto+D.url.domain.TILE_BASE_URLS[0]+"/it/",D.url.proto+D.url.domain.TILE_BASE_URLS[1]+"/it/",D.url.proto+D.url.domain.TILE_BASE_URLS[2]+"/it/",D.url.proto+D.url.domain.TILE_BASE_URLS[3]+"/it/",D.url.proto+D.url.domain.TILE_BASE_URLS[4]+"/it/"],pe=[D.url.proto+D.url.domain.TILE_ONLINE_URLS[0]+"/tile/",D.url.proto+D.url.domain.TILE_ONLINE_URLS[1]+"/tile/",D.url.proto+D.url.domain.TILE_ONLINE_URLS[2]+"/tile/",D.url.proto+D.url.domain.TILE_ONLINE_URLS[3]+"/tile/"],qe={dark:"dl",light:"ll",normal:"pl"},re=new wd;re.P_=p,re.getTilesUrl=function(t,e,n){var i=t.x,r=(t=t.y,Vb("normal")),o=1;n=qe[n];return this.map.Ix()&&(o=2),i=this.map.ef.Hw(i,e).nm,(pe[Math.abs(i+t)%pe.length]+"?qt=vtile&x="+(i+"").replace(/-/gi,"M")+"&y="+(t+"").replace(/-/gi,"M")+"&z="+e+"&styles="+n+"&scaler="+o+(6==A.ga.oa?"&color_dep=32&colors=50":"")+"&udt="+r+"&from=jsapi3_0").replace(/-(\d+)/gi,"M$1")};var Pa=new ne("地图",re,{tips:"显示普通地图",maxZoom:19}),se=new wd;se.sO=[D.url.proto+D.url.domain.TIlE_PERSPECT_URLS[0]+"/resource/mappic/",D.url.proto+D.url.domain.TIlE_PERSPECT_URLS[1]+"/resource/mappic/",D.url.proto+D.url.domain.TIlE_PERSPECT_URLS[2]+"/resource/mappic/",D.url.proto+D.url.domain.TIlE_PERSPECT_URLS[3]+"/resource/mappic/"],se.getTilesUrl=function(t,e){var n=t.x,i=t.y,r=256*Math.pow(2,20-e);i=Math.round((9998336-r*i)/r)-1;return url=this.sO[Math.abs(n+i)%this.sO.length]+this.map.Ob+"/"+this.map.Mw+"/3/lv"+(21-e)+"/"+n+","+i+".jpg"};var Sa=new ne("三维",se,{tips:"显示三维地图",minZoom:15,maxZoom:20,textColor:"white",projection:new lb});Sa.$b=function(t){return Math.pow(2,20-t)},Sa.Ck=function(t){if(!t)return"";var e,n=I.hC;for(e in n)if(-1<t.search(e))return n[e].my;return""},Sa.mL=function(t){return{bj:2,gz:1,sz:14,sh:4}[t]};var te=new wd({Gw:p});te.getTilesUrl=function(t,e){var n=t.x,i=t.y;return(oe[Math.abs(n+i)%oe.length]+"u=x="+n+";y="+i+";z="+e+";v=009;type=sate&fm=46&udt="+Vb("satellite")).replace(/-(\d+)/gi,"M$1")};var cb=new ne("卫星",te,{tips:"显示卫星影像",minZoom:4,maxZoom:19,textColor:"white"}),ue=new wd({transparentPng:p});ue.getTilesUrl=function(t,e){var n=t.x,i=t.y,r=Vb("satelliteStreet");return(pe[Math.abs(n+i)%pe.length]+"?qt=vtile&x="+(n+"").replace(/-/gi,"M")+"&y="+(i+"").replace(/-/gi,"M")+"&z="+e+"&styles=sl"+(6==A.ga.oa?"&color_dep=32&colors=50":"")+"&udt="+r).replace(/-(\d+)/gi,"M$1")};var Ua=new ne("混合",[te,ue],{tips:"显示带有街道的卫星影像",labelText:"路网",minZoom:4,maxZoom:19,textColor:"white"}),ve=1,X={};window.j1=X,A.xa(Y,A.lang.Ja),A.extend(Y.prototype,{getResults:function(){return this.Kc?this.Oi:this.ka},enableAutoViewport:function(){this.m.na.vg=p},disableAutoViewport:function(){this.m.na.vg=t},fn:function(t){t&&(this.md.src=t)},eu:function(t){this.m.Mt=t||u()},setMarkersSetCallback:function(t){this.m.gN=t||u()},setPolylinesSetCallback:function(t){this.m.ME=t||u()},setInfoHtmlSetCallback:function(t){this.m.fN=t||u()},setResultsHtmlSetCallback:function(t){this.m.iN=t||u()},Em:x("Se")});var we={AG:D.td,lb:function(e,t,n,i,r){this.XZ(t);var o=(1e5*Math.random()).toFixed(0);D._rd["_cbk"+o]=function(t){t.result&&t.result.error&&202===t.result.error?alert("该AK因为恶意行为已经被管理员封禁"):(n=n||{},e&&e(t,n),delete D._rd["_cbk"+o])},i=i||"",t=n&&n.N0?Kb(t,encodeURI):Kb(t,encodeURIComponent),this.AG=n&&n.VK?n.HN?n.HN:D.Gp:D.td,i=this.AG+i+"?"+t+"&ie=utf-8&oue=1&fromproduct=jsapi",r||(i+="&res=api"),qa((i+="&ak="+ra)+"&callback=BMap._rd._cbk"+o)},XZ:function(t){if(t.qt){var e="";switch(t.qt){case"bt":e="z_qt|bt";break;case"nav":e="z_qt|nav";break;case"walk":e="z_qt|walk";break;case"bse":e="z_qt|bse";break;case"nse":e="z_qt|nse";break;case"drag":e="z_qt|drag"}""!==e&&D.alog("cus.fire","count",e)}}};window.x1=we,D._rd={};var fb={};window.w1=fb,fb.YE=function(t){return(t=t.replace(/<\/?[^>]*>/g,"")).replace(/[ | ]* /g," ")},fb.DZ=function(t){return t.replace(/([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,"$1,$2;")},fb.EZ=function(t,e){return t.replace(RegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){"+e+"}","ig"),"$1")};var xe=2,ye=6,ze=8,Ae=2,Be=3,Ce=6,De=0,Ee="bt",Fe="nav",Ge="walk",Ke="bl",Le="bsl",Me="ride",Ne=15,Oe=18;D.I=window.Instance=A.lang.Tc,A.extend(Pe.prototype,{Ba:function(){this.za()},za:function(){this.tV(),this.cb.innerHTML=this.SV()},tV:function(){isNaN(parseInt(this.page))&&(this.page=1),isNaN(parseInt(this.Od))&&(this.Od=1),this.page<1&&(this.page=1),this.Od<1&&(this.Od=1),this.page>this.Od&&(this.page=this.Od),this.page=parseInt(this.page),this.Od=parseInt(this.Od)},W3:function(){location.search.match(RegExp("[?&]?"+this.UJ+"=([^&]*)[&$]?","gi")),this.page=RegExp.$1},SV:function(){var t=[],e=this.page-1,n=this.page+1;if(t.push('<p style="margin:0;padding:0;white-space:nowrap">'),!(e<1)){var i;if(this.page>=this.bg)t.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp1}">首页</a></span>'.replace("{temp1}","BMap.I('"+this.da+"').toPage(1);"));t.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp2}">上一页</a></span>'.replace("{temp2}","BMap.I('"+this.da+"').toPage("+e+");"))}if(this.page<this.bg)e=(i=0==this.page%this.bg?this.page-this.bg-1:this.page-this.page%this.bg+1)+this.bg-1;else{i=Math.floor(this.bg/2);var r=this.bg%2-1;e=this.Od>this.page+i?this.page+i:this.Od;i=this.page-i-r}for(this.page>this.Od-this.bg&&this.page>=this.bg&&(i=this.Od-this.bg+1,e=this.Od),r=i;r<=e;r++)0<r&&(r==this.page?t.push('<span style="margin-right:3px">'+r+"</span>"):1<=r&&r<=this.Od&&(i='<span><a style="color:#7777cc;margin-right:3px" href="javascript:void(0)" onclick="{temp3}">['+r+"]</a></span>",t.push(i.replace("{temp3}","BMap.I('"+this.da+"').toPage("+r+");"))));return n>this.Od||t.push('<span><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp4}">下一页</a></span>'.replace("{temp4}","BMap.I('"+this.da+"').toPage("+n+");")),t.push("</p>"),t.join("")},toPage:function(t){t=t||1,"function"==typeof this.eK&&(this.eK(t),this.page=t),this.update&&this.Ba()}}),A.xa(hb,Y,"LocalSearch"),hb.rq=10,hb.s1=1,hb.Dn=100,hb.oG=2e3,hb.xG=1e5,A.extend(hb.prototype,{search:function(t,e){this.Qa.push({method:"search",arguments:[t,e]})},bn:function(t,e,n){this.Qa.push({method:"searchInBounds",arguments:[t,e,n]})},Wp:function(t,e,n,i){this.Qa.push({method:"searchNearby",arguments:[t,e,n,i]})},we:function(){delete this.Ka,delete this.Se,delete this.ka,delete this.ra,this.La=-1,this.Va(),this.m.na.Aa&&(this.m.na.Aa.innerHTML="")},Hm:u(),aD:function(){this.m.na.Yt=p},HC:function(){this.m.na.Yt=t},gn:function(t){this.m.Qk="number"!=typeof t||isNaN(t)?hb.rq:t<1?hb.rq:t>hb.Dn?hb.rq:t},tf:function(){return this.m.Qk},toString:ea("LocalSearch")});var Qe=hb.prototype;V(Qe,{clearResults:Qe.we,setPageCapacity:Qe.gn,getPageCapacity:Qe.tf,gotoPage:Qe.Hm,searchNearby:Qe.Wp,searchInBounds:Qe.bn,search:Qe.search,enableFirstResultSelection:Qe.aD,disableFirstResultSelection:Qe.HC}),A.xa(Re,Y,"BaseRoute"),A.extend(Re.prototype,{we:u()}),Se.Dn=100,Se.pP=[0,1,0,0,0,0,0,0,2,0,0,0,1,1,1],Se.qP=[0,3,4,0,0,0,5],A.xa(Se,Re,"TransitRoute"),A.extend(Se.prototype,{hn:function(t){this.m.Pd=0<=t&&t<=5?t:0},nF:function(t){this.m.Mm=0<=t&&t<=2?t:0},sF:function(t){this.m.nn=0<=t&&t<=2?t:0},yA:function(t,e){this.Qa.push({method:"_internalSearch",arguments:[t,e]})},search:function(t,e){this.Qa.push({method:"search",arguments:[t,e]})},gn:function(t){"string"==typeof t&&(t=parseInt(t,10),isNaN(t))?this.m.Qk=Se.Dn:this.m.Qk="number"!=typeof t?Se.Dn:1<=t&&t<=Se.Dn?Math.round(t):Se.Dn},toString:ea("TransitRoute"),k2:function(t){return t.replace(/\(.*\)/,"")}});var Te=Se.prototype;V(Te,{_internalSearch:Te.yA}),Ue.FP=" 环岛 无属性道路 主路 高速连接路 交叉点内路段 连接道路 停车场内部道路 服务区内部道路 桥 步行街 辅路 匝道 全封闭道路 未定义交通区域 POI连接路 隧道 步行道 公交专用道 提前右转道".split(" "),A.xa(Ue,Re,"DWRoute"),A.extend(Ue.prototype,{search:function(t,e,n){this.Qa.push({method:"search",arguments:[t,e,n]})}}),A.xa(Ve,Ue,"DrivingRoute"),Ve.prototype.hn=function(t){this.m.Pd=0<=t&&t<=5?t:0},A.xa(We,Ue,"WalkingRoute"),A.xa(Xe,Ue,"TruckRoute"),Xe.prototype.hn=function(t){this.m.Pd=0<=t&&t<=5?t:0},A.xa(Ye,Ue,"RidingRoute"),A.lang.xa(Ze,A.lang.Ja,"RouteAddr");var $e=navigator.userAgent;/ipad|iphone|ipod|iph/i.test($e);var af=/android/i.test($e);A.extend(bf.prototype,{ON:function(t,e,n){var i=this;Wa.load("route",function(){i.Dd(t,e,n)})}}),A.xa(cf,A.lang.Ja,"Geocoder"),A.extend(cf.prototype,{Dm:function(t,e,n){this.Qa.push({method:"getPoint",arguments:[t,e,n]})},Am:function(t,e,n){this.Qa.push({method:"getLocation",arguments:[t,e,n]})},toString:ea("Geocoder")});var df=cf.prototype,Xa;V(df,{getPoint:df.Dm,getLocation:df.Am}),A.extend(Geolocation.prototype,{getCurrentPosition:function(t,e){this.ue.push({method:"getCurrentPosition",arguments:arguments})},getStatus:function(){return xe},enableSDKLocation:function(){J()&&(this.M.Ii=p)},disableSDKLocation:function(){this.M.Ii=t}}),A.xa(ef,A.lang.Ja,"LocalCity"),A.extend(ef.prototype,{get:function(t){this.Qa.push({method:"get",arguments:[t]})},toString:ea("LocalCity")}),A.xa(ff,A.lang.Ja,"Boundary"),A.extend(ff.prototype,{get:function(t,e){this.Qa.push({method:"get",arguments:[t,e]})},toString:ea("Boundary")}),gf.zv=I.ua+"iw_plus.gif",gf.yS=I.ua+"iw_minus.gif",gf.oU=I.ua+"stop_icon.png",A.xa(gf,Y),A.extend(gf.prototype,{getBusList:function(t){this.Qa.push({method:"getBusList",arguments:[t]})},getBusLine:function(t){this.Qa.push({method:"getBusLine",arguments:[t]})},setGetBusListCompleteCallback:function(t){this.m.eN=t||u()},setGetBusLineCompleteCallback:function(t){this.m.dN=t||u()},setBusListHtmlSetCallback:function(t){this.m.bN=t||u()},setBusLineHtmlSetCallback:function(t){this.m.aN=t||u()},setPolylinesSetCallback:function(t){this.m.ME=t||u()}}),A.xa(hf,Y,"Autocomplete"),A.extend(hf.prototype,{Vi:u(),show:u(),aa:u(),tF:function(t){this.fb.types=t},fn:function(t){this.md.src=t},search:ca("gj"),Ay:ca("WH"),eu:function(t){this.fb.Mt=t}});var kf=4,lf=1,mf=5,jf=0;A.lang.xa(Ra,A.lang.Ja,"Panorama"),A.extend(Ra.prototype,{RP:function(){var t=this,e=this.Gf=H("div");e.className="pano_close",e.style.cssText="z-index: 1201;display: none",e.title="退出全景",e.onclick=function(){t.aa()},this.R.appendChild(e);var n=this.jr=H("a");n.className="pano_pc_indoor_exit",n.style.cssText="z-index: 1201;display: none",n.innerHTML='<span style="float:right;margin-right:12px;">出口</span>',n.title="退出室内景",n.onclick=function(){t.fp()},this.R.appendChild(n),window.ActiveXObject&&!document.addEventListener&&(e.style.backgroundColor="rgb(37,37,37)",n.style.backgroundColor="rgb(37,37,37)")},fp:u(),BT:function(t){var e,n;e=t.style,"absolute"!=(n=Za(t).position)&&"relative"!=n&&(e.position="relative",e.zIndex=0),"absolute"!==n&&"relative"!==n||((t=Za(t).zIndex)&&"auto"!==t||(e.zIndex=0))},BX:x("co"),Zb:x("hb"),aY:x("hw"),eO:x("hw"),ma:x("Mb"),Na:x("Oa"),la:x("Rc"),Bg:x("Wg"),Y3:function(){return this.g2||[]},R3:x("WS"),dt:x("Pe"),Dy:function(t){t!==this.Pe&&(this.Pe=t,this.dispatchEvent(new P("onscene_type_changed")))},dO:function(t){t!==mf&&(mf=t)},ZN:function(t){t!==kf&&(kf=t)},Gc:function(t,e,n){"object"==typeof e&&(n=e,e=l),t!=this.hb&&(this.Bl=this.hb,this.Cl=this.Mb,this.hb=t,this.Pe=e||"street",this.Mb=q,n&&n.pov&&this.xd(n.pov))},va:function(t){t.Ub(this.Mb)||(this.Bl=this.hb,this.Cl=this.Mb,this.Mb=t,this.hb=q)},xd:function(t){if(t){t=this.Oa.pitch;var e=this.Oa.heading;e=this.AC(e);t>this.fk?t=this.fk:t<this.hk&&(t=this.hk),this.Dr=p,this.Oa.pitch=t,this.Oa.heading=e}},K_:function(t,e){this.hk=0<=t?0:t,this.fk=e<=0?0:e},AC:function(t){return t-360*Math.floor(t/360)},Xc:function(t){t!=this.Rc&&(kf<t&&(t=kf),t<lf&&(t=lf),t!=this.Rc&&(this.Rc=t),"cssRender"===this.mk&&this.xd(this.Oa))},uB:function(){if(this.P)for(var t=this.P.vx(),e=0;e<t.length;e++)(t[e]instanceof W||t[e]instanceof ed)&&t[e].point&&this.ta.push(t[e])},oF:ca("P"),du:function(t){this.Sf=t||"none"},Gj:function(e){for(var n in e){if("object"==typeof e[n])for(var i in e[n])this.m[n][i]=e[n][i];else this.m[n]=e[n];switch(e.closeControl===p&&(this.m.forceCloseControl=p),e.closeControl===t&&(this.m.forceCloseControl=t),n){case"linksControl":this.dispatchEvent(new P("onlinks_visible_changed"));break;case"clickOnRoad":this.dispatchEvent(new P("onclickonroad_changed"));break;case"navigationControl":this.dispatchEvent(new P("onnavigation_visible_changed"));break;case"indoorSceneSwitchControl":this.dispatchEvent(new P("onindoor_default_switch_mode_changed"));break;case"albumsControl":this.dispatchEvent(new P("onalbums_visible_changed"));break;case"albumsControlOptions":this.dispatchEvent(new P("onalbums_options_changed"));break;case"copyrightControlOptions":this.dispatchEvent(new P("oncopyright_options_changed"));break;case"closeControl":this.dispatchEvent(new P("onclose_options_changed"));break;case"indoorExitControl":this.dispatchEvent(new P("onindoorexit_options_changed"));break;case"indoorFloorControl":this.dispatchEvent(new P("onindoorfloor_options_changed"))}}},Mk:function(){this.Kl.style.visibility="hidden"},Hy:function(){this.Kl.style.visibility="visible"},KW:function(){this.m.enableScrollWheelZoom=p},kW:function(){this.m.enableScrollWheelZoom=t},show:function(){this.m.visible=p},aa:function(){this.m.visible=t},gr:function(){return Ya()&&!J()&&"javascript"!=this.m.panoramaRenderer?"flashRender":!J()&&Sb()?"cvsRender":"cssRender"},Ra:function(t){this.Oe[t.od]=t},Jb:function(t){delete this.Oe[t]},Ax:function(){return this.m.visible},ph:function(){return new N(this.R.clientWidth,this.R.clientHeight)},Ta:x("R"),jL:function(){var t=D.mi("baidumap","?");if(n=this.Zb()){var e,n={panotype:this.dt(),heading:this.Na().heading,pitch:this.Na().pitch,pid:n,panoid:n,from:"api"};for(e in n)t+=e+"="+n[e]+"&"}return t.slice(0,-1)},Fx:function(){this.Gj({copyrightControlOptions:{logoVisible:t}})},xF:function(){this.Gj({copyrightControlOptions:{logoVisible:p}})},SB:function(t){function e(t,e){return function(){t.yr.push({QM:e,PM:arguments})}}for(var n=t.getPanoMethodList(),i="",r=0,o=n.length;r<o;r++)this[i=n[r]]=e(this,i);this.eh.push(t)},ZE:function(t){for(var e=this.eh.length;e--;)this.eh[e]===t&&this.eh.splice(e,1)},mF:u()});var nf=Ra.prototype;V(nf,{setId:nf.Gc,setPosition:nf.va,setPov:nf.xd,setZoom:nf.Xc,setOptions:nf.Gj,getId:nf.Zb,getPosition:nf.ma,getPov:nf.Na,getZoom:nf.la,getLinks:nf.BX,getBaiduMapUrl:nf.jL,hideMapLogo:nf.Fx,showMapLogo:nf.xF,enableDoubleClickZoom:nf.h3,disableDoubleClickZoom:nf.Y2,enableScrollWheelZoom:nf.KW,disableScrollWheelZoom:nf.kW,show:nf.show,hide:nf.aa,addPlugin:nf.SB,removePlugin:nf.ZE,getVisible:nf.Ax,addOverlay:nf.Ra,removeOverlay:nf.Jb,getSceneType:nf.dt,setPanoramaPOIType:nf.du,exitInter:nf.fp,setInteractiveState:nf.mF}),V(window,{BMAP_PANORAMA_POI_HOTEL:"hotel",BMAP_PANORAMA_POI_CATERING:"catering",BMAP_PANORAMA_POI_MOVIE:"movie",BMAP_PANORAMA_POI_TRANSIT:"transit",BMAP_PANORAMA_POI_INDOOR_SCENE:"indoor_scene",BMAP_PANORAMA_POI_NONE:"none",BMAP_PANORAMA_INDOOR_SCENE:"inter",BMAP_PANORAMA_STREET_SCENE:"street"}),A.lang.xa(of,A.lang.Ja,"PanoramaOverlayBase"),A.extend(of.prototype,{U3:x("od"),za:function(){ba("initialize方法未实现")},remove:function(){ba("remove方法未实现")},Rf:function(){ba("_setOverlayProperty方法未实现")}}),A.lang.xa(pf,of,"PanoramaLabel"),A.extend(pf.prototype,{x3:x("borderWidth"),getImageData:x("sY"),Gm:x("GF"),M3:x("XL"),t3:x("backgroundColor"),u3:x("XJ"),v3:x("borderColor"),w3:x("aK"),K3:x("fontSize"),V3:x("padding"),N3:x("cE"),zb:x("size"),ox:x("Ce"),va:function(t){this.Mb=t,this.Rf("position",t)},ma:x("Mb"),Pc:function(t){this.Sj=t,this.Rf("content",t)},Dk:x("Sj"),gF:function(t){this.Dq=t,this.Rf("altitude",t)},jp:x("Dq"),Na:function(){var t=this.ma(),e=q,n=q;if(this.W&&(n=this.W.ma()),t&&n)if(t.Ub(n))e=this.W.Na();else{(e={}).heading=qf(t.lng-n.lng,t.lat-n.lat)||0;t=e,n=this.jp();var i=this.Yn();t.pitch=Math.round(Math.atan(n/i)/Math.PI*180)||0}return e},Yn:function(){var t,e,n=0;return this.W&&(t=this.W.ma(),(e=this.ma())&&!e.Ub(t)&&(n=T.Ek(t,e))),n},aa:function(){ba("hide方法未实现")},show:function(){ba("show方法未实现")},Rf:u()});var rf=pf.prototype;V(rf,{setPosition:rf.va,getPosition:rf.ma,setContent:rf.Pc,getContent:rf.Dk,setAltitude:rf.gF,getAltitude:rf.jp,getPov:rf.Na,show:rf.show,hide:rf.aa}),A.lang.xa(sf,of,"PanoramaMarker"),A.extend(sf.prototype,{va:function(t){this.Mb=t,this.Rf("position",t)},ma:x("Mb"),Hc:function(t){this.qJ=t,this.Rf("title",t)},rp:x("qJ"),Wb:function(t){this.TH=icon,this.Rf("icon",t)},lp:x("TH"),gF:function(t){this.Dq=t,this.Rf("altitude",t)},jp:x("Dq"),ND:x("nT"),Na:function(){var t=q;if(this.W){t=this.W.ma();var e=this.ma();t=qf(e.lng-t.lng,e.lat-t.lat);isNaN(t)&&(t=0),t={heading:t,pitch:0}}else t=this.Oa;return t},Rf:u()});var tf=sf.prototype,uf,wf;V(tf,{setPosition:tf.va,getPosition:tf.ma,setTitle:tf.Hc,getTitle:tf.rp,setAltitude:tf.gF,getAltitude:tf.jp,getPanoInfo:tf.ND,getIcon:tf.lp,setIcon:tf.Wb,getPov:tf.Na}),D.Rk(function(t){"flashRender"!==t.gr()&&new Oc(t,{Ye:"api"})}),A.extend(Oc.prototype,{ha:function(){function o(t){if(t){if(t.id!=a.hw){for(var e in a.eO(t.id),a.ia=t,vf()||a.dispatchEvent(new P("onthumbnail_complete")),a.hb!=q&&(a.Cl=a._position),t)if(t.hasOwnProperty(e))switch(a["_"+e]=t[e],e){case"position":a.Mb=t[e];break;case"id":a.hb=t[e];break;case"links":a.co=t[e];break;case"zoom":a.Rc=t[e]}if(a.Cl){var n=a.Cl,i=a._position;e=n.lat;var r=i.lat,o=U(r-e);n=U(i.lng-n.lng);e=Math.sin(o/2)*Math.sin(o/2)+Math.cos(U(e))*Math.cos(U(r))*Math.sin(n/2)*Math.sin(n/2),a.lH=12742e3*Math.atan2(Math.sqrt(e),Math.sqrt(1-e))}e=new P("ondataload"),a.show(),e.data=t,a.dispatchEvent(e),a.dispatchEvent(new P("onposition_changed")),a.dispatchEvent(new P("onlinks_changed")),a.dispatchEvent(new P("oncopyright_changed"),{copyright:t.copyright}),t.jm?(a.Gj({haveBreakId:p}),Ya()&&a.m.closeControl&&A.U.show(a.jr)):A.U.aa(a.jr)}}else a.hb=a.Bl,a.Mb=a.Cl,a.dispatchEvent(new P("onnoresult"))}var a=this.W,s=this;a.addEventListener("id_changed",function(){s.pp(a.Zb(),o)}),a.addEventListener("iid_changed",function(){s.fh(Oc.ml+"qt=idata&iid="+a.oA+"&fn=",function(t){if(t&&t.result&&0==t.result.error){t=t.content[0].interinfo;var e={};e.jm=t.BreakID;for(var n=t.Defaultfloor,i=q,r=0;r<t.Floors.length;r++)if(t.Floors[r].Floor==n){i=t.Floors[r];break}e.id=i.StartID||i.Points[0].PID,s.pp(e.id,o,e)}})}),a.addEventListener("position_changed_inner",function(){s.tj(a.ma(),o)})},pp:function(t,e){this.Cd.getPanoramaById.push(arguments)},tj:function(t,e,n){this.Cd.getPanoramaByLocation.push(arguments)},XD:function(t,e,n,i){this.Cd.getVisiblePOIs.push(arguments)},yx:function(t,e){this.Cd.getRecommendPanosById.push(arguments)},xx:function(t){this.Cd.getPanoramaVersions.push(arguments)},fC:function(t,e){this.Cd.checkPanoSupportByCityCode.push(arguments)},wx:function(t,e){this.Cd.getPanoramaByPOIId.push(arguments)},nL:function(t){this.Cd.getCopyrightProviders.push(arguments)}});var xf=Oc.prototype;V(xf,{getPanoramaById:xf.pp,getPanoramaByLocation:xf.tj,getPanoramaByPOIId:xf.wx}),Nc.FG=D.mi("pano","tile/"),Nc.prototype=new wd,Nc.prototype.getTilesUrl=function(t,e){var n=Nc.FG[(t.x+t.y)%Nc.FG.length]+"?udt=20150114&qt=tile&styles=pl&x="+t.x+"&y="+t.y+"&z="+e;return A.ga.oa&&A.ga.oa<=6&&(n+="&color_dep=32"),n},Nc.prototype.At=ea(p),yf.ae=new T,A.extend(yf,{lW:function(t,e,n){n=A.lang.Tc(n),e={data:e},"position_changed"==t&&(e.data=yf.ae.Ej(new R(e.data.mercatorX,e.data.mercatorY))),n.dispatchEvent(new P("on"+t),e)}});var zf=yf;V(zf,{dispatchFlashEvent:zf.lW});var Af={sP:50};Af.Mu=D.mi("pano")[0],Af.Ku={width:220,height:60},A.extend(Af,{fM:function(o,t,a,s){if(t&&a&&a.lngLat&&a.panoInstance){this.mo===l&&(this.mo=new Oc(q,{Ye:"api"}));var u=this;this.mo.fC(t,function(t){t?u.mo.tj(a.lngLat,Af.sP,function(t){if(t&&t.id){var e=t.id,n=t.zh,i=(t=t.Ah,Oc.ae.Hg(a.lngLat)),r=u.aS(i,{x:n,y:t});n=u.yL(e,r,0,Af.Ku.width,Af.Ku.height);o.content=u.bS(o.content,n,a.titleTip,a.beforeDomId),o.addEventListener("open",function(){ja.V(A.Ic("infoWndPano"),"click",function(){a.panoInstance.Gc(e),a.panoInstance.show(),a.panoInstance.xd({heading:r,pitch:0})})})}s()}):s()})}else s()},bS:function(t,e,n,i){var r;n=n||"";t=i&&t.split(i)[0]?(r=(i=t.split(i)[0]).lastIndexOf("<"),i=t.substring(0,r),t.substring(r)):(i=t,""),r=[];var o=Af.Ku.width,a=Af.Ku.height;return r.push(i),r.push("<div id='infoWndPano' class='panoInfoBox' style='height:"+a+"px;width:"+o+"px; margin-top: -19px;'>"),r.push("<img class='pano_thumnail_img' width='"+o+"' height='"+a+"' border='0' alt='"+n+"外景' title='"+n+"外景' src='"+e+"' onerror='Pano.PanoEntranceUtil.thumbnailNotFound(this, "+o+", "+a+");' />"),r.push("<div class='panoInfoBoxTitleBg' style='width:"+o+"px;'></div><a href='javascript:void(0)' class='panoInfoBoxTitleContent' >进入全景&gt;&gt;</a>"),r.push("</div>"),r.push(t),r.join("")},aS:function(t,e){var n=90-180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI;return n<0&&(n+=360),n},yL:function(t,e,n,i,r){var o={panoId:t,panoHeading:e||0,panoPitch:n||0,width:i,height:r};return(Af.Mu+"?qt=pr3d&fovy=75&quality=80&panoid={panoId}&heading={panoHeading}&pitch={panoPitch}&width={width}&height={height}").replace(/\{(.*?)\}/g,function(t,e){return o[e]})}});var Bf=document,Cf=Math,Df=Bf.createElement("div").style,Ef;t:{for(var Ff=["t","webkitT","MozT","msT","OT"],Gf,Hf=0,If=Ff.length;Hf<If;Hf++)if(Gf=Ff[Hf]+"ransform",Gf in Df){Ef=Ff[Hf].substr(0,Ff[Hf].length-1);break t}Ef=t}var Jf=Ef?"-"+Ef.toLowerCase()+"-":"",Lf=Kf("transform"),Mf=Kf("transitionProperty"),Nf=Kf("transitionDuration"),Of=Kf("transformOrigin"),Pf=Kf("transitionTimingFunction"),Qf=Kf("transitionDelay"),af=/android/gi.test(navigator.appVersion),Rf=/iphone|ipad/gi.test(navigator.appVersion),Sf=/hp-tablet/gi.test(navigator.appVersion),Tf=Kf("perspective")in Df,Uf="ontouchstart"in window&&!Sf,Vf=Ef!==t,Wf=Kf("transition")in Df,Xf="onorientationchange"in window?"orientationchange":"resize",Yf=Uf?"touchstart":"mousedown",Zf=Uf?"touchmove":"mousemove",$f=Uf?"touchend":"mouseup",ag=Uf?"touchcancel":"mouseup",cg=Ef===t?t:{"":"transitionend",webkit:"webkitTransitionEnd",Moz:"transitionend",O:"otransitionend",ms:"MSTransitionEnd"}[Ef],dg=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,1)},eg=window.cancelRequestAnimationFrame||window.G6||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout,fg=Tf?" translateZ(0)":"";gg.prototype={enabled:p,x:0,y:0,Hj:[],scale:1,vC:0,wC:0,bf:[],xf:[],$B:q,Uy:0,handleEvent:function(t){switch(t.type){case Yf:if(!Uf&&0!==t.button)break;this.$v(t);break;case Zf:this.YS(t);break;case $f:case ag:this.iv(t);break;case Xf:this.nB();break;case"DOMMouseScroll":case"mousewheel":this.zU(t);break;case cg:this.wU(t);break;case"click":this.EQ(t)}},uQ:function(){this.yh||this.il||this.gm||this.zy==this.Rb.offsetWidth*this.scale&&this.Vp==this.Rb.offsetHeight*this.scale||this.refresh()},Rv:function(t){var e;this[t+"Scrollbar"]?(this[t+"ScrollbarWrapper"]||(e=Bf.createElement("div"),this.options.dF?e.className=this.options.dF+t.toUpperCase():e.style.cssText="position:absolute;z-index:100;"+("h"==t?"height:7px;bottom:1px;left:2px;right:"+(this.Gi?"7":"2")+"px":"width:7px;bottom:"+(this.ni?"7":"2")+"px;top:2px;right:1px"),e.style.cssText+=";pointer-events:none;"+Jf+"transition-property:opacity;"+Jf+"transition-duration:"+(this.options.SW?"350ms":"0")+";overflow:hidden;opacity:"+(this.options.Gx?"0":"1"),this.yn.appendChild(e),this[t+"ScrollbarWrapper"]=e,e=Bf.createElement("div"),this.options.dF||(e.style.cssText="position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);"+Jf+"background-clip:padding-box;"+Jf+"box-sizing:border-box;"+("h"==t?"height:100%":"width:100%")+";"+Jf+"border-radius:3px;border-radius:3px"),e.style.cssText+=";pointer-events:none;"+Jf+"transition-property:"+Jf+"transform;"+Jf+"transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);"+Jf+"transition-duration:0;"+Jf+"transform: translate(0,0)"+fg,this.options.Fi&&(e.style.cssText+=";"+Jf+"transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)"),this[t+"ScrollbarWrapper"].appendChild(e),this[t+"ScrollbarIndicator"]=e),"h"==t?(this.SL=this.TL.clientWidth,this.kY=Cf.max(Cf.round(this.SL*this.SL/this.zy),8),this.jY.style.width=this.kY+"px"):(this.QO=this.RO.clientHeight,this.R0=Cf.max(Cf.round(this.QO*this.QO/this.Vp),8),this.Q0.style.height=this.R0+"px"),this.oB(t,p)):this[t+"ScrollbarWrapper"]&&(Vf&&(this[t+"ScrollbarIndicator"].style[Lf]=""),this[t+"ScrollbarWrapper"].parentNode.removeChild(this[t+"ScrollbarWrapper"]),this[t+"ScrollbarWrapper"]=q,this[t+"ScrollbarIndicator"]=q)},nB:function(){var t=this;setTimeout(function(){t.refresh()},af?200:0)},Cr:function(t,e){this.il||(t=this.wp?t:0,e=this.tn?e:0,this.options.fl?this.Rb.style[Lf]="translate("+t+"px,"+e+"px) scale("+this.scale+")"+fg:(t=Cf.round(t),e=Cf.round(e),this.Rb.style.left=t+"px",this.Rb.style.top=e+"px"),this.x=t,this.y=e,this.oB("h"),this.oB("v"))},oB:function(t,e){var n="h"==t?this.x:this.y;this[t+"Scrollbar"]&&((n*=this[t+"ScrollbarProp"])<0?(this.options.nD||((n=this[t+"ScrollbarIndicatorSize"]+Cf.round(3*n))<8&&(n=8),this[t+"ScrollbarIndicator"].style["h"==t?"width":"height"]=n+"px"),n=0):n>this[t+"ScrollbarMaxScroll"]&&(n=this.options.nD?this[t+"ScrollbarMaxScroll"]:((n=this[t+"ScrollbarIndicatorSize"]-Cf.round(3*(n-this[t+"ScrollbarMaxScroll"])))<8&&(n=8),this[t+"ScrollbarIndicator"].style["h"==t?"width":"height"]=n+"px",this[t+"ScrollbarMaxScroll"]+(this[t+"ScrollbarIndicatorSize"]-n))),this[t+"ScrollbarWrapper"].style[Qf]="0",this[t+"ScrollbarWrapper"].style.opacity=e&&this.options.Gx?"0":"1",this[t+"ScrollbarIndicator"].style[Lf]="translate("+("h"==t?n+"px,0)":"0,"+n+"px)")+fg)},EQ:function(e){if(e.wR===p)return this.OB=e.target,this.gx=Date.now(),p;if(this.OB&&this.gx){if(600<Date.now()-this.gx)return this.gx=this.OB=q,p}else{for(var n=e.target;n!=this.Rb&&n!=document.body;)n=n.parentNode;if(n==document.body)return p}for(n=e.target;1!=n.nodeType;)n=n.parentNode;return"select"!=(n=n.tagName.toLowerCase())&&"input"!=n&&"textarea"!=n?(e.stopImmediatePropagation?e.stopImmediatePropagation():e.WZ=p,e.stopPropagation(),e.preventDefault(),this.gx=this.OB=q,t):void 0},$v:function(e){var n,i,r=Uf?e.touches[0]:e;this.enabled&&(this.options.$M&&this.options.$M.call(this,e),(this.options.Fi||this.options.zoom)&&this.uJ(0),this.il=this.gm=this.yh=t,this.FC=this.EC=this.vw=this.uw=this.KC=this.JC=0,this.options.zoom&&Uf&&1<e.touches.length&&(i=Cf.abs(e.touches[0].pageX-e.touches[1].pageX),n=Cf.abs(e.touches[0].pageY-e.touches[1].pageY),this.w0=Cf.sqrt(i*i+n*n),this.hy=Cf.abs(e.touches[0].pageX+e.touches[1].pageX-2*this.YF)/2-this.x,this.iy=Cf.abs(e.touches[0].pageY+e.touches[1].pageY-2*this.ZF)/2-this.y,this.options.Lp&&this.options.Lp.call(this,e)),this.options.ay&&(n=this.options.fl?(i=+((n=getComputedStyle(this.Rb,q)[Lf].replace(/[^0-9\-.,]/g,"").split(","))[12]||n[4]),+(n[13]||n[5])):(i=+getComputedStyle(this.Rb,q).left.replace(/[^0-9-]/g,""),+getComputedStyle(this.Rb,q).top.replace(/[^0-9-]/g,"")),i!=this.x||n!=this.y)&&(this.options.Fi?this.fe(cg):eg(this.$B),this.Hj=[],this.Cr(i,n),this.options.fy&&this.options.fy.call(this)),this.ww=this.x,this.xw=this.y,this.pu=this.x,this.qu=this.y,this.zh=r.pageX,this.Ah=r.pageY,this.startTime=e.timeStamp||Date.now(),this.options.kN&&this.options.kN.call(this,e),this.ha(Zf,window),this.ha($f,window),this.ha(ag,window))},YS:function(t){var e=Uf?t.touches[0]:t,n=e.pageX-this.zh,i=e.pageY-this.Ah,r=this.x+n,o=this.y+i,a=t.timeStamp||Date.now();this.options.ZM&&this.options.ZM.call(this,t),this.options.zoom&&Uf&&1<t.touches.length?(r=Cf.abs(t.touches[0].pageX-t.touches[1].pageX),o=Cf.abs(t.touches[0].pageY-t.touches[1].pageY),this.v0=Cf.sqrt(r*r+o*o),this.il=p,(e=1/this.w0*this.v0*this.scale)<this.options.hl?e=.5*this.options.hl*Math.pow(2,e/this.options.hl):e>this.options.mq&&(e=2*this.options.mq*Math.pow(.5,this.options.mq/e)),this.Dp=e/this.scale,r=this.hy-this.hy*this.Dp+this.x,o=this.iy-this.iy*this.Dp+this.y,this.Rb.style[Lf]="translate("+r+"px,"+o+"px) scale("+e+")"+fg,this.options.mN&&this.options.mN.call(this,t)):(this.zh=e.pageX,this.Ah=e.pageY,(0<r||r<this.qe)&&(r=this.options.Mo?this.x+n/2:0<=r||0<=this.qe?0:this.qe),(o>this.vf||o<this.vd)&&(o=this.options.Mo?this.y+i/2:o>=this.vf||0<=this.vd?this.vf:this.vd),this.JC+=n,this.KC+=i,this.uw=Cf.abs(this.JC),this.vw=Cf.abs(this.KC),this.uw<6&&this.vw<6||(this.options.AE&&(this.uw>this.vw+5?(o=this.y,i=0):this.vw>this.uw+5&&(r=this.x,n=0)),this.yh=p,this.Cr(r,o),this.EC=0<n?-1:n<0?1:0,this.FC=0<i?-1:i<0?1:0,300<a-this.startTime&&(this.startTime=a,this.pu=this.x,this.qu=this.y),this.options.jN&&this.options.jN.call(this,t)))},iv:function(e){if(!Uf||0===e.touches.length){var n,i,r=this,o=Uf?e.changedTouches[0]:e,a={Ia:0,time:0},s={Ia:0,time:0},l=(e.timeStamp||Date.now())-r.startTime;if(n=r.x,i=r.y,r.fe(Zf,window),r.fe($f,window),r.fe(ag,window),r.options.YM&&r.options.YM.call(r,e),r.il)n=r.scale*r.Dp,n=Math.max(r.options.hl,n),n=Math.min(r.options.mq,n),r.Dp=n/r.scale,r.scale=n,r.x=r.hy-r.hy*r.Dp+r.x,r.y=r.iy-r.iy*r.Dp+r.y,r.Rb.style[Nf]="200ms",r.Rb.style[Lf]="translate("+r.x+"px,"+r.y+"px) scale("+r.scale+")"+fg,r.il=t,r.refresh(),r.options.Kp&&r.options.Kp.call(r,e);else{if(r.yh)l<300&&r.options.ay&&(a=n?r.jI(n-r.pu,l,-r.x,r.zy-r.Du+r.x,r.options.Mo?r.Du:0):a,s=i?r.jI(i-r.qu,l,-r.y,r.vd<0?r.Vp-r.zn+r.y-r.vf:0,r.options.Mo?r.zn:0):s,n=r.x+a.Ia,i=r.y+s.Ia,(0<r.x&&0<n||r.x<r.qe&&n<r.qe)&&(a={Ia:0,time:0}),(r.y>r.vf&&i>r.vf||r.y<r.vd&&i<r.vd)&&(s={Ia:0,time:0})),a.Ia||s.Ia?(o=Cf.max(Cf.max(a.time,s.time),10),r.options.lu&&(a=n-r.ww,s=i-r.xw,Cf.abs(a)<r.options.Ky&&Cf.abs(s)<r.options.Ky?r.scrollTo(r.ww,r.xw,200):(n=(a=r.hJ(n,i)).x,i=a.y,o=Cf.max(a.time,o))),r.scrollTo(Cf.round(n),Cf.round(i),o)):r.options.lu?(a=n-r.ww,s=i-r.xw,Cf.abs(a)<r.options.Ky&&Cf.abs(s)<r.options.Ky?r.scrollTo(r.ww,r.xw,200):(a=r.hJ(r.x,r.y)).x==r.x&&a.y==r.y||r.scrollTo(a.x,a.y,a.time)):r.po(200);else{if(Uf)if(r.EK&&r.options.zoom)clearTimeout(r.EK),r.EK=q,r.options.Lp&&r.options.Lp.call(r,e),r.zoom(r.zh,r.Ah,1==r.scale?r.options.nW:1),r.options.Kp&&setTimeout(function(){r.options.Kp.call(r,e)},200);else if(this.options.Cx){for(n=o.target;1!=n.nodeType;)n=n.parentNode;"select"!=(i=n.tagName.toLowerCase())&&"input"!=i&&"textarea"!=i?((i=Bf.createEvent("MouseEvents")).initMouseEvent("click",p,p,e.view,1,o.screenX,o.screenY,o.clientX,o.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,q),i.wR=p,n.dispatchEvent(i)):n.focus()}r.po(400)}r.options.lN&&r.options.lN.call(r,e)}}},po:function(e){var n=0<=this.x?0:this.x<this.qe?this.qe:this.x,i=this.y>=this.vf||0<this.vd?this.vf:this.y<this.vd?this.vd:this.y;n==this.x&&i==this.y?(this.yh&&(this.yh=t,this.options.fy&&this.options.fy.call(this)),this.ni&&this.options.Gx&&("webkit"==Ef&&(this.TL.style[Qf]="300ms"),this.TL.style.opacity="0"),this.Gi&&this.options.Gx&&("webkit"==Ef&&(this.RO.style[Qf]="300ms"),this.RO.style.opacity="0")):this.scrollTo(n,i,e||0)},zU:function(t){var e,n,i=this;if("wheelDeltaX"in t)e=t.wheelDeltaX/12,n=t.wheelDeltaY/12;else if("wheelDelta"in t)e=n=t.wheelDelta/12;else{if(!("detail"in t))return;e=n=3*-t.detail}"zoom"==i.options.YO?((n=i.scale*Math.pow(2,1/3*(n?n/Math.abs(n):0)))<i.options.hl&&(n=i.options.hl),n>i.options.mq&&(n=i.options.mq),n!=i.scale&&(!i.Uy&&i.options.Lp&&i.options.Lp.call(i,t),i.Uy++,i.zoom(t.pageX,t.pageY,n,400),setTimeout(function(){i.Uy--,!i.Uy&&i.options.Kp&&i.options.Kp.call(i,t)},400))):(e=i.x+e,n=i.y+n,0<e?e=0:e<i.qe&&(e=i.qe),n>i.vf?n=i.vf:n<i.vd&&(n=i.vd),i.vd<0&&i.scrollTo(e,n,0))},wU:function(t){t.target==this.Rb&&(this.fe(cg),this.AB())},AB:function(){var i,r,o,a=this,s=a.x,l=a.y,u=Date.now();a.gm||(a.Hj.length?((i=a.Hj.shift()).x==s&&i.y==l&&(i.time=0),a.gm=p,a.yh=p,a.options.Fi?(a.uJ(i.time),a.Cr(i.x,i.y),a.gm=t,i.time?a.ha(cg):a.po(0)):(o=function(){var e,n=Date.now();n>=u+i.time?(a.Cr(i.x,i.y),a.gm=t,a.options.vZ&&a.options.vZ.call(a),a.AB()):(n=(n-u)/i.time-1,r=Cf.sqrt(1-n*n),n=(i.x-s)*r+s,e=(i.y-l)*r+l,a.Cr(n,e),a.gm&&(a.$B=dg(o)))})()):a.po(400))},uJ:function(t){t+="ms",this.Rb.style[Nf]=t,this.ni&&(this.jY.style[Nf]=t),this.Gi&&(this.Q0.style[Nf]=t)},jI:function(t,e,n,i,r){var o=(e=Cf.abs(t)/e)*e/.0012;return 0<t&&n<o?(e=e*(n+=r/(6/(o/e*6e-4)))/o,o=n):t<0&&i<o&&(e=e*(i+=r/(6/(o/e*6e-4)))/o,o=i),{Ia:o*(t<0?-1:1),time:Cf.round(e/6e-4)}},jk:function(t){for(var e=-t.offsetLeft,n=-t.offsetTop;t=t.offsetParent;)e-=t.offsetLeft,n-=t.offsetTop;return t!=this.yn&&(e*=this.scale,n*=this.scale),{left:e,top:n}},hJ:function(t,e){var n,i,r;for(r=this.bf.length-1,n=0,i=this.bf.length;n<i;n++)if(t>=this.bf[n]){r=n;break}for(r==this.vC&&0<r&&this.EC<0&&r--,t=this.bf[r],i=(i=Cf.abs(t-this.bf[this.vC]))?Cf.abs(this.x-t)/i*500:0,this.vC=r,r=this.xf.length-1,n=0;n<r;n++)if(e>=this.xf[n]){r=n;break}return r==this.wC&&0<r&&this.FC<0&&r--,e=this.xf[r],n=(n=Cf.abs(e-this.xf[this.wC]))?Cf.abs(this.y-e)/n*500:0,this.wC=r,{x:t,y:e,time:r=Cf.round(Cf.max(i,n))||200}},ha:function(t,e,n){(e||this.Rb).addEventListener(t,this,!!n)},fe:function(t,e,n){(e||this.Rb).removeEventListener(t,this,!!n)},CC:ha(2),refresh:function(){var t,e,n,i=0;if(e=0,this.scale<this.options.hl&&(this.scale=this.options.hl),this.Du=this.yn.clientWidth||1,this.zn=this.yn.clientHeight||1,this.vf=-this.options.u0||0,this.zy=Cf.round(this.Rb.offsetWidth*this.scale),this.Vp=Cf.round((this.Rb.offsetHeight+this.vf)*this.scale),this.qe=this.Du-this.zy,this.vd=this.zn-this.Vp+this.vf,this.FC=this.EC=0,this.options.hN&&this.options.hN.call(this),this.wp=this.options.wp&&this.qe<0,this.tn=this.options.tn&&(!this.options.fV&&!this.wp||this.Vp>this.zn),this.ni=this.wp&&this.options.ni,this.Gi=this.tn&&this.options.Gi&&this.Vp>this.zn,t=this.jk(this.yn),this.YF=-t.left,this.ZF=-t.top,"string"==typeof this.options.lu)for(this.bf=[],this.xf=[],t=0,e=(n=this.Rb.querySelectorAll(this.options.lu)).length;t<e;t++)(i=this.jk(n[t])).left+=this.YF,i.top+=this.ZF,this.bf[t]=i.left<this.qe?this.qe:i.left*this.scale,this.xf[t]=i.top<this.vd?this.vd:i.top*this.scale;else if(this.options.lu){for(this.bf=[];i>=this.qe;)this.bf[e]=i,i-=this.Du,e++;for(this.qe%this.Du&&(this.bf[this.bf.length]=this.qe-this.bf[this.bf.length-1]+this.bf[this.bf.length-1]),e=i=0,this.xf=[];i>=this.vd;)this.xf[e]=i,i-=this.zn,e++;this.vd%this.zn&&(this.xf[this.xf.length]=this.vd-this.xf[this.xf.length-1]+this.xf[this.xf.length-1])}this.Rv("h"),this.Rv("v"),this.il||(this.Rb.style[Nf]="0",this.po(400))},scrollTo:function(t,e,n,i){var r=t;for(this.stop(),r.length||(r=[{x:t,y:e,time:n,YZ:i}]),t=0,e=r.length;t<e;t++)r[t].YZ&&(r[t].x=this.x-r[t].x,r[t].y=this.y-r[t].y),this.Hj.push({x:r[t].x,y:r[t].y,time:r[t].time||0});this.AB()},disable:function(){this.stop(),this.po(0),this.enabled=t,this.fe(Zf,window),this.fe($f,window),this.fe(ag,window)},enable:function(){this.enabled=p},stop:function(){this.options.Fi?this.fe(cg):eg(this.$B),this.Hj=[],this.gm=this.yh=t},zoom:function(e,n,i,r){var o=i/this.scale;this.options.fl&&(this.il=p,r=r===l?200:r,e=e-this.YF-this.x,n=n-this.ZF-this.y,this.x=e-e*o+this.x,this.y=n-n*o+this.y,this.scale=i,this.refresh(),this.x=0<this.x?0:this.x<this.qe?this.qe:this.x,this.y=this.y>this.vf?this.vf:this.y<this.vd?this.vd:this.y,this.Rb.style[Nf]=r+"ms",this.Rb.style[Lf]="translate("+this.x+"px,"+this.y+"px) scale("+i+")"+fg,this.il=t)}},Df=q;var jg=[0,1,2,2,2,2,2,2,2,3,3,3,3,4,5,5,5,6,6,7,8,8,8,9,10],kg="其他 正门 房型 设施 正门 餐饮设施 其他设施 正门 设施 观影厅 其他设施".split(" ");D.Rk(function(t){var e=q;t.addEventListener("position_changed",function(){t.m.visible&&t.m.albumsControl===p&&(e?e.vy(t.Zb()):(e=new hg(t.m.albumsControlOptions)).za(t))}),t.addEventListener("albums_visible_changed",function(){t.m.albumsControl===p?(e?e.vy(t.Zb()):(e=new hg(t.m.albumsControlOptions)).za(t),e.show()):e.aa()}),t.addEventListener("albums_options_changed",function(){e&&e.Gj(t.m.albumsControlOptions)}),t.addEventListener("visible_changed",function(){e&&(t.Ax()?t.m.albumsControl===p&&(e.R.style.visibility="visible"):e.R.style.visibility="hidden")})});var ig=1.8;J()&&(ig=1),A.extend(hg.prototype,{Gj:function(t){for(var e in t)this.m[e]=t[e];t=this.m.imageHeight+"px",this.wc(this.m.anchor),this.R.style.width=isNaN(Number(this.m.maxWidth))===p?this.m.maxWidth:this.m.maxWidth+"px",this.R.style.height=t,this.ok.style.height=t,this.Xh.style.height=t,this.kg={height:this.m.imageHeight,width:this.m.imageHeight*ig},this.nk.style.height=this.kg.height-6+"px",this.nk.style.width=this.kg.width-6+"px",this.vy(this.W.Zb(),p)},za:function(t){this.W=t,this.qs(),this.cQ(),this.AY(),this.vy(t.Zb())},qs:function(){var t=this.m.imageHeight+"px";this.R=H("div");var e=this.R.style;e.cssText="background:rgb(37,37,37);background:rgba(37,37,37,0.9);",e.position="absolute",e.zIndex="2000",e.width=isNaN(Number(this.m.maxWidth))===p?this.m.maxWidth:this.m.maxWidth+"px",e.padding="8px 0",e.visibility="hidden",e.height=t,this.ok=H("div"),(e=this.ok.style).position="absolute",e.overflow="hidden",e.width="100%",e.height=t,this.Xh=H("div"),(e=this.Xh.style).height=t,this.ok.appendChild(this.Xh),this.R.appendChild(this.ok),this.W.R.appendChild(this.R),this.nk=H("div",{class:"pano_photo_item_seleted"}),this.nk.style.height=this.kg.height-6+"px",this.nk.style.width=this.kg.width-6+"px",this.wc(this.m.anchor)},EH:function(t){for(var e=this.kk,n=e.length-1;0<=n;n--)if(e[n].panoId==t)return n;return-1},vy:function(e,n){if(n||!this.kk[this.bd]||this.kk[this.bd].panoId!=e||3===this.kk[this.bd].recoType){var c=this,i=this.EH(e);!n&&-1!==i&&this.kk[i]&&3!==this.kk[i].recoType?this.Yp(i):this.QX(function(e){for(var n,i,r={},o=t,a=[],s=0,u=e.length;s<u;s++)n=e[s].catlog,i=e[s].floor,l!==n&&(""===n&&l!==i?(o=p,r[i]||(r[i]=[]),r[i].push(e[s])):(r[jg[n]]||(r[jg[n]]=[]),r[jg[n]].push(e[s])));for(var h in r)o?a.push({data:h+"F",index:h}):a.push({data:kg[h],index:h});c.$G=r,c.Ti=a,c.$i(e),0==e.length?c.aa():c.show()})}},TV:function(){if(!this.Qi){var e=this.EX(this.Ti),n=H("div");n.style.cssText=["width:"+134*this.Ti.length+"px;","overflow:hidden;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;"].join(""),n.innerHTML=e,(e=H("div")).appendChild(n),e.style.cssText="position:absolute;top:-25px;background:rgb(37,37,37);background:rgba(37,37,37,0.9);border-bottom:1px solid #4e596a;width:100%;line-height:25px;height:25px;overflow:scroll;outline:0",new gg(e,{Mo:t,ay:p,ni:t,Gi:t,tn:t,AE:p,Kw:p,Cx:p}),this.R.appendChild(e);for(var i=this,r=n.getElementsByTagName("span"),o=0,a=r.length;o<a;o++)n=r[o],A.V(n,"click",function(){if(this.getAttribute("dataindex")){i.$i(i.$G[this.getAttribute("dataindex")]);for(var t=0,e=r.length;t<e;t++)r[t].style.color="#FFFFFF";this.style.color="#3383FF"}});this.Qi=e}},QV:function(){if(this.Qi)t=this.lL(this.Ti),this.sQ.innerHTML=t;else{var t=this.lL(this.Ti),r=H("ul"),o=this;r.style.cssText="list-style: none;padding:0px;margin:0px;display:block;width:60px;position:absolute;top:7px",r.innerHTML=t,A.V(r,"click",function(t){if(t=(t.srcElement||t.target).getAttribute("dataindex")){o.$i(o.$G[t]);for(var e=r.getElementsByTagName("li"),n=0,i=e.length;n<i;n++)e[n].childNodes[0].getAttribute("dataindex")===t?A.U.ib(e[n],"pano_catlogLiActive"):A.U.rc(e[n],"pano_catlogLiActive")}});t=H("div");var e=H("a"),n=H("span"),i=H("a"),a=H("span"),s=["background:url("+I.ua+"panorama/catlog_icon.png) no-repeat;","display:block;width:10px;height:7px;margin:0 auto;"].join("");n.style.cssText=s+"background-position:-18px 0;",e.style.cssText="background:#1C1C1C;display:block;position:absolute;width:58px;",a.style.cssText=s+"background-position:0 0;",i.style.cssText="background:#1C1C1C;display:block;position:absolute;width:58px;",i.style.top=this.m.imageHeight-7+"px",t.style.cssText="position:absolute;top:0px;left:0px;width:60px;",e.appendChild(n),i.appendChild(a),A.V(e,"mouseover",function(){var e=parseInt(r.style.top,10);7!==e&&(n.style.backgroundPosition="-27px 0"),new yb({Nc:60,dc:zb.Ls,duration:300,Ba:function(t){r.style.top=e+(7-e)*t+"px"}})}),A.V(e,"mouseout",function(){n.style.backgroundPosition="-18px 0"}),A.V(i,"mouseover",function(){var e=parseInt(r.style.top,10),t=o.m.imageHeight-14;if(!(parseInt(r.offsetHeight,10)<t)){var n=t-parseInt(r.offsetHeight,10)+7;n!==e&&(a.style.backgroundPosition="-9px 0"),new yb({Nc:60,dc:zb.Ls,duration:300,Ba:function(t){r.style.top=e+(n-e)*t+"px"}})}}),A.V(i,"mouseout",function(){a.style.backgroundPosition="0 0"}),t.appendChild(e),t.appendChild(i),(e=H("div")).style.cssText=["position:absolute;z-index:2001;left:20px;","height:"+this.m.imageHeight+"px;","width:62px;overflow:hidden;background:rgb(37,37,37);background:rgba(37,37,37,0.9);"].join(""),e.appendChild(r),e.appendChild(t),this.Qi=e,this.sQ=r,this.R.appendChild(e)}},RV:function(){if(this.Ti&&!(this.Ti.length<=0)){var t=H("div");t.innerHTML=this.Sz,t.style.cssText="position:absolute;background:#252525",this.R.appendChild(t),this.Os=t,this.Yc.mg.style.left=this.kg.width+8+"px",this.Qi&&(this.Qi.style.left=parseInt(this.Qi.style.left,10)+this.kg.width+8+"px");var e=this;A.V(t,"click",function(){e.W.Gc(e.OW)})}},$i:function(t){this.kk=t,this.m.showCatalog&&(0<this.Ti.length?(Ya()?this.QV():this.TV(),this.Yc.offsetLeft=60):(this.Os&&(this.R.removeChild(this.Os),this.Os=q,this.Yc.mg.style.left="0px"),this.Qi&&(this.R.removeChild(this.Qi),this.Qi=q),this.Yc.offsetLeft=0));var e=this.yX(t);Ya()&&this.Ti&&0<this.Ti.length&&this.m.showExit&&this.Sz&&(this.Yc.offsetLeft+=this.kg.width+8,this.Os?this.Os.innerHTML=this.Sz:this.RV()),this.Xh.innerHTML=e,this.Xh.style.width=(this.kg.width+8)*t.length+8+"px",t=this.R.offsetWidth,e=this.Xh.offsetWidth,this.Yc.Vs&&(e+=this.Yc.Vs()),e<t-2*this.Yc.Ji-this.Yc.offsetLeft?this.R.style.width=e+this.Yc.offsetLeft+"px":(this.R.style.width=isNaN(Number(this.m.maxWidth))===p?this.m.maxWidth:this.m.maxWidth+"px",e<this.R.offsetWidth-2*this.Yc.Ji-this.Yc.offsetLeft&&(this.R.style.width=e+this.Yc.offsetLeft+"px")),this.Yc.refresh(),this.pB=this.Xh.children,this.Xh.appendChild(this.nk),this.nk.style.left="-100000px",-1!==(t=this.EH(this.W.Zb(),this.j2))&&this.Yp(t)},EX:function(t){for(var e="",n=0,i=t.length;n<i;n++)e+='<div style="color:white;opacity:0.5;margin:0 35px;float:left;text-align: center"><span dataIndex="'+t[n].index+'">'+t[n].data+"</span></div>";return e},lL:function(t){for(var e="",n=0,i=t.length;n<i;n++)e+='<li class="pano_catlogLi"><span style="display:block;width:100%;" dataIndex="'+t[n].index+'">'+t[n].data+"</span></li>";return e},yX:function(t){for(var e,n,i,r,o=[],a=this.kg.height,s=this.kg.width,l=0;l<t.length;l++)e=t[l],recoType=e.recoType,i=e.panoId,r=e.name,n=e.heading,e=e.pitch,e='<a href="javascript:void(0);" class="pano_photo_item" data-index="'+l+'"><img style="width:'+(s-2)+"px;height:"+(a-2)+'px;" data-index="'+l+'" name="'+r+'" src="'+(n=Af.yL(i,n,e,198,108))+'" alt="'+r+'"/><span class="pano_photo_decs" data-index="'+l+'" style="width:'+s+"px;font-size:"+Math.floor(a/6)+"px; line-height:"+Math.floor(a/6)+'px;"><em class="pano_poi_'+recoType+'"></em>'+r+"</span></a>",3===recoType?Ya()?(this.Sz=e,this.OW=i,t.splice(l,1),l--):(e='<a href="javascript:void(0);" class="pano_photo_item" data-index="'+l+'"><img style="width:'+(s-2)+"px;height:"+(a-2)+'px;" data-index="'+l+'" name="'+r+'" src="'+n+'" alt="'+r+'"/><div style="background:rgba(37,37,37,0.5);position:absolute;top:0px;left:0px;width:100%;height:100%;text-align: center;line-height:'+this.m.imageHeight+'px;" data-index="'+l+'"><img src="'+I.ua+'panorama/photoexit.png" style="border:none;vertical-align:middle;" data-index="'+l+'" alt=""/></div></a>',o.push(e)):o.push(e);return o.join("")},QX:function(e){var n=this,i=this.W.Zb();i&&this.Ul.yx(i,function(t){n.W.Zb()===i&&e(t)})},wc:function(t){(!ab(t)||isNaN(t)||t<Fc||3<t)&&(t=this.defaultAnchor);var e=this.R,n=this.m.offset.width,i=this.m.offset.height;switch(e.style.left=e.style.top=e.style.right=e.style.bottom="auto",t){case Fc:e.style.top=i+"px",e.style.left=n+"px";break;case Gc:e.style.top=i+"px",e.style.right=n+"px";break;case Hc:e.style.bottom=i+"px",e.style.left=n+"px";break;case 3:e.style.bottom=i+"px",e.style.right=n+"px"}},cQ:function(){this.aQ()},aQ:function(){var e=this;A.V(this.R,"touchstart",function(t){t.stopPropagation()}),A.V(this.ok,"click",function(t){(t=(t.srcElement||t.target).getAttribute("data-index"))&&t!=e.bd&&(e.Yp(t),e.W.Gc(e.kk[t].panoId))}),A.V(this.Xh,"mouseover",function(t){(t=(t.srcElement||t.target).getAttribute("data-index"))!==q&&e.oK(t,p)}),this.W.addEventListener("size_changed",function(){isNaN(Number(e.m.maxWidth))&&e.Gj({maxWidth:e.m.maxWidth})})},Yp:function(t){this.nk.style.left=this.pB[t].offsetLeft+8+"px",this.nk.setAttribute("data-index",this.pB[t].getAttribute("data-index")),this.bd=t,this.oK(t)},oK:function(t,e){var n=this.kg.width+8,i=0;this.Yc.Vs&&(i=this.Yc.Vs()/2);var r,o=this.ok.offsetWidth-2*i,a=-t*n;(r=(r=this.Xh.offsetLeft||this.Yc.x)-i)<a&&this.Yc.scrollTo(a+i),(n=a-n)<(r-=o)&&(!e||e&&8<a-r)&&this.Yc.scrollTo(n+o+i)},AY:function(){this.Yc=J()?new gg(this.ok,{Mo:t,ay:p,ni:t,Gi:t,tn:t,AE:p,Kw:p,Cx:p}):new lg(this.ok)},aa:function(){this.R.style.visibility="hidden"},show:function(){this.R.style.visibility="visible"}}),lg.prototype={za:function(){this.hh.style.position="relative",this.refresh(),this.qs(),this.bC()},refresh:function(){this.ko=this.R.offsetWidth-this.Vs(),this.NA=-(this.hh.offsetWidth-this.ko-this.Ji),this.Dv=this.Ji+this.offsetLeft,this.hh.style.left=this.Dv+"px",this.hh.children[0]&&(this.Qr=this.hh.children[0].offsetWidth),this.mg&&(this.mg.children[0].style.marginTop=this.Ir.children[0].style.marginTop=this.mg.offsetHeight/2-this.mg.children[0].offsetHeight/2+"px")},Vs:function(){return 2*this.Ji},qs:function(){this.Sv=H("div"),this.Sv.innerHTML='<a class="pano_photo_arrow_l" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="上一页"><span class="pano_arrow_l"></span></a><a class="pano_photo_arrow_r" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="下一页"><span class="pano_arrow_r"></span></a>',this.mg=this.Sv.children[0],this.Ir=this.Sv.children[1],this.R.appendChild(this.Sv),this.mg.children[0].style.marginTop=this.Ir.children[0].style.marginTop=this.mg.offsetHeight/2-this.mg.children[0].offsetHeight/2+"px"},bC:function(){var t=this;A.V(this.mg,"click",function(){t.scrollTo(t.hh.offsetLeft+t.ko)}),A.V(this.Ir,"click",function(){t.scrollTo(t.hh.offsetLeft-t.ko)})},xU:function(){A.U.rc(this.mg,"pano_arrow_disable"),A.U.rc(this.Ir,"pano_arrow_disable");var t=this.hh.offsetLeft;t>=this.Dv&&A.U.ib(this.mg,"pano_arrow_disable"),t-this.ko<=this.NA&&A.U.ib(this.Ir,"pano_arrow_disable")},scrollTo:function(e){(e=e<this.hh.offsetLeft?Math.ceil((e-this.Ji-this.ko)/this.Qr)*this.Qr+this.ko+this.Ji-8:Math.ceil((e-this.Ji)/this.Qr)*this.Qr+this.Ji)<this.NA?e=this.NA:e>this.Dv&&(e=this.Dv);var n=this.hh.offsetLeft,i=this;new yb({Nc:60,dc:zb.Ls,duration:300,Ba:function(t){i.hh.style.left=n+(e-n)*t+"px"},finish:function(){i.xU()}})}},D.Map=Oa,D.Hotspot=mb,D.MapType=ne,D.Point=Q,D.Pixel=R,D.Size=N,D.Bounds=jb,D.TileLayer=wd,D.Projection=Tc,D.MercatorProjection=T,D.PerspectiveProjection=lb,D.Copyright=function(t,e,n){this.id=t,this.jb=e,this.content=n},D.Overlay=Wc,D.Label=ed,D.GroundOverlay=fd,D.PointCollection=jd,D.Marker=W,D.CanvasLayer=md,D.Icon=ad,D.IconSequence=cd,D.Symbol=bd,D.Polyline=qd,D.Polygon=pd,D.InfoWindow=dd,D.Circle=rd,D.Control=Ec,D.NavigationControl=ob,D.GeolocationControl=Ic,D.OverviewMapControl=qb,D.CopyrightControl=Jc,D.ScaleControl=pb,D.MapTypeControl=rb,D.CityListControl=Kc,D.PanoramaControl=Mc,D.TrafficLayer=Dd,D.CustomLayer=sb,D.ContextMenu=Pc,D.MenuItem=Sc,D.LocalSearch=hb,D.TransitRoute=Se,D.DrivingRoute=Ve,D.TruckRoute=Xe,D.WalkingRoute=We,D.RidingRoute=Ye,D.Autocomplete=hf,D.RouteSearch=bf,D.Geocoder=cf,D.LocalCity=ef,D.Geolocation=Geolocation,D.Convertor=Vc,D.BusLineSearch=gf,D.Boundary=ff,D.Panorama=Ra,D.PanoramaLabel=pf,D.PanoramaService=Oc,D.PanoramaCoverageLayer=Nc,D.PanoramaFlashInterface=yf,V(window,{BMap:D,_jsload2:function(t,e){ja.Ly.OY&&ja.Ly.set(t,e),Wa.rV(t,e)},BMAP_API_VERSION:"2.0"});var mg=Oa.prototype;V(mg,{getBounds:mg.le,getCenter:mg.Qb,getMapType:mg.ya,getSize:mg.zb,setSize:mg.He,getViewport:mg.ht,getZoom:mg.la,centerAndZoom:mg.ud,panTo:mg.zi,panBy:mg.Kg,setCenter:mg.zf,setCurrentCity:mg.kF,setMapType:mg.Og,setViewport:mg.Pg,setZoom:mg.Xc,highResolutionEnabled:mg.Ix,zoomTo:mg.Rg,zoomIn:mg.$F,zoomOut:mg.aG,addHotspot:mg.QB,removeHotspot:mg.$Z,clearHotspots:mg.Ow,checkResize:mg.uV,addControl:mg.ds,removeControl:mg.DN,getContainer:mg.Ta,addContextMenu:mg.bm,removeContextMenu:mg.Pp,addOverlay:mg.Ra,removeOverlay:mg.Jb,clearOverlays:mg.lK,openInfoWindow:mg.Vc,closeInfoWindow:mg.Mc,pointToOverlayPixel:mg.cf,overlayPixelToPoint:mg.oN,getInfoWindow:mg.qh,getOverlays:mg.vx,getPanes:function(){return{floatPane:this.ce.oD,markerMouseTarget:this.ce.DE,floatShadow:this.ce.bL,labelPane:this.ce.vE,markerPane:this.ce.NM,markerShadow:this.ce.OM,mapPane:this.ce.Gt,vertexPane:this.ce.UO}},addTileLayer:mg.Ue,removeTileLayer:mg.cg,pixelToPoint:mg.bc,pointToPixel:mg.vc,setFeatureStyle:mg.X5,selectBaseElement:mg.Q5,setMapStyle:mg.bu,enable3DBuilding:mg.ap,disable3DBuilding:mg.hW,getPanorama:mg.bt,initIndoorLayer:mg.BY,setNormalMapDisplay:mg.By,setMapStyleV2:mg.E_,setBMapCopyrightOffset:mg.jF,getVectorContainer:mg.eY}),V(window,{BMAP_COORD_BD09:5,BMAP_COORD_GCJ02:3});var ng=ne.prototype;V(ng,{getTileLayer:ng.ZX,getMinZoom:ng.rf,getMaxZoom:ng.Ze,getProjection:ng.uj,getTextColor:ng.Gm,getTips:ng.ft}),V(window,{BMAP_NORMAL_MAP:Pa,BMAP_PERSPECTIVE_MAP:Sa,BMAP_SATELLITE_MAP:cb,BMAP_HYBRID_MAP:Ua});var og=T.prototype;V(og,{lngLatToPoint:og.Hg,pointToLngLat:og.Ej});var pg=lb.prototype;V(pg,{lngLatToPoint:pg.Hg,pointToLngLat:pg.Ej});var qg=jb.prototype;V(qg,{equals:qg.Ub,containsPoint:qg.ns,containsBounds:qg.GV,intersects:qg.ot,extend:qg.extend,getCenter:qg.Qb,isEmpty:qg.Aj,getSouthWest:qg.Ae,getNorthEast:qg.sf,toSpan:qg.LF});var rg=Wc.prototype;V(rg,{isVisible:rg.Uc,show:rg.show,hide:rg.aa}),Wc.getZIndex=Wc.Kk;var sg=kb.prototype;V(sg,{openInfoWindow:sg.Vc,closeInfoWindow:sg.Mc,enableMassClear:sg.qj,disableMassClear:sg.jW,show:sg.show,hide:sg.aa,getMap:sg.sx,addContextMenu:sg.bm,removeContextMenu:sg.Pp});var tg=W.prototype;V(tg,{setIcon:tg.Wb,getIcon:tg.lp,setPosition:tg.va,getPosition:tg.ma,setOffset:tg.Rd,getOffset:tg.sj,getLabel:tg.Ys,setLabel:tg.Fj,setTitle:tg.Hc,setTop:tg.Di,enableDragging:tg.jc,disableDragging:tg.Bs,setZIndex:tg.cq,getMap:tg.sx,setAnimation:tg.dn,setShadow:tg.Ey,hide:tg.aa,setRotation:tg.Zp,getRotation:tg.CL}),V(window,{BMAP_ANIMATION_DROP:1,BMAP_ANIMATION_BOUNCE:2});var ug=ed.prototype;V(ug,{setStyle:ug.Td,setStyles:ug.Ci,setContent:ug.Pc,setPosition:ug.va,getPosition:ug.ma,setOffset:ug.Rd,getOffset:ug.sj,setTitle:ug.Hc,setZIndex:ug.cq,getMap:ug.sx,getContent:ug.Dk});var vg=ad.prototype;V(vg,{setImageUrl:vg.UN,setSize:vg.He,setAnchor:vg.wc,setImageOffset:vg.au,setImageSize:vg.y_,setInfoWindowAnchor:vg.B_,setPrintImageUrl:vg.N_});var wg=dd.prototype;V(wg,{redraw:wg.re,setTitle:wg.Hc,setContent:wg.Pc,getContent:wg.Dk,getPosition:wg.ma,enableMaximize:wg.oh,disableMaximize:wg.$w,isOpen:wg.eb,setMaxContent:wg.cu,maximize:wg.Zx,enableAutoPan:wg.Ms});var xg=Zc.prototype;V(xg,{getPath:xg.$e,setPath:xg.Sd,setPositionAt:xg.jn,getStrokeColor:xg.WX,setStrokeWeight:xg.bq,getStrokeWeight:xg.FL,setStrokeOpacity:xg.$p,getStrokeOpacity:xg.XX,setFillOpacity:xg.$t,getFillOpacity:xg.rX,setStrokeStyle:xg.aq,getStrokeStyle:xg.EL,getFillColor:xg.qX,getBounds:xg.le,enableEditing:xg.pf,disableEditing:xg.iW,getEditing:xg.nX,getGeodesicPath:xg.uX});var yg=rd.prototype;V(yg,{setCenter:yg.zf,getCenter:yg.Qb,getRadius:yg.AL,setRadius:yg.Af});var zg=pd.prototype;V(zg,{getPath:zg.$e,setPath:zg.Sd,setPositionAt:zg.jn});var Ag=mb.prototype;V(Ag,{getPosition:Ag.ma,setPosition:Ag.va,getText:Ag.SD,setText:Ag.fu}),Q.prototype.equals=Q.prototype.Ub,R.prototype.equals=R.prototype.Ub,N.prototype.equals=N.prototype.Ub,V(window,{BMAP_ANCHOR_TOP_LEFT:Fc,BMAP_ANCHOR_TOP_RIGHT:Gc,BMAP_ANCHOR_BOTTOM_LEFT:Hc,BMAP_ANCHOR_BOTTOM_RIGHT:3});var Bg=Ec.prototype;V(Bg,{setAnchor:Bg.wc,getAnchor:Bg.vD,setOffset:Bg.Rd,getOffset:Bg.sj,show:Bg.show,hide:Bg.aa,isVisible:Bg.Uc,toString:Bg.toString});var Cg=ob.prototype;V(Cg,{getType:Cg.up,setType:Cg.kn}),V(window,{BMAP_NAVIGATION_CONTROL_LARGE:0,BMAP_NAVIGATION_CONTROL_SMALL:1,BMAP_NAVIGATION_CONTROL_PAN:2,BMAP_NAVIGATION_CONTROL_ZOOM:3});var Dg=qb.prototype;V(Dg,{changeView:Dg.ve,setSize:Dg.He,getSize:Dg.zb});var Eg=pb.prototype;V(Eg,{getUnit:Eg.dY,setUnit:Eg.uF}),V(window,{BMAP_UNIT_METRIC:"metric",BMAP_UNIT_IMPERIAL:"us"});var Fg=Jc.prototype;V(Fg,{addCopyright:Fg.Aw,removeCopyright:Fg.XE,getCopyright:Fg.xm,getCopyrightCollection:Fg.CD}),V(window,{BMAP_MAPTYPE_CONTROL_HORIZONTAL:Lc,BMAP_MAPTYPE_CONTROL_DROPDOWN:1,BMAP_MAPTYPE_CONTROL_MAP:2});var Gg=wd.prototype;V(Gg,{getMapType:Gg.ya,getCopyright:Gg.xm,isTransparentPng:Gg.At});var Hg=Pc.prototype;V(Hg,{addItem:Hg.es,addSeparator:Hg.TB,removeSeparator:Hg.$E});var Ig=Sc.prototype;V(Ig,{setText:Ig.fu});var Jg=Y.prototype;V(Jg,{getStatus:Jg.Em,setSearchCompleteCallback:Jg.eu,getPageCapacity:Jg.tf,setPageCapacity:Jg.gn,setLocation:Jg.fn,disableFirstResultSelection:Jg.HC,enableFirstResultSelection:Jg.aD,gotoPage:Jg.Hm,searchNearby:Jg.Wp,searchInBounds:Jg.bn,search:Jg.search}),V(window,{BMAP_STATUS_SUCCESS:0,BMAP_STATUS_CITY_LIST:1,BMAP_STATUS_UNKNOWN_LOCATION:xe,BMAP_STATUS_UNKNOWN_ROUTE:3,BMAP_STATUS_INVALID_KEY:4,BMAP_STATUS_INVALID_REQUEST:5,BMAP_STATUS_PERMISSION_DENIED:ye,BMAP_STATUS_SERVICE_UNAVAILABLE:7,BMAP_STATUS_TIMEOUT:ze}),V(window,{BMAP_POI_TYPE_NORMAL:0,BMAP_POI_TYPE_BUSSTOP:1,BMAP_POI_TYPE_BUSLINE:2,BMAP_POI_TYPE_SUBSTOP:3,BMAP_POI_TYPE_SUBLINE:4}),V(window,{BMAP_TRANSIT_POLICY_RECOMMEND:0,BMAP_TRANSIT_POLICY_LEAST_TIME:4,BMAP_TRANSIT_POLICY_LEAST_TRANSFER:1,BMAP_TRANSIT_POLICY_LEAST_WALKING:2,BMAP_TRANSIT_POLICY_AVOID_SUBWAYS:3,BMAP_TRANSIT_POLICY_FIRST_SUBWAYS:5,BMAP_LINE_TYPE_BUS:0,BMAP_LINE_TYPE_SUBWAY:1,BMAP_LINE_TYPE_FERRY:2,BMAP_LINE_TYPE_TRAIN:3,BMAP_LINE_TYPE_AIRPLANE:4,BMAP_LINE_TYPE_COACH:5}),V(window,{BMAP_TRANSIT_TYPE_POLICY_TRAIN:0,BMAP_TRANSIT_TYPE_POLICY_AIRPLANE:1,BMAP_TRANSIT_TYPE_POLICY_COACH:2}),V(window,{BMAP_INTERCITY_POLICY_LEAST_TIME:0,BMAP_INTERCITY_POLICY_EARLY_START:1,BMAP_INTERCITY_POLICY_CHEAP_PRICE:2}),V(window,{BMAP_TRANSIT_TYPE_IN_CITY:0,BMAP_TRANSIT_TYPE_CROSS_CITY:1}),V(window,{BMAP_TRANSIT_PLAN_TYPE_ROUTE:0,BMAP_TRANSIT_PLAN_TYPE_LINE:1});var Kg=Re.prototype;V(Kg,{clearResults:Kg.we}),Te=Se.prototype,V(Te,{setPolicy:Te.hn,toString:Te.toString,setPageCapacity:Te.gn,setIntercityPolicy:Te.nF,setTransitTypePolicy:Te.sF}),V(Xe.prototype,{setPolicy:Xe.hn,toString:Xe.toString,setPageCapacity:Xe.gn,setIntercityPolicy:Xe.nF,setTransitTypePolicy:Xe.sF}),V(window,{BMAP_DRIVING_POLICY_DEFAULT:0,BMAP_DRIVING_POLICY_AVOID_HIGHWAYS:3,BMAP_DRIVING_POLICY_AVOID_CONGESTION:5,BMAP_DRIVING_POLICY_FIRST_HIGHWAYS:4}),V(window,{BMAP_MODE_DRIVING:"driving",BMAP_MODE_TRANSIT:"transit",BMAP_MODE_WALKING:"walking",BMAP_MODE_NAVIGATION:"navigation"});var Lg=bf.prototype;V(Lg,{routeCall:Lg.ON}),V(window,{BMAP_HIGHLIGHT_STEP:1,BMAP_HIGHLIGHT_ROUTE:2}),V(window,{BMAP_ROUTE_TYPE_DRIVING:Be,BMAP_ROUTE_TYPE_WALKING:Ae,BMAP_ROUTE_TYPE_RIDING:Ce}),V(window,{BMAP_ROUTE_STATUS_NORMAL:De,BMAP_ROUTE_STATUS_EMPTY:1,BMAP_ROUTE_STATUS_ADDRESS:2});var Mg=Ve.prototype;V(Mg,{setPolicy:Mg.hn});var Ng=hf.prototype;V(Ng,{show:Ng.show,hide:Ng.aa,setTypes:Ng.tF,setLocation:Ng.fn,search:Ng.search,setInputValue:Ng.Ay}),V(sb.prototype,{});var Og=ff.prototype;V(Og,{get:Og.get}),V(Nc.prototype,{}),V(window,{BMAP_POINT_DENSITY_HIGH:200,BMAP_POINT_DENSITY_MEDIUM:Gd,BMAP_POINT_DENSITY_LOW:50}),V(window,{BMAP_POINT_SHAPE_STAR:1,BMAP_POINT_SHAPE_WATERDROP:2,BMAP_POINT_SHAPE_CIRCLE:gd,BMAP_POINT_SHAPE_SQUARE:4,BMAP_POINT_SHAPE_RHOMBUS:5}),V(window,{BMAP_POINT_SIZE_TINY:1,BMAP_POINT_SIZE_SMALLER:2,BMAP_POINT_SIZE_SMALL:3,BMAP_POINT_SIZE_NORMAL:hd,BMAP_POINT_SIZE_BIG:5,BMAP_POINT_SIZE_BIGGER:6,BMAP_POINT_SIZE_HUGE:7}),V(window,{BMap_Symbol_SHAPE_CAMERA:11,BMap_Symbol_SHAPE_WARNING:12,BMap_Symbol_SHAPE_SMILE:13,BMap_Symbol_SHAPE_CLOCK:14,BMap_Symbol_SHAPE_POINT:9,BMap_Symbol_SHAPE_PLANE:10,BMap_Symbol_SHAPE_CIRCLE:1,BMap_Symbol_SHAPE_RECTANGLE:2,BMap_Symbol_SHAPE_RHOMBUS:3,BMap_Symbol_SHAPE_STAR:4,BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW:5,BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW:6,BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW:7,BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW:8}),V(window,{BMAP_CONTEXT_MENU_ICON_ZOOMIN:Qc,BMAP_CONTEXT_MENU_ICON_ZOOMOUT:Rc}),V(window,{BMAP_SYS_DRAWER:Na,BMAP_SVG_DRAWER:1,BMAP_VML_DRAWER:2,BMAP_CANVAS_DRAWER:3,BMAP_SVG_DRAWER_FIRST:4}),D.OU(),D.V0()}function ba(t){throw t}function u(){return function(){}}function ca(e){return function(t){this[e]=t}}function x(t){return function(){return this[t]}}function ea(t){return function(){return t}}function ha(t){return function(){return ga[t].apply(this,arguments)}}function ia(t,e){return ga[t]=e}function ma(t,e){if(t.domEvent=e=window.event||e,t.clientX=e.clientX||e.pageX,t.clientY=e.clientY||e.pageY,t.offsetX=e.offsetX||e.layerX,t.offsetY=e.offsetY||e.layerY,t.screenX=e.screenX,t.screenY=e.screenY,t.ctrlKey=e.ctrlKey||e.metaKey,t.shiftKey=e.shiftKey,t.altKey=e.altKey,e.touches){t.touches=[];for(var n=0;n<e.touches.length;n++)t.touches.push({clientX:e.touches[n].clientX,clientY:e.touches[n].clientY,screenX:e.touches[n].screenX,screenY:e.touches[n].screenY,pageX:e.touches[n].pageX,pageY:e.touches[n].pageY,target:e.touches[n].target,identifier:e.touches[n].identifier})}if(e.changedTouches)for(t.changedTouches=[],n=0;n<e.changedTouches.length;n++)t.changedTouches.push({clientX:e.changedTouches[n].clientX,clientY:e.changedTouches[n].clientY,screenX:e.changedTouches[n].screenX,screenY:e.changedTouches[n].screenY,pageX:e.changedTouches[n].pageX,pageY:e.changedTouches[n].pageY,target:e.changedTouches[n].target,identifier:e.changedTouches[n].identifier});if(e.targetTouches)for(t.targetTouches=[],n=0;n<e.targetTouches.length;n++)t.targetTouches.push({clientX:e.targetTouches[n].clientX,clientY:e.targetTouches[n].clientY,screenX:e.targetTouches[n].screenX,screenY:e.targetTouches[n].screenY,pageX:e.targetTouches[n].pageX,pageY:e.targetTouches[n].pageY,target:e.targetTouches[n].target,identifier:e.targetTouches[n].identifier});return t.rotation=e.rotation,t.scale=e.scale,t}function D3p(e){document.addEventListener&&(this.element=e,this.XK=this.Lk?"touchstart":"mousedown",this.kD=this.Lk?"touchmove":"mousemove",this.jD=this.Lk?"touchend":"mouseup",this.yh=t,this.qu=this.pu=0,this.element.addEventListener(this.XK,this,t),ja.V(this.element,"mousedown",u()),this.handleEvent(q))}function Oa(e,n){if(e=A.fa(e)){var i=this;A.lang.Ja.call(i),n=n||{},i.M={lC:200,jc:p,dx:t,$C:p,cp:p,ep:n.enableWheelZoom||t,SK:p,bD:p,dp:p,Ns:p,gD:p,ap:n.enable3DBuilding||t,Nc:25,i1:240,BU:450,Ac:I.Ac,Kd:I.Kd,xt:!!n.xt,kc:Math.round(n.minZoom)||1,qc:Math.round(n.maxZoom)||19,Ua:n.mapType||Pa,L5:t,PK:n.drawer||Na,bx:p,ax:500,IW:n.enableHighResolution!==t,um:n.enableMapClick!==t,devicePixelRatio:n.devicePixelRatio||window.devicePixelRatio||1,TF:99,De:n.mapStyle||q,$Y:n.logoControl===t?t:p,VU:[],D2:n.beforeClickIcon||q,yg:t,yk:t,Vo:t,LE:p,WC:n.enableBizAuthLogo===t?t:p,Ma:n.coordsType||5,q6:n.touchZoomCenter||0,dD:n.enablePinchDragging===t?t:p},i.M.De&&(this.xY(i.M.De.controls),this.eM(i.M.De.geotableId)),i.M.De&&i.M.De.styleId&&i.e4(i.M.De.styleId),i.M.oC={dark:{backColor:"#2D2D2D",textColor:"#bfbfbf",iconUrl:"dicons"},normal:{backColor:"#F3F1EC",textColor:"#c61b1b",iconUrl:"icons"},light:{backColor:"#EBF8FC",textColor:"#017fb4",iconUrl:"licons"}},n.enableAutoResize&&(i.M.Ns=n.enableAutoResize),n.enableStreetEntrance===t&&(i.M.gD=n.enableStreetEntrance),n.enableDeepZoom===t&&(i.M.SK=n.enableDeepZoom);var r=i.M.VU;if(J())for(var o=0,a=r.length;o<a;o++)if(A.ga[r[o]]){i.M.devicePixelRatio=1;break}for(r=-1<navigator.userAgent.toLowerCase().indexOf("android"),o=-1<navigator.userAgent.toLowerCase().indexOf("mqqbrowser"),(-1<navigator.userAgent.toLowerCase().indexOf("UCBrowser")||r&&o)&&(i.M.TF=99),i.cb=e,i.wB(e),e.unselectable="on",e.innerHTML="",e.appendChild(i.Ba()),n.size&&this.He(n.size),r=i.zb(),i.width=r.width,i.height=r.height,i.offsetX=0,i.offsetY=0,i.platform=e.firstChild,i.Ee=i.platform.firstChild,i.Ee.style.width=i.width+"px",i.Ee.style.height=i.height+"px",i.ce={},i.he=new L(0,0),i.Vb=new L(0,0),i.Za=3,i.Bc=0,i.zC=q,i.yC=q,i.Ob="",i.Mw="",i.Oh={},i.Oh.custom={},i.Ni={},i.$a=0,n.useWebGL===t&&Qa(t),i.W=new Ra(e,{Ye:"api",IS:p}),i.W.aa(),i.W.oF(i),n=n||{},r=i.Ua=i.M.Ua,i.Fc=r.uj(),r&&r.rF(i.M.Ma),r===Sa&&Ta(za),r===Ua&&Ta(Ba),(r=i.M).PO=Math.round(n.minZoom),r.OO=Math.round(n.maxZoom),i.av(),i.ba={Oc:t,pc:0,Ct:0,uM:0,P4:0,dC:t,WE:-1,xe:[]},i.platform.style.cursor=i.M.Ac,o=0;o<D.Gr.length;o++)D.Gr[o](i);i.ba.WE=o,i.ha(),Wa.load("map",function(){i.ob()}),i.M.um&&(setTimeout(function(){Ta(Ca)},1e3),Wa.load("mapclick",function(){window.MPC_Mgr=window.MPC_Mgr||{},window.MPC_Mgr[i.da]=new Xa(i)},p)),Ya()&&Wa.load("oppc",function(){i.Qu()}),J()&&Wa.load("opmb",function(){i.Qu()}),e=q,i.KB=[]}}function Ta(e,n){if(e){n=n||{};var i,r="";for(i in n)r=r+"&"+i+"="+encodeURIComponent(n[i]);function o(t){t&&(ub=p,setTimeout(function(){vb.src=D.td+"images/blank.gif?"+t.src},50))}function a(){var t=wb.shift();t&&o(t)}i=(1e8*Math.random()).toFixed(0),ub?wb.push({src:"product=jsapi&sub_product=jsapi&v="+D.version+"&sub_product_v="+D.version+"&t="+i+"&code="+e+"&da_src="+e+r}):o({src:"product=jsapi&sub_product=jsapi&v="+D.version+"&sub_product_v="+D.version+"&t="+i+"&code="+e+"&da_src="+e+r}),xb||(A.V(vb,"load",function(){ub=t,a()}),A.V(vb,"error",function(){ub=t,a()}),xb=p)}}function yb(t){var e={duration:1e3,Nc:30,Yo:0,dc:zb.CM,Nt:u()};if(this.fg=[],t)for(var n in t)e[n]=t[n];if(ab((this.m=e).Yo)){var i=this;setTimeout(function(){i.start()},e.Yo)}else e.Yo!=Ab&&this.start()}function Bb(t){var e=gb();e>=t.Qz?(bb(t.m.Ba)&&t.m.Ba(t.m.dc(1)),bb(t.m.finish)&&t.m.finish(),0<t.fg.length&&((e=t.fg[0]).fg=[].concat(t.fg.slice(1)),e.start())):(t.yy=t.m.dc((e-t.Su)/t.m.duration),bb(t.m.Ba)&&t.m.Ba(t.yy),t.FF||(t.Yr=setTimeout(function(){Bb(t)},1e3/t.m.Nc)))}function Cb(t,e){var n=t.style;n.left=e[0]+"px",n.top=e[1]+"px"}function Db(t){0<A.ga.oa?t.unselectable="on":t.style.MozUserSelect="none"}function Eb(t){return t&&t.parentNode&&11!==t.parentNode.nodeType}function Fb(t,e){return A.U.Nx(t,"beforeEnd",e),t.lastChild}function Gb(t){for(var e={left:0,top:0};t&&t.offsetParent;)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e}function na(t){(t=window.event||t).stopPropagation?t.stopPropagation():t.cancelBubble=p}function Hb(e){return(e=window.event||e).preventDefault?e.preventDefault():e.returnValue=t,t}function oa(t){return na(t),Hb(t)}function Ib(){var t=document.documentElement,e=document.body;return t&&(t.scrollTop||t.scrollLeft)?[t.scrollTop,t.scrollLeft]:e?[e.scrollTop,e.scrollLeft]:[0,0]}function Jb(t,e){if(t&&e)return Math.round(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)))}function Kb(t,e){var n,i=[];e=e||function(t){return t};for(n in t)i.push(n+"="+e(t[n]));return i.join("&")}function H(t,e,n){var i=document.createElement(t);return n&&(i=document.createElementNS(n,t)),A.U.iF(i,e||{})}function Za(t){return t.currentStyle?t.currentStyle:t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,q):void 0}function bb(t){return"function"==typeof t}function ab(t){return"number"==typeof t}function db(t){return"string"==typeof t}function Lb(t){return void 0!==t}function Mb(t){return"object"==typeof t}function Ob(t){for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n)<<1,r=i=i.toString(2);i.length<8&&(r=(r="00000000"+i).substr(i.length,8)),e+=r}for(t=5-e.length%5,i=[],n=0;n<t;n++)i[n]="0";for(e=i.join("")+e,r=[],n=0;n<e.length/5;n++)i=e.substr(5*n,5),r.push(String.fromCharCode(parseInt(i,2)+50));return r.join("")+t.toString()}function Pb(t){var e,n,i,r="",o="",a="",s=0;if(i=/[^A-Za-z0-9\+\/\=]/g,!t||i.exec(t))return t;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=(e=Nb.indexOf(t.charAt(s++)))<<2|(n=Nb.indexOf(t.charAt(s++)))>>4,n=(15&n)<<4|(i=Nb.indexOf(t.charAt(s++)))>>2,o=(3&i)<<6|(a=Nb.indexOf(t.charAt(s++))),r+=String.fromCharCode(e),64!=i&&(r+=String.fromCharCode(n)),64!=a&&(r+=String.fromCharCode(o)),s<t.length;);return r}function J(){return!(!A.platform.mE&&!A.platform.MY&&!A.platform.yj)}function Ya(){return!(!A.platform.pM&&!A.platform.iM&&!A.platform.TY)}function gb(){return(new Date).getTime()}function Qb(){var e=document.body.appendChild(H("div"));e.innerHTML='<v:shape id="vml_tester1" adj="1" />';var n=e.firstChild;return n.style?(n.style.behavior="url(#default#VML)",n=n?"object"==typeof n.adj:p,e.parentNode.removeChild(e),n):t}function Rb(){return!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape","1.1")}function Sb(){return!!H("canvas").getContext}function U(t){return t*Math.PI/180}function Tb(e,r,n){r.EE||(r.EE=[],r.handle={}),r.EE.push({filter:n,Rs:e}),r.addEventListener||(r.addEventListener=function(t,e){r.attachEvent("on"+t,e)}),r.handle.click||(r.addEventListener("click",function(n){for(var i=n.target||n.srcElement;i!=r;)Ub(r.EE,function(t,e){RegExp(e.filter).test(i.getAttribute("filter"))&&e.Rs.call(i,n,i.getAttribute("filter"))}),i=i.parentNode},t),r.handle.click=p)}function Ub(t,e){for(var n=0,i=t.length;n<i;n++)e(n,t[n])}function Vb(t){var e=window.TILE_VERSION,n="20190410";return e&&e.ditu&&((e=e.ditu)[t]&&e[t].updateDate&&(n=e[t].updateDate)),n}function sc(e,n,i){for(var r=Yb,o=0;o<r;o+=2)if(e.lng>=n[o]&&e.lng<=n[o+1]&&e.lat>=i[o]&&e.lat<=i[o+1])return p;return t}function tc(t){var e=t.lng,n=t.lat;t=Math.sqrt(e*e+n*n)+Math.sin(n*gc*jc)*hc,e=Math.atan2(n,e)+Math.cos(e*gc*jc)*ic;return{lng:t*Math.cos(e)+kc,lat:t*Math.sin(e)+lc}}function uc(t){var e=vc,n={},i=t.lng,r=t.lat,o=1,a=t.lng,s=t.lat,u=i-o,h=0,c=r+o,p=0,f=i-o,d=0,y=r-o,m=0,g=i+o,v=0,x=r-o,_=0,w=i+o,b=0,P=r+o,S=0;c=u=0;if(xc(u=(c=wc(e,i,r)).lng,c=c.lat,a,s)<=1e-6)return n.lng=i,n.lat=r,n;for(;;){if(f=u=i-o,x=y=r-o,w=g=i+o,P=c=r+o,h=(i=wc(e,u,c)).lng,p=i.lat,d=(i=wc(e,f,y)).lng,m=i.lat,v=(i=wc(e,g,x)).lng,_=i.lat,b=(i=wc(e,w,P)).lng,S=i.lat,i=xc(h,p,a,s),h=xc(d,m,a,s),d=xc(v,_,a,s),b=xc(b,S,a,s),i<1e-6)return n.lng=u,n.lat=c,n;if(h<1e-6)return n.lng=f,n.lat=y,n;if(d<1e-6)return n.lng=g,n.lat=x,n;if(b<1e-6)return n.lng=w,n.lat=P,n;if(xc(u=(c=wc(e,i=(u*(v=1/i)+f*(h=1/h)+g*(d=1/d)+w*(b=1/b))/(v+h+d+b),r=(c*v+y*h+x*d+P*b)/(v+h+d+b))).lng,c=c.lat,a,s)<=1e-6)return n.lng=i,n.lat=r,n;if((o*=.6)<1e-6){t:{for(n=(t.lng+.03-(t.lng-.03))/1e-4+.5,o=(t.lat+.03-(t.lat-.03))/1e-4+.5,a=t.lng*rc,s=t.lat*rc,u=a-(y=1e-4*rc),c=a+y,f=s-y,g=s+y,v=h=d=b=l,w=h=y=x=d=b=0,e(t),v=l,P=0;P<=n;P++){for(i=0;i<=o;i++)if(v=e(l),b=l.lng*rc,d=l.lat*rc,h=v.lng*rc,v=v.lat*rc,!(h<u||v<f||c<h||g<v)){if(b-=h,d-=v,(h=Math.sqrt((a-h)*(a-h)+(s-v)*(s-v)))<1){(n={}).lng=l.lng,n.lat=l.lat;break t}x+=1*b/h,y+=1*d/h,w+=1/h}x/=w*rc,y/=w*rc}e=x*rc/rc,o=y*rc/rc,(n={}).lng=t.lng+e,n.lat=t.lat+o}return n}}}function wc(t,e,n){return t=t({lng:e,lat:n}),(e={}).lng=t.lng,e.lat=t.lat,e}function yc(t,e,n,i){var r=arguments.length;this.Gg={},this.Ng={},0!==r&&4===r&&this.normalize(t,e,n,i)}function zc(t,e,n,i){this.mu={lng:t,lat:e},this.ex={lng:n,lat:i},this.$x=new yc(t,e,n,i)}function Ac(t,e){var n=t.lat*jc,i=e.lat*jc,r=n-i,o=t.lng*jc-e.lng*jc;return 2*Math.asin(Math.sqrt(Math.sin(r/2)*Math.sin(r/2)+Math.cos(n)*Math.cos(i)*Math.sin(o/2)*Math.sin(o/2)))*qc}function xc(t,e,n,i){return Math.sqrt((t-n)*(t-n)+(e-i)*(e-i))}function Bc(t,e,n){return(e.lng-t.lng)*(n.lat-t.lat)-(n.lng-t.lng)*(e.lat-t.lat)}function vc(t){var e={};if(t.lng<Wb[0]-.4||t.lat<Wb[1]-.4||t.lng>Wb[2]+.4||t.lat>Wb[3]+.4)return e.lng=t.lng,e.lat=t.lat,e;if(sc(t,ec,fc))return tc(t);e=0;var n=mc,i=0,r=new yc,o=0;for(i=0;i<ac;++i)dc[i]<=t.lat?dc[(i+1)%ac]>t.lat&&0<Bc({lng:cc[i],lat:dc[i]},{lng:cc[(i+1)%ac],lat:dc[(i+1)%ac]},t)&&++o:dc[(i+1)%ac]<=t.lat&&Bc({lng:cc[i],lat:dc[i]},{lng:cc[(i+1)%ac],lat:dc[(i+1)%ac]},t)<0&&--o;if((0===o?nc:oc)===nc){for(o=0;o<ac;++o)if(i=new zc(cc[o],dc[o],cc[(o+1)%ac],dc[(o+1)%ac]),r.Gg.lng=i.$x.Gg.lng-.5,r.Gg.lat=i.$x.Gg.lat-.5,r.Ng.lng=i.$x.Ng.lng+.5,r.Ng.lat=i.$x.Ng.lat+.5,r.contains(t)!==nc){var a,s=i.mu.lng,l=i.mu.lat,u=i.ex.lng,h=i.ex.lat;a=h-l;var c=s-u;a=Math.abs(a-0)>pc||Math.abs(c-0)>pc?(s=u*l-s*h,{lng:(c*(l=c*t.lng-a*t.lat)-a*s)/(u=a*a-c*c),lat:-(a*l+c*s)/u}):i.mu,l=-(c=180),u=-(s=90),u=i.mu,h=i.ex,c=u.lng<h.lng?u.lng:h.lng,s=u.lat<h.lat?u.lat:h.lat,l=u.lng<h.lng?u.lng:h.lng,u=u.lat<h.lat?u.lat:h.lat,(i=a.lng<=l&&a.lng>=c&&a.lng<=u&&a.lat>=s?(i=t.lat*jc,c=t.lng*jc,s=a.lat*jc,a=a.lng*jc,(i=(l=Math.cos(i)*Math.cos(s))*Math.cos(c)*Math.cos(a)+l*Math.sin(c)*Math.sin(a)+Math.sin(i)*Math.sin(s))<-1?i=-1:1<i&&(i=1),Math.acos(i)*qc):(a=Ac(t,i.mu))<(i=Ac(t,i.ex))?a:i)<n&&(n=i)}n<mc&&(e=(mc-n)/mc)}else e=1;return n=tc(t),{lng:t.lng+(n.lng-t.lng)*e,lat:t.lat+(n.lat-t.lat)*e}}function Cc(t){var e={};if(t.lng<Xb[0]-.4||t.lat<Xb[1]-.4||t.lng>Xb[2]+.4||t.lat>Xb[3]+.4)return e.lng=t.lng,e.lat=t.lat,e;if(sc(t,Zb,$b)){e=t.lng-kc;var n=t.lat-lc;t=Math.sqrt(e*e+n*n)-Math.sin(n*gc*jc)*hc,e=Math.atan2(n,e)-Math.cos(e*gc*jc)*ic;return{lng:t*Math.cos(e),lat:t*Math.sin(e)}}return n=vc(t),t.lng===n.lng&&t.lat===n.lng?(e.lng=t.lng,e.lat=t.lat,e):uc(t)}function $a(t,e){if(3===e&&t instanceof Q){var n=vc(t);return new L(n.lng,n.lat)}return t}function eb(t,e){if(3===e&&t instanceof L){var n=Cc(t);return new Q(n.lng,n.lat)}return 5===e&&t instanceof L?new Q(t.lng,t.lat):t}function qa(e,n){if(n){var i=(1e5*Math.random()).toFixed(0);D._rd["_cbk"+i]=function(t){n&&n(t),delete D._rd["_cbk"+i]},e+="&callback=BMap._rd._cbk"+i}e=e+"&v=3.0&seckey="+pa;var r=H("script",{type:"text/javascript"});r.charset="utf-8",r.src=e,r.addEventListener?r.addEventListener("load",function(t){(t=t.target).parentNode.removeChild(t)},t):r.attachEvent&&r.attachEvent("onreadystatechange",function(){var t=window.event.srcElement;!t||"loaded"!=t.readyState&&"complete"!=t.readyState||t.parentNode.removeChild(t)}),setTimeout(function(){document.getElementsByTagName("head")[0].appendChild(r),r=q},1)}function Qgq(t){return Tgq&&!!Sgq[Rgq+t+"_"+Dc[t]]}function Wa(){}function R(t,e){this.x=t||0,this.y=e||0,this.x=this.x,this.y=this.y}function N(t,e){this.width=t||0,this.height=e||0}function nb(t,e,n){var i=new XMLHttpRequest;i.open("POST",t,p),i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),i.timeout=1e4,i.ontimeout=u(),i.onreadystatechange=function(){4===this.readyState&&200===this.status&&n&&n(i.responseText)},i.send(e)}function mb(t,e){t&&(this.Mb=t,this.da="spot"+mb.da++,e=e||{},this.ih=e.text||"",this.Iv=e.offsets?e.offsets.slice(0):[5,5,5,5],this.IB=e.userData||q,this.Qh=e.minZoom||q,this.Nf=e.maxZoom||q)}function Ec(){this.P=q,this.Nb="control",this.Wa=this.$J=p}function ob(e){Ec.call(this),e=e||{},this.m={Mg:t,yF:e.showZoomInfo||p,anchor:e.anchor,Ga:e.offset,type:e.type,HW:e.enableGeolocation||t},this.defaultAnchor=J()?3:Fc,this.defaultOffset=new N(10,10),this.wc(e.anchor),this.kn(e.type),this.Ef()}function Ic(e){Ec.call(this),e=e||{},this.m={anchor:e.anchor||Hc,Ga:e.offset||new N(10,30),R_:e.showAddressBar!==t,f3:e.enableAutoLocation||t,JM:e.locationIcon||q};var n=this;this.Uu=1200,n.O0=[],this.ue=[],Wa.load("geoctrl",function(){!function t(){if(0!==n.ue.length){var e=n.ue.shift();n[e.method].apply(n,e.arguments),t()}}(),n.XP()}),Ta(Ma)}function Jc(e){Ec.call(this),e=e||{},this.m={Mg:t,anchor:e.anchor,Ga:e.offset},this.gc=[],this.defaultAnchor=Hc,this.defaultOffset=new N(5,2),this.wc(e.anchor),this.$J=t,this.Ef()}function qb(e){Ec.call(this),e=e||{},this.m={Mg:t,size:e.size||new N(150,150),padding:5,eb:e.isOpen===p?p:t,g1:4,Ga:e.offset,anchor:e.anchor},this.defaultAnchor=3,this.defaultOffset=new N(0,0),this.Hq=this.Iq=13,this.wc(e.anchor),this.He(this.m.size),this.Ef()}function Kc(e){Ec.call(this),e=e||{},this.defaultAnchor=Fc,this.pV=e.canCheckSize===t?t:p,this.lj="",this.defaultOffset=new N(10,10),this.onChangeBefore=[],this.onChangeAfter=[],this.onChangeSuccess=[],this.m={Mg:t,Ga:e.offset||this.defaultOffset,anchor:e.anchor||this.defaultAnchor,expand:!!e.expand},e.onChangeBefore&&bb(e.onChangeBefore)&&this.onChangeBefore.push(e.onChangeBefore),e.onChangeAfter&&bb(e.onChangeAfter)&&this.onChangeAfter.push(e.onChangeAfter),e.onChangeSuccess&&bb(e.onChangeSuccess)&&this.onChangeSuccess.push(e.onChangeSuccess),this.wc(e.anchor),this.Ef()}function pb(e){Ec.call(this),e=e||{},this.m={Mg:t,color:"black",hd:"metric",Ga:e.offset},this.defaultAnchor=Hc,this.defaultOffset=new N(81,18),this.wc(e.anchor),this.Zh={metric:{name:"metric",pK:1,dM:1e3,IO:"米",JO:"公里"},us:{name:"us",pK:3.2808,dM:5280,IO:"英尺",JO:"英里"}},this.Zh[this.m.hd]||(this.m.hd="metric"),this.TI=q,this.oI={},this.Ef()}function rb(e){Ec.call(this),e=e||{},this.defaultAnchor=Gc,this.defaultOffset=new N(10,10),this.m={Mg:t,vh:[Pa,cb,Ua,Sa],$V:["B_DIMENSIONAL_MAP","B_SATELLITE_MAP","B_NORMAL_MAP"],type:e.type||Lc,Ga:e.offset||this.defaultOffset,LW:p},this.wc(e.anchor),"[object Array]"==Object.prototype.toString.call(e.mapTypes)&&(this.m.vh=e.mapTypes.slice(0)),this.Ef()}function Mc(e){Ec.call(this),e=e||{},this.m={Mg:t,Ga:e.offset,anchor:e.anchor},this.Wi=t,this.gw=q,this.yI=new Nc({Ye:"api"}),this.zI=new Oc(q,{Ye:"api"}),this.defaultAnchor=Gc,this.defaultOffset=new N(10,10),this.wc(e.anchor),this.Ef(),Ta(ya)}function Pc(e){A.lang.Ja.call(this),this.m={cb:q,cursor:"default"},this.m=A.extend(this.m,e),this.Nb="contextmenu",this.P=q,this.Da=[],this.Pf=[],this.Ke=[],this.Vw=this.ss=q,this.Ph=t;var n=this;Wa.load("menu",function(){n.ob()})}function Sc(t,e,n){if(t&&bb(e)){A.lang.Ja.call(this),this.m={width:100,id:"",Km:""},n=n||{},this.m.width=1*n.width?n.width:100,this.m.id=n.id?n.id:"",this.m.Km=n.iconUrl?n.iconUrl:"",this.ih=t+"",this.vz=e,this.P=q,this.Nb="menuitem",this.Vr=this.yv=this.R=this.Kh=q,this.Nh=p;var i=this;Wa.load("menu",function(){i.ob()})}}function jb(t,e){t&&!e&&(e=t),this.Ne=this.be=this.Te=this.ee=this.Xl=this.Hl=q,t&&(this.Xl=new Q(t.lng,t.lat),this.Hl=new Q(e.lng,e.lat),this.Te=t.lng,this.ee=t.lat,this.Ne=e.lng,this.be=e.lat)}function Q(t,e){isNaN(t)&&(t=Pb(t),t=isNaN(t)?0:t),db(t)&&(t=parseFloat(t)),isNaN(e)&&(e=Pb(e),e=isNaN(e)?0:e),db(e)&&(e=parseFloat(e)),this.lng=t,this.lat=e}function L(t,e){isNaN(t)&&(t=Pb(t),t=isNaN(t)?0:t),db(t)&&(t=parseFloat(t)),isNaN(e)&&(e=Pb(e),e=isNaN(e)?0:e),db(e)&&(e=parseFloat(e)),this.lng=t,this.lat=e,this.Ye="inner"}function Tc(){}function Uc(){}function Vc(){this.Qa=[];var t=this;Wa.load("convertor",function(){t.VP()})}function T(){}function lb(){this.lj="bj"}function Wc(){this.Nb="overlay"}function kb(){A.lang.Ja.call(this),Wc.call(this),this.map=q,this.Wa=p,this.Fb=q,this.kH=0}function Xc(){this.map=q,this.ta={},this.Je=[]}function Zc(e){kb.call(this),e=e||{},this.K={strokeColor:e.strokeColor||"#3a6bdb",tc:e.strokeWeight||5,zd:e.strokeOpacity||.65,strokeStyle:e.strokeStyle||"solid",qj:e.enableMassClear===t?t:p,Hk:q,Cm:q,pf:e.enableEditing===p?p:t,SM:5,M0:t,mf:e.enableClicking===t?t:p,oi:e.icons&&0<e.icons.length?e.icons:q,eX:e.geodesic===p?p:t,zE:e.linkRight===p?p:t},this.K.tc<=0&&(this.K.tc=5),(this.K.zd<0||1<this.K.zd)&&(this.K.zd=.65),(this.K.zg<0||1<this.K.zg)&&(this.K.zg=.65),"solid"!=this.K.strokeStyle&&"dashed"!=this.K.strokeStyle&&(this.K.strokeStyle="solid"),this.ca=q,this.Tu=new jb(0,0),this.kf=[],this.uc=[],this.Xa={}}function $c(t){kb.call(this),this.ca=this.map=q,this.K={width:0,height:0,Ga:new N(0,0),opacity:1,background:"transparent",Vx:1,AM:"#000",YY:"solid",point:q},this.SN(t),this.point=this.K.point}function ad(t,e,n){t&&e&&(this.imageUrl=t,this.size=e,t=new N(Math.floor(e.width/2),Math.floor(e.height/2)),t=(n=n||{}).anchor||t,e=n.imageOffset||new N(0,0),this.imageSize=n.imageSize,this.anchor=t,this.imageOffset=e,this.infoWindowAnchor=n.infoWindowAnchor||this.anchor,this.printImageUrl=n.printImageUrl||"")}function bd(t,e){if(t){e=e||{},this.style={anchor:e.anchor||new N(0,0),fillColor:e.fillColor||"#000",zg:e.fillOpacity||0,scale:e.scale||1,rotation:e.rotation||0,strokeColor:e.strokeColor||"#000",zd:e.strokeOpacity||1,tc:e.strokeWeight},this.Nb="number"==typeof t?t:"UserDefined",this.Mi=this.style.anchor,this.ur=new N(0,0),this.anchor=q,this.iB=t;var n=this;Wa.load("symbol",function(){n.Ln()},p)}}function cd(e,n,i,r){e&&(this.Nv={},this.$K=r?!!r:t,this.$c=[],this.f0=e instanceof bd?e:q,this.EI=n===l?p:!!(n.indexOf("%")+1),this.jk=isNaN(parseFloat(n))?1:this.EI?parseFloat(n)/100:parseFloat(n),this.FI=!!(i.indexOf("%")+1),this.repeat=i!=l?this.FI?parseFloat(i)/100:parseFloat(i):0)}function dd(e,n){A.lang.Ja.call(this),this.content=e,this.map=q,n=n||{},this.K={width:n.width||0,height:n.height||0,maxWidth:n.maxWidth||730,Ga:n.offset||new N(0,0),title:n.title||"",FE:n.maxContent||"",oh:n.enableMaximize||t,Ms:n.enableAutoPan===t?t:p,YC:n.enableCloseOnClick===t?t:p,margin:n.margin||[10,10,40,10],nC:n.collisions||[[10,10],[10,10],[10,10],[10,10]],rY:t,wZ:n.onClosing||ea(p),TK:t,cD:n.enableParano===p?p:t,message:n.message,fD:n.enableSearchTool===p?p:t,Ex:n.headerContent||"",ZC:n.enableContentScroll||t},0!=this.K.width&&(this.K.width<220&&(this.K.width=220),730<this.K.width)&&(this.K.width=730),0!=this.K.height&&(this.K.height<60&&(this.K.height=60),650<this.K.height)&&(this.K.height=650),0!=this.K.maxWidth&&(this.K.maxWidth<220&&(this.K.maxWidth=220),730<this.K.maxWidth)&&(this.K.maxWidth=730),this.me=t,this.Hi=I.ua,this.ub=q;var i=this;Wa.load("infowindow",function(){i.ob()})}function ed(e,n){kb.call(this),this.content=e,this.ca=this.map=q,n=n||{},this.K={width:0,Ga:n.offset||new N(0,0),hq:{backgroundColor:"#fff",border:"1px solid #f00",padding:"1px",whiteSpace:"nowrap",font:"12px "+I.fontFamily,zIndex:"80",MozUserSelect:"none"},position:n.position||q,qj:n.enableMassClear===t?t:p,mf:p,left:n.left===p?p:t,right:n.right===p?p:t},this.K.width<0&&(this.K.width=0),Lb(n.enableClicking)&&(this.K.mf=n.enableClicking),this.point=this.K.position;var i=this;Wa.load("marker",function(){i.ob()})}function fd(e,n){if(0!==arguments.length){kb.apply(this,arguments),n=n||{},this.K={jb:e,opacity:n.opacity||1,yp:n.imageURL||"",Ds:n.displayOnMinLevel||1,qj:n.enableMassClear===t?t:p,Cs:n.displayOnMaxLevel||19,$_:n.stretch||t},0===n.opacity&&(this.K.opacity=0);var i=this;Wa.load("groundoverlay",function(){i.ob()})}}function id(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))}function jd(t,e){var n=this;id()&&(t===l&&ba(Error("没有传入points数据")),"[object Array]"!==Object.prototype.toString.call(t)&&ba(Error("points数据不是数组")),e=e||{},kb.apply(n,arguments),n.ia={ja:t},n.K={shape:e.shape||gd,size:e.size||hd,color:e.color||"#fa937e",qj:p},this.fB=[],this.ue=[],Wa.load("pointcollection",function(){for(var t,e=0;t=n.fB[e];e++)n[t.method].apply(n,t.arguments);for(e=0;t=n.ue[e];e++)n[t.method].apply(n,t.arguments)}))}function W(e,n){kb.call(this),n=n||{},this.point=e,this.Ma=(this.Eq=this.map=q)?this.map.M.Ma:5,this.K={Ga:n.offset||new N(0,0),Be:n.icon||kd,Yk:ld,title:n.title||"",label:q,YJ:n.baseZIndex||0,mf:p,K6:t,rE:t,qj:n.enableMassClear===t?t:p,jc:t,BN:n.raiseOnDrag===p?p:t,IN:t,Kd:n.draggingCursor||I.Kd,rotation:n.rotation||0,left:n.left===p?p:t,right:n.right===p?p:t},n.icon&&!n.shadow&&(this.K.Yk=q),n.enableDragging&&(this.K.jc=n.enableDragging),Lb(n.enableClicking)&&(this.K.mf=n.enableClicking);var i=this;Wa.load("marker",function(){i.ob()})}function md(t){this.options=t||{},this.AZ=this.options.paneName||"labelPane",this.zIndex=this.options.zIndex||0,this.HV=this.options.contextType||"2d"}function nd(t){var e=t.P.zb();(t=t.canvas).width=e.width,t.height=e.height,t.style.width=t.width+"px",t.style.height=t.height+"px"}function od(t){var e=(window.devicePixelRatio||1)/(t.UU||t.F6||t.c5||t.d5||t.h5||t.UU||1),n=t.canvas.width,i=t.canvas.height;t.canvas.width=n*e,t.canvas.height=i*e,t.canvas.style.width=n+"px",t.canvas.style.height=i+"px",t.scale(e,e)}function pd(t,e){Zc.call(this,e),e=e||{},this.K.zg=e.fillOpacity?e.fillOpacity:.65,this.K.fillColor=""==e.fillColor?"":e.fillColor?e.fillColor:"#fff",this.Sd(t);var n=this;Wa.load("poly",function(){n.ob()})}function qd(t,e){Zc.call(this,e),this.Nr(t);var n=this;Wa.load("poly",function(){n.ob()})}function rd(t,e,n){this.point=t,this.Fa=Math.abs(e),pd.call(this,[],n)}function td(t){this.map=t,this.Cj=[],this.dg=[],this.Qg=[],this.iV=300,this.UE=0,this.Ig={},this.jj={},this.Ok=0,this.kE=p,this.XV={},this.fo=this.Oq(1),this.tg=this.Oq(2),this.Il=this.Oq(3),this.lg=this.Oq(4),t.platform.appendChild(this.fo),t.platform.appendChild(this.tg),t.platform.appendChild(this.Il),t.platform.appendChild(this.lg);var e=(e=3*(n=256*Math.pow(2,15)))-(t=T.Ya(new L(180,0)).lng),n=-3*n,i=T.Ya(new L(-180,0)).lng;this.OA=t,this.PA=i,this.LA=e+(i-n),this.iI=t-i}function Ad(e,n,i,r,o){this.Pm=e,this.position=i,this.Zu=[],this.name=e.TD(r,o),this.info=r,this.vJ=o.At(),Db(r=H("img")),r.fL=t;var a=r.style;e=e.map.ya();a.position="absolute",a.border="none",a.width=e.Nd()+"px",a.height=e.Nd()+"px",a.left=i[0]+"px",a.top=i[1]+"px",a.maxWidth="none",this.Hb=r,this.src=n,Cd&&(this.Hb.style.opacity=0);var s=this;this.Hb.onload=function(){if(D.ZY.JQ(),s.loaded=p,s.Pm){var t=s.Pm,e=t.jj;e[s.name]||(t.UE++,e[s.name]=s),s.Hb&&!Eb(s.Hb)&&o.Kb&&(o.Kb.appendChild(s.Hb),A.ga.oa<=6&&0<A.ga.oa&&s.vJ&&(s.Hb.style.cssText=s.Hb.style.cssText+';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+s.src+'",sizingMethod=scale);'));var n,i=t.UE-t.iV;for(n in e){if(i<=0)break;if(!t.Ig[n]){e[n].Pm=q;var r=e[n].Hb;r&&r.parentNode&&(r.parentNode.removeChild(r),Bd(r)),r=q,e[n].Hb=q,delete e[n],t.UE--,i--}}Cd&&new yb({Nc:20,duration:200,Ba:function(t){s.Hb&&s.Hb.style&&(s.Hb.style.opacity=1*t)},finish:function(){s.Hb&&s.Hb.style&&delete s.Hb.style.opacity}}),xd(s)}},this.Hb.onerror=function(){if(xd(s),s.Pm){var t=s.Pm.map.ya();t.m.iD&&(s.error=p,s.Hb.src=t.m.iD,s.Hb&&!Eb(s.Hb)&&o.Kb.appendChild(s.Hb))}},r=q}function zd(t,e){t.Zu.push(e)}function xd(t){for(var e=0;e<t.Zu.length;e++)t.Zu[e]();t.Zu.length=0}function Bd(t){if(t){t.onload=t.onerror=q;var e,n,i,r=t.attributes;if(r)for(n=r.length,e=0;e<n;e+=1)bb(t[i=r[e].name])&&(t[i]=q);if(r=t.children)for(n=r.length,e=0;e<n;e+=1)Bd(t.children[e])}}function yd(t,e){t.src=e,t.eo()}function wd(e){this.af=e||{},this.JV=this.af.copyright||q,this.G0=this.af.transparentPng||t,this.Gw=this.af.baseLayer||t,this.zIndex=this.af.zIndex||0,this.da=wd.sS++}function Dd(t){wd.call(this,t),this.m=t||{},this.nM=p,this.m.predictDate&&((this.m.predictDate.weekday<1||7<this.m.predictDate.weekday)&&(this.m.predictDate=1),(this.m.predictDate.hour<0||23<this.m.predictDate.hour)&&(this.m.predictDate.hour=0)),this.sU=D.url.proto+D.url.domain.traffic+"/traffic/"}function sb(t,e){wd.call(this);var n=this;this.nM=p;try{document.createElement("canvas").getContext("2d")}catch(t){}(e=Mb(t)?t||{}:(n.Rn=t,e||{})).geotableId&&(n.If=e.geotableId),e.databoxId&&(n.Rn=e.databoxId);var i=D.td+"geosearch";n.fb={vN:e.pointDensity||Gd,mY:i+"/detail/",nY:i+"/v2/detail/",QJ:e.age||36e5,Ut:e.q||"",n0:"png",w4:[5,5,5,5],VY:{backgroundColor:"#FFFFD5",borderColor:"#808080"},YB:e.ak||ra,rO:e.tags||"",filter:e.filter||"",iO:e.sortby||"",ZD:e.hotspotName||"tile_md_"+(1e5*Math.random()).toFixed(0),SF:p},Wa.load("clayer",function(){n.Dd()})}function Id(t,e){this.nd=t,this.ZP=18,this.m={Py:256,Fc:new T},A.extend(this.m,e||{})}function Vd(t,e,n){if(/^tielu|^MapRes\/tielu/.test(t)){if("off"===window[n+"zoomFrontStyle"][e].bmapRailwayVisibility)return[];var i="#ffffff",r="#949494";if(window[n+"zoomFrontStyle"]&&window[n+"zoomFrontStyle"][e]&&window[n+"zoomFrontStyle"][e].bmapRailwayStrokeColor&&(i=window[n+"zoomFrontStyle"][e].bmapRailwayStrokeColor),window[n+"zoomFrontStyle"]&&window[n+"zoomFrontStyle"][e]&&window[n+"zoomFrontStyle"][e].bmapRailwayFillColor&&(r=window[n+"zoomFrontStyle"][e].bmapRailwayFillColor),4<=e&&e<=9||10<=e&&e<=16)return[{stroke:i,Db:1.5,Bb:"butt",Cb:"round",yd:[10,11]},{stroke:r,Db:2,Bb:"round",Cb:"round"}];if(17<=e&&e<=18)return[{stroke:i,Db:2.5,Bb:"butt",Cb:"round",yd:[15,16]},{stroke:r,Db:5,Bb:"round",Cb:"round"}];if(19<=e&&e<=20)return[{stroke:i,Db:4.5,Bb:"butt",Cb:"round",yd:[25,26]},{stroke:r,Db:5,Bb:"round",Cb:"round"}]}else if(0===t.indexOf("ditie_zj")||0===t.indexOf("MapRes/ditie_zj")){if(12<=e&&e<=16)return[{stroke:"#868686",Db:1,Bb:"round",Cb:"round",yd:[7,4]}];if(17<=e&&e<=18||19<=e&&e<=20)return[{stroke:"#6e6e6e",Db:1,Bb:"round",Cb:"round",yd:[7,4]}]}else if(/^tongdaomian|^MapRes\/tongdaomian/.test(t)){if(17===e)return[{stroke:"#e5e5e5",Db:4,Bb:"square",Cb:"round"},{stroke:"#a8a8a8",Db:6,Bb:"square",Cb:"round"}];if(18===e)return[{stroke:"#e5e5e5",Db:6,Bb:"square",Cb:"round"},{stroke:"#a8a8a8",Db:8,Bb:"square",Cb:"round"}];if(19<=e&&e<=21)return[{stroke:"#e5e5e5",Db:8,Bb:"square",Cb:"round"},{stroke:"#a8a8a8",Db:10,Bb:"square",Cb:"round"}]}else if(/^jietizhongduan|^dixiatongdaojieti|^MapRes\/jietizhongduan|^MapRes\/dixiatongdaojieti/.test(t)){if(17===e)return[{stroke:"#e5e5e5",Db:4,Bb:"butt",Cb:"round",yd:[2,1]},{stroke:"#bebebe",Db:6,Bb:"butt",Cb:"round"}];if(18===e)return[{stroke:"#e5e5e5",Db:6,Bb:"butt",Cb:"round",yd:[3,1]},{stroke:"#bebebe",Db:8,Bb:"butt",Cb:"round"}];if(19<=e&&e<=21)return[{stroke:"#e5e5e5",Db:8,Bb:"butt",Cb:"round",yd:[4,2]},{stroke:"#bebebe",Db:10,Bb:"butt",Cb:"round"}]}else if(/^guojietianqiao|^MapRes\/guojietianqiao/.test(t))return 18===e?[{stroke:"#ffffff",Db:6,Bb:"butt",Cb:"round",yd:[4,2]},{stroke:"#bebebe",Db:8,Bb:"butt",Cb:"round"}]:[{stroke:"#ffffff",Db:8,Bb:"butt",Cb:"round",yd:[4,2]},{stroke:"#bebebe",Db:10,Bb:"butt",Cb:"round"}];return Td[t]||Td[t.replace("MapRes/","")]}function he(t){this.P=t,this.Lc=t.M.devicePixelRatio,this.f1=ge}function vd(e,n,i){i=i||{},this.P=e,this.ow=n,this.Lc=n.CN,this.fb={m0:"na",zIndex:0,tO:i.tileUrls||{http:["http://online0.map.bdimg.com/pvd/?qt=vtile","http://online1.map.bdimg.com/pvd/?qt=vtile","http://online2.map.bdimg.com/pvd/?qt=vtile","http://online3.map.bdimg.com/pvd/?qt=vtile","http://online4.map.bdimg.com/pvd/?qt=vtile"],https:["https://ss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile","https://ss1.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile","https://ss2.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile","https://ss3.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile","https://ss0.bdstatic.com/8bo_dTSlQ1gBo1vgoIiO_jowehsv/pvd/?qt=vtile"]},aE:i.iconUrls||["https://ss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/sty/map_icons2x/","https://ss1.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/sty/map_icons2x/"],wF:p},this.HB="",this.PS={};var r;i=i.urlOpts||{styles:"pl",extdata:1,textimg:0,mesh3d:0,limit:30};for(r in i)i.hasOwnProperty(r)&&(this.HB=this.HB+"&"+r+"="+i[r]);this.nh={},this.vs=[],this.Bt=0,this.Px=t,this.Jx={},e=this.fb.m0,e=Hd[e]?Hd[e]:(n=new Id(e,l),Hd[e]=n),this.Hd=e,this.P.Hd=this.Hd}function ie(t){var e=t.P,n=e.ef,i=t.Lc,r=(o=e.zb()).width,o=o.height,a=H("canvas");a.style.cssText="position: absolute;left:0;top:0;width:"+r+"px;height:"+o+"px;z-index:2;",a.width=r*i,a.height=o*i,t.Tx=a,t.Cp=a.getContext("2d"),t.Cp.scale(i,i),t.Cp.textBaseline="top",n.lg.appendChild(a),e.zS=a}function ke(e,o,a,s,l){var u=o+"_"+a+"_"+s,h=e.PS;if(h[u]){if("loading"===h[u].status)return}else h[u]={status:"init",JN:0};var c=e,f=c.P,n="0"===D.Au?c.fb.tO.http:c.fb.tO.https,i=Math.abs(o+a)%n.length,r="x="+o+"&y="+a+"&z="+s,d=(y=le(e.ow)).UF,y=y.QF,m="_"+(o<0?"_":"")+(a<0?"$":"")+parseInt(Math.abs(o)+""+Math.abs(a)+s,10).toString(36);r=r+e.HB+"v="+d+"&udt="+y+"&fn=window."+m,d=n[i]+"&"+r,d=n[i]+"&param="+window.encodeURIComponent(Ob(r));window[m]=function(e){if(clearTimeout(h[u].dl),h[u]=q,e){var n,i=f.la();t:{for(n=0;n<c.Ww.length;n++){var r=c.Ww[n];if(r[0]===o&&r[1]===a&&r[3]===s){n=p;break t}}n=t}if(n!==t){if((n=new P("updateindoor")).IndoorCanvas=[],n.IndoorCanvas.push({canvasDom:l,data:e,canvasID:l.id,ratio:c.Lc}),f.dispatchEvent(n),f.M.yk){if(c.nh[l.id]={W0:e,k0:l,nm:o,an:a,CE:i},c.ow.PC.OC(e,l,o,a,i,c.Hd.Nd(i),c.Hd.LD(i),c.fb.aE),c.fb.wF){if((i=[]).l0=[o,a,s],e[0])for(n=0;n<e[0].length;n++)e[0][n][0]===Xd&&i.push({tM:e[0][n]});if(e[2])for(n=0;n<e[2].length;n++)i.push({WY:e[2][n]});l.HF=i,c.vs.push(i),c.Px===t&&c.Bt--,0!==c.Bt&&c.Px!==p||je(c)}}else c.Bt--,0!==c.Bt&&c.Px!==p||je(c);delete window[m]}}},qa(d),h[u].status="loading",c=e,h[u].dl=setTimeout(function(){h[u].JN<3?(h[u].JN++,h[u].status="init",ke(c,o,a,s,l)):h[u]=q},4e3)}function je(t){if(t.Tx){var e=t.P;if(t.Tx.style.left=-e.offsetX+"px",t.Tx.style.top=-e.offsetY+"px",(n=new P("updateindoorlabel")).labelCanvasDom=e.zS,e.dispatchEvent(n),e.M.yk){t.lm();var n=t.Hd,i=e.la(),r=n.Ws(e.la());t.ow.PC.LK(t.vs,t.fb.aE,t.Cp,n.Nd(i),Math.pow(2,i-r),i),"moving"!==t.I0&&e.dispatchEvent(new P("ontilesloaded"))}}}function ud(t){this.P=t.map,this.jf=[],this.Xr={},this.CN=this.P.M.devicePixelRatio,this.PC=new he(this.P),this.za()}function le(t){return t.VF||(t.VF={UF:"001",QF:Vb("normal")}),t.VF}function ne(t,e,n){this.nd=t,this.jf=e instanceof wd?[e]:e.slice(0),n=n||{},this.m={p0:n.tips||"",wE:"",kc:n.minZoom||4,qc:n.maxZoom||18,v4:n.minZoom||4,u4:n.maxZoom||18,Py:256,GF:n.textColor||"black",iD:n.errorImageUrl||"",jb:new jb(new Q(-21364736,-16023552),new Q(23855104,19431424)),Fc:n.projection||new T},1<=this.jf.length&&(this.jf[0].Gw=p),A.extend(this.m,n)}function Y(e,n){A.lang.Ja.call(this),this.md={},this.fn(e),(n=n||{}).na=n.renderOptions||{},this.m={na:{Aa:n.na.panel||q,map:n.na.map||q,vg:n.na.autoViewport||p,Yt:n.na.selectFirstResult,Im:n.na.highlightMode,jc:n.na.enableDragging||t},Mt:n.onSearchComplete||u(),gN:n.onMarkersSet||u(),fN:n.onInfoHtmlSet||u(),iN:n.onResultsHtmlSet||u(),eN:n.onGetBusListComplete||u(),dN:n.onGetBusLineComplete||u(),bN:n.onBusListHtmlSet||u(),aN:n.onBusLineHtmlSet||u(),ME:n.onPolylinesSet||u(),Qp:n.reqFrom||""},this.m.na.vg=void 0!==n&&void 0!==n.renderOptions&&void 0!==n.renderOptions.autoViewport?n.renderOptions.autoViewport:p,this.m.na.Aa=A.Ic(this.m.na.Aa)}function Pe(t,e,n){if(A.lang.Ja.call(this),t){for(var i in this.cb="object"==typeof t?t:A.Ic(t),this.page=1,this.Od=100,this.UJ="pg",this.bg=4,this.eK=e,t={page:1,o6:100,Od:100,bg:4,UJ:"pg",update:this.update=p},n=n||t)void 0!==n[i]&&(this[i]=n[i]);this.Ba()}}function hb(t,e){Y.call(this,t,e),(e=e||{}).renderOptions=e.renderOptions||{},this.gn(e.pageCapacity),void 0===e.renderOptions.selectFirstResult||e.renderOptions.selectFirstResult?this.aD():this.HC(),this.ta=[],this.Cf=[],this.La=-1,this.Qa=[];var n=this;Wa.load("local",function(){n.yz()},p)}function Re(t,e){Y.call(this,t,e)}function Se(e,n){Y.call(this,e,n),n=n||{},this.hn(n.policy),this.nF(n.intercityPolicy),this.sF(n.transitTypePolicy),this.gn(n.pageCapacity),this.Eb=Ee,this.En=ve,this.ta=[],this.La=-1,this.m.sl=n.enableTraffic||t,this.Qa=[];var i=this;Wa.load("route",function(){i.Dd()})}function Ue(e,n){Y.call(this,e,n),this.ta=[],this.La=-1,this.Qa=[];var i=this,r=this.m.na;1!==r.Im&&2!==r.Im&&(r.Im=1),this.Vn=this.m.na.jc?p:t,Wa.load("route",function(){i.Dd()}),this.Mx&&this.Mx()}function Ve(e,n){Ue.call(this,e,n),n=n||{},this.m.sl=n.enableTraffic||t,this.hn(n.policy),this.Eb=Fe,this.En=Be}function We(e,n){Ue.call(this,e,n),this.Eb=Ge,this.En=Ae,this.Vn=t}function Xe(e,n){Ue.call(this,e,n),n=n||{},this.m.sl=n.enableTraffic||t,this.KS=n.renderOptions.lineType||0,this.Eb=Fe,this.En=Be}function Ye(e,n){Ue.call(this,e,n),this.Eb=Me,this.En=Ce,this.Vn=t}function Ze(t,e){A.lang.Ja.call(this),this.Yf=[],this.Sk=[],this.m=e,this.Bj=t,this.map=this.m.na.map||q,this.PN=this.m.PN,this.Fb=q,this.wk=0,this.DF="",this.qf=1,this.hD="",this.Rp=[0,0,0,0,0,0,0],this.EM=[],this.rs=[1,1,1,1,1,1,1],this.AO=[1,1,1,1,1,1,1],this.Sp=[0,0,0,0,0,0,0],this.$m=[0,0,0,0,0,0,0],this.Ib=[{B:"",Id:0,qn:0,x:0,y:0,sa:-1},{B:"",Id:0,qn:0,x:0,y:0,sa:-1},{B:"",Id:0,qn:0,x:0,y:0,sa:-1},{B:"",Id:0,qn:0,x:0,y:0,sa:-1},{B:"",Id:0,qn:0,x:0,y:0,sa:-1},{B:"",Id:0,qn:0,x:0,y:0,sa:-1},{B:"",Id:0,qn:0,x:0,y:0,sa:-1}],this.fi=-1,this.vu=[],this.OF=[],Wa.load("route",u())}function bf(t){this.af=t||{}}function cf(t){this.m={},A.extend(this.m,t),this.Qa=[];var e=this;Wa.load("othersearch",function(){e.Dd()})}function Geolocation(e){e=e||{},this.M={timeout:e.timeout||1e4,maximumAge:e.maximumAge||6e5,enableHighAccuracy:e.enableHighAccuracy||t,Ii:e.SDKLocation||t},this.ue=[];var n=this;Wa.load("othersearch",function(){for(var t,e=0;t=n.ue[e];e++)n[t.method].apply(n,t.arguments)})}function ef(t){(t=t||{}).na=t.renderOptions||{},this.m={na:{map:t.na.map||q}},this.Qa=[];var e=this;Wa.load("othersearch",function(){e.Dd()})}function ff(){this.Qa=[];var t=this;Wa.load("othersearch",function(){t.Dd()})}function gf(t,e){Y.call(this,t,e),this.CP=Ke,this.EP=Ne,this.BP=Le,this.DP=Oe,this.Qa=[];var n=this;Wa.load("buslinesearch",function(){n.Dd()})}function hf(t){Y.call(this,t),t=t||{},this.fb={input:t.input||q,aC:t.baseDom||q,types:t.types||[],Mt:t.onSearchComplete||u()},this.md.src=t.location||"全国",this.gj="",this.sg=q,this.WH="",this.Vi(),Ta(La);var e=this;Wa.load("autocomplete",function(){e.Dd()})}function Ra(e,n){function i(){o.m.visible?("inter"===o.Pe&&Ya()&&o.m.haveBreakId&&o.m.indoorExitControl===p?A.U.show(o.jr):A.U.aa(o.jr),this.m.closeControl&&this.Gf&&this.P&&this.P.Ta()===this.R?A.U.show(o.Gf):A.U.aa(o.Gf),this.m.forceCloseControl&&A.U.show(o.Gf)):(A.U.aa(o.Gf),A.U.aa(o.jr))}this.R="string"==typeof e?A.fa(e):e,this.da=jf++,this.m={enableScrollWheelZoom:p,panoramaRenderer:Qa()?"javascript":"flash",swfSrc:D.mi("main_domain_nocdn","res/swf/")+"APILoader.swf",visible:p,indoorExitControl:p,indoorFloorControl:t,linksControl:p,clickOnRoad:p,navigationControl:p,closeControl:p,indoorSceneSwitchControl:p,albumsControl:t,albumsControlOptions:{},copyrightControlOptions:{},forceCloseControl:t,haveBreakId:t};var r;n=n||{};for(r in n)this.m[r]=n[r];n.closeControl===p&&(this.m.forceCloseControl=p),n.useWebGL===t&&Qa(t),this.Oa={heading:0,pitch:0},this.co=[],this.Mb=this.hb=q,this.mk=this.gr(),this.ta=[],this.Rc=1,this.Pe=this.WS=this.Wg="",this.Oe={},this.Sf=q,this.eh=[],this.yr=[],"cvsRender"==this.mk||Qa()?(this.fk=90,this.hk=-90):"cssRender"==this.mk&&(this.fk=45,this.hk=-45),this.Dr=t;var o=this;this.eo=function(){"flashRender"===this.mk?Wa.load("panoramaflash",function(){o.Vi()},p):Wa.load("panorama",function(){o.ob()},p),"api"==n.Ye?Ta(Ha):Ta(Ia),this.eo=u()},this.m.IS!==p&&(this.eo(),D.Cq("cus.fire","count","z_loadpanoramacount")),this.BT(this.R),this.addEventListener("id_changed",function(){Ta(Fa,{from:n.Ye})}),this.RP(),this.addEventListener("indoorexit_options_changed",i),this.addEventListener("scene_type_changed",i),this.addEventListener("onclose_options_changed",i),this.addEventListener("onvisible_changed",i)}function of(){A.lang.Ja.call(this),this.od="PanoramaOverlay_"+this.da,this.W=q,this.Wa=p}function pf(t,e){of.call(this);var n,i={position:q,altitude:2,displayDistance:p};e=e||{};for(n in e)i[n]=e[n];this.Mb=i.position,this.Sj=t,this.Dq=i.altitude,this.dR=i.displayDistance,this.GF=i.color,this.XL=i.hoverColor,this.backgroundColor=i.backgroundColor,this.XJ=i.backgroundHoverColor,this.borderColor=i.borderColor,this.aK=i.borderHoverColor,this.fontSize=i.fontSize,this.padding=i.padding,this.cE=i.imageUrl,this.size=i.size,this.Ce=i.image,this.width=i.width,this.height=i.height,this.sY=i.imageData,this.borderWidth=i.borderWidth}function sf(t,e){of.call(this);var n,i={icon:"",title:"",panoInfo:q,altitude:2};e=e||{};for(n in e)i[n]=e[n];this.Mb=t,this.TH=i.icon,this.qJ=i.title,this.Dq=i.altitude,this.nT=i.panoInfo,this.Oa={heading:0,pitch:0}}function qf(t,e){var n=0;if(0!==t&&0!==e){var i=0;0<t&&e<0&&(i=90),t<0&&e<0&&(i=180),t<0&&0<e&&(i=270),n=((n=Math.atan(t/e)/Math.PI*180)+90)%90+i}else 0===t?n=e<0?180:0:0===e&&(n=0<t?90:270);return Math.round(n)}function Qa(e){if("boolean"==typeof uf)return uf;if(e===t||!window.WebGLRenderingContext)return uf=t;if(A.platform.yj){e=0;try{var n=q,i=navigator.userAgent.toLowerCase();0<i.indexOf("android")&&(n=(i.match(/android [\d._]+/gi)+"").replace(/[^0-9|_.]/gi,"").replace(/_/gi,"."),n=parseInt(n.split(".")[0],10)),e=n}catch(t){console.error("获取安卓版本失败 => "+t)}if(e<5)return uf=t}i=document.createElement("canvas"),e=q;try{e=i.getContext("webgl")}catch(e){uf=t}return uf=e===q?t:p}function vf(){if("boolean"==typeof wf)return wf;if(wf=p,A.platform.mE)return p;var e=navigator.userAgent;return-1<e.indexOf("Chrome")||-1<e.indexOf("SAMSUNG-GT-I9508")?p:wf=t}function Oc(t,e){this.W=t||q;var n=this;n.W&&n.ha(),Wa.load("pservice",function(){n.wQ()}),"api"==(e||{}).Ye?Ta(Ja):Ta(Ka),this.Cd={getPanoramaById:[],getPanoramaByLocation:[],getVisiblePOIs:[],getRecommendPanosById:[],getPanoramaVersions:[],checkPanoSupportByCityCode:[],getPanoramaByPOIId:[],getCopyrightProviders:[]}}function Nc(t){wd.call(this),"api"==(t||{}).Ye?Ta(Da):Ta(Ea)}function yf(){}function gg(e,n){var i,r=this;for(i in r.yn="object"==typeof e?e:Bf.getElementById(e),r.yn.style.overflow="hidden",r.Rb=r.yn.children[0],r.options={wp:p,tn:p,x:0,y:0,Mo:p,fV:t,ay:p,AE:p,fl:p,Fi:t,u0:0,Kw:t,Cx:p,ni:p,Gi:p,nD:af,Gx:Rf,SW:Rf&&Tf,dF:"",zoom:t,hl:1,mq:4,nW:2,YO:"scroll",lu:t,Ky:1,hN:q,$M:function(t){t.preventDefault()},kN:q,ZM:q,jN:q,YM:q,fy:q,lN:q,cN:q,Lp:q,mN:q,Kp:q},n)r.options[i]=n[i];r.x=r.options.x,r.y=r.options.y,r.options.fl=Vf&&r.options.fl,r.options.ni=r.options.wp&&r.options.ni,r.options.Gi=r.options.tn&&r.options.Gi,r.options.zoom=r.options.fl&&r.options.zoom,r.options.Fi=Wf&&r.options.Fi,r.options.zoom&&af&&(fg=""),r.Rb.style[Mf]=r.options.fl?Jf+"transform":"top left",r.Rb.style[Nf]="0",r.Rb.style[Of]="0 0",r.options.Fi&&(r.Rb.style[Pf]="cubic-bezier(0.33,0.66,0.66,1)"),r.options.fl?r.Rb.style[Lf]="translate("+r.x+"px,"+r.y+"px)"+fg:r.Rb.style.cssText+=";position:absolute;top:"+r.y+"px;left:"+r.x+"px",r.options.Fi&&(r.options.nD=p),r.refresh(),r.ha(Xf,window),r.ha(Yf),Uf||"none"==r.options.YO||(r.ha("DOMMouseScroll"),r.ha("mousewheel")),r.options.Kw&&(r.sV=setInterval(function(){r.uQ()},500)),this.options.Cx&&(Event.prototype.stopImmediatePropagation||(document.body.removeEventListener=function(t,e,n){var i=Node.prototype.removeEventListener;"click"===t?i.call(document.body,t,e.WL||e,n):i.call(document.body,t,e,n)},document.body.addEventListener=function(t,e,n){var i=Node.prototype.addEventListener;"click"===t?i.call(document.body,t,e.WL||(e.WL=function(t){t.WZ||e(t)}),n):i.call(document.body,t,e,n)}),r.ha("click",document.body,p))}function Kf(t){return""===Ef?t:(t=t.charAt(0).toUpperCase()+t.substr(1),Ef+t)}function hg(t){this.m={anchor:Hc,offset:new N(0,0),maxWidth:"100%",imageHeight:80};var e;t=t||{};for(e in t)this.m[e]=t[e];this.Ul=new Oc(q,{Ye:"api"}),this.kk=[],this.W=q,this.kg={height:this.m.imageHeight,width:this.m.imageHeight*ig},this.Yc=this.pB=this.jm=this.bd=q}function lg(t){this.R=t,this.hh=t.children[0],this.Qr=q,this.Ji=20,this.offsetLeft=0,this.za()}function V(t,e){for(var n in e)t[n]=e[n]}}()},function(t,e,n){var i,r;i=[n(0),n(177),n(1),n(551),n(10),n(60),n(36),n(132),n(40),n,e,t],void 0===(r=function(t,e,n,i,r,h,o,a,s,l,u,c){function p(t){t=t||{},e.call(this,t),(f=this).pano_service=new qq.maps.PanoramaService}var f;window.qq.maps&&window.qq.maps;return t.extend2(p,e),p.prototype.mouseMove=function(t,e,n,i,r,o,a){p.prototype.uber.mouseMove.call(f,t,e,n,i,r,o,a);var s=f.toolTip.anchor;s=f._projectService.transform(s,4326);var l=h.ll2gcj02([s.x,s.y]),u=new qq.maps.LatLng(l[1],l[0]);setTimeout(function(){n===f._lastScreenX&&i===f._lastScreenY&&f.pano_service.getPano(u,50,function(t){if(t&&t.svid){var e=t.svid,n=t.description,i="https://sv0.map.qq.com/view?svid={0}&r=50&from=web&size=0&no_decrypt_svid=1";i=i.replace("{0}",e);var r=new Image;r.crossOrigin=null,r.src=i,r.onload=function(){f.toolTip.content='<img src= "'+r.src+'" style="width:100px;height:75px;"/><br /><div class="pano_icon"></div>',n&&(f.toolTip.content=f.toolTip.content.replace("<br />","<span>"+n+"</span><br />")),f.toolTipWare.update(f.toolTip)},r.onerror=function(){console.error("error")}}else f.toolTip.content='<img src= "'+f._defaultNullImage+'" /><br /><div class="pano_icon"></div>',f.toolTipWare.update(f.toolTip)})},f._waitTime),f.toolTipWare.update(f.toolTip)},p.prototype.mouseClick=function(t,e,n,i,r,o,a){p.prototype.uber.mouseClick.call(f,t,e,n,i,r,o,a);var s=f.toolTip.anchor;s=f._projectService.transform(s,4326);var l=h.ll2gcj02([s.x,s.y]),u=new qq.maps.LatLng(l[1],l[0]);f.pano_service.getPano(u,50,function(t){if(t&&t.svid){var e=t.svid;f._pano||(f._pano=new qq.maps.Panorama(document.getElementById(f.map.panoContainer.id)),f._pano.setPov({heading:f._heading,pitch:f._pitch}),f._pano.setOptions({disableCompass:!f._navigationControl,disableMove:!f._linksControl,photoTimeControl:!0})),f.map.getMapControl().getViewport().parentNode.style.display="none",f.map.panoContainer.style.display="block",f.map.panoContainer.appendChild(f._hidePanoDiv),f._pano.setPano(e),f._rightClick(),f._enterEvent.raiseEvent(s)}})},c.exports=p}.apply(e,i))||(t.exports=r)},function(module,exports){window.qq=window.qq||{},qq.maps=qq.maps||{},window.soso||(window.soso=qq),soso.maps||(soso.maps=qq.maps),function(){qq.maps.__load=function(t){delete qq.maps.__load,t([["2.4.128",window.TMAP_AUTHENTIC_KEY,0],["https://3gimg.qq.com/","lightmap/api_v2/2/4/128/mods/","https://3gimg.qq.com/lightmap/api_v2/2/4/128/theme/",!0],[1,18,34.519469,104.461761,4],[1583912978062,"https://pr.map.qq.com/pingd","https://pr.map.qq.com/pingd"],["https://apis.map.qq.com/jsapi","https://apikey.map.qq.com/mkey/index.php/mkey/check","https://sv.map.qq.com/xf","https://sv.map.qq.com/boundinfo","https://sv.map.qq.com/rarp","https://apis.map.qq.com/api/proxy/search","https://apis.map.qq.com/api/proxy/routes/","https://confinfo.map.qq.com/confinfo","https://overseactrl.map.qq.com"],[[null,["https://rt0.map.gtimg.com/tile","https://rt1.map.gtimg.com/tile","https://rt2.map.gtimg.com/tile","https://rt3.map.gtimg.com/tile"],"png",[256,256],3,19,"114",!0,!1],[null,["https://m0.map.gtimg.com/hwap","https://m1.map.gtimg.com/hwap","https://m2.map.gtimg.com/hwap","https://m3.map.gtimg.com/hwap"],"png",[128,128],3,18,"110",!1,!1],[null,["https://p0.map.gtimg.com/sateTiles","https://p1.map.gtimg.com/sateTiles","https://p2.map.gtimg.com/sateTiles","https://p3.map.gtimg.com/sateTiles"],"jpg",[256,256],1,19,"101",!1,!1],[null,["https://rt0.map.gtimg.com/tile","https://rt1.map.gtimg.com/tile","https://rt2.map.gtimg.com/tile","https://rt3.map.gtimg.com/tile"],"png",[256,256],1,19,"",!1,!1],[null,["https://sv0.map.qq.com/hlrender/","https://sv1.map.qq.com/hlrender/","https://sv2.map.qq.com/hlrender/","https://sv3.map.qq.com/hlrender/"],"png",[256,256],1,19,"",!1,!1],[null,["https://rtt2.map.qq.com/rtt/","https://rtt2a.map.qq.com/rtt/","https://rtt2b.map.qq.com/rtt/","https://rtt2c.map.qq.com/rtt/"],"png",[256,256],1,19,"",!1,!1],null,[["https://rt0.map.gtimg.com/vector/","https://rt1.map.gtimg.com/vector/","https://rt2.map.gtimg.com/vector/","https://rt3.map.gtimg.com/vector/"],[256,256],3,18,"114",["https://rt0.map.gtimg.com/icons/","https://rt1.map.gtimg.com/icons/","https://rt2.map.gtimg.com/icons/","https://rt3.map.gtimg.com/icons/"],[]],null],["https://s.map.qq.com/TPano/v1.1.2/TPano.js","map.qq.com/",""]],e)};var e=(new Date).getTime()}(),function(){"use strict";if(window.TMAP_AUTHENTIC_KEY){var Vl=function(t){(t=t||window.event).cancelBubble=!0,t.stopPropagation&&t.stopPropagation()},wd=function(t){(t=t||window.event).returnValue=!1,t.preventDefault&&t.preventDefault()},Ef=function(t){return wd(t),Vl(t),!1},Wl=Object.prototype.hasOwnProperty,Fg=function(t,e){return Wl.call(t,e)},Gg=function(t){for(var e in t)if(Fg(t,e))return!1;return!0},xi=function(t,e,n){var i=[],r=t.length;for(n=n||r,e=e||0;e<n;e++)i.push(t[e]);return i},W=function(t,e){for(var n in t)if(Fg(t,n)&&!1===e(t[n],n))return!1},Cc=function(t,e){var n=t.style;0<=parseFloat(e)&&parseFloat(e)<1?(n.filter="alpha(opacity="+100*e+")",n.opacity=e):1==parseFloat(e)&&(n.filter="",n.opacity="")},yi={},Ff=function(t){return yi[t]||(yi[t]=t.substr(0,1).toUpperCase()+t.substr(1))},R=function(t){return"[object Function]"==Object.prototype.toString.call(t)},Wd=function(t,e){return t="on"+t,(e=e||document.createElement("div")).setAttribute(t,"return;"),R(e[t])||t in document.documentElement},Bb=navigator.userAgent,Na=/msie (\d+\.\d+)/i.test(Bb)?document.documentMode||+RegExp.$1:0,Hg=function(t){return!(!t||!t.nodeName||1!=t.nodeType)},Ig=function(t){return Hg(t)||t==window||t==document},Sa=function(t,e,n){for(var i in e)!e.hasOwnProperty(i)||!n&&t.hasOwnProperty(i)||(t[i]=e[i]);return t},Z=function(t,e){if(2<arguments.length){var n=xi(arguments,2);return function(){return t.apply(e||this,0<arguments.length?n.concat(xi(arguments)):n)}}return function(){return t.apply(e||this,arguments)}},Lj=Sa,ld=Na,S={listeners:{},eventObjects:{}},Kj=0;S.addListener=function(t,e,n,i){if(Ig(t))return S.addDomListener(t,e,n,i);if("click"!=e||"Marker"!=t.CLASS_NAME||Qj())return new cc(t,e,n,0);function r(t){a=o?{x:t.clientX,y:t.clientY}:o={x:t.clientX,y:t.clientY}}var o,a;return e=S.addListener(t,"mousedown",function(){a=o=null,window.addEventListener("mousemove",r)},0),i=S.addListener(t,"mouseup",function(t){o?(a.x-o.x)*(a.x-o.x)+(a.y-o.y)*(a.y-o.y)<9&&n(t):n(t),window.removeEventListener("mousemove",r)},0),(t=new cc(t,"__virtual_click",null,0)).pointTo=[e,i],t},S.exist=function(t,e){var n=Md(t,e);return n&&!Gg(n)},S.removeListener=function(t){if("__virtual_click"==t.eventName)for(var e=0;e<t.pointTo.length;e++)t.pointTo[e].remove();else t.remove()},S.clearListeners=function(t,e){W(Md(t,e),function(t,e){t&&t.remove()})},S.clearInstanceListeners=function(t){W(Md(t),function(t,e){t&&t.remove()})},S.trigger=function(t,e){if(S.exist(t,e)){var n=xi(arguments,2),i=Md(t,e);W(i,function(t){t&&t.handler.apply(t.instance,n)})}else if(Ig(t)&&Wd(e,t))if(t.fireEvent)try{t.fireEvent("on"+e)}catch(t){}else t.dispatchEvent&&((i=document.createEvent("Events")).initEvent(e,!0,!0),t.dispatchEvent(i))},S.addDomListener=function(t,e,n,i){var r=0;return t.addEventListener?(r=i?4:1,t.addEventListener(e,n,i),n=new cc(t,e,n,r)):t.attachEvent?(n=new cc(t,e,n,i?3:2),t.attachEvent("on"+e,Mj(n)),i&&t.setCapture&&t.setCapture()):(t["on"+e]=n,n=new cc(t,e,n,5)),n},S.addDomListenerOnce=function(t,e,n,i){var r=S.addDomListener(t,e,function(){return r.remove(),n.apply(this,arguments)},i);return r},S.bindDom=function(t,e,n,i){return n=Oj(i,n),S.addDomListener(t,e,n)},S.bind=function(t,e,n,i,r){return r?S.addListenerOnce(t,e,Z(n,i)):S.addListener(t,e,Z(n,i))},S.addListenerOnce=function(t,e,n){var i=S.addListener(t,e,function(){return i.remove(),n.apply(this,arguments)});return i},S.forward=function(t,e,n){return S.addListener(t,e,Wh(e,n))},S.forwardDom=function(t,e,n,i){return S.addDomListener(t,e,Wh(e,n,!i))},S.unload=function(){var t=S.listeners;W(t,function(t){t&&t.remove()}),S.listeners={},(t=window.CollectGarbage)&&t()};var Pj=0;cc.prototype.remove=function(){var t=this.instance,e=this.eventName;if(t){switch(this.browser){case 1:t.removeEventListener(e,this.handler,!1);break;case 4:t.removeEventListener(e,this.handler,!0);break;case 2:t.detachEvent("on"+e,this.bindHandler);break;case 3:t.detachEvent("on"+e,this.bindHandler),t.releaseCapture&&t.releaseCapture();break;case 5:t["on"+e]=null}delete Uh(t,e)[this.id],t.__events_&&(Gg(t.__events_[e])&&delete t.__events_[e],Gg(t.__events_)&&delete t.__events_),this.bindHandler=this.handler=this.instance=null,delete S.listeners[this.id]}};var d=S;dg.prototype.getTile=function(t,e,n,i,r){return t={element:n=n.createElement("div"),coord:t,zoom:e,instance:r},i&&(i=i.parentNode.createElement("div"),t.poiElement=i),n.data=t,this.grids.insert(t),n},dg.prototype.releaseTile=function(t){var n=t.data;this.grids.remove(n),W(n,function(t,e){delete n[e]}),t.data=null},dg.prototype.stop=function(t){d.trigger(t.data,"stop",t.data)};var Yh=[6378136.49,-1],Xh=[null,Yh],zi=window.qq&&qq.maps&&qq.maps.__load;zi&&zi(Rj);var Ai=Xh,Bi=Ai[1],Zc=Bi[0],Xl=function(t,e){for(var n=[t];n.length;){var i=n.shift();for(e(i),i=i.firstChild;i;i=i.nextSibling)1==i.nodeType&&n.push(i)}},Jg=function(t){Xl(t,function(t){d.clearInstanceListeners(t)})},Qa=function(){return new Date},xd=function(){return+Qa()},$a=Ai[0],kb=function(t){return"[object Object]"===Object.prototype.toString.apply(t)},U=function(t){return"[object String]"==Object.prototype.toString.call(t)},vb=$a[0][1],Nd=[],Yl=function(t){var e=new Image;e.onload=e.onerror=e.onabort=Sj,Nd.push(e),e.src=t+"&random="+(+Qa()).toString(36)},g=function(t,e){for(var n=0,i=t.length;n<i;++n)if(!1===e(t[n],n))return!1},Kg=$a[0][0],$h=d,Zj=U,Yj=kb,Vj=g,Wj=Yl,eg=$a[3][2]+"?appid=jsapi&v="+Kg+"&key="+vb,Tj=1024-eg.length-16,Od={},Lc=[];Od.submit=Je,$h.addDomListener(window,"beforeunload",function(){Je(!0)}),setInterval(Je,5e3);var Gf=Od,yd=new Function,te=[],Zl=d.addListener(Gf,"submit",function(t){0<te.length&&(t("m",te.join("|")),te.length=0,d.removeListener(Zl),Ci.set=yd)}),Ci={set:function(t){te.push(t)}},zk=Ci,Xd=[0,0],$l=d.addListener(Gf,"submit",function(t){0==Xd[0]&&0==Xd[1]||(t("mp",Xd.join(",")),Xd[0]=0,Xd[1]=0,d.removeListener($l),Di.set=yd)}),Di={set:function(t,e){0!=t&&Xd[0]++,0!=e&&Xd[1]++}},am=Di,ba=function(t){return t*(Math.PI/180)},bm=function(t,e){var n=ba(t.getLat())-ba(e.getLat()),i=ba(t.getLng())-ba(e.getLng());n=Math.sin(n/2)*Math.sin(n/2)+Math.cos(ba(e.getLat()))*Math.cos(ba(t.getLat()))*Math.sin(i/2)*Math.sin(i/2),n=2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n));return Zc*n},Hf=function(t,e,n){return e<=t&&t<=n?t:((t-e)%(n-e)+(n-e))%(n-e)+e},jb=fg.prototype;jb.isEmpty=function(){return 360==this.minX-this.maxX},jb.intersects=function(t){var e=this.minX,n=this.maxX;return!this.isEmpty()&&!t.isEmpty()&&(n<e?t.minX>t.maxX||t.minX<=n||t.maxX>=e:t.minX>t.maxX?t.minX<=n||t.maxX>=e:t.minX<=n&&t.maxX>=e)},jb.contains=function(t){-180==t&&(t=180);var e=this.minX,n=this.maxX;return this.minX>this.maxX?(e<=t||t<=n)&&!this.isEmpty():e<=t&&t<=n},jb.extend=function(t){this.contains(t)||(this.isEmpty()?this.minX=this.maxX=t:this.distance(t,this.minX)<this.distance(this.maxX,t)?this.minX=t:this.maxX=t)},jb.equals=function(t){return this.isEmpty()?t.isEmpty():Math.abs(t.minX-this.minX)%360+Math.abs(t.maxX-this.maxX)%360<=1e-9},jb.center=function(){var t=(this.minX+this.maxX)/2;return this.minX>this.maxX&&(t=Hf(t,-180,180)),t},jb.distance=function(t,e){var n=e-t;return 0<=n?n:e+180-(t-180)};var Vb=ai.prototype;Vb.isEmpty=function(){return this.minY>this.maxY},Vb.intersects=function(t){var e=this.minY,n=this.maxY;return e<=t.minY?t.minY<=n&&t.minY<=t.maxY:e<=t.maxY&&e<=n},Vb.contains=function(t){return t>=this.minY&&t<=this.maxY},Vb.extend=function(t){this.isEmpty()?this.maxY=this.minY=t:t<this.minY?this.minY=t:t>this.maxY&&(this.maxY=t)},Vb.equals=function(t){return this.isEmpty()?t.isEmpty():Math.abs(t.minY-this.minY)+Math.abs(this.maxY-t.maxY)<=1e-9},Vb.center=function(){return(this.maxY+this.minY)/2};var Jn=6===Na||7===Na||8===Na,y=$a[5],cm=$a[4][7],Yd=function(t){return t/(Math.PI/180)},ga=F.prototype;ga.getX=function(){return this.x},ga.getY=function(){return this.y},ga.toString=function(){return this.x+", "+this.y},ga.equals=function(t){return!!t&&(t.x==this.x&&t.y==this.y)},ga.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},ga.minus=function(t){return new F(this.x-t.x,this.y-t.y)},ga.plus=function(t){return new F(this.x+t.x,this.y+t.y)},ga.divide=function(t){return new F(this.x/t,this.y/t)},ga.multiply=function(t){return new F(this.x*t,this.y*t)},ga.dotProduct=function(t){return this.x*t.x+this.y*t.y},ga.crossProduct=function(t){return this.x*t.y-this.y*t.x},ga.clone=function(){return new F(this.x,this.y)},ga.getVectorLength=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};var $c=null,If=function(t,e,n,i){return n=Math.pow(2,n),($c=$c||new F(0,0)).x=e.x/n,$c.y=e.y/n,t.fromPointToLatLng($c,i)},zd=function(t,e,n){return(t=t.fromLatLngToPoint(e))&&(n=Math.pow(2,n),t.x*=n,t.y*=n),t};lc.prototype.stop=function(){this.__event__&&Ef(this.__event__)};var ya=function(t){return"[object Array]"==Object.prototype.toString.call(t)},f=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},dc=d,ak=lc,dm=function(t){if(Object.keys)return Object.keys(t);var n=[];return W(t,function(t,e){n.push(e)}),n},Lg={},Xe={},bi={},ob=h.prototype;ob.get=function(t){if(e=Sb(this)[t]){t=e.targetKey;var e=e.target,n=Lg[t]||(Lg[t]="get"+Ff(t));return e[n]?e[n]():e.get(t)}return this[t]},ob.set=function(t,e){if((n=Sb(this)).hasOwnProperty(t)){var n=(i=n[t]).targetKey,i=i.target,r=Xe[n]||(Xe[n]="set"+Ff(n));i[r]?i[r](e):i.set(n,e)}else this[t]=e,nd(this,t)},ob.notify=function(t){var e=Sb(this);e.hasOwnProperty(t)?(t=e[t]).target.notify(t.targetKey):nd(this,t)},ob.setValues=function(t){for(var e in t){var n=t[e],i=Xe[e]||(Xe[e]="set"+Ff(e));this[i]?this[i](n):this.set(e,n)}},ob.setOptions=ob.setValues,ob.changed=function(t){return function(){}},ob.bindTo=function(t,e,n,i){n=n||t;var r=this;r.unbind(t,!0),od(r)[t]=dc.addListener(e,Ke(n.toLowerCase()),function(){nd(r,t)}),bk(r,t,e,n,i)},ob.bindsTo=function(t,e,n,i){n=n||[];for(var r=0,o=(t=ya(t)?t:dm(t)).length;r<o;r++)this.bindTo(t[r],e,n[r]||null,i)},ob.unbind=function(t,e){var n=od(this)[t];n&&(delete od(this)[t],dc.removeListener(n),n=e&&this.get(t),delete Sb(this)[t],e?this[t]=n:nd(this,t))},ob.unbindAll=function(n){n||(n=[],W(od(this),function(t,e){n.push(e)}));var e=this;g(n,function(t){e.unbind(t)})},f(ck,h),ck.prototype.mapType_changed=function(){var t;(t=(t=this.get("mapType"))&&t.projection||this.a)!==this.get("projection")&&this.set("projection",t)};var Wb=function(t,e,n){return t<e?e:n<t?n:t},ek=Hf,dk=Wb,Mg=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},ci=85.051128,Cb=p.prototype;Cb.toString=function(){return this.lat+", "+this.lng},Cb.equals=function(t){return!!t&&(Math.abs(this.lat-t.lat)<=1e-10&&Math.abs(this.lng-t.lng)<=1e-10)},Cb.getLat=function(){return this.lat},Cb.getLng=function(){return this.lng},Cb.toUrlValue=function(t){return t=t||6,Mg(this.lng,t)+","+Mg(this.lat,t)},Cb.clone=function(){return new p(this.lat,this.lng,!0)},Cb.distanceTo=function(t){return bm(this,t)},Cb.subtract=function(t){return new p(this.lat-t.lat,this.lng-t.lng)};var Ei=Math.PI/180,Ng=180/Math.PI;Cb.toMercator=function(){var t=[6378137*this.lng*Ei,6378137*Math.log(Math.tan(.25*Math.PI+.5*this.lat*Ei))];return 20037508.342789244<t[0]&&(t[0]=20037508.342789244),t[0]<-20037508.342789244&&(t[0]=-20037508.342789244),20037508.342789244<t[1]&&(t[1]=20037508.342789244),t[1]<-20037508.342789244&&(t[1]=-20037508.342789244),new F(t[0],t[1])},p.fromMercator=function(t){return new p((.5*Math.PI-2*Math.atan(Math.exp(-t.y/6378137)))*Ng,t.x*Ng/6378137)};var pe=F;pd.prototype.fromLatLngToPoint=function(t,e){var n=e||new pe(0,0),i=this.a;n.x=i.x+t.getLng()*this.b;var r=Wb(Math.sin(ba(t.getLat())),-(1-1e-15),1-1e-15);return n.y=i.y+.5*Math.log((1+r)/(1-r))*-this.c,n},pd.prototype.fromPointToLatLng=function(t,e){var n=this.a;return new p(Yd(2*Math.atan(Math.exp((t.y-n.y)/-this.c))-Math.PI/2),(t.x-n.x)/this.b,e)},Le.prototype.fromLatLngToPoint=function(t,e){var n=e||new pe(0,0);return n.x=(t.getLng()/360+.5)*this.size,n.y=(.25-t.getLat()/360)*this.size,n},Le.prototype.fromPointToLatLng=function(t,e){return new p(360*(.25-t.y/this.size),360*(t.x/this.size-.5),e)},fk.getInstance=function(t){var e=t.scale;switch(t.projectionMode){case"latlng":return new Le(e);default:return new pd(e)}};var Xb=navigator.userAgent.toLowerCase(),Fi="opera msie chrome applewebkit firefox mozilla".split(" "),Gi="x11 macintosh windows android iphone ipad".split(" "),sa=0,Zd,Pb,Db,mc=0,lb,Og;for(Zd=Fi.length;sa<Zd;sa++)if(Pb=Fi[sa],-1!=Xb.indexOf(Pb)&&(mc=sa+1,Db=RegExp(Pb+"[ /]?([0-9]+(.[0-9]+)?)").exec(Xb))){lb=parseFloat(Db[1]);break}for(6==mc&&((Db=/^mozilla\/.*gecko\/.*(minefield|shiretoko)[ /]?([0-9]+(.[0-9]+)?)/.exec(Xb))&&(mc=5,lb=parseFloat(Db[2])),(Db=/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Xb))&&(mc=2,lb=parseFloat(Db[1]))),1==mc&&(Db=/^opera\/9.[89].*version\/?([0-9]+(.[0-9]+)?)/.exec(Xb))&&(lb=parseFloat(Db[1])),sa=0,Zd=Gi.length;sa<Zd;sa++)if(Pb=Gi[sa],-1!=Xb.indexOf(Pb)){Og=sa+1;break}var Ye=[mc,lb,Og],aa=Ye[2],Hi=/opera(\/| )(\d+(\.\d+)?)(.+?(version\/(\d+(\.\d+)?)))?/i.test(Bb)?+(RegExp.$6||RegExp.$2):0,D=function(t){return null===t},oa=[],zb=document;oa.isReady=!1,oa._used=!1,oa.ready=function(t){oa.initReady(),oa.isReady?t():oa.push(t)},oa.initReady=function(){if(!oa._used){if(oa._used=!0,"complete"===zb.readyState||"interactive"===zb.readyState)return oa.fireReady();if(0<Na&&Na<9){zb.attachEvent("onreadystatechange",di);var e=function(){if(!oa.isReady){var t=new Image;try{t.doScroll()}catch(t){return void setTimeout(e,64)}oa.fireReady()}};e()}else zb.addEventListener("DOMContentLoaded",gg,!1)}},oa.fireReady=function(){if(!oa.isReady){if(!zb.body)return setTimeout(oa.fireReady,16);if(oa.isReady=!0,oa.length)for(var t,e=0;t=oa[e];e++)t()}};var Pg=oa.ready,Qg=window.qq||(window.qq={}),Jf=Qg.maps||(Qg.maps={}),Ze=function(t,e){if(null!==e)return Jf[t]=e,["qq","maps",t];null===Jf[t]||delete Jf[t]},ei=vb,Ne=window.document,ik=/loaded|complete|undefined/i,Me=Ne.dispatchEvent?"onload":"onreadystatechange",jk=0<Hi,qe={},hg=Ze("_svcb"+aa,qe).join("."),Oe=[],em=0,gc={send:function(t,e,n,i,r){return t=t||"cb"+(new Date).getTime().toString(36)+(em++).toString(36),Pg(function(){Pd(t),hk(t,e,n,i,null,r)}),t},cancel:Pd},fm=$a[4][1];Qd.prototype.addTask=function(t,e,n){var i=this,r="id_"+i.id++;this.tasks[r]={id:r,func:t,args:e,callback:function(){i.tasks[r].status=!0,n.apply(null,arguments),i.isAllDone()&&i.callback()},status:!1}},Qd.prototype.doTasks=function(){for(var t in this.tasks){var e=this.tasks[t],n=e.args.concat([e.callback]);e.status=!1,e.func.apply(null,n)}},Qd.prototype.isAllDone=function(){var t,e=!0;for(t in this.tasks)e=e&&this.tasks[t].status;return e};var xc=ca.prototype;xc.getWidth=function(){return this.width},xc.getHeight=function(){return this.height},xc.toString=function(){return this.width+", "+this.height},xc.equals=function(t){return!!t&&(t.width==this.width&&t.height==this.height)},xc.clone=function(){return new ca(this.width,this.height)},xc.scale=function(t){return new ca(this.width*t,this.height*t)};var ue=new fk,gm=gc,Rg=!1,Kf=[],Ii=null,nc=null,Lf=null,hm=document.domain;vb||(Rg=!0,nc=!1);var Ji=function(t){Rg?t(nc,Lf):(Kf.push(t),Ii=Ii||gm.send(null,fm,function(t){t&&t.info&&0===t.info.error?(nc=!0,Lf=t.detail&&t.detail.cfg):t&&t.info&&(nc=!1),Rg=!0,g(Kf,function(t){t(nc,Lf)}),Kf.length=0},null,["key="+vb,"output=jsonp","pf=jsapi","ref=jsapi","channel=0","pid="+hm,"cb="]))},Ja={DEFAULT:"DEFAULT",TILE_BLACK:"TILE_BLACK",DARK:"DARK",TNIT:"TNIT",LIGHT:"LIGHT",RAIN:"RAIN"},Kn=function(s,l){/^DEFAULT|TILE_BLACK|DARK|TNIT|LIGHT|RAIN$/.test(s)?l("DARK"===s?"TILE_BLACK":s):/^style\d+$/.test(s)?Ji(function(t,e){var n=!1,i=null;if(t&&e&&e.custom_map_style&&e.custom_map_style.style_list)for(var r=parseInt(s.replace("style","")),o=e.custom_map_style.style_list,a=0;a<o.length;a++)if(r===o[a].order){i="id_"+o[a].id,n=!0;break}n||(alert("无个性化样式"+s+"权限请检查是否输入错误或该样式未与key绑定或未携带key值。请前往腾讯位置服务官网进行设置。"),i=Ja.DEFAULT),l(i)}):l(Ja.DEFAULT)},wk=h,$d=function(t,e){for(var n;n=t.firstChild;)e||3===n.nodeType||Jg(n),t.removeChild(n)},im=gc,jm=$a[2][4],ve=[$a[2][2],$a[2][3]],km=$a[2][0],lm=$a[2][1],kk=ya,Ln=fi,oc=function(t){return void 0===t},Yb=function(t,e){throw Error("Invalid value or type for property <"+t+"> "+e)},Sg=function(t,e){am.set(t,e)},Tg=function(t,e,n){var i={};n&&W(n,function(t,e){i[e]=t}),e&&W(e,function(t,e){i[e]=t}),t.setValues(i)},mk=0,$e=Rd.prototype;$e.insert=function(t){var e=this.items,n=this.hash(t);e[n]||(++this.length,e[n]=t,d.trigger(this,"insert",t))},$e.remove=function(t){var e=this.items,n=this.hash(t);e[n]&&(--this.length,delete e[n],d.trigger(this,"remove",t))},$e.contains=function(t){return!!this.items[this.hash(t)]},$e.forEach=function(t){var e,n=this.items;for(e in n)n.hasOwnProperty(e)&&t.call(this,n[e])};var u=function(){var e=arguments,n=e.length;return function(){for(var t=0;t<n;++t)if(e[t].apply(this,arguments))return!0;return!1}},G=function(t){return"[object Number]"==Object.prototype.toString.call(t)&&isFinite(t)},ja=function(t){return"boolean"==typeof t},V=function(e){return function(t){return t instanceof e}},ad=function(t,e,n){return e=Ln(e,!n),Sa(e,t,!0)},Eb=function(e){return function(t){new t(e)}},pk=Yb,da=function(t,e){for(var n=0,i=e&&e.length;n<i;n+=2){var r=e[n],o=e[n+1];t["get"+Ff(r)]=nk(r),o&&(t["set"+Ff(r)]=ok(r,o))}},bd={TOP_LEFT:1,TOP_CENTER:2,TOP:2,TOP_RIGHT:3,LEFT_CENTER:4,LEFT_TOP:5,LEFT:5,LEFT_BOTTOM:6,RIGHT_TOP:7,RIGHT:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM:11,BOTTOM_RIGHT:12,CENTER:13};f(qd,h),qd.prototype.set=function(t,e){return null==e||e&&e.regionStyles&&kb(e.regionStyles)&&e.labelStyles&&kb(e.labelStyles)&&e.lineStyles&&kb(e.lineStyles)&&e.pointStyles&&kb(e.pointStyles)&&e.arrowStyles&&kb(e.arrowStyles)||console.warn("实现qq.maps.mapStyles所需的值不符合要求请重新传入参数尝试"),h.prototype.set.apply(this,arguments)},f(Mc,h),Mc.prototype.set=function(t,e){if(!(null==e||e&&e.tileSize&&G(e.maxZoom)&&e.tileSize.width&&e.tileSize.height))throw Error("实现 qq.maps.MapType 所需的值");return e._setScale?e._setScale(this.scale):e.scale=this.scale,h.prototype.set.apply(this,arguments)};var af={DEFAULT:"default",CENTER:"center",OFFSET_CENTER:"offset_center"},tb={ROADMAP:"roadmap",HYBRID:"hybrid",SATELLITE:"satellite",INDOORMAP:"indoormap",HANDDRAW:"handdraw"};f(Tb,h);var wb=Tb.prototype;wb.getAt=function(t){return this.elems[t]},wb.forEach=function(t){for(var e=0,n=this.get("length");e<n&&!1!==t(this.elems[e],e);++e);},wb.setAt=function(t,e){var n=this.elems[t],i=this.elems.length;if(t<i)this.elems[t]=e,d.trigger(this,"set_at",t,n);else{for(n=i;n<t;++n)this.insertAt(n,void 0);this.insertAt(t,e)}},wb.insertAt=function(t,e){this.elems.splice(t,0,e),this.set("length",this.elems.length),d.trigger(this,"insert_at",e,t)},wb.removeAt=function(t){var e=this.get("length");if(t<e){var n=this.elems[t];return this.elems.splice(t,1),this.set("length",e-1),d.trigger(this,"remove_at",n,t),n}},wb.push=function(t){return this.insertAt(this.elems.length,t),this.elems.length},wb.pop=function(){return this.removeAt(this.elems.length-1)},wb.exists=function(t){if(t)for(var e=0;e<this.elems.length;e++)if(t==this.elems[e])return!0;return!1},wb.remove=function(t){for(var e=0;e<this.elems.length;e++)if(t==this.elems[e])return this.removeAt(e)},wb.clear=function(){for(var t=this.elems.length;t--;)this.removeAt(0)},wb.getArray=function(){return this.elems},da(wb,["length",0]);var jg=Hf,ig=Wb,Pe=ai,Nc=fg,Fb=Ab.prototype;Fb.isEmpty=function(){return this.lat.isEmpty()||this.lng.isEmpty()},Fb.getSouthWest=function(){return new p(this.lat.minY,this.lng.minX,!0)},Fb.getNorthEast=function(){return new p(this.lat.maxY,this.lng.maxX,!0)},Fb.getCenter=function(){return new p(this.lat.center(),this.lng.center())},Fb.intersects=function(t){return this.lat.intersects(t.lat)&&this.lng.intersects(t.lng)},Fb.contains=function(t){var e,n=this.getSouthWest,i=this.getNorthEast;return t instanceof Ab?(e=t.getSouthWest(),t=t.getNorthEast(),e.lat>=n.lat&&t.lat<=i.lat&&e.lng>=n.lng&&t.lng<=i.lng):this.lat.contains(t.getLat())&&this.lng.contains(t.getLng())},Fb.extend=function(t){if(this.isEmpty()){var e=t.getLat();t=t.getLng(),this.lat=new Pe(e,e),this.lng=new Nc(t,t)}else this.lat.extend(t.getLat()),this.lng.extend(t.getLng());return this},Fb.union=function(t){if(!t.isEmpty())return this.extend(t.getNorthEast()),this.extend(t.getSouthWest()),this},Fb.equals=function(t){return!!t&&(this.lat.equals(t.lat)&&this.lng.equals(t.lng))},Fb.clone=function(){return new Ab(this.getSouthWest(),this.getNorthEast())},Fb.toString=function(){return this.getSouthWest()+", "+this.getNorthEast()},Fb.toUrlValue=function(){return this.getSouthWest().toUrlValue()+","+this.getNorthEast().toUrlValue()};var gi=Tb,Mf=p,kg=Ja,vk=Rd,Dk=function(e){var n=window.setTimeout(e,1e3);im.send(null,cm,function(t){t&&t.info&&0===t.error&&(t=t.info,y[0]&&t["1d"]&&(y[0][6]=t["1d"],y[3][6]=t["1d"]),y[1]&&t["2d"]&&(y[1][6]=t["2d"]),y[7]&&t.vt&&(y[7][4]=t.vt),y[2]&&t.sat&&(y[2][6]=t.sat)),e(),clearTimeout(n)},e)},yk=bd,tk=Mc,uk=qd,xk=W,rk=$d,qk=oc,sf=U,Mf=p,lg=d,sk=Tg,Ck=Kn,Ak=Sg,Ek=function(t){t.setOffsetCenter=function(t){var e=this.getMapCenterOffset()||new ca(0,0),n=this.getZoom(),i=t;(Number(e.width)||Number(e.height))&&(e=new F((t=zd(ue,t,n)).x-e.width,t.y-e.height),i=If(ue,e,n)),this.setCenter(i)},t.getOffsetCenter=function(){var t=this.getMapCenterOffset()||new ca(0,0),e=this.getCenter(),n=this.getZoom();return 0==t.width&&0==t.height?e:(t=new F((e=zd(ue,e,n)).x+t.width,e.y+t.height),If(ue,t,n))}},Bk=Qd,tf={mapTypeId:tb.ROADMAP,mapStyleId:kg.DEFAULT,maxZoom:lm,minZoom:km,disableDefaultUI:!1,boundary:null,autoResize:!0,resizeKeepCenter:!0,mapZoomType:af.DEFAULT,mapZoomOffset:new F(0,0),projectionMode:"mercator",scale:1};ve[0]&&ve[1]&&(tf.center=new Mf(ve[0],ve[1]),tf.zoom=jm),f(sb,h);var Gb=sb.prototype;da(sb.prototype,["projection",null,"bounds",null,"boundary",u(V(Ab),D),"center",V(Mf),"zoom",G,"mapTypeId",sf,"mapStyleId",sf,"mapCenterOffset",V(ca)]),Gb._=function(){return this.V},Gb.getContainer=function(){return this.container},Gb.panBy=Rc("panby"),Gb.panTo=Rc("panto"),Gb.flyTo=Rc("fly_to"),Gb.zoomBy=function(t){var e=this.getZoom();G(e)&&this.setZoom(e+t)},Gb.zoomTo=function(t){this.setZoom(t)},Gb.fitBounds=Rc("fitbounds"),Gb.panToBounds=Rc("pantolatlngbounds"),f(Sc,h),Sc.prototype.map_changed=function(){var e=this;T.$require("oy",function(t){t(e)})},da(Sc.prototype,["map",u(V(sb),D),"panes",null,"projection",null]),Nb.fromHex=function(t,e){"#"===t.substring(0,1)&&(t=t.substr(1));var n=3===t.length?1:2,i=t.substr(0,n),r=t.substr(n,n),o=t.substr(2*n,n);return 1==n&&(i+=i,r+=r,o+=o),new Nb(i=parseInt(i,16),r=parseInt(r,16),o=parseInt(o,16),e||1)};var yc=Nb.prototype;yc.toRGB=function(){return"rgb("+[this.red,this.green,this.blue].join()+")"},yc.toRGBA=function(){return"rgba("+[this.red,this.green,this.blue,this.alpha].join()+")"},yc.toHex=function(){return"#"+(16777216+(this.red<<16)+(this.green<<8)+this.blue).toString(16).slice(1).toUpperCase()},yc.toInt=function(){return this.red<<16|this.green<<8|this.blue},yc.toString=function(){return this.toRGBA()},yc.clone=function(){return new Nb(this.red,this.green,this.blue,this.alpha)};var Hk=Eb,ec=Tb,Gk=ad,Fk=g,ng=ya,mg=V(ec),Va=Nb;f(Tc,Sc),Tc.prototype.getPath=function(){return this.get("path")},Tc.prototype.setPath=function(t){t=uf(t)||new ec,this.is2Dim=mg(t.getAt(0)),this.set("path",t)},Tc.prototype.getBounds=function(){var t=this.getPath(),e=this.is2Dim,n=null;if(t&&t.getLength()){var i=[],r=[];t.forEach(function(t){e?t.forEach(function(t){i.push(t.getLng()),r.push(t.getLat())}):(i.push(t.getLng()),r.push(t.getLat()))});var o=Math.min.apply(Math,i),a=Math.min.apply(Math,r);t=Math.max.apply(Math,i),n=Math.max.apply(Math,r),n=new Ab(o=new p(a,o),t=new p(n,t))}return n},da(Tc.prototype,["map",u(V(sb),D),"visible",ja,"simplify",ja,"clickable",ja,"editable",ja,"cursor",U,"zIndex",G,"geodesic",ja,"strokeDashStyle",u(U,D),"strokeColor",u(V(Va),U,D),"strokeWeight",u(G),"fillColor",u(V(Va),U,D),"strokeLinecap",U]);var hi=Tc;f(og,hi);var ii=Tc;f(pg,ii);var Ik=ad,vc=Nb,Jk=Eb;f(Qe,Sc),da(Qe.prototype,["map",u(V(sb),D),"visible",ja,"editable",ja,"center",u(V(p),D),"radius",u(G,D),"cursor",u(U,D),"zIndex",u(G,D),"fillColor",u(V(vc),U,D),"strokeColor",u(V(vc),U,D),"strokeWeight",G,"strokeDashStyle",u(U,D)]);var mm=/-./g,nm=function(t){return t.charAt(1).toUpperCase()},Ki={};Ki.float=Na?"styleFloat":"cssFloat";var om=(nYq=Ki,nYq=nYq||{},function(t){return Fg(nYq,t)?nYq[t]:nYq[t]=function(t){return t.replace(mm,nm)}(t)}),P=function(t,e,n){t.style[om(e)]=n},bf=5==aa||6==aa,Ad=Ye[1],ta=Ye[0],Hb=function(){var t=Wd,e=Ad,n=bf,i=(n=4==(o=ta)&&n,e=4==o&&4==aa&&534<=e,3==o&&4==aa),r=2==o&&0<navigator.msMaxTouchPoints,o=2==o&&0<navigator.maxTouchPoints;t=1!=aa&&2!=aa&&(t("touchstart")&&t("touchmove")&&t("touchend"));return!!(n||e||i||r||o||t)}(),Ug=1==aa||2==aa||3==aa||!!window.navigator.msPointerEnabled||!Hb,pm=/android\s(\d+\.\d)/i.test(Bb)?+RegExp.$1:0,Mn=/iPhone\sOS\s(\d[_\d]*)/i.test(Bb)?+parseFloat(RegExp.$1.replace(/_/g,".")):0,Nn=/iPad.*OS\s(\d[_\d]*)/i.test(Bb)?+parseFloat(RegExp.$1.replace(/_/g,".")):0,qm="ontouchstart"in window||Nn||Mn||pm,rm=/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(Bb)&&!/chrome/i.test(Bb)?+(RegExp.$1||RegExp.$2):0,cf=function(t,e,n){var i=t.length;for((n=n||0)<0&&(n+=i);n<i;n++)if(t[n]===e)return n;return-1},Vg={anims:[],timer:null,add:function(t){t._startTime=+Qa(),-1===cf(this.anims,t)&&this.anims.push(t),null===this.timer&&(this.timer=setInterval(this.nextFrame,16))},remove:function(n){var i=this.anims;g(this.anims,function(t,e){if(n===t)return delete n._startTime,i.splice(e,1),!1}),0===i.length&&(clearInterval(this.timer),this.timer=null)},nextFrame:function(){var i=+Qa(),r=[],o=null;g(Vg.anims.concat(),function(t){if(t._startTime){r.push(t),o=+Qa();var e=i-t._startTime,n=!1;e>=t.duration&&(e=t.duration,n=!0),t.set("current",e),t.onEnterFrame(e),n?t.stop():t.status||(t.status=1),t._frameDuration=+Qa()-o}});var e=+Qa()-i;g(r,function(t){t._startTime&&(t.onExitFrame(t._frameDuration,e),delete t._frameDuration)})}},nYq;f(qg,h);var Bd=qg.prototype;Bd.start=function(){function t(){e.onStart(),e.status=0,Vg.add(e),delete e._delayTimer}this.stop(!0);var e=this;this.delay?e._delayTimer=window.setTimeout(t,e.delay):t()},Bd.stop=function(t){this._delayTimer&&(window.clearTimeout(this._delayTimer),delete this._delayTimer),Vg.remove(this),this.status=-1,t||this.onEnd()},Bd.getStatus=function(){return this.status},Bd.onStart=function(){},Bd.onEnterFrame=function(){},Bd.onExitFrame=function(){},Bd.onEnd=function(){};var Wg=function(t){if(t=t||window.event,Na)t=[t.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),t.clientY+(document.documentElement.scrollTop||document.body.scrollTop)];else if(t.touches){var e=null;0<t.targetTouches.length?e=t.targetTouches[0]:0<t.changedTouches.length&&(e=t.changedTouches[0]),t=[e.pageX,e.pageY]}else t=[t.pageX,t.pageY];return t},we=function(t){if(null===t.parentNode||"none"==t.style.display)return[0,0,0,0];var e=null,n=0,i=0,r=t.offsetWidth,o=t.offsetHeight;if(t.getBoundingClientRect&&!qm)e=t.getBoundingClientRect(),t=Math.max(document.documentElement.scrollTop,document.body.scrollTop),n=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),n=e.left+n,i=e.top+t;else{if(document.getBoxObjectFor)e=document.getBoxObjectFor(t),n=t.style.borderLeftWidth?parseInt(t.style.borderLeftWidth):0,i=t.style.borderTopWidth?parseInt(t.style.borderTopWidth):0,n=e.x-n,i=e.y-i;else{if(n=t.offsetLeft,i=t.offsetTop,(e=t.offsetParent)!=t)for(;e;)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;(Hi||rm&&"absolute"==t.style.position)&&(n-=document.body.offsetLeft,i-=document.body.offsetTop)}for(e=t.parentNode?t.parentNode:null;e&&"BODY"!=e.tagName&&"HTML"!=e.tagName;)n-=e.scrollLeft,i-=e.scrollTop,e=e.parentNode?e.parentNode:null}return[n,i,r,o]},Lk=Ug,Kk=Hb;f(Re,h);var cd=Re.prototype;cd.start=function(){this.set("tracking",!0)},cd.stop=function(){this.set("tracking",!1)},cd.addListener=function(t,e){return d.addListener(this,t,e)},cd.removeListener=function(t){return d.removeListener(t)},cd.clearAllListener=function(){d.clearInstanceListeners(this)};var v=function(t,e,n,i,r){return t=document.createElement(t||"div"),i&&(t.style.cssText=i),null!=n&&P(t,"z-index",n),e&&!r&&e.appendChild(t),t},xb={Copyright:{prefix:"©"+new Date($a[3][0]).getFullYear()+" Tencent",sno:"GS(2018)2236号",dataPrefix:"Data©",imagePrefix:"Imagery©",home:"到腾讯地图查看此区域"},Key:{invalid:"开发者密钥验证失败"},PhoneTime:"拍摄日期",MapType:{ROADMAP:{name:"地图",alt:"显示街道地图"},SATELLITE:{name:"卫星",alt:"显示卫星地图"},HYBRID:{name:"混合",alt:"显示带有街道名称的卫星地图"},TRAFFIC:{name:"路况",alt:"显示实时路况"},HANDDRAW:{name:"手绘",alt:"显示手绘地图"}},Navigation:{zoomIn:"放大",zoomOut:"缩小",left:"向左平移",right:"向右平移",up:"向上平移",down:"向下平移",ruler:"单击缩放",slide:"拖动缩放",zoomTips:{17:"街",11:"市",8:"省",4:"国"}},Scale:{m:"米",km:"公里",mile:"英里",feet:"英尺"},Time:{msec:"毫秒",sec:"秒",min:"分钟",hour:"小时"},Transfer:["乘坐","经过","站","到达","终点"],Direction:"东 东北 北 西北 西 西南 南 东南".split(" ")},dd=function(){switch((navigator.systemLanguage||navigator.language).toLowerCase().split("-")[0]){case"zh":default:return xb}}(),hc={POI:"poi",SYN:"syn",POI_SYN:"poi_syn",RN:"rn",BUSLS:"busls",BUS:"bus",DT:"dt",DTS:"dts",GEOC:"geoc",RGEOC:"rgeoc",GC:"gc",CC:"cc",NAV:"snsnav",WALK:"walk",POS:"pos",SG:"sg",TAXFEE:"taxfee"},$={ERROR:"ERROR",NO_RESULTS:"NO_RESULTS",INVALID_REQUEST:"INVALID_REQUEST",UNKNOWN_ERROR:"UNKNOWN_ERROR",INVALID_KEY:"INVALID_KEY"},Mk=Sa;f(Uc,h);var Xg=Uc.prototype;Xg.send=function(){var e=this;Ji(function(t){t?e.set("doSend",!0):(console.warn("鉴权失败请传入正确的key"),t=e.get("error"),R(t)&&t($.INVALID_KEY))})},Xg.cancel=function(){this.set("doSend",!1)},Xg.clear=function(){this.set("doClear",!0)},da(Uc.prototype,["complete",u(R,D),"error",u(R,D),"map",u(V(sb),D),"panel",u(Hg,U,D)]);var Cd=function(t){var n=[];return W(t,function(t,e){n.push(e+"="+encodeURIComponent(t))}),n.join("&")},Yg=function(t,e,n,i,r,o){return{id:t,latlng:e||null,heading:n||0,pitch:i||0,zoom:r||1,description:o||""}},sm=function(t){return t/111319.49077777778},Zg=function(t){return 114.59155902616465*Math.atan(Math.exp(t/111319.49077777778*.017453292519943295))-90},tm=$a[4][3],jp=$a[4][2],Zk=h,ae=$a[4][0],ea={CIRCLE:"circle",MARKER:"marker",POLYGON:"polygon",POLYLINE:"polyline",RECTANGLE:"rectangle",SLICE:"slice",JOIN:"join"},Pk=Eb,Nk=ad,Ok=Tb;f(vf,h),da(vf.prototype,["gridSize",G,"minimumClusterSize",G,"maxZoom",G,"zoomOnClick",ja,"averageCenter",ja,"styles",ya,"map",u(V(sb),D)]);var um=function(t,e){this.coords=t,this.type=e},df=function(t,e){this.content=t,this.offset=e||new F(0,0)},xe=function(t,e,n,i,r,o){this.url=t,this.size=e||r,this.origin=n||new F(0,0),this.anchor=i,this.scaledSize=r,this.shadowAngle=o||0},Sk=Eb,Rk=ad,rg=d;f(fc,Sc),fc.prototype.changed=function(t){this.viewModel&&"constructed"!==t&&("icon"==t||"shadow"==t||"shape"==t||"cross"==t||"useDefaults"==t?this.viewModel.styleChange(t):"animation"==t?this.viewModel.animationChange(t):"height"==t?(this.viewModel.set(t,this.get(t)),this.viewModel.animationChange(t)):this.viewModel.set(t,this.get(t)))},fc.prototype.moveTo=wc("moveTo"),fc.prototype.moveAlong=wc("moveAlong"),fc.prototype.stopMove=wc("stopMove"),fc.prototype.pauseMove=wc("pauseMove"),fc.prototype.resumeMove=wc("resumeMove"),da(fc.prototype,["position",u(V(p),D),"title",u(G,U,D),"icon",u(V(xe),U,D),"shadow",u(V(xe),D),"shape",u(V(um),D),"decoration",u(V(df),D),"cursor",u(U,D),"clickable",ja,"animation",u(G,U,D),"draggable",ja,"visible",ja,"flat",ja,"zIndex",G,"height",G,"map",u(V(sb),D),"rotation",G,"autoRotation",ja]);var Vk=Tb,Yk=Rd,Uk=bd,sg=d,Wk=Tg,ji=U,Tk=W,$k=Sg,Xk={pano:null,position:null,zoom:1,scrollwheel:!0,visible:!0,disableDefaultUI:!1,autoResize:!0};f(Ob,h);var Nf=Ob.prototype;Nf._=function(){return this.V},da(Ob.prototype,["position",null,"planeInfo",null,"pano",u(ji,D),"pov",kb,"zoom",function(t){return!(!G(t)||t<1||4<t)},"visible",ja]),Nf.startAutoPlay=ki("startAutoPlay"),Nf.stopAutoPlay=ki("stopAutoPlay"),f(rd,h),rd.prototype.panorama_changed=function(){var e=this;T.$require("pano",function(t){t(e)},1)},da(rd.prototype,["position",u(V(p),D),"panorama",u(V(Ob),D),"content",U,"altitude",G,"visible",ja]);var al=yd;f(sd,h),sd.prototype.map_changed=function(){var e=this;T.$require("layers",function(t){t(e)},1)},da(sd.prototype,["map",u(V(sb),D)]),Se.prototype.checkBounds=function(t,e){var n={has_sv:1,bound:t.toUrlValue()};tg(null,n=tm+"?"+Cd(n),function(t){e(t.detail.has_sv||0)})},Se.prototype.getPano=function(t,e,n){tg("",jp+"?lat="+t.lat+"&lng="+t.lng+"&r="+(e||500),function(t){if(t.detail.svid){var e=t.detail.road_name||"";"NA"===e&&(e=""),(t=new Yg(t.detail.svid,new p(Zg(t.detail.y),t.detail.x/111319.49077777778),null,null,null,e)).svid=t.id,n(t)}else n(null)})};var vm={NORMAL:0,BUS_STATION:1,SUBWAY_STATION:2,BUS_LINE:3,DISTRICT:4},Li={BUS:"BUS",SUBWAY:"SUBWAY",WALK:"WALK"},wm={LEAST_TIME:0,LEAST_TRANSFER:1,LEAST_WALKING:2,MOST_ONE:3,NO_SUBWAY:4},xm={LEAST_TIME:0,AVOID_HIGHWAYS:1,LEAST_DISTANCE:2,REAL_TRAFFIC:3,PREDICT_TRAFFIC:4},bl=Sa,dl=Eb,cl=xm;f(Sd,Uc);var $g=Sd.prototype;$g.search=function(t,e){var n=u(U,V(p),kb);n(t)&&n(e)?(this.set("start",t),this.set("end",e),this.send()):n(t)?Yb("end",e):Yb("start",t)},da(Sd.prototype,["complete",u(R,D),"error",u(R,D),"location",U,"policy",G]),$g.setPolicy=function(t,e){this.set("policy",t),this.set("time",e)};var el=Sa,gl=Eb,fl=wm;f(Bc,Uc),Bc.prototype.search=function(t,e){var n=u(U,V(p),kb);n(t)&&n(e)?(this.set("start",t),this.set("end",e),this.send()):n(t)?Yb("end",e):Yb("start",t)},da(Bc.prototype,["complete",u(R,D),"error",u(R,D),"location",U,"policy",G]);var hl=Sa,il=Eb;f(td,Uc),td.prototype.searchById=function(t){this.set("info",t),this.send()},da(td.prototype,["complete",u(R,D),"error",u(R,D)]);var jl=Sa,kl=Eb;f(ud,Uc),ud.prototype.searchById=function(t){this.set("info",t),this.send()},da(ud.prototype,["complete",u(R,D),"error",u(R,D)]);var ml=Eb,ug=Uc,ll=d;f(Te,ug);var db=Te.prototype;db.searchLocalCity=function(){this.set("mode",0),this.set("info",null),this.send()},db.searchCityByName=function(t){this.set("mode",1),this.set("info",t),this.send()},db.searchCityByLatLng=function(t){this.set("mode",2),this.set("info",t),this.send()},db.searchCityByIP=function(t){this.set("mode",3),this.set("info",t),this.send()},db.searchCityByAreaCode=function(t){this.set("mode",4),this.set("info",t),this.send()};var ol=Eb,li=Uc,nl=d;f(Ue,li);var Mi=Ue.prototype;Mi.getAddress=function(t){this.set("qt",hc.RGEOC),this.set("info",t),this.send()},Mi.getLocation=function(t){this.set("qt",hc.GEOC),this.set("info",t),this.send()};var vg=Uc,ql=d,rl=Eb,pl=Sa;f(vd,vg);var ah=vd.prototype;ah.search=function(t){this.set("keyword",t),t=hc.POI,2===this.get("mode")&&(t=hc.BUSLS),this.set("qt",t),this.send()},ah.searchInBounds=function(t,e){this.set("qt",hc.POI_SYN),this.set("keyword",t),this.set("region",e),this.send()},ah.searchNearBy=function(t,e,n,i){this.set("qt",hc.RN),this.set("keyword",t),this.set("region",[e,n]),this.set("sortType",i||0),this.send()},da(vd.prototype,["complete",u(R,D),"error",u(R,D),"pageIndex",G,"pageCapacity",G,"location",u(U,D)]);var ic={POI_LIST:"POI_LIST",CITY_LIST:"CITY_LIST",AREA_INFO:"AREA_INFO",GEO_INFO:"GEO_INFO",STATION_INFO:"STATION_INFO",LINE_INFO:"LINE_INFO",TRANSFER_INFO:"TRANSFER_INFO",DRIVING_INFO:"DRIVING_INFO",MULTI_DESTINATION:"MULTI_DESTINATION",AUTOCOMPLETE_PREDICTION:"AUTOCOMPLETE_PREDICTION"},sl=yd;f(Td,h),Td.prototype.map_changed=function(){var e=this;T.$require("layers",function(t){t(e)},0)},da(Td.prototype,["map",u(V(sb),D)]);var ym={DEFAULT:0},tl=ad,ul=ym,Ni=wg.prototype;Ni.setMap=function(t){this.map&&(this.map.setOptions({scaleControl:!1}),this.map=void 0),t&&(this.map=t,this.setOptions(t.get("scaleControlOptions")))},Ni.setOptions=function(t){t=t||{},this.map.setOptions({scaleControl:!0,scaleControlOptions:{position:t.align||t.position}})};var ye={DEFAULT:0,LARGE:1,SMALL:2},Oi={DEFAULT:0,SMALL:1,ZOOM_PAN:2},wl=ca,vl=ad,wf=Oi,Pi=mi.prototype;Pi.setMap=function(t){this.map&&(this.map.setOptions({zoomControl:!1,panControl:!1}),this.map=void 0),t&&(this.map=t,this.setOptions(this.opts))},Pi.setOptions=function(t){switch((t=t||{}).style){case wf.SMALL:this.map.setOptions({zoomControl:!0,zoomControlOptions:{position:t.position||t.align,style:ye.SMALL,zoomTips:t.zoomTips},panControl:!1});break;case wf.ZOOM_PAN:this.map.setOptions({zoomControl:!0,zoomControlOptions:{style:ye.SMALL,position:t.position||t.align,zoomTips:t.zoomTips},panControl:!0,panControlOptions:{position:t.position||t.align}});break;default:this.map.setOptions({zoomControl:!0,zoomControlOptions:{style:ye.DEFAULT,position:t.position||t.align,zoomTips:t.zoomTips},panControl:!0,panControlOptions:{position:t.position||t.align}})}};var xl=g,yl=["position","style","mapTypeIds","align"];f(ni,h);var xg=h,Wc=d,Ub=g,zl=qg;Vc.prototype.add=function(t){t.mvcRN||(t.mvcRN=++this.count,this.views.push(t),!this.isRun&&0<this.count&&this.start())},Vc.prototype.renderOne=function(t){delete t.mvcRN,t.draw()},Vc.prototype.renderViews=function(){for(var t=null,e=this.views;t=e.shift();)t.mvcRN&&this.renderOne(t);this.count=0},Vc.prototype.start=function(){this.isRun=!0;var t=this,e=this.anim,n=this.views;e.onEnterFrame=function(){n[0]?t.renderViews():t.stop()},e.onEnd=function(){t.isRun&&e.start()},e.delay=10,e.start()},Vc.prototype.stop=function(){this.isRun=!1;var t=this.anim;delete t.onEnd,t.stop()};var bh=new Vc;f(hb,xg);var za=hb.prototype;za.redraw=function(t){t?this.forcedraw():bh.add(this)},za.forcedraw=function(){bh.renderOne(this)},za.draw=function(){},za.dispose=function(){Wc.removeListener(this._fdrawListener)},za.triggerEvents=function(t,e,n){var i=this._model;if(i){if(Ig(e))for(var r=new Re(e),o=this,a=0,s=t.length;a<s;a++)r.addListener(t[a],function(n,i){return function(t){var e=o.getMouseContainerPixel(t);t=new lc(o.getMouseEventLatLng(t,e),e,i,n,t),Wc.trigger(n,i,t)}}(i,t[a]));if(null==e||e==i){for(e=new lc,r=0,a=n.length;r<a;r+=2)e[n[r]]=n[r+1];e.target=i,e.type=t,Wc.trigger(i,t,e)}}},za.triggerMapsEvent=function(t,e){var n=null,i=null,r=this._model;r&&(e&&(n=this.getMouseContainerPixel(e),i=this.getMouseEventLatLng(e,n)),n=new lc(i,n,t,r,e),Wc.trigger(r,t,n))},za.triggerCustomEvent=function(t,e,n){n=n||{};var i=null,r=this._model;if(r){if(e){var o=r.get("map")||r;(o=o&&o.get("mapCanvasProjection"))&&(i=o.fromLatLngToContainerPixel(e))}var a=new lc(e,i,t,r,null,n.cursorPixel);n&&W(n,function(t,e){a[e]=t}),Wc.trigger(r,t,a)}},za.forwardEvents=function(t){var e=this._model;if(e){e._eventTaget||(e._eventTaget={});for(var n=0,i=t.length;n<i;n++)Wc.forward(e._eventTaget,t[n],this)}},za.getMouseEventLatLng=function(t,e){var n=this._model;if(n=n&&(n.get("map")||n))return e=e||this.getMouseContainerPixel(t),(n=n.get("mapCanvasProjection"))&&n.fromContainerPixelToLatLng(e,!0)},za.getMouseEventPoint=function(t){var e=this._model;if(e=e&&(e.get("map")||e))return t=this.getMouseContainerPixel(t),e.get("mapCanvasProjection").fromContainerPixelToPoint(t)},za.getMouseContainerPixel=function(t){var e=this._model;if(e)return e=(e=e.get("map")||e).get("mapContainer")||e.getContainer(),e=we(e),new F((t=Wg(t))[0]-e[0],t[1]-e[1])},za.getModel=function(){return this._model},za.keysReady=function(t,e,r){oi(this,t,e,function(t,n){var i=!0;return Ub(t,function(t,e){if(r&&ja(r(t,n[e]))||(null===t||oc(t)))return i=!1}),i})},za.keysUnReady=function(t,e,o){oi(this,t,e,function(t,i){var r=!1;return Ub(t,function(t,e){var n;if(o&&ja(n=o(t,i[e]))?n:null===t||oc(t))return!(r=!0)}),r})},f(re,hb);var Qi=re.prototype;Qi.changed=function(t){this.a[t]=!0,this.redraw()},Qi.draw=function(){var t=this.get("map"),e=this.get("content"),n=this.get("visible"),i=this.a,r=this.l;if(this.a={},t&&e&&!1!==n){var o=this.get("align")||bd.TOP_CENTER;if((n=this.e)||(n=this.e=v("div")),i.map||i.align){var a=this.e;r&&a&&r.remove(a),(r=this.l=t.controls[o]).push(n)}i.content&&(pi(n),U(e)?n.innerHTML=e:n.appendChild(e)),i.margin&&(t=this.get("margin")||new ca(0,0),n.style.margin=[t.getWidth()+"px",t.getHeight()+"px",t.getWidth()+"px",t.getHeight()+"px"].join(" ")),n&&d.trigger(n,"resize")}else t=this.e,r&&t&&r.remove(t),pi(this.e)},da(re.prototype,["map",u(V(sb),D),"content",u(U,Hg),"align",G,"margin",V(ca),"zIndex",G,"visible",ja]);var Al=ad,Bl=Eb;f(xf,Sc),da(xf.prototype,["map",u(V(sb),D),"imageUrl",u(U,D),"bounds",u(V(Ab),D),"visible",ja,"clickable",ja,"cursor",U,"zIndex",u(G,D),"opacity",u(G,D)]);var Cl=ad,Dl=Eb;f(yf,Sc),da(yf.prototype,["map",u(V(sb),D),"position",u(V(p),D),"content",u(U,D),"title",u(U,D),"visible",ja,"zIndex",u(G,D),"offset",u(V(ca),D),"style",u(kb,U,D),"clickable",ja]);var El=ad,Fl=Eb,yg=Sc;f(Ve,yg),da(Ve.prototype,["map",u(D,V(sb)),"position",u(D,V(p),V(h)),"content",u(U,Hg,D),"zIndex",G]),Ve.prototype.open=function(){this.set("visible",!0),this.get("disableAutoPan")||this.notify("autoPan")},Ve.prototype.close=function(){this.set("visible",!1)},Ve.prototype.notifyResize=function(){this.notify("resize")};var zg=Qe;f(qi,zg),qi.prototype.getBounds=function(){var t=this.get("center"),e=this.get("radius"),n=null;if(t)if(e<=0)n=new Ab(t.clone(),t.clone());else{var i=e/6378137,r=(e=(r=t.getLat())+(o=180*i/Math.PI),n=r-o,Math.cos(r*Math.PI/180)),o=360*Math.asin(i/2/r)/Math.PI;r=t.getLng()+o,n=new Ab(new p(n,t=t.getLng()-o),new p(e,r))}return n};var ri=pg;f(zf,ri);var si=og;f(Xc,si);var Ag=vf;f(Af,Ag);var Zb=Af.prototype;Zb.addMarker=function(t){this.clusterView.addMarker(t)},Zb.removeMarker=function(t){var e=this.get("markers");e&&(e.remove(t),this.clusterView.removeMarker(t))},Zb.addMarkers=function(t){var e=this.get("markers");g(t,function(t){e.push(t)}),this.clusterView.redraw()},Zb.removeMarkers=function(t){var e=this.get("markers");g(t,function(t){e.remove(t)}),this.clusterView.removeMarkers(t)},Zb.clearMarkers=function(){var t=this.get("markers");this.clusterView.removeMarkers(t.elems.slice()),t.clear()},Zb.getMarkers=function(){return this.get("markers")},Zb.getClustersCount=function(){return this.clusterView.getClusterCount()},Zb.updateView=function(){return this.clusterView.reloadView()};var zm={BOUNCE:1,DROP:2,UP:3,DOWN:4},ti=fc;f(Ud,ti),Ud.prototype.CLASS_NAME="Marker";var Hl=Rd,Il=dg,Gl=Sa,Yc=Z;f(se,h),da(se.prototype,["opacity",u(G,D)]),se.prototype._setScale=function(t){this.set("scale",t)};var Am=function(t){var e;return function(){return t&&(e=t(),t=null),e}},On=$a[3][1],ze=function(){return window.devicePixelRatio||screen.deviceXDPI&&screen.deviceXDPI/96||1},Ri=Am(function(){var t=document.createElement("canvas");return t.width=16,t.height=16,!(!t||!t.getContext)}),ch=On,ch=ch+"?appid=jsapi&logid=0&v=",dh=Bi[1],Si=$a[6][2],Jl=Ud,ui=d;f(Vd,h);var Ib=Vd.prototype;Ib.remove=function(){this.icon.set("map",null),this.markers.length=0,ui.removeListener(this.clickListener),delete this.markers,delete this.icon,delete this.markerCluster,delete this.clickListener},Ib.addMarker=function(t){this.isMarkerAlreadyAdded(t)||(this.markers.push(t),this.updateCenter(t.get("position")))},Ib.redraw=function(){var e=this,t=this.markerCluster.get("minimumClusterSize")||1,n=this.markers,i=n.length>=t;g(n,function(t){t.isClustered=i,e.markerCluster.setMarkerDisplay(t,!i)}),this.isCluster=i,this.updateIcon()},Ib.updateCenter=function(t){var e=this.get("center");if(e){if(this.markerCluster.get("averageCenter")){var n=this.markers.length;this.set("center",new p((e.lat*(n-1)+t.lat)/n,(e.lng*(n-1)+t.lng)/n))}}else this.set("center",t)},Ib.updateIcon=function(){var t=(i=this.markerCluster.getStyles()).length,e=this.markerCluster.getCalculator(this.markers,t),n=Math.max(0,e.index-1),i=(t=i[n=Math.min(t-1,n)]).icon;e=(t=t.text).content.replace(/\{(\w+)\}/g,e.text),e=new df(e,t.offset);this.icon.set("decoration",e),this.icon.set("icon",i),this.icon.set("map",this.isCluster?this.map:null),this.icon.set("position",this.isCluster?this.center:null)},Ib.isMarkerAlreadyAdded=function(t){return-1!==cf(this.markers,t)},Ib.getMarkers=function(){return this.markers},Ib.getBounds=function(){var t=this.get("center");if(!t)return null;var e={},n=new Ab(t,t);return g(this.markers,function(t){n.extend(t.get("position"))}),e.info=n.lat.maxY==n.lat.minY&&n.lng.maxX==n.lng.minX?-1:0,e.bounds=n,e};var I={};I.event=d,I.MVCObject=h,I.MVCArray=Tb,I.LatLng=p,I.LatLngBounds=Ab,I.Size=ca,I.Point=F,I.Color=Nb,I.Map=sb,I.MapTypeId=tb,I.MapZoomType=af,I.MapTypeRegistry=Mc,I.MapStyleId=Ja,I.MapStyleRegistry=qd,I.ImageMapType=se,I.Overlay=Sc,I.Marker=Ud,I.MarkerImage=xe,I.MarkerShape=um,I.MarkerAnimation=zm,I.MarkerDecoration=df,I.Cluster=Vd,I.MarkerCluster=Af,I.Polyline=Xc,I.Polygon=zf,I.Circle=qi,I.InfoWindow=Ve,I.Label=yf,I.GroundOverlay=xf,I.ControlPosition=bd,I.Control=re,I.ALIGN={TOP_LEFT:5,TOP:2,TOP_RIGHT:3,LEFT:4,CENTER:13,RIGHT:8,BOTTOM_LEFT:10,BOTTOM:11,BOTTOM_RIGHT:12,isTop:function(t){return t<3},isMiddle:function(t){return 2<t&&t<6},isBottom:function(t){return 5<t},isLeft:function(t){return 0==t%3},isCenter:function(t){return 1==t%3},isRight:function(t){return 2==t%3}},I.MapTypeControl=ni,I.NavigationControl=mi,I.NavigationControlStyle=Oi,I.ZoomControlStyle=ye,I.ScaleControl=wg,I.ScaleControlStyle=ym,I.TrafficLayer=Td,I.ServiceResultType=ic,I.ServiceErrorType=$,I.SearchService=vd,I.Geocoder=Ue,I.CityService=Te,I.StationService=ud,I.LineService=td,I.TransferService=Bc,I.DrivingService=Sd,I.DrivingPolicy=xm,I.TransferPolicy=wm,I.TransferActionType=Li,I.PoiType=vm,I.Panorama=Ob,I.PanoramaService=Se,I.PanoramaLayer=sd,I.PanoramaLabel=rd;var kp=function(t){var e=vb?"&withkey=1&mkey="+vb:"&withkey=0";t=ch+Kg+"&c="+(Ri?1:0)+"&d="+ze()+"&sl="+t+e,window.Object&&Object.defineProperty&&(t+="&es5=1"),Yl(t)};W(I,function(t,e){Ze(e,t)});var lp=new Date;Pg(function(){if(dh&&kp(lp-dh),Si){var a="window."+Si;setTimeout(function(){eval('"use strict";'+a+"()")},0)}"undefined"!=typeof navigator&&-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&d.addDomListener(window,"unload",d.unload)});var pc=$a[1][2],Bg=hb,Ti=F,mp=ca,np=xe,op=df,pp=pc,qp=d,rp=Z,pb=g;f(Bf,Bg);var ha=Bf.prototype;ha.map_changed=function(){this.ready&&this.destroy(),this.get("map")&&this.construct()};var eh="gridSize minimumClusterSize maxZoom zoomOnClick averageCenter styles".split(" ");ha.construct=function(){this.ready=!0;var t=this.getModel();this.bindsTo(eh,t),this.addEvents()},ha.destroy=function(){this.ready=!1,this.unbinds(eh),this.removeEvents()},ha.changed=function(t){"gridSize"!==t&&"maxZoom"!==t&&"minimumClusterSize"!==t||this.reloadView()},ha.averageCenter_changed=function(){this.reloadView()},ha.calculator_changed=function(){pb(this.clusters,function(t){t.updateIcon()})},ha.styles_changed=function(){pb(this.clusters,function(t){t.updateIcon()})},ha.reloadView=function(){if(this.ready){var t=this.clusters.slice();this.clusters.length=0,this.resetViewport(),t[0]&&window.setTimeout(function(){pb(t,function(t){t.remove()})},50),this.redraw()}},ha.addEvents=function(){function t(t,e,n){r.push(qp.addListener(t,e,rp(n,i)))}var i=this,e=i.get("map"),r=i._evts=[],n=null;t(e,"zoom_changed",function(){var t=e.get("zoom");t=Wb(t,e.minZoom,e.maxZoom);n!==t&&(n=t,this.resetViewport())}),t(e,"idle",i.redraw)},ha.removeEvents=function(){var t=this._evts;t&&(pb(t,function(t){t.remove()}),delete this._evts)},ha.addMarker=function(t){this.markers.push(t),this.redraw()},ha.removeMarker=function(t){this.setMarkerDisplay(t,!0),this.markers.remove(t),t.setMap(null),t.isAdded&&delete t.isAdded,this.reloadView()},ha.removeMarkers=function(t){var e=this;pb(t,function(t){t.isAdded&&delete t.isAdded,e.markers.remove(t),t.setMap(null)}),this.reloadView()},ha.setMarkerDisplay=function(t,e){if(e&&!t.get("map")){var n=this.get("map");n&&t.set("map",n)}else!e&&t.get("map")&&t.set("map",null)},ha.doClusterClick=function(t){this.triggerCustomEvent("clusterclick",t.center,{markers:t.markers.slice()});var e=this.get("map");e&&this.get("zoomOnClick")&&(t=t.getBounds())&&(-1!=t.info||e.getZoom()!=e.maxZoom)&&e.fitBounds(t.bounds)},ha.isMarkerInMapDisplay=function(t){return t.get("map")===this.get("map")&&t.get("visible")&&t.get("position")},ha.getClusterCount=function(){var e=this.get("minimumClusterSize"),n=0;return pb(this.clusters,function(t){t.getMarkers().length>=e&&n++}),n},ha.draw=function(){if(this.ready){var e=this,t=e.get("map"),n=t.get("zoom"),i=e.get("maxZoom");if(i&&i<n)e.markers.forEach(function(t){e.setMarkerDisplay(t,!0)});else{if(t=t.getBounds()){var r=e.getExtendedBounds(t);e.markers.forEach(function(t){!t.isAdded&&e.isMarkerInBounds(t,r)&&(e.addToClosestCluster(t),t.isAdded=!0)})}e.clusters.forEach(function(t){t.isToRedraw&&(t.redraw(),t.isToRedraw=!1)})}}},ha.resetViewport=function(){pb(this.clusters,function(t){t.remove()}),this.markers.forEach(function(t){t.isAdded=!1,t.isClustered=!1}),this.clusters.length=0},ha.addToClosestCluster=function(t){var n=4e4,i=null,r=this,o=t.get("position"),e=r.clusters;return pb(e,function(t){var e=t.get("center");!e||(e=r.distanceBetweenPoints(e,o))<n&&(n=e,i=t)}),i&&this.isMarkerInClusterBounds(i,t)?(i.addMarker(t),i.isToRedraw=!0):((i=new Vd(this)).addMarker(t),i.isToRedraw=!0,e.push(i)),i},ha.isMarkerInClusterBounds=function(t,e){var n=t.get("center");return this.getExtendedBounds(new Ab(n,n)).contains(e.get("position"))},ha.isMarkerInBounds=function(t,e){return e.contains(t.get("position"))},ha.getExtendedBounds=function(t){var e=this.get("map").get("mapCanvasProjection"),n=parseInt(this.get("gridSize"))||60,i=t.getNorthEast(),r=t.getSouthWest();return(i=e.fromLatLngToDivPixel(i)).x+=n,i.y-=n,(r=e.fromLatLngToDivPixel(r)).x-=n,r.y+=n,n=e.fromDivPixelToLatLng(i),e=e.fromDivPixelToLatLng(r),t.extend(n),t.extend(e),t},ha.distanceBetweenPoints=function(t,e){if(!t||!e)return 0;var n=Math.PI,i=(e.getLat()-t.getLat())*n/180,r=(e.getLng()-t.getLng())*n/180;n=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.getLat()*n/180)*Math.cos(e.getLat()*n/180)*Math.sin(r/2)*Math.sin(r/2);return 12742*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))},ha.getCalculator=function(t,e){if(n=this.get("calculator"))return n(t,e);for(var n=0,i=t.length,r=i;0!==r;)r=parseInt(r/10,10),n++;return{text:i,index:n=Math.min(n,e)}},ha.getStyles=function(){return this.get("styles")||this.getModel().set("styles",sp()),this.get("styles")};var sp=(Y1q=null,function(){return Y1q=Y1q||function(){var n=pp+"default/imgs/markercluster/m",i=[];return pb([53,56,66,78,90],function(t,e){i.push({icon:new np(n+(e+1)+".png",new mp(t,t),new Ti(0,0),new Ti(t/2,t/2)),text:new op("{num}")})}),i}()}),Qk=Bf,ab=window.localStorage,tp=ab&&ab.setItem&&ab.getItem,Ll=$a[1][1],Ui=$a[1][0],Eg=Kg,Ml=$a[1][3],ib={set:function(t,e){try{null!=e?ab.setItem(t,e):ab.removeItem(t)}catch(t){return null}},get:function(t){try{return ab.getItem(t)}catch(t){return null}},forIn:function(t){try{for(var e in ab)t(ab[e],e)}catch(t){}},support:function(){return tp}},Ya={main:[],common:["main"],ea:["common"],ec:["common"],map:["common"],c0:["map"],c1:["c0"],c3:["c0","common"],pc:["c0"],c2:["map"],c4:["map"],oy:["map","common"],layers:["map"],marker:["map"],infowin:["map"],label:["map","common"],poly:["map"],pe:["poly"],sv:["map"],autocomplete:["sv"],drawingimpl:["map"],dmimpl:["map"],pano:["common"],c5:["common"],eb:["main"],place:["main"],geometry:["main"],drawing:["main"],convertor:["main"]},Nl=Ui+"c/=/",Ol=Ui,Cg=5,fh={},Jb={},gh={},Qb,Y1q;for(Qb in Ya)if(Ya.hasOwnProperty(Qb)){var Of=Ya[Qb];Of[0]&&(fh[Of[0]]=!0),gh[Qb]=[],Jb[Qb]=Jb[Qb]||[];for(var hh=Of.length;hh--;){var ih=Of[hh];Jb[ih]?Jb[ih].push(Qb):Jb[ih]=[Qb]}}var zc={},Dd={},jh,We="QMAPI_",Rl=Eg.split(/\./).join(""),kh={},wi=function(i,r){if(!zc.hasOwnProperty(i)){var t=Ya[i],o=Jb[i],e=Pl(t.length,function(){var t=r;fh[jh=i]&&(t+=";(0,function(){return eval(arguments[0])})"),t=Dd[Ya[i][0]](t),Dd[i]||(Dd[i]=t),zc.hasOwnProperty(i)||(zc[i]=void 0);for(var e=0,n=(t=gh[i]).length;e<n;e++)t[e](zc[i]);for(t=o.length;t--;)e=o[t],kh[e]&&kh[e]()});kh[i]=e;for(var n=t.length;n--;)zc.hasOwnProperty(t[n])&&e();ib.support()&&(t=We+Eg.split(/\./).join("")+"_"+i,!ib.get(t)&&r&&ib.set(t,r))}};window.__cjsload=wi;var Dg={},Cf=[],Df;ib.support()&&Ql();var T={$require:function(t,e,n){zc.hasOwnProperty(t)?(t=zc[t],e(void 0===n?t:t[n])):(vi(t),gh[t].push(void 0===n?e:function(t){e(t[n])}))},$initMain:function(t,e){Dd[t]=e,Dg[t]=!0,zc[t]=void 0},$setExports:function(t){zc[jh]=t}};T.$initMain("main",function(){return eval(arguments[0])}),T.$setExports(gc)}function Uh(t,e){var n;return(n=ld?Vh(t).__events_:(t.__events_||(t.__events_={}),t.__events_))[e]||(n[e]={}),n[e]}function Vh(t){var e;return t&&t.__oid_&&(e=S.eventObjects[t.__oid_]),!e&&t&&(t.__oid_=++Kj,e={__events_:{}},S.eventObjects[t.__oid_]=e),e}function Md(t,e){var n,i={};if(ld?(n=Vh(t))&&(i=n.__events_):i=t.__events_||{},e)n=i[e]||{};else for(e in n={},i)Lj(n,i[e]);return n}function Mj(n){return i=n.handler,n.bindHandler=function(t){if((t=t||window.event)&&!t.target)try{t.target=t.srcElement}catch(t){}var e=i.apply(n.instance,[t]);return(!t||"click"!=t.type||!(t=t.srcElement)||"A"!=t.tagName||"javascript:void(0)"!=t.href)&&e};var i}function Nj(t){t.returnValue=!0}function Wh(i,r,o){return function(){for(var t=[r,i],e=arguments.length,n=0;n<e;++n)t.push(arguments[n]);S.trigger.apply(this,t),o&&Nj.apply(null,arguments)}}function Oj(e,n){return function(){var t=Array.prototype.slice.call(arguments,0);t.push(this),n.apply(e,t)}}function cc(t,e,n,i){this.instance=t,this.eventName=e,this.handler=n,this.bindHandler=null,this.browser=i,this.id=++Pj,Uh(t,e)[this.id]=this,ld&&"tagName"in t&&(S.listeners[this.id]=this)}function Qj(){for(var t=window.navigator.userAgent,e="Android;iPhone;iPad;iPod;SymbianOS;Windows Phone".split(";"),n=!0,i=0;i<e.length;i++)if(0<t.indexOf(e[i])){n=!1;break}return n}function dg(t){this.grids=t}function Rj(t,e){for(var n="https:"==window.location.protocol?"https://":"http://",i=1;i<t.length;i++){var r=t[i];if(r)switch(i){case 1:r[0]&&!gb(r[0])&&(t[i][0]=n+r[0]),r[2]&&!gb(r[2])&&(t[i][2]=n+r[2]);break;case 3:r[1]&&!gb(r[1])&&(t[i][1]=n+r[1]),r[2]&&!gb(r[2])&&(t[i][2]=n+r[2]);break;case 4:t[i]=Kc(r,n);break;case 5:for(var o=0;o<r.length;o++){var a=r[o];a&&(7===o?(t[i][o][0]=Kc(a[0],n),t[i][o][5]=Kc(a[5],n),t[i][o][6]=Kc(a[6],n)):t[i][o][1]=Kc(a[1],n))}break;case 6:r[0]&&!gb(r[0])&&(t[i][0]=n+r[0]),r[1]&&!gb(r[1])&&(t[i][1]=n+r[1])}}Xh[0]=t,Yh[1]=e}function gb(t){return t&&(0===t.indexOf("http://")||0===t.indexOf("https://"))}function Kc(t,e){for(var n=0;n<t.length;n++)t[n]&&!gb(t[n])&&(t[n]=e+t[n]);return t}function Sj(){for(var t=0;t<Nd.length;t++)if(Nd[t]===this){Nd.splice(t,1);break}}function Zh(t){for(var e=Tj,n=0;Lc[n]&&0<=(e-=Lc[n][2]);)n++;0==n?Lc.length&&Lc.shift():(0<(e=Lc.splice(0,n)).length&&Uj(e,t),0<Lc.length&&Zh(t))}function Uj(t,e){var n=[eg];n.push("logid="+(e?2:1)),Vj(t,function(t){n.push(t[0]+"="+t[1])});var i=n.join("&");Wj(i)}function Xj(t,e){if(Yj(t)){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n]+"";Lc.push([n,i,n.length+i+2])}}else Zj(e)||(e+=""),Lc.push([t,e,t.length+e.length+2])}function Je(t){$h.trigger(Od,"submit",Xj,t),Zh(t)}function fg(t,e){-180==t&&180!=e&&(t=180),-180==e&&180!=t&&(e=180),this.minX=t,this.maxX=e}function ai(t,e){this.minY=t,this.maxY=e}function F(t,e){this.x=t,this.y=e}function lc(t,e,n,i,r,o){this.latLng=t,this.pixel=e,this.cursorPixel=o||e,this.type=n,this.target=i,this.__event__=r}function Sb(t){return t.__o_accessors_||(t.__o_accessors_={})}function nd(t,e){t[n=Ke(e)]?t[n]():t.changed(e);var n=Ke(e.toLowerCase()),i=new ak(void 0,void 0,n,t,void 0);dc.trigger(t,n,i)}function bk(t,e,n,i,r){Sb(t)[e]={target:n,targetKey:i},r||nd(t,e)}function od(t){return t.__o_bindings_||(t.__o_bindings_={}),t.__o_bindings_}function Ke(t){return bi[t]||(bi[t]=t+"_changed")}function h(){}function ck(t){this.a=t}function p(t,e,n){t=Number(t),e=Number(e),n||(t=dk(t,-ci,ci),e=ek(e,-180,180)),this.lat=t,this.lng=e}function pd(t){t=256*(t||1),this.a=new pe(t/2,t/2),this.b=t/360,this.c=t/(2*Math.PI),this.d=!0}function Le(t){this.size=256*(t||1)}function fk(){}function di(){"complete"==zb.readyState&&(zb.detachEvent("onreadystatechange",di),oa.fireReady())}function gg(){zb.removeEventListener("DOMContentLoaded",gg,!1),oa.fireReady()}function gk(t,e){var n=document.getElementsByTagName("head")[0],i='<script src="'+t+'" '+Me+'="this.ownerDocument.z = 1"><\/script>',r=Ne.createElement("iframe");r.style.display="none",n.appendChild(r);var o=r.contentDocument;r.onload=function(){1!=o.z&&e&&e(),r.onload=null,n.removeChild(this)};try{o.write(i),o.close()}catch(t){}n=null}function hk(t,e,n,i,r,o){var a=Ne.createElement("script");Oe.push({name:t,sender:a}),a.setAttribute("type","text/javascript"),a.setAttribute("charset",r||"GBK"),a.async=!0;var s=null,l=!1;a[Me]=function(){ik.test(this.readyState)&&(Pd(t),s?n&&n(s):l||i&&i())},qe[t]=function(t){s=t},a.onerror=function(){l=!0,i&&i(),Pd(t)},r=o||["output=jsonp","pf=jsapi","ref=jsapi"],o?(o=r.pop(),r.push(o+hg+"."+t)):(r.push("cb="+hg+"."+t),ei&&r.unshift("key="+ei)),o=e+(-1===e.indexOf("?")?"?":"&")+r.join("&"),a.src=o,jk&&gk(e,function(){a.onerror()}),(e=document.getElementsByTagName("head")[0]).insertBefore(a,e.firstChild),e=null}function Pd(t){if(t){for(var e=0,n=Oe.length,i=null;e<n;e++)if(Oe[e].name===t){i=Oe.splice(e,1)[0];break}i&&((e=i.sender).clearAttributes&&e.clearAttributes(),e[Me]=e.onerror=null,e.parentNode&&e.parentNode.removeChild(e)),qe[t]&&delete qe[t]}}function Qd(t){this.callback=t,this.tasks={},this.id=0}function ca(t,e,n,i){this.width=t,this.height=e}function fi(t,e){for(var n={},i=0,r=t.length;i<r;i+=2){var o=t[i+1];kk(o)&&e?n[t[i]]=fi(o,e):n[t[i]]=o}return n}function lk(t){return"object"==typeof t&&t?(t.__sm_id||(t.__sm_id=++mk),""+t.__sm_id):""+t}function Rd(t){this.hash=t||lk,this.items={},this.length=0}function nk(t){return function(){return this.get(t)}}function ok(e,n){return n?function(t){n(t)||pk(e,t),this.set(e,t)}:function(t){this.set(e,t)}}function qd(){}function Mc(t){this.scale=t}function Tb(t){this.elems=t||[],this.set("length",this.elems.length)}function Ab(t,e){if(t&&!e&&(e=t),t){var n=ig(t.getLat(),-90,90),i=ig(e.getLat(),-90,90);this.lat=new Pe(n,i),n=t.getLng(),360<=(i=e.getLng())-n?this.lng=new Nc(-180,180):(n=jg(n,-180,180),i=jg(i,-180,180),this.lng=new Nc(n,i))}else this.lat=new Pe(1,-1),this.lng=new Nc(180,-180)}function sb(t,e){sf(t)&&(t=document.getElementById(t));var n=this;qk((e=e||{}).mapTypeId)&&(e.mapTypeId="roadmap"),e.noClear&&rk(t),e.scale&&(e.scale=Math.max(Math.round(e.scale),1)),sk(this,e,tf),n.container=t,n.mapTypes=new tk(n.scale),n.mapStyles=new uk,n.overlays=new vk,n.overlayMapTypes=new gi,n.V=new wk,n.tileVersion=!1,n.createImpl=!1,n.constructImpl=!1;var i=n.controls=[];xk(yk,function(t){i[t]=new gi}),n.options=e;var r=this.center.getLat(),o=this.center.getLng();zk.set(r+","+o+","+this.zoom),Ak(1,0);var a=new Bk(function(){n.createImpl&&(n.constructImpl?n.mapControl(n).updateMap():(n.mapControl(n).construct(e),n.constructImpl=!0))});a.addTask(Ck,[n.mapStyleId],function(t){n.customStyleId=t||kg.DEFAULT}),a.addTask(Dk,[],function(){}),a.doTasks(),T.$require("map",function(t){a.isAllDone()&&!n.constructImpl&&(t(n).construct(e),n.constructImpl=!0),n.mapControl=t,n.createImpl=!0},0),Ek(n)}function Rc(t){return function(){var e=[].slice.call(arguments);e.splice(0,0,this.V,t);var n=this;T.$require("map",function(t){n.constructImpl||(n.constructImpl=!0,t(n).construct(n.options)),lg.trigger.apply(lg,e)},0)}}function Sc(t){t&&this.setValues(t)}function Nb(t,e,n,i){this.red=t,this.green=e,this.blue=n,this.alpha=0<=parseInt(i)?i:1}function uf(t){var e=null;return mg(t)?ng(t.getAt(0))?(e=new ec,t.forEach(function(t){e.push(uf(t))})):e=t:ng(t)&&(e=new ec,Fk(t,function(t){ng(t)?e.push(uf(t)):e.push(t)})),e}function Tc(t){t=Gk(t,["fillColor",new Va(38,145,234,.2),"strokeColor",new Va(38,145,234,1),"strokeWeight",2,"strokeDashStyle","solid","zIndex",0,"cursor","pointer","clickable",!0,"simplify",!0,"visible",!0,"strokeLinecap","default"]),this.set("path",new ec),this.setValues(t),T.$require("poly",Hk(this),1)}function og(t){t.filled=!1,hi.call(this,t)}function pg(t){t.filled=!0,ii.call(this,t)}function Qe(t){t=Ik(t,["map",null,"center",null,"radius",0,"bounds",null,"fillColor",new vc(38,145,234,.2),"strokeColor",new vc(38,145,234,1),"strokeWeight",4,"strokeDashStyle","solid","zIndex",0,"cursor","pointer","clickable",!0,"simplify",!0,"visible",!0]),this.setValues(t),T.$require("poly",Jk(this),2)}function qg(t){(t=t||{}).delay=t.delay||0,t.duration=t.duration||0,this.setValues(t),this.status=-1}function Re(e){var n=this;Kk&&T.$require("eb",function(t){new t(n,e)}),Lk&&(document.body.addEventListener?T.$require("ea",function(t){new t(n,e)}):T.$require("ec",function(t){new t(n,e)})),this.start()}function Uc(t){t=Mk(t||{},{complete:null,error:null,map:null,panel:null}),this.setOptions(t)}function vf(t){t=Nk(t,["markers",new Ok,"map",null,"zoomOnClick",!0,"gridSize",60,"averageCenter",!1,"maxZoom",18,"minimumClusterSize",2],!0),this.setValues(t),Pk(this)(Qk)}function fc(t){t=Rk(t,["icon",null,"shadow",null,"shape",null,"decoration",null,"cursor","pointer","title","","animation",null,"clickable",!0,"draggable",!1,"visible",!0,"flat",!1,"zIndex",0,"useDefaults",!0,"height",0,"position",null,"autoRotation",!1,"rotation",0]),this.setValues(t),T.$require("marker",Sk(this))}function wc(e){return function(){var t=[].slice.call(arguments);t.splice(0,0,this,e),T.$require("marker",function(){rg.trigger.apply(rg,t)})}}function Ob(t,e){ji(t)&&(t=document.getElementById(t));var n=this;e=e||{},n.container=t;var i=this.controls=[];Tk(Uk,function(t){i[t]=new Vk}),Wk(this,e,Xk),n._labels=new Yk,n.V=new Zk,$k(0,1),T.$require("pano",function(t){t(n)},0)}function ki(e){return function(){var t=[].slice.call(arguments);t.splice(0,0,this.V,e),T.$require("pano",function(){sg.trigger.apply(sg,t)},0)}}function rd(t){t&&this.setValues(t)}function sd(){T.$require("layers",al,1)}function tg(t,e,n){gc.send(t,e,n)}function Se(){}function Sd(t){t=bl(t,{complete:null,error:null,location:"全国",policy:cl.REAL_TRAFFIC}),this.setOptions(t),T.$require("sv",dl(this),6)}function Bc(t){t=el(t,{complete:null,error:null,location:"全国",policy:fl.LEAST_TIME}),this.setOptions(t),T.$require("sv",gl(this),5)}function td(t){t=hl(t,{complete:null,error:null}),this.setOptions(t),T.$require("sv",il(this),4)}function ud(t){t=jl(t,{complete:null,error:null}),this.setOptions(t),T.$require("sv",kl(this),3)}function Te(t){var e=this;ll.addListenerOnce(this,"dosend_changed",function(){T.$require("sv",ml(e),2)}),ug.call(e,t)}function Ue(t){var e=this;nl.addListenerOnce(this,"dosend_changed",function(){T.$require("sv",ol(e),1)}),li.call(e,t)}function vd(t){t=pl(t||{},{location:null,pageIndex:0,pageCapacity:10});var e=this;ql.addListenerOnce(this,"dosend_changed",function(){T.$require("sv",rl(e),0)}),vg.call(this,t)}function Td(){T.$require("layers",sl,0)}function wg(t){this.opts=t=tl(t,["style",ul.DEFAULT,"index",0]),t.map&&(this.map=t.map,this.setOptions(t))}function mi(t){this.opts=t=vl(t,["style",wf.DEFAULT,"index",0,"margin",new wl(1,2),"zoomTips",{17:"街",11:"市",8:"省",4:"国"}]),t.map&&(this.map=t.map,this.setOptions(t))}function ni(e){var t=e.map;if(t){var n={};xl(yl,function(t){n[t]=e[t]}),t.setOptions({mapTypeControl:!0,mapTypeControlOptions:n})}}function Vc(){this.views=[],this.count=0,this.renderNum=15,this.anim=new zl({duration:500}),this.isRun=!1}function hb(t,e){this._model=t,this._renderTimer=e||0,t&&(this._fdrawListener=Wc.addListener(this,"forceredraw",this.forcedraw,this),this.forwardEvents(["forceredraw"]))}function oi(e,n,i,r){var o=new xg,a=!1,s={};Ub(n,function(t){o[t]=e.get(t),s[t]=1});o.changed=function(t){if(!(a||t&&!s[t])){var e=[];Ub(n,function(t){e.push(o.get(t))}),function(t,e){return r?r(t,e):(n=!0,Ub(t,function(t){if(!t)return n=!1}),n);var n}(e,n)&&(a=!0,delete o.changed,o.unbindAll(n),i())}},o.bindsTo(n,e)}function re(t){this.a={},this.setOptions(t)}function pi(t){if(t)for(var e=t.childNodes,n=0,i=e.length;n<i;n++)t.removeChild(e[n])}function xf(t){t=Al(t,["map",null,"imageUrl",null,"bounds",null,"visible",!0,"clickable",!0,"zIndex",0,"opacity",1,"cursor","pointer"]),this.setValues(t),T.$require("poly",Bl(this),0)}function yf(t){t=Cl(t,["map",null,"position",null,"content",null,"visible",!0,"title",null,"zIndex",null,"offset",null,"style",null,"clickable",!0]),this.setValues(t),T.$require("label",Dl(this))}function Ve(t){t=El(t,["visible",!1,"content","","maxWidth",760,"maxHeight",840,"minWidth",80,"minHeight",30,"zIndex",0,"noScroll",!1,"disableAutoPan",!1,"position",null]),this.setValues(t),yg.call(this,t),T.$require("infowin",Fl(this))}function qi(t){zg.call(this,t||{})}function zf(t){ri.call(this,t||{})}function Xc(t){si.call(this,t||{})}function Af(t){Ag.apply(this,arguments)}function Ud(t){ti.call(this,t)}function se(e){e=Gl({alt:"",name:"",maxZoom:null,minZoom:null,radius:0,tileSize:null,opacity:1,errorUrl:null,alpha:!1,poiLayer:!1},e||{},!0),this.tileSize=e.tileSize,this.name=e.name,this.alt=e.alt,this.minZoom=e.minZoom,this.maxZoom=e.maxZoom,this.copyrights=e.copyrights;var n=new Hl,t=new Il(n);this.getTile=Yc(t.getTile,t),this.releaseTile=Yc(t.releaseTile,t),this.stop=Yc(t.stop,t),this.poiLayer=e.poiLayer;var i=Yc(e.getTileUrl,e);this.set("opacity",e.opacity),this._setScale(1);var r=this;T.$require("map",function(t){(t=new t(n,[{func:i,type:1,alpha:!!e.alpha,tqLogId:e.tqLogId}],null,e)).bindTo("opacity",r),t.bindTo("scale",r)},1)}function Vd(t){this.markerCluster=t,this.map=t.get("map"),this.icon=new Jl,this.markers=[];var e=this;e.clickListener=ui.addListener(this.icon,"click",function(){e.markerCluster&&e.markerCluster.doClusterClick(e)})}function Bf(t){this.markers=t.get("markers"),this.clusters=[],Bg.call(this,t),this.bindTo("map",t),t.clusterView=this}function Kl(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(Ll+t[n]+".js");if(Ml){for(t=[],n=Math.ceil(e.length/Cg);n--;)t.push(Nl+e.splice(0,Cg).join(","));return t}for(n=0,i=e.length;n<i;n++)e[n]=Ol+e[n];return e}function Pl(t,e){if(t)return function(){--t||e()};e()}function Ql(){try{ib.forIn(function(t,e){var n=e.match(RegExp(We+"([0-9a-z]*)_"));(n=n&&n[1])&&n!=Rl&&ib.set(e,null)})}catch(t){}}function vi(t){if(!Dg[t]){Dg[t]=!0;for(var e=Ya[t],n=e.length;n--;)vi(e[n]);Cf.push(t),Df=Df||setTimeout(Sl,0)}}function Tl(t){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",t),e.setAttribute("charset","utf-8"),document.getElementsByTagName("head")[0].appendChild(e)}function Ul(t){var e=[];if(ib.support())for(var n=0;n<t.length;n++){var i=t[n],r=We+Eg.split(/\./).join("")+"_"+i;(r=ib.get(r))?wi(i,r):e.push(i)}else e=t;return e}function Sl(){Df=0;var t=Cf;Cf=[],t.sort(function(t,e){return t<=e});for(var e=(t=Kl(t=Ul(t))).length;e--;)Tl(t[e])}}()},function(t,e,n){var i,r;i=[n(9),n(0),n,e,t],void 0===(r=function(e,t,n,i,r){function o(t){t=t||{},e.control.FullScreen.call(this,{className:"ol-full-screen"}),t.left?this.left=t.left:t.right&&(this.right=t.right),t.top?this.top=t.top:t.bottom&&(this.bottom=t.bottom),this.width=t.width||"28px",this.element.style.cssText="width:"+this.width+";bottom:"+this.bottom+";right:"+this.right+";left:"+this.left+";top:"+this.top}return t.olInherits(o,e.control.FullScreen),o.prototype.setPosition=function(t){var e=t||{};e.left?this.left=e.left:e.right&&!this.left&&(this.right=e.right),e.top?this.top=e.top:e.bottom&&!this.top&&(this.bottom=e.bottom),this.element_.style.cssText="width:"+this.width+";bottom:"+this.bottom+";right:"+this.right+";left:"+this.left+";top:"+this.top},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(27),n(40),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},n.call(this,t),this.leadWireColor=t.leadWireColor,this.leadWireWidth=t.leadWireWidth,this._pattern=null,this._startPosition=null}return t.extend2(a,n),o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(9),n(0),n,e,t],void 0===(r=function(y,t,e,n,i){var d=function(t){var e=t||{};this.collapsed_=void 0!==e.collapsed&&e.collapsed,this.collapsible_=void 0===e.collapsible||e.collapsible,this.collapsed_&&(this.needFirstRenderUpdate_=!0),this.collapsible_||(this.collapsed_=!1);var n=e.className?e.className:"ol-overviewmap",i=e.tipLabel?e.tipLabel:"Overview map",r=document.createElement("div"),o=document.createAttribute("class");o.value="ol-overviewmap-map overviewMapBG",r.setAttributeNode(o),this.ovmap_=new y.Map({controls:new y.Collection,interactions:new y.Collection,target:r}),this.ovmap_.on("click",this.rePostion.bind(this));var a=this.ovmap_;e.layers&&e.layers.forEach(function(t){t instanceof y.layer.Tile&&a.addLayer(t)},this);var s=document.createElement("div");s.setAttribute("class","ol-overviewmap-box"),this.boxOverlay_=new y.Overlay({position:[0,0],positioning:"bottom-left",element:s}),this.ovmap_.addOverlay(this.boxOverlay_);var l,u=n+" ol-unselectable ol-control"+(this.collapsed_&&this.collapsible_?" ol-collapsed":"")+(this.collapsible_?"":" ol-uncollapsible");if(void 0!==e.collapseLabel||void 0!==e.label){e.collapseLabel&&e.collapseLabel;this.collapseLabel_=document.createElement("span"),this.collapseLabel_.innerHTML="»";e.label&&e.label;this.label_=document.createElement("span"),this.label_.innerHTML="«";var h=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,c=document.createElement("button");c.setAttribute("type","button"),c.setAttribute("title",i),c.appendChild(h),c.addEventListener("click",this.handleClick_.bind(this)),c.addEventListener("mouseout",function(){this.blur()}),c.addEventListener("focusout",function(){this.blur()}),(p=document.createElement("div")).setAttribute("class",u),p.appendChild(r),p.appendChild(c),l=p}else{var p;(p=document.createElement("div")).setAttribute("class",u),p.appendChild(r),l=p}var f=e.render?e.render:d.render;this.dragging=null,s.addEventListener("mousedown",this.onStartDrag.bind(this)),document.body.addEventListener("mousemove",this.onDrag.bind(this)),document.body.addEventListener("mouseup",this.onEndDrag.bind(this)),y.control.Control.call(this,{element:l,render:f,target:e.target})};function r(t,e){return t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}return t.olInherits(d,y.control.Control),d.prototype.rePostion=function(t){this.getMap().getView().setCenter(t.coordinate)},d.prototype.setMap=function(t){var r=[];function e(t,e){if(1===t.getLayerType()){var n=new y.layer.Tile({source:t.getLayer().getSource()}),i=t.visible;n.setVisible(i),e.addLayer(n),t.on("visible",function(t){for(var e=0,n=r.length;e<n;e++){r[e][0]==t&&r[e][1].setVisible(t.visible)}}),r.push([t,n])}}var n=this._egismap,i=this.ovmap_;n.on("addlayer",function(t){e(t,i)}),n.on("removelayer",function(t){for(var e=0,n=r.length;e<n;e++){if(r[e][0]==t){i.removeLayer(r[e][1]),r.splice(e,1);break}}});for(var o=n.getLayers(),a=0,s=o.length;a<s;a++){e(o[a],this.ovmap_)}if(t!==this.getMap()){var l=t.getView().getProjection(),u=new y.View({projection:l});this.ovmap_.setView(u),y.control.Control.prototype.setMap.call(this,t),this.ovmap_.updateSize(),this.resetExtent_()}},d.prototype.handleRotationChanged_=function(){this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},d.render=function(t){this.validateExtent_(),this.updateBox_()},d.prototype.validateExtent_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView().calculateExtent(n),r=e.getSize(),o=e.getView().calculateExtent(r),a=e.getPixelFromCoordinate(y.extent.getTopLeft(i));if(a){var s=e.getPixelFromCoordinate(y.extent.getBottomRight(i)),l=Math.abs(a[0]-s[0]),u=Math.abs(a[1]-s[1]),h=r[0],c=r[1];l<.1*h||u<.1*c||.75*h<l||.75*c<u?this.resetExtent_():y.extent.containsExtent(o,i)||this.recenter_()}},d.prototype.resetExtent_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView().calculateExtent(n),r=e.getSize(),o=e.getView(),a=Math.log(7.5)/Math.LN2;!function(t,e){var n=(t[2]-t[0])/2*(e-1),i=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=i,t[3]+=i}(i,1/(.1*Math.pow(2,a/2))),o.fit(i,r)},d.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getView();e.getView().setCenter(n.getCenter())},d.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView(),r=e.getView(),o=(e.getSize(),i.getRotation()),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=i.calculateExtent(n),u=r.getResolution(),h=y.extent.getBottomLeft(l),c=y.extent.getTopRight(l),p=this.calculateCoordinateRotate_(o,h);if(a.setPosition(p),s){var f=Math.abs((h[0]-c[0])/u)+"px",d=Math.abs((c[1]-h[1])/u)+"px";s.style.width=f,s.style.height=d}},d.prototype.calculateCoordinateRotate_=function(t,e){var n,i=this.getMap().getView().getCenter();return i&&(n=[e[0]-i[0],e[1]-i[1]],y.coordinate.rotate(n,t),y.coordinate.add(n,i)),n},d.prototype.handleClick_=function(t){t.preventDefault(),this.collapsed_=!this.collapsed_,function(t,e){r(t,e)?function(t,e){if(r(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}(t,e):function(t,e){r(t,e)||(t.className+=" "+e)}(t,e)}(this.element,"ol-collapsed"),this.collapsed_?this.collapseLabel_.parentNode.replaceChild(this.label_,this.collapseLabel_):this.label_.parentNode.replaceChild(this.collapseLabel_,this.label_),!this.collapsed_&&this.needFirstRenderUpdate_&&(this.needFirstRenderUpdate_=!1,this.ovmap_.updateSize(),this.ovmap_.once("postrender",function(){this.render()}.bind(this)))},d.prototype.onStartDrag=function(t){var e=t.target;e.offset=function(){var t=this.offsetTop,e=this.offsetLeft,n=this.offsetParent;for(;n;)t+=n.offsetTop,e+=n.offsetLeft,n=n.offsetParent;if(0<arguments.length){var i=t-arguments[0].top,r=e-arguments[0].left;this.style.setProperty("position","absolute");var o=parseFloat(window.getComputedStyle(this).left),a=parseFloat(window.getComputedStyle(this).top);return this.style.setProperty("left",o-r+"px"),void this.style.setProperty("top",a-i+"px")}return{top:t,left:e}}.bind(e),e.position=function(){return{top:this.offsetTop,left:this.offsetLeft}}.bind(e),e.getHeight=function(){var t=window.getComputedStyle(this),e=this.offsetHeight,n=parseFloat(t.borderTopWidth),i=parseFloat(t.borderBottomWidth),r=parseFloat(t.paddingTop),o=parseFloat(t.paddingBottom);return e-i-n-r-o}.bind(e),e.getWidth=function(){var t=window.getComputedStyle(this),e=this.offsetWidth,n=parseFloat(t.borderLeftWidth),i=parseFloat(t.borderRightWidth),r=parseFloat(t.paddingLeft),o=parseFloat(t.paddingRight);return e-n-i-r-o}.bind(e),this.dragging={el:e,evPos:{top:t.pageY,left:t.pageX},elPos:e.offset()}},d.prototype.onDrag=function(t){if(this.dragging){var e=this.dragging.el.offset(),n={top:e.top+(t.pageY-this.dragging.evPos.top),left:e.left+(t.pageX-this.dragging.evPos.left)};this.dragging.evPos={top:t.pageY,left:t.pageX},this.dragging.el.offset(n)}},d.prototype.onEndDrag=function(t){if(this.dragging){var e=this.getMap(),n=this.dragging.el.position(),i=[this.dragging.el.getWidth(),this.dragging.el.getHeight()],r=e.getSize(),o=e.getView().getResolution(),a=n.left*Math.abs(r[0]/i[0]),s=n.top*Math.abs(r[1]/i[1]),l=[0+a,r[1]+s],u=[r[0]+a,0+s],h=e.getCoordinateFromPixel(l),c=e.getCoordinateFromPixel(u),p=[h[0],h[1],c[0],c[1]];e.getView().fit(p,e.getSize()),e.getView().setResolution(o),this.dragging.el.offset(this.dragging.elPos),this.dragging=null}},i.exports=d}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(9),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.control.ScaleLine.call(this,{className:void 0===e.className?"ol-scale-line":e.className,bar:void 0!==e.bar&&e.bar,minWidth:void 0===e.minWidth?64:e.minWidth,units:void 0===e.units?"metric":e.units,steps:void 0===e.steps?4:e.steps}),e.left?this.left=e.left:e.right?this.right=e.right:this.left="20px",e.top?this.top=e.top:e.bottom?this.bottom=e.bottom:this.bottom="20px",this.borderRadius=e.borderRadius||"4px",this.background=e.background,this.element.style.cssText="background:"+this.background+";border-radius:"+this.borderRadius+";bottom:"+this.bottom+";right:"+this.right+";left:"+this.left+";top:"+this.top+";padding:2px;text-align:center;position:absolute"}return t.olInherits(o,n.control.ScaleLine),o.prototype.setPostion=function(t){var e=t||{};e.left?(this.left=e.left,this.right=null):e.right&&(this.right=e.right,this.left=null),e.top?(this.top=e.top,this.bottom=null):e.bottom&&(this.bottom=e.bottom,this.top=null),this.element.style.cssText="background:"+this.background+";border-radius:"+this.borderRadius+";bottom:"+this.bottom+";right:"+this.right+";left:"+this.left+";top:"+this.top+";padding:2px;position:absolute;text-align:center"},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(9),n(0),n,e,t],void 0===(r=function(h,t,e,n,i){function r(t){var e=(t=t||{}).delta?t.delta:1,n=t.zoomInLabel?t.zoomInLabel:"+",i=t.zoomOutLabel?t.zoomOutLabel:"",r=t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",o=t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className="-in",a.setAttribute("type","button"),a.title=r,a.appendChild("string"==typeof n?document.createTextNode(n):n);var s=this;a.addEventListener("click",function(t){c.call(s,e,t)},!1);var l=document.createElement("button");l.className="-out",l.setAttribute("type","button"),l.title=o,l.appendChild("string"==typeof i?document.createTextNode(i):i),l.addEventListener("click",function(t){c.call(s,-e,t)},!1);var u=document.createElement("div");u.className=" ol-unselectable ol-control",u.appendChild(a),u.appendChild(l),h.control.Control.call(this,{element:u,target:t.target}),this.duration_=t.duration?t.duration:250,t.left&&(u.style.left=t.left),t.right?u.style.right=t.right:u.style.right="0.5em",t.top&&(u.style.top=t.top),t.bottom?u.style.bottom=t.bottom:u.style.bottom="0.5em",t.width?u.style.width=t.width:u.style.width="28px",t.height?u.style.height=t.height:u.style.height="52px"}function c(t,e){e.preventDefault(),this.zoomByDelta_(t)}return t.olInherits(r,h.control.Control),r.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var n=e.getZoom();if(void 0!==n){var i=e.getConstrainedZoom(n+t);0<this.duration_?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:h.easing.easeOut})):e.setZoom(i)}}},r.prototype.setPostion=function(t){t.left&&(this.element.style.left=t.left),t.right&&(this.element.style.right=t.right),t.top&&(this.element.style.top=t.top),t.bottom&&(this.element.style.bottom=t.bottom)},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.open=function(t){},i.prototype.open=function(){},i.prototype.close=function(){},i.prototype.send=function(t){},i.prototype.onOpen=function(t){},i.prototype.onMessage=function(t){},i.prototype.onClose=function(t){},i.prototype.onError=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e){},function(t,e,n){var i,r;i=[n(0),n(71),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),a.prototype.onSelectElement=function(t,e){null!=e&&t.bringTop(e)},a.prototype.onUnSelectElement=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},this.layerTypes=[n.FeatureLayer],e.call(this,t)}return t.extend2(a,e),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.selectionSet=t.graphicSelectionSet,this.map=t.map},a.prototype.onMouseDown=function(t,e,n,i,r,o,a){var s=this.getLayers();this.selectLayers(s,n,i)},a.prototype.onSelectGraphic=function(t,e){e.feature&&t.bringTop(e.feature)},a.prototype.onUnSelectGraphic=function(){},a.prototype.selectLayers=function(t,e,n){var i=this.getSelectedGraphic(t,e,n);return i?(this.onSelectGraphic(i.layer,i.graphic),!0):(this.onUnSelectGraphic(),!1)},a.prototype.getSelectedGraphic=function(t,e,n){for(var i=0;i<t.length;++i){var r=t[i],o=r.hitTest(e,n);if(o)return{layer:r,graphic:o}}return null},a.prototype.contains=function(t){for(var e=0;e<this.layerTypes.length;++e){if(this.layerTypes[e]==t)return!0}return!1},a.prototype.getLayers=function(){for(var t=[],e=0;e<this.map.getLayerCount();++e){var n=this.map.getLayer(e),i=n.getLayerType();this.contains(i)&&t.push(n)}return t},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(306),n(45),n(107),n(36),n(17),n(38),n(2),n(1),n(3),n(8),n(31),n(28),n(32),n(34),n(180),n,e,t],void 0===(r=function(t,i,e,n,r,y,m,g,o,v,a,s,l,u,h,c,p,f,d){function x(t){t=t||{},e.call(this,t||{}),this.drawElement=null,this.map=null,this.drawLayer=t.bufferLayer,this.templateElement=t.templateElement,this.radius=t.radius||1e3,this.bufferSymbol=t.bufferSymbol||new u,this.bufferVisible=null==t.bufferVisible||t.bufferVisible,this.labelSymbol=t.labelSymbol||new h,this.labelVisible=null==t.labelVisible||t.labelVisible,this.labelPosition=t.labelPosition||"right",this.axisSymbol=t.axisSymbol||new l,this.axisVisible=null==t.axisVisible||t.axisVisible,this.dragSymbol=t.dragSymbol||new s,this.dragVisible=null==t.dragVisible||t.dragVisible,this.closeSymbol=t.closeSymbol||new s,this.closeVisible=null==t.closeVisible||t.closeVisible,this.geoBuilder=new n,this.isDraw=!1,this.canContinue=t.canContinue,this.canEdit=t.canEdit||!1,this.activeCommandName=t.activeCommandName||"NoopTool"}function _(t){var e;switch(t.getGeometryType()){case a.Polygon:e=t.getShell().points;break;case a.Polyline:e=t.paths[0].points;break;case a.Point:e=[t]}for(var n=e[0],i=e[0],r=1;r<e.length;r++)e[r].x<n.x&&(n=e[r]),e[r].y<i.y&&(i=e[r]);return[n,i]}return t.extend2(x,e),x.prototype.getBuffer=function(t){return new c({projectService:new r}).buffer(t,this.radius)},x.prototype.getComposite=function(t){var e=new m({tag:{radius:this.radius}}),n=(_(t)[0],_(t)[1]);this.drawElement.kind="origin",this.drawElement.tag={bottomPoint:n},e.add(this.drawElement);var i=this.getBuffer(t);if(i&&i.getShell()){var r=_(i)[0],o=_(i)[1],a=n.y-o.y;if(this.bufferVisible){var s=new y({kind:"buffer",geometry:i,symbol:this.bufferSymbol});e.add(s)}if(this.labelVisible){var l=o.copy();switch(this.labelPosition){case"top":l.y+=a;break;case"right":l.x+=a;break;case"bottom":l.y-=a;break;case"left":l.x-=a}this.labelSymbol.text=""+this.radius;var u=new y({kind:"label",geometry:l,symbol:this.labelSymbol,tag:{position:this.labelPosition}});e.add(u)}if(this.axisVisible){var h=new v({spatialReference:this.srid}),c=new g({spatialReference:this.srid});c.addPoint(n),c.addPoint(o),h.addGeometry(c);var p=new y({kind:"axis",geometry:h,symbol:this.axisSymbol});e.add(p)}if(this.dragVisible){var f=new y({kind:"drag",geometry:o,symbol:this.dragSymbol});e.add(f)}if(this.closeVisible){var d=new y({kind:"close",geometry:r,symbol:this.closeSymbol});e.add(d)}}return e},x.prototype.endDraw=function(){if(this.isDraw=!1,this.drawElement){var t=this.drawElement.geometry;t.normalize(),this.geoBuilder.build(t,null,4,this.pushNum),this.drawLayer.remove(this.drawElement);var e=this.getComposite(t);if(this.drawLayer.add(e),this.canContinue)this.onEndDraw(this.drawElement),this.drawElement=this.templateElement.copy();else if(this.activeCommand(this.activeCommandName,null),this.onEndDraw(this.drawElement),this.drawElement=null,this.canEdit){var n=new i({drawLayer:this.drawLayer});n.onCreate({map:this.map}),n.onClick()}this.finishCoordinate=null,this.pushNum=0,this.map.resumeDbClick(),this.notify()}},x}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(45),n(8),n(40),n(49),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){(t=t||{}).canContinue=!1,e.call(this,t),this.templateElement=t.templateElement,this.layer=t.layer,this.tooltipWare=null}return t.extend2(l,e),l.prototype.isEnabled=function(){return!this.layer.visible},l.prototype.onCreate=function(t){l.prototype.uber.onCreate.call(this,t),this.tooltipWare=t.tooltipWare},l.prototype.onEndDraw=function(t){this.layer.add(t)},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(150),n(8),n,e,t],void 0===(r=function(t,e,c,n,i,r){function p(t){(t=t||{}).cursor="crosshair",e.call(this,t),this.layer=t.layer,this.templateElement=null,this.lastGeometry=null,this.symbolTable=null,this.spatialRef=null,o=this}var o;return t.extend2(p,e),p.prototype.deactivate=function(){p.prototype.uber.deactivate.call(this)},p.prototype.onCreate=function(t){p.prototype.uber.onCreate.call(this,t),this.symbolTable=t.symbolTable,this.spatialRef=t.map.getSrid()},p.prototype.onClick=function(t){p.prototype.uber.onClick.call(this,t)},p.prototype.onMouseDown=function(t,e,n,i,r,o,a){var s=this.layer.hitTest(n,i);if(s){var l=s.element,u=l.copy(),h=this.createElement(u);this.switch(h),this.layer.remove(l),this.selectElement=u,this.templateElement=u}else p.prototype.uber.onMouseDown.call(this,t,e,n,i,r,o,a)},p.prototype.sure=function(){o.stopEdit()},p.prototype.cancel=function(){o.stopEdit(),o.templateElement.geometry=o.lastGeometry,o.drawLayer.update(o.templateElement)},p.prototype.canEdit=function(t,e){if(e){var n=e.getGeometry();switch(this.templateElement.geometry.getGeometryType()){case c.Point:return n===this.templateElement.geometry;case c.Polygon:case c.Polyline:case c.LineString:for(var i=0,r=this.templateElement.geometry.getPointCount();i<r;++i){if(this.templateElement.geometry.getPoint(i)===n)return!0}break;case c.Circle:case c.Ellipse:case c.Envelope:var o,a,s=this.currentElement;if(o=this.drawLayer.lookup(s))if(a=o.HighLight)for(r=a.length,i=0;i<r;++i)if(a[i].Element.geometry===n)return!0}}return!1},p.prototype.updateGeometry=function(t,e){switch(e.geometry.getGeometryType()){case c.Circle:if((r=e.geometry.getCenter())===t){if(a=this.drawLayer.lookup(e))if(o=a.HighLight){var n=o[1].Element.geometry,i=Math.pow(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2),.5);e.geometry.radius=i}}else{i=Math.pow(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2),.5);e.geometry.radius=i}break;case c.Ellipse:var r,o;if((r=e.geometry.getCenter())===t){if(a=this.drawLayer.lookup(e))if(o=a.HighLight){n=o[1].Element.geometry;e.geometry.axisX=n.x-r.x,e.geometry.axisY=r.y-n.y}}else e.geometry.axisX=t.x-r.x,e.geometry.axisY=r.y-t.y;break;case c.Envelope:var a;if(a=this.drawLayer.lookup(e)){var s=a.HighLight,l=[];s.forEach(function(t){l.push(t.Element)});var u=e.geometry,h=l.indexOf(this.editElement);0==h?(u.minx=t.x,u.miny=t.y):1==h&&(u.maxx=t.x,u.maxy=t.y)}}return e},p.prototype.onEndDraw=function(t){t&&(this.lastGeometry=t.geometry,this.layer.add(this.templateElement))},r.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n(8),n(107),n(1),n,e,t],void 0===(r=function(t,e,n,i,u,r,o,a){function s(t){t=t||{},e.call(this,t||{}),this.drawElement=null,this.map=null,this.drawLayer=t.drawLayer,this.templateElement=t.templateElement,this.geoBuilder=new i,this.isDraw=!1,this.canContinue=t.canContinue,this.isMouseDownDraw=void 0!==t.isMouseDownDraw&&t.isMouseDownDraw,this.activeCommandName=t.activeCommandName||"NoopTool",this.isMouseDownDraw?this.onMouseUp=function(t,e,n,i,r,o,a){l.call(this)}:this.onDblclick=function(t){l.call(this)}}function l(){this.isDraw=!1;var t=this.drawElement.geometry;t.normalize(),this.geoBuilder.build(t,null,4,this.pushNum),this.pushNum=0,this.isMouseDownDraw?this.map.resumeDragPan():this.map.resumeDbClick(),this.drawLayer.remove(this.drawElement),this.canContinue?(this.onEndDraw(this.drawElement),this.drawElement=this.templateElement.copy()):(this.activeCommand(this.activeCommandName,null),this.onEndDraw(this.drawElement),this.drawElement=null)}return t.extend2(s,e),s.prototype.onCreate=function(t){s.prototype.uber.onCreate(t),this.map=t.map,this.srid=this.map.getSrid()},s.prototype.onClick=function(t){s.prototype.uber.onClick.call(this,t),this.pushNum=0},s.prototype.onMouseDown=function(t,e,n,i,r,o,a){if(this.templateElement&&!this.isDraw){this.isMouseDownDraw?this.map.stopDragPan():this.map.stopDbClick(),this.isDraw=!0;var s=new u({x:r,y:o,spatialReference:this.srid});this.drawElement=this.templateElement.copy();var l=this.drawElement.geometry;this.geoBuilder.build(l,s,1,this.pushNum),this.drawLayer.add(this.drawElement)}},s.prototype.onMouseMove=function(t,e,n,i,r,o,a){if(this.isDraw){var s=new u({x:r,y:o}),l=this.drawElement.geometry;this.geoBuilder.build(l,s,2,this.pushNum),this.drawLayer.update(this.drawElement)}},s.prototype.onEndDraw=function(t){},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(71),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t)}return t.extend2(a,e),a.prototype.onSelectElement=function(t,e){null!=e&&t.sendBottom(e)},a.prototype.onUnSelectElement=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},this.layerTypes=[n.FeatureLayer],e.call(this,t)}return t.extend2(a,e),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),this.selectionSet=t.graphicSelectionSet,this.map=t.map},a.prototype.onMouseDown=function(t,e,n,i,r,o,a){var s=this.getLayers();this.selectLayers(s,n,i)},a.prototype.onSelectGraphic=function(t,e){e.feature&&t.sendBottom(e.feature)},a.prototype.onUnSelectGraphic=function(){},a.prototype.selectLayers=function(t,e,n){var i=this.getSelectedGraphic(t,e,n);return i?(this.onSelectGraphic(i.layer,i.graphic),!0):(this.onUnSelectGraphic(),!1)},a.prototype.getSelectedGraphic=function(t,e,n){for(var i=0;i<t.length;++i){var r=t[i],o=r.hitTest(e,n);if(o)return{layer:r,graphic:o}}return null},a.prototype.contains=function(t){for(var e=0;e<this.layerTypes.length;++e){if(this.layerTypes[e]==t)return!0}return!1},a.prototype.getLayers=function(){for(var t=[],e=0;e<this.map.getLayerCount();++e){var n=this.map.getLayer(e),i=n.getLayerType();this.contains(i)&&t.push(n)}return t},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(76),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.relations=t.relations,this.$type="Business,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(310),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tag=t.tag,this.$type="BusinessCollection,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(37),n,e,t],void 0===(r=function(t,e,n,i){function r(t){t=t||{},this.entityCollections=t.entityCollections,this.$type="CompreQueryOutput,http://www.Gs.com"}return r.prototype.getEntityCollections=function(){return this.entityCollections},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(37),n,e,t],void 0===(r=function(t,e,n,i){function r(t){t=t||{},this.statistic=t.statistic,this.$type="CompreStatisticOutput,http://www.Gs.com"}return r.prototype.getStatistic=function(){return this.statistic},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.feature=t.feature||{},this.$type="Feature,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(312),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){e.call(this,t),this.geometry=t.geometry,this.spatialRelType=t.spatialRelType,this.$type="GSpatialFilter,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(37),n,e,t],void 0===(r=function(t,e,n,i){function r(t){t=t||{},this.count=t.count,this.pageIndex=t.pageIndex,this.pageSize=t.pageSize,this.entities=t.entities,this.$type="PageQueryOutput,http://www.Gs.com"}return r.prototype.getEntities=function(){return this.entities},r.prototype.getCount=function(){return this.count},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.$type="ServiceIdentification,http://www.Gs.com",this.title=e.title,this.serviceType=e.serviceType,this.serviceTypeVersion=e.serviceTypeVersion}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.$type="ServiceMetadata,http://www.Gs.com",this.identification=e.identification,this.operations=e.operations,this.contents=e.contents}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.$type="ServiceOperation,http://www.Gs.com",this.name=e.name,this.operate=e.operate}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,n,i){(function(t){var e;void 0===(e=function(t,e,n){function i(){}return i.Undefined=0,i.Crosses=1,i.Disjoint=2,i.Equals=3,i.Intersects=4,i.Overlaps=5,i.Touches=6,i.Within=7,i.Relate=8,i.Contains=9,n.exportss=i}.apply(n,[i,n,t]))||(t.exports=e)}).call(this,i(314)(t))},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.startTime=t.startTime,this.endTime=t.endTime}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(97),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){(t=t||{}).serviceFix="wbims",e.call(this,t)}return t.extend2(o,e),o.prototype.getComponent=function(t,e){var n="{url}/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/component/"+t+"/"+e;return this._getRequest(n,null,"text").then(function(t){return t&&0===t.status?t.result:t},function(t){throw console.error(t),t})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(97),n(1),n(75),n(117),n(35),n(50),n(115),n(116),n(318),n,e,t],void 0===(r=function(t,e,m,g,a,v,x,_,w,r,n,i,o){function s(t){(t=t||{}).serviceFix="wbms",e.call(this,t)}var l="{url}/{serviceName}";function u(t){var e,n=new v,i=[];e=function(t){return new m({x:t[0],y:t[1],z:t[2],spatialReference:4490})}(t.location);var r=new x;r.dataType=12,r.name="id",n.fields.push(r);var o=new w;o.value=t.id,i.push(o);var a=t.attribute;if(a)for(var s=Object.keys(a),l=0,u=s.length;l<u;l++){var h=s[l],c=new x,p=a[h];c.name=h,"string"==typeof p?c.dataType=12:"number"==typeof p?c.dataType=6:"boolean"==typeof p&&(c.dataType=41),n.fields.push(c);var f=new w;f.value=p,i.push(f)}var d=new x;d.dataType=102,d.name="point";var y=new _({geometry:e});return n.fields.push(d),i.push(y),new g({fields:n,properties:i})}function h(t){var e=new a({entities:[]}),n=t.models;if(n&&Array.isArray(n)){for(var i=0,r=n.length;i<r;i++){var o=u(n[i]);e.entities.push(o)}e.fields=o.fields}return e}return t.extend2(s,e),s.prototype.findOne=function(t,e){var n=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findOne?layer="+t+"&id="+e;return this._getRequest(n).then(function(t){return t&&0===t.status?u(t.result):t},function(t){throw console.error(t),t})},s.prototype.find=function(t,e){var n=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/find?layer="+t,i={};return i=0!=e.spatialRelType&&e.geometry?{subFields:e.subFields,geometry:e.geometry.asWkt(),spatialRelType:e.spatialRelType}:{subFields:e.subFields,where:e.where},this._postRequest(n,i).then(function(t){if(t&&0===t.status){var e=h(t.result);return new r({count:t.result.count,models:e})}return t},function(t){throw console.error(t),t})},s.prototype.getAttribute=function(t){var e=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/attribute/"+t;return this._getRequest(e).then(function(t){if(t&&0===t.status){var e=h(t.result);return new r({count:t.result.count,models:e})}return t},function(t){throw console.error(t),t})},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(97),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){(t=t||{}).serviceFix="wops",e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(97),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){(t=t||{}).serviceFix="wtts",e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.code=t.code,this.value=t.value,this.$type="DicItem,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.alias=t.alias,this.$type="DicType,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(319),n(16),n(12),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){(t=t||{}).serviceFix="dics",e.call(this,t),n.call(this,t),this.url=t.url,this.deserializer=t.deserializer,this.serviceInput=new i,this.$type="RestDICSService,http://www.Gs.com"}var l="{url}/{serviceName}";return t.extend2(s,e),t.extend2(s,n),s.prototype.getTypes=function(){var t=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getTypes?";return this._getRequestWithSerializer(t)},s.prototype.getValue=function(t,e){var n=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getValue?name="+t+"&code="+e;return this._getRequest(n)},s.prototype.list=function(t,e){var n={name:t,parent:e},i=l.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/list?"+this.serviceInput.getUrlTemplate(n);return this._getRequestWithSerializer(i)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(184),n(16),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).serviceFix="wopps",e.call(this,t),n.call(this,t),this.url=t.url}var s="{url}/{serviceName}";return t.extend2(a,e),t.extend2(a,n),a.prototype.getAutoworkflow=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/autoworkflow?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?{processId:t.result.processId}:t},function(t){throw console.error(t),t})},a.prototype.getStatus=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getStatus?processId="+t;return this._getRequest(e).then(function(t){return t&&0===t.status?t.result:t},function(t){throw console.error(t),t})},a.prototype.delete=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/delete?id="+t;return this._getRequest(e).then(function(t){return t&&0===t.status?t.status:t},function(t){throw console.error(t),t})},a.prototype.find=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/find";return this._postRequest(e,t).then(function(t){return t&&0===t.status?t.result:t},function(t){throw console.error(t),t})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(184),n(16),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){(t=t||{}).serviceFix="wrsps",e.call(this,t),n.call(this,t),this.url=t.url}var s="{url}/{serviceName}";return t.extend2(a,e),t.extend2(a,n),a.prototype.getAutoworkflow=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/autoworkflow?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?{processId:t.result.processId}:t},function(t){throw console.error(t),t})},a.prototype.getStatus=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getStatus?processId="+t;return this._getRequest(e).then(function(t){return t&&0===t.status?t.result:t},function(t){throw console.error(t),t})},a.prototype.delete=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/delete?id="+t;return this._getRequest(e).then(function(t){return t&&0===t.status?t.status:t},function(t){throw console.error(t),t})},a.prototype.find=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/find";return this._postRequest(e,t).then(function(t){return t&&0===t.status?t.result:t},function(t){throw console.error(t),t})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(183),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layerName=t.layerName,this.dataType=t.dataType||"osgb"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.startTime=t.startTime,this.endTime=t.endTime,this.processStatus=t.processStatus,this.page_size=t.page_size||10,this.page_num=t.page_num||0}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(183),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.flowType=t.flowType||"DOM",this.publishType=t.publishType||"WMTS|WMS",this.name=t.name}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(112),n,e,t],void 0===(r=function(i,t,e,n){function r(t){t=t||{},this.tokenService=t.tokenService,this.clientId=t.clientId,this.clientSecret=t.clientSecret,this._interval=void 0}function o(){var n=this;return this.tokenService.fetch(this.clientId,this.clientSecret).then(function(t){if(t){var e=t.expires_in-5;i.setCookie("client_id",n.clientId,e),i.setCookie("access_token",t.access_token,e)}return t})}return r.prototype.start=function(){var e,n,i=this;o.call(this).then(function(t){n=t.expires_in,e=n-5,i._interval=setInterval(function(){o.call(i)},1e3*e)})},r.prototype.stop=function(){this._interval&&clearInterval(this._interval)},n.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.url=t.url,this.http=t.http}return i.prototype.fetch=function(t,e){var n=this.url+"/oauth/token?client_id={client_id}&client_secret={client_secret}".replace("{client_id}",t).replace("{client_secret}",e),i=this._getRequest(n);return i.then(function(t){return t}),i},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(320),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=t.layer,this.filter=t.filter}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.RoundStyle=1,i.FlatStyle=2,i.SquareStyle=3,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.unilateralBuffer=1,i.bilateralBuffer=2,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(322),n(16),n(21),n(185),n(321),n(323),n(324),n(325),n(55),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l,u,h,c,p){function f(t){(t=t||{}).serviceFix="wbas",e.call(this,t),n.call(this,t),this.url=t.url}var d="{url}/{serviceName}";return t.extend2(f,e),t.extend2(f,n),f.prototype.getCapabilitiesUrl=function(t){var e=i.defer();t=t||"xml";var n=d.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities?format="+t;return"Token"===this.authType?this._joinAccessToken(n):(e.resolve(n),e.promise)},f.prototype.getCapabilities=function(t){t=t||"xml";var e=d.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities?format="+t;return this._getRequest(e,null,"text").then(function(t){if(t)return t},function(t){throw console.error(t),t})},f.prototype.simplyBuffer=function(t){var e=d.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/simplyBuffer";return this._postRequest(e,t.getUrlTemplate(),"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?function(t){return new r({geometry:l.createGeometryFromWkt(t.geometry,4490)})}(t.result):t},function(t){throw console.error(t),t})},f.prototype.bufferAnalysis=function(t){var e=d.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/buffer";return this._postRequest(e,t.getUrlTemplate(),"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?function(t){return new o({geometry:l.createGeometryFromWkt(t.geometry,4490),features:t.features?u.fromGeoJson(t.features,4490):null})}(t.result):t},function(t){throw console.error(t),t})},f.prototype.topoOperationAnalysis=function(t){var e=d.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/topc";return this._postRequest(e,t.getUrlTemplate(),"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?function(t){var e=new a;if(t.hasOwnProperty("geometry")){var n=l.createGeometryFromWkt(t.geometry,4490);e.geometry=n}else delete e.geometry;return t.hasOwnProperty("distance")?e.distance=t.distance:delete e.distance,e}(t.result):t},function(t){throw console.error(t),t})},f.prototype.topoRelationAnalysis=function(t){var e=d.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/topr";return this._postRequest(e,t.getUrlTemplate(),"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?function(t){return new s({flag:t.flag})}(t.result):t},function(t){throw console.error(t),t})},p.exports=f}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.geometrya=a(t.geometrya),this.geometryb=a(t.geometryb),this.type=t.type}function a(t){return t.asWkt()}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.distance="distance",i.intersection="intersection",i.union="union",i.difference="difference",i.symDifference="symDifference",n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.geometrya=a(t.geometrya),this.geometryb=a(t.geometryb),this.type=t.type}function a(t){return t.asWkt()}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.contains="contains",i.intersects="intersects",i.equals="equals",i.disjoint="disjoint",i.touches="touches",i.crosses="crosses",i.within="within",i.overlaps="overlaps",n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.CGCS2000=1,i.CGCMPS2000=2,i.WGS84=3,i.WGSMP84=4,i.GCJ02=5,i.GCJMP02=6,i.BDS=7,i.BDMPS=8,n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(326),n(16),n(1),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){(t=t||{}).serviceFix="wccs",e.call(this,t),n.call(this,t),this.url=t.url}return t.extend2(s,e),t.extend2(s,n),s.prototype.transform=function(t){var e="{url}/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/convert?"+t.getUrlTemplate(),n=this._getRequest(e);this.geometry=t.geometry.copy();var i=this;return n.then(function(t){return t&&0===t.status?function(t,e){var n=t.result.coords;return e.fromCoordinates(n)}(t,i.geometry):t},function(t){throw console.error(t),t})},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.geometry=t.geometry,this.from=t.from,this.to=t.to,this.format=t.format}return t.extend2(o,e),o.prototype.getUrlTemplate=function(){var t={coords:this.geometry.getCoordinates(),from:this.from,to:this.to,format:this.format};return o.prototype.uber.getUrlTemplate.call(this,t)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(186),t,e],void 0===(r=function(t,e,n,i){function r(t){t=t||{},e.call(this,t),this.messageType=t.messageType,this.content=t.content,this.$type="ExtendMessage,http://www.Gs.com"}return t.extend2(r,e),r.prototype.getType=function(){return"ExtendMessage"},r.prototype.replace=function(t){r.prototype.uber.replace.call(this,t),t.content&&this.element.replace(t.content)},n.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e){function n(t){var e=t||{};this.id=e.id,this.gid=e.gid,this.name=e.name,this.description=e.description,this.creator=e.creator,this.startTime=e.startTime,this.endTime=e.endTime,this.members=e.members,this.$type="Meeting,http://www.Gs.com"}return n.prototype.find=function(t){var e=this.findIndex(t);if(0<=e)return this.members[e]},n.prototype.add=function(t){this.members.push(t)},n.prototype.findIndex=function(t){for(var e=0,n=this.members.length;e<n;++e){if(this.members[e].id===t)return e}return-1},t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.start=t.start,this.end=t.end,this.records=t.records,this.$type="MeetingPart,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.action=t.action,this.time=t.time,this.content=t.content,this.$type="MeetingRecord,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(t){var e=t||{};this.id=e.id,this.name=e.name,this.avator=e.avator,this.state=e.state,this.president=e.president,this.time=e.time,this.messages=e.messages,this.$type="Member,http://www.Gs.com"}return n.prototype.add=function(t){this.messages.push(t)},n.prototype.find=function(t){var e=this.findIndex(t);if(0<=e)return this.messages[e]},n.prototype.findIndex=function(t){for(var e=0,n=this.messages.length;e<n;++e){if(this.messages[e].id===t)return e}return-1},n.prototype.getMessages=function(){return this.messages},n.prototype.isExist=function(t){return 0<=this.findIndex(t)},n.prototype.update=function(t){var e=this.findIndex(t.id);0<=e&&(this.messages[e]=t)},n.prototype.remove=function(t){var e=this.findIndex(t);0<=e&&this.messages.splice(e,1)},t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(t){var e=t||{};this.total=e.total,this.page=e.page,this.size=e.size,this.messages=e.messages,this.$type="Messages,http://www.Gs.com"}return t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.count=t.count,this.pageCount=t.pageCount,this.pageIndex=t.pageIndex,this.pageSize=t.pageSize,this.entities=t.entities,this.$type="PageMeeting,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(21),n(329),n(328),n(331),n(335),n(333),n(334),n(336),n(330),t,e],void 0===(r=function(t,l,e,n,i,r,o,a,s,u,h,c){function p(t){var e=t||{};this.eventPool={},this.connected=!1,this.wsUrl=e.wsUrl,this.tokenUrlWS=e.tokenUrlWS,this.url=e.url,this.cid=e.cid,this.name=e.name,this.avator=e.avator||"",this.callback=e.callback||void 0,this.observer=e.observer||void 0,this.deserializer=e.deserializer,this.meeting=void 0,this.wcpsService=new a({url:e.url,deserializer:e.deserializer,clientId:e.clientId,clientSecret:e.clientSecret,authType:e.authType,tokenUrl:e.tokenUrl,http:e.http})}function f(){return this.client=new s({url:this.wsUrl,cb:this,co:this,ds:this.deserializer,clientId:this.wcpsService.clientId,clientSecret:this.wcpsService.clientSecret,tokenUrl:this.tokenUrlWS?this.tokenUrlWS:this.wcpsService.tokenUrl}),this.client.init(this.cid,this.name,this.avator)}function d(){void 0!==this.client&&(this.client.close(),delete this.client),this.meeting=void 0}return t.extend2(p,e),t.extend2(p,n),t.extend2(p,i),t.extend2(p,r),p.prototype.create=function(n,i,r,o){if(void 0===this.client){var t=f.call(this),a=this,s=l.defer();return l.all([t],function(t){if(a.connected&&t[0]){var e=a.wcpsService.create(a.cid,i,n,r,o);e.then(function(t){void 0!==t&&-1!==t.status&&(a.meeting=t)}),s.resolve(e)}}),s.promise}if(void 0!==this.meeting)return(s=l.defer()).resolve(this.meeting),s.promise;var e=this;return this.wcpsService.create(this.cid,i,n,r,o).then(function(t){return void 0!==t&&-1!==t.status&&(e.meeting=t),t})},p.prototype.join=function(n,i){if(void 0===this.client){var t=f.call(this),r=l.defer(),o=this;return l.all([t],function(t){if(o.connected&&t[0]){var e=o.wcpsService.join(o.cid,n,i);(o.meetingResult=e).then(function(t){void 0!==t&&-1!==t.status&&(o.meeting=t)}),r.resolve(e)}}),r.promise}if(void 0!==this.meeting)return(r=l.defer()).resolve(this.meeting),r.promise;var e=this;return this.wcpsService.join(this.cid,n,i).then(function(t){return void 0!==t&&-1!==t.status&&(e.meeting=t),t})},p.prototype.unReadCount=function(){if(this.connected&&void 0!==this.meeting)return this.wcpsService.unReadCount(this.meeting.gid,this.meeting.id,this.cid).then(function(t){return t})},p.prototype.queryUnRead=function(t,e){if(this.connected&&void 0!==this.meeting){var n=this;return this.wcpsService.queryUnRead(this.meeting.gid,this.meeting.id,this.cid,t,e).then(function(t){if(-1!==t.status)for(var e in t.messages)n.onAdd(t.messages[e].from,t.messages[e]);return t})}},p.prototype.leave=function(){if(this.connected&&void 0!==this.meeting){var e=this;return this.wcpsService.leave(this.meeting.gid,this.meeting.id,this.cid).then(function(t){return-1!==t.status&&d.call(e),t})}},p.prototype.close=function(){if(this.connected&&void 0!==this.meeting){var e=this;return this.wcpsService.close(this.meeting.gid,this.meeting.id,this.cid).then(function(t){return-1!==t.status&&d.call(e),t})}},p.prototype.add=function(n){if(this.connected&&void 0!==this.meeting){n.from||(n.from=this.cid),n.unset();var i=this;this.wcpsService.add(this.meeting.gid,this.meeting.id,this.cid,n).then(function(t){if(n.reset(),-1!==t.status){var e=i.meeting.find(i.cid);if(void 0!==e)e.isExist(n.id)||e.add(n)}})}},p.prototype.update=function(n){if(this.connected&&void 0!==this.meeting){n.unset();var i=this;this.wcpsService.update(this.meeting.gid,this.meeting.id,this.cid,n).then(function(t){if(n.reset(),-1!==t.status){var e=i.meeting.find(i.cid);void 0!==e&&e.update(n)}})}},p.prototype.remove=function(n){if(this.connected&&void 0!==this.meeting){var i=this;this.wcpsService.remove(this.meeting.gid,this.meeting.id,this.cid,n).then(function(t){if(-1!==t.status){var e=i.meeting.find(i.cid);void 0!==e&&e.remove(n)}})}},p.prototype.exist=function(t,e){return this.wcpsService.exist(t,e)},p.prototype.list=function(t){return this.wcpsService.list(t).then(function(t){return t})},p.prototype.query=function(t,e,n,i,r){return this.wcpsService.query(t,e,n,i,r).then(function(t){return t})},p.prototype.download=function(t,e){return this.wcpsService.download(t,e).then(function(t){return t})},p.prototype.addElement=function(t,e){if(this.connected&&void 0!==this.meeting){e.unReset();var n=new o({id:e.id,from:this.cid,to:"",time:(new Date).getTime(),element:e});this.add(n)}},p.prototype.removeElement=function(t,e){this.connected&&void 0!==this.meeting&&this.remove(e)},p.prototype.updateElement=function(t,e){if(this.connected&&void 0!==this.meeting){var n=new o({id:e.id,from:this.cid,to:"",time:(new Date).getTime(),element:e});this.update(n)}},p.prototype.showElement=function(t,e,n){},p.prototype.clear=function(t){},p.prototype.selectElement=function(t,e){},p.prototype.unSelectElement=function(t,e){},p.prototype.onMemberJoined=function(t){if(null!==this.meeting&&void 0!==this.meeting){var e=this.meeting.find(t.id);void 0!==e?e.state=1:this.meeting.add(t),void 0!==this.callback&&this.callback.onMemberJoined(t),this.raise(u.ONMEMBERJOINED,t)}},p.prototype.onMemberLeaved=function(t){if(null!==this.meeting&&void 0!==this.meeting){var e=this.meeting.find(t);void 0!==e&&(e.state=0),void 0!==this.callback&&this.callback.onMemberLeaved(t),this.raise(u.ONMEMBERLEAVED,t)}},p.prototype.onEnd=function(){d.call(this),void 0!==this.callback&&this.callback.onEnd(),this.raise(u.ONENDMEETING)},p.prototype.onAdd=function(t,e){var n=this.meeting.find(t);if(void 0!==n){var i=e.id;n.isExist(i)||n.add(e)}void 0!==this.callback&&this.callback.onAdd(t,e),this.raise(u.ONADDMESSAGE,t,e)},p.prototype.onUpdate=function(t,e){var n=this.meeting.find(t);void 0!==n&&n.update(e),void 0!==this.callback&&this.callback.onUpdate(t,e),this.raise(u.ONUPDATEMESSAGE,t,e)},p.prototype.onRemove=function(t,e){var n=this.meeting.find(t);void 0!==n&&n.remove(e),void 0!==this.callback&&this.callback.onRemove(t,e),this.raise(u.ONREMOVEMESSAGE,t,e)},p.prototype.onConnected=function(){this.connected=!0,void 0!==this.observer&&this.observer.onConnected(),this.raise(u.ONCONNECTED)},p.prototype.onDisconnected=function(){this.connected=!1,void 0!==this.observer&&(delete this.client,this.observer.onDisconnected()),this.raise(u.ONDISCONNECTED)},p.prototype.raise=function(){var t=arguments.length;if(0<t){var e=arguments[0];if(void 0!==this.eventPool[e])for(var n=this.eventPool[e],i=0;i<n.length;i++){var r=n[i];1===t?r():2===t?r(arguments[1]):3==t?r(arguments[1],arguments[2]):4===t&&r(arguments[1],arguments[2],arguments[3])}}},p.prototype.on=function(t,e){null==this.eventPool[t]&&(this.eventPool[t]=[]),this.eventPool[t].push(e)},p.prototype.un=function(t,e){if(null!=this.eventPool[t]){var n=this.eventPool[t],i=n.indexOf(e);-1!=i&&n.splice(i,1)}},p.prototype.getCapabilityUrl=function(t){return this.wcpsService.getCapabilityUrl(t)},p.prototype.getCapabilitiesUrl=function(){return this.wcpsService.getCapabilitiesUrl()},p.prototype.getCapability=function(t){return this.wcpsService.getCapability(t).then(function(t){if(-1!==t.status)return t})},p.prototype.getCapabilities=function(){return this.wcpsService.getCapabilities().then(function(t){if(-1!==t.status)return t})},h.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e){function n(t){var e=t||{};this.action=e.action,this.payload=e.payload,this.$type="Topic,http://www.Gs.com"}return t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e){function n(t){t=t||{},this.callback=null,this.plotLayer=t.plotLayer,this.srid=t.srid,this.projectService=t.projectService}function r(t){if(void 0!==t.plot.centerPoint.spatialReference){if(void 0!==t.plot.rotatePoint.spatialReference){if(t.plot.centerPoint.spatialReference!==this.srid){t.plot.centerPoint=this.projectService.transform(t.plot.centerPoint,this.srid),t.plot.rotatePoint=this.projectService.transform(t.plot.rotatePoint,this.srid);for(var e=0;e<t.plot.controlPoints.length;e++)void 0!==t.plot.controlPoints[e].spatialReference?t.plot.controlPoints[e]=this.projectService.transform(t.plot.controlPoints[e],this.srid):console.log("spatial reference error! control points "+e+": "+t.plot.controlPoints[e]);for(e=0;e<t.elements.length;e++)0!==t.elements[e].geometry.getSpatialReference()?t.elements[e].geometry=this.projectService.transform(t.elements[e].geometry,this.srid):console.log("spatial reference error! element geometry "+e+": "+t.plot.controlPoints[e])}return t}console.log("spatial reference error! rotate point:"+t.plot.centerPoint)}else console.log("spatial reference error! center point:"+t.plot.centerPoint)}return n.prototype.onMemberJoined=function(t){},n.prototype.onMemberLeaved=function(t){},n.prototype.onEnd=function(){this.plotLayer.clear()},n.prototype.onAdd=function(t,e){e.reset(),"PlotMessage"===e.getType()&&(e.element=r.call(this,e.element),e.element&&(this.plotLayer.contains(e.element.id)||this.plotLayer.add(e.element)))},n.prototype.onUpdate=function(t,e){if(e.reset(),"PlotMessage"===e.getType()){e.element=r.call(this,e.element);var n=e.element;if(null!=n){var i=this.plotLayer.find(n.id);null!=i&&(function(t,e){if(void 0===t.elements||void 0===e.elements)return;for(var n=t.elements,i=e.elements,r=0,o=n.length;r<o;++r){var a=n[r],s=i[r];s.geometry=a.geometry,s.symbol=a.symbol}}(n,i),i.plot=n.plot,this.plotLayer.update(i),this.plotLayer.update(i,!0))}}},n.prototype.onRemove=function(t,e){if(this.plotLayer.contains(e)){var n=this.plotLayer.find(e);this.plotLayer.remove(n)}},t.exports=n}.apply(e,[t,e]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(67),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.symbols=t.symbols,this.$type="WCPSCapability,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(337),n(12),n,e,t],void 0===(r=function(t,s,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.service=void 0===t.service?"WFS":t.service,this.request=void 0===t.request?"GetFeature":t.request,this.version=t.version,this.typenames=t.typenames,this.aliases=t.aliases,this.srsname=t.srsname,this.filter=t.filter,this.filter_language=t.filter_language,this.resourceId=t.resourceId,this.bbox=t.bbox,this.sortBy=t.sortBy,this.propertyName=t.propertyName,this.startIndex=t.startIndex,this.maxFeatures=t.maxFeatures,this.count=t.count,this.outputFormat=void 0===t.outputFormat?"application/gml+xml; version=3.2":t.outputFormat,this.resultType=t.resultType,this.resolve=t.resolve,this.resolveDepth=t.resolveDepth,this.resolveTimeout=t.resolveTimeout,this.cql_filter=t.cql_filter}function l(t){if(t)return t.minx+","+t.miny+","+t.maxx+","+t.maxy}return t.extend2(o,e),o.prototype.getUrlTemplate=function(t){var e,n="",i=t||this;for(var r in i)if("$type"!==r&&i.hasOwnProperty(r)&&void 0!==i[r])if("filter"===r){if(i[r]&&"string"==typeof i[r])n+="&"+r+"="+encodeURIComponent(i[r]);else if(i[r]&&"object"==typeof i[r]){var o=(new s).writeFilter(i[r]);o&&(n+="&"+r+"="+encodeURIComponent((e=o,(new XMLSerializer).serializeToString(e))))}}else if("bbox"===r){if(i[r]&&"string"==typeof i[r])n+="&"+r+"="+encodeURIComponent(i[r]);else if(i[r]&&"object"==typeof i[r]){var a=l(i[r]);n+="&"+r+"="+encodeURIComponent(a)}}else"object"==typeof i[r]||i[r]instanceof Array?n+="&"+r+"="+encodeURIComponent(JSON.stringify(i[r])):n+="&"+r+"="+encodeURIComponent(i[r]);return n=n.substr(1)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.service=void 0===t.service?"WFS":t.service,this.request=void 0===t.request?"DescribeFeatureType":t.request,this.version=void 0===t.version?"2.0.2":t.version,this.typeNames=t.typeNames,this.outputFormat=void 0===t.outputFormat?"application/gml+xml; version=3.2":t.outputFormat}return t.extend2(o,e),o.prototype.getUrlTemplate=function(t){var e="",n=t||this;for(var i in n)"$type"!==i&&n.hasOwnProperty(i)&&void 0!==n[i]&&("object"==typeof n[i]||n[i]instanceof Array?e+="&"+i+"="+encodeURIComponent(JSON.stringify(n[i])):e+="&"+i+"="+encodeURIComponent(n[i]));return e=e.substr(1)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n,e,t],void 0===(r=function(n,i,r,e,o,a,s,l,u,h,c,p,f,d,y,m,g,t,v,x){function _(t){({})}return _.prototype.and=function(t){if(1!==arguments.length){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(n,e))}if(t instanceof Array)return new n({conditions:t})},_.prototype.or=function(t){if(1!==arguments.length){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(i,e))}if(t instanceof Array)return new i({conditions:t})},_.prototype.not=function(t){return new e({condition:t})},_.prototype.bbox=function(t,e,n){return new r({geometryName:t,extent:e,srsName:n})},_.prototype.contains=function(t,e,n){return new o({geometryName:t,geometry:e,srsName:n})},_.prototype.intersects=function(t,e,n){return new h({geometryName:t,geometry:e,srsName:n})},_.prototype.within=function(t,e,n){return new g({geometryName:t,geometry:e,srsName:n})},_.prototype.equalTo=function(t,e,n){return new s({propertyName:t,expression:e,matchCase:n})},_.prototype.notEqualTo=function(t,e,n){return new m({propertyName:t,expression:e,matchCase:n})},_.prototype.lessThan=function(t,e){return new d({propertyName:t,expression:e})},_.prototype.lessThanOrEqualTo=function(t,e){return new y({propertyName:t,expression:e})},_.prototype.greaterThan=function(t,e){return new l({propertyName:t,expression:e})},_.prototype.greaterThanOrEqualTo=function(t,e){return new u({propertyName:t,expression:e})},_.prototype.isNull=function(t){return new f({propertyName:t})},_.prototype.between=function(t,e,n){return new c({propertyName:t,lowerBoundary:e,upperBoundary:n})},_.prototype.like=function(t,e,n,i,r,o){return new p({propertyName:t,pattern:e,wildCard:n,singleChar:i,escapeChar:r,matchCase:o})},_.prototype.during=function(t,e,n){return new a({propertyName:t,begin:e,end:n})},x.exports=_}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(21),n(96),n(356),n(126),n(55),n(16),n,e,t],void 0===(r=function(t,i,e,n,o,a,r,s,l,u){function h(t){(t=t||{}).serviceFix=t.serviceFix||"wfs",n.call(this,t),r.call(this,t),this.url=t.url,this.description=new e({options:JSON.stringify({url:this.url}),baseUrl:t.url,type:"WFS"})}var c="{url}/{serviceName}";return t.extend2(h,n),t.extend2(h,r),h.prototype.getCapabilitiesUrl=function(t){var e=i.defer(),n=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"?"+t.getUrlTemplate();return"Token"===this.authType?this._joinAccessToken(n):(e.resolve(n),e.promise)},h.prototype.getCapabilities=function(t){var e=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"?"+t.getUrlTemplate();return this._getRequest(e,null,"text").then(function(t){if(t)return t},function(t){throw console.error(t),t})},h.prototype.getDescripbeFeatureType=function(t){var e=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"?"+t.getUrlTemplate(),n=this._getRequest(e,null,"text");return window.gatherInfo&&(this.description.name=t.typeNames,window.gatherInfo(this.description)),n.then(function(t){if(t)return t},function(t){throw console.error(t),t})},h.prototype.getFeature=function(r){var t=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"?"+r.getUrlTemplate(),e=this._getRequest(t,null,"text","application/x-www-form-urlencoded");return window.gatherInfo&&(this.description.name=r.typenames,window.gatherInfo(this.description)),e.then(function(t){if(t){if("application/json"==r.outputFormat||"GEOJSON"==r.outputFormat)return a.fromGeoJson(JSON.parse(t),4326);var e,n=new o,i=r.outputFormat.split("=");return 2<=i.length&&(e=i[1]),n.fromGML(t,e)}},function(t){throw console.error(t),t})},u.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.service=void 0===t.service?"WFS":t.service,this.request=void 0===t.request?"GetCapabilities":t.request,this.acceptVersions=void 0===t.acceptVersions?"2.0.2":t.acceptVersions,this.acceptFormat=void 0===t.acceptFormat?"text/xml":t.acceptFormat}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(357),n(16),n(358),n(1),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){(t=t||{}).serviceFix="wgcs",e.call(this,t),n.call(this,t),this.url=t.url}return t.extend2(l,e),t.extend2(l,n),l.prototype.geocode=function(t){var e="{url}/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/geocode?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){var e=t.result,n=new r({x:e.location.lng,y:e.location.lat,spatialReference:4490});return new i({location:n,level:e.level})}(t):t},function(t){throw console.error(t),t})},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=void 0===t.layer?"baidu":t.layer,this.address=t.address,this.city=t.city,this.format=void 0===t.format?"json":t.format}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(188),n(189),n(190),n(191),n,e,t],void 0===(r=function(c,p,f,d,t,e,n){var i={},r=window.fetch;return Object.defineProperty(window,"fetch",{configurable:!0,enumerable:!0,get:function(){return function(t,n){return r(t,n).then(function(t){var e=t.clone();return window.isCraw&&i.FetchCraw.call(this,t,n),e})}}}),i.FetchCraw=function(t,e){var n,i=t.url,r=[],o=e.body;if(n=o&&0<o.length?(o=JSON.parse(o),"Body"):(o=function(t){if(t.includes("?")){for(var e=t.substring(t.indexOf("?")+1),n={},i=e.length?e.split("&"):[],r=null,o=i.length,a=0;a<o;a++){r=i[a].split("=");var s=decodeURIComponent(r[0]),l=decodeURIComponent(r[1]);s&&(n[s]=l)}return n}return null}(i),"Parameters"),o){var a=Object.keys(o);for(var s in a){var l=new d({name:a[s],value:o[a[s]],style:n});r.push(l)}}var u=new Date,h=new p({url:i,time:u,method:new f({request:e.method,header:e.headers,response_type:"",parameters:r})});c.save(h)},n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(361),n(23),n(96),n,e,t],void 0===(r=function(r,o,t,e,n,i){var a={gatherInfo:function(t){var e=window.isGather,n=window.gatherUrl;if(e&&n){var i=new o;new r({url:n,http:i}).gather(t)}}};return window.gatherInfo=a.gatherInfo,i.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(188),n(189),n(190),n(191),n,e,t],void 0===(r=function(c,p,f,d,t,e,n){var i={},r=window.XMLHttpRequest.prototype.open,o=window.XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(){return this.openArguments=arguments,r.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return this.sendArguments=arguments,this.addEventListener("load",function(){200==this.status&&window.isCraw&&i.XMLHttpRequestCraw.call(this)},!1),o.apply(this,arguments)},i.XMLHttpRequestCraw=function(){var t,e,n=this.responseURL,i=[];if(e=this.sendArguments[0]?(t=JSON.parse(this.sendArguments[0]),"Body"):(t=function(t){if(t.includes("?")){for(var e=t.substring(t.indexOf("?")+1),n={},i=e.length?e.split("&"):[],r=null,o=i.length,a=0;a<o;a++){r=i[a].split("=");var s=decodeURIComponent(r[0]),l=decodeURIComponent(r[1]);s&&(n[s]=l)}return n}return null}(n),"Parameters"),t){var r=Object.keys(t);for(var o in r){var a=new d({name:r[o],value:t[r[o]],style:e});i.push(a)}}var s=this.getAllResponseHeaders().split("\n"),l={};s.forEach(function(t){if(""!==t&&0<t.length){var e=t.indexOf(":"),n=t.slice(0,e),i=t.slice(e+1).trim();l[n]=i}});var u=new Date,h=new p({url:n,time:u,method:new f({name:"",request:this.openArguments[0],header:s,response_type:this.responseType,parameters:i})});c.save(h)},n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n(363),n(16),n(364),n(365),n(366),n(367),n(1),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l,u,h,c){function p(t){(t=t||{}).serviceFix="wils",n.call(this,t),i.call(this,t),this.url=t.url,this.serviceInput=new e}var f="{url}/{serviceName}";return t.extend2(p,n),t.extend2(p,i),p.prototype.location=function(t){var e=f.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/location?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){var e=t.result,n=new l({x:e.location.lng,y:e.location.lat,spatialReference:4490});return new r({type:e.type,location:n,radius:e.radius,desc:e.desc,country:e.country,province:e.province,city:e.city,citycode:e.citycode,district:e.district,road:e.road,ctime:e.ctime,bldg:e.bldg,bldgid:e.bldgid,bldgname:e.bldgname,floor:e.floor,indoor:e.indoor,error:e.error})}(t):t},function(t){throw console.error(t),t})},p.prototype.locationByIP=function(t){var e=f.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/ip?ip="+t;return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){var e=t.result,n=null;e.content&&(n=function(t){var e=null;t.address_detail&&(e=function(t){return new s({city:t.city,city_code:t.city_code,district:t.district,province:t.province,street:t.street,street_number:t.street_number})}(t.address_detail));var n=new l({x:t.location.lng,y:t.location.lat,spatialReference:4490});return new a({address:t.address,location:n,address_detail:e})}(e.content));return new o({address:e.address,content:n})}(t):t},function(t){throw console.error(t),t})},c.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.accesstype=t.accesstype,this.imei=t.imei,this.smac=t.smac,this.clientip=t.clientip,this.cdma=t.cdma,this.imsi=t.imsi,this.gps=t.gps,this.network=t.network,this.tel=t.tel,this.bts=t.bts,this.nearbts=t.nearbts,this.mmac=t.mmac,this.macs=t.macs,this.coor=t.coor,this.format=t.format,this.ctime=t.ctime,this.need_rgc=t.need_rgc||"N"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.xPercent=t.xPercent,this.yPercent=t.yPercent,this.base64Str=t.base64Str}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(18),n,e,t],void 0===(r=function(t,e,n,i,r){function o(){}return t.extend2(o,e),o.prototype.print=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.width=t.width,this.height=t.height,this.dpi=t.dpi}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(56),n(192),n(16),n(1),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s){function l(t){(t=t||{}).serviceFix="wmps",n.call(this,t),i.call(this,t),this.url=t.url,this.name=void 0===t.name?"地图打印":t.name,this.$type="RestWMPSService,http://www.Gs.com"}var u="{url}/{serviceName}";return t.extend2(l,n),t.extend2(l,i),l.prototype.getConfigurations=function(){var t=u.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getConfigurations";return this._getRequest(t).then(function(t){return t},function(t){throw console.error(t),t})},l.prototype.getCapabilities=function(t){var e=u.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities?appId="+t;return this._getRequest(e).then(function(t){return t},function(t){throw console.error(t),t})},l.prototype.create=function(t,e,n){var i=u.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/create?appId="+t+"&format="+e;return this._postRequest(i,n,"json","text/plain").then(function(t){return t},function(t){throw console.error(t),t})},l.prototype.getStatus=function(t){var e=u.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getStatus?referenceId="+t;return this._getRequest(e).then(function(t){return t},function(t){throw console.error(t),t})},l.prototype.download=function(t){var e=u.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/download?referenceId="+t;return this._getRequest(e,null,"blob").then(function(t){return t},function(t){throw console.error(t),t})},l.prototype.cancel=function(t){var e=u.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/cancel?referenceId="+t;return this._deleteRequest(e).then(function(t){return t},function(t){throw console.error(t),t})},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(56),n(192),n(16),n(1),n(8),n(43),n(11),n,e,t],void 0===(r=function(t,e,n,i,r,o,s,a,l,u,h){function c(t){(t=t||{}).serviceFix="wmps",n.call(this,t),i.call(this,t),this.url=t.url,this.$type="RestWMPSService2,http://www.Gs.com"}function p(t){for(var e=[],n=t.elements,i=0,r=n.length;i<r;i++){var o=f(n[i]);e.push(o)}return e}function f(t){var e,n=t.geometry,i=t.symbol;switch(n.getGeometryType()){case o.Point:(e=y(t)).lngLats=n.getCoordinates(),e.shape="point";break;case o.Polyline:case o.LineString:(e=y(t)).lngLats=n.getCoordinates(),e.lineColor=i.color?i.color.toHexExcludeAlpha():"#FF0000",e.lineWidth=i.width,e.shape="polyline";break;case o.LinearRing:case o.Polygon:(e=y(t)).lngLats=n.getCoordinates(),e.lineColor=i.borderColor?i.borderColor.toHexExcludeAlpha():"#FF0000",e.fillColor=i.fillColor?i.fillColor.toHexExcludeAlpha():"#FF0000",e.lineWidth=i.borderThickness?i.borderThickness:3,e.shape="polygon";break;case o.Circle:(e=y(t)).lngLats=n.getCoordinates(),e.radius=n.radius,e.lineColor=i.borderColor?i.borderColor.toHexExcludeAlpha():"#FF0000",e.fillColor=i.fillColor?i.fillColor.toHexExcludeAlpha():"#FF0000",e.lineWidth=i.borderThickness?i.borderThickness:3,e.shape="polygon"}return e}function d(t){for(var e=[],n=t.elements,i=0,r=n.length;i<r;i++)for(var o=n[i],a=0,s=o.getCount();a<s;a++){var l=f(o.getItem(a));e.push(l)}return e}function y(t){var e={},n=t.label,i=t.fontColor;return n&&(e.label=n),i&&(e.fontColor=i),e}return t.extend2(c,n),t.extend2(c,i),c.prototype.print=function(t){var e=function(t){var e={},n=function(t){for(var e={baseLayers:[],dataLayers:[]},n=0,i=t.length;n<i;n++){var r=t[n];switch(r.getLayerType()){case a.TileLayer:e.baseLayers.push(r);break;case a.CanvasLayer:case a.ElementLayer:case a.FeatureLayer:e.dataLayers.push(r)}"MBTileLayer"===r.$type&&e.baseLayers.push(r)}return e}(t.layers);return e.zoom=t.zoom,e.bbox=t.bbox.getCoordinates().replace(";",","),e.layers=function(t){for(var e=[],n=0,i=t.length;n<i;n++){var r,o=t[n],a=o.tileType;if(a===s.WMTS||"MBTileLayer"===o.$type)(r={}).name=o.layer+"_"+o.matrixSet,r.type="WMTS",e.push(r);if(a===s.WMS)(r={}).name=o.layers,r.type="WMS",e.push(r)}return e}(n.baseLayers),e.iconIdentity=t.iconIdentity,e.markers=function(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n];switch(r.getLayerType()){case a.ElementLayer:e=e.concat(p(r));break;case a.CanvasLayer:e=e.concat(d(r));break;case a.FeatureLayer:e=e.concat(void r)}}return e}(n.dataLayers),e.controls=t.controls,e.title=t.title,e.page=t.page,e.format=t.format,e}(t),n="{url}/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/print?",i=t.getUrlTemplate(e);return this._postRequest(n,i,"blob","application/x-www-form-urlencoded").then(function(t){return t},function(t){throw console.error(t),t})},h.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.label=t.label,this.fontColor=t.fontColor}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.zoom=t.zoom,this.bbox=t.bbox,this.layers=t.layers,this.iconIdentity=t.iconIdentity||"Digit",this.controls=t.controls,this.title=t.title,this.page=t.page,this.format=t.format||"jpg",this.$type="WMPSInput,http://www.Gs.com"}return t.extend2(o,e),o.prototype.getUrlTemplate=function(t){var e="",n=t||this;for(var i in n)"$type"!==i&&n.hasOwnProperty(i)&&void 0!==n[i]&&("object"==typeof n[i]||n[i]instanceof Array?e+="&"+i+"="+encodeURIComponent(JSON.stringify(n[i])):e+="&"+i+"="+encodeURIComponent(n[i]));return e=e.substr(1)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(193),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.request=void 0===t.request?"GetFeatureInfo":t.request,this.layers=t.layers,this.styles=t.styles,this.crs=t.crs,t.bbox&&"string"==typeof t.bbox?this.bbox=t.bbox:t.bbox&&"object"==typeof t.bbox&&(this.bbox=function(t){if(t)return t.miny+","+t.minx+","+t.maxy+","+t.maxx}(t.bbox)),this.width=t.width,this.height=t.height,this.query_layers=t.query_layers,this.info_format=t.info_format,this.feature_count=t.feature_count,this.i=t.i,this.j=t.j,this.x=t.x,this.y=t.y,this.exceptions=t.exceptions||"XML"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(368),n(96),n(126),n(55),n(16),n,e,t],void 0===(r=function(t,e,n,r,o,i,a,s,l){function u(t){(t=t||{}).serviceFix="wms",e.call(this,t),i.call(this,t),this.url=t.url,this.description=new n({options:JSON.stringify({url:this.url}),baseUrl:t.url,type:"WMS"})}var h="{url}/{serviceName}";return t.extend2(u,e),t.extend2(u,i),u.prototype.getCapabilities=function(t){var e=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"?"+t.getUrlTemplate();return this._getRequest(e,null,"document").then(function(t){if(t)return t},function(t){throw console.error(t),t})},u.prototype.getFeatureInfo=function(t){var e,n=t.info_format,i=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"?"+t.getUrlTemplate();return e="application/json"===n?this._getRequest(i,null,"json",n):"text/plain"===n||"application/vnd.ogc.gml"===n||"text/html"===n?this._getRequest(i,null,"text",n):this._getRequest(i,null,"document",n),window.gatherInfo&&(this.description.name=t.layers,window.gatherInfo(this.description)),e.then(function(t){if(t)return n&&"application/json"===n?"string"==typeof t?o.fromGeoJson(JSON.parse(t),4490):o.fromGeoJson(t,4490):!n||"text/xml"!==n&&"application/vnd.ogc.gml"!==n?t:(new r).fromGML(t)},function(t){throw console.error(t),t})},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(193),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.request=void 0===t.request?"GetCapabilities":t.request,this.updatesequence=t.updatesequence,this.format=t.format||"text/xml",this.layers=t.layers}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(369),n(135),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),n.call(this,t)}return t.extend2(a,e),t.extend2(a,n),o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(370),n(135),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),n.call(this,t)}return t.extend2(a,e),t.extend2(a,n),o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(371),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.source=t.source}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=void 0===t.layer?"baidu":t.layer,this.admin_code=t.admin_code,this.format=void 0===t.format?"json":t.format}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(373),n(135),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),n.call(this,t)}return t.extend2(a,e),t.extend2(a,n),o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(372),n(16),n(1),n(6),n(5),n,e,t],void 0===(r=function(t,e,n,u,h,c,i,r,o){function a(t){(t=t||{}).serviceFix="wpss",e.call(this,t),n.call(this,t),this.url=t.url}var s="{url}/{serviceName}";function l(t){return new u({x:t.lng,y:t.lat,spatialReference:4490})}function p(e){var t=e.result;if(t)switch(t.type){case 1:return e.result;case 2:if(t.statistics)try{return{type:2,statistics:function(t){if(Array.isArray(t.priority_citys))var e=function(t){for(var e,n,i=[],r=0,o=t.length;r<o;r++)(e=t[r]).location&&(n=l(e.location)),i.push({ename:e.ename,name:e.name,count:e.count,admin_code:e.admin_code,location:n});return i}(t.priority_citys);if(Array.isArray(t.admins))var n=function(t){for(var e,n,i,r=[],o=0,a=t.length;o<a;o++)(e=t[o]).location&&(n=l(e.location)),Array.isArray(e.child_admins)?(i=s(e.child_admins),r.push({ename:e.ename,name:e.name,count:e.count,admin_code:e.admin_code,location:n,child_admins:i})):r.push({ename:e.ename,name:e.name,count:e.count,admin_code:e.admin_code,location:n});return r;function s(t){for(var e,n,i=[],r=0,o=t.length;r<o;r++)(e=t[r]).location&&(n=l(e.location)),i.push({ename:e.ename,name:e.name,count:e.count,admin_code:e.admin_code,location:n});return i}}(t.admins);return{citys_count:t.citys_count,priority_citys:e,province_count:t.province_count,admins:n,country_count:t.country_count,keyword:t.keyword}}(t.statistics)}}catch(t){return e.result}case 3:if(Array.isArray(t.pois))try{var n=f(t.pois);return{type:3,total:t.total,pois:n}}catch(t){return e.result}case 4:try{var i,r=[];if(t.admin)return i=t.admin,Array.isArray(i.points)&&(r=function(t){for(var e,n=[],i=0,r=t.length;i<r;i++){e=t[i];var o=a(e.region);n.push(o)}return n;function a(t){for(var e=[],n=t.split(","),i=new c({spatialReference:4490}),r=new h({spatialReference:4490}),o=0,a=n.length;o<a;o++){var s=n[o].split(/\s+/),l=new u({x:1*s[0],y:1*s[1],spatialReference:4490});e.push(l),r.addPoint(l)}return r.close(),i.addGeometry(r),i}}(i.points)),{type:4,admin:{name:i.name,bound:i.bound,lonlat:i.lonlat,points:i.points,polygons:r,level:i.level,type:i.type,info:i.info,address:i.address}};break}catch(t){return e.result}default:if(Array.isArray(t.pois))try{n=f(t.pois);return{total:t.total,pois:n}}catch(t){return e.result}}}function f(t){for(var e,n,i=[],r=0,o=t.length;r<o;r++)if((e=t[r]).location&&(n=l(e.location)),e.detail_info){var a=s(e.detail_info);i.push({uid:e.uid,data_source:e.data_source,address:e.address,name:e.name,location:n,province:e.province,city:e.city,district:e.district,telephone:e.telephone,detail_info:a})}else i.push({uid:e.uid,data_source:e.data_source,address:e.address,name:e.name,location:n,province:e.province,city:e.city,district:e.district,telephone:e.telephone});return i;function s(t){if(t.navi_location)var e=l(t.navi_location);if(Array.isArray(t.children))var n=function(t){for(var e,n,i=[],r=0,o=t.length;r<o;r++)(e=t[r]).location&&(n=l(e.location)),i.push({uid:e.uid,address:e.address,name:e.name,show_name:e.show_name,poi_type:e.poi_type,location:n});return i}(t.children);return{alias:t.alias,industry_type:t.industry_type,poi_type:t.poi_type,distance:t.distance,price:t.price,shop_hours:t.shop_hours,overall_rating:t.overall_rating,taste_rating:t.taste_rating,service_rating:t.service_rating,environment_rating:t.environment_rating,facility_rating:t.facility_rating,hygiene_rating:t.hygiene_rating,technology_rating:t.technology_rating,navi_location:e,children:n}}}function d(t){var e=t.result;if(e){if(e.location)var n=l(e.location);if(e.detail_info){var i=function(t){if(t.navi_location)var e=l(t.navi_location);return{alias:t.alias,industry_type:t.industry_type,poi_type:t.poi_type,price:t.price,shop_hours:t.shop_hours,overall_rating:t.overall_rating,taste_rating:t.taste_rating,service_rating:t.service_rating,environment_rating:t.environment_rating,facility_rating:t.facility_rating,hygiene_rating:t.hygiene_rating,technology_rating:t.technology_rating,navi_location:e}}(e.detail_info);return{uid:e.uid,data_source:e.data_source,address:e.address,name:e.name,location:n,province:e.province,city:e.city,district:e.district,telephone:e.telephone,detail_info:i}}return{uid:e.uid,data_source:e.data_source,address:e.address,name:e.name,location:n,province:e.province,city:e.city,district:e.district,telephone:e.telephone}}}function y(t){var e=t.result,n=e.baidu,i=e.tianditu;return e.baidu=p({result:n}),e.tianditu=p({result:i}),e}return t.extend2(a,e),t.extend2(a,n),a.prototype.searchKeyWord=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/keydatapoi?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?p(t):t},function(t){throw console.error(t),t})},a.prototype.searchAround=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/rimdatapoi?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?p(t):t},function(t){throw console.error(t),t})},a.prototype.searchBounds=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/squdatapoi?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?p(t):t},function(t){throw console.error(t),t})},a.prototype.searchDetail=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/detail?"+t.getUrlTemplate();return this._getRequest(e).then(function(e){if(!e||0!==e.status)return e;try{return d(e)}catch(t){return e.result}},function(t){throw console.error(t),t})},a.prototype.keyWord=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/keyword?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?y(t):t},function(t){throw console.error(t),t})},a.prototype.around=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/rim?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?y(t):t},function(t){throw console.error(t),t})},a.prototype.bounds=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/rectangle?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?y(t):t},function(t){throw console.error(t),t})},a.prototype.detail=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/detail?"+t.getUrlTemplate();return this._getRequest(e).then(function(e){if(!e||0!==e.status)return e;try{return d(e)}catch(t){return e.result}},function(t){throw console.error(t),t})},a.prototype.district=function(t){var e=s.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/district?"+t.getUrlTemplate();return this._getRequest(e).then(function(e){if(!e||0!==e.status)return e;try{return function(t){var e=t.result;if(Array.isArray(e.admins))var n=function(t){for(var a,e,n,i=[],r=0,o=t.length;r<o;r++)(a=t[r]).location&&(e=l(a.location)),Array.isArray(a.child_admins)?(n=s(a.child_admins),i.push({ename:a.ename,name:a.name,admin_code:a.admin_code,bound:a.bound,location:e,city_count:a.city_count,child_admins:n})):i.push({ename:a.ename,name:a.name,admin_code:a.admin_code,bound:a.bound,location:e,city_count:a.city_count,child_admins:a.child_admins});return i;function s(t){for(var e,n,i=[],r=0,o=t.length;r<o;r++)(e=t[r]).location&&(n=l(e.location)),i.push({ename:e.ename,name:e.name,admin_code:e.admin_code,bound:a.bound,location:n});return i}}(statistics.admins);return{province_count:e.province_count,admins:n}}(e)}catch(t){return e.result}},function(t){throw console.error(t),t})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(374),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.$type="RegionTree,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n(376),n(16),n(133),n(1),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l){function u(t){(t=t||{}).serviceFix="wras",n.call(this,t),i.call(this,t),this.url=t.url,this.deserializer=t.deserializer,this.serviceInput=new e,this.$type="RestWRASService,http://www.Gs.com"}var h="{url}/{serviceName}";return t.extend2(u,n),t.extend2(u,i),u.prototype.query=function(t,e){var n=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/query?layer="+t,i=null;return null!=e&&(i=new r({filter:e})),this._postRequestWithSerializer(n,i)},u.prototype.statistic=function(t,e){var n=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/statistic?layer="+t,i=null;return null!=e&&(i=new r({filter:e})),this._postRequestWithSerializer(n,i)},u.prototype.districtSearch=function(t,e){var n=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/districtSearch?layer="+t+"&districtCode="+e;return this._getRequestWithSerializer(n)},u.prototype.districtStat=function(t,e){var n=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/districtStat?layer="+t+"&districtCode="+e;return this._getRequestWithSerializer(n)},u.prototype.nearbySearch=function(t,e,n){var i={layer:t,location:e.x+","+e.y,radius:n},r=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/nearbySearch?"+this.serviceInput.getUrlTemplate(i);return this._getRequestWithSerializer(r)},u.prototype.nearbyStat=function(t,e,n){var i={layer:t,location:e.x+","+e.y,radius:n},r=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/nearbyStat?"+this.serviceInput.getUrlTemplate(i);return this._getRequestWithSerializer(r)},u.prototype.boundsSearch=function(t,e){var n={layer:t,bounds:e.minx+","+e.miny+","+e.maxx+","+e.maxy},i=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/boundsSearch?"+this.serviceInput.getUrlTemplate(n);return this._getRequestWithSerializer(i)},u.prototype.boundsStat=function(t,e){var n={layer:t,bounds:e.minx+","+e.miny+","+e.maxx+","+e.maxy},i=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/boundsStat?"+this.serviceInput.getUrlTemplate(n);return this._getRequestWithSerializer(i)},u.prototype.regionStat=function(t,e,n){var i={featureCode:t,type:e||void 0,bbox:n?n.minx+","+n.miny+","+n.maxx+","+n.maxy:void 0},r=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/regionStat?"+this.serviceInput.getUrlTemplate(i);return this._getRequestWithSerializer(r)},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(67),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.eventType=t.eventType,this.$type="WRASCapability,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(377),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},this.childrens=t.childrens||[],e.call(this,t),this.$type="CompositeResourceNode,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.name=t.name,this.alias=t.alias,this.children=t.children,this.$type="ResourceTree,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(378),n(16),n(1),n,e,t],void 0===(r=function(t,e,n,i,r,o,a){function s(t){(t=t||{}).serviceFix="wrcs",e.call(this,t),n.call(this,t),this.url=t.url,this.deserializer=t.deserializer,this.$type="RestWRCSService,http://www.Gs.com"}return t.extend2(s,e),t.extend2(s,n),s.prototype.find=function(t){var e="{url}/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/find?layer="+t;return this._getRequestWithSerializer(e)},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(67),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.tree=t.tree,this.$type="WRCSCapability,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.id=t.id,this.name=t.name,this.type=t.type,this.count=t.count,this.unit=t.unit,this.$type="Equipment,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.lng=t.lng,this.lat=t.lat,this.$type="LngLat,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.id=t.id,this.name=t.name,this.type=t.type,this.count=t.count,this.unit=t.unit,this.$type="Material,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(194),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.materials=t.materials,this.$type="MaterialSource,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.type=t.type,this.sum=t.sum,this.$type="Resource,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(12),n(379),n(16),n(133),n(1),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l){function u(t){(t=t||{}).serviceFix="wrds",n.call(this,t),i.call(this,t),this.url=t.url,this.deserializer=t.deserializer,this.serviceInput=new e,this.$type="RestWRDSService,http://www.Gs.com"}var h="{url}/{serviceName}";return t.extend2(u,n),t.extend2(u,i),u.prototype.rescueAnalysis=function(t,e,n,i){var r={layer:t,destination:e.x+","+e.y,requiredRoute:null!=i&&i},o=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/rescueAnalysis?"+this.serviceInput.getUrlTemplate(r);return this._postRequestWithSerializer(o,n)},u.prototype.materialAnalysis=function(t,e,n,i){var r={layer:t,destination:e.x+","+e.y,requiredRoute:null!=i&&i},o=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/materialAnalysis?"+this.serviceInput.getUrlTemplate(r);return this._postRequestWithSerializer(o,n)},u.prototype.equipmentAnalysis=function(t,e,n,i){var r={layer:t,destination:e.x+","+e.y,requiredRoute:null!=i&&i},o=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/equipmentAnalysis?"+this.serviceInput.getUrlTemplate(r);return this._postRequestWithSerializer(o,n)},u.prototype.route=function(t,e,n){var i={layer:t,origin:e.x+","+e.y,destination:n.x+","+n.y},r=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/route?"+this.serviceInput.getUrlTemplate(i);return this._getRequestWithSerializer(r)},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.distance=t.distance,this.duration=t.duration,this.traffic_condition=t.traffic_condition,this.steps=t.steps,this.$type="Route,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.origin=t.origin,this.destination=t.destination,this.routes=t.routes,this.$type="RoutePlan,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.leg_index=t.leg_index,this.direction=t.direction,this.turn=t.turn,this.distance=t.distance,this.duration=t.duration,this.instruction=t.instruction,this.path=t.path,this.start_location=t.start_location,this.end_location=t.end_location,this.traffic_condition=t.traffic_condition,this.$type="Step,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.status=t.status,this.geo_cnt=t.geo_cnt,this.$type="StepTraffic,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(194),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.personNum=t.personNum,this.equipments=t.equipments,this.$type="TeamSource,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(67),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.trafficType=t.trafficType,this.analysisMode=t.analysisMode,this.$type="WRDSCapability,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(380),n(16),n(381),n(382),n(383),n(384),n(1),n,e,t],void 0===(r=function(t,e,n,h,c,p,f,d,i,r,o){function a(t){(t=t||{}).serviceFix="wrgs",e.call(this,t),n.call(this,t),this.url=t.url}return t.extend2(a,e),t.extend2(a,n),a.prototype.regeocode=function(t){var e="{url}/{serviceName}".replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/regeocode?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){var e=t.result,n=new d({x:e.location.lng,y:e.location.lat,spatialReference:4490}),i=new c({country:e.address_component.country,province:e.address_component.province,city:e.address_component.city,district:e.address_component.district,town:e.address_component.town,street:e.address_component.street,street_number:e.address_component.street_number,adcode:e.address_component.adcode}),r=[],o=[];if(e.pois&&Array.isArray(e.pois))for(var a=0;a<e.pois.length;++a){var s=new p({address:e.pois[a].address,point:new d({x:e.pois[a].point.lng,y:e.pois[a].point.lat,spatialReference:4490}),distance:e.pois[a].distance,name:e.pois[a].name,uid:e.pois[a].uid,zip:e.pois[a].zip,type:e.pois[a].type,direction:e.pois[a].direction,tel:e.pois[a].tel});r.push(s)}if(e.roads&&Array.isArray(e.roads))for(var l=0;l<e.roads.length;++l){var u=new f({name:e.roads[l].name,distance:e.roads[l].distance});o.push(u)}return new h({location:n,formatted_address:e.formatted_address,address_component:i,pois:r,roads:o})}(t):t},function(t){throw console.error(t),t})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.layer=void 0===t.layer?"baidu":t.layer,t.location&&"string"==typeof t.location?this.location=t.location:t.location&&"object"==typeof t.location&&(this.location=t.location.getCoordinates()),this.radius=void 0===t.radius?1e3:t.radius,this.ext_poi=void 0!==t.ext_poi&&t.ext_poi,this.ext_road=void 0!==t.ext_road&&t.ext_road,this.ext_town=void 0!==t.ext_town&&t.ext_town,this.language=void 0===t.language?"zh-CN":t.language,this.format=void 0===t.format?"json":t.format}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n(385),n(16),n(133),n(313),n(311),n(1),n,e,t],void 0===(r=function(t,e,n,i,a,r,o,s,l,u,h){function c(t){(t=t||{}).serviceFix="wrms",n.call(this,t),i.call(this,t),this.url=t.url,this.deserializer=t.deserializer,this.serviceInput=new e,this.$type="RestWRMSService,http://www.Gs.com"}var p="{url}/{serviceName}";return t.extend2(c,n),t.extend2(c,i),c.prototype.getLayer=function(t,e){var n={wrcsName:t,nodeId:e},i=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getLayer?"+this.serviceInput.getUrlTemplate(n);return this._getRequestWithSerializer(i)},c.prototype.findById=function(t,e,n){var i={layer:t,id:e,withRelation:null!=n&&n},r=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findById?"+this.serviceInput.getUrlTemplate(i);return this._getRequestWithSerializer(r)},c.prototype.find=function(t,e,n){var i={layer:t,withRelation:null!=n&&n},r=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/find?"+this.serviceInput.getUrlTemplate(i),o=null;return null!=e&&(o=new a({filter:e})),this._postRequestWithSerializer(r,o)},c.prototype.deleteById=function(t,e){var n=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/deleteById?layer="+t+"&id="+e;return this._deleteRequest(n)},c.prototype.delete=function(t,e){var n=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/delete?layer="+t,i=null;return null!=e&&(i=new a({filter:e})),this._deleteRequest(n,i)},c.prototype.create=function(t,e){var n={layer:t,withRelation:null!=e&&e},i=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/create?"+this.serviceInput.getUrlTemplate(n);return this._getRequestWithSerializer(i)},c.prototype.save=function(t,e){var n=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/save?layer="+t;return this._postRequest(n,e)},c.prototype.update=function(t,e){var n=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/update?layer="+t;return this._putRequestWithSerializer(n,e)},c.prototype.batchSave=function(t,e){var n=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/batchSave?layer="+t;return this._postRequestWithCommon(n,e)},c.prototype.pageQuery=function(t,e,n,i){var r=p.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/pageQuery?layer="+t+"&page="+e+"&size="+n,o=null;return null!=i&&(o=new a({filter:i})),this._postRequestWithSerializer(r,o)},h.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(67),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.extent=t.extent,this.fields=t.fields,this.type=t.type,this.$type="WRMSCapability,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(99),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),t.waypoints&&"string"==typeof t.waypoints?this.waypoints=t.waypoints:t.waypoints&&t.waypoints instanceof Array&&(this.waypoints=function(t){var e="";if(t&&0<t.length){for(var n=0;n<t.length;++n){var i=t[n]||{};n<5&&(e+="|"+i.x+","+i.y)}e=e.substr(1)}return e}(t.waypoints)),this.strategy=void 0===t.strategy?0:t.strategy}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(390),n(16),n(386),n(387),n(388),n(389),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(1),n(29),n,e,t],void 0===(r=function(t,e,n,r,s,u,h,o,l,a,i,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C,M,T,A,E,I,L,R,O,N){function k(t){(t=t||{}).serviceFix="wrps",e.call(this,t),n.call(this,t),this.url=t.url}var z="{url}/{serviceName}";function D(t){for(var e=new L({spatialReference:4490}),n=t.split(";"),i=0;i<n.length;++i){var r=n[i].split(","),o=new I({x:parseFloat(r[0]),y:parseFloat(r[1]),spatialReference:4490});e.addPoint(o)}return e}function F(t){return new I({x:t.lng,y:t.lat,spatialReference:4490})}function G(t){for(var e=[],n=0;n<t.length;++n){var i=t[n],r=i.traffic_condition,o=[];if(r&&0<r.length)for(var a=0;a<r.length;++a){var s=new h({status:r[a].status,geo_cnt:r[a].geo_cnt});o.push(s)}var l=new u({leg_index:i.leg_index,turn:i.turn,direction:i.direction,distance:i.distance,duration:i.duration,instruction:i.instruction,start_location:F(i.start_location),end_location:F(i.end_location),path:D(i.path),traffic_condition:o});e.push(l)}return e}function j(t){if(t)return new C({start_name:t.start_name,start_city:t.start_city,start_time:t.start_time})}function V(t){if(t)return new M({end_name:t.end_name,end_city:t.end_city,end_time:t.end_time})}function q(t){var e=t.detail;if(e){var n=new w({type:t.type,detail:new i({name:e.name,stop_num:e.stop_num,on_station:e.on_station,off_station:e.off_station,first_time:e.first_time,last_time:e.last_time,start_info:function(t){if(t)return new c({start_name:t.start_name,start_uid:t.start_uid,start_time:t.start_time})}(e.start_info),end_info:function(t){if(t)return new p({end_name:t.end_name,end_uid:t.end_uid,end_time:t.end_time})}(e.end_info)})});return e.hasOwnProperty("type")?n.detail.type=e.type:delete n.detail.type,n}}function B(t){var e;switch(t.type){case 1:e=function(t){var e=t.detail;if(e)return new w({type:t.type,detail:new S({name:e.name,price:e.price,booking:e.booking,departure_station:e.departure_station,arrive_station:e.arrive_station,departure_time:e.departure_time,arrive_time:e.arrive_time,start_info:j(e.start_info),end_info:V(e.end_info)})})}(t);break;case 2:e=function(t){var e=t.detail;if(e)return new w({type:t.type,detail:new P({name:e.name,price:e.price,discount:e.discount,airlines:e.airlines,booking:e.booking,departure_station:e.departure_station,arrive_station:e.arrive_station,departure_time:e.departure_time,arrive_time:e.arrive_time,start_info:j(e.start_info),end_info:V(e.end_info)})})}(t);break;case 6:e=function(t){var e=t.detail;if(e)return new w({type:t.type,detail:new b({name:e.name,price:e.price,provider_name:e.provider_name,provider_url:e.provider_url,booking:e.booking,departure_station:e.departure_station,arrive_station:e.arrive_station,departure_time:e.departure_time,arrive_time:e.arrive_time,start_info:j(e.start_info),end_info:V(e.end_info)})})}(t);break;case 3:e=q(t);break;default:e=new w({type:t.type,detail:null})}return e}function U(t){return new f({city_name:t.city_name,location:F(t.location)})}function W(t){var e=[];if(t&&0<t.length)for(var n=0;n<t.length;++n){var i=new y({ticket_type:t[n].ticket_type,ticket_price:t[n].ticket_price});e.push(i)}return e}function Z(t){for(var e=[],n=0;n<t.length;++n){var i=t[n],r=[];if(i&&0<i.length)for(var o=0;o<i.length;++o){var a=i[o],s=new v({vehicle_info:B(a.vehicle_info),traffic_condition:a.traffic_condition,path:D(a.path),start_location:F(a.start_location),end_location:F(a.end_location),distance:a.distance,duration:a.duration,instruction:a.instruction});r.push(s)}var l=new g({schemes:r});e.push(l)}return e}function X(t){for(var e=[],n=0;n<t.length;++n){var i=t[n],r=new a({direction:i.direction,distance:i.distance,duration:i.duration,instruction:i.instruction,start_location:F(i.start_location),end_location:F(i.end_location),path:D(i.path),turn_type:i.turn_type,name:i.name});e.push(r)}return e}function H(t){for(var e=[],n=0;n<t.length;++n){var i=t[n],r=new E({direction:i.direction,distance:i.distance,duration:i.duration,instruction:i.instruction,start_location:F(i.start_location),end_location:F(i.end_location),path:D(i.path)});e.push(r)}return e}return t.extend2(k,e),t.extend2(k,n),k.prototype.driving=function(t){var e=z.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/driving?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){var e=t.result,n=e.routes,i=[];n&&0<n.length&&(i=function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n],r=[],o=i.steps;o&&0<o.length&&(r=G(o));var a=new s({distance:i.distance,duration:i.duration,steps:r,traffic_condition:i.traffic_condition});e.push(a)}return e}(n));return new r({origin:F(e.origin),destination:F(e.destination),routes:i})}(t):t},function(t){throw console.error(t),t})},k.prototype.transit=function(t){var e=z.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/transit?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){var e=t.result,n=e.routes,i=[];n&&0<n.length&&(i=function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n],r=[],o=i.steps;o&&0<o.length&&(r=Z(o));var a=new m({distance:i.distance,duration:i.duration,arrive_time:i.arrive_time,price:i.price,price_detail:W(i.price_detail),steps:r});e.push(a)}return e}(n));return new d({origin:U(e.origin),destination:U(e.destination),routes:i,total:e.total,taxi:function(t){var e=[];if(t&&t.detail&&0<t.detail.length)for(var n=0;n<t.detail.length;++n){var i=new _({desc:t.detail[n].desc,km_price:t.detail[n].km_price,start_price:t.detail[n].start_price,total_price:t.detail[n].total_price});e.push(i)}if(t){return new x({detail:e,distance:t.distance,duration:t.duration,remark:t.remark})}}(e.taxi)})}(t):t},function(t){throw console.error(t),t})},k.prototype.riding=function(t){var e=z.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/riding?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){var e=t.result,n=e.routes,i=[];n&&0<n.length&&(i=function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n],r=[],o=i.steps;o&&0<o.length&&(r=X(o));var a=new l({distance:i.distance,duration:i.duration,steps:r});e.push(a)}return e}(n));return new o({origin:F(e.origin),destination:F(e.destination),routes:i})}(t):t},function(t){throw console.error(t),t})},k.prototype.walking=function(t){var e=z.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/walking?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){var e=t.result,n=e.routes,i=[];n&&0<n.length&&(i=function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n],r=[],o=i.steps;o&&0<o.length&&(r=H(o));var a=new A({distance:i.distance,duration:i.duration,steps:r});e.push(a)}return e}(n));return new T({origin:F(e.origin),destination:F(e.destination),routes:i})}(t):t},function(t){throw console.error(t),t})},N.exports=k}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(99),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.riding_type=void 0===t.riding_type?0:t.riding_type}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(99),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.strategy_incity=void 0===t.strategy_incity?0:t.strategy_incity,this.strategy_intercity=void 0===t.strategy_intercity?0:t.strategy_intercity,this.Trans_type_intercity=void 0===t.Trans_type_intercity?0:t.Trans_type_intercity,this.page_size=void 0===t.page_size?10:t.page_size,this.page_index=void 0===t.page_index?1:t.page_index}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(99),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(414),n(16),n(415),n(195),n(416),n(13),n,e,t],void 0===(r=function(t,e,n,o,i,a,r,s,l,u){function h(t){(t=t||{}).serviceFix="wrqs",e.call(this,t),n.call(this,t),this.url=t.url}var c="{url}/{serviceName}";function p(t){var e=[];if(t&&t.layers)for(var n=0;n<t.layers.length;++n){var i=t.layers[n],r=new a({id:i.id,layer:i.layer,imageType:i.imageType,srid:i.srid,minX:i.minX,minY:i.minY,maxX:i.maxX,maxY:i.maxY,minLevel:i.minLevel,maxLevel:i.maxLevel,tileSize:i.tileSize,createTime:i.createTime});e.push(r)}if(t)return new o({count:t.count,layers:e})}return t.extend2(h,e),t.extend2(h,n),h.prototype.findAll=function(t){var e=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findAll?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?p(t.result):t},function(t){throw console.error(t),t})},h.prototype.findOne=function(t){var e=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findOne?layer="+t;return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){if(t)return new i({layer:t.id,imageType:t.imageType,srid:t.srid,minX:t.minX,minY:t.minY,maxX:t.maxX,maxY:t.maxY,minLevel:t.minLevel,maxLevel:t.maxLevel,tileSize:t.tileSize,createTime:t.createTime})}(t.result):t},function(t){throw console.error(t),t})},h.prototype.find=function(t,e){var n=c.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/find?"+t.getUrlTemplate(),i=e.asWkt();return this._postRequest(n,i,"json","text/plain").then(function(t){return t&&0===t.status?p(t.result):t},function(t){throw console.error(t),t})},u.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n(417),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),n.call(this,t),this.startTime=t.startTime,this.endTime=t.endTime}return t.extend2(a,e),t.extend2(a,n),o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(137),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),e.bounds&&"string"==typeof e.bounds?this.bounds=e.bounds:e.bounds&&"object"==typeof e.bounds&&(this.bounds=e.bounds.getCoordinates()),this.shape_relation=e.shape_relation||"within"}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.query=e.query,this.sort=e.sort,this.field=e.field,this.shapeRelation=e.shapeRelation||"within",this.pageNumber=e.pageNumber||1,20<e.pageSize&&(e.pageSize=20),this.pageSize=e.pageSize||10}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.count=e.count,this.entityCollection=e.entityCollection}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(137),n,e,t],void 0===(r=function(t,i,e,n,r){function o(t){var e=t||{};if(i.call(this,e),e.location)"string"==typeof e.location?this.location=e.location:"object"==typeof e.location&&(this.location=e.location.x+","+e.location.y),this.radius=e.radius||1e3;else if(e.circle){var n=e.circle.center;this.location=n.x+","+n.y,this.radius=e.circle.radius}this.shape_relation=e.shape_relation||"within"}return t.extend2(o,i),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(137),n,e,t],void 0===(r=function(t,r,e,n,i){function o(t){var e=t||{};if(r.call(this,e),e.polygon&&"string"==typeof e.polygon)this.polygon=e.polygon;else if(e.polygon&&"object"==typeof e.polygon){var n=e.polygon.getCoordinates(),i=n.lastIndexOf(";");this.polygon=n.substring(0,i)}this.coord_type=e.coord_type||3,this.shape_relation=e.shape_relation||"within"}return t.extend2(o,r),i.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(418),n(16),n(21),n(55),n(1),n,e,t],void 0===(r=function(t,e,n,i,a,r,o,s,l){function u(t){(t=t||{}).serviceFix="wsqs",e.call(this),n.call(this,t),this.url=t.url}var h="{url}/{serviceName}";return t.extend2(u,e),t.extend2(u,n),u.prototype.getCapabilitiesUrl=function(){var t=i.defer(),e=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities?";return"Token"===this.authType?this._joinAccessToken(e):(t.resolve(e),t.promise)},u.prototype.getCapabilities=function(t){t=t||"xml";var e=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getCapabilities?format="+t;return this._getRequest(e,null,"text").then(function(t){if(t)return t},function(t){throw console.error(t),t})},u.prototype.findOne=function(t,e){var n=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/findOne?layer="+t+"&id="+e;return this._getRequest(n).then(function(t){if(t&&t.result){var e=t.result.crs;if(e&&e.properties&&e.properties.name)var n=e.properties.name;else n=4490;return a.fromGeoJson(t.result,n)}return t},function(t){throw console.error(t),t})},u.prototype.find=function(t,e,n){var i=h.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/find",r=n.asWkt(),o="layer="+t+"&"+e.getUrlTemplate()+"&geometry="+r;return this._postRequest(i,o,"json","application/x-www-form-urlencoded").then(function(t){return t&&t.result&&t.result.features?a.fromGeoJson(t.result.features):t},function(t){throw console.error(t),t})},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={intersects:"intersects",disjoint:"disjoint",within:"within",contains:"contains",equal:"equal",touch:"touch",cross:"cross",overlaps:"overlaps"};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(67),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.extent=t.extent,this.fields=t.fields,this.type=t.type}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={ZERO:0,FIRST:1,SECOND:2,THIRD:3,FOURTH:4,FIFTH:5};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={BIND:1,NOBIND:0};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.need_mapmatch=e.need_mapmatch,this.transport_mode=e.transport_mode,this.denoise_grade=e.denoise_grade,this.vacuate_grade=e.vacuate_grade}return t.extend2(o,n),o.prototype.getPipeUrl=function(){var t="";if(this){for(var e in this)if(this.hasOwnProperty(e)){if("$type"===e)continue;null!==this[e]&&void 0!==this[e]&&(t+=e+":"+this[e]+"|")}return"rectify_option="+t.substring(0,t.length-1)}return t},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.pointList=e.pointList||[],this.rectify_option=e.rectify_option,this.supplement_mode=e.supplement_mode}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(419),n(16),n(422),n(423),n(196),n(424),n(425),n(421),n(420),n(1),n,e,t],void 0===(r=function(t,e,n,l,u,i,a,s,h,c,r,o,p,f){function d(t){(t=t||{}).serviceFix="wts",e.call(this,t),n.call(this,t),this.url=t.url}var y="{url}/{serviceName}";function m(t,e){return new r({x:t,y:e,spatialReference:4490})}return t.extend2(d,e),t.extend2(d,n),d.prototype.create=function(t){var e=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/create";return this._postRequest(e,t.getUrlTemplate(),"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?t.result:t},function(t){throw console.error(t),t})},d.prototype.delete=function(t){var e=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/delete",n="serviceId="+t;return this._deleteRequest(e,n,"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?t.msg:t},function(t){throw console.error(t),t})},d.prototype.update=function(t){var e=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/update";return this._postRequest(e,t.getUrlTemplate(),"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?t.msg:t},function(t){throw console.error(t),t})},d.prototype.detail=function(t){var e=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/detail";return e=e+"?serviceId="+t,this._getRequest(e).then(function(t){return t&&0===t.status?function(t){if(t)return new i({serviceId:t.serviceId,name:t.name,type:t.type,description:t.description,createTime:t.createTime,updateTime:t.createTime})}(t.result):t},function(t){throw console.error(t),t})},d.prototype.addEntity=function(t){var e=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/addEntity";return this._postRequest(e,t.getUrlTemplate(),"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?t.msg:t},function(t){throw console.error(t),t})},d.prototype.deleteEntity=function(t,e){var n=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/deleteEntity",i="serviceId="+t+"&entityName="+e;return this._deleteRequest(n,i,"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?t.msg:t},function(t){throw console.error(t),t})},d.prototype.updateEntity=function(t){var e=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/updateEntity";return this._postRequest(e,t.getUrlTemplate(),"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?t.msg:t},function(t){throw console.error(t),t})},d.prototype.listEntity=function(t,e,n){var i=e||10,r=n||1,o=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/listEntity";return o=o+"?serviceId="+t+"&pageSize="+i+"&pageNum="+r,this._getRequest(o).then(function(t){return t&&0===t.status?function(t){if(t){for(var e=t.entities,n=[],i=0,r=e.length;i<r;i++){var o=new a({serviceId:e[i].serviceId,entityName:e[i].entityName,entityType:e[i].entityType,entityDesc:e[i].entityDesc,createTime:e[i].createTime,updateTime:e[i].updateTime});n.push(o)}return new s({total:t.total,entities:n})}}(t.result):t},function(t){throw console.error(t),t})},d.prototype.addPoint=function(t,e){var n=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/addPoint",i=e.getUrlTemplate();return i=i+"&serviceId="+t,this._postRequest(n,i,"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?t.msg:t},function(t){throw console.error(t),t})},d.prototype.addPoints=function(t,e){var n=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/addPoints",i=e.getUrlTemplate();return i=i+"&serviceId="+t,this._postRequest(n,i,"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?t.msg:t},function(t){throw console.error(t),t})},d.prototype.getTrack=function(t){var e=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/getTrack?"+t.getUrlTemplate();return this._getRequest(e).then(function(t){return t&&0===t.status?function(t){if(t){var e=t.track,n=[];if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++){var o=e[i];if(o.longitude||o.latitude)var a=m(o.longitude,o.latitude),s=new l({createTime:o.createTime,locTime:o.locTime,point:a});n.push(s)}return new u({total:t.total,track:n})}}}(t.result):t},function(t){throw console.error(t),t})},d.prototype.rectifyTrack=function(t){var e=y.replace("{url}",this.url).replace("{serviceName}",this.serviceFix)+"/rectifyTrack",n=null;t.rectify_option&&(n=t.rectify_option.getPipeUrl()),delete t.rectify_option,delete t.$type;for(var i=t.pointList,r=0,o=i.length;r<o;r++)delete i[r].point,delete i[r].$type;var a=n?t.getUrlTemplate()+"&"+n:t.getUrlTemplate();return this._postRequest(e,a,"json","application/x-www-form-urlencoded").then(function(t){return t&&0===t.status?function(t){if(t){for(var e=t.points,n=[],i=0,r=e.length;i<r;i++){var o=e[i];if(o.longitude||o.latitude){var a=m(o.longitude,o.latitude),s=new h({point:a,loc_time:o.loc_time,direction:o.direction,height:o.height,speed:o.speed,radius:o.radius});n.push(s)}}return new c({points:n,total:t.total,distance:t.distance,toll_distance:t.toll_distance})}}(t.result):t},function(t){throw console.error(t),t})},f.exports=d}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={NO_SUPPLEMENT:"no_supplement",STRAIGHT:"straight",DRIVING:"driving",RIDING:"riding",WALKING:"walking"};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.serviceId=e.serviceId,this.startTime=e.startTime,this.endTime=e.endTime,this.entityName=e.entityName}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={AUTO:"auto",DRIVING:"driving",RIDING:"riding",WALKING:"walking"};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={ZERO:0,FIRST:1,SECOND:2,THIRD:3,FOURTH:4,FIFTH:5};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(138),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.entityName=e.entityName}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(12),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.pointList=e.pointList||[]}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(426),n(16),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),n.call(this,t),this.url=t.url}return t.extend2(a,e),t.extend2(a,n),a.prototype.query=function(t,e){var n=this.url+"/layers/"+t+"/"+e;return this._getRequest(n,null,"json").then(function(t){if(t&&0===t.status)return t.results},function(t){throw console.error(t),t})},a.prototype.data=function(t,e,n,i,r){var o=this.url+"/data/"+t+"/"+e+"/"+n+"/"+i+"/"+r;return this._getRequest(o,null,"json").then(function(t){if(t&&0===t.status)return t.results},function(t){throw console.error(t),t})},a.prototype.queryByType=function(t,e,n,i){var r=this.url+"/layersByType/"+t+"/"+e+"/"+n+"/"+i;return this._getRequest(r,null,"json").then(function(t){if(t&&0===t.status)return t.results},function(t){throw console.error(t),t})},a.prototype.getLegend=function(t,e){var n=this.url+"/getLegend/"+t+"/"+e;return this._getRequest(n,null,"json").then(function(t){if(t&&0===t.status)return t.results},function(t){throw console.error(t),t})},a.prototype.forecastLayers=function(t,e){var n=this.url+"/forecastLayers/"+t+"/"+e;return this._getRequest(n,null,"json").then(function(t){if(t&&0===t.status)return t.results},function(t){throw console.error(t),t})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this.commands={}}return i.prototype.add=function(t){t&&t.id&&(this.commands[t.id]=t)},i.prototype.getCount=function(){return Object.keys(this.commands).length},i.prototype.getCommand=function(t){return this.commands[t]},i.prototype.getCommands=function(){return this.commands},i.prototype.remove=function(t){this.commands[t]=void 0,delete this.commands[t]},i.prototype.onCreate=function(t){for(var e in this.commands){this.commands[e].onCreate(t)}},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.manager=e.manager}return i.prototype.activeCommand=function(t,e){var n=this.manager.getCommand(t);n&&n.onClick(e)},i.prototype.notify=function(){var t=this.manager.getCommands();for(var e in t)command=t[e],command.isChecked(),command.isEnabled()},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){function t(t){}return t.prototype.show=function(t,e,n){return{result:{then:function(t,e){t()}}}},t}.apply(e,[]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){}return i.prototype.show=function(){},i.prototype.close=function(){},i.prototype.status=function(){return!1},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.error=function(t,e,n){},i.prototype.notify=function(t,e,n){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(106),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){}return o.prototype.activeView=function(t,e){},o.prototype.displayView=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(45),n,e,t],void 0===(r=function(t,e,n,i,r){function s(t){t=t||{},e.call(this,t),this.layer=t.layer,this.graphics=[]}return t.extend2(s,e),s.prototype.onClick=function(t){s.prototype.uber.onClick.call(this,t),t&&t.hasOwnProperty("layer")&&(this.layer=t.layer);for(var e=0;e<this.graphics.length;e++)this.layer.unSelect(this.graphics[e])},s.prototype.onCreate=function(t){s.prototype.uber.onCreate.call(this,t)},s.prototype.onEndDraw=function(t){var e=t.geometry;this.graphics=this.layer.boxSelect(e);for(var n=0;n<this.graphics.length;n++)this.layer.select(this.graphics[n])},s.prototype.onMouseMove=function(t,e,n,i,r,o,a){this.cursor="crosshair",this.setCursor(this.cursor),s.prototype.uber.onMouseMove.call(this,t,e,n,i,r,o,a)},r.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(42),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.map=null}return t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.map=t.map},o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,t),this.map.stopAnimation&&this.map.stopAnimation(),this.map.fullExtent()},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(42),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.map=null}return t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.map=t.map},o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,t),this.map.stopAnimation&&this.map.stopAnimation(),this.map.zoomIn()},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(42),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.map=null}return t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),this.map=t.map},o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,t),this.map.stopAnimation&&this.map.stopAnimation(),this.map.zoomOut()},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(26),n(427),n(1),n(20),n,e,t],void 0===(r=function(t,n,e,c,r,i,o,a){function s(t){var e=t||{};n.call(this,e),this.plotLayer=e.layer,this.map=null,this.selectionSet=null,this.plotPlugin=null,this.currentPlotElement=null,this.mousedownFlag=!1,this.hitNum=0,this.editMode=null,this.mousedownScreenX=0,this.mousedownScreenY=0,this.selectedGraphic=0,this.editType=-1}t.extend2(s,n),s.prototype.deactivate=function(){this.uber.deactivate.call(this),this.endEdit(),this.activeCommand("SymbolEditCommand",null)},s.prototype.isEnabled=function(){return s.prototype.uber.isEnabled.call(this),!(this.plotLayer&&0<this.plotLayer.getCount())},s.prototype.onCreate=function(t){s.prototype.uber.onCreate.call(this,t),this.map=t.map,this.selectionSet=t.graphicSelectionSet,this.plotPlugin=t.plotPlugin,this.srid=this.map.getSrid(),this.editMode=new e({plotLayer:this.plotLayer,srid:this.srid})},s.prototype.onClick=function(t){s.prototype.uber.onClick.call(this,t),this.mousedownFlag=!1,this.hitNum=0},s.prototype.onMouseDown=function(t,e,n,i,r,o,a,s){this.mousedownFlag=!0,this.mousedownScreenX=n,this.mousedownScreenY=i;var l=this.plotLayer.hitTest(n,i);if(this.selectedGraphic=l){this.hitNum++,this.map.stopDragPan();var u=new c({x:r,y:o}),h=this.editOp(l);switch(this.editType=h){case 1:this.cancelEdit(this.currentPlotElement),this.beginEdit(l,u),this.activeCommand("SymbolEditCommand",l.element);break;case 2:this.editElement(l.element,u),this.activeCommand("SymbolEditCommand",l.element);break;case 3:this.editPoint(l.element,u)}}else this.endEdit(),this.activeCommand("SymbolEditCommand",null)},s.prototype.onMouseMove=function(t,e,n,i,r,o,a,s){if(this.currentPlotElement&&this.mousedownFlag){var l=this.mapz||0,u=new c({x:r,y:o,z:l});this.editMode.drag(u)}},s.prototype.onPosition3d=function(t,e,n){this.mapz=n},s.prototype.onMouseUp=function(t,e,n,i,r,o,a,s){if(function(t,e){if(Math.sqrt(Math.pow(this.mousedownScreenX-t,2)+Math.pow(this.mousedownScreenY-e,2))<=12)return!0}.call(this,n,i)&&3===this.editType&&this.selectedGraphic&&4!=this.editMode.drawOp){var l=function(t){return t.algorithm.$type.split(",")[0]}(this.currentPlotElement);"FreePolygonAlgorithm"!==l&&"FreePolylineAlgorithm"!==l&&"PolygonAlgorithm"!==l&&"PolylineAlgorithm"!==l||this.editMode.deleteNode(this.selectedGraphic.element.geometry)}else this.editMode.endEdit();this.plotPlugin&&this.currentPlotElement&&this.plotPlugin.updateElement(this,this.currentPlotElement),this.mousedownFlag=!1,this.selectedGraphic=void 0};return s.prototype.onKeyDown=function(t,e){46==t&&this.activeCommand("PlotDelete","是否删除该标绘?")},s.prototype.onKeyUp=function(t,e){},s.prototype.editOp=function(t){var e=t.element,n=e.parent;return this.currentPlotElement!==n&&null!=n?1:e&&n?2:e&&!n?3:-1},s.prototype.beginEdit=function(t,e){var n=t.element.parent;this.currentPlotElement=n;var i=new r({element:n,layer:this.plotLayer});this.selectionSet.add(i),this.plotLayer.selectEdit(i),this.plotPlugin&&this.plotPlugin.selectElement(this,i.element),this.editMode.beginEdit(n,e)},s.prototype.editElement=function(t,e){var n=t.parent;this.editMode.editingElement(n,e)},s.prototype.editPoint=function(t,e){var n=t.geometry;this.editMode.editingPoint(n,e)},s.prototype.endEdit=function(){this.map.resumeDragPan(),this.cancelEdit(this.currentPlotElement),this.editMode.endEdit(),this.activeCommand("SymbolEditCommand",null),this.hitNum=0,this.currentPlotElement=null},s.prototype.cancelEdit=function(t){var e=new r({element:t});this.plotLayer.unSelectEdit(e),this.plotPlugin&&this.plotPlugin.unSelectElement(this,e.element),this.selectionSet.clear()},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(1),n(2),n(6),n(3),n(5),n(15),n(28),n(17),n(30),n(428),n(430),n(431),n(432),n,e,t],void 0===(r=function(s,t,i,e,r,n,o,l,a,u,h,c,p,f,d,y){function m(t){var e=(t=t||{}).map;this.commandManager=t.commandManager,e&&(this.plotLayer=t.plotLayer,this.srid=e.getSrid())}function g(t){var e=new i({spatialReference:t});e.addPoint(new s({x:1,y:3,spatialReference:t})),e.addPoint(new s({x:2,y:5,spatialReference:t})),e.addPoint(new s({x:0,y:0,spatialReference:t})),e.addPoint(new s({x:0,y:0,spatialReference:t}));var n=new r({spatialReference:t});return n.addGeometry(e),n}return m.prototype.onCreate=function(t){this.commandManager.onCreate(t)},m.prototype.simpleMarker=function(t,e,n,i){i=i||this.plotLayer;var r=new s({x:0,y:0,spatialReference:this.srid}),o=new l({geometry:r,symbol:n}),a=new u({id:t,drawTemplate:null,algorithm:new h,elements:[o],name:e,plotLayer:i});return this.commandManager.add(a),this},m.prototype.simpleArrow=function(t,e,n,i){i=i||this.plotLayer;var r=g(this.srid),o=new l({geometry:r,symbol:n}),a=new u({id:t||"simpleArrow",drawTemplate:o,algorithm:new c,elements:[o],name:e,plotLayer:i});return this.commandManager.add(a),this},m.prototype.shockWay=function(t,e,n,i){i=i||this.plotLayer;var r=g(this.srid),o=new l({geometry:r,symbol:n}),a=new u({id:t||"shockWay",drawTemplate:o,algorithm:new p,elements:[o],name:e,plotLayer:i});return this.commandManager.add(a),this},y.exports=m}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(3),n(5),n,e,t],void 0===(r=function(t,e,n,l,i,s,u,h,r,o,a){var c=t.extend2;t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle;distance=n.distance;function p(t){this.$type="PointAlgorithmWater,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null,this._inilization()}return c(p,e),p.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new l,o=new u;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=a,this.getGraphParts(1)},p.prototype.getGraphParts=function(t){for(var e=new l,n=bzPoints.length,i=0;i<=n-1;i++)e.addPoint(bzPoints[i]);var r=new u;r.addGeometry(e);var o=new h,a=new s;return o.addGeometry(a),[r,bzPoints[bzPoints.length-1]]},p.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制拦水设施线在地图上点击绘制第1个点。"},p.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},p.prototype.getType=function(){return"pointalgorithmWater"},a.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,d,i,y,m,g,r,o,a){var s=t.extend2,v=(t.deepCopy,n.scalePoint),x=(n.pathLength,n.vertex);n.angle;distance=n.distance;function l(t){this.$type="BeelineArrowAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:2}),this.p1=null,this.p2=null}return s(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new d,o=new g;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}if(2===i)return this.p1=n[0],this.p2=n[1],this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=distance(this.p1,this.p2)*t,n=v(this.p1,this.p2,.96),i=v(this.p1,this.p2,.94),r=this.p1,o=n,a=x(i,this.p1,i,e/55,!1),s=x(i,this.p1,i,e/55,!0),l=this.p2,u=new y,h=[o,a,l,s,o.copy()];0<u.points.length?u.points=h:u.addPoint(h);var c=new m;c.addGeometry(u);var p=new d;p.addPoint(r),p.addPoint(o);var f=new g;return f.addGeometry(p),[f,c]},l.prototype.getType=function(){return"beelinearrow"},l.prototype.getDescription=function(){return"在地图上绘制2个点用于绘制细直箭头在地图上点击绘制第一个点。"},l.prototype.getStepDes=function(t){switch(t){case 1:return"在地图上点击绘制最后一个点。";case 2:return"完成绘制。"}},a.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,d,i,y,m,g,r,o,a){function s(t){this.$type="CurveArrowAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var l=t.extend2,v=t.deepCopy,x=n.scalePoint,_=n.pathLength,w=n.vertex,u=(n.angle,n.bTypeline),b=(n.bzLine,n.gainPt);n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new d,o=new g;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r=_(bzPoints),o=r*t*4/210;e=b(bzPoints,r,12.7/13,void 0)[0],b(bzPoints,r,.96555,void 0)[0];var a=v(bzPoints[bzPoints.length-1]);n=x(e,a,2.5);var s=[i=w(a,e,e,o,!0),n,w(a,e,e,o,!1),a,i],l=new y;0<l.points.length?l.points=s:l.addPoint(s);var u=new m;u.addGeometry(l);for(var h=new g,c=new d,p=bzPoints.length,f=0;f<=p-1;f++)c.addPoint(bzPoints[f]);return h.addGeometry(c),[u,h]},s.prototype.getType=function(){return"curvearrowalgorithm"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制曲箭头双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,h,P,S,C,c,i,r,o){var a=t.extend2,M=(t.deepCopy,n.scalePoint,n.optionWay),T=n.pathLength,A=n.linePerpenPoints,E=n.bTypeline;vertex=n.vertex,angle=n.angle,bzLine=n.bzLine,gainPt=n.gainPt,distance=n.distance;function I(t){this.$type="DoubleArrowAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:4}),this._inilization()}return a(I,e),I.prototype._inilization=function(){this.m_pWay=!1,this.m_CtrlPts=[],this.pts=null,this.ctrlpts=[],this.cpts=[],this.pv=[],this.pv2=[],this.lpnt=[],this.cpnt=[],this.rpnt=[]},I.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.m_CtrlPts[0]=n[0],this.m_CtrlPts[1]=e;var r=new h,o=new c;return r.addPoint(this.m_CtrlPts[0]),r.addPoint(this.m_CtrlPts[1]),o.addGeometry(r),[o]}if(2===i){if(this.m_CtrlPts[0]=n[0],this.m_CtrlPts[1]=n[1],n[1].x==e.x&&n[1].y==e.y){var a=new P({x:e.x+1e-12,y:e.y});this.m_CtrlPts[2]=a}else this.m_CtrlPts[2]=e;var s=-1/((this.m_CtrlPts[1].y-this.m_CtrlPts[0].y)/(this.m_CtrlPts[1].x-this.m_CtrlPts[0].x)),l=new P;l.x=(this.m_CtrlPts[0].x+this.m_CtrlPts[1].x)/2,l.y=(this.m_CtrlPts[0].y+this.m_CtrlPts[1].y)/2,pt1=I.leftPoint(l,this.m_CtrlPts[2],s),this.m_CtrlPts[3]=pt1}else if(3===i)null!=e?(this.m_CtrlPts[0]=n[0],this.m_CtrlPts[1]=n[1],this.m_CtrlPts[2]=n[2],this.m_CtrlPts[3]=e):(this.m_CtrlPts[0]=n[0],this.m_CtrlPts[1]=n[1],this.m_CtrlPts[2]=n[2]);else if(4===i)for(var u=0;u<i;u++)this.m_CtrlPts[u]=n[u];if(4===this.m_CtrlPts.length)return this.getGraphParts(1)},I.prototype.getGraphParts=function(t){for(var e=new P,n=new P,i=new P,r=new P,o=new P,a=new P,s=new P,l=new P,u=new P,h=0;h<=4;h++)this.pv2[h]=new P;var c=new S,p=new C,f=this.m_CtrlPts;this.m_pWay=M(f[0],f[1],f[2]);var d=distance(f[1],f[2]);if(0!==d&&(A(f[1],f[2],d/2,d/4,e,n,this.m_pWay),A(f[1],f[2],d/2,d/10,e,i,this.m_pWay),d=distance(f[1],n),A(f[1],n,d/3,0,r,e,!0),this.ctrlpts[0]=f[1],this.ctrlpts[1]=i,this.ctrlpts[2]=f[2],d=T(this.ctrlpts),this.pts=E(this.ctrlpts),this.pv=I.helloArrowHead(this.pts[parseInt(5*this.pts.length/6)],f[2],d/4.5,Math.PI/5,Math.PI/2,Math.PI/10),d=distance(f[0],f[3]),A(f[0],f[3],d/2,d/4,e,o,!this.m_pWay),A(f[0],f[3],d/2,d/10,e,a,!this.m_pWay),d=distance(f[0],o),A(f[0],o,d/3,0,s,e,!0),this.ctrlpts[0]=f[0],this.ctrlpts[1]=a,this.ctrlpts[2]=f[3],d=T(this.ctrlpts),this.pts=E(this.ctrlpts),this.pv2=I.helloArrowHead(this.pts[parseInt(5*this.pts.length/6)],f[3],d/4.5,Math.PI/5,Math.PI/2,Math.PI/10),this.m_pWay?(A(this.pv2[2],this.pv2[0],distance(f[2],f[1]),0,l,e,!0),A(this.pv[2],this.pv[4],distance(f[2],f[1]),0,u,e,!0)):(A(this.pv2[2],this.pv2[4],8*distance(this.pv2[2],this.pv2[4]),0,l,e,!0),A(this.pv[2],this.pv[0],8*distance(this.pv[2],this.pv[0]),0,u,e,!0)),4===f.length)){this.m_pWay?(this.cpnt[0]=this.pv[4],this.cpnt[1]=u,this.cpnt[2]=l,this.cpnt[3]=this.pv2[0],this.lpnt[0]=this.pv2[4],this.lpnt[1]=o,this.lpnt[2]=s,this.lpnt[3]=f[0],this.rpnt[0]=f[1],this.rpnt[1]=r,this.rpnt[2]=n,this.rpnt[3]=this.pv[0]):(this.cpnt[0]=this.pv2[4],this.cpnt[1]=l,this.cpnt[2]=u,this.cpnt[3]=this.pv[0],this.rpnt[0]=f[0],this.rpnt[1]=s,this.rpnt[2]=o,this.rpnt[3]=this.pv2[0],this.lpnt[0]=this.pv[4],this.lpnt[1]=n,this.lpnt[2]=r,this.lpnt[3]=f[1]);var y=this.rpnt,m=bzLine(y),g=m[0],v=m.length;for(h=0;h<v;h++)c.addPoint(m[h]);this.m_pWay?c.addPoint(this.pv):c.addPoint(this.pv2);var x=this.cpnt,_=bzLine(x);c.addPoint(_),this.m_pWay?c.addPoint(this.pv2):c.addPoint(this.pv);var w=this.lpnt,b=bzLine(w);return c.addPoint(b),c.addPoint(g),p.addGeometry(c),[p]}},I.leftPoint=function(t,e,n){var i,r,o=t.y-n*t.x;return i=2*(e.x+n*e.y-n*o)/(n*n+1)-e.x,r=2*(n*e.x+n*n*e.y+o)/(n*n+1)-e.y,new P({x:i,y:r})},I.helloArrowHead=function(t,e,n,i,r,o){for(var a=[],s=i/2,l=r/2,u=o/2,h=0;h<=4;h++)a[h]=new P;var c=Math.atan2(e.y-t.y,e.x-t.x),p=Math.cos(s),f=Math.sin(s),d=Math.cos(l),y=Math.sin(l),m=Math.cos(c),g=Math.sin(c),v=Math.cos(u),x=Math.sin(u);a[3].x=-n*(p*m-f*g),a[3].y=-n*(f*m+p*g),a[1].x=-n*(p*m+f*g),a[1].y=-n*(g*p-m*f),a[2].x=0,a[2].y=0;var _=n*(y*d-d*f)/(y*v-d*x);a[4].x=-_*(v*m-x*g),a[4].y=-_*(x*m+v*g),a[0].x=-_*(m*v+g*x),a[0].y=-_*(g*v-m*x);for(parseInt(e.x-(a[0].x+a[4].x)/2),parseInt(e.y-(a[0].y+a[4].y)/2),h=0;h<5;h++)a[h].x+=e.x,a[h].y+=e.y;return a},I.prototype.getType=function(){return"doublearrowalgorithm"},I.prototype.getDescription=function(){return"在地图上绘制多个点最少3个点最多4个点用于绘制双箭头双击结束绘制在地图上点击绘制第1个点。"},I.prototype.getStepDes=function(t){switch(t){case 4:return"完成绘制。";default:if(t<=3)return"单击绘制下一个点。"}},o.exports=I}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,b,P,i,r,S,o,a,s){var l=t.extend2,C=(t.deepCopy,n.scalePoint,n.optionWay),M=n.pathLength,T=n.linePerpenPoints,A=n.bTypeline;vertex=n.vertex,angle=n.angle,bzLine=n.bzLine,gainPt=n.gainPt,distance=n.distance;function E(t){this.$type="DoubleArrowAlgorithm2,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:4}),this._inilization()}return l(E,e),E.prototype._inilization=function(){this.m_pWay=!1,this.m_CtrlPts=[],this.pts=null,this.ctrlpts=[],this.cpts=[],this.pv=[],this.pv2=[],this.lpnt=[],this.cpnt=[],this.rpnt=[]},E.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.m_CtrlPts[0]=n[0],this.m_CtrlPts[1]=e;var r=new b,o=new S;return r.addPoint(this.m_CtrlPts[0]),r.addPoint(this.m_CtrlPts[1]),o.addGeometry(r),[o]}if(2===i){if(this.m_CtrlPts[0]=n[0],this.m_CtrlPts[1]=n[1],n[1].x==e.x&&n[1].y==e.y){var a=new P({x:e.x+1e-12,y:e.y});this.m_CtrlPts[2]=a}else this.m_CtrlPts[2]=e;var s=-1/((this.m_CtrlPts[1].y-this.m_CtrlPts[0].y)/(this.m_CtrlPts[1].x-this.m_CtrlPts[0].x)),l=new P;l.x=(this.m_CtrlPts[0].x+this.m_CtrlPts[1].x)/2,l.y=(this.m_CtrlPts[0].y+this.m_CtrlPts[1].y)/2,pt1=E.leftPoint(l,this.m_CtrlPts[2],s),this.m_CtrlPts[3]=pt1}else if(3===i)null!=e?(this.m_CtrlPts[0]=n[0],this.m_CtrlPts[1]=n[1],this.m_CtrlPts[2]=n[2],this.m_CtrlPts[3]=e):(this.m_CtrlPts[0]=n[0],this.m_CtrlPts[1]=n[1],this.m_CtrlPts[2]=n[2]);else if(4===i)for(var u=0;u<i;u++)this.m_CtrlPts[u]=n[u];if(4===this.m_CtrlPts.length)return this.getGraphParts(1)},E.prototype.getGraphParts=function(t){for(var e=new P,n=new P,i=new P,r=new P,o=new P,a=new P,s=new P,l=new P,u=new P,h=0;h<=4;h++)this.pv2[h]=new P;var c=new b,p=new S,f=this.m_CtrlPts;this.m_pWay=C(f[0],f[1],f[2]);var d=distance(f[1],f[2]);if(0!==d&&(T(f[1],f[2],d/2,d/4,e,n,this.m_pWay),T(f[1],f[2],d/2,d/10,e,i,this.m_pWay),d=distance(f[1],n),T(f[1],n,d/3,0,r,e,!0),this.ctrlpts[0]=f[1],this.ctrlpts[1]=i,this.ctrlpts[2]=f[2],d=M(this.ctrlpts),this.pts=A(this.ctrlpts),this.pv=E.helloArrowHead(this.pts[parseInt(5*this.pts.length/6)],f[2],d/4.5,Math.PI/5,Math.PI/2,Math.PI/10),d=distance(f[0],f[3]),T(f[0],f[3],d/2,d/4,e,o,!this.m_pWay),T(f[0],f[3],d/2,d/10,e,a,!this.m_pWay),d=distance(f[0],o),T(f[0],o,d/3,0,s,e,!0),this.ctrlpts[0]=f[0],this.ctrlpts[1]=a,this.ctrlpts[2]=f[3],d=M(this.ctrlpts),this.pts=A(this.ctrlpts),this.pv2=E.helloArrowHead(this.pts[parseInt(5*this.pts.length/6)],f[3],d/4.5,Math.PI/5,Math.PI/2,Math.PI/10),this.m_pWay?(T(this.pv2[2],this.pv2[0],distance(f[2],f[1]),0,l,e,!0),T(this.pv[2],this.pv[4],distance(f[2],f[1]),0,u,e,!0)):(T(this.pv2[2],this.pv2[4],8*distance(this.pv2[2],this.pv2[4]),0,l,e,!0),T(this.pv[2],this.pv[0],8*distance(this.pv[2],this.pv[0]),0,u,e,!0)),4===f.length)){this.m_pWay?(this.cpnt[0]=this.pv[4],this.cpnt[1]=u,this.cpnt[2]=l,this.cpnt[3]=this.pv2[0],this.lpnt[0]=this.pv2[4],this.lpnt[1]=o,this.lpnt[2]=s,this.lpnt[3]=f[0],this.rpnt[0]=f[1],this.rpnt[1]=r,this.rpnt[2]=n,this.rpnt[3]=this.pv[0]):(this.cpnt[0]=this.pv2[4],this.cpnt[1]=l,this.cpnt[2]=u,this.cpnt[3]=this.pv[0],this.rpnt[0]=f[0],this.rpnt[1]=s,this.rpnt[2]=o,this.rpnt[3]=this.pv2[0],this.lpnt[0]=this.pv[4],this.lpnt[1]=n,this.lpnt[2]=r,this.lpnt[3]=f[1]);var y=this.rpnt,m=bzLine(y),g=(m[0],m.length);for(h=0;h<g;h++)c.addPoint(m[h]);this.m_pWay?c.addPoint(this.pv):c.addPoint(this.pv2);var v=this.cpnt,x=bzLine(v);c.addPoint(x),this.m_pWay?c.addPoint(this.pv2):c.addPoint(this.pv);var _=this.lpnt,w=bzLine(_);return c.addPoint(w),p.addGeometry(c),[p]}},E.leftPoint=function(t,e,n){var i,r,o=t.y-n*t.x;return i=2*(e.x+n*e.y-n*o)/(n*n+1)-e.x,r=2*(n*e.x+n*n*e.y+o)/(n*n+1)-e.y,new P({x:i,y:r})},E.helloArrowHead=function(t,e,n,i,r,o){for(var a=[],s=i/2,l=r/2,u=o/2,h=0;h<=4;h++)a[h]=new P;var c=Math.atan2(e.y-t.y,e.x-t.x),p=Math.cos(s),f=Math.sin(s),d=Math.cos(l),y=Math.sin(l),m=Math.cos(c),g=Math.sin(c),v=Math.cos(u),x=Math.sin(u);a[3].x=-n*(p*m-f*g),a[3].y=-n*(f*m+p*g),a[1].x=-n*(p*m+f*g),a[1].y=-n*(g*p-m*f),a[2].x=0,a[2].y=0;var _=n*(y*d-d*f)/(y*v-d*x);a[4].x=-_*(v*m-x*g),a[4].y=-_*(x*m+v*g),a[0].x=-_*(m*v+g*x),a[0].y=-_*(g*v-m*x);for(parseInt(e.x-(a[0].x+a[4].x)/2),parseInt(e.y-(a[0].y+a[4].y)/2),h=0;h<5;h++)a[h].x+=e.x,a[h].y+=e.y;return a},E.prototype.getType=function(){return"doublearrowalgorithm"},E.prototype.getDescription=function(){return"在地图上绘制多个点最少3个点最多4个点用于绘制双箭头双击结束绘制在地图上点击绘制第1个点。"},E.prototype.getStepDes=function(t){switch(t){case 4:return"完成绘制。";default:if(t<=3)return"单击绘制下一个点。"}},s.exports=E}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,i,S,C,M,r,o,a,s){var l=t.extend2,T=(t.deepCopy,n.scalePoint,n.optionWay,n.pathLength,n.linePerpenPoints,n.calLinePerpenPoint);n.bTypeline;vertex=n.vertex,angle=n.angle,bzLine=n.bzLine,gainPt=n.gainPt,distance=n.distance,calInterPoints=n.calInterPoints,calHollowArraowhead=n.calHollowArraowhead,calPathPerpenPoints=n.calPathPerpenPoints,getBSplinePoints=n.getBSplinePoints,getBSplineFFactor=n.getBSplineFFactor,getQuadricBSplineFactor=n.getQuadricBSplineFactor,getArrowTailPoints=n.getArrowTailPoints,getArrowBodyPoints=n.getArrowBodyPoints,getThirdPoint=n.getThirdPoint,getArrowHeadPoints=n.getArrowHeadPoints,getArrowPlot=n.getArrowPlot;function u(t){this.$type="MultiArrowAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:9}),this._inilization()}return l(u,e),u.prototype._inilization=function(){this.m_Ctrlpts=[]},u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=[],o=[],a=[],s=[],l=[],u=[],h=[],c=[],p=[],f=[];this.headHeightFactor=.15,this.headWidthFactor=.4,this.neckHeightFactor=.75,this.neckWidthFactor=.15,this.tailWidthFactor=.1;for(var d=new C,y=0;y<i;y++)this.m_Ctrlpts[y]=n[y];switch(null!=e&&this.m_Ctrlpts[i-1].x==e.x&&this.m_Ctrlpts[i-1].y==e.y&&(i-=1),i){case 1:null!=e?(o[0]=this.m_Ctrlpts[0],o[1]=e):o[0]=this.m_Ctrlpts[0];break;case 2:null!=e?(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=e):(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1]);break;case 3:null!=e?(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],o[3]=e):(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2]);break;case 4:null!=e?(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=e):(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],o[3]=this.m_Ctrlpts[3]);break;case 5:null!=e?(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4],a[2]=e):(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4]);break;case 6:null!=e?(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4],a[2]=this.m_Ctrlpts[5],a[3]=e):(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4],a[2]=this.m_Ctrlpts[5]);break;case 7:null!=e?(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4],a[2]=this.m_Ctrlpts[5],s[0]=this.m_Ctrlpts[6],s[1]=e):(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4],a[2]=this.m_Ctrlpts[5],a[3]=this.m_Ctrlpts[6]);break;case 8:null!=e?(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4],a[2]=this.m_Ctrlpts[5],s[0]=this.m_Ctrlpts[6],s[1]=this.m_Ctrlpts[7],s[2]=e):(o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4],a[2]=this.m_Ctrlpts[5],s[0]=this.m_Ctrlpts[6],s[1]=this.m_Ctrlpts[7]);break;case 9:o[0]=this.m_Ctrlpts[0],o[1]=this.m_Ctrlpts[1],o[2]=this.m_Ctrlpts[2],a[0]=this.m_Ctrlpts[3],a[1]=this.m_Ctrlpts[4],a[2]=this.m_Ctrlpts[5],s[0]=this.m_Ctrlpts[6],s[1]=this.m_Ctrlpts[7],s[2]=this.m_Ctrlpts[8]}if(0!=s.length&&2<=s.length){o=getArrowPlot(o,!1,0,"useBSplieFit",this.headHeightFactor,this.headWidthFactor,this.neckHeightFactor,this.neckWidthFactor,this.tailWidthFactor),num=o.length,num1=(num-5)/2;for(y=0;y<num1-1;y++)l[y]=o[y];for(var m=num1;m<num1+5;m++)u[m-num1]=o[m];r.push(l),r.push(u),a=getArrowPlot(a,!1,0,"useBSplieFit",this.headHeightFactor,this.headWidthFactor,this.neckHeightFactor,this.neckWidthFactor,this.tailWidthFactor),num=a.length,num1=(num-5)/2;for(y=num1;y<num1+5;y++)c[y-num1]=a[y];s=getArrowPlot(s,!1,0,"useBSplieFit",this.headHeightFactor,this.headWidthFactor,this.neckHeightFactor,this.neckWidthFactor,this.tailWidthFactor),num=s.length,num1=(num-5)/2;for(y=num1;y<num1+5;y++)p[y-num1]=s[y];for(y=num1+6;y<num;y++)f[y-num1-6]=s[y];var g=new S,v=new S,x=new S,_=new S;T(u[2],u[4],4,g),T(c[2],c[0],4,v),T(c[2],c[4],4,x),T(p[2],p[0],4,_),centerLeft=[],centerLeft.push(u[4]),centerLeft.push(g),centerLeft.push(v),centerLeft.push(c[0]),centerLeft=bzLine(centerLeft),r.push(centerLeft),r.push(c),centerRight=[],centerRight.push(c[4]),centerRight.push(x),centerRight.push(_),centerRight.push(p[0]),centerRight=bzLine(centerRight),r.push(centerRight),r.push(p),r.push(f)}else if(0!=a.length){o=getArrowPlot(o,!1,0,"useBSplieFit",this.headHeightFactor,this.headWidthFactor,this.neckHeightFactor,this.neckWidthFactor,this.tailWidthFactor),num=o.length,num1=parseInt((num-5)/2);for(y=0;y<num1-1;y++)l[y]=o[y];for(y=num1;y<num1+5;y++)u[y-num1]=o[y];if(r.push(l),r.push(u),2==a.length||3==a.length){a=getArrowPlot(a,!1,0,"useBSplieFit",this.headHeightFactor,this.headWidthFactor,this.neckHeightFactor,this.neckWidthFactor,this.tailWidthFactor),num=a.length,num1=parseInt((num-5)/2);for(y=num1;y<num1+5;y++)c[y-num1]=a[y];for(y=num1+6;y<num;y++)h[y-num1-6]=a[y];g=new S,v=new S;T(u[2],u[4],4,g),T(c[2],c[0],4,v),centerLeft=[],centerLeft.push(u[4]),centerLeft.push(g),centerLeft.push(v),centerLeft.push(c[0]),centerLeft=bzLine(centerLeft),r.push(centerLeft),r.push(c),r.push(h)}else if(4==a.length){var w=[];for(y=0;y<a.length-1;y++)w.push(a[y]);w=getArrowPlot(w,!1,0,"useBSplieFit",this.headHeightFactor,this.headWidthFactor,this.neckHeightFactor,this.neckWidthFactor,this.tailWidthFactor),num=w.length,num1=parseInt((num-5)/2);for(y=num1;y<num1+5;y++)c[y-num1]=w[y];g=new S,v=new S;T(u[2],u[4],4,g),T(c[2],c[0],4,v),centerLeft=[],centerLeft.push(u[4]),centerLeft.push(g),centerLeft.push(v),centerLeft.push(c[0]),centerLeft=bzLine(centerLeft),r.push(centerLeft),r.push(c);x=new S;T(c[2],c[4],4,x),centerRight=[],centerRight.push(c[4]),centerRight.push(x),centerRight.push(a[3]),centerRight=bzLine(centerRight),r.push(centerRight)}}else if(0!=o.length)if(2==o.length||3==o.length)r=getArrowPlot(o,!1,0,"useBSplieFit",this.headHeightFactor,this.headWidthFactor,this.neckHeightFactor,this.neckWidthFactor,this.tailWidthFactor);else if(4==o.length){var b=[];for(y=0;y<o.length-1;y++)b.push(o[y]);b=getArrowPlot(b,!1,0,"useBSplieFit",this.headHeightFactor,this.headWidthFactor,this.neckHeightFactor,this.neckWidthFactor,this.tailWidthFactor),num=b.length,num1=parseInt((num-5)/2);for(y=0;y<num1-1;y++)l[y]=b[y];for(y=num1;y<num1+5;y++)u[y-num1]=b[y];for(y=0;y<l.length;y++)r.push(l[y]);for(y=0;y<u.length;y++)r.push(u[y]);g=new S,v=new S;T(u[2],u[4],4,g),centerLeft=[],centerLeft.push(u[4]),centerLeft.push(g),centerLeft.push(o[3]),centerLeft=bzLine(centerLeft);for(y=0;y<centerLeft.length;y++)r.push(centerLeft[y])}var P=new M;for(y=0;y<r.length;y++)d.addPoint(r[y]);return P.addGeometry(d),[P]},u.prototype.getType=function(){return"multiarrowalgorithm"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多9个点用于绘制多箭头双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 9:return"完成绘制。";default:if(t<=8)return"单击绘制下一个点。"}},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,x,_,i,r,w,o,a,s){var l=t.extend2,b=(t.deepCopy,n.scalePoint,n.optionWay,n.pathLength);n.linePerpenPoints,n.bTypeline;vertex=n.vertex,angle=n.angle,bzLine=n.bzLine,gainPt=n.gainPt,distance=n.distance,calInterPoints=n.calInterPoints,calHollowArraowhead=n.calHollowArraowhead,calPathPerpenPoints=n.calPathPerpenPoints;function u(t){this.$type="SimpleArrowAlgorithm2,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this._inilization()}return l(u,e),u.prototype._inilization=function(){this.m_Ctrlpts=[];for(var t=0;t<3;t++)this.m_Ctrlpts[t]=new _;this.length=0},u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===(this.length=i)){var r=new x,o=new w;return r.addPoint(n[0]),r.addPoint(e),o.addGeometry(r),[o]}if(2===i&&null!=e){for(var a=0;a<2;a++)this.m_Ctrlpts[a].x=n[a].x,this.m_Ctrlpts[a].y=n[a].y;this.m_Ctrlpts[2].x=e.x,this.m_Ctrlpts[2].y=e.y}if(3===i)for(var s=0;s<3;s++)this.m_Ctrlpts[s].x=n[s].x,this.m_Ctrlpts[s].y=n[s].y;return this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e=0,n=[],i=new _,r=new _,o=new _,a=new _,s=new _,l=[],u=[],h=[],c=[],p=[];if((c=this.m_Ctrlpts)[2].x===c[1].x&&c[2].y===c[1].y&&((c=[])[0]=this.m_Ctrlpts[0],c[1]=this.m_Ctrlpts[2]),null!=c&&(h=calInterPoints(c,c.length,h),e=b(c),n=calHollowArraowhead(h[parseInt(5*h.length/6)],c[c.length-1],e/5,Math.PI/5,Math.PI/2,Math.PI/10),u[0]=n[0],l[0]=n[4],calPathPerpenPoints(c,0,e/5,s,i,!0),calPathPerpenPoints(c,0,e/5,s,r,!1),calPathPerpenPoints(c,4*e/7,e/20,s,o,!0),calPathPerpenPoints(c,4*e/7,e/20,s,a,!1)),u[1]=o,u[2]=i,l[1]=a,l[2]=r,l[0].x===l[1].x&&l[0].y===l[1].y||u[0].x===u[1].x&&u[0].y===u[1].y||l[1].x===l[2].x&&l[1].y===l[2].y||u[1].x===u[2].x&&u[1].y===u[2].y)return null;var f=new x,d=new w;p[0]=[],p[0][0]=i,p[0][1]=o,p[0][2]=o,p[0][3]=u[0],p[1]=[],p[1][0]=l[0],p[1][1]=a,p[1][2]=a,p[1][3]=r;var y=[],m=[],g=0;y=p[0],m=[],(m=bzLine(y))[0],g=m.length;for(var v=0;v<g;v++)f.addPoint(m[v]);g=n.length;for(v=0;v<g;v++)f.addPoint(n[v]);y=p[1],m=[],g=(m=bzLine(y)).length;for(v=0;v<g;v++)f.addPoint(m[v]);return d.addGeometry(f),[d]},u.prototype.getType=function(){return"simplearrowalgorithm"},u.prototype.getDescription=function(){return"在地图上绘制三个点用于绘制单箭头,在地图上点击绘制第一个点。"},u.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制第二个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(7),n(0),n(2),n(4),n(6),n(5),n,e,t],void 0===(r=function(t,e,n,i,f,d,r,o,a){function s(){this.$type="SlightnessArrowAlgorithm,http://www.Gs.com",t.call(this,{minCpt:2,maxCpt:2}),this._inilization()}var l=e.extend2,y=(e.deepCopy,i.scalePoint),m=(i.pathLength,i.vertex),g=i.distance;i.angle;return l(s,t),s.prototype._inilization=function(){this.p1=null,this.p2=null},s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;return 1===i?(this.p1=n[0],this.p2=e,this.getGraphParts(1)):2===i?(this.p1=n[0],this.p2=n[1],this.getGraphParts(1)):void 0},s.prototype.getGraphParts=function(t){var e=g(this.p1,this.p2)*t,n=y(this.p1,this.p2,.83),i=y(this.p1,this.p2,.9),r=m(this.p1,this.p2,this.p1,e/8,!0),o=m(this.p1,this.p2,this.p1,e/8,!1),a=m(this.p1,this.p2,n,e/15,!0),s=m(this.p1,this.p2,n,e/15,!1),l=m(this.p1,this.p2,i,e/65,!0),u=m(this.p1,this.p2,i,e/65,!1),h=[r,l,a,this.p2,s,u,o,r],c=new f;c.points=h;var p=new d;return p.addGeometry(c),[p]},s.prototype.getType=function(){return"slightnessarrowalgorithm"},s.prototype.getDescription=function(){return"在地图上绘制2个点用于绘制直箭头在地图上点击绘制第一个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"在地图上点击绘制最后一个点。";case 2:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(7),n(0),n(2),n(4),n(6),n(5),n(3),n(1),n,e,t],void 0===(r=function(t,e,l,n,w,b,u,P,i,r,o){function a(){this.$type="SwallowTailArrowAlgorithm,http://www.Gs.com",t.call(this,{minCpt:3,maxCpt:4}),this._inilization()}var s=e.extend2,S=(e.deepCopy,n.scalePoint,n.pathLength),C=(n.vertex,n.distance,n.bzLine),M=(n.gainPt,S=n.pathLength,n.calInterPoints),T=n.calHollowArraowhead,A=(n.computeIntervals,n.computePoint,n.blend,n.optionWay),E=n.calPathPerpenPoints;return s(a,t),a.prototype._inilization=function(){this.m_CtrlPts=[];for(var t=0;t<3;t++)this.m_CtrlPts[t]=new P;this.controlps=[],this.ArrPts=[],this.lPts=[],this.rPts=[],this.tPts=[]},a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(this.controlps=n,1!==(this.cou=i))return 2===i?(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,null!=e?(this.m_CtrlPts[1].x=(this.m_CtrlPts[0].x+e.x)/2,this.m_CtrlPts[1].y=(this.m_CtrlPts[0].y+e.y)/2,this.m_CtrlPts[2]=e):(this.m_CtrlPts[1].x=(this.m_CtrlPts[0].x+n[1].x)/2,this.m_CtrlPts[1].y=(this.m_CtrlPts[0].y+n[1].y)/2,this.m_CtrlPts[2]=n[1])):3===i&&(null==e?(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,this.m_CtrlPts[2]=n[2],this.m_CtrlPts[1]=new P({x:(this.m_CtrlPts[0].x+this.m_CtrlPts[2].x)/2,y:(this.m_CtrlPts[0].y+this.m_CtrlPts[2].y)/2})):(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,e.x===n[2].x&&e.y===n[2].y?(this.m_CtrlPts[1].x=(this.m_CtrlPts[0].x+e.x)/2,this.m_CtrlPts[1].y=(this.m_CtrlPts[0].y+e.y)/2):this.m_CtrlPts[1]=n[2],this.m_CtrlPts[2]=e)),4===i&&(n[3].x===n[2].x&&n[3].y===n[2].y?(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,this.m_CtrlPts[1].x=(this.m_CtrlPts[0].x+n[2].x)/2,this.m_CtrlPts[1].y=(this.m_CtrlPts[0].y+n[2].y)/2,this.m_CtrlPts[2]=n[2]):(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,this.m_CtrlPts[1]=n[2],this.m_CtrlPts[2]=n[3])),this.getGraphParts(1);var r=n[0],o=e,a=new l,s=new u;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]},a.prototype.getGraphParts=function(t){var e,n=new P,i=new P,r=new P,o=new P,a=new P,s=new P,l=[],u=new P,h=this.m_CtrlPts,c=[],p=this.controlps.length,f=0;(h[1].x!=h[2].x&&h[1].y!=h[2].y||(h[2].x=h[1].x+1,h[2].y=h[1].y+1),2===p?(this.ArrPts[0]=h[0],this.ArrPts[1]=h[2],f=S(this.ArrPts),c=M(this.ArrPts,2,c),l=T(c[parseInt(7*c.length/8)],h[2],f/3,Math.PI/5,Math.PI/2,Math.PI/10)):2<p&&(this.ArrPts[0]=h[1],this.ArrPts[1]=h[2],f=S(this.ArrPts),c=M(this.ArrPts,2,c),l=T(c[parseInt(7*c.length/8)],h[2],f/2.3,Math.PI/5,Math.PI/2,Math.PI/10)),f=S(h),c=M(h,3),i=this.controlps[0],n=1===p?new P({x:this.controlps[0].x+50,y:this.controlps[0].y+50}):this.controlps[1],E(h,f/3,f/25,u,r,!0),E(h,2*f/3,f/25,u,o,!0),E(h,f/3,f/25,u,a,!1),E(h,2*f/3,f/25,u,s,!1),A(n,i,l[2]))?(this.lPts[0]=n,this.lPts[1]=a,this.lPts[2]=s,this.lPts[3]=l[4],this.rPts[0]=l[0],this.rPts[1]=o,this.rPts[2]=r,this.rPts[3]=i,e=l[0],l[0]=l[4],l[4]=e,e=l[1],l[1]=l[3],l[3]=e):(this.lPts[0]=n,this.lPts[1]=r,this.lPts[2]=o,this.lPts[3]=l[0],this.rPts[0]=l[4],this.rPts[1]=s,this.rPts[2]=a,this.rPts[3]=i);u=c[parseInt(c.length/15)],this.tPts[0]=i,this.tPts[1]=u,this.tPts[2]=n;var d=this.lPts,y=C(d),m=l,g=this.rPts;bezierPoints3=C(g);var v=this.tPts,x=new w;x.addPoint(y),x.addPoint(m),x.addPoint(bezierPoints3),x.addPoint(v);var _=new b;return _.addGeometry(x),[_]},a.prototype.getType=function(){return"swallowtailarrowalgorithm"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少3个点最多4个点用于绘制燕尾箭头双击结束绘制在地图上点击绘制第一个点。"},a.prototype.getStepDes=function(t){switch(t){case 4:return"完成绘制。";default:if(t<=3)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(7),n(0),n(2),n(4),n(6),n(5),n(3),n(1),n,e,t],void 0===(r=function(t,e,_,n,i,r,w,b,o,a,s){function l(){this.$type="SwallowTailArrowAlgorithm2,http://www.Gs.com",t.call(this,{minCpt:3,maxCpt:4}),this._inilization()}var u=e.extend2,P=(e.deepCopy,n.scalePoint,n.pathLength),S=(n.vertex,n.distance,n.bzLine),C=(n.gainPt,P=n.pathLength,n.calInterPoints),M=n.calHollowArraowhead,T=(n.computeIntervals,n.computePoint,n.blend,n.optionWay),A=n.calPathPerpenPoints;return u(l,t),l.prototype._inilization=function(){this.m_CtrlPts=[];for(var t=0;t<3;t++)this.m_CtrlPts[t]=new b;this.controlps=[],this.ArrPts=[],this.lPts=[],this.rPts=[],this.tPts=[]},l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(this.controlps=n,1!==(this.cou=i))return 2===i?(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,null!=e?(this.m_CtrlPts[1].x=(this.m_CtrlPts[0].x+e.x)/2,this.m_CtrlPts[1].y=(this.m_CtrlPts[0].y+e.y)/2,this.m_CtrlPts[2]=e):(this.m_CtrlPts[1].x=(this.m_CtrlPts[0].x+n[1].x)/2,this.m_CtrlPts[1].y=(this.m_CtrlPts[0].y+n[1].y)/2,this.m_CtrlPts[2]=n[1])):3===i&&(null==e?(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,this.m_CtrlPts[2]=n[2],this.m_CtrlPts[1]=new b({x:(this.m_CtrlPts[0].x+this.m_CtrlPts[2].x)/2,y:(this.m_CtrlPts[0].y+this.m_CtrlPts[2].y)/2})):(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,e.x===n[2].x&&e.y===n[2].y?(this.m_CtrlPts[1].x=(this.m_CtrlPts[0].x+e.x)/2,this.m_CtrlPts[1].y=(this.m_CtrlPts[0].y+e.y)/2):this.m_CtrlPts[1]=n[2],this.m_CtrlPts[2]=e)),4===i&&(n[3].x===n[2].x&&n[3].y===n[2].y?(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,this.m_CtrlPts[1].x=(this.m_CtrlPts[0].x+n[2].x)/2,this.m_CtrlPts[1].y=(this.m_CtrlPts[0].y+n[2].y)/2,this.m_CtrlPts[2]=n[2]):(this.m_CtrlPts[0].x=(n[0].x+n[1].x)/2,this.m_CtrlPts[0].y=(n[0].y+n[1].y)/2,this.m_CtrlPts[1]=n[2],this.m_CtrlPts[2]=n[3])),this.getGraphParts(1);var r=n[0],o=e,a=new _,s=new w;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]},l.prototype.getGraphParts=function(t){var e,n=new b,i=new b,r=new b,o=new b,a=new b,s=new b,l=[],u=new b,h=this.m_CtrlPts,c=[],p=this.controlps.length,f=0;(h[1].x!=h[2].x&&h[1].y!=h[2].y||(h[2].x=h[1].x+1,h[2].y=h[1].y+1),2===p?(this.ArrPts[0]=h[0],this.ArrPts[1]=h[2],f=P(this.ArrPts),c=C(this.ArrPts,2,c),l=M(c[parseInt(7*c.length/8)],h[2],f/3,Math.PI/5,Math.PI/2,Math.PI/10)):2<p&&(this.ArrPts[0]=h[1],this.ArrPts[1]=h[2],f=P(this.ArrPts),c=C(this.ArrPts,2,c),l=M(c[parseInt(7*c.length/8)],h[2],f/2.3,Math.PI/5,Math.PI/2,Math.PI/10)),f=P(h),c=C(h,3),i=this.controlps[0],n=1===p?new b({x:this.controlps[0].x+50,y:this.controlps[0].y+50}):this.controlps[1],A(h,f/3,f/25,u,r,!0),A(h,2*f/3,f/25,u,o,!0),A(h,f/3,f/25,u,a,!1),A(h,2*f/3,f/25,u,s,!1),T(n,i,l[2]))?(this.lPts[0]=n,this.lPts[1]=a,this.lPts[2]=s,this.lPts[3]=l[4],this.rPts[0]=l[0],this.rPts[1]=o,this.rPts[2]=r,this.rPts[3]=i,e=l[0],l[0]=l[4],l[4]=e,e=l[1],l[1]=l[3],l[3]=e):(this.lPts[0]=n,this.lPts[1]=r,this.lPts[2]=o,this.lPts[3]=l[0],this.rPts[0]=l[4],this.rPts[1]=s,this.rPts[2]=a,this.rPts[3]=i);u=c[parseInt(c.length/15)],this.tPts[0]=i,this.tPts[1]=u,this.tPts[2]=n;var d=this.lPts,y=S(d),m=l,g=this.rPts;bezierPoints3=S(g);this.tPts;var v=new _;v.addPoint(y),v.addPoint(m),v.addPoint(bezierPoints3);var x=new w;return x.addGeometry(v),[x]},l.prototype.getType=function(){return"swallowtailarrowalgorithm"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少3个点最多4个点用于绘制燕尾箭头双击结束绘制在地图上点击绘制第一个点。"},l.prototype.getStepDes=function(t){switch(t){case 4:return"完成绘制。";default:if(t<=3)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,P,S,i,r,C,o,a,s){function l(t){this.$type="AerialCableAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,M=(t.deepCopy,n.scalePoint,n.vertex),T=n.midPoint,A=(n.angle,n.getThirdPoint),E=(n.bTypeline,n.gainPt1),I=n.pathLength,L=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new P,o=new C;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v;v=I(this.newPoints),e=E(this.newPoints,v,.45)[0],l=E(this.newPoints,v,.45)[1],n=E(this.newPoints,v,.5)[0],u=E(this.newPoints,v,.5)[1],i=T(e,n),h=L(e,n)/2;var x="left";n.x<e.x&&(x="right"),r=A(e,i,Math.PI/3,h,x),o=A(e,i,2*Math.PI/3,h,x);var _=!1;n.x<e.x&&(_=!0),a=M(r,o,r,h,!_),s=M(r,o,o,h,!_),p=new P,f=new P,d=new P,y=new P,m=new P,y.addPoint(r),y.addPoint(a),m.addPoint(o),m.addPoint(s),(g=new C).addGeometry(y),g.addGeometry(m);for(var w=0;w<=360;w++)c=2*Math.PI*w/360,p.addPoint(new S({x:i.x+h*Math.cos(c),y:i.y+h*Math.sin(c)}));g.addGeometry(p);for(var b=0;b<=l;b++)f.addPoint(this.newPoints[b]);for(f.addPoint(e),d.addPoint(n),b=u+1;b<this.newPoints.length;b++)d.addPoint(this.newPoints[b]);return g.addGeometry(f),g.addGeometry(d),[g,i]},l.prototype.getType=function(){return"aerialcable"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多30个点用于绘制架空电缆双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,I,L,i,r,R,o,a,s){function l(t){this.$type="AerialCable1Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,O=(t.deepCopy,n.scalePoint),N=n.vertex,k=n.midPoint,z=(n.angle,n.getThirdPoint),D=(n.bTypeline,n.gainPt1),F=n.pathLength,G=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new I,o=new R;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v;v=F(this.newPoints),e=D(this.newPoints,v,.45)[0],l=D(this.newPoints,v,.45)[1],n=D(this.newPoints,v,.5)[0],u=D(this.newPoints,v,.5)[1],i=k(e,n),h=G(e,n)/2;var x="left";n.x<e.x&&(x="right"),r=z(e,i,Math.PI/3,h,x),o=z(e,i,2*Math.PI/3,h,x);var _,w,b,P,S,C,M,T=!1;n.x<e.x&&(T=!0),a=N(r,o,r,h,!T),s=N(r,o,o,h,!T),p=new I,f=new I,d=new I,y=new I,m=new I,y.addPoint(r),y.addPoint(a),m.addPoint(o),m.addPoint(s),(g=new R).addGeometry(y),g.addGeometry(m);for(var A=0;A<=360;A++)c=2*Math.PI*A/360,p.addPoint(new L({x:i.x+h*Math.cos(c),y:i.y+h*Math.sin(c)}));g.addGeometry(p);for(var E=0;E<=l;E++)f.addPoint(this.newPoints[E]);for(f.addPoint(e),d.addPoint(n),E=u+1;E<this.newPoints.length;E++)d.addPoint(this.newPoints[E]);return g.addGeometry(f),g.addGeometry(d),_=O(e,n,.2),w=O(e,n,.6),b=O(e,n,.8),P=N(e,n,w,.2*h,!1),S=N(e,n,w,.2*h,!0),C=new I,M=new I,C.addPoint(P),C.addPoint(b),C.addPoint(S),M.addPoint(_),M.addPoint(b),g.addGeometry(C),g.addGeometry(M),[g]},l.prototype.getType=function(){return"aerialcable1"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多30个点用于绘制架空光缆双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,N,k,z,D,F,i,r,o){function a(t){this.$type="aerialcommunicationopenwire12Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.newPoints=[],this.p1=null,this.p2=null}var s=t.extend2,G=(t.deepCopy,n.scalePoint,n.vertex),j=n.midPoint,V=n.angle,q=(n.bzLine,n.bTypeline,n.gainPt1),B=n.pathLength,U=n.distance;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new N,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C;w=B(this.newPoints),_=new F;for(var M,T=new D,A=0;A<this.newPoints.length-1;A++){C=U(this.newPoints[A],this.newPoints[A+1]),y=V(this.newPoints[A],this.newPoints[A+1])*Math.PI/180,P=parseInt(C/5/5e4),a=this.newPoints[A].copy();for(var E=1;E<=P;E++){v=new N,M=new z,s=new k({x:a.x+18e4*Math.cos(y),y:a.y-18e4*Math.sin(y)}),v.addPoint(a.copy()),v.addPoint(s),_.addGeometry(v),a.x=a.x+25e4*Math.cos(y),a.y=a.y-25e4*Math.sin(y),e=j(a,s),0;for(var I=0;I<=100;I++)m=2*Math.PI*I/100,M.addPoint(new k({x:e.x+35e3*Math.cos(m),y:e.y+35e3*Math.sin(m)}));T.addGeometry(M)}x=new N,s=this.newPoints[A+1],x.addPoint(a),x.addPoint(s),_.addGeometry(x)}n=q(this.newPoints,w,.5)[0],b=q(this.newPoints,w,.5)[1],i=this.newPoints[b],r=this.newPoints[b+1],C=U(i,n);var L=U(i,r);if(y=V(i,n)*Math.PI/180,S=parseInt(C/5/5e4),P=parseInt(L/5/5e4),0<S)o=new k({x:i.x+5e4*(5*S-.7)*Math.cos(y),y:i.y-5e4*(5*S-.7)*Math.sin(y)});else if(0<P)o=new k({x:i.x+215e3*Math.cos(y),y:i.y-215e3*Math.sin(y)});else{o=n;var R=new z;for(I=0;I<=100;I++)m=2*Math.PI*I/100,R.addPoint(new k({x:o.x+35e3*Math.cos(m),y:o.y+35e3*Math.sin(m)}));T.addGeometry(R)}g=new N,x=new N;var O=!0;return r.x<i.x&&(O=!1),l=G(i,r,o,35e3,!O),u=G(i,r,o,.03*w,!O),h=G(o,u,u,.01*w,!0),c=G(u,h,h,.01*w,!1),p=G(u,h,h,.01*w,!0),f=G(h,c,c,.02*w,!0),d=G(h,p,p,.02*w,!1),g.addPoint(l),g.addPoint(u),g.addPoint(h),g.addPoint(c),g.addPoint(f),x.addPoint(h),x.addPoint(p),x.addPoint(d),_.addGeometry(g),_.addGeometry(x),[T,_,G(h,c,h,.01*w,!0)]},a.prototype.getType=function(){return"aerialcommunicationopenwire12"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制载波架空通信明线双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,b,P,S,C,M,i,r,o){function a(t){this.$type="AerialCommunicationOpenwire2Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.newPoints=[],this.p1=null,this.p2=null}var s=t.extend2,T=(t.deepCopy,n.scalePoint,n.vertex,n.midPoint),A=n.angle,E=(n.bzLine,n.bTypeline,n.gainPt1),I=n.pathLength,L=n.distance;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new b,o=new M;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v;f=I(this.newPoints),n=E(this.newPoints,f,.5)[0],d=E(this.newPoints,f,.5)[1],i=E(this.newPoints,f,.48)[0],r=E(this.newPoints,f,.52)[0],p=new M,v=new C;for(var x=0;x<this.newPoints.length-1;x++)if(x!==d){m=L(this.newPoints[x],this.newPoints[x+1]),s=A(this.newPoints[x],this.newPoints[x+1])*Math.PI/180,y=parseInt(m/5/5e4),o=this.newPoints[x].copy();for(var _=1;_<=y;_++){u=new b,g=new S,a=new P({x:o.x+18e4*Math.cos(s),y:o.y-18e4*Math.sin(s)}),u.addPoint(o.copy()),u.addPoint(a),p.addGeometry(u),o.x=o.x+25e4*Math.cos(s),o.y=o.y-25e4*Math.sin(s),e=T(o,a);for(var w=0;w<=100;w++)l=2*Math.PI*w/100,g.addPoint(new P({x:e.x+35e3*Math.cos(l),y:e.y+35e3*Math.sin(l)}));v.addGeometry(g)}h=new b,a=this.newPoints[x+1],h.addPoint(o),h.addPoint(a),p.addGeometry(h)}else{for(s=A(this.newPoints[x],this.newPoints[x+1])*Math.PI/180,m=L(this.newPoints[x],i),y=parseInt(m/5/5e4),o=this.newPoints[x].copy(),_=1;_<=y;_++){for(u=new b,g=new S,a=new P({x:o.x+18e4*Math.cos(s),y:o.y-18e4*Math.sin(s)}),u.addPoint(o.copy()),u.addPoint(a),p.addGeometry(u),o.x=o.x+25e4*Math.cos(s),o.y=o.y-25e4*Math.sin(s),e=T(o,a),w=0;w<=100;w++)l=2*Math.PI*w/100,g.addPoint(new P({x:e.x+35e3*Math.cos(l),y:e.y+35e3*Math.sin(l)}));v.addGeometry(g)}for(a=i,(h=new b).addPoint(o),h.addPoint(a),p.addGeometry(h),m=L(this.newPoints[x+1],r),y=parseInt(m/5/5e4),o=r.copy(),_=1;_<=y;_++){for(u=new b,g=new S,a=new P({x:o.x+18e4*Math.cos(s),y:o.y-18e4*Math.sin(s)}),u.addPoint(o.copy()),u.addPoint(a),p.addGeometry(u),o.x=o.x+25e4*Math.cos(s),o.y=o.y-25e4*Math.sin(s),e=T(o,a),w=0;w<=100;w++)l=2*Math.PI*w/100,g.addPoint(new P({x:e.x+35e3*Math.cos(l),y:e.y+35e3*Math.sin(l)}));v.addGeometry(g)}for(h=new b,a=this.newPoints[x+1],h.addPoint(o),h.addPoint(a),p.addGeometry(h),c=new b,w=0;w<=100;w++)l=2*Math.PI*w/100,c.addPoint(new P({x:n.x+.02*f*Math.cos(l),y:n.y+.02*f*Math.sin(l)}));p.addGeometry(c)}return[v,p,n]},a.prototype.getType=function(){return"aerialcommunicationopenwire2"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制通信架空明线双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(3),n,e,t],void 0===(r=function(t,e,n,m,g,v,i,r,o){function a(t){this.$type="AirDefenseLineCountyPropetyAlgorithm,http://www.Gs.com",this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var s=t.extend2,x=(t.deepCopy,n.distance),_=n.angle;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new m,o=new v;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||newPoints.push(n[a]);return newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l=new v,u=0,h=0,c=0,p=0;p<newPoints.length-1;p++){u=x(newPoints[p],newPoints[p+1]),h=parseInt(u/5/1e5),c=(c=_(newPoints[p],newPoints[p+1]))*Math.PI/180,i=newPoints[p].copy();for(var f=0;f<h;f++)e=new m,n=new m,r=new g,o=new g,a=new g,r.x=i.x+2e5*Math.cos(c),r.y=i.y-2e5*Math.sin(c),o.x=i.x+3e5*Math.cos(c),o.y=i.y-3e5*Math.sin(c),a.x=i.x+4e5*Math.cos(c),a.y=i.y-4e5*Math.sin(c),e.addPoint(new g({x:i.x,y:i.y})),e.addPoint(r),n.addPoint(o),n.addPoint(a),l.addGeometry(e),l.addGeometry(n),i.x=i.x+5e5*Math.cos(c),i.y=i.y-5e5*Math.sin(c);s=newPoints[p+1].copy();var d=x(i,s),y=parseInt(d/1e5);e=new m,n=new m,e.addPoint(i),y<2?e.addPoint(s):(r=new g({x:i.x+2e5*Math.cos(c),y:i.y-2e5*Math.sin(c)}),e.addPoint(r),3<=y&&(o=new g({x:i.x+3e5*Math.cos(c),y:i.y-3e5*Math.sin(c)}),n.addPoint(o),y<4?n.addPoint(s):(a=new g({x:i.x+4e5*Math.cos(c),y:i.y-4e5*Math.sin(c)}),n.addPoint(a)))),l.addGeometry(e),l.addGeometry(n)}return[l]},a.prototype.getType=function(){return"airdefenselinecountypropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制防空分界线县级区、街道双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(3),n,e,t],void 0===(r=function(t,e,n,b,P,S,i,r,o){function a(t){this.$type="AirDefenseLineDistrictPropetyAlgorithm,http://www.Gs.com",this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var s=t.extend2,C=(t.deepCopy,n.distance),M=n.angle;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new b,o=new S;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||newPoints.push(n[a]);return newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f,d=new S,y=0,m=0,g=0,v=0;v<newPoints.length-1;v++){y=C(newPoints[v],newPoints[v+1]),m=parseInt(y/9/1e5),g=(g=M(newPoints[v],newPoints[v+1]))*Math.PI/180,o=newPoints[v].copy();for(var x=0;x<m;x++)e=new b,n=new b,i=new b,r=new b,a=new P,s=new P,l=new P,u=new P,h=new P,c=new P,p=new P,a.x=o.x+2e5*Math.cos(g),a.y=o.y-2e5*Math.sin(g),s.x=o.x+3e5*Math.cos(g),s.y=o.y-3e5*Math.sin(g),l.x=o.x+4e5*Math.cos(g),l.y=o.y-4e5*Math.sin(g),u.x=o.x+5e5*Math.cos(g),u.y=o.y-5e5*Math.sin(g),h.x=o.x+6e5*Math.cos(g),h.y=o.y-6e5*Math.sin(g),c.x=o.x+7e5*Math.cos(g),c.y=o.y-7e5*Math.sin(g),p.x=o.x+8e5*Math.cos(g),p.y=o.y-8e5*Math.sin(g),e.addPoint(new P({x:o.x,y:o.y})),e.addPoint(a),n.addPoint(s),n.addPoint(l),i.addPoint(u),i.addPoint(h),r.addPoint(c),r.addPoint(p),d.addGeometry(e),d.addGeometry(n),d.addGeometry(i),d.addGeometry(r),o.x=o.x+9e5*Math.cos(g),o.y=o.y-9e5*Math.sin(g);f=newPoints[v+1];var _=C(o,f),w=parseInt(_/1e5);e=new b,n=new b,i=new b,r=new b,e.addPoint(o),w<2?e.addPoint(f):(a=new P({x:o.x+2e5*Math.cos(g),y:o.y-2e5*Math.sin(g)}),e.addPoint(a),3<=w&&(s=new P({x:o.x+3e5*Math.cos(g),y:o.y-3e5*Math.sin(g)}),n.addPoint(s),w<4?n.addPoint(f):(l=new P({x:o.x+4e5*Math.cos(g),y:o.y-4e5*Math.sin(g)}),n.addPoint(l),5<=w&&(u=new P({x:o.x+5e5*Math.cos(g),y:o.y-5e5*Math.sin(g)}),i.addPoint(u),w<6?i.addPoint(f):(h=new P({x:o.x+6e5*Math.cos(g),y:o.y-6e5*Math.sin(g)}),i.addPoint(h),7<=w&&(c=new P({x:o.x+7e5*Math.cos(g),y:o.y-7e5*Math.sin(g)}),r.addPoint(c),w<8?r.addPoint(f):(p=new P({x:o.x+8e5*Math.cos(g),y:o.y-8e5*Math.sin(g)}),r.addPoint(p)))))))),d.addGeometry(e),d.addGeometry(n),d.addGeometry(i),d.addGeometry(r)}return[d]},a.prototype.getType=function(){return"airdefenselinedistrictpropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制防空分界线省级市双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(3),n,e,t],void 0===(r=function(t,e,n,x,_,w,i,r,o){function a(t){this.$type="AirDefenseLineRegionPropetyAlgorithm,http://www.Gs.com",this.newPoints=null,this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var s=t.extend2,b=(t.deepCopy,n.distance),P=n.angle;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new x,o=new w;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c=new w,p=0,f=0,d=0,y=0;y<this.newPoints.length-1;y++){p=b(this.newPoints[y],this.newPoints[y+1]),f=parseInt(p/7/1e5),d=(d=P(this.newPoints[y],this.newPoints[y+1]))*Math.PI/180,r=this.newPoints[y].copy();for(var m=0;m<f;m++)e=new x,n=new x,i=new x,o=new _,a=new _,s=new _,l=new _,u=new _,o.x=r.x+2e5*Math.cos(d),o.y=r.y-2e5*Math.sin(d),a.x=r.x+3e5*Math.cos(d),a.y=r.y-3e5*Math.sin(d),s.x=r.x+4e5*Math.cos(d),s.y=r.y-4e5*Math.sin(d),l.x=r.x+5e5*Math.cos(d),l.y=r.y-5e5*Math.sin(d),u.x=r.x+6e5*Math.cos(d),u.y=r.y-6e5*Math.sin(d),e.addPoint(new _({x:r.x,y:r.y})),e.addPoint(o),n.addPoint(a),n.addPoint(s),i.addPoint(l),i.addPoint(u),c.addGeometry(e),c.addGeometry(n),c.addGeometry(i),r.x=r.x+7e5*Math.cos(d),r.y=r.y-7e5*Math.sin(d);h=this.newPoints[y+1].copy();var g=b(r,h),v=parseInt(g/1e5);e=new x,n=new x,i=new x,e.addPoint(r),v<2?e.addPoint(h):(o=new _({x:r.x+2e5*Math.cos(d),y:r.y-2e5*Math.sin(d)}),e.addPoint(o),3<=v&&(a=new _({x:r.x+3e5*Math.cos(d),y:r.y-3e5*Math.sin(d)}),n.addPoint(a),v<4?n.addPoint(h):(s=new _({x:r.x+4e5*Math.cos(d),y:r.y-4e5*Math.sin(d)}),n.addPoint(s),5<=v&&(l=new _({x:r.x+5e5*Math.cos(d),y:r.y-5e5*Math.sin(d)}),i.addPoint(l),v<6?i.addPoint(h):(u=new _({x:r.x+6e5*Math.cos(d),y:r.y-6e5*Math.sin(d)}),i.addPoint(u)))))),c.addGeometry(e),c.addGeometry(n),c.addGeometry(i)}return[c]},a.prototype.getType=function(){return"airdefenselineregionpropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制防空界线 地区地市级区双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(3),n,e,t],void 0===(r=function(t,e,n,b,P,S,i,r,o){function a(t){this.$type="AirDefenseLineResidentPropetyAlgorithm,http://www.Gs.com",this.newPoints=null,this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var s=t.extend2,C=(t.deepCopy,n.distance),M=n.angle;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new b,o=new S;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y=new S,m=new b,g=0,v=0,x=0,_=0;_<this.newPoints.length-1;_++){g=C(this.newPoints[_],this.newPoints[_+1]),v=parseInt(g/7/1e5),x=(x=M(this.newPoints[_],this.newPoints[_+1]))*Math.PI/180,r=this.newPoints[_].copy();for(var w=0;w<v;w++)e=new b,n=new b,i=new b,m=new b,o=new P,a=new P,s=new P,l=new P,u=new P,new P,new P,new P,new P,o.x=r.x+2e5*Math.cos(x),o.y=r.y-2e5*Math.sin(x),a.x=r.x+3e5*Math.cos(x),a.y=r.y-3e5*Math.sin(x),s.x=r.x+4e5*Math.cos(x),s.y=r.y-4e5*Math.sin(x),l.x=r.x+5e5*Math.cos(x),l.y=r.y-5e5*Math.sin(x),u.x=r.x+7e5*Math.cos(x),u.y=r.y-7e5*Math.sin(x),h=vertex(this.newPoints[_],this.newPoints[_+1],a,15e4,!1),c=vertex(this.newPoints[_],this.newPoints[_+1],a,15e4,!0),p=vertex(this.newPoints[_],this.newPoints[_+1],s,15e4,!1),f=vertex(this.newPoints[_],this.newPoints[_+1],s,15e4,!0),e.addPoint(new P({x:r.x,y:r.y})),e.addPoint(o),n.addPoint(h),n.addPoint(c),i.addPoint(p),i.addPoint(f),m.addPoint(l),m.addPoint(u),y.addGeometry(e),y.addGeometry(n),y.addGeometry(i),y.addGeometry(m),r.x=r.x+7e5*Math.cos(x),r.y=r.y-7e5*Math.sin(x);d=this.newPoints[_+1],m.addPoint(r),m.addPoint(d),y.addGeometry(m)}return[y]},a.prototype.getType=function(){return"airdefenselineresidentpropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制防空分界线 居民小区大型企事业单位双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(3),n,e,t],void 0===(r=function(t,e,n,M,T,A,i,r,o){function a(t){this.$type="AirDefenseLineStreetPropetyAlgorithm,http://www.Gs.com",this.newPoints=null,this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var s=t.extend2,E=(t.deepCopy,n.distance),I=n.angle;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new M,o=new A;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x=new A,_=new M,w=0,b=0,P=0,S=0;S<this.newPoints.length-1;S++){w=E(this.newPoints[S],this.newPoints[S+1]),b=parseInt(w/8/1e5),P=(P=I(this.newPoints[S],this.newPoints[S+1]))*Math.PI/180,o=this.newPoints[S].copy();for(var C=0;C<b;C++)e=new M,n=new M,i=new M,r=new M,_=new M,a=new T,s=new T,l=new T,u=new T,h=new T,c=new T,new T,new T,new T,new T,new T,new T,a.x=o.x+2e5*Math.cos(P),a.y=o.y-2e5*Math.sin(P),s.x=o.x+3e5*Math.cos(P),s.y=o.y-3e5*Math.sin(P),l.x=o.x+4e5*Math.cos(P),l.y=o.y-4e5*Math.sin(P),u.x=o.x+5e5*Math.cos(P),u.y=o.y-5e5*Math.sin(P),h.x=o.x+6e5*Math.cos(P),h.y=o.y-6e5*Math.sin(P),c.x=o.x+8e5*Math.cos(P),c.y=o.y-8e5*Math.sin(P),p=vertex(this.newPoints[S],this.newPoints[S+1],s,15e4,!1),f=vertex(this.newPoints[S],this.newPoints[S+1],s,15e4,!0),d=vertex(this.newPoints[S],this.newPoints[S+1],l,15e4,!1),y=vertex(this.newPoints[S],this.newPoints[S+1],l,15e4,!0),m=vertex(this.newPoints[S],this.newPoints[S+1],u,15e4,!1),g=vertex(this.newPoints[S],this.newPoints[S+1],u,15e4,!0),e.addPoint(new T({x:o.x,y:o.y})),e.addPoint(a),n.addPoint(p),n.addPoint(f),i.addPoint(d),i.addPoint(y),r.addPoint(m),r.addPoint(g),_.addPoint(h),_.addPoint(c),x.addGeometry(e),x.addGeometry(n),x.addGeometry(i),x.addGeometry(r),x.addGeometry(_),o.x=o.x+8e5*Math.cos(P),o.y=o.y-8e5*Math.sin(P);v=this.newPoints[S+1],_.addPoint(o),_.addPoint(v),x.addGeometry(_)}return[x]},a.prototype.getType=function(){return"airdefenselinestreetpropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制防空分界线 街道乡镇双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,g,i,v,x,_,r,o,a){function s(t){this.$type="AirDefendMarchPropety,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=[],this.p2=[],this.p3=[]}var l=t.extend2,w=t.deepCopy,b=n.scalePoint,P=n.pathLength,S=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),C=n.gainPt;n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new g,o=new _;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i=new _,r=new g,o=bzPoints.length,a=0;a<=o-1;a++)r.addPoint(bzPoints[a]);i.addGeometry(r);var s=P(bzPoints),l=s*t*4/60;pt1=C(bzPoints,s,.3)[0],pt2=C(bzPoints,s,.4)[0],pt3=C(bzPoints,s,.6)[0],pt4=C(bzPoints,s,.7)[0],ptV1Bottom=S(pt1,pt2,pt1,.3*l,!0),ptV1Top=S(pt1,pt2,pt1,.3*l,!1),ptV2Bottom=S(pt1,pt2,pt2,.3*l,!0),ptV2Top=S(pt1,pt2,pt2,.3*l,!1),ptV3Bottom=S(pt3,pt4,pt3,.3*l,!0),ptV3Top=S(pt3,pt4,pt3,.3*l,!1),ptV4Bottom=S(pt3,pt4,pt4,.3*l,!0),ptV4Top=S(pt3,pt4,pt4,.3*l,!1);var u=new g;u.addPoint(ptV1Bottom),u.addPoint(ptV2Bottom),i.addGeometry(u);var h=new g;h.addPoint(ptV3Bottom),h.addPoint(ptV4Bottom),i.addGeometry(h);var c=new g;c.addPoint(ptV1Top),c.addPoint(ptV2Top),i.addGeometry(c);var p=new g;p.addPoint(ptV3Top),p.addPoint(ptV4Top),i.addGeometry(p),pt5=C(bzPoints,s,12.7/13,void 0)[0];var f=w(bzPoints[o-1]);pt6=b(pt5,f,2.5);var d=new x;e=S(f,pt5,pt5,.3*l,!0),n=S(f,pt5,pt5,.3*l,!1);var y=[e,pt6,n,f,e],m=new v;return 0<m.points.length?m.points=y:m.addPoint(y),d.addGeometry(m),[d,i]},s.prototype.getType=function(){return"airdefendmarchpropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制防空兵行军纵队双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,N,k,z,D,F,i,r,o){function G(t){this.$type="ArmyRendezvousAreaPropety,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3})}var a=t.extend2,j=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine),V=(n.gainPt,n.distance),q=n.calLinePerpenPoints,B=n.optionWay;return a(G,e),G.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new k,o=new k,a=new k,s=new k,l=new k,u=new k,h=new k,c=new k,p=new k,f=0,d=0,y=0,m=[],g=new k;if(1==i){if(m[0]=n[0],null!=e)if(n[0].x==e.x&&n[0].y==e.y){var v=new k({x:e.x+10,y:e.y});m[1]=v}else m[1]=e;var x=new k;y=V(m[0],m[1]),q(m[0],m[1],y/2,y/2,g,x,!0),m[2]=x}else if(2==i){for(var _=0;_<i;_++)m[_]=n[_];if(null!=e)if(n[1].x==e.x&&n[1].y==e.y){v=new k({x:e.x,y:e.y});m[2]=v}else m[2]=e;else{x=new k;y=V(m[0],m[1]),q(m[0],m[1],y/2,y/2,g,x,!0),m[2]=x}}else if(3==i)for(_=0;_<i;_++)m[_]=n[_];var w=V(m[0],m[1])+1,b=V(m[1],m[2])+1,P=V(m[2],m[0])+1;w<b&&P<b?(g=m[0],m[0]=m[1],m[1]=m[2],m[2]=g):w<P&&b<P&&(g=m[1],m[1]=m[0],m[0]=m[2],m[2]=g),B(m[0],m[1],m[2]),f=(m[0].y-m[1].y)/(m[0].x-m[1].x+1),d=V(m[1],m[0])+1,m[0].y>m[1].y?f<0?G.calculatePoints(f,m[2],d/3,a,o):G.calculatePoints(f,m[2],d/3,o,a):f<0?G.calculatePoints(f,m[2],d/3,o,a):G.calculatePoints(f,m[2],d/3,a,o),f=(m[1].y-m[2].y)/(m[1].x-m[2].x+1),d=V(m[2],m[1])+1,m[1].y>m[2].y?f<0?G.calculatePoints(f,m[0],d/3,l,s):G.calculatePoints(f,m[0],d/3,s,l):f<0?G.calculatePoints(f,m[0],d/3,s,l):G.calculatePoints(f,m[0],d/3,l,s),f=(m[2].y-m[0].y)/(m[2].x-m[0].x+1),d=V(m[2],m[0])+1,m[2].y>m[0].y?f<0?G.calculatePoints(f,m[1],d/3,r,p):G.calculatePoints(f,m[1],d/3,p,r):f<0?G.calculatePoints(f,m[1],d/3,p,r):G.calculatePoints(f,m[1],d/3,r,p),h.x=(m[0].x+m[1].x)/2,h.y=(m[0].y+m[1].y)/2,f=(m[0].y-m[1].y)/(m[0].x-m[1].x+1),d=V(m[1],m[0])+1,m[0].y>m[1].y?f<0?G.calculatePoints(f,h,d/6,u,c):G.calculatePoints(f,h,d/6,c,u):f<0?G.calculatePoints(f,h,d/6,c,u):G.calculatePoints(f,h,d/6,u,c);var S=new Array;S[0]=m[0],S[1]=l,S[2]=u,S[3]=h;var C=new Array;C[0]=h,C[1]=c,C[2]=p,C[3]=m[1];var M=new Array;M[0]=m[1],M[1]=r,M[2]=o,M[3]=m[2];var T=new Array;T[0]=m[2],T[1]=a,T[2]=s,T[3]=m[0];var A=new N,E=new F,I=new z,L=new D,R=j(S),O=R.length;for(_=0;_<O;_++)A.addPoint(R[_]),I.addPoint(R[_]);for(O=(R=j(C)).length,_=0;_<O;_++)A.addPoint(R[_]),I.addPoint(R[_]);for(O=(R=j(M)).length,_=0;_<O;_++)A.addPoint(R[_]),I.addPoint(R[_]);for(O=(R=j(T)).length,_=0;_<O;_++)A.addPoint(R[_]),I.addPoint(R[_]);return E.addGeometry(A),L.addGeometry(I),[E,L.envelope().center()]},G.calculatePoints=function(t,e,n,i,r){var o=e.x,a=e.y,s=a-t*o,l=t*t+1,u=2*t*(s-a)-2*o,h=(s-a)*(s-a)+o*o-n*n;i.x=parseInt((-u-Math.sqrt(u*u-4*l*h))/(2*l)),r.x=parseInt((-u+Math.sqrt(u*u-4*l*h))/(2*l)),i.y=parseInt(t*i.x+s),r.y=parseInt(t*r.x+s)},G.prototype.getType=function(){return"armyrendezvousareapropety"},G.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制步兵集结地域双击结束绘制在地图上点击绘制第1个点。"},G.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},o.exports=G}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,M,i,T,A,E,r,o,a){function s(t){this.$type="ArtilleryMarchPropetyAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=[],this.p2=[],this.p3=[]}var l=t.extend2,I=t.deepCopy,L=n.scalePoint,R=n.pathLength,O=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),N=n.gainPt;n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new M,o=new E;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f=new E,d=new M,y=bzPoints.length,m=R(bzPoints),g=m*t/60,v=m*t*4/60;r=N(bzPoints,m,6/13)[0],n=N(bzPoints,m,6/13)[1],o=N(bzPoints,m,7/13)[0],i=N(bzPoints,m,7/13)[1],a=L(r,o,.75),s=O(r,o,r,g,!1),l=O(r,o,r,g,!0),u=O(r,o,a,g,!1),h=O(r,o,a,g,!0),d.addPoint(l),d.addPoint(h),d.addPoint(o),d.addPoint(u),d.addPoint(s),d.addPoint(l),f.addGeometry(d);for(var x=new M,_=new M,w=0;w<n;w++)x.addPoint(bzPoints[w]);for(x.addPoint(r),_.addPoint(o),w=i;w<bzPoints.length;w++)_.addPoint(bzPoints[w]);f.addGeometry(x),f.addGeometry(_),c=N(bzPoints,m,12.7/13)[0];var b=I(bzPoints[y-1]);p=L(c,b,2.5);var P=new A,S=[e=O(b,c,c,.3*v,!0),p,O(b,c,c,.3*v,!1),b,e],C=new T;return 0<C.points.length?C.points=S:C.addPoint(S),P.addGeometry(C),[P,f]},s.prototype.getType=function(){return"artillerymarchpropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制炮兵行军纵队双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(103),n(4),n(1),n(2),n(3),n,e,t],void 0===(r=function(t,n,e,i,y,m,r,o,a){function s(t){this.$type="BlockadeLineAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||2,e.maxCpt=e.maxCpt||10,n.call(this,e)}var l=t.extend2,g=e.pathLength,v=e.vertex,x=e.midPoint;return l(s,n),s.prototype.getGraphParts=function(t){for(var e=g(this.newPoints)*t/200,n=new y,i=new y,r=new m,o=0;o<this.newPoints.length-1;o++)if(this.newPoints[o].x!=this.newPoints[o+1].x){var a=v(this.newPoints[o],this.newPoints[o+1],this.newPoints[o],e,!0),s=v(this.newPoints[o],this.newPoints[o+1],this.newPoints[o],e,!1);n.addPoint(a),i.addPoint(s)}for(var l=0;l<=n.points.length/10-1;l++){var u=x(n.points[10*l],n.points[10*l+1]),h=v(n.points[10*l],n.points[10*l+1],u,e,!0),c=new y;c.addPoint(u),c.addPoint(h),r.addGeometry(c);var p=x(i.points[10*l],i.points[10*l+1]),f=v(i.points[10*l],i.points[10*l+1],p,e,!1),d=new y;d.addPoint(p),d.addPoint(f),r.addGeometry(d)}return r.addGeometry(n),r.addGeometry(i),[r]},s.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制障碍物双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,k,i,z,D,F,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,G=t.deepCopy,j=n.scalePoint,V=n.pathLength,q=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),B=n.gainPt,U=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new k,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new k,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new F;m.addGeometry(f);var g=V(bzPoints),v=g*t*4/210;n=B(bzPoints,g,1/31,void 0)[0],e=G(bzPoints[0]);var x=U(e,n);pline4=B(bzPoints,g,12.7/13,void 0)[0];var _=G(bzPoints[bzPoints.length-1]);pline6=j(pline4,_,2.5),s=q(n,e,e,.75*x,!1),u=q(n,e,e,.75*x,!0),l=q(e,s,s,3*x,!0),h=q(e,u,u,3*x,!1);var w=new k;w.addPoint(s),w.addPoint(l),w.addPoint(h),w.addPoint(u),w.addPoint(s),m.addGeometry(w);var b=j(s,u,.25),P=j(s,u,.75);i=q(s,b,b,.3*3*x,!1),o=q(s,b,b,1.5*x,!1),c=q(s,P,P,.3*3*x,!1),r=q(s,b,b,.7*3*x,!1),a=q(s,P,P,1.5*x,!1),p=q(s,P,P,.7*3*x,!1);var S=new k;S.addPoint(i),S.addPoint(r),m.addGeometry(S);var C=new k;C.addPoint(p),C.addPoint(c),m.addGeometry(C);var M=new k;if(M.addPoint(o),M.addPoint(a),m.addGeometry(M),bzPoints[0].x<=bzPoints[1].x)var T=q(e,n,n,1.5*x,!0);else T=q(e,n,n,1.5*x,!1);var A,E,I,L,R=new D;A=q(_,pline4,pline4,1*v,!0),E=q(_,pline4,pline4,1*v,!1),I=pline6,L=_;var O=new z,N=[A,I,E,L,A];return 0<O.points.length?O.points=N:O.addPoint(N),R.addGeometry(O),[R,m,T]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制桥梁抢修专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,N,k,i,r,z,o,a,s){function l(t){this.$type="ChongMarchControlPropety,http://www.Gs.com",this.newPoints=null,this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var u=t.extend2,D=n.vertex,F=n.midPoint,G=n.angle,j=n.scalePoint;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new N,o=new z;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c=this.newPoints.length,p=new z;u=new N;for(var f=0;f<c-1;f++){a=new N,s=new N,l=new N,e=D(this.newPoints[f],this.newPoints[f+1],this.newPoints[f],5e4,!1),n=D(this.newPoints[f],this.newPoints[f+1],this.newPoints[f],5e4,!0),a.addPoint(e),a.addPoint(n),p.addGeometry(a),o=F(this.newPoints[f],this.newPoints[f+1]),h=G(this.newPoints[f],this.newPoints[f+1])*Math.PI/180;var d=o.x-5e4*Math.cos(h),y=o.y+5e4*Math.sin(h),m=o.x+5e4*Math.cos(h),g=o.y-5e4*Math.sin(h);i=new k({x:d,y:y}),r=new k({x:m,y:g}),s.addPoint(this.newPoints[f]),s.addPoint(i),p.addGeometry(s),l.addPoint(r),l.addPoint(this.newPoints[f+1]),p.addGeometry(l);m<d&&(i=new k({x:m,y:g}),r=new k({x:d,y:y}));var v,x,_,w,b,P,S,C,M,T,A,E,I=new N,L=new N,R=new N,O=new N;v=j(i,r,.2),x=j(i,r,.4),w=j(i,r,.5),b=j(i,r,.9),A=F(w,b),_=D(i,r,v,5e4/3,!0),P=D(i,r,w,5e4/3,!1),S=D(i,r,b,5e4/3,!1),C=D(i,r,A,6e4,!1),M=D(i,r,A,8e4,!0),T=j(S,P,1.4),E=D(i,r,v,5e4/3,!1),I.addPoint(_),I.addPoint(x),L.addPoint(w),L.addPoint(b),L.addPoint(S),L.addPoint(P),L.addPoint(w),R.addPoint(T),R.addPoint(E),O.addPoint(C),O.addPoint(M),p.addGeometry(I),p.addGeometry(L),p.addGeometry(R),p.addGeometry(O)}return e=D(this.newPoints[f-1],this.newPoints[f],this.newPoints[f],5e4,!1),n=D(this.newPoints[f-1],this.newPoints[f],this.newPoints[f],5e4,!0),u.addPoint(e),u.addPoint(n),p.addGeometry(u),[p]},l.prototype.getType=function(){return"chongmarchcontrolpropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制部队行动控制线(冲击线)双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,O,N,i,r,k,o,a,s){function l(t){this.$type="ChuMarchControlPropety,http://www.Gs.com",this.newPoints=null,this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var u=t.extend2,z=n.vertex,D=n.midPoint,F=n.angle,G=n.scalePoint;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new O,o=new k;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c=this.newPoints.length,p=new k;u=new O;for(var f=0;f<c-1;f++){a=new O,s=new O,l=new O,e=z(this.newPoints[f],this.newPoints[f+1],this.newPoints[f],5e4,!1),n=z(this.newPoints[f],this.newPoints[f+1],this.newPoints[f],5e4,!0),a.addPoint(e),a.addPoint(n),p.addGeometry(a),o=D(this.newPoints[f],this.newPoints[f+1]),h=F(this.newPoints[f],this.newPoints[f+1])*Math.PI/180;var d=o.x-5e4*Math.cos(h),y=o.y+5e4*Math.sin(h),m=o.x+5e4*Math.cos(h),g=o.y-5e4*Math.sin(h);i=new N({x:d,y:y}),r=new N({x:m,y:g}),s.addPoint(this.newPoints[f]),s.addPoint(i),p.addGeometry(s),l.addPoint(r),l.addPoint(this.newPoints[f+1]),p.addGeometry(l);var v=!0;m<d&&(v=!1);var x,_,w,b,P,S,C,M,T,A,E,I=new O,L=new O,R=new O;x=G(i,r,.2),_=G(i,r,.8),w=G(i,r,.5),b=z(i,r,w,5e4,!v),P=z(i,r,w,4e4,v),S=z(i,r,x,5e4,v),C=z(i,r,_,5e4,v),M=z(i,r,x,2e4,v),T=z(i,r,_,2e4,v),A=z(i,r,x,3e4,!v),E=z(i,r,_,3e4,!v),I.addPoint(b),I.addPoint(P),L.addPoint(A),L.addPoint(x),L.addPoint(_),L.addPoint(E),R.addPoint(M),R.addPoint(S),R.addPoint(C),R.addPoint(T),p.addGeometry(I),p.addGeometry(L),p.addGeometry(R)}return e=z(this.newPoints[f-1],this.newPoints[f],this.newPoints[f],5e4,!1),n=z(this.newPoints[f-1],this.newPoints[f],this.newPoints[f],5e4,!0),u.addPoint(e),u.addPoint(n),p.addGeometry(u),[p]},l.prototype.getType=function(){return"chumarchcontrolpropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制部队行动控制线(出发线)双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,L,R,O,N,k,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,z=t.deepCopy,D=n.scalePoint,F=n.pathLength,G=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),j=n.gainPt,V=n.distance,q=n.getPolarPointOfCenterPoint,B=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new L,o=new k;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a=new L,s=bzPoints.length,l=0;l<=s-1;l++)a.addPoint(bzPoints[l]);var u=new k;u.addGeometry(a);var h=F(bzPoints),c=h*t*4/210;n=j(bzPoints,h,1/31,void 0)[0],e=z(bzPoints[0]);var p=V(e,n);pline4=j(bzPoints,h,12.7/13,void 0)[0];var f=z(bzPoints[bzPoints.length-1]);pline6=D(pline4,f,2.5),i=G(n,e,e,.75*p,!1),r=G(n,e,e,.75*p,!0);var d=new L,y=D(i,r,.3),m=(D(i,r,.7),D(i,r,.5));o=G(i,y,m,1.5*p,!1);var g=.75*p,v=1.5*p,x=B(o,e);for(l=0;l<=360;l++){var _=new R({x:o.x+v*Math.cos(l*Math.PI/180),y:o.y-g*Math.sin(l*Math.PI/180)}),w=B(o,_),b=V(o,_);d.addPoint(q(o,x+w,b))}u.addGeometry(d);var P,S,C,M,T=G(i,m,m,1.5*p,!1),A=new N;P=G(f,pline4,pline4,1*c,!0),S=G(f,pline4,pline4,1*c,!1),C=pline6,M=f;var E=new O,I=[P,C,S,M,P];return 0<E.points.length?E.points=I:E.addPoint(I),A.addGeometry(E),[A,u,T]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制人防专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,C,i,M,T,A,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,E=t.deepCopy,I=n.scalePoint,L=n.pathLength,R=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),O=n.gainPt,N=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new C,o=new A;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new C,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new A;h.addGeometry(s);var c=L(bzPoints),p=c*t*4/210;n=O(bzPoints,c,1/31,void 0)[0],e=E(bzPoints[0]);var f=N(e,n);pline4=O(bzPoints,c,12.7/13,void 0)[0];var d=E(bzPoints[bzPoints.length-1]);pline6=I(pline4,d,2.5),i=R(n,e,e,.75*f,!1),o=R(n,e,e,.75*f,!0),r=R(e,i,i,3*f,!0),a=R(e,o,o,3*f,!1);var y=new C;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m,g,v,x,_=I(i,o,.5),w=R(i,_,_,1.5*f,!1),b=new T;m=R(d,pline4,pline4,1*p,!0),g=R(d,pline4,pline4,1*p,!1),v=pline6,x=d;var P=new M,S=[m,v,g,x,m];return 0<P.points.length?P.points=S:P.addPoint(S),b.addGeometry(P),[b,h,w]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制人防专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,y,m,g,v,x,i,r,o){function a(t){this.$type="CoaxialCableAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var s=t.extend2,_=(t.deepCopy,n.scalePoint,n.vertex,n.midPoint),w=(n.angle,n.bzLine,n.bTypeline,n.gainPt1),b=n.pathLength,P=n.distance;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new y,o=new x;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u;u=b(this.newPoints),p1=w(this.newPoints,u,.45)[0],e=w(this.newPoints,u,.45)[1],p2=w(this.newPoints,u,.5)[0],n=w(this.newPoints,u,.5)[1],p3=_(p1,p2),i=P(p1,p2)/2,o=new y,a=new y,s=new y,l=new x;for(var h=0;h<=360;h++)r=2*Math.PI*h/360,o.addPoint(new m({x:p3.x+i*Math.cos(r),y:p3.y+i*Math.sin(r)}));l.addGeometry(o);var c=i/5,p=new g,f=new v;for(h=0;h<=360;h++)r=2*Math.PI*h/360,p.addPoint(new m({x:p3.x+c*Math.cos(r),y:p3.y+c*Math.sin(r)}));f.addGeometry(p);for(var d=0;d<=e;d++)a.addPoint(this.newPoints[d]);for(a.addPoint(p1),s.addPoint(p2),d=n+1;d<this.newPoints.length;d++)s.addPoint(this.newPoints[d]);return l.addGeometry(a),l.addGeometry(s),[f,l]},a.prototype.getType=function(){return"coaxialcable"},a.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多30个点用于绘制同轴通信电缆双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,z,D,F,G,j,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,V=t.deepCopy,q=n.scalePoint,B=n.pathLength,U=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),W=n.gainPt,Z=n.distance,X=n.getPolarPointOfCenterPoint,H=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new z,o=new j;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a=new z,s=bzPoints.length,l=0;l<=s-1;l++)a.addPoint(bzPoints[l]);var u=new j;u.addGeometry(a);var h=B(bzPoints),c=h*t*4/210;n=W(bzPoints,h,1/31,void 0)[0],e=V(bzPoints[0]);var p=Z(e,n);pline4=W(bzPoints,h,12.7/13,void 0)[0];var f=V(bzPoints[bzPoints.length-1]);pline6=q(pline4,f,2.5),i=U(n,e,e,.75*p,!1),r=U(n,e,e,.75*p,!0);var d=new z,y=q(i,r,.3),m=q(i,r,.7),g=q(i,r,.5);o=U(i,y,g,1.5*p,!1);var v=.75*p,x=1.5*p,_=H(o,e);for(l=0;l<=360;l++){var w=new D({x:o.x+x*Math.cos(l*Math.PI/180),y:o.y-v*Math.sin(l*Math.PI/180)}),b=H(o,w),P=Z(o,w);d.addPoint(X(o,_+b,P))}u.addGeometry(d);var S=U(i,m,y,2.25*p,!1),C=U(i,y,m,.55*3*p,!1),M=U(i,m,y,1.35*p,!1),T=U(i,y,m,.75*p,!1),A=new z;A.addPoint(S),A.addPoint(C),A.addPoint(M),A.addPoint(T),u.addGeometry(A);var E,I,L,R,O=new G;E=U(f,pline4,pline4,1*c,!0),I=U(f,pline4,pline4,1*c,!1),L=pline6,R=f;var N=new F,k=[E,L,I,R,E];return 0<N.points.length?N.points=k:N.addPoint(k),O.addGeometry(N),[O,u]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制通信专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,I,i,L,R,O,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,N=t.deepCopy,k=n.scalePoint,z=n.pathLength,D=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),F=n.gainPt,G=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new I,o=new O;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new I,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new O;h.addGeometry(s);var c=z(bzPoints),p=c*t*4/210;n=F(bzPoints,c,1/31,void 0)[0],e=N(bzPoints[0]);var f=G(e,n);pline4=F(bzPoints,c,12.7/13,void 0)[0];var d=N(bzPoints[bzPoints.length-1]);pline6=k(pline4,d,2.5),i=D(n,e,e,.75*f,!1),o=D(n,e,e,.75*f,!0),r=D(e,i,i,3*f,!0),a=D(e,o,o,3*f,!1);var y=new I;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=k(i,o,.2),g=k(i,o,.8),v=D(i,g,m,2.46*f,!1),x=D(i,m,g,.55*3*f,!1),_=D(i,g,m,1.35*f,!1),w=D(i,m,g,.54*f,!1),b=new I;b.addPoint(v),b.addPoint(x),b.addPoint(_),b.addPoint(w),h.addGeometry(b);var P,S,C,M,T=new R;P=D(d,pline4,pline4,1*p,!0),S=D(d,pline4,pline4,1*p,!1),C=pline6,M=d;var A=new L,E=[P,C,S,M,P];return 0<A.points.length?A.points=E:A.addPoint(E),T.addGeometry(A),[T,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制通信专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,g,v,i,r,x,o,a,s){function l(t){this.$type="CoveredWireLine2Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,_=(t.deepCopy,n.getThirdPoint),w=(n.vertex,n.midPoint),b=n.angle,P=(n.bzLine,n.bTypeline,n.gainPt1,n.pathLength,n.distance);return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new g,o=new x;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f;c=new x;for(var d=0;d<this.newPoints.length-1;d++){f=P(this.newPoints[d],this.newPoints[d+1]),a=b(this.newPoints[d],this.newPoints[d+1])*Math.PI/180,p=parseInt(f/2/1e5),i=this.newPoints[d].copy();for(var y=0;y<p;y++){for(l=new g,pe=new v({x:i.x+2e5*Math.cos(a),y:i.y-2e5*Math.sin(a)}),pm=w(i,pe),o=y%2,m=0;m<=50;m++){s=2*Math.PI*m/100+o*Math.PI;pm.x<i.x&&(way="right"),r=_(i,pm,s,1e5,"left"),l.addPoint(r)}c.addGeometry(l),i.x=i.x+2e5*Math.cos(a),i.y=i.y-2e5*Math.sin(a)}u=new g,pe=this.newPoints[d+1],u.addPoint(i),u.addPoint(pe),c.addGeometry(u)}n=new v({x:(e=i).x-2e5*Math.cos(a),y:i.y+2e5*Math.sin(a)}),pm=w(e,n),h=new g;for(var m=0;m<=100;m++)s=2*Math.PI*m/100,h.addPoint(new v({x:pm.x+1e5*Math.cos(s),y:pm.y+1e5*Math.sin(s)}));return c.addGeometry(h),[c,pm]},l.prototype.getType=function(){return"coveredwireline2"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制被覆线线路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,_,w,i,r,b,o,a,s){function l(t){this.$type="CoveredWireLine3Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,P=(t.deepCopy,n.getThirdPoint),S=n.vertex,C=n.midPoint,M=n.angle,T=(n.bzLine,n.bTypeline,n.gainPt1,n.pathLength,n.distance);return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new _,o=new b;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,c,p,f,d,y,m;d=new b;for(var g=0;g<this.newPoints.length-1;g++){m=T(this.newPoints[g],this.newPoints[g+1]),l=M(this.newPoints[g],this.newPoints[g+1])*Math.PI/180,y=parseInt(m/2/1e5),o=this.newPoints[g].copy();for(var v=0;v<y;v++){for(c=new _,pe=new w({x:o.x+2e5*Math.cos(l),y:o.y-2e5*Math.sin(l)}),pm=C(o,pe),s=v%2,h=0;h<=50;h++){u=2*Math.PI*h/100+s*Math.PI;pm.x<o.x&&(x="right"),a=P(o,pm,u,1e5,"left"),c.addPoint(a)}d.addGeometry(c),o.x=o.x+2e5*Math.cos(l),o.y=o.y-2e5*Math.sin(l)}p=new _,pe=this.newPoints[g+1],p.addPoint(o),p.addPoint(pe),d.addGeometry(p)}n=new w({x:(e=o).x-2e5*Math.cos(l),y:o.y+2e5*Math.sin(l)}),f=new _;var x=!1;return(v-1)%2&&(x=!0),i=S(n,e,n,2e5,x),r=S(n,e,e,2e5,x),f.addPoint(n),f.addPoint(i),f.addPoint(r),f.addPoint(e),d.addGeometry(f),[d,S(n,e,C(n,e),1e5,x)]},l.prototype.getType=function(){return"coveredwireline3"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制载波被覆线线路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,y,m,i,r,g,o,a,s){function l(t){this.$type="DeliveryWayPropetyAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}var u=t.extend2,v=(t.deepCopy,n.scalePoint,n.vertex,n.midPoint),h=(n.angle,n.bzLine,n.bTypeline),x=n.gainPt,_=n.pathLength,w=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new y,o=new g;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p;p=_(bzPoints),e=x(bzPoints,p,6/13)[0],r=x(bzPoints,p,6/13)[1],n=x(bzPoints,p,7/13)[0],o=x(bzPoints,p,7/13)[1],i=v(e,n),a=w(e,n)/2,l=new y,u=new y,h=new y,c=new g;for(var f=0;f<=360;f++)s=2*Math.PI*f/360,l.addPoint(new m({x:i.x+a*Math.cos(s),y:i.y+a*Math.sin(s)}));c.addGeometry(l);for(var d=0;d<r;d++)u.addPoint(bzPoints[d]);for(u.addPoint(e),h.addPoint(n),d=o;d<bzPoints.length;d++)h.addPoint(bzPoints[d]);return c.addGeometry(u),c.addGeometry(h),[c,i]},l.prototype.getType=function(){return"deliverywaypropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多3个点用于绘制载波被覆线线路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,J,Q,i,r,$,o,a,s){function l(t){this.$type="DiaoMarchControlPropety,http://www.Gs.com",this.newPoints=null,this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var u=t.extend2,tt=n.vertex,et=n.midPoint,nt=n.angle,it=n.scalePoint;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new J,o=new $;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c=this.newPoints.length,p=new $;u=new J;for(var f=0;f<c-1;f++){a=new J,s=new J,l=new J,e=tt(this.newPoints[f],this.newPoints[f+1],this.newPoints[f],5e4,!1),n=tt(this.newPoints[f],this.newPoints[f+1],this.newPoints[f],5e4,!0),a.addPoint(e),a.addPoint(n),p.addGeometry(a),o=et(this.newPoints[f],this.newPoints[f+1]),h=nt(this.newPoints[f],this.newPoints[f+1])*Math.PI/180;var d=o.x-5e4*Math.cos(h),y=o.y+5e4*Math.sin(h),m=o.x+5e4*Math.cos(h),g=o.y-5e4*Math.sin(h);i=new Q({x:d,y:y}),r=new Q({x:m,y:g}),s.addPoint(this.newPoints[f]),s.addPoint(i),p.addGeometry(s),l.addPoint(r),l.addPoint(this.newPoints[f+1]),p.addGeometry(l);m<d&&(i=new Q({x:m,y:g}),r=new Q({x:d,y:y}));var v,x,_,w,b,P,S,C,M,T,A,E,I,L,R,O,N,k,z,D,F,G,j,V,q,B,U=new J,W=new J,Z=new J,X=new J,H=new J,Y=new J,K=new J;v=it(i,r,.1),x=it(i,r,.2),_=it(i,r,.3),w=it(i,r,.4),b=tt(i,r,_,45e3,!0),P=tt(i,r,w,35e3,!0),S=tt(i,r,x,4e4,!1),C=tt(i,r,_,25e3,!1),U.addPoint(S),U.addPoint(C),W.addPoint(v),W.addPoint(_),W.addPoint(b),W.addPoint(P),p.addGeometry(U),p.addGeometry(W),M=it(i,r,.5),E=it(i,r,.9),T=tt(i,r,w,6e4,!0),A=tt(i,r,M,6e4,!1),I=tt(i,r,E,6e4,!1),L=tt(i,r,E,6e4,!0),Z.addPoint(T),Z.addPoint(A),Z.addPoint(I),Z.addPoint(L),p.addGeometry(Z),R=it(M,E,.2),O=it(M,E,.8),N=it(M,E,.5),k=tt(i,r,R,2e4,!1),z=tt(i,r,O,2e4,!1),D=tt(i,r,N,4e4,!1),X.addPoint(R),X.addPoint(O),H.addPoint(k),H.addPoint(z),Y.addPoint(N),Y.addPoint(D),p.addGeometry(X),p.addGeometry(H),p.addGeometry(Y),F=it(M,E,.3),G=it(M,E,.7),j=tt(i,r,F,2e4,!0),V=tt(i,r,G,2e4,!0),q=tt(i,r,G,4e4,!0),B=tt(i,r,F,4e4,!0),K.addPoint(j),K.addPoint(V),K.addPoint(q),K.addPoint(B),K.addPoint(j),p.addGeometry(K)}return e=tt(this.newPoints[f-1],this.newPoints[f],this.newPoints[f],5e4,!1),n=tt(this.newPoints[f-1],this.newPoints[f],this.newPoints[f],5e4,!0),u.addPoint(e),u.addPoint(n),p.addGeometry(u),[p]},l.prototype.getType=function(){return"diaomarchcontrolpropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制部队行动控制线调整线双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,L,i,R,O,N,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,k=t.deepCopy,z=n.scalePoint,D=n.pathLength,F=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),G=n.gainPt,j=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new L,o=new N;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new L,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new N;h.addGeometry(s);var c=D(bzPoints),p=c*t*4/210;n=G(bzPoints,c,1/31,void 0)[0],e=k(bzPoints[0]);var f=j(e,n);pline4=G(bzPoints,c,12.7/13,void 0)[0];var d=k(bzPoints[bzPoints.length-1]);pline6=z(pline4,d,2.5),i=F(n,e,e,.75*f,!1),o=F(n,e,e,.75*f,!0),r=F(e,i,i,3*f,!0),a=F(e,o,o,3*f,!1);var y=new L;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=z(i,o,.3),g=z(i,o,.7);if(bzPoints[0].x<=bzPoints[1].x)var v=F(i,m,g,.7*3*f,!1),x=F(i,g,m,.6*3*f,!1),_=F(i,m,g,1.5*f,!1),w=F(i,g,m,.4*3*f,!1),b=F(i,m,g,.3*3*f,!1);else v=F(i,m,m,.7*3*f,!1),x=F(i,g,g,.6*3*f,!1),_=F(i,m,m,1.5*f,!1),w=F(i,g,g,.4*3*f,!1),b=F(i,m,m,.3*3*f,!1);var P=new L;P.addPoint(v),P.addPoint(x),P.addPoint(_),P.addPoint(w),P.addPoint(b),h.addGeometry(P);var S,C,M,T,A=new O;S=F(d,pline4,pline4,1*p,!0),C=F(d,pline4,pline4,1*p,!1),M=pline6,T=d;var E=new R,I=[S,M,C,T,S];return 0<E.points.length?E.points=I:E.addPoint(I),A.addGeometry(E),[A,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制伪装专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,D,F,G,j,V,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,q=t.deepCopy,B=n.scalePoint,U=n.pathLength,W=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),Z=n.gainPt,X=n.distance,H=n.getPolarPointOfCenterPoint,Y=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new D,o=new V;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a=new D,s=bzPoints.length,l=0;l<=s-1;l++)a.addPoint(bzPoints[l]);var u=new V;u.addGeometry(a);var h=U(bzPoints),c=h*t*4/210;n=Z(bzPoints,h,1/31,void 0)[0],e=q(bzPoints[0]);var p=X(e,n);pline4=Z(bzPoints,h,12.7/13,void 0)[0];var f=q(bzPoints[bzPoints.length-1]);pline6=B(pline4,f,2.5),i=W(n,e,e,.75*p,!1),r=W(n,e,e,.75*p,!0);var d=new D,y=B(i,r,.3),m=B(i,r,.7),g=B(i,r,.5);o=W(i,y,g,1.5*p,!1);var v=.75*p,x=1.5*p,_=Y(o,e);for(l=0;l<=360;l++){var w=new F({x:o.x+x*Math.cos(l*Math.PI/180),y:o.y-v*Math.sin(l*Math.PI/180)}),b=Y(o,w),P=X(o,w);d.addPoint(H(o,_+b,P))}if(u.addGeometry(d),bzPoints[0].x<=bzPoints[1].x)var S=W(i,y,m,.7*3*p,!1),C=W(i,m,y,.6*3*p,!1),M=W(i,y,m,1.5*p,!1),T=W(i,m,y,.4*3*p,!1),A=W(i,y,m,.3*3*p,!1);else S=W(i,y,y,.7*3*p,!1),C=W(i,m,m,.6*3*p,!1),M=W(i,y,y,1.5*p,!1),T=W(i,m,m,.4*3*p,!1),A=W(i,y,y,.3*3*p,!1);var E=new D;E.addPoint(S),E.addPoint(C),E.addPoint(M),E.addPoint(T),E.addPoint(A),u.addGeometry(E);var I,L,R,O,N=new j;I=W(f,pline4,pline4,1*c,!0),L=W(f,pline4,pline4,1*c,!1),R=pline6,O=f;var k=new G,z=[I,R,L,O,I];return 0<k.points.length?k.points=z:k.addPoint(z),N.addGeometry(k),[N,u]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制伪装专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,k,i,z,D,F,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,G=t.deepCopy,j=n.scalePoint,V=n.pathLength,q=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),B=n.gainPt,U=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new k,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new k,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new F;m.addGeometry(f);var g=V(bzPoints),v=g*t*4/210;n=B(bzPoints,g,1/31,void 0)[0],e=G(bzPoints[0]);var x=U(e,n);pline4=B(bzPoints,g,12.7/13,void 0)[0];var _=G(bzPoints[bzPoints.length-1]);pline6=j(pline4,_,2.5),s=q(n,e,e,.75*x,!1),u=q(n,e,e,.75*x,!0),l=q(e,s,s,3*x,!0),h=q(e,u,u,3*x,!1);var w=new k;w.addPoint(s),w.addPoint(l),w.addPoint(h),w.addPoint(u),w.addPoint(s),m.addGeometry(w);var b=j(s,u,.25),P=j(s,u,.75);i=q(s,b,b,.3*3*x,!1),o=q(s,b,b,1.5*x,!1),c=q(s,P,P,.3*3*x,!1),r=q(s,b,b,.7*3*x,!1),a=q(s,P,P,1.5*x,!1),p=q(s,P,P,.7*3*x,!1);var S=new k;S.addPoint(i),S.addPoint(r),m.addGeometry(S);var C=new k;C.addPoint(p),C.addPoint(c),m.addGeometry(C);var M=new k;if(M.addPoint(o),M.addPoint(a),m.addGeometry(M),bzPoints[0].x<=bzPoints[1].x)var T=q(e,n,n,1.5*x,!0);else T=q(e,n,n,1.5*x,!1);var A,E,I,L,R=new D;A=q(_,pline4,pline4,1*v,!0),E=q(_,pline4,pline4,1*v,!1),I=pline6,L=_;var O=new z,N=[A,I,E,L,A];return 0<O.points.length?O.points=N:O.addPoint(N),R.addGeometry(O),[R,m,T]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制电路抢修专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(103),n(4),n(1),n(2),n(6),n(3),n(5),n,e,t],void 0===(r=function(t,n,e,i,w,b,P,S,r,o,a){function s(t){this.$type="EvacuateAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||2,e.maxCpt=e.maxCpt||10,n.call(this,e)}var l=t.extend2,C=e.pathLength,M=e.vertex,T=e.midPoint;return l(s,n),s.prototype.getGraphParts=function(t){for(var e=C(this.newPoints)*t/200,n=new w,i=new w,r=new P,o=new S,a=0;a<this.newPoints.length-1;a++)if(this.newPoints[a].x!=this.newPoints[a+1].x){var s=M(this.newPoints[a],this.newPoints[a+1],this.newPoints[a],e,!0),l=M(this.newPoints[a],this.newPoints[a+1],this.newPoints[a],e,!1);n.addPoint(s),i.addPoint(l)}for(var u=0;u<=n.points.length/10-1;u++){var h=T(n.points[10*u],n.points[10*u+1]),c=M(n.points[10*u],n.points[10*u+1],h,e,!0,75),p=M(n.points[10*u],n.points[10*u+1],h,e,!0,105),f=new w;f.addPoint(c),f.addPoint(h),f.addPoint(p),r.addGeometry(f);var d=T(i.points[10*u],i.points[10*u+1]),y=M(i.points[10*u],i.points[10*u+1],d,e/3,!1),m=new w;m.addPoint(d),m.addPoint(y),r.addGeometry(m);var g=M(i.points[10*u],i.points[10*u+1],d,e,!1),v=M(i.points[10*u],i.points[10*u+1],d,e/3,!1,75),x=M(i.points[10*u],i.points[10*u+1],d,e/3,!1,105),_=new b;_.addPoint(g),_.addPoint(v),_.addPoint(x),_.close(),o.addGeometry(_)}return r.addGeometry(n),r.addGeometry(i),[o,r]},s.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制撤退/疏散路线算法双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,V,q,B,U,W,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,Z=t.deepCopy,X=n.scalePoint,H=n.pathLength,Y=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),K=n.gainPt,J=n.distance,Q=n.getPolarPointOfCenterPoint,$=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new V,o=new W;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a=new V,s=bzPoints.length,l=0;l<=s-1;l++)a.addPoint(bzPoints[l]);var u=new W;u.addGeometry(a);var h=H(bzPoints),c=h*t*4/210;n=K(bzPoints,h,1/31,void 0)[0],e=Z(bzPoints[0]);var p=J(e,n);pline4=K(bzPoints,h,12.7/13,void 0)[0];var f=Z(bzPoints[bzPoints.length-1]);pline6=X(pline4,f,2.5),i=Y(n,e,e,.75*p,!1),r=Y(n,e,e,.75*p,!0);var d=new V,y=X(i,r,.3),m=X(i,r,.7),g=X(i,r,.5);o=Y(i,y,g,1.5*p,!1);var v=.75*p,x=1.5*p,_=$(o,e);for(l=0;l<=360;l++){var w=new q({x:o.x+x*Math.cos(l*Math.PI/180),y:o.y-v*Math.sin(l*Math.PI/180)}),b=$(o,w),P=J(o,w);d.addPoint(Q(o,_+b,P))}u.addGeometry(d);var S=Y(i,y,m,.7*3*p,!1),C=Y(i,y,m,.6*3*p,!1),M=Y(i,y,m,.4*3*p,!1),T=Y(i,y,m,.3*3*p,!1),A=Y(i,m,y,.7*3*p,!1),E=Y(i,m,y,.6*3*p,!1),I=Y(i,m,y,.4*3*p,!1),L=Y(i,m,y,.3*3*p,!1),R=new V;R.addPoint(S),R.addPoint(C),R.addPoint(I),R.addPoint(L),u.addGeometry(R);var O=new V;O.addPoint(A),O.addPoint(E),O.addPoint(M),O.addPoint(T),u.addGeometry(O);var N,k,z,D,F=new U;N=Y(f,pline4,pline4,1*c,!0),k=Y(f,pline4,pline4,1*c,!1),z=pline6,D=f;var G=new B,j=[N,z,k,D,N];return 0<G.points.length?G.points=j:G.addPoint(j),F.addGeometry(G),[F,u]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制消防专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,k,i,z,D,F,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,G=t.deepCopy,j=n.scalePoint,V=n.pathLength,q=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),B=n.gainPt,U=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new k,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new k,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new F;h.addGeometry(s);var c=V(bzPoints),p=c*t*4/210;n=B(bzPoints,c,1/31,void 0)[0],e=G(bzPoints[0]);var f=U(e,n);pline4=B(bzPoints,c,12.7/13,void 0)[0];var d=G(bzPoints[bzPoints.length-1]);pline6=j(pline4,d,2.5),i=q(n,e,e,.75*f,!1),o=q(n,e,e,.75*f,!0),r=q(e,i,i,3*f,!0),a=q(e,o,o,3*f,!1);var y=new k;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=j(i,o,.25),g=j(i,o,.75),v=q(i,m,g,.7*3*f,!1),x=q(i,m,g,.6*3*f,!1),_=q(i,m,g,.4*3*f,!1),w=q(i,m,g,.3*3*f,!1),b=q(i,g,m,.7*3*f,!1),P=q(i,g,m,.6*3*f,!1),S=q(i,g,m,.4*3*f,!1),C=q(i,g,m,.3*3*f,!1),M=new k;M.addPoint(v),M.addPoint(x),M.addPoint(S),M.addPoint(C),h.addGeometry(M);var T=new k;T.addPoint(b),T.addPoint(P),T.addPoint(_),T.addPoint(w),h.addGeometry(T);var A,E,I,L,R=new D;A=q(d,pline4,pline4,1*p,!0),E=q(d,pline4,pline4,1*p,!1),I=pline6,L=d;var O=new z,N=[A,I,E,L,A];return 0<O.points.length?O.points=N:O.addPoint(N),R.addGeometry(O),[R,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制消防专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,k,i,z,D,F,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,G=t.deepCopy,j=n.scalePoint,V=n.pathLength,q=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),B=n.gainPt,U=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new k,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new k,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new F;m.addGeometry(f);var g=V(bzPoints),v=g*t*4/210;n=B(bzPoints,g,1/31,void 0)[0],e=G(bzPoints[0]);var x=U(e,n);pline4=B(bzPoints,g,12.7/13,void 0)[0];var _=G(bzPoints[bzPoints.length-1]);pline6=j(pline4,_,2.5),s=q(n,e,e,.75*x,!1),u=q(n,e,e,.75*x,!0),l=q(e,s,s,3*x,!0),h=q(e,u,u,3*x,!1);var w=new k;w.addPoint(s),w.addPoint(l),w.addPoint(h),w.addPoint(u),w.addPoint(s),m.addGeometry(w);var b=j(s,u,.25),P=j(s,u,.75);i=q(s,b,b,.3*3*x,!1),o=q(s,b,b,1.5*x,!1),c=q(s,P,P,.3*3*x,!1),r=q(s,b,b,.7*3*x,!1),a=q(s,P,P,1.5*x,!1),p=q(s,P,P,.7*3*x,!1);var S=new k;S.addPoint(i),S.addPoint(r),m.addGeometry(S);var C=new k;C.addPoint(p),C.addPoint(c),m.addGeometry(C);var M=new k;if(M.addPoint(o),M.addPoint(a),m.addGeometry(M),bzPoints[0].x<=bzPoints[1].x)var T=q(e,n,n,1.5*x,!0);else T=q(e,n,n,1.5*x,!1);var A,E,I,L,R=new D;A=q(_,pline4,pline4,1*v,!0),E=q(_,pline4,pline4,1*v,!1),I=pline6,L=_;var O=new z,N=[A,I,E,L,A];return 0<O.points.length?O.points=N:O.addPoint(N),R.addGeometry(O),[R,m,T]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制煤气管抢修专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,k,i,z,D,F,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,G=t.deepCopy,j=n.scalePoint,V=n.pathLength,q=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),B=n.gainPt,U=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new k,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new k,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new F;m.addGeometry(f);var g=V(bzPoints),v=g*t*4/210;n=B(bzPoints,g,1/31,void 0)[0],e=G(bzPoints[0]);var x=U(e,n);pline4=B(bzPoints,g,12.7/13,void 0)[0];var _=G(bzPoints[bzPoints.length-1]);pline6=j(pline4,_,2.5),s=q(n,e,e,.75*x,!1),u=q(n,e,e,.75*x,!0),l=q(e,s,s,3*x,!0),h=q(e,u,u,3*x,!1);var w=new k;w.addPoint(s),w.addPoint(l),w.addPoint(h),w.addPoint(u),w.addPoint(s),m.addGeometry(w);var b=j(s,u,.25),P=j(s,u,.75);i=q(s,b,b,.3*3*x,!1),o=q(s,b,b,1.5*x,!1),c=q(s,P,P,.3*3*x,!1),r=q(s,b,b,.7*3*x,!1),a=q(s,P,P,1.5*x,!1),p=q(s,P,P,.7*3*x,!1);var S=new k;S.addPoint(i),S.addPoint(r),m.addGeometry(S);var C=new k;C.addPoint(p),C.addPoint(c),m.addGeometry(C);var M=new k;if(M.addPoint(o),M.addPoint(a),m.addGeometry(M),bzPoints[0].x<=bzPoints[1].x)var T=q(e,n,n,1.5*x,!0);else T=q(e,n,n,1.5*x,!1);var A,E,I,L,R=new D;A=q(_,pline4,pline4,1*v,!0),E=q(_,pline4,pline4,1*v,!1),I=pline6,L=_;var O=new z,N=[A,I,E,L,A];return 0<O.points.length?O.points=N:O.addPoint(N),R.addGeometry(O),[R,m,T]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制公路抢修专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,J,Q,i,r,$,o,a,s){function l(t){this.$type="MarchControlPropety,http://www.Gs.com",this.newPoints=null,this.p1=null,this.p2=null,e.call(this,{minCpt:2,maxCpt:10})}var u=t.extend2,tt=n.vertex,et=n.midPoint,nt=n.angle,it=n.scalePoint;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new J,o=new $;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c=this.newPoints.length,p=new $;u=new J;for(var f=0;f<c-1;f++){a=new J,s=new J,l=new J,e=tt(this.newPoints[f],this.newPoints[f+1],this.newPoints[f],5e4,!1),n=tt(this.newPoints[f],this.newPoints[f+1],this.newPoints[f],5e4,!0),a.addPoint(e),a.addPoint(n),p.addGeometry(a),o=et(this.newPoints[f],this.newPoints[f+1]),h=nt(this.newPoints[f],this.newPoints[f+1])*Math.PI/180;var d=o.x-5e4*Math.cos(h),y=o.y+5e4*Math.sin(h),m=o.x+5e4*Math.cos(h),g=o.y-5e4*Math.sin(h);i=new Q({x:d,y:y}),r=new Q({x:m,y:g}),s.addPoint(this.newPoints[f]),s.addPoint(i),p.addGeometry(s),l.addPoint(r),l.addPoint(this.newPoints[f+1]),p.addGeometry(l);m<d&&(i=new Q({x:m,y:g}),r=new Q({x:d,y:y}));var v,x,_,w,b,P,S,C,M,T,A,E,I,L,R,O,N,k,z,D,F,G,j,V,q,B,U=new J,W=new J,Z=new J,X=new J,H=new J,Y=new J,K=new J;v=it(i,r,.1),x=it(i,r,.2),_=it(i,r,.3),w=it(i,r,.4),b=tt(i,r,_,45e3,!0),P=tt(i,r,w,35e3,!0),S=tt(i,r,x,4e4,!1),C=tt(i,r,_,25e3,!1),U.addPoint(S),U.addPoint(C),W.addPoint(v),W.addPoint(_),W.addPoint(b),W.addPoint(P),p.addGeometry(U),p.addGeometry(W),M=it(i,r,.5),E=it(i,r,.9),T=tt(i,r,w,6e4,!0),A=tt(i,r,M,6e4,!1),I=tt(i,r,E,6e4,!1),L=tt(i,r,E,6e4,!0),Z.addPoint(T),Z.addPoint(A),Z.addPoint(I),Z.addPoint(L),p.addGeometry(Z),R=it(M,E,.2),O=it(M,E,.8),N=it(M,E,.5),k=tt(i,r,R,2e4,!1),z=tt(i,r,O,2e4,!1),D=tt(i,r,N,4e4,!1),X.addPoint(R),X.addPoint(O),H.addPoint(k),H.addPoint(z),Y.addPoint(N),Y.addPoint(D),p.addGeometry(X),p.addGeometry(H),p.addGeometry(Y),F=it(M,E,.3),G=it(M,E,.7),j=tt(i,r,F,2e4,!0),V=tt(i,r,G,2e4,!0),q=tt(i,r,G,4e4,!0),B=tt(i,r,F,4e4,!0),K.addPoint(j),K.addPoint(V),K.addPoint(q),K.addPoint(B),K.addPoint(j),p.addGeometry(K)}return e=tt(this.newPoints[f-1],this.newPoints[f],this.newPoints[f],5e4,!1),n=tt(this.newPoints[f-1],this.newPoints[f],this.newPoints[f],5e4,!0),u.addPoint(e),u.addPoint(n),p.addGeometry(u),[p]},l.prototype.getType=function(){return"marchcontrolpropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制部队行动控制线双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,f,i,d,y,m,r,o,a){function s(t){this.$type="MarchOnFootPropety,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,g=t.deepCopy,v=n.scalePoint,x=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),_=n.gainPt,w=n.pathLength;n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new f,o=new m;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i=w(bzPoints),r=i*t*4/210;pline4=_(bzPoints,i,12.7/13,void 0)[0];var o=g(bzPoints[bzPoints.length-1]);pline6=v(pline4,o,2.5);for(var a=new m,s=new f,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);a.addGeometry(s),e=x(o,pline4,pline4,r,!0),n=x(o,pline4,pline4,r,!1);var h=[e,pline6,n,o,e],c=new d;0<c.points.length?c.points=h:c.addPoint(h);var p=new y;return p.addGeometry(c),[p,a]},s.prototype.getType=function(){return"marchonfootpropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多3个点用于绘制徒步行军纵队双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,P,S,C,M,T,i,r,o){function a(t){this.$type="MarchOnMotorPropety,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,A=t.deepCopy,E=n.scalePoint,I=n.vertex,l=n.bTypeline,L=n.gainPt,R=n.pathLength;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new P,o=new T;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=R(bzPoints),l=s*t*4/210,u=s*t/30,h=L(bzPoints,s,12.7/13,void 0)[0],c=A(bzPoints[bzPoints.length-1]),p=E(h,c,2.5),f=new T,d=new P,y=new P,m=new P,g=bzPoints.length,v=0;v<=g-1;v++)d.addPoint(bzPoints[v]);f.addGeometry(d),i=L(bzPoints,s,6/13)[0],r=L(bzPoints,s,7/13)[0],o=I(i,r,i,u,!1),a=I(i,r,r,u,!1);for(var x=0;x<=360;x++)n=2*Math.PI*x/360,y.addPoint(new S({x:o.x+u/2*Math.cos(n),y:o.y+u/2*Math.sin(n)})),m.addPoint(new S({x:a.x+u/2*Math.cos(n),y:a.y+u/2*Math.sin(n)}));f.addGeometry(y),f.addGeometry(m);var _=[e=I(c,h,h,l,!0),p,I(c,h,h,l,!1),c,e],w=new C;0<w.points.length?w.points=_:w.addPoint(_);var b=new M;return b.addGeometry(w),[b,f]},a.prototype.getType=function(){return"marchonmotorpropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多3个点用于绘制摩托化行军纵队双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,I,i,L,R,O,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,N=t.deepCopy,k=n.scalePoint,z=n.pathLength,D=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),F=n.gainPt,G=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new I,o=new O;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new I,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new O;h.addGeometry(s);var c=z(bzPoints),p=c*t*4/210;n=F(bzPoints,c,1/31,void 0)[0],e=N(bzPoints[0]);var f=G(e,n);pline4=F(bzPoints,c,12.7/13,void 0)[0];var d=N(bzPoints[bzPoints.length-1]);pline6=k(pline4,d,2.5),i=D(n,e,e,.75*f,!1),o=D(n,e,e,.75*f,!0),r=D(e,i,i,3*f,!0),a=D(e,o,o,3*f,!1);var y=new I;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=k(i,o,.2),g=k(i,o,.8),v=D(i,m,g,.65*3*f,!1),x=D(i,m,g,.3*3*f,!1),_=D(i,g,m,.65*3*f,!1),w=D(i,g,m,.3*3*f,!1),b=new I;b.addPoint(v),b.addPoint(x),b.addPoint(_),b.addPoint(w),h.addGeometry(b);var P,S,C,M,T=new R;P=D(d,pline4,pline4,1*p,!0),S=D(d,pline4,pline4,1*p,!1),C=pline6,M=d;var A=new L,E=[P,C,S,M,P];return 0<A.points.length?A.points=E:A.addPoint(E),T.addGeometry(A),[T,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制物资保障专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,z,D,F,G,j,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,V=t.deepCopy,q=n.scalePoint,B=n.pathLength,U=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),W=n.gainPt,Z=n.distance,X=n.getPolarPointOfCenterPoint,H=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new z,o=new j;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a=new z,s=bzPoints.length,l=0;l<=s-1;l++)a.addPoint(bzPoints[l]);var u=new j;u.addGeometry(a);var h=B(bzPoints),c=h*t*4/210;n=W(bzPoints,h,1/31,void 0)[0],e=V(bzPoints[0]);var p=Z(e,n);pline4=W(bzPoints,h,12.7/13,void 0)[0];var f=V(bzPoints[bzPoints.length-1]);pline6=q(pline4,f,2.5),i=U(n,e,e,.75*p,!1),r=U(n,e,e,.75*p,!0);var d=new z,y=q(i,r,.3),m=q(i,r,.7),g=q(i,r,.5);o=U(i,y,g,1.5*p,!1);var v=.75*p,x=1.5*p,_=H(o,e);for(l=0;l<=360;l++){var w=new D({x:o.x+x*Math.cos(l*Math.PI/180),y:o.y-v*Math.sin(l*Math.PI/180)}),b=H(o,w),P=Z(o,w);d.addPoint(X(o,_+b,P))}u.addGeometry(d);var S=U(i,y,m,.6*3*p,!1),C=U(i,y,m,.35*3*p,!1),M=U(i,m,y,.6*3*p,!1),T=U(i,m,y,.35*3*p,!1),A=new z;A.addPoint(S),A.addPoint(C),A.addPoint(M),A.addPoint(T),u.addGeometry(A);var E,I,L,R,O=new G;E=U(f,pline4,pline4,1*c,!0),I=U(f,pline4,pline4,1*c,!1),L=pline6,R=f;var N=new F,k=[E,L,I,R,E];return 0<N.points.length?N.points=k:N.addPoint(k),O.addGeometry(N),[O,u]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制物资保障专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,D,F,G,j,V,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,q=t.deepCopy,B=n.scalePoint,U=n.pathLength,W=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),Z=n.gainPt,X=n.distance,H=n.getPolarPointOfCenterPoint,Y=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new D,o=new V;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a=new D,s=bzPoints.length,l=0;l<=s-1;l++)a.addPoint(bzPoints[l]);var u=new V;u.addGeometry(a);var h=U(bzPoints),c=h*t*4/210;n=Z(bzPoints,h,1/31,void 0)[0],e=q(bzPoints[0]);var p=X(e,n);pline4=Z(bzPoints,h,12.7/13,void 0)[0];var f=q(bzPoints[bzPoints.length-1]);pline6=B(pline4,f,2.5),i=W(n,e,e,.75*p,!1),r=W(n,e,e,.75*p,!0);var d=new D,y=B(i,r,.18),m=B(i,r,.82),g=B(i,r,.5);o=W(i,y,g,1.5*p,!1);var v=.75*p,x=1.5*p,_=Y(o,e);for(l=0;l<=360;l++){var w=new F({x:o.x+x*Math.cos(l*Math.PI/180),y:o.y-v*Math.sin(l*Math.PI/180)}),b=Y(o,w),P=X(o,w);d.addPoint(H(o,_+b,P))}u.addGeometry(d);var S=W(i,y,m,1.5*p,!1),C=W(i,y,y,1.5*p,!1),M=W(i,y,g,.7*3*p,!1),T=W(i,y,g,.3*3*p,!1),A=new D;A.addPoint(S),A.addPoint(C),u.addGeometry(A);var E=new D;E.addPoint(M),E.addPoint(T),u.addGeometry(E);var I,L,R,O,N=new j;I=W(f,pline4,pline4,1*c,!0),L=W(f,pline4,pline4,1*c,!1),R=pline6,O=f;var k=new G,z=[I,R,L,O,I];return 0<k.points.length?k.points=z:k.addPoint(z),N.addGeometry(k),[N,u]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制医疗救护专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,R,i,O,N,k,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,z=t.deepCopy,D=n.scalePoint,F=n.pathLength,G=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),j=n.gainPt,V=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new R,o=new k;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new R,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new k;h.addGeometry(s);var c=F(bzPoints),p=c*t*4/210;n=j(bzPoints,c,1/31,void 0)[0],e=z(bzPoints[0]);var f=V(e,n);pline4=j(bzPoints,c,12.7/13,void 0)[0];var d=z(bzPoints[bzPoints.length-1]);pline6=D(pline4,d,2.5),i=G(n,e,e,.75*f,!1),o=G(n,e,e,.75*f,!0),r=G(e,i,i,3*f,!0),a=G(e,o,o,3*f,!1);var y=new R;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=D(i,o,.18),g=D(i,o,.82),v=D(i,o,.5),x=G(i,m,g,1.5*f,!1),_=G(i,m,m,1.5*f,!1),w=G(i,m,v,.7*3*f,!1),b=G(i,m,v,.3*3*f,!1),P=new R;P.addPoint(x),P.addPoint(_),h.addGeometry(P);var S=new R;S.addPoint(w),S.addPoint(b),h.addGeometry(S);var C,M,T,A,E=new N;C=G(d,pline4,pline4,1*p,!0),M=G(d,pline4,pline4,1*p,!1),T=pline6,A=d;var I=new O,L=[C,T,M,A,C];return 0<I.points.length?I.points=L:I.addPoint(L),E.addGeometry(I),[E,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制医疗救护专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,B,i,U,W,Z,r,o,a){var s=t.extend2,X=t.deepCopy,H=n.scalePoint,Y=n.pathLength,K=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),J=n.gainPt,Q=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function u(t){this.$type="MissilePropetyAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return s(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new B,o=new Z;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C=new Z,M=Y(bzPoints),T=M*t*4/210,A=new W;a=J(bzPoints,M,6/13,r)[0],s=J(bzPoints,M,7/13,o)[0],r=J(bzPoints,M,6/13,r)[1],o=J(bzPoints,M,7/13,o)[1];var E=Q(a,s)/10;l=H(a,s,.1),u=H(a,s,.3),h=H(a,s,.4),c=H(a,s,.8),p=H(a,s,.85),f=H(a,s,.93),d=H(a,s,.99),y=K(a,l,l,E,!0),m=K(a,u,u,E,!0),g=K(a,h,h,E,!0),v=K(a,c,c,E,!0),x=K(a,p,p,.5*E,!0),_=K(a,l,l,E,!1),w=K(a,u,u,E,!1),b=K(a,h,h,E,!1),P=K(a,c,c,E,!1),S=K(a,p,p,.5*E,!1);var I=new B;I.addPoint(l),I.addPoint(f),C.addGeometry(I);var L=new B;L.addPoint(w),L.addPoint(h),L.addPoint(m),C.addGeometry(L);var R=new B;R.addPoint(y),R.addPoint(_),C.addGeometry(R);var O=new B;O.addPoint(b),O.addPoint(P),C.addGeometry(O);var N=new B;N.addPoint(g),N.addPoint(v),C.addGeometry(N),q=[S,f,x,d,S],0<(V=new U).points.length?V.points=q:V.addPoint(q),(A=new W).addGeometry(V);for(var k=new B,z=0;z<r;z++)k.addPoint(bzPoints[z]);C.addGeometry(k);var D=new B;D.addPoint(s);for(var F=bzPoints.length,G=o;G<F;G++)D.addPoint(bzPoints[G]);C.addGeometry(D),pt5=J(bzPoints,M,12.7/13,void 0)[0];var j=X(bzPoints[F-1]);pt6=H(pt5,j,2.5);new W;arrow1=K(j,pt5,pt5,T,!0),e=K(j,pt5,pt5,T,!1),n=pt6,i=j;var V=new U,q=[arrow1,n,e,i,arrow1];return 0<V.points.length?V.points=q:V.addPoint(q),A.addGeometry(V),[A,C]},u.prototype.getType=function(){return"missilepropety"},u.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多3个点用于绘制导弹部队行军纵队双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,R,O,i,r,N,o,a,s){function k(t){this.$type="MyRendezvousArea1Propety,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3})}var l=t.extend2,z=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine),D=(n.gainPt,n.distance),F=n.calLinePerpenPoints,G=n.optionWay;return l(k,e),k.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new O,o=new O,a=new O,s=new O,l=new O,u=new O,h=new O,c=new O,p=new O,f=0,d=0,y=0,m=[],g=new O;if(1==i){if(m[0]=n[0],null!=e)if(n[0].x==e.x&&n[0].y==e.y){var v=new O({x:e.x+10,y:e.y});m[1]=v}else m[1]=e;var x=new O;y=D(m[0],m[1]),F(m[0],m[1],y/2,y/2,g,x,!0),m[2]=x}else if(2==i){for(var _=0;_<i;_++)m[_]=n[_];if(null!=e)if(n[1].x==e.x&&n[1].y==e.y){v=new O({x:e.x,y:e.y});m[2]=v}else m[2]=e;else{x=new O;y=D(m[0],m[1]),F(m[0],m[1],y/2,y/2,g,x,!0),m[2]=x}}else if(3==i)for(_=0;_<i;_++)m[_]=n[_];var w=D(m[0],m[1])+1,b=D(m[1],m[2])+1,P=D(m[2],m[0])+1;w<b&&P<b?(g=m[0],m[0]=m[1],m[1]=m[2],m[2]=g):w<P&&b<P&&(g=m[1],m[1]=m[0],m[0]=m[2],m[2]=g),G(m[0],m[1],m[2]),f=(m[0].y-m[1].y)/(m[0].x-m[1].x+1),d=D(m[1],m[0])+1,m[0].y>m[1].y?f<0?k.calculatePoints(f,m[2],d/3,a,o):k.calculatePoints(f,m[2],d/3,o,a):f<0?k.calculatePoints(f,m[2],d/3,o,a):k.calculatePoints(f,m[2],d/3,a,o),f=(m[1].y-m[2].y)/(m[1].x-m[2].x+1),d=D(m[2],m[1])+1,m[1].y>m[2].y?f<0?k.calculatePoints(f,m[0],d/3,l,s):k.calculatePoints(f,m[0],d/3,s,l):f<0?k.calculatePoints(f,m[0],d/3,s,l):k.calculatePoints(f,m[0],d/3,l,s),f=(m[2].y-m[0].y)/(m[2].x-m[0].x+1),d=D(m[2],m[0])+1,m[2].y>m[0].y?f<0?k.calculatePoints(f,m[1],d/3,r,p):k.calculatePoints(f,m[1],d/3,p,r):f<0?k.calculatePoints(f,m[1],d/3,p,r):k.calculatePoints(f,m[1],d/3,r,p),h.x=(m[0].x+m[1].x)/2,h.y=(m[0].y+m[1].y)/2,f=(m[0].y-m[1].y)/(m[0].x-m[1].x+1),d=D(m[1],m[0])+1,m[0].y>m[1].y?f<0?k.calculatePoints(f,h,d/6,u,c):k.calculatePoints(f,h,d/6,c,u):f<0?k.calculatePoints(f,h,d/6,c,u):k.calculatePoints(f,h,d/6,u,c);var S=new Array;S[0]=m[0],S[1]=l,S[2]=u,S[3]=h;var C=new Array;C[0]=h,C[1]=c,C[2]=p,C[3]=m[1];var M=new Array;M[0]=m[1],M[1]=r,M[2]=o,M[3]=m[2];var T=new Array;T[0]=m[2],T[1]=a,T[2]=s,T[3]=m[0];var A=new R,E=new N,I=z(S),L=I.length;for(_=0;_<L;_++)A.addPoint(I[_]);for(L=(I=z(C)).length,_=0;_<L;_++)A.addPoint(I[_]);for(L=(I=z(M)).length,_=0;_<L;_++)A.addPoint(I[_]);for(L=(I=z(T)).length,_=0;_<L;_++)A.addPoint(I[_]);return E.addGeometry(A),[E]},k.calculatePoints=function(t,e,n,i,r){var o=e.x,a=e.y,s=a-t*o,l=t*t+1,u=2*t*(s-a)-2*o,h=(s-a)*(s-a)+o*o-n*n;i.x=parseInt((-u-Math.sqrt(u*u-4*l*h))/(2*l)),r.x=parseInt((-u+Math.sqrt(u*u-4*l*h))/(2*l)),i.y=parseInt(t*i.x+s),r.y=parseInt(t*r.x+s)},k.prototype.getType=function(){return"myrendezvousareapropety"},k.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多3个点用于绘制部队占领集结区域双击结束绘制在地图上点击绘制第1个点。"},k.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},s.exports=k}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(104),n(4),n(1),n(2),n,e,t],void 0===(r=function(t,n,e,a,s,i,r,o){function l(t){this.$type="NucleusGroundExplodeCircleAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||1,e.maxCpt=e.maxCpt||2,n.call(this,e)}var u=t.extend2,h=e.distance,c=e.vertex;return u(l,n),l.prototype.drawother=function(t){var e=h(this.newPoints[0],this.newPoints[1])*t/4,n=new a({x:this.newPoints[0].x,y:this.newPoints[0].y-e}),i=c(this.newPoints[0],n,n,1.2*e,!1),r=c(this.newPoints[0],n,n,1.2*e,!0),o=new s;return o.addPoint(i),o.addPoint(r),o},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少1个点最多2个点用于绘制核武器地面水面爆炸威力圈双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 2:return"完成绘制。";default:if(t<=1)return"单击绘制下一个点。"}},o.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,k,i,z,D,F,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,G=t.deepCopy,j=n.scalePoint,V=n.pathLength,q=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),B=n.gainPt,U=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new k,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new k,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new F;m.addGeometry(f);var g=V(bzPoints),v=g*t*4/210;n=B(bzPoints,g,1/31,void 0)[0],e=G(bzPoints[0]);var x=U(e,n);pline4=B(bzPoints,g,12.7/13,void 0)[0];var _=G(bzPoints[bzPoints.length-1]);pline6=j(pline4,_,2.5),s=q(n,e,e,.75*x,!1),u=q(n,e,e,.75*x,!0),l=q(e,s,s,3*x,!0),h=q(e,u,u,3*x,!1);var w=new k;w.addPoint(s),w.addPoint(l),w.addPoint(h),w.addPoint(u),w.addPoint(s),m.addGeometry(w);var b=j(s,u,.25),P=j(s,u,.75);i=q(s,b,b,.3*3*x,!1),o=q(s,b,b,1.5*x,!1),c=q(s,P,P,.3*3*x,!1),r=q(s,b,b,.7*3*x,!1),a=q(s,P,P,1.5*x,!1),p=q(s,P,P,.7*3*x,!1);var S=new k;S.addPoint(i),S.addPoint(r),m.addGeometry(S);var C=new k;C.addPoint(p),C.addPoint(c),m.addGeometry(C);var M=new k;if(M.addPoint(o),M.addPoint(a),m.addGeometry(M),bzPoints[0].x<=bzPoints[1].x)var T=q(e,n,n,1.5*x,!0);else T=q(e,n,n,1.5*x,!1);var A,E,I,L,R=new D;A=q(_,pline4,pline4,1*v,!0),E=q(_,pline4,pline4,1*v,!1),I=pline6,L=_;var O=new z,N=[A,I,E,L,A];return 0<O.points.length?O.points=N:O.addPoint(N),R.addGeometry(O),[R,m,T]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制输油管抢修专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(103),n(4),n(1),n(2),n(3),n,e,t],void 0===(r=function(t,n,e,i,p,f,r,o,a){function s(t){this.$type="PlanningStreetAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||3,e.maxCpt=e.maxCpt||30,n.call(this,e)}var l=t.extend2,d=e.pathLength,y=e.angle,m=e.gainPt1;return l(s,n),s.prototype.getGraphParts=function(t){var e=new f,n=d(this.newPoints),i=n*t/100;i<4&&(i=4);for(var r=this.newPoints[0].copy(),o=Math.floor(n/2e5),a=1;a<o;a++){var s=a/o,l=r.copy(),u=m(this.newPoints,n,s,void 0)[0],h=y(l,u)*Math.PI/180,c=new p;l.x+=1e5*t*Math.cos(h),l.y-=1e5*t*Math.sin(h),c.addPoint(l),c.addPoint(u),e.addGeometry(c),r.x=u.x,r.y=u.y}return[e]},s.prototype.getDescription=function(){return"在地图上绘制多个点默认最少3个点最多30个点用于绘制规划主干道支干道双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(104),n(4),n(1),n(2),n(3),n,e,t],void 0===(r=function(t,n,e,v,x,_,i,r,o){function a(t){this.$type="PoisonCloudHazardAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||1,e.maxCpt=e.maxCpt||2,n.call(this,e)}var s=t.extend2,w=e.distance,b=e.vertex,P=e.polarAngle360,S=e.getPolarPointOfCenterPoint;return s(a,n),a.prototype.getGraphParts=function(t){for(var e=w(this.newPoints[0],this.newPoints[1]),n=new _,i=e/8,r=new x,o=0;o<=200;o++){var a=o*Math.PI/100;r.addPoint(new v({x:this.newPoints[0].x+i*Math.cos(a),y:this.newPoints[0].y+i*Math.sin(a)}))}var s=new x;s.addPoint(this.newPoints[0]),s.addPoint(this.newPoints[1]);var l=new x,u=b(this.newPoints[0],this.newPoints[1],this.newPoints[0],i,!1),h=b(this.newPoints[0],this.newPoints[1],this.newPoints[0],i,!0);l.addPoint(u),l.addPoint(h);var c=P(this.newPoints[0],this.newPoints[1]),p=new v,f=new v;p.x=this.newPoints[0].x+e*Math.cos((c-15)*Math.PI/180),p.y=this.newPoints[0].y+e*Math.sin((c-15)*Math.PI/180),f.x=this.newPoints[0].x+e*Math.cos((c+15)*Math.PI/180),f.y=this.newPoints[0].y+e*Math.sin((c+15)*Math.PI/180);var d=new x,y=new x;d.addPoint(u),d.addPoint(f),y.addPoint(h),y.addPoint(p);for(var m=new x,g=c-15;g<=c+15;g++)m.addPoint(S(this.newPoints[0],g,e));return n.addGeometry(r),n.addGeometry(s),n.addGeometry(l),n.addGeometry(d),n.addGeometry(y),n.addGeometry(m),[n]},a.prototype.getDescription=function(){return"在地图上绘制多个点默认最少1个点最多2个点用于绘制初生再生毒剂云团危害区域双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 2:return"完成绘制。";default:if(t<=1)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(104),n(4),n(2),n(3),n,e,t],void 0===(r=function(t,n,e,r,o,i,a,s){function l(t){this.$type="PoisonCloudHazardAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||3,e.maxCpt=e.maxCpt||100,n.call(this,e)}var u=t.extend2,h=e.bzLine;return u(l,n),l.prototype.getGraphParts=function(t){this.newPoints.pop();var e=h(this.newPoints,this.newPoints.length),n=new r;n.addPoint(e);var i=new o;return i.addGeometry(n),[i]},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少3个点最多100个点用于绘制染毒沾染污染地域双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 100:return"完成绘制。";default:if(t<=99)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,U,W,Z,X,H,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,Y=t.deepCopy,K=n.scalePoint,J=n.pathLength,Q=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),$=n.gainPt,tt=n.distance,et=n.getPolarPointOfCenterPoint,nt=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new U,o=new H;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new U,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new H;h.addGeometry(s);var c=J(bzPoints),p=c*t*4/210;n=$(bzPoints,c,1/31,void 0)[0],e=Y(bzPoints[0]);var f=tt(e,n);pline4=$(bzPoints,c,12.7/13,void 0)[0];var d=Y(bzPoints[bzPoints.length-1]);pline6=K(pline4,d,2.5),i=Q(n,e,e,.75*f,!1),o=Q(n,e,e,.75*f,!0),r=Q(e,i,i,3*f,!0),Q(e,o,o,3*f,!1);var y=new U,m=K(i,r,.3),g=K(i,r,.33),v=K(i,r,.37),x=K(i,r,.63),_=K(i,r,.67),w=K(i,r,.7),b=K(i,o,.5);a=Q(i,b,b,1.5*f,!1);var P=.75*f,S=1.5*f,C=nt(a,e);for(u=0;u<=360;u++){var M=new W({x:a.x+S*Math.cos(u*Math.PI/180),y:a.y-P*Math.sin(u*Math.PI/180)}),T=nt(a,M),A=tt(a,M);y.addPoint(et(a,C+T,A))}if(h.addGeometry(y),bzPoints[0].x<=bzPoints[1].x)var E=Q(i,m,m,.7*1.5*f,!0),I=Q(i,v,v,.7*1.5*f,!0),L=Q(i,_,_,.2*1.5*f,!0),R=Q(i,g,g,.2*1.5*f,!0),O=Q(i,x,x,.7*1.5*f,!0),N=Q(i,w,w,.7*1.5*f,!0);else E=Q(i,m,m,.3*1.5*f,!0),I=Q(i,v,v,.3*1.5*f,!0),L=Q(i,_,_,.8*1.5*f,!0),R=Q(i,g,g,.8*1.5*f,!0),O=Q(i,x,x,.3*1.5*f,!0),N=Q(i,w,w,.3*1.5*f,!0);var k=new U;k.addPoint(E),k.addPoint(I),k.addPoint(L),h.addGeometry(k);var z=new U;z.addPoint(R),z.addPoint(O),z.addPoint(N),h.addGeometry(z);var D,F,G,j,V=new X;D=Q(d,pline4,pline4,1*p,!0),F=Q(d,pline4,pline4,1*p,!1),G=pline6,j=d;var q=new Z,B=[D,G,F,j,D];return 0<q.points.length?q.points=B:q.addPoint(B),V.addGeometry(q),[V,h]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制防化防疫专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,D,i,F,G,j,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,V=t.deepCopy,q=n.scalePoint,B=n.pathLength,U=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),W=n.gainPt,Z=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new D,o=new j;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new D,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new j;h.addGeometry(s);var c=B(bzPoints),p=c*t*4/210;n=W(bzPoints,c,1/31,void 0)[0],e=V(bzPoints[0]);var f=Z(e,n);pline4=W(bzPoints,c,12.7/13,void 0)[0];var d=V(bzPoints[bzPoints.length-1]);pline6=q(pline4,d,2.5),i=U(n,e,e,.75*f,!1),o=U(n,e,e,.75*f,!0),r=U(e,i,i,3*f,!0),a=U(e,o,o,3*f,!1);var y=new D;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=q(i,r,.3),g=q(i,r,.33),v=q(i,r,.37),x=q(i,r,.63),_=q(i,r,.67),w=q(i,r,.7);if(bzPoints[0].x<=bzPoints[1].x)var b=U(i,m,m,.7*1.5*f,!0),P=U(i,v,v,.7*1.5*f,!0),S=U(i,_,_,.2*1.5*f,!0),C=U(i,g,g,.2*1.5*f,!0),M=U(i,x,x,.7*1.5*f,!0),T=U(i,w,w,.7*1.5*f,!0);else b=U(i,m,m,.3*1.5*f,!0),P=U(i,v,v,.3*1.5*f,!0),S=U(i,_,_,.8*1.5*f,!0),C=U(i,g,g,.8*1.5*f,!0),M=U(i,x,x,.3*1.5*f,!0),T=U(i,w,w,.3*1.5*f,!0);var A=new D;A.addPoint(b),A.addPoint(P),A.addPoint(S),h.addGeometry(A);var E=new D;E.addPoint(C),E.addPoint(M),E.addPoint(T),h.addGeometry(E);var I,L,R,O,N=new G;I=U(d,pline4,pline4,1*p,!0),L=U(d,pline4,pline4,1*p,!1),R=pline6,O=d;var k=new F,z=[I,R,L,O,I];return 0<k.points.length?k.points=z:k.addPoint(z),N.addGeometry(k),[N,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制防疫防化专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(104),n(4),n(1),n(2),n(3),n,e,t],void 0===(r=function(t,n,e,S,C,M,i,r,o){function a(t){this.$type="RadioactiveGroundInjuryAreaAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||1,e.maxCpt=e.maxCpt||2,n.call(this,e)}var s=t.extend2,T=e.distance,A=e.bTypeline,E=e.angle;return s(a,n),a.prototype.getGraphParts=function(t){for(var e=new M,n=new S,i=new S,r=new S,o=T(this.newPoints[0],this.newPoints[1])*t,a=.75*o,s=.5*o,l=new C,u=new C,h=new C,c=E(this.newPoints[0],this.newPoints[1])*Math.PI/180,p=-Math.PI/6-c,f=Math.PI/180,d=0;d<=60;d++){var y=Math.cos(p),m=Math.sin(p);l.addPoint(new S({x:this.newPoints[0].x+o*y,y:this.newPoints[0].y+o*m})),u.addPoint(new S({x:this.newPoints[0].x+a*y,y:this.newPoints[0].y+a*m})),h.addPoint(new S({x:this.newPoints[0].x+s*y,y:this.newPoints[0].y+s*m})),p+=f}var g=new S;this.newPoints[0].x<this.newPoints[1].x?g.x=this.newPoints[0].x-s*Math.abs(Math.cos(c)):g.x=this.newPoints[0].x+s*Math.abs(Math.cos(c)),this.newPoints[0].y<this.newPoints[1].y?g.y=this.newPoints[0].y-s*Math.abs(Math.sin(c)):g.y=this.newPoints[0].y+s*Math.abs(Math.sin(c));var v=[];v.push(u.points[0]),v.push(g),v.push(u.points[60]);var x=A(v,v.length),_=new C;_.addPoint(x);var w=new C,b=new C,P=new C;return this.newPoints.pop(),w.addPoint(this.newPoints),b.addPoint(this.newPoints[0]),b.addPoint(l.points[0]),P.addPoint(this.newPoints[0]),P.addPoint(l.points[60]),e.addGeometry(l),e.addGeometry(u),e.addGeometry(h),e.addGeometry(_),e.addGeometry(w),e.addGeometry(b),e.addGeometry(P),n.x=this.newPoints[0].x+.25*o*Math.cos(-c),n.y=this.newPoints[0].y+.25*o*Math.sin(-c),i.x=this.newPoints[0].x+.6125*o*Math.cos(-c),i.y=this.newPoints[0].y+.6125*o*Math.sin(-c),r.x=this.newPoints[0].x+.875*o*Math.cos(-c),r.y=this.newPoints[0].y+.875*o*Math.sin(-c),[e,n,i,r]},a.prototype.getDescription=function(){return"在地图上绘制多个点默认最少1个点最多2个点用于绘制核武器地面水面爆炸威力圈双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 2:return"完成绘制。";default:if(t<=1)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,k,i,z,D,F,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,G=t.deepCopy,j=n.scalePoint,V=n.pathLength,q=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),B=n.gainPt,U=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new k,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new k,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new F;m.addGeometry(f);var g=V(bzPoints),v=g*t*4/210;n=B(bzPoints,g,1/31,void 0)[0],e=G(bzPoints[0]);var x=U(e,n);pline4=B(bzPoints,g,12.7/13,void 0)[0];var _=G(bzPoints[bzPoints.length-1]);pline6=j(pline4,_,2.5),s=q(n,e,e,.75*x,!1),u=q(n,e,e,.75*x,!0),l=q(e,s,s,3*x,!0),h=q(e,u,u,3*x,!1);var w=new k;w.addPoint(s),w.addPoint(l),w.addPoint(h),w.addPoint(u),w.addPoint(s),m.addGeometry(w);var b=j(s,u,.25),P=j(s,u,.75);i=q(s,b,b,.3*3*x,!1),o=q(s,b,b,1.5*x,!1),c=q(s,P,P,.3*3*x,!1),r=q(s,b,b,.7*3*x,!1),a=q(s,P,P,1.5*x,!1),p=q(s,P,P,.7*3*x,!1);var S=new k;S.addPoint(i),S.addPoint(r),m.addGeometry(S);var C=new k;C.addPoint(p),C.addPoint(c),m.addGeometry(C);var M=new k;if(M.addPoint(o),M.addPoint(a),m.addGeometry(M),bzPoints[0].x<=bzPoints[1].x)var T=q(e,n,n,1.5*x,!0);else T=q(e,n,n,1.5*x,!1);var A,E,I,L,R=new D;A=q(_,pline4,pline4,1*v,!0),E=q(_,pline4,pline4,1*v,!1),I=pline6,L=_;var O=new z,N=[A,I,E,L,A];return 0<O.points.length?O.points=N:O.addPoint(N),R.addGeometry(O),[R,m,T]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制铁路抢修专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,T,i,A,E,I,r,o,a){function s(t){this.$type="ReceivingTeamPropetyAlgorithm,http://www.Gs.com",this.bzPoints=[],e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var l=t.extend2,L=t.deepCopy,R=n.scalePoint,O=n.pathLength,N=n.vertex,k=(n.angle,n.bzLine,n.midPoint),u=n.bTypeline,z=n.gainPt;n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new T,o=new I;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),this.bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e=new T,n=this.bzPoints.length,i=O(this.bzPoints),r=i*t/30,o=i*t*4/210;r<4&&(r=4),o<2&&(r=2);for(var a=z(this.bzPoints,i,2/13)[0],s=z(this.bzPoints,i,2/13)[1],l=L(this.bzPoints[0]),u=s;u<=n-1;u++)e.addPoint(this.bzPoints[u]);var h=new I;h.addGeometry(e),RectangleLeftDown=N(a,l,l,r,!1),RectangleLeftUp=N(a,l,l,r,!0),RectangleRighttDown=N(a,l,a,r,!1),RectangleRightUp=N(a,l,a,r,!0);var c=new T;c.addPoint(RectangleLeftDown),c.addPoint(RectangleLeftUp),c.addPoint(RectangleRightUp),c.addPoint(RectangleRighttDown),c.addPoint(RectangleLeftDown),h.addGeometry(c);var p=(1-13/15/Math.sqrt(3))/2,f=(1+13/15/Math.sqrt(3))/2,d=k(RectangleLeftUp,RectangleRightUp),y=R(RectangleLeftDown,RectangleRighttDown,p),m=R(RectangleLeftDown,RectangleRighttDown,f),g=new T;g.addPoint(d),g.addPoint(y),h.addGeometry(g);var v=new T;v.addPoint(d),v.addPoint(m),h.addGeometry(v);var x,_,w,b,P,S=new E;x=this.bzPoints[n-1],b=z(this.bzPoints,i,12.7/13)[0],P=R(b,x,2.5),_=N(b,P,b,o,!1),w=N(b,P,b,o,!0);var C=new A,M=[x,w,P,_,x];return 0<C.points.length?C.points=M:C.addPoint(M),S.addGeometry(C),[S,h]},s.prototype.getType=function(){return"receivingteampropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多10个点用于绘制收容队双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,N,i,k,z,D,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,F=t.deepCopy,G=n.scalePoint,j=n.pathLength,V=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),q=n.gainPt,B=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new N,o=new D;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new N,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new D;m.addGeometry(f);var g=j(bzPoints),v=g*t*4/210;n=q(bzPoints,g,1/31,void 0)[0],e=F(bzPoints[0]);var x=B(e,n);pline4=q(bzPoints,g,12.7/13,void 0)[0];var _=F(bzPoints[bzPoints.length-1]);pline6=G(pline4,_,2.5),s=V(n,e,e,.75*x,!1),u=V(n,e,e,.75*x,!0),l=V(e,s,s,3*x,!0),h=V(e,u,u,3*x,!1);var w=new N;w.addPoint(s),w.addPoint(l),w.addPoint(h),w.addPoint(u),w.addPoint(s),m.addGeometry(w);var b=G(s,u,.25),P=G(s,u,.75);i=V(s,b,b,.3*3*x,!1),o=V(s,b,b,1.5*x,!1),c=V(s,P,P,.3*3*x,!1),r=V(s,b,b,.7*3*x,!1),a=V(s,P,P,1.5*x,!1),p=V(s,P,P,.7*3*x,!1);var S=new N;S.addPoint(i),S.addPoint(r),m.addGeometry(S);var C=new N;C.addPoint(p),C.addPoint(c),m.addGeometry(C);var M=new N;M.addPoint(o),M.addPoint(a),m.addGeometry(M);var T,A,E,I,L=new z;T=V(_,pline4,pline4,1*v,!0),A=V(_,pline4,pline4,1*v,!1),E=pline6,I=_;var R=new k,O=[T,E,A,I,T];return 0<R.points.length?R.points=O:R.addPoint(O),L.addGeometry(R),[L,m]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制抢险抢修专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,j,V,q,B,U,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,W=t.deepCopy,Z=n.scalePoint,X=n.pathLength,H=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),Y=n.gainPt,K=n.distance,J=n.getPolarPointOfCenterPoint,Q=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new j,o=new U;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p=new j,f=bzPoints.length,d=0;d<=f-1;d++)p.addPoint(bzPoints[d]);var y=new U;y.addGeometry(p);var m=X(bzPoints),g=m*t*4/210;n=Y(bzPoints,m,1/31,void 0)[0],e=W(bzPoints[0]);var v=K(e,n);pline4=Y(bzPoints,m,12.7/13,void 0)[0];var x=W(bzPoints[bzPoints.length-1]);pline6=Z(pline4,x,2.5),s=H(n,e,e,.75*v,!1),l=H(n,e,e,.75*v,!0);var _=new j,w=Z(s,l,.25),b=Z(s,l,.75),P=Z(s,l,.5);c=H(s,w,P,1.5*v,!1);var S=.75*v,C=1.5*v,M=Q(c,e);for(d=0;d<=360;d++){var T=new V({x:c.x+C*Math.cos(d*Math.PI/180),y:c.y-S*Math.sin(d*Math.PI/180)}),A=Q(c,T),E=K(c,T);_.addPoint(J(c,M+A,E))}y.addGeometry(_),i=H(s,w,w,.3*3*v,!1),o=H(s,w,w,1.5*v,!1),u=H(s,b,b,.3*3*v,!1),r=H(s,w,w,.7*3*v,!1),a=H(s,b,b,1.5*v,!1),h=H(s,b,b,.7*3*v,!1);var I=new j;I.addPoint(i),I.addPoint(r),y.addGeometry(I);var L=new j;L.addPoint(h),L.addPoint(u),y.addGeometry(L);var R=new j;R.addPoint(o),R.addPoint(a),y.addGeometry(R);var O,N,k,z,D=new B;O=H(x,pline4,pline4,1*g,!0),N=H(x,pline4,pline4,1*g,!1),k=pline6,z=x;var F=new q,G=[O,k,N,z,O];return 0<F.points.length?F.points=G:F.addPoint(G),D.addGeometry(F),[D,y]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制抢险抢修专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,D,i,F,G,j,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,V=t.deepCopy,q=n.scalePoint,B=n.pathLength,U=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),W=n.gainPt,Z=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new D,o=new j;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new D,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new j;h.addGeometry(s);var c=B(bzPoints),p=c*t*4/210;n=W(bzPoints,c,1/31,void 0)[0],e=V(bzPoints[0]);var f=Z(e,n);pline4=W(bzPoints,c,12.7/13,void 0)[0];var d=V(bzPoints[bzPoints.length-1]);pline6=q(pline4,d,2.5),i=U(n,e,e,.75*f,!1),o=U(n,e,e,.75*f,!0),r=U(e,i,i,3*f,!0),a=U(e,o,o,3*f,!1);var y=new D;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=q(i,o,.35),g=q(i,o,.65),v=U(i,m,g,.8*3*f,!1),x=U(i,m,g,.2*3*f,!1),_=U(i,m,g,1.5*f,!1),w=U(v,x,_,.15*1.5*f,!1),b=U(i,g,m,.8*3*f,!1),P=U(i,g,m,.2*3*f,!1),S=U(i,g,m,1.5*f,!1),C=U(b,P,S,.15*1.5*f,!0),M=new D;M.addPoint(v),M.addPoint(x),h.addGeometry(M);var T=new D;T.addPoint(b),T.addPoint(P),h.addGeometry(T);var A=new D;A.addPoint(_),A.addPoint(w),h.addGeometry(A);var E=new D;E.addPoint(S),E.addPoint(C),h.addGeometry(E);var I,L,R,O,N=new G;I=U(d,pline4,pline4,1*p,!0),L=U(d,pline4,pline4,1*p,!1),R=pline6,O=d;var k=new F,z=[I,R,L,O,I];return 0<k.points.length?k.points=z:k.addPoint(z),N.addGeometry(k),[N,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制安全封锁专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,B,U,W,Z,X,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,H=t.deepCopy,Y=n.scalePoint,K=n.pathLength,J=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),Q=n.gainPt,$=n.distance,tt=n.getPolarPointOfCenterPoint,et=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new B,o=new X;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a=new B,s=bzPoints.length,l=0;l<=s-1;l++)a.addPoint(bzPoints[l]);var u=new X;u.addGeometry(a);var h=K(bzPoints),c=h*t*4/210;n=Q(bzPoints,h,1/31,void 0)[0],e=H(bzPoints[0]);var p=$(e,n);pline4=Q(bzPoints,h,12.7/13,void 0)[0];var f=H(bzPoints[bzPoints.length-1]);pline6=Y(pline4,f,2.5),i=J(n,e,e,.75*p,!1),r=J(n,e,e,.75*p,!0);var d=new B,y=Y(i,r,.35),m=Y(i,r,.65),g=Y(i,r,.5);o=J(i,y,g,1.5*p,!1);var v=.75*p,x=1.5*p,_=et(o,e);for(l=0;l<=360;l++){var w=new U({x:o.x+x*Math.cos(l*Math.PI/180),y:o.y-v*Math.sin(l*Math.PI/180)}),b=et(o,w),P=$(o,w);d.addPoint(tt(o,_+b,P))}u.addGeometry(d);var S=J(i,y,m,.7*3*p,!1),C=J(i,y,m,.3*3*p,!1),M=J(i,y,m,1.5*p,!1),T=J(S,C,M,.15*1.5*p,!1),A=J(i,m,y,.7*3*p,!1),E=J(i,m,y,.3*3*p,!1),I=J(i,m,y,1.5*p,!1),L=J(A,E,I,.15*1.5*p,!0),R=new B;R.addPoint(S),R.addPoint(C),u.addGeometry(R);var O=new B;O.addPoint(A),O.addPoint(E),u.addGeometry(O);var N=new B;N.addPoint(M),N.addPoint(T),u.addGeometry(N);var k=new B;k.addPoint(I),k.addPoint(L),u.addGeometry(k);var z,D,F,G,j=new Z;z=J(f,pline4,pline4,1*c,!0),D=J(f,pline4,pline4,1*c,!1),F=pline6,G=f;var V=new W,q=[z,F,D,G,z];return 0<V.points.length?V.points=q:V.addPoint(q),j.addGeometry(V),[j,u]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制安全封锁专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,q,B,U,W,Z,i,r,o){function X(t){this.$type="TankRendezvousAreaPropety,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3})}var a=t.extend2,H=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine),Y=(n.gainPt,n.distance),K=n.calLinePerpenPoints,J=n.optionWay;return a(X,e),X.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new B,o=new B,a=new B,s=new B,l=new B,u=new B,h=new B,c=new B,p=new B,f=0,d=0,y=0,m=[],g=new B;if(1==i){if(m[0]=n[0],null!=e)if(n[0].x==e.x&&n[0].y==e.y){var v=new B({x:e.x+10,y:e.y});m[1]=v}else m[1]=e;var x=new B;y=Y(m[0],m[1]),K(m[0],m[1],y/2,y/2,g,x,!0),m[2]=x}else if(2==i){for(var _=0;_<i;_++)m[_]=n[_];if(null!=e)if(n[1].x==e.x&&n[1].y==e.y){v=new B({x:e.x,y:e.y});m[2]=v}else m[2]=e;else{x=new B;y=Y(m[0],m[1]),K(m[0],m[1],y/2,y/2,g,x,!0),m[2]=x}}else if(3==i)for(_=0;_<i;_++)m[_]=n[_];var w=Y(m[0],m[1])+1,b=Y(m[1],m[2])+1,P=Y(m[2],m[0])+1;w<b&&P<b?(g=m[0],m[0]=m[1],m[1]=m[2],m[2]=g):w<P&&b<P&&(g=m[1],m[1]=m[0],m[0]=m[2],m[2]=g),J(m[0],m[1],m[2]),f=(m[0].y-m[1].y)/(m[0].x-m[1].x+1),d=Y(m[1],m[0])+1,m[0].y>m[1].y?f<0?X.calculatePoints(f,m[2],d/3,a,o):X.calculatePoints(f,m[2],d/3,o,a):f<0?X.calculatePoints(f,m[2],d/3,o,a):X.calculatePoints(f,m[2],d/3,a,o),f=(m[1].y-m[2].y)/(m[1].x-m[2].x+1),d=Y(m[2],m[1])+1,m[1].y>m[2].y?f<0?X.calculatePoints(f,m[0],d/3,l,s):X.calculatePoints(f,m[0],d/3,s,l):f<0?X.calculatePoints(f,m[0],d/3,s,l):X.calculatePoints(f,m[0],d/3,l,s),f=(m[2].y-m[0].y)/(m[2].x-m[0].x+1),d=Y(m[2],m[0])+1,m[2].y>m[0].y?f<0?X.calculatePoints(f,m[1],d/3,r,p):X.calculatePoints(f,m[1],d/3,p,r):f<0?X.calculatePoints(f,m[1],d/3,p,r):X.calculatePoints(f,m[1],d/3,r,p),h.x=(m[0].x+m[1].x)/2,h.y=(m[0].y+m[1].y)/2,f=(m[0].y-m[1].y)/(m[0].x-m[1].x+1),d=Y(m[1],m[0])+1,m[0].y>m[1].y?f<0?X.calculatePoints(f,h,d/6,u,c):X.calculatePoints(f,h,d/6,c,u):f<0?X.calculatePoints(f,h,d/6,c,u):X.calculatePoints(f,h,d/6,u,c);var S=new Array;S[0]=m[0],S[1]=l,S[2]=u,S[3]=h;var C=new Array;C[0]=h,C[1]=c,C[2]=p,C[3]=m[1];var M=new Array;M[0]=m[1],M[1]=r,M[2]=o,M[3]=m[2];var T=new Array;T[0]=m[2],T[1]=a,T[2]=s,T[3]=m[0];var A=new q,E=new Z,I=new U,L=new W,R=H(S),O=R.length;for(_=0;_<O;_++)A.addPoint(R[_]),I.addPoint(R[_]);for(O=(R=H(C)).length,_=0;_<O;_++)A.addPoint(R[_]),I.addPoint(R[_]);for(O=(R=H(M)).length,_=0;_<O;_++)A.addPoint(R[_]),I.addPoint(R[_]);for(O=(R=H(T)).length,_=0;_<O;_++)A.addPoint(R[_]),I.addPoint(R[_]);E.addGeometry(A),L.addGeometry(I);var N,k,z=L.envelope().center();N=k=Y(z,r),k=Y(z,o),N=Math.min(k,N),k=Y(z,a),N=Math.min(k,N),k=Y(z,s),N=Math.min(k,N),k=Y(z,l),N=Math.min(k,N),k=Y(z,u),N=Math.min(k,N),k=Y(z,h),N=Math.min(k,N),k=Y(z,c),N=Math.min(k,N),k=Y(z,p),N=Math.min(k,N);var D=new B({x:z.x+N,y:z.y}),F=new B({x:z.x-N,y:z.y}),G=new B({x:z.x,y:z.y+N/2}),j=new B({x:z.x,y:z.y-N/2}),V=new q;return V.addPoint(D),V.addPoint(G),V.addPoint(F),V.addPoint(j),V.addPoint(D),E.addGeometry(V),[E]},X.calculatePoints=function(t,e,n,i,r){var o=e.x,a=e.y,s=a-t*o,l=t*t+1,u=2*t*(s-a)-2*o,h=(s-a)*(s-a)+o*o-n*n;i.x=parseInt((-u-Math.sqrt(u*u-4*l*h))/(2*l)),r.x=parseInt((-u+Math.sqrt(u*u-4*l*h))/(2*l)),i.y=parseInt(t*i.x+s),r.y=parseInt(t*r.x+s)},X.prototype.getType=function(){return"tankrendezvousareapropety"},X.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多3个点用于绘制坦克集结待机地域双击结束绘制在地图上点击绘制第1个点。"},X.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},o.exports=X}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,y,m,i,r,g,o,a,s){function l(t){this.$type="TelecocableAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,v=(t.deepCopy,n.scalePoint,n.vertex,n.midPoint),x=(n.angle,n.bzLine,n.bTypeline,n.gainPt1),_=n.pathLength,w=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new y,o=new g;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p;p=_(this.newPoints),e=x(this.newPoints,p,.45)[0],r=x(this.newPoints,p,.45)[1],n=x(this.newPoints,p,.5)[0],o=x(this.newPoints,p,.5)[1],i=v(e,n),a=w(e,n)/2,l=new y,u=new y,h=new y,c=new g;for(var f=0;f<=360;f++)s=2*Math.PI*f/360,l.addPoint(new m({x:i.x+a*Math.cos(s),y:i.y+a*Math.sin(s)}));c.addGeometry(l);for(var d=0;d<=r;d++)u.addPoint(this.newPoints[d]);for(u.addPoint(e),h.addPoint(n),d=o+1;d<this.newPoints.length;d++)h.addPoint(this.newPoints[d]);return c.addGeometry(u),c.addGeometry(h),[c,i]},l.prototype.getType=function(){return"telecocable"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多30个点用于绘制通信电缆双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,b,P,i,r,S,o,a,s){function l(t){this.$type="TelecocableAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,C=(t.deepCopy,n.scalePoint),M=n.vertex,T=n.midPoint,A=(n.angle,n.bzLine,n.bTypeline,n.gainPt1),E=n.pathLength,I=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new b,o=new S;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x;p=E(this.newPoints),e=A(this.newPoints,p,.45)[0],r=A(this.newPoints,p,.45)[1],n=A(this.newPoints,p,.5)[0],o=A(this.newPoints,p,.5)[1],i=T(e,n),a=I(e,n)/2,l=new b,u=new b,h=new b,c=new S;for(var _=0;_<=360;_++)s=2*Math.PI*_/360,l.addPoint(new P({x:i.x+a*Math.cos(s),y:i.y+a*Math.sin(s)}));c.addGeometry(l);for(var w=0;w<=r;w++)u.addPoint(this.newPoints[w]);for(u.addPoint(e),h.addPoint(n),w=o+1;w<this.newPoints.length;w++)h.addPoint(this.newPoints[w]);return c.addGeometry(u),c.addGeometry(h),f=C(e,n,.2),d=C(e,n,.6),y=C(e,n,.8),m=M(e,n,d,.2*a,!1),g=M(e,n,d,.2*a,!0),v=new b,x=new b,v.addPoint(m),v.addPoint(y),v.addPoint(g),x.addPoint(f),x.addPoint(y),c.addGeometry(v),c.addGeometry(x),[c,n]},l.prototype.getType=function(){return"telecocable"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多30个点用于绘制通信光缆双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,V,q,B,U,W,i,r,o){function a(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var s=t.extend2,Z=t.deepCopy,X=n.scalePoint,H=n.pathLength,Y=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),K=n.gainPt,J=n.distance,Q=n.getPolarPointOfCenterPoint,$=n.polarAngle360;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new V,o=new W;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a=new V,s=bzPoints.length,l=0;l<=s-1;l++)a.addPoint(bzPoints[l]);var u=new W;u.addGeometry(a);var h=H(bzPoints),c=h*t*4/210;n=K(bzPoints,h,1/31,void 0)[0],e=Z(bzPoints[0]);var p=J(e,n);pline4=K(bzPoints,h,12.7/13,void 0)[0];var f=Z(bzPoints[bzPoints.length-1]);pline6=X(pline4,f,2.5),i=Y(n,e,e,.75*p,!1),r=Y(n,e,e,.75*p,!0);var d=new V,y=X(i,r,.25),m=X(i,r,.5),g=X(i,r,.7),v=X(i,r,.75),x=X(i,r,.3);o=Y(i,m,m,1.5*p,!1);var _=.75*p,w=1.5*p,b=$(o,e);for(l=0;l<=360;l++){var P=new q({x:o.x+w*Math.cos(l*Math.PI/180),y:o.y-_*Math.sin(l*Math.PI/180)}),S=$(o,P),C=J(o,P);d.addPoint(Q(o,b+S,C))}if(u.addGeometry(d),bzPoints[0].x<=bzPoints[1].x)var M=Y(i,m,y,.75*p,!1),T=Y(i,m,y,2.25*p,!1),A=Y(i,m,v,2.25*p,!1),E=Y(i,m,v,1.35*p,!1),I=Y(i,m,g,1.35*p,!1),L=Y(i,m,m,.3*3*p,!1),R=Y(i,m,m,.75*p,!1);else M=Y(i,m,v,.75*p,!1),T=Y(i,m,v,2.25*p,!1),A=Y(i,m,y,2.25*p,!1),E=Y(i,m,y,1.35*p,!1),I=Y(i,m,x,1.35*p,!1),L=Y(i,m,m,.3*3*p,!1),R=Y(i,m,m,.75*p,!1);var O=new V;O.addPoint(M),O.addPoint(T),O.addPoint(A),O.addPoint(E),O.addPoint(I),O.addPoint(L),O.addPoint(R),O.addPoint(M),u.addGeometry(O);var N,k,z,D,F=new U;N=Y(f,pline4,pline4,1*c,!0),k=Y(f,pline4,pline4,1*c,!1),z=pline6,D=f;var G=new B,j=[N,z,k,D,N];return 0<G.points.length?G.points=j:G.addPoint(j),F.addGeometry(G),[F,u]},a.prototype.getType=function(){return"arsenal"},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制运输专业队预备队在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,z,i,D,F,G,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,j=t.deepCopy,V=n.scalePoint,q=n.pathLength,B=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),U=n.gainPt,W=n.distance;n.getPolarPointOfCenterPoint,n.polarAngle360;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new z,o=new G;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new z,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new G;h.addGeometry(s);var c=q(bzPoints),p=c*t*4/210;n=U(bzPoints,c,1/31,void 0)[0],e=j(bzPoints[0]);var f=W(e,n);pline4=U(bzPoints,c,12.7/13,void 0)[0];var d=j(bzPoints[bzPoints.length-1]);pline6=V(pline4,d,2.5),i=B(n,e,e,.75*f,!1),o=B(n,e,e,.75*f,!0),r=B(e,i,i,3*f,!0),a=B(e,o,o,3*f,!1);var y=new z;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=V(i,o,.2),g=V(i,o,.5),v=V(i,o,.75),x=V(i,o,.8),_=V(i,o,.25);if(bzPoints[0].x<=bzPoints[1].x)var w=B(i,g,m,.2*3*f,!1),b=B(i,g,m,.8*3*f,!1),P=B(i,g,x,.8*3*f,!1),S=B(i,g,x,.4*3*f,!1),C=B(i,g,v,.4*3*f,!1),M=B(i,g,g,.75*f,!1),T=B(i,g,g,.2*3*f,!1);else w=B(i,g,x,.2*3*f,!1),b=B(i,g,x,.8*3*f,!1),P=B(i,g,m,.8*3*f,!1),S=B(i,g,m,.4*3*f,!1),C=B(i,g,_,.4*3*f,!1),M=B(i,g,g,.75*f,!1),T=B(i,g,g,.2*3*f,!1);var A=new z;A.addPoint(w),A.addPoint(b),A.addPoint(P),A.addPoint(S),A.addPoint(C),A.addPoint(M),A.addPoint(T),A.addPoint(w),h.addGeometry(A);var E,I,L,R,O=new F;E=B(d,pline4,pline4,1*p,!0),I=B(d,pline4,pline4,1*p,!1),L=pline6,R=d;var N=new D,k=[E,L,I,R,E];return 0<N.points.length?N.points=k:N.addPoint(k),O.addGeometry(N),[O,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制运输专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,M,T,i,r,A,o,a,s){function l(t){this.$type="UnderWatercableAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,E=(t.deepCopy,n.scalePoint),I=n.vertex,L=n.midPoint,R=(n.angle,n.getThirdPoint),O=(n.bTypeline,n.gainPt1),N=n.pathLength,k=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new M,o=new A;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w;w=N(this.newPoints),e=O(this.newPoints,w,.45)[0],c=O(this.newPoints,w,.45)[1],n=O(this.newPoints,w,.5)[0],p=O(this.newPoints,w,.5)[1],i=L(e,n),f=k(e,n)/2;var b="right";n.x<e.x&&(b="left"),r=R(e,i,Math.PI/3,f,b),o=R(e,i,2*Math.PI/3,f,b);var P=!0;n.x<e.x&&(P=!1),a=I(r,o,r,.75*f,!P),s=I(r,o,o,.75*f,!P),l=E(a,s,1.75),u=E(s,a,1.75),h=I(e,n,i,f,!P),y=new M,m=new M,g=new M,v=new M,x=new M,v.addPoint(l),v.addPoint(s),v.addPoint(h),x.addPoint(h),x.addPoint(a),x.addPoint(u),(_=new A).addGeometry(v),_.addGeometry(x);for(var S=0;S<=360;S++)d=2*Math.PI*S/360,y.addPoint(new T({x:i.x+f*Math.cos(d),y:i.y+f*Math.sin(d)}));_.addGeometry(y);for(var C=0;C<=c;C++)m.addPoint(this.newPoints[C]);for(m.addPoint(e),g.addPoint(n),C=p+1;C<this.newPoints.length;C++)g.addPoint(this.newPoints[C]);return _.addGeometry(m),_.addGeometry(g),[_,i]},l.prototype.getType=function(){return"underwatercable"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多30个点用于绘制水下电缆双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,O,N,i,r,k,o,a,s){function l(t){this.$type="Underwatercable1Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,z=(t.deepCopy,n.scalePoint),D=n.vertex,F=n.midPoint,G=(n.angle,n.getThirdPoint),j=(n.bTypeline,n.gainPt1),V=n.pathLength,q=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new O,o=new k;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w;w=V(this.newPoints),e=j(this.newPoints,w,.45)[0],c=j(this.newPoints,w,.45)[1],n=j(this.newPoints,w,.5)[0],p=j(this.newPoints,w,.5)[1],i=F(e,n),f=q(e,n)/2;var b="right";n.x<e.x&&(b="left"),r=G(e,i,Math.PI/3,f,b),o=G(e,i,2*Math.PI/3,f,b);var P,S,C,M,T,A,E,I=!0;n.x<e.x&&(I=!1),a=D(r,o,r,.75*f,!I),s=D(r,o,o,.75*f,!I),l=z(a,s,1.75),u=z(s,a,1.75),h=D(e,n,i,f,!I),y=new O,m=new O,g=new O,v=new O,x=new O,v.addPoint(l),v.addPoint(s),v.addPoint(h),x.addPoint(h),x.addPoint(a),x.addPoint(u),(_=new k).addGeometry(v),_.addGeometry(x);for(var L=0;L<=360;L++)d=2*Math.PI*L/360,y.addPoint(new N({x:i.x+f*Math.cos(d),y:i.y+f*Math.sin(d)}));_.addGeometry(y);for(var R=0;R<=c;R++)m.addPoint(this.newPoints[R]);for(m.addPoint(e),g.addPoint(n),R=p+1;R<this.newPoints.length;R++)g.addPoint(this.newPoints[R]);return _.addGeometry(m),_.addGeometry(g),P=z(e,n,.2),S=z(e,n,.6),C=z(e,n,.8),M=D(e,n,S,.2*f,!1),T=D(e,n,S,.2*f,!0),A=new O,E=new O,A.addPoint(M),A.addPoint(C),A.addPoint(T),E.addPoint(P),E.addPoint(C),_.addGeometry(A),_.addGeometry(E),[_]},l.prototype.getType=function(){return"underwatercable1"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多30个点用于绘制水下光缆双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,x,_,i,r,w,o,a,s){function l(t){this.$type="UnderGroundCableAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,b=(t.deepCopy,n.scalePoint,n.vertex),P=n.midPoint,S=(n.angle,n.bzLine,n.bTypeline,n.gainPt1),C=n.pathLength,M=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new x,o=new w;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y;y=C(this.newPoints),e=S(this.newPoints,y,.45)[0],a=S(this.newPoints,y,.45)[1],n=S(this.newPoints,y,.5)[0],s=S(this.newPoints,y,.5)[1],i=P(e,n),l=M(e,n)/2;var m=!0;n.x<e.x&&(m=!1),r=b(e,n,e,l,!m),o=b(e,n,n,l,!m),h=new x,c=new x,p=new x,(f=new x).addPoint(r),f.addPoint(o),(d=new w).addGeometry(f);for(var g=0;g<=360;g++)u=2*Math.PI*g/360,h.addPoint(new _({x:i.x+l*Math.cos(u),y:i.y+l*Math.sin(u)}));d.addGeometry(h);for(var v=0;v<=a;v++)c.addPoint(this.newPoints[v]);for(c.addPoint(e),p.addPoint(n),v=s+1;v<this.newPoints.length;v++)p.addPoint(this.newPoints[v]);return d.addGeometry(c),d.addGeometry(p),[d,i]},l.prototype.getType=function(){return"undergroundcable"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多30个点用于绘制地下通信电缆双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,M,T,i,r,A,o,a,s){function l(t){this.$type="UnderGroundCableAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.newPoints=[],this.p1=null,this.p2=null}var u=t.extend2,E=(t.deepCopy,n.scalePoint),I=n.vertex,L=n.midPoint,R=(n.angle,n.bzLine,n.bTypeline,n.gainPt1),O=n.pathLength,N=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new M,o=new A;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}this.newPoints=[];for(var a=0;a<i-1;a++)n[a].x===n[a+1].x&&n[a].y===n[a+1].y||this.newPoints.push(n[a]);return this.newPoints.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y;y=O(this.newPoints),e=R(this.newPoints,y,.45)[0],a=R(this.newPoints,y,.45)[1],n=R(this.newPoints,y,.5)[0],s=R(this.newPoints,y,.5)[1],i=L(e,n),l=N(e,n)/2;var m,g,v,x,_,w,b,P=!0;n.x<e.x&&(P=!1),r=I(e,n,e,l,!P),o=I(e,n,n,l,!P),h=new M,c=new M,p=new M,(f=new M).addPoint(r),f.addPoint(o),(d=new A).addGeometry(f);for(var S=0;S<=360;S++)u=2*Math.PI*S/360,h.addPoint(new T({x:i.x+l*Math.cos(u),y:i.y+l*Math.sin(u)}));d.addGeometry(h);for(var C=0;C<=a;C++)c.addPoint(this.newPoints[C]);for(c.addPoint(e),p.addPoint(n),C=s+1;C<this.newPoints.length;C++)p.addPoint(this.newPoints[C]);return d.addGeometry(c),d.addGeometry(p),m=E(e,n,.2),g=E(e,n,.6),v=E(e,n,.8),x=I(e,n,g,.2*l,!1),_=I(e,n,g,.2*l,!0),w=new M,b=new M,w.addPoint(x),w.addPoint(v),w.addPoint(_),b.addPoint(m),b.addPoint(v),d.addGeometry(w),d.addGeometry(b),[d]},l.prototype.getType=function(){return"undergroundcable"},l.prototype.getDescription=function(){return"在地图上绘制多个点默认最少2个点最多30个点用于绘制地下通信光缆双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(103),n(4),n(1),n(2),n(3),n,e,t],void 0===(r=function(t,n,e,i,l,u,r,o,a){function s(t){this.$type="UnestablishedStreetAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||3,e.maxCpt=e.maxCpt||30,n.call(this,e)}var h=t.extend2,c=e.pathLength,p=e.vertex;return h(s,n),s.prototype.getGraphParts=function(t){for(var e=c(this.newPoints)*t/200,n=new l,i=new l,r=0;r<this.newPoints.length-1;r++)if(this.newPoints[r].x!=this.newPoints[r+1].x){var o=p(this.newPoints[r],this.newPoints[r+1],this.newPoints[r],e,!0),a=p(this.newPoints[r],this.newPoints[r+1],this.newPoints[r],e,!1);n.addPoint(o),i.addPoint(a)}var s=new u;return s.addGeometry(n),s.addGeometry(i),[s]},s.prototype.getDescription=function(){return"在地图上绘制多个点默认最少3个点最多30个点用于绘制未建成主干道双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,k,i,z,D,F,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,G=t.deepCopy,j=n.scalePoint,V=n.pathLength,q=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),B=n.gainPt,U=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new k,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new k,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new F;m.addGeometry(f);var g=V(bzPoints),v=g*t*4/210;n=B(bzPoints,g,1/31,void 0)[0],e=G(bzPoints[0]);var x=U(e,n);pline4=B(bzPoints,g,12.7/13,void 0)[0];var _=G(bzPoints[bzPoints.length-1]);pline6=j(pline4,_,2.5),s=q(n,e,e,.75*x,!1),u=q(n,e,e,.75*x,!0),l=q(e,s,s,3*x,!0),h=q(e,u,u,3*x,!1);var w=new k;w.addPoint(s),w.addPoint(l),w.addPoint(h),w.addPoint(u),w.addPoint(s),m.addGeometry(w);var b=j(s,u,.25),P=j(s,u,.75);i=q(s,b,b,.3*3*x,!1),o=q(s,b,b,1.5*x,!1),c=q(s,P,P,.3*3*x,!1),r=q(s,b,b,.7*3*x,!1),a=q(s,P,P,1.5*x,!1),p=q(s,P,P,.7*3*x,!1);var S=new k;S.addPoint(i),S.addPoint(r),m.addGeometry(S);var C=new k;C.addPoint(p),C.addPoint(c),m.addGeometry(C);var M=new k;if(M.addPoint(o),M.addPoint(a),m.addGeometry(M),bzPoints[0].x<=bzPoints[1].x)var T=q(e,n,n,1.5*x,!0);else T=q(e,n,n,1.5*x,!1);var A,E,I,L,R=new D;A=q(_,pline4,pline4,1*v,!0),E=q(_,pline4,pline4,1*v,!1),I=pline6,L=_;var O=new z,N=[A,I,E,L,A];return 0<O.points.length?O.points=N:O.addPoint(N),R.addGeometry(O),[R,m,T]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制水路抢修专业队在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(1),n(2),n(3),n,e,t],void 0===(r=function(t,n,e,x,_,w,i,r,o){function a(t){this.$type="WithdrawAlgorithm,http://www.Gs.com";var e=t||{};e.minCpt=e.minCpt||3,e.maxCpt=e.maxCpt||3,n.call(this,e)}var s=t.extend2,b=(e.pathLength,e.vertex),P=e.midPoint,S=e.angle,C=e.distance,M=(e.scalePoint,e.bTypeline);return s(a,n),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(this.newPoints=[],this.newPoints=this.newPoints.concat(n),i<2){this.newPoints.push(e);var r=new _;r.addPoint(this.newPoints);var o=new w;return o.addGeometry(r),[o]}return null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||this.newPoints.push(e)),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e=[],n=[],i=C(this.newPoints[0],this.newPoints[1])/3*2,r=angle(this.newPoints[0],this.newPoints[1])*Math.PI/180,o=new x({x:this.newPoints[0].x+i*Math.cos(r),y:this.newPoints[0].y-i*Math.sin(r)}),a=b(this.newPoints[0],this.newPoints[1],o,i/3,!0);e.push(this.newPoints[0]),e.push(a),e.push(this.newPoints[1]),n.push(a);var s=C(a,this.newPoints[2])/6,l=(angle(s,this.newPoints[2]),Math.PI,new x({x:a.x+s*Math.cos(r),y:a.y-s*Math.sin(r)})),u=b(a,this.newPoints[2],l,4*s,!0);n.push(u),n.push(this.newPoints[2]);var h=new _,c=new _;h.addPoint(M(e,e.length)),c.addPoint(M(n,n.length));var p=c.points[c.points.length-2],f=P(p,this.newPoints[2]),d=S(p,this.newPoints[2])*Math.PI/180,y=b(this.newPoints[2],p,f,s,!0,15+d),m=b(this.newPoints[2],p,f,s,!0,d-15),g=new _;g.addPoint(y),g.addPoint(this.newPoints[2]),g.addPoint(m);var v=new w;return v.addGeometry(h),v.addGeometry(c),v.addGeometry(g),[v]},a.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制撤退路线在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,w,b,i,r,P,o,a,s){function l(t){this.$type="AbatisAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30})}var u=t.extend2,S=(t.deepCopy,n.scalePoint,n.pathLength),C=(n.vertex,n.angle,n.bzLine,n.bTypeline),M=n.calPathPerpenPoints,T=n.calLinePerpenPoints,A=n.gainPt,E=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=new w,o=new P;return r.addPoint(n[0]),r.addPoint(e),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=C(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=S(bzPoints),n=parseInt(e/14e4),i=new P,r=[],o=[];o[0]=bzPoints[0];for(var a=1;a<n+1;a++){var s=a/n,l=null;l=1==s?bzPoints[bzPoints.length-1]:0==s?bzPoints[0]:A(bzPoints,e,s,0)[0],o[a]=new b,o[a].x=l.x,o[a].y=l.y}o[n]=bzPoints[bzPoints.length-1];var u=new b,h=new b,c=[],p=S(o),f=o.length;c[0]=bzPoints[0];for(var d=1;d<f;d++)M(o,d/o.length*p,0,u,h,!0),c[d]=new b,c[d].x=h.x,c[d].y=h.y;var y=[],m=!1,g=c.length-1;for(a=0;a<g;a++)m=c[a].x==c[a+1].x,len=E(c[a],c[a+1]),y[4*a]=c[a],T(c[a],c[a+1],.75*len,78e3,h,h,m),y[4*a+1]=new b,y[4*a+1].x=h.x,y[4*a+1].y=h.y,T(c[a],c[a+1],.25*len,78e3,h,h,m),y[4*a+3]=new b,y[4*a+3].x=h.x,y[4*a+3].y=h.y,T(c[a],c[a+1],.5*len,117e3,h,h,m),y[4*a+2]=new b,y[4*a+2].x=h.x,y[4*a+2].y=h.y;for(var v=C(y,y.length),x=v.length-1,_=0;_<x;_++)r[_]=new w,r[_].addPoint([v[_],v[_+1]]),i.addGeometry(r[_]);return[i]},l.prototype.getType=function(){return"abatispropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多30个点用于绘制蝮蛇型铁丝网双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,L,i,R,O,N,r,o,a){function s(t){this.$type="AirMobileAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,k=(t.deepCopy,n.scalePoint),z=n.pathLength,D=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),F=n.gainPt,G=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new L,o=new N;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_=new N,w=z(bzPoints),b=w*t*4/210;e=F(bzPoints,w,6/13,m)[0],n=F(bzPoints,w,7/13,g)[0],i=F(bzPoints,w,6.05/13,v)[0],o=F(bzPoints,w,6.95/13,x)[0],m=F(bzPoints,w,6/13,m)[1],g=F(bzPoints,w,7/13,g)[1],v=F(bzPoints,w,6.05/13,v)[1],x=F(bzPoints,w,6.95/13,x)[1];var P=G(i,o);l=k(i,o,.2),r=D(i,o,i,.2*P,!0),u=D(l,o,l,.2*P,!0),h=D(l,o,l,.2*P,!1),pcmiddle1=new L,pcmiddle1.addPoint(l),pcmiddle1.addPoint(h),pcmiddle1.addPoint(i),pcmiddle1.addPoint(l),pcmiddle1.addPoint(r),pcmiddle1.addPoint(l),pcmiddle1.addPoint(u),_.addGeometry(pcmiddle1),c=k(i,o,.4),d=k(i,o,.75),p=D(c,o,c,.3*P,!0),f=D(c,o,c,.3*P,!1),pcmiddle2=new L,pcmiddle2.addPoint(f),pcmiddle2.addPoint(d),pcmiddle2.addPoint(p),_.addGeometry(pcmiddle2),pcmiddleline=new L,pcmiddleline.addPoint(i),pcmiddleline.addPoint(o),_.addGeometry(pcmiddleline),pcPline1=new L;for(var S=0;S<m;S++)pcPline1.addPoint(bzPoints[S]);pcPline1.addPoint(e),_.addGeometry(pcPline1),pcPline2=new L,pcPline2.addPoint(n);for(var C=bzPoints.length,M=g;M<C;M++)pcPline2.addPoint(bzPoints[M]);_.addGeometry(pcPline2),a=F(bzPoints,w,12.7/13,void 0)[0];var T=bzPoints[C-1];s=k(a,T,2.5);var A=new O,E=[y=D(T,a,a,b,!0),s,D(T,a,a,b,!1),T,y],I=new R;return 0<I.points.length?I.points=E:I.addPoint(E),A.addGeometry(I),[A,_]},s.prototype.getType=function(){return"airmobile"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制空中机动技术双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,O,i,N,k,z,r,o,a){function s(t){this.$type="AirwayAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,D=t.deepCopy,F=n.scalePoint,G=n.pathLength,j=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),V=n.gainPt;n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new O,o=new z;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v=new z,x=G(bzPoints),_=x*t*4/210;e=V(bzPoints,x,5/11,m)[0],r=V(bzPoints,x,5.7/11,g)[0],m=V(bzPoints,x,5/11,m)[1],g=V(bzPoints,x,5.7/11,g)[1],s=F(e,r,1/7),h=F(e,r,2/7),f=F(e,r,4/7),d=F(e,r,6/7),n=j(e,s,e,_,!0),i=j(e,s,e,_,!1),l=j(e,s,s,_,!0),u=j(e,s,s,_,!1);var w=new O;w.addPoint(i),w.addPoint(n),w.addPoint(l),w.addPoint(u),w.addPoint(i),v.addGeometry(w),c=j(s,h,h,2*_,!0),p=j(s,h,h,2*_,!1);var b=new O;b.addPoint(p),b.addPoint(f),b.addPoint(c),v.addGeometry(b);var P=new O;P.addPoint(s),P.addPoint(d),v.addGeometry(P);for(var S=new O,C=0;C<m;C++)S.addPoint(bzPoints[C]);S.addPoint(e),v.addGeometry(S);var M=new O;M.addPoint(r);for(var T=bzPoints.length,A=g;A<T;A++)M.addPoint(bzPoints[A]);v.addGeometry(M),o=V(bzPoints,x,12.7/13,void 0)[0];var E=D(bzPoints[T-1]);a=F(o,E,2.5);var I=new k,L=[y=j(E,o,o,_,!0),a,j(E,o,o,_,!1),E,y],R=new N;return 0<R.points.length?R.points=L:R.addPoint(L),I.addGeometry(R),[I,v]},s.prototype.getType=function(){return"airway"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制空中运输双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n(24),n,e,t],void 0===(r=function(t,e,n,X,i,H,Y,K,J,r,o,a){var s=t.extend2,Q=t.deepCopy,$=n.scalePoint,tt=n.pathLength,et=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),nt=n.gainPt,it=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function u(t){this.$type="AntiaircraftForcesAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return s(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new X,o=new K;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){bzPoints[0];var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C,M,T=new K,A=tt(bzPoints),E=A*t*4/210,I=new Y;e=nt(bzPoints,A,6/13,C)[0],n=nt(bzPoints,A,7/13,M)[0],C=nt(bzPoints,A,6/13,C)[1],M=nt(bzPoints,A,7/13,M)[1];var L=it(e,n)/10;f=$(e,n,.1),d=$(e,n,.3),y=$(e,n,.4),m=$(e,n,.8),g=$(e,n,.85),v=$(e,n,.93),S=$(e,n,.99),l=et(e,f,f,L,!0),u=et(e,d,d,L,!0),h=et(e,y,y,L,!0),c=et(e,m,m,L,!0),p=et(e,g,g,.5*L,!0),x=et(e,f,f,L,!1),_=et(e,d,d,L,!1),w=et(e,y,y,L,!1),b=et(e,m,m,L,!1),P=et(e,g,g,.5*L,!1);var R=new X;R.addPoint(f),R.addPoint(v),T.addGeometry(R);var O=new X;O.addPoint(_),O.addPoint(y),O.addPoint(u),T.addGeometry(O);var N=new X;N.addPoint(l),N.addPoint(x),T.addGeometry(N);var k=new X;k.addPoint(w),k.addPoint(b),T.addGeometry(k);var z=new X;z.addPoint(h),z.addPoint(c),T.addGeometry(z);var D=[P,v,p,S,P];0<(U=new H).points.length?U.points=D:U.addPoint(D),(I=new Y).addGeometry(U);for(var F=new X,G=0;G<C;G++)F.addPoint(bzPoints[G]);T.addGeometry(F);var j=new X;j.addPoint(n);for(var V=bzPoints.length,q=M;q<V;q++)j.addPoint(bzPoints[q]);T.addGeometry(j),a=nt(bzPoints,A,12.7/13,void 0)[0];var B=Q(bzPoints[V-1]).copy();s=$(a,B,2.5);new Y;arrow1=et(B,a,a,E,!0),i=et(B,a,a,E,!1),r=s,o=B;var U=new H;D=[arrow1,r,i,o,arrow1];0<U.points.length?U.points=D:U.addPoint(D);var W=new Y;W.addGeometry(U);var Z=new J;return Z.addGeometry(I),Z.addGeometry(W),[T,Z]},u.prototype.getType=function(){return"antiaircraftforcespropety"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制防空兵行军纵队双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,N,i,k,z,D,r,o,a){function s(t){this.$type="ArtilleryAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=[],this.p2=[],this.p3=[]}var l=t.extend2,F=t.deepCopy,G=n.scalePoint,j=n.pathLength,V=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),q=n.gainPt;n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new N,o=new D;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_=new D,w=new N,b=bzPoints.length,P=0;P<=b-1;P++)w.addPoint(bzPoints[P]);_.addGeometry(w);var S=j(bzPoints),C=S*t*1/60;e=q(bzPoints,S,.3,m)[0],n=q(bzPoints,S,.4,g)[0],i=q(bzPoints,S,.6,v)[0],r=q(bzPoints,S,.7,x)[0],m=q(bzPoints,S,.3,m)[1],g=q(bzPoints,S,.4,g)[1],v=q(bzPoints,S,.6,v)[1],x=q(bzPoints,S,.7,x)[1],o=V(e,n,e,.7*C,!0),a=V(e,n,e,.7*C,!1),s=V(e,n,n,.7*C,!0),l=V(e,n,n,.5*C,!1),u=V(i,r,i,.7*C,!0),h=V(i,r,i,.5*C,!1),c=V(i,r,r,.7*C,!0),p=V(i,r,r,.7*C,!1);var M=new N;M.addPoint(o),M.addPoint(s),_.addGeometry(M);var T=new N;T.addPoint(u),T.addPoint(c),_.addGeometry(T);var A=new N;A.addPoint(a),A.addPoint(l),_.addGeometry(A);var E=new N;E.addPoint(h),E.addPoint(p),_.addGeometry(E),f=q(bzPoints,S,12.7/13,void 0)[0];var I=F(bzPoints[b-1]);d=G(f,I,2.5);var L=new z,R=[y=V(I,f,f,C,!0),d,V(I,f,f,C,!1),I,y],O=new k;return 0<O.points.length?O.points=R:O.addPoint(R),L.addGeometry(O),[L,_]},s.prototype.getType=function(){return"artillerypropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制炮兵行军纵队双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,o;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(o=function(t,e,n,M,T,A,E,I,i,o,a){function s(t){this.$type="ArtilleryManenCampmentAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null,this.p3=null}var l=t.extend2,L=(t.deepCopy,n.scalePoint),R=(n.pathLength,n.vertex),O=n.angle,N=(n.bzLine,n.gainPt,n.distance),k=n.optionWay;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1!==i)return 2===i?(this.p1=n[0],this.p2=n[1],this.p3=e):3===i&&(this.p1=n[0],this.p2=n[1],this.p3=n[2]),this.getGraphParts(1);this.p1=n[0],this.p2=e;var r=new M,o=new I;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]},s.prototype.getGraphParts=function(t){this.artillerymanencampmentpropertyLine=new I;var e=new M;e.addPoint(this.p1),e.addPoint(this.p2),e.addPoint(this.p3),e.addPoint(this.p1),this.artillerymanencampmentpropertyLine.addGeometry(e),m1=new T,m2=new T,m3=new T,m4=new T,m5=new T,m6=new T,arrow1=new T,arrow2=new T,arrow3=new T,arrow4=new T;var n=new T;n.x=(this.p1.x+this.p2.x+this.p3.x)/3,n.y=(this.p1.y+this.p2.y+this.p3.y)/3;var i=.2*(N(this.p1,this.p2)+N(this.p2,this.p3)+N(this.p3,this.p1))*t;m1.x=n.x,m1.y=n.y-.4*i,m2.x=n.x,m2.y=n.y+.4*i;var o=new M;o.addPoint(m1),o.addPoint(m2),this.artillerymanencampmentpropertyLine.addGeometry(o),m3.x=n.x-.1*i,m3.y=n.y-.1*i,m4.x=n.x-.1*i,m4.y=n.y+.2*i;var a=new M;a.addPoint(m3),a.addPoint(m4),this.artillerymanencampmentpropertyLine.addGeometry(a),m5.x=n.x+.1*i,m5.y=n.y-.1*i,m6.x=n.x+.1*i,m6.y=n.y+.2*i;var s=new M;s.addPoint(m5),s.addPoint(m6),this.artillerymanencampmentpropertyLine.addGeometry(s),arrow1.x=n.x+.1*i,arrow1.y=n.y+.3*i,arrow2.x=n.x,arrow2.y=n.y+.6*i,arrow3.x=n.x-.1*i,arrow3.y=n.y+.3*i,arrow4.x=n.x,arrow4.y=n.y+.4*i;var l=new A;l.addPoint(arrow1),l.addPoint(arrow2),l.addPoint(arrow3),l.addPoint(arrow4),l.addPoint(arrow1);var u=new E;u.addGeometry(l),m_pWay=k(this.p1,this.p2,this.p3);var h=new T,c=new T,p=new T;h=L(this.p1,this.p2,1.5),c=L(this.p1,this.p2,.5),distance12=N(this.p1,this.p2),p=R(this.p1,this.p2,c,distance12/4,!m_pWay);var f=new T,d=new T,y=new T;f=L(this.p2,this.p3,1.5),d=L(this.p2,this.p3,.5),distance23=N(this.p2,this.p3),y=R(this.p2,this.p3,d,distance23/4,!m_pWay);var m=new T,g=new T,v=new T;m=L(this.p3,this.p1,1.5),g=L(this.p3,this.p1,.5),distance31=N(this.p3,this.p1),v=R(this.p3,this.p1,g,distance31/4,!m_pWay);var x=new M,_=new T;if(m1=-(y.x-p.x)/(y.y-p.y),m2=-(h.x-y.x)/(h.y-y.y),mx1=(p.x+y.x)/2,mx2=(y.x+h.x)/2,my1=(p.y+y.y)/2,my2=(y.y+h.y)/2,_.x=(m1*mx1-m2*mx2+my2-my1)/(m1-m2),_.y=m1*(_.x-mx1)+my1,O=getAngleOfThreePoints(p,_,y),r=N(_,y),0<O||O<0)if(O=180*O/Math.PI,angle1=polarAngle360(_,y),"right"==getSide(p,y,h)){x.addPoint(y);for(var w=angle1;w<=O+angle1;w++)x.addPoint(getPolarPointOfCenterPoint(_,w,r));x.addPoint(p)}else{x.addPoint(p);for(w=O+angle1;w<=angle1+360;w++)x.addPoint(getPolarPointOfCenterPoint(_,w,r));x.addPoint(y)}this.artillerymanencampmentpropertyLine.addGeometry(x);var b=new M,P=new T;if(m1=-(v.x-y.x)/(v.y-y.y),m2=-(f.x-v.x)/(f.y-v.y),mx1=(y.x+v.x)/2,mx2=(v.x+f.x)/2,my1=(y.y+v.y)/2,my2=(v.y+f.y)/2,P.x=(m1*mx1-m2*mx2+my2-my1)/(m1-m2),P.y=m1*(P.x-mx1)+my1,O=getAngleOfThreePoints(y,P,v),r=N(P,v),0<O||O<0)if(O=180*O/Math.PI,angle1=polarAngle360(P,v),"right"==getSide(y,v,f)){b.addPoint(v);for(w=angle1;w<=O+angle1;w++)b.addPoint(getPolarPointOfCenterPoint(P,w,r));b.addPoint(y)}else{b.addPoint(y);for(w=O+angle1;w<=angle1+360;w++)b.addPoint(getPolarPointOfCenterPoint(P,w,r));b.addPoint(v)}this.artillerymanencampmentpropertyLine.addGeometry(b);var S=new M,C=new T;if(m1=-(p.x-v.x)/(p.y-v.y),m2=-(m.x-p.x)/(m.y-p.y),mx1=(v.x+p.x)/2,mx2=(p.x+m.x)/2,my1=(v.y+p.y)/2,my2=(p.y+m.y)/2,C.x=(m1*mx1-m2*mx2+my2-my1)/(m1-m2),C.y=m1*(C.x-mx1)+my1,O=getAngleOfThreePoints(v,C,p),r=N(C,p),0<O||O<0)if(O=180*O/Math.PI,angle1=polarAngle360(C,p),"right"==getSide(v,p,m)){S.addPoint(p);for(w=angle1;w<=O+angle1;w++)S.addPoint(getPolarPointOfCenterPoint(C,w,r));S.addPoint(v)}else{S.addPoint(v);for(w=O+angle1;w<=angle1+360;w++)S.addPoint(getPolarPointOfCenterPoint(C,w,r));S.addPoint(p)}return this.artillerymanencampmentpropertyLine.addGeometry(S),[u,this.artillerymanencampmentpropertyLine]},s.prototype.getType=function(){return"artillerymanencampmentproperty"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制高射炮兵营地在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=o)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,m,i,g,v,x,r,o,a){var s=t.extend2,_=(t.deepCopy,n.scalePoint),w=n.pathLength,b=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),P=n.gainPt,S=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function u(t){this.$type="AttackOrderAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return s(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new m,o=new x;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){for(var e=new m,n=bzPoints.length,i=0;i<=n-1;i++)e.addPoint(bzPoints[i]);var r=new x;r.addGeometry(e);var o=w(bzPoints),a=o*t*4/150;middlePoint=P(bzPoints,o,.5,void 0)[0],middleLeftPt=P(bzPoints,o,.49,void 0)[0],middleRightPt=P(bzPoints,o,.51,void 0)[0],middleTopPt=b(middleLeftPt,middleRightPt,middlePoint,5*a,!1);var s=S(middlePoint,middleTopPt);middlePoint.x;ny=middlePoint.y;var l,u,h,c,p=_(middlePoint,middleTopPt,.6);p.x,p.y;l=b(middlePoint,p,p,s/10,!0),u=b(middlePoint,p,p,s/10,!1),h=_(middlePoint,middleTopPt,.75),c=middleTopPt;var f=new g;f.addPoint(l),f.addPoint(h),f.addPoint(u),f.addPoint(c),f.addPoint(l);var d=new v;d.addGeometry(f);var y=new m;return y.addPoint(middlePoint),y.addPoint(h),r.addGeometry(y),[d,r]},u.prototype.getType=function(){return"attackorder"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制进攻队形双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,l,i,r,o,u,a,s,h){var c=t.extend2,p=(t.deepCopy,n.scalePoint,n.pathLength),f=n.vertex,d=(n.angle,n.bTypeline),y=(n.bzLine,n.gainPt);n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function m(t){this.$type="AttackTurnDefend1Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return c(m,e),m.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new l,o=new u;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=d(a),this.getGraphParts(1)},m.prototype.getGraphParts=function(t){for(var e=new l,n=bzPoints.length,i=0;i<=n-1;i++)e.addPoint(bzPoints[i]);var r=new u;r.addGeometry(e);var o=p(bzPoints),a=o*t*4/150;middlePoint=y(bzPoints,o,.5,void 0)[0],middleLeftPt=y(bzPoints,o,.49,void 0)[0],middleRightPt=y(bzPoints,o,.51,void 0)[0],middleTopPt=f(middleLeftPt,middleRightPt,middlePoint,5*a,!1);var s=new l;return s.addPoint(middlePoint),s.addPoint(middleTopPt),r.addGeometry(s),[r]},m.prototype.getType=function(){return"aturndefend"},m.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制由进攻转入防守1双击结束绘制在地图上点击绘制第1个点。"},m.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},h.exports=m}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,T,i,r,o,A,a,s,l){var u=t.extend2,E=(t.deepCopy,n.scalePoint,n.pathLength),I=n.vertex,h=(n.angle,n.bTypeline),L=(n.bzLine,n.gainPt);n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function c(t){this.$type="AttackTurnDefend2Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return u(c,e),c.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new T,o=new A;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},c.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_=new A,w=E(bzPoints),b=w*t*4/150;e=L(bzPoints,w,5.8/15,f)[0],n=L(bzPoints,w,6.5/15,d)[0],f=L(bzPoints,w,5.8/15,f)[1],d=L(bzPoints,w,6.5/15,d)[1],centerPoint1=midPoint(e,n),a=I(e,centerPoint1,centerPoint1,1.5*b,!1),o=I(e,centerPoint1,centerPoint1,1.5*b,!0),pCRec1=new T,pCRec1.addPoint(e),pCRec1.addPoint(a),pCRec1.addPoint(n),pCRec1.addPoint(o),pCRec1.addPoint(e),_.addGeometry(pCRec1),i=L(bzPoints,w,8.5/15,m)[0],r=L(bzPoints,w,9.2/15,g)[0],m=L(bzPoints,w,8.5/15,m)[1],g=L(bzPoints,w,9.2/15,g)[1],centerPoint2=midPoint(i,r),l=I(i,centerPoint2,centerPoint2,1.5*b,!1),s=I(i,centerPoint2,centerPoint2,1.5*b,!0),pCRec2=new T,pCRec2.addPoint(i),pCRec2.addPoint(l),pCRec2.addPoint(r),pCRec2.addPoint(s),pCRec2.addPoint(i),_.addGeometry(pCRec2),u=L(bzPoints,w,.5,y)[0],h=L(bzPoints,w,.49,v)[0],c=L(bzPoints,w,.51,x)[0],y=L(bzPoints,w,.5,y)[1],v=L(bzPoints,w,.49,v)[1],x=L(bzPoints,w,.51,x)[1],p=I(h,c,u,5*b,!1),pcArrow=new T,pcArrow.addPoint(u),pcArrow.addPoint(p),_.addGeometry(pcArrow),pcPl1=new T;for(var P=0;P<f;P++)pcPl1.addPoint(bzPoints[P]);pcPl1.addPoint(e),_.addGeometry(pcPl1),pcPl2=new T,pcPl2.addPoint(n);for(var S=d;S<m;S++)pcPl2.addPoint(bzPoints[S]);pcPl2.addPoint(i),_.addGeometry(pcPl2),pcPl3=new T,pcPl3.addPoint(r);for(var C=bzPoints.length,M=g;M<C;M++)pcPl3.addPoint(bzPoints[M]);return _.addGeometry(pcPl3),[_]},c.prototype.getType=function(){return"aturndefend1"},c.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制由进攻转入防守2双击结束绘制在地图上点击绘制第1个点。"},c.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},l.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,J,i,r,o,Q,a,s,l){var u=t.extend2,$=(t.deepCopy,n.scalePoint,n.pathLength),tt=n.vertex,h=(n.angle,n.bTypeline),et=(n.bzLine,n.gainPt),nt=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function c(t){this.$type="AttackTurnDefend3Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return u(c,e),c.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new J,o=new Q;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},c.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_=new Q,w=$(bzPoints),b=w*t*4/150,P=4*w*t/300;e=et(bzPoints,w,.4,m)[0],n=et(bzPoints,w,6.5/15,g)[0],m=et(bzPoints,w,.4,m)[1],g=et(bzPoints,w,6.5/15,g)[1],a=tt(e,n,e,b,!1),o=tt(e,n,e,1.5*b,!0),l=tt(e,n,n,b,!1),s=tt(e,n,n,1.5*b,!0);var S=new J;S.addPoint(e),S.addPoint(a);var C=polarAngle360(a,l);f=midPoint(a,l);for(var M=nt(a,l)/2,T=C+180;C<=T;T--)S.addPoint(getPolarPointOfCenterPoint(f,T,M));S.addPoint(l),S.addPoint(n),S.addPoint(s),S.addPoint(o),S.addPoint(e),_.addGeometry(S),i=et(bzPoints,w,8.5/15,v)[0],r=et(bzPoints,w,.6,x)[0],v=et(bzPoints,w,8.5/15,v)[1],x=et(bzPoints,w,.6,x)[1],h=tt(i,r,i,b,!1),u=tt(i,r,i,1.5*b,!0),p=tt(i,r,r,b,!1),c=tt(i,r,r,1.5*b,!0);var A=polarAngle360(h,p),E=nt(h,p);rRec2=E/2,d=midPoint(h,p);var I=new J;I.addPoint(i),I.addPoint(h);for(var L=A+180;A<=L;L--)I.addPoint(getPolarPointOfCenterPoint(d,L,rRec2));I.addPoint(p),I.addPoint(r),I.addPoint(c),I.addPoint(u),I.addPoint(i),_.addGeometry(I);for(var R=midPoint(e,n),O=midPoint(i,r),N=P,k=new J,z=new J,D=0;D<=360;D++)k.addPoint(getPolarPointOfCenterPoint(R,D,N)),z.addPoint(getPolarPointOfCenterPoint(O,D,N));_.addGeometry(k),_.addGeometry(z);var F=et(bzPoints,w,.5,V)[0],G=et(bzPoints,w,.49,q)[0],j=et(bzPoints,w,.51,B)[0],V=et(bzPoints,w,.5,V)[1],q=et(bzPoints,w,.49,q)[1],B=et(bzPoints,w,.51,B)[1];y=tt(G,j,F,5*b,!1);var U=new J;U.addPoint(F),U.addPoint(y),_.addGeometry(U);for(var W=new J,Z=0;Z<m;Z++)W.addPoint(bzPoints[Z]);W.addPoint(e),_.addGeometry(W);var X=new J;X.addPoint(n);for(D=g;D<v;D++)X.addPoint(bzPoints[D]);X.addPoint(i),_.addGeometry(X);var H=new J;H.addPoint(r);for(var Y=bzPoints.length,K=x;K<Y;K++)H.addPoint(bzPoints[K]);return _.addGeometry(H),[_]},c.prototype.getType=function(){return"aturndefend2"},c.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制由进攻转入防守3双击结束绘制在地图上点击绘制第1个点。"},c.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},l.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,p,f,i,r,s,o,a,l){function u(t){this.$type="CannonAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null,this.p3=null}var h=t.extend2,d=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine,n.gainPt,n.distance);return h(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new p,o=new s;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}2===i?(this.p1=n[0],this.p2=n[1],this.p3=e):3===i&&(this.p1=n[0],this.p2=n[1],this.p3=n[2]),this.cannonLine=new s;var a=new p;return a.addPoint(this.p1),a.addPoint(this.p2),a.addPoint(this.p3),a.addPoint(this.p1),this.cannonLine.addGeometry(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e,n=new f,i=new f,r=new f,o=new f,a=new f,s=new f,l=new f,u=new f,h=new f;h.x=(this.p1.x+this.p2.x+this.p3.x)/3,h.y=(this.p1.y+this.p2.y+this.p3.y)/3,e=.2*(d(this.p1,this.p2)+d(this.p2,this.p3)+d(this.p3,this.p1))*t,n.x=h.x-.5*e,n.y=h.y,i.x=h.x+.5*e,i.y=h.y;var c=new p;return c.addPoint(n),c.addPoint(i),this.cannonLine.addGeometry(c),r.x=h.x-.25*e,r.y=h.y-.1*e,o.x=h.x+.25*e,o.y=h.y-.1*e,PC2=new p,PC2.addPoint(r),PC2.addPoint(o),this.cannonLine.addGeometry(PC2),a.x=h.x-.25*e,a.y=h.y+.1*e,s.x=h.x+.25*e,s.y=h.y+.1*e,PC3=new p,PC3.addPoint(a),PC3.addPoint(s),this.cannonLine.addGeometry(PC3),l.x=h.x+.5*e,l.y=h.y-.1*e,u.x=h.x+.5*e,u.y=h.y+.1*e,PC4=new p,PC4.addPoint(l),PC4.addPoint(u),this.cannonLine.addGeometry(PC4),[this.cannonLine]},u.prototype.getType=function(){return"cannonproperty"},u.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制炮弹路线在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,P,S,C,M,T,i,r,o){var a=t.extend2,A=(t.deepCopy,n.scalePoint,n.pathLength),E=n.vertex,I=n.angle;distance=n.distance,gainPt1=n.gainPt1;function s(t){this.$type="CommunicateLineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}return a(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0],o=e,a=new P,s=new T;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}var l=[];this.p1=n[i-1],this.p2=e;for(var u=0;u<i;u++)l[u]=n[u];return null!=e&&l.push(e),m_Ctrlpts=l,this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e=m_Ctrlpts;len=e.length;var n,i,r,o,a,s,l=new S,u=new T,h=A(e),c=h/70;l=gainPt1(e,h,.5,void 0)[0],cx=l.x,cy=l.y;for(var p=0;p<len-1;p++){var f=(e[p+1].y-e[p].y)/(e[p+1].x-e[p].x);if(cy-e[p].y-f*(cx-e[p].x)<.001&&-.001<cy-e[p].y-f*(cx-e[p].x)){centerPoint=new S({x:cx,y:cy}),angle1=I(e[p],e[p+1]),n=cx+2.1*c*Math.cos(angle1*Math.PI/180),i=cy-2.1*c*Math.sin(angle1*Math.PI/180),r=cx-2.1*c*Math.cos(angle1*Math.PI/180),o=cy+2.1*c*Math.sin(angle1*Math.PI/180);var d=new P;newPoint2=new S({x:r,y:o}),tpt=newPoint2,d.addPoint(e[p]),d.addPoint(tpt),u.addGeometry(d);var y=new P;newPoint3=new S({x:n,y:i}),y.addPoint(newPoint3),y.addPoint(e[p+1]),u.addGeometry(y);new P;for(var m=new P,g=0;g<1e3;g++){var v=2*Math.PI*g/100;m.addPoint(new S({x:cx+2.6*c*Math.sin(v),y:cy+2.6*c*Math.cos(v)}))}u.addGeometry(m),cx+1.9*c*Math.cos(angle1*Math.PI/180),cy-1.9*c*Math.sin(angle1*Math.PI/180),cx-1.9*c*Math.cos(angle1*Math.PI/180),cy+1.9*c*Math.sin(angle1*Math.PI/180),p1=new S({x:n,y:i}),p2=new S({x:r,y:o}),p3=E(e[p+1],centerPoint,centerPoint,.4*c,!0),p4=E(e[p+1],centerPoint,centerPoint,.4*c,!1),a=cx+.5*c*Math.cos(angle1*Math.PI/180),s=cy-.5*c*Math.sin(angle1*Math.PI/180),p5=new S({x:a,y:s});var x=new P;x.addPoint(p2),x.addPoint(p5),u.addGeometry(x);var _=new M,w=[p3,p5,p4,p1,p3];0<(m=new C).points.length?m.points=w:m.addPoint(w),_.addGeometry(m)}else{fpt=e[p],tpt=e[p+1];var b=new P;b.addPoint(fpt),b.addPoint(tpt),u.addGeometry(b)}}return[_,u]},s.prototype.getType=function(){return"communicatelinepropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制通信光缆线路双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,x,_,i,r,w,o,a,s){function l(t){this.$type="CurrentTaskLineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var u=t.extend2,b=(t.deepCopy,n.scalePoint,n.pathLength),P=n.vertex,S=n.angle,h=(n.bzLine,n.bTypeline),C=n.gainPt,M=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new x,o=new w;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=new w,n=new x,i=new x,r=new x,o=new x,a=new x,s=new x,l=new _,u=new _;distance1=b(bzPoints);var h=distance1/160,c=distance1*t/100;c<4&&(c=4),distance1*t/80<2&&(c=2),p=C(bzPoints,distance1,0,void 0)[0],l=C(bzPoints,distance1,6/13,void 0)[0],u=C(bzPoints,distance1,7/13,void 0)[0],dx=p.x,dy=p.y;for(var f=new _,d=new _,y=.025;y<=6/13;y+=.025){tempx1=dx,tempy1=dy,f.x=tempx1,f.y=tempy1,d=C(bzPoints,distance1,y,void 0)[0],tempx=d.x,tempy=d.y,angle0=S(f,d),tempx1+=h*t*Math.cos(angle0*Math.PI/180),tempy1-=h*t*Math.sin(angle0*Math.PI/180),ps1=new _({x:tempx1,y:tempy1}),d=new _({x:tempx,y:tempy}),(m=new x).addPoint(ps1),m.addPoint(d),e.addGeometry(m),dx=d.x,dy=d.y}dx=u.x,dy=u.y;for(y=7/13+.025;y<1;y+=.025){var m;tempx1=dx,tempy1=dy,f.x=tempx1,f.y=tempy1,d=C(bzPoints,distance1,y,void 0)[0],tempx=d.x,tempy=d.y,angle0=S(f,d),tempx1+=h*t*Math.cos(angle0*Math.PI/180),tempy1-=h*t*Math.sin(angle0*Math.PI/180),ps1=new _({x:tempx1,y:tempy1}),d=new _({x:tempx,y:tempy}),(m=new x).addPoint(ps1),m.addPoint(d),e.addGeometry(m),dx=d.x,dy=d.y}angle0=S(l,u),disttance2=M(l,u),c=disttance2/14;var g=new _;g.x=l.x+disttance2/7*Math.cos(angle0*Math.PI/180),g.y=l.y-disttance2/7*Math.sin(angle0*Math.PI/180),p5=P(l,u,g,c,!1),p6=P(l,u,g,c,!0);var v=new _;return v.x=l.x+2*disttance2/7*Math.cos(angle0*Math.PI/180),v.y=l.y-2*disttance2/7*Math.sin(angle0*Math.PI/180),p7=P(l,u,v,c,!1),p8=P(l,u,v,c,!0),n.addPoint(p5),n.addPoint(p8),e.addGeometry(n),i.addPoint(p6),i.addPoint(p7),e.addGeometry(i),g.x=l.x+3*disttance2/7*Math.cos(angle0*Math.PI/180),g.y=l.y-3*disttance2/7*Math.sin(angle0*Math.PI/180),p9=P(l,u,g,c,!1),p10=P(l,u,g,c,!0),v.x=l.x+4*disttance2/7*Math.cos(angle0*Math.PI/180),v.y=l.y-4*disttance2/7*Math.sin(angle0*Math.PI/180),p11=P(l,u,v,c,!1),p12=P(l,u,v,c,!0),r.addPoint(p9),r.addPoint(p12),e.addGeometry(r),o.addPoint(p10),o.addPoint(p11),e.addGeometry(o),g.x=l.x+5*disttance2/7*Math.cos(angle0*Math.PI/180),g.y=l.y-5*disttance2/7*Math.sin(angle0*Math.PI/180),p13=P(l,u,g,c,!1),p14=P(l,u,g,c,!0),v.x=l.x+6*disttance2/7*Math.cos(angle0*Math.PI/180),v.y=l.y-6*disttance2/7*Math.sin(angle0*Math.PI/180),p15=P(l,u,v,c,!1),p16=P(l,u,v,c,!0),a.addPoint(p13),a.addPoint(p16),e.addGeometry(a),s.addPoint(p14),s.addPoint(p15),e.addGeometry(s),[e]},l.prototype.getType=function(){return"currenttasklinepropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制遭破坏的线路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,C,M,i,r,T,o,a,s){function l(t){this.$type="FinderLineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}var u=t.extend2,A=(t.deepCopy,n.scalePoint,n.pathLength),E=n.vertex,I=n.angle,L=(n.midPoint,n.distance);n.gainPt1;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0],o=e,a=new C,s=new T;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}var l=[];this.p1=n[i-1],this.p2=e;for(var u=0;u<i;u++)l[u]=n[u];return null!=e&&l.push(e),m_Ctrlpts=l,this.getGraphParts(1)},l.prototype.getGraphParts=function(t){for(var e=m_Ctrlpts,n=e.length,i=new T,r=A(e)*t/80,o=0;o<n-1&&(e[o].x!=e[o+1].x||e[o].y!=e[o+1].y);o++){var a,s,l=L(e[o],e[o+1]),u=e[o].copy(),h=l/r/5;if(0<h){var c=I(e[o],e[o+1])*Math.PI/180;a=r*Math.cos(c),s=r*Math.sin(c)}for(var p=0;p<h-1;p++){var f=u.copy(),d=new M;d.x=u.x+3*a,d.y=u.y-3*s;var y=new C;y.addPoint(f),y.addPoint(d),i.addGeometry(y);var m=E(u,d,d,r,!0),g=E(u,d,d,r,!1),v=E(u,d,u,r,!0),x=E(u,d,u,r,!1),_=new C,w=new C;if(0==p){var b=new C;b.addPoint(m),b.addPoint(g),i.addGeometry(b)}else if(p==h-1){var P=new C;P.addPoint(d),P.addPoint(e[o+1].copy()),_.addPoint(m),_.addPoint(g),w.addPoint(v),w.addPoint(x),i.addGeometry(P),i.addGeometry(_),i.addGeometry(w)}else _.addPoint(m),_.addPoint(g),w.addPoint(v),w.addPoint(x),i.addGeometry(_),i.addGeometry(w);u.x+=5*a,u.y-=5*s}var S=new C;S.addPoint(u),S.addPoint(e[o+1].copy()),i.addGeometry(S)}return[i]},l.prototype.getType=function(){return"finderlinepropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制海上封锁线双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,P,S,C,M,T,i,r,o){function a(t){this.$type="FixedPipeLayingAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}var A,s=t.extend2,E=(t.deepCopy,n.scalePoint,n.pathLength),I=(n.vertex,n.angle),L=n.distance,R=n.midPoint;n.gainPt1,Math.PI;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0],o=e,a=new P,s=new T;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}var l=[];this.p1=n[i-1],this.p2=e;for(var u=0;u<i;u++)l[u]=n[u];return null!=e&&l.push(e),m_Ctrlpts=l,this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e=m_Ctrlpts;A=E(e)*t/80;for(var n=e.length,i=new T,r=new M,o=A/5,a=0;a<n-1&&(e[a].x!=e[a+1].x||e[a].y!=e[a+1].y);a++){var s,l,u=L(e[a],e[a+1])/o/5,h=e[a].copy(),c=new P;if(1<u){var p=I(e[a],e[a+1])*Math.PI/180;s=o*Math.cos(p),l=o*Math.sin(p)}for(var f=0;f<u-1;f++){var d=h.copy(),y=new S;y.x=h.x+3*s,y.y=h.y-3*l;var m=new P;m.addPoint(d),m.addPoint(y),i.addGeometry(m);for(var g=R(d,y),v=new C,x=0;x<1e3;x++){var _=2*Math.PI*x/1e3,w=new S;w.x=g.x+o*Math.cos(_),w.y=g.y+o*Math.sin(_),v.addPoint(w)}var b=v.points[0].copy();v.addPoint(b),r.addGeometry(v),h.x+=5*s,h.y-=5*l}c.addPoint(h),c.addPoint(e[a+1]),i.addGeometry(c)}return[r,i]},a.prototype.getType=function(){return"fixedpipelayingpropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制固定输油管线双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n(24),n,e,t],void 0===(r=function(t,e,n,C,M,T,A,E,I,i,r,o){function a(t){this.$type="ForbidFlyLineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}var s=t.extend2,L=(t.deepCopy,n.scalePoint,n.pathLength),R=n.vertex,O=n.midPoint,N=n.angle,k=n.distance;n.gainPt1;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0],o=e,a=new C,s=new E;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}var l=[];this.p1=n[i-1],this.p2=e;for(var u=0;u<i;u++)l[u]=n[u];return null!=e&&l.push(e),m_Ctrlpts=l,this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e=m_Ctrlpts,n=e.length,i=new E,r=L(e)*t/160,o=1.4*r*Math.sqrt(1.5),a=new I,s=0;s<n-1&&(e[s].x!=e[s+1].x||e[s].y!=e[s+1].y);s++){var l,u,h=k(e[s],e[s+1])/5/r,c=new C,p=e[s].copy();if(1<h){var f=N(e[s],e[s+1])*Math.PI/180;l=r*Math.cos(f),u=r*Math.sin(f)}for(var d=0;d<h-1;d++){var y=new C,m=new T,g=p.copy(),v=new M;v.x=p.x+2*l,v.y=p.y-2*u,y.addPoint(g),y.addPoint(v),i.addGeometry(y);var x=new M;x.x=p.x+3*l,x.y=p.y-3*u;var _=new M;_.x=p.x+4*l,_.y=p.y-4*u;var w=O(x,_),b=[x,_,R(x,_,w,o,!1),x];m.addPoint(b);var P=new A;P.addGeometry(m),a.addGeometry(P),p.x+=5*l,p.y-=5*u}var S=e[s+1].copy();c.addPoint(p),c.addPoint(S),i.addGeometry(c)}return[i,a]},a.prototype.getType=function(){return"forbidflylinepropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制警戒线双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,V,q,B,U,W,i,r,o){var a=t.extend2,Z=(t.deepCopy,n.scalePoint),X=n.pathLength,H=n.vertex,l=n.bTypeline,Y=n.angle;distance=n.distance;function s(t){this.$type="HelicopterTransportAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}return a(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new V,o=new W;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a=new V,s=new V,l=(new V,new V),u=new V,h=new V,c=new q,p=new q,f=new q,d=new q,y=new q,m=new q,g=new q,v=new q,x=(new q,new q),_=(new q,new q),w=new q,b=new q,P=new q,S=(new q,new q,new q,new q,new q,new q,new q),C=new q,M=new q,T=new q,A=new W,E=X(bzPoints),I=E*t/35;c=gainPt(bzPoints,E,7/15,i)[0],p=gainPt(bzPoints,E,.6,r)[0],i=gainPt(bzPoints,E,7/15,i)[1],r=gainPt(bzPoints,E,.6,r)[1],f=H(c,p,c,I,!1),d=H(c,p,c,2*I,!1),y=H(c,p,p,I,!1),m=H(c,p,p,2*I,!1),l.addPoint(f),l.addPoint(m),A.addGeometry(l),u.addPoint(d),u.addPoint(y),A.addGeometry(u),y=new q({x:(d.x+y.x)/2,y:(d.y+y.y)/2});var L=Y(c,p);90==L?L=270:270==Y&&(L=90),I=E*t/23,o=Math.sqrt((c.x-p.x)*(c.x-p.x)+(c.y-p.y)*(c.y-p.y)),e=c.x+.3*o*Math.cos(L*Math.PI/180),n=c.y-.3*o*Math.sin(L*Math.PI/180);var R=new q;R=new q({x:e,y:n}),M=H(c,p,R,I,!0),T=H(c,p,R,1.5*I,!0),e=c.x+.7*o*Math.cos(L*Math.PI/180),n=c.y-.7*o*Math.sin(L*Math.PI/180);var O=new q;O=new q({x:e,y:n}),S=H(c,p,O,I,!0),C=H(c,p,O,1.5*I,!0),h.addPoint(M),h.addPoint(T),h.addPoint(C),h.addPoint(S),h.addPoint(M),A.addGeometry(h);var N=new V;m=new q({x:(S.x+M.x)/2,y:(S.y+M.y)/2}),N.addPoint(y),N.addPoint(m),A.addGeometry(N);for(var k=0;k<i;k++)a.addPoint(bzPoints[k]);a.addPoint(c),A.addGeometry(a),s.addPoint(p);for(var z=bzPoints.length,D=r;D<z;D++)s.addPoint(bzPoints[D]);A.addGeometry(s);z=bzPoints.length,new q,new q;g=gainPt(bzPoints,E,12.7/13,void 0)[0];x=bzPoints[z-1];v=Z(g,x,2.5);var F=new U;_=H(x,g,g,I/2.5,!0),w=H(x,g,g,I/2.5,!1),b=v,P=x;var G=new B,j=[_,b,w,P,_];return 0<G.points.length?G.points=j:G.addPoint(j),F.addGeometry(G),[F,A]},s.prototype.getType=function(){return"helicoptertransportpropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制直升机输送双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,O,N,k,z,D,i,r,o){var a=t.extend2,F=(t.deepCopy,n.scalePoint),G=n.pathLength,l=n.bTypeline,j=n.vertex,V=n.angle;distance=n.distance;function s(t){this.$type="HighWayAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}return a(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new O,o=new D;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o=new O,a=new O,s=(new O,new N),l=new N,u=new N,h=new N,c=(new N,new N),p=new N,f=new N,d=new N,y=(new N,new N),m=(new N,new N),g=new N,v=new N,x=new N,_=(new N,new N,new N,new N,new N,new N,new N,new N,new N,new N,new D),w=G(bzPoints),b=w*t/30;s=gainPt(bzPoints,w,3/7,i)[0],l=gainPt(bzPoints,w,4/7,r)[0],i=gainPt(bzPoints,w,3/7,i)[1],r=gainPt(bzPoints,w,4/7,r)[1];var P=V(s,l);90==P?P=270:270==P&&(P=90);var S=Math.sqrt((s.x-l.x)*(s.x-l.x)+(s.y-l.y)*(s.y-l.y));e=s.x+.8*S*Math.cos(P*Math.PI/180),n=s.y-.8*S*Math.sin(P*Math.PI/180),p=j(s,l,s,b,!0),c=j(s,l,s,b,!1),u=j(s,l,l,b,!1);var C=new N;C=new N({x:e,y:n});h=j(s,l,C,b,!0),new N({x:e,y:n});var M=new O;M.addPoint(p),M.addPoint(c),M.addPoint(u),M.addPoint(l),M.addPoint(h),M.addPoint(p),_.addGeometry(M);for(var T=0;T<i;T++)o.addPoint(bzPoints[T]);o.addPoint(s),_.addGeometry(o),a.addPoint(l);for(var A=bzPoints.length,E=r;E<A;E++)a.addPoint(bzPoints[E]);_.addGeometry(a);new N,new N;f=gainPt(bzPoints,w,12.7/13,void 0)[0];y=bzPoints[A-1];d=F(f,y,2.5);var I=new z;m=j(y,f,f,b/2.5,!0),g=j(y,f,f,b/2.5,!1),v=d,x=y;var L=new k,R=[m,v,g,x,m];return 0<L.points.length?L.points=R:L.addPoint(R),I.addGeometry(L),[I,_]},s.prototype.getType=function(){return"highwaypropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制公路运输双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,p,i,f,d,y,r,o,a){function s(t){this.$type="ImportantPlaceAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,m=(t.deepCopy,n.scalePoint,n.pathLength),g=n.vertex,u=n.bTypeline,v=(n.angle,n.bzLine,n.gainPt);n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new p,o=new y;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e=new y,n=new d,i=m(bzPoints),r=i*t/60;p1=v(bzPoints,i,0,void 0)[0],p2=v(bzPoints,i,1/60,void 0)[0],p3=g(p1,p2,p1,r,!1),p4=g(p1,p2,p2,r,!1);var o=new f,a=[p1,p3,p4,p2,p1];o.addPoint(a),n.addGeometry(o),p1=bzPoints[bzPoints.length-1],p2=v(bzPoints,i,1-1/60,void 0)[0],p3=g(p1,p2,p1,r,!0),p4=g(p1,p2,p2,r,!0);var s=new f;a=[p1,p3,p4,p2,p1];s.addPoint(a),n.addGeometry(s),p1=v(bzPoints,i,.5-1/60/2,void 0)[0],p2=v(bzPoints,i,.5+1/60/2,void 0)[0],p3=g(p1,p2,p1,r,!1),p4=g(p1,p2,p2,r,!1);var l=new f;a=[p1,p3,p4,p2,p1];l.addPoint(a),n.addGeometry(l);for(var u=new p,h=bzPoints.length,c=0;c<=h-1;c++)u.addPoint(bzPoints[c]);return e.addGeometry(u),[n,e]},s.prototype.getType=function(){return"importantplacepropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制要点双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(24),n(3),n,e,t],void 0===(r=function(t,e,n,T,A,E,I,L,R,i,r,o){function a(t){this.$type="LadderLineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}var s=t.extend2,O=(t.deepCopy,n.scalePoint,n.pathLength),N=n.vertex,k=n.angle,z=n.midPoint,D=n.distance,F=n.gainPt1,G=n.gainPt;n.bzLine;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0];this.p1=r;var o=e,a=new T,s=new R;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}this.p1=n[0];for(var l=[],u=0;u<i-1;u++)n[u].x===n[u+1].x&&n[u].y===n[u+1].y||l.push(n[u]);return l.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||l.push(e)),m_Ctrlpts=l,bzPoints=bTypeline(m_Ctrlpts),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e=bzPoints,n=new R,i=new L,r=O(e),o=r*t/160,a=r/80,s=new T,l=new T;n.addGeometry(s),n.addGeometry(l);for(var u=new A,h=new A,c=this.p1.copy(),p=.04;p<=1;p+=.04){u=c.copy(),h=G(bzPoints,r,p)[0];var f=k(u,h),d=u.x,y=u.y;d+=a*t*Math.cos(f*Math.PI/180),y-=a*t*Math.sin(f*Math.PI/180);var m=new A({x:d,y:y}),g=N(h,m,m,o,!0),v=N(h,m,m,o,!1),x=N(h,m,h,o,!0),_=N(h,m,h,o,!1);s.addPoint(g),s.addPoint(x),l.addPoint(v),l.addPoint(_);var w=new E,b=new I,P=z(g,x),S=N(g,x,P,2*o,!0);if(2*o<D(g,x)){var C=F([P,g],D(g,P),o/D(g,P))[0],M=[C,F([P,x],D(P,x),o/D(P,x))[0],S,C];w.addPoint(M),b.addGeometry(w),i.addGeometry(b)}c=h.copy()}return[n,i]},a.prototype.getType=function(){return"ladderlinepropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多2个点用于绘制绳梯双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(24),n(3),n,e,t],void 0===(r=function(t,e,n,C,M,i,r,T,A,o,a,s){function l(t){this.$type="LadderLineAlgorithm2,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}var u=t.extend2,E=(t.deepCopy,n.scalePoint,n.pathLength),I=n.vertex,L=n.angle,R=n.midPoint,O=n.distance,N=n.gainPt1,k=n.gainPt;n.bzLine;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0];this.p1=r;var o=e,a=new C,s=new A;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}this.p1=n[0];for(var l=[],u=0;u<i-1;u++)n[u].x===n[u+1].x&&n[u].y===n[u+1].y||l.push(n[u]);return l.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||l.push(e)),m_Ctrlpts=l,bzPoints=bTypeline(m_Ctrlpts),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=bzPoints,n=new A,i=(new T,E(e)),r=i*t/160,o=i/80,a=new C,s=new C;n.addGeometry(a),n.addGeometry(s);for(var l=new M,u=new M,h=this.p1.copy(),c=.04;c<=1;c+=.04){l=h.copy(),u=k(bzPoints,i,c)[0];var p=L(l,u),f=l.x,d=l.y;f+=o*t*Math.cos(p*Math.PI/180),d-=o*t*Math.sin(p*Math.PI/180);var y=new M({x:f,y:d}),m=I(u,y,y,r,!0),g=I(u,y,y,r,!1),v=I(u,y,u,r,!0),x=I(u,y,u,r,!1);a.addPoint(m),a.addPoint(v),s.addPoint(g),s.addPoint(x);var _=new C,w=R(m,v),b=I(m,v,w,2*r,!0);if(2*r<O(m,v)){var P=N([w,m],O(m,w),r/O(m,w))[0],S=[P,N([w,v],O(w,v),r/O(w,v))[0],b,P];_.addPoint(S),n.addGeometry(_)}h=u.copy()}return[n]},l.prototype.getType=function(){return"ladderlinepropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多2个点用于绘制绳梯双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,v,x,i,r,_,o,a,s){var l=t.extend2,w=(t.deepCopy,n.scalePoint,n.pathLength),b=n.vertex,u=n.bTypeline,P=n.angle;n.bzLine,u=n.bTypeline;gainPt=n.gainPt,distance1=n.distance;function h(t){this.$type="LaighStakeAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}return l(h,e),h.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new v,o=new _;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},h.prototype.getGraphParts=function(t){var e=w(bzPoints),n=e*t/80,i=parseInt(e/n),r=!1,o=null;o=gainPt(bzPoints,e,1/i,void 0)[0];for(var a=new x({x:bzPoints[0].x,y:bzPoints[0].y}),s=b(a,o,a,n,!1),l=new x,u=new x,h=new x,c=(new x,new _),p=[],f=[],d=0,y=0,m=1;m<=i;m++){var g=m/i;o=1==g?bzPoints[bzPoints.length-1]:gainPt(bzPoints,e,g,void 0)[0],u.x=a.x,u.y=a.y,h.x=o.x,h.y=o.y,l=b(u,h,u,n/2,r),1!=m&&(p[parseInt(m)]=new v,p[parseInt(m)].addPoint(new x({x:s.x,y:s.y})),p[parseInt(m)].addPoint(new x({x:l.x,y:l.y})),c.addGeometry(p[parseInt(m)]),270==(d=P(l,s))?d=90:90==d&&(d=270),y=distance1(s,l),a.x=l.x+.4*y*Math.cos(d*Math.PI/180),a.y=l.y-.4*y*Math.sin(d*Math.PI/180),u=b(s,l,a,y/5,!0),a.x=l.x+.5*y*Math.cos(d*Math.PI/180),a.y=l.y-.5*y*Math.sin(d*Math.PI/180),h=b(s,l,a,y/5,!1),a.x=l.x+.6*y*Math.cos(d*Math.PI/180),a.y=l.y-.6*y*Math.sin(d*Math.PI/180),point5=b(s,l,a,y/5,!0),f[parseInt(m)]=new v,f[parseInt(m)].addPoint(new x({x:u.x,y:u.y})),f[parseInt(m)].addPoint(new x({x:h.x,y:h.y})),f[parseInt(m)].addPoint(new x({x:point5.x,y:point5.y})),c.addGeometry(f[parseInt(m)])),a.x=o.x,a.y=o.y,r=!r,s.x=l.x,s.y=l.y}return[c]},h.prototype.getType=function(){return"laighstakepropety"},h.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制生态隔离线双击结束绘制在地图上点击绘制第1个点。"},h.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n(24),n,e,t],void 0===(r=function(t,e,n,it,rt,ot,at,st,lt,i,r,o){var a=t.extend2,ut=(t.deepCopy,n.scalePoint),ht=n.pathLength,l=n.bTypeline,ct=n.vertex,pt=n.angle;distance=n.distance;function s(t){this.$type="LandMobileAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}return a(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new it,o=new st;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y=new it,m=new it,g=(new it,new rt),v=new rt,x=new rt,_=new rt,w=new rt,b=new rt,P=new rt,S=new rt,C=new rt,M=new rt,T=new rt,A=(new rt,new rt),E=(new rt,new rt),I=(new rt,new rt,new rt,new rt,new rt,new rt,new rt,new rt,new rt,new rt,new rt),L=(new rt,new rt,new rt),R=new rt,O=new st,N=ht(bzPoints),k=N*t/30;g=gainPt(bzPoints,N,3/7,f)[0],v=gainPt(bzPoints,N,4/7,d)[0],f=gainPt(bzPoints,N,3/7,f)[1],d=gainPt(bzPoints,N,4/7,d)[1];var z=pt(g,v);90==z?z=270:270==z&&(z=90);var D=Math.sqrt((g.x-v.x)*(g.x-v.x)+(g.y-v.y)*(g.y-v.y));e=g.x+.8*D*Math.cos(z*Math.PI/180),n=g.y-.8*D*Math.sin(z*Math.PI/180);var F=new rt;F=new rt({x:e,y:n});P=ct(g,v,g,k,!0),b=ct(g,v,g,k,!1),x=ct(g,v,v,k,!1),_=ct(g,v,F,k,!0);var G=new it;G.addPoint(P),G.addPoint(b),G.addPoint(x),G.addPoint(v),G.addPoint(_),G.addPoint(P),O.addGeometry(G),e=g.x+.2*D*Math.cos(z*Math.PI/180),n=g.y-.2*D*Math.sin(z*Math.PI/180);var j=new rt;j=new rt({x:e,y:n});x=ct(g,v,j,.15*D,!1),_=ct(g,v,j,1.5*k,!1),i=g.x+.5*D*Math.cos(z*Math.PI/180),r=g.y-.5*D*Math.sin(z*Math.PI/180);var V=new rt;V=new rt({x:i,y:r});w=ct(g,v,V,.15*D,!1),b=ct(g,v,V,.15*D,!0),o=g.x+.8*D*Math.cos(z*Math.PI/180),a=g.y-.8*D*Math.sin(z*Math.PI/180);var q=new rt;q=new rt({x:o,y:a});C=ct(g,v,q,.15*D,!0),Y=ut(w,C,.6),S=ct(g,v,q,1.5*k,!1);var B=new it;B.addPoint(x),B.addPoint(b),B.addPoint(w),B.addPoint(Y),O.addGeometry(B),s=g.x+.3*D*Math.cos(z*Math.PI/180),l=g.y-.3*D*Math.sin(z*Math.PI/180);var U=new rt;U=new rt({x:s,y:l});b=ct(g,v,U,k,!1),u=g.x+.7*D*Math.cos(z*Math.PI/180),h=g.y-.7*D*Math.sin(z*Math.PI/180);var W=new rt;W=new rt({x:u,y:h});I=ct(g,v,W,k,!1);var Z=new it;Z.addPoint(b),Z.addPoint(_);var X=new it;X.addPoint(I),X.addPoint(S),O.addGeometry(Z),O.addGeometry(X);var H=new at;D=N*t/25,c=w.x+D*Math.cos(z*Math.PI/180),p=w.y-D*Math.sin(z*Math.PI/180),k=N*t/120;new rt,new rt({x:c,y:p});var Y=new rt;Y=ut(w,C,.6),L=ct(w,C,Y,D/8,!0),R=ct(w,C,Y,D/8,!1),w.x,Math.cos(pt*Math.PI/180),w.y,Math.sin(pt*Math.PI/180);var K=[L,C,R,L];0<(tt=new ot).points.length?tt.points=K:tt.addPoint(K),H.addGeometry(tt);for(var J=0;J<f;J++)y.addPoint(bzPoints[J]);y.addPoint(g),O.addGeometry(y),m.addPoint(v);for(var Q=bzPoints.length,$=d;$<Q;$++)m.addPoint(bzPoints[$]);O.addGeometry(m);new rt,new rt;M=gainPt(bzPoints,N,12.7/13,void 0)[0];A=bzPoints[Q-1];T=ut(M,A,2.5);var tt;K=[E=ct(A,M,M,1.5*k,!0),T,ct(A,M,M,1.5*k,!1),A,E];0<(tt=new ot).points.length?tt.points=K:tt.addPoint(K);var et=new at;et.addGeometry(tt);var nt=new lt;return nt.addGeometry(H),nt.addGeometry(et),[O,nt]},s.prototype.getType=function(){return"landmobilepropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制陆地机动技术双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,x,_,i,r,w,o,a,s){function l(t){this.$type="LatterTaskLineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var u=t.extend2,b=(t.deepCopy,n.scalePoint,n.pathLength),P=n.vertex,h=n.bTypeline,S=n.angle,C=(n.bzLine,n.gainPt),M=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new x,o=new w;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=new w,n=new x,i=new x,r=new x,o=new x,a=new x,s=new x,l=new _,u=new _;distance1=b(bzPoints);var h=distance1/160,c=distance1*t/100;distance1;l=C(bzPoints,distance1,6/13,void 0)[0],u=C(bzPoints,distance1,7/13,void 0)[0];var p=new _,f=new _;dx=this.p1.x,dy=this.p1.y;for(var d=.025;d<=6/13;d+=.025){tempx1=dx,tempy1=dy,p.x=tempx1,p.y=tempy1,f=C(bzPoints,distance1,d,void 0)[0],tempx=f.x,tempy=f.y,angle0=S(p,f),tempx1+=h*t*Math.cos(angle0*Math.PI/180),tempy1-=h*t*Math.sin(angle0*Math.PI/180),ps1=new _({x:tempx1,y:tempy1}),f=new _({x:tempx,y:tempy}),pst=P(ps1,f,ps1,c/4,!0),psd=P(ps1,f,ps1,c/4,!1),pet=P(ps1,f,f,c/4,!0),ped=P(ps1,f,f,c/4,!1),(y=new x).addPoint(pst),y.addPoint(pet),e.addGeometry(y),(m=new x).addPoint(psd),m.addPoint(ped),e.addGeometry(m),dx=f.x,dy=f.y}dx=u.x,dy=u.y;for(d=7/13+.025;d<1;d+=.025){var y,m;tempx1=dx,tempy1=dy,p.x=tempx1,p.y=tempy1,f=C(bzPoints,distance1,d,void 0)[0],tempx=f.x,tempy=f.y,angle0=S(p,f),tempx1+=h*t*Math.cos(angle0*Math.PI/180),tempy1-=h*t*Math.sin(angle0*Math.PI/180),ps1=new _({x:tempx1,y:tempy1}),f=new _({x:tempx,y:tempy}),pst=P(ps1,f,ps1,c/4,!0),psd=P(ps1,f,ps1,c/4,!1),pet=P(ps1,f,f,c/4,!0),ped=P(ps1,f,f,c/4,!1),(y=new x).addPoint(pst),y.addPoint(pet),e.addGeometry(y),(m=new x).addPoint(psd),m.addPoint(ped),e.addGeometry(m),dx=f.x,dy=f.y}angle0=S(l,u),disttance2=M(l,u),c=disttance2/14;var g=new _;g.x=l.x+disttance2/7*Math.cos(angle0*Math.PI/180),g.y=l.y-disttance2/7*Math.sin(angle0*Math.PI/180),p5=P(l,u,g,c,!1),p6=P(l,u,g,c,!0);var v=new _;return v.x=l.x+2*disttance2/7*Math.cos(angle0*Math.PI/180),v.y=l.y-2*disttance2/7*Math.sin(angle0*Math.PI/180),p7=P(l,u,v,c,!1),p8=P(l,u,v,c,!0),n.addPoint(p5),n.addPoint(p8),e.addGeometry(n),i.addPoint(p6),i.addPoint(p7),e.addGeometry(i),g.x=l.x+3*disttance2/7*Math.cos(angle0*Math.PI/180),g.y=l.y-3*disttance2/7*Math.sin(angle0*Math.PI/180),p9=P(l,u,g,c,!1),p10=P(l,u,g,c,!0),v.x=l.x+4*disttance2/7*Math.cos(angle0*Math.PI/180),v.y=l.y-4*disttance2/7*Math.sin(angle0*Math.PI/180),p11=P(l,u,v,c,!1),p12=P(l,u,v,c,!0),r.addPoint(p9),r.addPoint(p12),e.addGeometry(r),o.addPoint(p10),o.addPoint(p11),e.addGeometry(o),g.x=l.x+5*disttance2/7*Math.cos(angle0*Math.PI/180),g.y=l.y-5*disttance2/7*Math.sin(angle0*Math.PI/180),p13=P(l,u,g,c,!1),p14=P(l,u,g,c,!0),v.x=l.x+6*disttance2/7*Math.cos(angle0*Math.PI/180),v.y=l.y-6*disttance2/7*Math.sin(angle0*Math.PI/180),p15=P(l,u,v,c,!1),p16=P(l,u,v,c,!0),a.addPoint(p13),a.addPoint(p16),e.addGeometry(a),s.addPoint(p14),s.addPoint(p15),e.addGeometry(s),[e]},l.prototype.getType=function(){return"lattertasklinepropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制遭破坏的道路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,v,x,i,r,_,o,a,s){function l(t){this.$type="LineAbatis1Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var u=t.extend2,w=(t.deepCopy,n.scalePoint,n.pathLength),h=n.bTypeline,b=n.vertex,P=n.angle,S=(n.bzLine,h=n.bTypeline,n.gainPt),C=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new v,o=new _;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=w(bzPoints),n=e*t/80,i=parseInt(e/n),r=!1,o=null;o=S(bzPoints,e,1/i,void 0)[0];for(var a=new x({x:bzPoints[0].x,y:bzPoints[0].y}),s=b(a,o,a,n,!1),l=new x,u=new x,h=new x,c=new _,p=[],f=[],d=0,y=0,m=1;m<=i;m++){var g=m/i;o=1==g?bzPoints[bzPoints.length-1]:S(bzPoints,e,g,void 0)[0],u.x=a.x,u.y=a.y,h.x=o.x,h.y=o.y,l=b(u,h,u,n/2,r),1!=m&&(p[parseInt(m)]=new v,p[parseInt(m)].addPoint(new x({x:s.x,y:s.y})),p[parseInt(m)].addPoint(new x({x:l.x,y:l.y})),c.addGeometry(p[parseInt(m)]),270==(d=P(l,s))?d=90:90==d&&(d=270),y=C(s,l),a.x=l.x+.5*y*Math.cos(d*Math.PI/180),a.y=l.y-.5*y*Math.sin(d*Math.PI/180),u=b(s,l,a,y/5,!0),h=b(s,l,a,y/5,!1),f[parseInt(m)]=new v,f[parseInt(m)].addPoint(new x({x:u.x,y:u.y})),f[parseInt(m)].addPoint(new x({x:h.x,y:h.y})),c.addGeometry(f[parseInt(m)])),a.x=o.x,a.y=o.y,r=!r,s.x=l.x,s.y=l.y}return[c]},l.prototype.getType=function(){return"lineabatis1propety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制小型输电线路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,x,_,i,r,w,o,a,s){function l(t){this.$type="LineAbatis2Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var u=t.extend2,b=(t.deepCopy,n.scalePoint,n.pathLength),P=n.vertex,h=n.bTypeline,S=n.angle,C=(n.bzLine,h=n.bTypeline,n.gainPt),M=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new x,o=new w;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=b(bzPoints),n=e*t/80,i=parseInt(e/n),r=!1,o=null;o=C(bzPoints,e,1/i,void 0)[0];for(var a=new _({x:bzPoints[0].x,y:bzPoints[0].y}),s=P(a,o,a,n,!1),l=new _,u=new _,h=new _,c=new w,p=[],f=[],d=[],y=0,m=0,g=1;g<=i;g++){var v=g/i;o=1==v?bzPoints[bzPoints.length-1]:C(bzPoints,e,v,void 0)[0],u.x=a.x,u.y=a.y,h.x=o.x,h.y=o.y,l=P(u,h,u,n/2,r),1!=g&&(p[parseInt(g)]=new x,p[parseInt(g)].addPoint(new _({x:s.x,y:s.y})),p[parseInt(g)].addPoint(new _({x:l.x,y:l.y})),c.addGeometry(p[parseInt(g)]),270==(y=S(l,s))?y=90:90==y&&(y=270),m=M(s,l),a.x=l.x+.4*m*Math.cos(y*Math.PI/180),a.y=l.y-.4*m*Math.sin(y*Math.PI/180),u=P(s,l,a,m/5,!0),h=P(s,l,a,m/5,!1),f[parseInt(g)]=new x,f[parseInt(g)].addPoint(new _({x:u.x,y:u.y})),f[parseInt(g)].addPoint(new _({x:h.x,y:h.y})),c.addGeometry(f[parseInt(g)]),a.x=l.x+.6*m*Math.cos(y*Math.PI/180),a.y=l.y-.6*m*Math.sin(y*Math.PI/180),u=P(s,l,a,m/5,!0),h=P(s,l,a,m/5,!1),d[parseInt(g)]=new x,d[parseInt(g)].addPoint(new _({x:u.x,y:u.y})),d[parseInt(g)].addPoint(new _({x:h.x,y:h.y})),c.addGeometry(d[parseInt(g)])),a.x=o.x,a.y=o.y,r=!r,s.x=l.x,s.y=l.y}return[c]},l.prototype.getType=function(){return"lineabatis2propety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制中型输电线路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,_,w,i,r,b,o,a,s){function l(t){this.$type="LineAbatis3Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var u=t.extend2,P=(t.deepCopy,n.scalePoint,n.pathLength),S=n.vertex,h=n.bTypeline,C=n.angle,M=(n.bzLine,h=n.bTypeline,n.gainPt),T=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new _,o=new b;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=P(bzPoints),n=e*t/80,i=parseInt(e/n),r=!1,o=null;o=M(bzPoints,e,1/i,void 0)[0];for(var a=new w({x:bzPoints[0].x,y:bzPoints[0].y}),s=S(a,o,a,n,!1),l=new w,u=new w,h=new w,c=new b,p=[],f=[],d=[],y=[],m=0,g=0,v=1;v<=i;v++){var x=v/i;o=1==x?bzPoints[bzPoints.length-1]:M(bzPoints,e,x,void 0)[0],u.x=a.x,u.y=a.y,h.x=o.x,h.y=o.y,l=S(u,h,u,n/2,r),1!=v&&(p[parseInt(v)]=new _,p[parseInt(v)].addPoint(new w({x:s.x,y:s.y})),p[parseInt(v)].addPoint(new w({x:l.x,y:l.y})),c.addGeometry(p[parseInt(v)]),270==(m=C(l,s))?m=90:90==m&&(m=270),g=T(s,l),a.x=l.x+.4*g*Math.cos(m*Math.PI/180),a.y=l.y-.4*g*Math.sin(m*Math.PI/180),u=S(s,l,a,g/5,!0),h=S(s,l,a,g/5,!1),f[parseInt(v)]=new _,f[parseInt(v)].addPoint(new w({x:u.x,y:u.y})),f[parseInt(v)].addPoint(new w({x:h.x,y:h.y})),c.addGeometry(f[parseInt(v)]),a.x=l.x+.5*g*Math.cos(m*Math.PI/180),a.y=l.y-.5*g*Math.sin(m*Math.PI/180),u=S(s,l,a,g/5,!0),h=S(s,l,a,g/5,!1),d[parseInt(v)]=new _,d[parseInt(v)].addPoint(new w({x:u.x,y:u.y})),d[parseInt(v)].addPoint(new w({x:h.x,y:h.y})),c.addGeometry(d[parseInt(v)]),a.x=l.x+.6*g*Math.cos(m*Math.PI/180),a.y=l.y-.6*g*Math.sin(m*Math.PI/180),u=S(s,l,a,g/5,!0),h=S(s,l,a,g/5,!1),y[parseInt(v)]=new _,y[parseInt(v)].addPoint(new w({x:u.x,y:u.y})),y[parseInt(v)].addPoint(new w({x:h.x,y:h.y})),c.addGeometry(y[parseInt(v)])),a.x=o.x,a.y=o.y,r=!r,s.x=l.x,s.y=l.y}return[c]},l.prototype.getType=function(){return"lineabatis3propety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制大型输电线路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,R,O,N,k,z,i,r,o){var a=t.extend2,D=(t.deepCopy,n.scalePoint),F=n.pathLength,l=n.bTypeline,G=n.vertex,j=n.angle;distance=n.distance;function s(t){this.$type="MissileMarchAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}return a(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new R,o=new z;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o=new R,a=new R,s=(new R,new O),l=new O,u=new O,h=new O,c=new O,p=new O,f=new O,d=(new O,new O,new O,new O,new O,new O,new z,F(bzPoints)),y=d*t/60;s=gainPt(bzPoints,d,5/11,i)[0],l=gainPt(bzPoints,d,6/11,r)[0],i=gainPt(bzPoints,d,5/11,i)[1],r=gainPt(bzPoints,d,6/11,r)[1];var m=Math.sqrt((l.x-s.x)*(l.x-s.x)+(l.y-s.y)*(l.y-s.y)),g=j(s,l);90==g?g=270:-90==g&&(g=90),e=parseFloat(s.x)+.8*m*Math.cos(g*Math.PI/180),n=parseFloat(s.y)-.8*m*Math.sin(g*Math.PI/180);var v=new O,x=(v=new O({x:e,y:n}),G(s,l,s,y,!0)),_=(f=G(s,l,s,y,!1),u=G(s,l,v,y,!0),h=G(s,l,v,y,!1),c=G(s,l,s,2*y,!0),p=G(s,l,s,2*y,!1),new R);_.addPoint(c),_.addPoint(p);var w=new R;w.addPoint(f),w.addPoint(h),w.addPoint(l),w.addPoint(u),w.addPoint(x);var b=new z;b.addGeometry(_),b.addGeometry(w);for(var P=0;P<i;P++)o.addPoint(bzPoints[P]);o.addPoint(s),b.addGeometry(o),a.addPoint(l);for(var S=bzPoints.length,C=r;C<S;C++)a.addPoint(bzPoints[C]);b.addGeometry(a);var M=new O,T=new O;M=gainPt(bzPoints,d,12.7/13,void 0)[0];var A=bzPoints[S-1];T=D(M,A,2.5);var E=new k;arrow1=G(A,M,M,y,!0),arrow2=G(A,M,M,y,!1),arrow3=T,arrow4=A;var I=new N,L=[arrow1,arrow3,arrow2,arrow4,arrow1];return 0<I.points.length?I.points=L:I.addPoint(L),E.addGeometry(I),[E,b]},s.prototype.getType=function(){return"missilemarchpropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制事故车辆行进路线双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,L,i,R,O,N,r,o,a){var s=t.extend2,k=t.deepCopy,z=n.scalePoint,D=n.pathLength,F=n.vertex,l=(n.angle,n.bTypeline),G=(n.bzLine,n.gainPt);n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function u(t){this.$type="MotorbikeTeamAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return s(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new L,o=new N;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p=new L,f=bzPoints.length,d=0;d<=f-1;d++)p.addPoint(bzPoints[d]);var y=new N;y.addGeometry(p);var m=D(bzPoints),g=m*t*4/210,v=.7*g;e=G(bzPoints,m,.4,void 0)[0],n=G(bzPoints,m,.404,void 0)[0],i=G(bzPoints,m,.6,void 0)[0],r=G(bzPoints,m,.604,void 0)[0],o=F(e,n,e,.7*g,!0);for(var x=[],_=0;_<=360;_++)x.push(getPolarPointOfCenterPoint(o,_,v));var w=new L,b=x.length;for(d=0;d<b;d++){var P=x[d];w.addPoint(P)}y.addGeometry(w),ptV3Bottom=F(i,r,i,.7*g,!0);var S=[];for(_=0;_<=360;_++)S.push(getPolarPointOfCenterPoint(ptV3Bottom,_,v));var C=new L,M=S.length;for(d=0;d<M;d++){P=S[d];C.addPoint(P)}y.addGeometry(C),a=G(bzPoints,m,12.7/13,void 0)[0];f=bzPoints.length;var T=k(bzPoints[f-1]);s=z(a,T,2.5);var A=new O;l=F(T,a,a,g,!0),u=F(T,a,a,g,!1),h=s,c=T;var E=new R,I=[l,h,u,c,l];return 0<E.points.length?E.points=I:E.addPoint(I),A.addGeometry(E),[A,y]},u.prototype.getType=function(){return"motorbike"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制摩托化行军纵队双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,H,Y,K,J,Q,i,r,o){var a=t.extend2,$=(t.deepCopy,n.scalePoint),tt=n.pathLength,l=n.bTypeline,et=n.vertex,nt=n.angle;distance=n.distance;function s(t){this.$type="MusketerByTankAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return a(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new H,o=new Q;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s=new H,l=new H,u=new H,h=new Y,c=new Y,p=new Y,f=new Y,d=new Y,y=new Y,m=new Y,g=new Y,v=(new Y,new Y),x=(new Y,new Y),_=new Y,w=new Y,b=new Y,P=(new Y,new Y,new Y,new Y,new Y,new Y,new Y),S=new Y,C=new Y,M=new Y,T=new Q,A=new H,E=tt(bzPoints),I=E*t/50;h=gainPt(bzPoints,E,.4,i)[0],c=gainPt(bzPoints,E,7/15,r)[0],i=gainPt(bzPoints,E,.4,i)[1],r=gainPt(bzPoints,E,7/15,r)[1];var L=(h.x+c.x)/2,R=(h.y+c.y)/2,O=new Y;O=new Y({x:L,y:R}),p=et(h,c,O,I,!1),f=et(h,c,O,I,!0);A.addPoint(h),A.addPoint(p),A.addPoint(c),A.addPoint(f),A.addPoint(h),T.addGeometry(A);var N=nt(h,c);e=p.x+I*Math.cos(N*Math.PI/180),n=p.y-I*Math.sin(N*Math.PI/180),P=new Y({x:e,y:n}),e=p.x-I*Math.cos(N*Math.PI/180),n=p.y+I*Math.sin(N*Math.PI/180),S=new Y({x:e,y:n});var k=new H;k.addPoint(p),k.addPoint(S),k.addPoint(p),k.addPoint(P),T.addGeometry(k),p=gainPt(bzPoints,E,8/15,o)[0],f=gainPt(bzPoints,E,.6,a)[0],o=gainPt(bzPoints,E,8/15,o)[1],a=gainPt(bzPoints,E,.6,a)[1];var z=(p.x+f.x)/2,D=(p.y+f.y)/2,F=new Y,G=(F=new Y({x:z,y:D}),d=et(p,f,F,I,!1),y=et(p,f,F,I,!0),new H);G.addPoint(d),G.addPoint(p),G.addPoint(y),G.addPoint(f),T.addGeometry(G);N=nt(p,f);e=d.x+I*Math.cos(N*Math.PI/180),n=d.y-I*Math.sin(N*Math.PI/180),C=new Y({x:e,y:n}),e=d.x-I*Math.cos(N*Math.PI/180),n=d.y+I*Math.sin(N*Math.PI/180),M=new Y({x:e,y:n});var j=new H;j.addPoint(d),j.addPoint(C),j.addPoint(d),j.addPoint(M),T.addGeometry(j);for(var V=0;V<i;V++)s.addPoint(bzPoints[V]);s.addPoint(h),T.addGeometry(s),l.addPoint(c);for(var q=bzPoints.length,B=r;B<o;B++)l.addPoint(bzPoints[B]);T.addGeometry(l),u.addPoint(d);q=bzPoints.length;for(var U=a;U<q;U++)u.addPoint(bzPoints[U]);T.addGeometry(u);new Y,new Y;m=gainPt(bzPoints,E,12.7/13,void 0)[0];v=bzPoints[q-1];g=$(m,v,2.5);var W=new J;x=et(v,m,m,I,!0),_=et(v,m,m,I,!1),w=g,b=v;var Z=new K,X=[x,w,_,b,x];return 0<Z.points.length?Z.points=X:Z.addPoint(X),W.addGeometry(Z),[W,T]},s.prototype.getType=function(){return"musketerbytankpropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制灾民撤离双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,o;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(o=function(t,e,n,j,i,o,a,V,s,l,u){var h=t.extend2,q=(t.deepCopy,n.scalePoint,n.pathLength),c=n.bTypeline,B=n.vertex,U=(n.angle,n.bzLine,n.gainPt),W=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,getMapPoints=n.getMapPoints;function p(t){this.$type="MusketryAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return h(p,e),p.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new j,o=new V;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=c(a),this.getGraphParts(1)},p.prototype.getGraphParts=function(t){var e,n,i,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P,S,C,M,T=new V,A=q(bzPoints),E=A*t*4/150,I=4*A*t/300;e=U(bzPoints,A,.4,_)[0],n=U(bzPoints,A,6.5/15,w)[0],_=U(bzPoints,A,.4,_)[1],w=U(bzPoints,A,6.5/15,w)[1],s=B(e,n,e,E,!1),a=B(e,n,e,1.5*E,!0),u=B(e,n,n,E,!1),l=B(e,n,n,1.5*E,!0),pCRec1=new j,pCRec1.addPoint(e),pCRec1.addPoint(s);var L=polarAngle360(s,u);d=midPoint(s,u);var R=W(s,u);rRec1=R/2;for(var O=L+180;L<=O;O--)pCRec1.addPoint(getPolarPointOfCenterPoint(d,O,rRec1));pCRec1.addPoint(u),pCRec1.addPoint(n),pCRec1.addPoint(l),pCRec1.addPoint(a),pCRec1.addPoint(e),T.addGeometry(pCRec1),i=U(bzPoints,A,8.5/15,b)[0],o=U(bzPoints,A,.6,P)[0],b=U(bzPoints,A,8.5/15,b)[1],P=U(bzPoints,A,.6,P)[1],c=B(i,o,i,E,!1),h=B(i,o,i,1.5*E,!0),f=B(i,o,o,E,!1),p=B(i,o,o,1.5*E,!0);var N=polarAngle360(c,f),k=W(c,f);rRec2=k/2,y=midPoint(c,f),pCRec2=new j,pCRec2.addPoint(i),pCRec2.addPoint(c);for(var z=N+180;N<=z;z--)pCRec2.addPoint(getPolarPointOfCenterPoint(y,z,rRec2));pCRec2.addPoint(f),pCRec2.addPoint(o),pCRec2.addPoint(p),pCRec2.addPoint(h),pCRec2.addPoint(i),T.addGeometry(pCRec2),centerPoint1=midPoint(e,n),centerPoint2=midPoint(i,o),r=I,pCCircle1=new j,pCCircle2=new j;for(var D=0;D<=360;D++)pCCircle1.addPoint(getPolarPointOfCenterPoint(centerPoint1,D,r)),pCCircle2.addPoint(getPolarPointOfCenterPoint(centerPoint2,D,r));T.addGeometry(pCCircle1),T.addGeometry(pCCircle2),m=U(bzPoints,A,.5,S)[0],g=U(bzPoints,A,.49,C)[0],v=U(bzPoints,A,.51,M)[0],S=U(bzPoints,A,.5,S)[1],C=U(bzPoints,A,.49,C)[1],M=U(bzPoints,A,.51,M)[1],x=B(g,v,m,5*E,!1),pcArrow=new j,pcArrow.addPoint(m),pcArrow.addPoint(x),T.addGeometry(pcArrow),pcPl1=new j;for(var F=0;F<_;F++)pcPl1.addPoint(bzPoints[F]);pcPl1.addPoint(e),T.addGeometry(pcPl1),pcPl2=new j,pcPl2.addPoint(n);for(D=w;D<b;D++)pcPl2.addPoint(bzPoints[D]);pcPl2.addPoint(i),T.addGeometry(pcPl2),pcPl3=new j,pcPl3.addPoint(o);bzPoints.length;for(var G=P;G<bzPoints.length;G++)pcPl3.addPoint(bzPoints[G]);return T.addGeometry(pcPl3),[T]},p.prototype.getType=function(){return"musketry3"},p.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制步兵战斗车连双击结束绘制在地图上点击绘制第1个点。"},p.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},u.exports=p}.apply(e,i))||(t.exports=o)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,M,T,A,E,I,i,r,o){function a(t){this.$type="NavalShipsAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var s=t.extend2,L=(t.deepCopy,n.scalePoint),R=n.pathLength,O=n.vertex,N=n.angle,l=(n.bzLine,n.bTypeline),k=n.gainPt,z=n.distance;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=new M,o=new I;return r.addPoint(n[0]),r.addPoint(e),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e,n=new I,i=new M,r=new M,o=new M,a=new T,s=new T,l=new T,u=new T,h=new T,c=new T,p=R(bzPoints),f=p*t/70;parseInt(p/1e4);u=k(bzPoints,p,1/13,e)[0],e=k(bzPoints,p,1/13,e)[1],c.x=u.x,c.y=u.y;var d=z(u,bzPoints[0]),y=N(bzPoints[0],u)*Math.PI/180,m=d*Math.cos(y),g=d*Math.sin(y);a=O(bzPoints[0],u,bzPoints[0],f,!1),s=O(bzPoints[0],u,bzPoints[0],f,!0),c.x=bzPoints[0].x+.8*m,c.y=bzPoints[0].y-.8*g,l=O(bzPoints[0],u,c,f,!1),h=O(bzPoints[0],u,c,f,!0),i.addPoint([l,a,s,h]),c.x=bzPoints[0].x+.7*m,c.y=bzPoints[0].y-.7*g,a=O(bzPoints[0],u,c,1.5*f,!1),s=O(bzPoints[0],u,c,1.5*f,!0),r.addPoint([a,u,s]),n.addGeometry(i),n.addGeometry(r);var v=new E,x=new T,_=new T;x=k(bzPoints,p,12.7/13,void 0)[0];var w=bzPoints[bzPoints.length-1];_=L(x,w,2.5),arrow1=O(w,x,x,f,!0),arrow2=O(w,x,x,f,!1),arrow3=_,arrow4=w;var b=new A,P=[arrow1,arrow3,arrow2,arrow4,arrow1];0<b.points.length?b.points=P:b.addPoint(P),v.addGeometry(b),o.addPoint(u);for(var S=bzPoints.length,C=e;C<S;C++)o.addPoint(bzPoints[C]);return n.addGeometry(o),[v,n]},a.prototype.getType=function(){return"navalshipspropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制水上救援舰艇双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,g,v,i,r,x,o,a,s){var l=t.extend2,_=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex),u=n.angle,w=(n.bzLine,n.gainPt,n.distance);polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,azimuth=n.azimuth;function b(t){this.$type="OriginalBirthAlgorithm,http://www.Gs.com",e.call(this,{minCpt:1,maxCpt:2}),this.p1=null,this.p2=null}return l(b,e),b.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1==i){this.p1=n[0],this.p2=e;var r=new g,o=new x;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}if(2==i)return this.p1=n[0],this.p2=n[1],this.getGraphParts(1)},b.prototype.getGraphParts=function(t){r1=w(this.p1,this.p2)/8;var e=2*Math.PI,n=new g;n.points=[];for(var i=0;i<100;i++){var r=e*i/100;n.addPoint(new v({x:this.p1.x+r1*Math.sin(r),y:this.p1.y+r1*Math.cos(r)}))}n.addPoint(new v({x:this.p1.x,y:this.p1.y+r1}));var o=new x;o.addGeometry(n);var a=new g;a.addPoint(this.p1),a.addPoint(this.p2),o.addGeometry(a);var s=_(this.p1,this.p2,this.p1,r1,!1),l=_(this.p1,this.p2,this.p1,r1,!0),u=new v,h=new v;pt=b.getArcCrunode(this.p1,this.p2),u=pt[0],h=pt[1];var c=w(this.p1,this.p2),p=new g,f=(r=30,polarAngle360(this.p1,h));for(i=f;i<=r+f;i++)p.addPoint(getPolarPointOfCenterPoint(this.p1,i,c));o.addGeometry(p);var d=new g;d.addPoint(s),d.addPoint(u),o.addGeometry(d);var y=new g;y.addPoint(l),y.addPoint(h),o.addGeometry(y);var m=new g;return m.addPoint(s),m.addPoint(l),o.addGeometry(m),[o]},b.getArcCrunode=function(t,e){var n=u(t,e);90==n?n=270:270==n&&(n=90);var i=w(t,e),r=[];r[0]=new v,r[1]=new v;var o=n-15;o<0&&(o=n+360-15),r[0].x=t.x+i*Math.cos(o*Math.PI/180),r[0].y=t.y-i*Math.sin(o*Math.PI/180);var a=n+15;return 360<a&&(a-=360),r[1].x=t.x+i*Math.cos(a*Math.PI/180),r[1].y=t.y-i*Math.sin(a*Math.PI/180),r},b.prototype.getType=function(){return"originalbirthpropety"},b.prototype.getDescription=function(){return"在地图上绘制多个点最少1个点最多2个点用于绘制空中救援队伍双击结束绘制在地图上点击绘制第1个点。"},b.prototype.getStepDes=function(t){switch(t){case 2:return"完成绘制。";case 1:return"点击绘制下一个点。"}},s.exports=b}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,o;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(o=function(t,e,n,P,i,o,a,S,s,l,u){var h=t.extend2,C=(t.deepCopy,n.scalePoint,n.pathLength),c=n.bTypeline,M=n.vertex,T=(n.angle,n.bzLine,n.gainPt),A=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,getMapPoints=n.getMapPoints;function p(t){this.$type="PatrollerAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return h(p,e),p.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new P,o=new S;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=c(a),this.getGraphParts(1)},p.prototype.getGraphParts=function(t){var e,n,i,o,a,s,l,u,h,c,p,f,d,y,m=new S,g=C(bzPoints),v=g*t*4/150;e=T(bzPoints,g,.48,p)[0],n=T(bzPoints,g,.52,f)[0],p=T(bzPoints,g,.48,p)[1],f=T(bzPoints,g,.52,f)[1],s=midPoint(e,n);var x=A(e,n);r=x/2,pCCircle=new P;for(var _=0;_<=360;_++)pCCircle.addPoint(getPolarPointOfCenterPoint(s,_,r));m.addGeometry(pCCircle),l=midPoint(e,s),v=x/2*Math.sqrt(3)/2,h=M(e,n,l,v,!1),centerLeft=new P,centerLeft.addPoint(h),centerLeft.addPoint(s),m.addGeometry(centerLeft),u=midPoint(n,s),v=x/2*Math.sqrt(3)/2,c=M(e,n,u,v,!1),centerRight=new P,centerRight.addPoint(s),centerRight.addPoint(c),m.addGeometry(centerRight),i=T(bzPoints,g,.02,d)[0],o=T(bzPoints,g,.98,y)[0],d=T(bzPoints,g,.02,d)[1],y=T(bzPoints,g,.98,y)[1],inflexionPt1=M(this.p1,i,this.p1,v,!1),inflexionPt2=M(this.p1,i,i,v,!1),pcPl1=new P,pcPl1=getMapPoints(inflexionPt2,inflexionPt1,this.p1),m.addGeometry(pcPl1);var w=bzPoints.length;a=bzPoints[w-1],inflexionPt3=M(a,o,a,v,!1),inflexionPt4=M(a,o,o,v,!1),pcPl2=new P,pcPl2=getMapPoints(inflexionPt4,inflexionPt3,a),m.addGeometry(pcPl2),pcPline1=new P;for(var b=0;b<p;b++)pcPline1.addPoint(bzPoints[b]);pcPline1.addPoint(e),m.addGeometry(pcPline1),pcPline2=new P,pcPline2.addPoint(n);for(w=bzPoints.length,_=f;_<w;_++)pcPline2.addPoint(bzPoints[_]);return m.addGeometry(pcPline2),[m]},p.prototype.getType=function(){return"patrollerpropety"},p.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制流动哨双击结束绘制在地图上点击绘制第1个点。"},p.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},u.exports=p}.apply(e,i))||(t.exports=o)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,W,Z,i,r,X,o,a,s){function l(t){this.$type="PatrolLineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}var u=t.extend2,H=(t.deepCopy,n.scalePoint,n.pathLength),Y=n.vertex,K=n.midPoint,J=n.angle;n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0],o=e,a=new W,s=new X;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}var l=[];this.p1=n[i-1],this.p2=e;for(var u=0;u<i;u++)l[u]=n[u];return null!=e&&l.push(e),m_Ctrlpts=l,this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=m_Ctrlpts,n=e.length,i=new X,r=H(e)*t/400,o=Y(e[0],e[1],e[0],5*r,!1),a=new W;a.addPoint(e[0]),a.addPoint(o),i.addGeometry(a);for(var s=0;s<n-1&&(e[s].x!=e[s+1].x||e[s].y!=e[s+1].y);s++){var l=J(e[s],e[s+1])*Math.PI/180,u=r*Math.cos(l),h=r*Math.sin(l),c=K(e[s],e[s+1]),p=new Z,f=new Z;p.x=c.x-10*u,p.y=c.y+10*h,f.x=c.x+10*u,f.y=c.y-10*h;var d=new Z,y=new Z;d.x=c.x-8*u,d.y=c.y+8*h,y.x=c.x+8*u,y.y=c.y-8*h;var m=new Z,g=new Z;m.x=c.x-4*u,m.y=c.y+4*h,g.x=c.x+4*u,g.y=c.y-4*h;var v=new Z,x=new Z;v.x=c.x-2*u,v.y=c.y+2*h,x.x=c.x+2*u,x.y=c.y-2*h;var _=Y(d,m,d,2*r,!0),w=Y(d,m,d,2*r,!1),b=Y(d,m,m,2*r,!0),P=Y(d,m,m,2*r,!1),S=Y(v,x,v,2*r,!0),C=Y(v,x,v,2*r,!1),M=Y(v,x,x,2*r,!0),T=Y(v,x,x,2*r,!1),A=Y(g,y,g,2*r,!0),E=Y(g,y,g,2*r,!1),I=Y(g,y,y,2*r,!0),L=Y(g,y,y,2*r,!1),R=new W;R.addPoint(_),R.addPoint(P);var O=new W;O.addPoint(w),O.addPoint(b);var N=new W;N.addPoint(S),N.addPoint(T);var k=new W;k.addPoint(C),k.addPoint(M);var z=new W;z.addPoint(A),z.addPoint(L);var D=new W;D.addPoint(E),D.addPoint(I);var F=new W;F.addPoint(e[s]),F.addPoint(p);var G=new W;G.addPoint(f),G.addPoint(e[s+1]),i.addGeometry(R),i.addGeometry(O),i.addGeometry(N),i.addGeometry(k),i.addGeometry(z),i.addGeometry(D),i.addGeometry(F),i.addGeometry(G)}for(var j=2;j<n;j++){var V=Y(e[j-2],e[j],e[j-1],5*r,!1),q=new W;q.addPoint(V),q.addPoint(e[j-1]),i.addGeometry(q);var B=Y(e[n-3],e[n-1],e[n-1],5*r,!1),U=new W;U.addPoint(B),U.addPoint(e[n-1]),i.addGeometry(U)}return[i]},l.prototype.getType=function(){return"patrollinepropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制隔离线1双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,z,D,F,G,j,i,r,o){function a(t){this.$type="PedrailColumnAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var s=t.extend2,V=(t.deepCopy,n.scalePoint),q=n.pathLength,B=n.vertex,l=(n.angle,n.bTypeline);n.distance;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new z,o=new j;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e,n,i,r,o=new z,a=new z,s=new z,l=new D,u=new D,h=new D,c=new D,p=new D,f=new D,d=new D,y=new D,m=(new D,new D),g=(new D,new D),v=new D,x=new D,_=new D,w=(new D,new D,new D,new D,new D,new D,new D,new D,new D,new D,new j),b=q(bzPoints),P=b*t/60;l=gainPt(bzPoints,b,.4,e)[0],u=gainPt(bzPoints,b,7/15,n)[0],e=gainPt(bzPoints,b,.4,e)[1],n=gainPt(bzPoints,b,7/15,n)[1];var S=(l.x+u.x)/2,C=(l.y+u.y)/2,M=new D,T=(M=new D({x:S,y:C}),h=B(l,u,M,P,!0),c=B(l,u,M,P,!1),w=new j,new z);T.addPoint(l),T.addPoint(h),T.addPoint(u),T.addPoint(c),T.addPoint(l),w.addGeometry(T),h=gainPt(bzPoints,b,8/15,i)[0],c=gainPt(bzPoints,b,.6,r)[0],i=gainPt(bzPoints,b,8/15,i)[1],r=gainPt(bzPoints,b,.6,r)[1];S=(h.x+c.x)/2,C=(h.y+c.y)/2,M=new D,M=new D({x:S,y:C}),p=B(h,c,M,P,!0),f=B(h,c,M,P,!1);var A=new z;A.addPoint(p),A.addPoint(h),A.addPoint(f),A.addPoint(c),A.addPoint(p),w.addGeometry(A);for(var E=0;E<e;E++)o.addPoint(bzPoints[E]);o.addPoint(l),w.addGeometry(o),a.addPoint(u);for(var I=bzPoints.length,L=n;L<i;L++)a.addPoint(bzPoints[L]);w.addGeometry(a),s.addPoint(p);I=bzPoints.length;for(var R=r;R<I;R++)s.addPoint(bzPoints[R]);w.addGeometry(s);new D,new D;d=gainPt(bzPoints,b,12.7/13,void 0)[0];m=bzPoints[I-1];y=V(d,m,2.5);var O=new G;g=B(m,d,d,P,!0),v=B(m,d,d,P,!1),x=y,_=m;var N=new F,k=[g,x,v,_,g];return 0<N.points.length?N.points=k:N.addPoint(k),O.addGeometry(N),[O,w]},a.prototype.getType=function(){return"pedrailcolumnpropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制救援车辆纵队双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,w,b,i,P,S,r,o,a){function s(t){this.$type="PipeLayingAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}var C,l=t.extend2,M=(t.deepCopy,n.scalePoint,n.pathLength),T=(n.vertex,n.angle),A=n.midPoint,E=n.distance;n.gainPt1,Math.PI;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0],o=e,a=new w,s=new S;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}var l=[];this.p1=n[i-1],this.p2=e;for(var u=0;u<i;u++)l[u]=n[u];return null!=e&&l.push(e),m_Ctrlpts=l,this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e=m_Ctrlpts;C=M(e)*t/80;for(var n=e.length,i=new S,r=(new P,C/5),o=0;o<n-1&&(e[o].x!=e[o+1].x||e[o].y!=e[o+1].y);o++){var a,s,l=E(e[o],e[o+1])/r/5,u=e[o].copy(),h=new w;if(1<l){var c=T(e[o],e[o+1])*Math.PI/180;a=r*Math.cos(c),s=r*Math.sin(c)}for(var p=0;p<l-1;p++){var f=u.copy(),d=new b;d.x=u.x+3*a,d.y=u.y-3*s;var y=new w;y.addPoint(f),y.addPoint(d),i.addGeometry(y);for(var m=A(f,d),g=new w,v=0;v<1e3;v++){var x=2*Math.PI*v/1e3,_=new b;_.x=m.x+r*Math.cos(x),_.y=m.y+r*Math.sin(x),g.addPoint(_)}i.addGeometry(g),u.x+=5*a,u.y-=5*s}h.addPoint(u),h.addPoint(e[o+1]),i.addGeometry(h)}return[i]},s.prototype.getType=function(){return"pipelayingpropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制输油管线双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(7),n(0),n(2),n(4),n(6),n(5),n(3),n(1),n,e,t],void 0===(r=function(t,e,d,n,r,o,y,m,i,a,s){function l(){this.$type="PolygonTextAlgorithm,http://www.Gs.com",t.call(this,{minCpt:2,maxCpt:10}),this._inilization()}var u=e.extend2,g=(e.deepCopy,n.scalePoint,n.bzLine,n.bTypeline),v=n.distance,x=n.optionWay,_=n.linePerpenPoints;return u(l,t),l.prototype._inilization=function(){},l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=new d,o=new y;r.addPoint(n[0]),r.addPoint(e),o.addGeometry(r);var a=new m;return a.x=.5*(n[0].x+e.x),a.y=.5*(n[0].y+e.y),[o,a]}for(var s=[],l=0;l<i-1;l++)n[l].x===n[l+1].x&&n[l].y===n[l+1].y||s.push(n[l]);s.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||s.push(e)),s.push(n[0]);var u=s.length;if(3<u){var h=!x(s[1],s[u-2],s[0]),c=new m,p=new m;_(s[0],s[u-2],.25*v(s[0],s[u-2]),.1*v(s[0],s[u-2]),c,p,h);var f=[];for(l=0;l<u-1;l++)f.push(s[l]);f.push(p),f.push(s[u-1]),bzPoints=g(f,f.length)}else bzPoints=g(s,s.length);return this.getGraphParts(1)},l.prototype.getGraphParts=function(t){var e=new r,n=new o;bzPoints.length;e.addPoint(bzPoints),n.addGeometry(e);var i=n.envelope().center();return[n,i]},l.prototype.getType=function(){return"polygontextpropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制警戒区域双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,w,b,P,S,C,i,r,o){function a(t){this.$type="RailageAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var s=t.extend2,M=t.deepCopy,T=n.scalePoint,A=n.pathLength,E=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),I=n.gainPt,L=n.distance;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new w,o=new C;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){for(var e,n,i,r=A(bzPoints),o=r*t*4/210,a=parseInt(r/o),s=new b({x:bzPoints[0].x,y:bzPoints[0].y}),l=new b,u=new b,h=new b,c=new C,p=(new C,[]),f=1;f<a-1;f++){var d;d=I(bzPoints,r,f/a,void 0)[0],linePerpenPoints(s,d,L(s,d),r/200,l,u,!0),linePerpenPoints(s,d,L(s,d),r/200,l,h,!1),p[parseInt(f)]=new w,p[parseInt(f)].addPoint(new b({x:u.x,y:u.y})),p[parseInt(f)].addPoint(new b({x:h.x,y:h.y})),c.addGeometry(p[parseInt(f)]),s.x=d.x,s.y=d.y}e=I(bzPoints,r,12.7/13,void 0)[0];var y=M(bzPoints[bzPoints.length-1]);n=T(e,y,2.5);var m=[i=E(y,e,e,o,!0),n,E(y,e,e,o,!1),y,i],g=new P;0<g.points.length?g.points=m:g.addPoint(m);var v=new S;v.addGeometry(g);new C;var x=new w,_=bzPoints.length;for(f=0;f<=_-1;f++)x.addPoint(bzPoints[f]);return c.addGeometry(x),[v,c]},a.prototype.getType=function(){return"railagepropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制铁路输送双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,o;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(o=function(t,e,n,C,i,o,a,M,s,l,u){var h=t.extend2,T=(t.deepCopy,n.scalePoint,n.pathLength),A=n.vertex,c=(n.angle,n.bzLine,n.bTypeline),E=n.gainPt,I=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,getMapPoints=n.getMapPoints;function p(t){this.$type="RecceSearchAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return h(p,e),p.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new C,o=new M;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=c(a),this.getGraphParts(1)},p.prototype.getGraphParts=function(t){var e,n,i,o,a,s,l,u,h,c,p,f,d,y,m,g,v=new M,x=T(bzPoints),_=x*t*4/150;e=E(bzPoints,x,.48,d)[0],n=E(bzPoints,x,.52,y)[0],d=E(bzPoints,x,.48,d)[1],y=E(bzPoints,x,.52,y)[1],s=midPoint(e,n);var w=I(e,n);r=w/2,pCCircle=new C;for(var b=0;b<=360;b++)pCCircle.addPoint(getPolarPointOfCenterPoint(s,b,r));v.addGeometry(pCCircle),l=midPoint(e,s),_=w/2*Math.sqrt(3)/2,h=A(e,n,l,_,!1),p=A(e,n,e,1.8*_,!1),centerLeft=new C,centerLeft.addPoint(h),centerLeft.addPoint(p),v.addGeometry(centerLeft),u=midPoint(n,s),_=w/2*Math.sqrt(3)/2,c=A(e,n,u,_,!1),f=A(e,n,n,1.8*_,!1),centerRight=new C,centerRight.addPoint(c),centerRight.addPoint(f),v.addGeometry(centerRight),i=E(bzPoints,x,.02,m)[0],o=E(bzPoints,x,.98,g)[0],m=E(bzPoints,x,.02,m)[1],g=E(bzPoints,x,.98,g)[1],inflexionPt1=A(this.p1,i,this.p1,_,!1),inflexionPt2=A(this.p1,i,i,_,!1),pcPl1=new C,pcPl1=getMapPoints(inflexionPt2,inflexionPt1,this.p1),v.addGeometry(pcPl1);var P=bzPoints.length;a=bzPoints[P-1],inflexionPt3=A(a,o,a,_,!1),inflexionPt4=A(a,o,o,_,!1),pcPl2=new C,pcPl2=getMapPoints(inflexionPt4,inflexionPt3,a),v.addGeometry(pcPl2),pcPline1=new C;for(var S=0;S<d;S++)pcPline1.addPoint(bzPoints[S]);pcPline1.addPoint(e),v.addGeometry(pcPline1),pcPline2=new C,pcPline2.addPoint(n);for(b=y;b<P;b++)pcPline2.addPoint(bzPoints[b]);return v.addGeometry(pcPline2),[v]},p.prototype.getType=function(){return"reccesearch"},p.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制侦察搜索双击结束绘制在地图上点击绘制第1个点。"},p.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},u.exports=p}.apply(e,i))||(t.exports=o)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,O,N,i,r,k,o,a,s){function z(t){this.$type="RendezvousArea1Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3})}var l=t.extend2,D=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine),F=(n.gainPt,n.distance),G=n.calLinePerpenPoints,j=n.optionWay;return l(z,e),z.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new N,o=new N,a=new N,s=new N,l=new N,u=new N,h=new N,c=new N,p=new N,f=0,d=0,y=1e-9,m=0,g=[],v=new N;if(1==i){if(g[0]=n[0],null!=e)if(n[0].x==e.x||n[0].y==e.y){var x=new N({x:e.x+y,y:e.y});g[1]=x}else g[1]=e;var _=new N;m=F(g[0],g[1]),G(g[0],g[1],m/2,m/2,v,_,!0),g[2]=_}else if(2==i){for(var w=0;w<i;w++)g[w]=n[w];if(null!=e)if(n[1].x==e.x||n[1].y==e.y){x=new N({x:e.x+y,y:e.y});g[2]=x}else g[2]=e;else{_=new N;m=F(g[0],g[1]),G(g[0],g[1],m/2,m/2,v,_,!0),g[2]=_}}else if(3==i)for(w=0;w<i;w++)g[w]=n[w];var b=F(g[0],g[1])+y,P=F(g[1],g[2])+y,S=F(g[2],g[0])+y;b<P&&S<P?(v=g[0],g[0]=g[1],g[1]=g[2],g[2]=v):b<S&&P<S&&(v=g[1],g[1]=g[0],g[0]=g[2],g[2]=v),j(g[0],g[1],g[2]),f=(g[0].y-g[1].y)/(g[0].x-g[1].x+y),d=F(g[1],g[0])+y,g[0].y>g[1].y?f<0?z.calculatePoints(f,g[2],d/3,a,o):z.calculatePoints(f,g[2],d/3,o,a):f<0?z.calculatePoints(f,g[2],d/3,o,a):z.calculatePoints(f,g[2],d/3,a,o),f=(g[1].y-g[2].y)/(g[1].x-g[2].x+y),d=F(g[2],g[1])+y,g[1].y>g[2].y?f<0?z.calculatePoints(f,g[0],d/3,l,s):z.calculatePoints(f,g[0],d/3,s,l):f<0?z.calculatePoints(f,g[0],d/3,s,l):z.calculatePoints(f,g[0],d/3,l,s),f=(g[2].y-g[0].y)/(g[2].x-g[0].x+y),d=F(g[2],g[0])+y,g[2].y>g[0].y?f<0?z.calculatePoints(f,g[1],d/3,r,p):z.calculatePoints(f,g[1],d/3,p,r):f<0?z.calculatePoints(f,g[1],d/3,p,r):z.calculatePoints(f,g[1],d/3,r,p),h.x=(g[0].x+g[1].x)/2,h.y=(g[0].y+g[1].y)/2,f=(g[0].y-g[1].y)/(g[0].x-g[1].x+y),d=F(g[1],g[0])+y,g[0].y>g[1].y?f<0?z.calculatePoints(f,h,d/6,u,c):z.calculatePoints(f,h,d/6,c,u):f<0?z.calculatePoints(f,h,d/6,c,u):z.calculatePoints(f,h,d/6,u,c);var C=new Array;C[0]=g[0],C[1]=l,C[2]=u,C[3]=h;var M=new Array;M[0]=h,M[1]=c,M[2]=p,M[3]=g[1];var T=new Array;T[0]=g[1],T[1]=r,T[2]=o,T[3]=g[2];var A=new Array;A[0]=g[2],A[1]=a,A[2]=s,A[3]=g[0];var E=new O,I=new k,L=D(C),R=L.length;for(w=0;w<R;w++)E.addPoint(L[w]);for(R=(L=D(M)).length,w=0;w<R;w++)E.addPoint(L[w]);for(R=(L=D(T)).length,w=0;w<R;w++)E.addPoint(L[w]);for(R=(L=D(A)).length,w=0;w<R;w++)E.addPoint(L[w]);return I.addGeometry(E),[I]},z.calculatePoints=function(t,e,n,i,r){var o=e.x,a=e.y,s=a-t*o,l=t*t+1,u=2*t*(s-a)-2*o,h=(s-a)*(s-a)+o*o-n*n;i.x=(-u-Math.sqrt(u*u-4*l*h))/(2*l),r.x=(-u+Math.sqrt(u*u-4*l*h))/(2*l),i.y=t*i.x+s,r.y=t*r.x+s},z.prototype.getType=function(){return"rendezvousarea1propety"},z.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制集结区域双击结束绘制在地图上点击绘制第1个点。"},z.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},s.exports=z}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n(24),n,e,t],void 0===(r=function(t,e,n,O,N,h,k,z,c,i,r,o){function D(t){this.$type="RendezvousArea2Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3})}var a=t.extend2,p=(t.deepCopy,n.scalePoint,n.pathLength),f=n.vertex,F=(n.angle,n.bzLine),d=n.gainPt,G=n.distance,j=n.calLinePerpenPoints,V=n.optionWay;return a(D,e),D.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new N,o=new N,a=new N,s=new N,l=new N,u=new N,h=new N,c=new N,p=new N,f=0,d=0,y=0,m=1e-9,g=[],v=new N;if(1==i){if(g[0]=n[0],null!=e)if(n[0].x==e.x||n[0].y==e.y){var x=new N({x:e.x+m,y:e.y});g[1]=x}else g[1]=e;var _=new N;y=G(g[0],g[1]),j(g[0],g[1],y/2,y/2,v,_,!0),g[2]=_}else if(2==i){for(var w=0;w<i;w++)g[w]=n[w];if(null!=e)if(n[1].x==e.x||n[1].y==e.y){x=new N({x:e.x+m,y:e.y});g[2]=x}else g[2]=e;else{_=new N;y=G(g[0],g[1]),j(g[0],g[1],y/2,y/2,v,_,!0),g[2]=_}}else if(3==i)for(w=0;w<i;w++)g[w]=n[w];var b=G(g[0],g[1])+m,P=G(g[1],g[2])+m,S=G(g[2],g[0])+m;b<P&&S<P?(v=g[0],g[0]=g[1],g[1]=g[2],g[2]=v):b<S&&P<S&&(v=g[1],g[1]=g[0],g[0]=g[2],g[2]=v),V(g[0],g[1],g[2]),f=(g[0].y-g[1].y)/(g[0].x-g[1].x+m),d=G(g[1],g[0])+m,g[0].y>g[1].y?f<0?D.calculatePoints(f,g[2],d/3,a,o):D.calculatePoints(f,g[2],d/3,o,a):f<0?D.calculatePoints(f,g[2],d/3,o,a):D.calculatePoints(f,g[2],d/3,a,o),f=(g[1].y-g[2].y)/(g[1].x-g[2].x+m),d=G(g[2],g[1])+m,g[1].y>g[2].y?f<0?D.calculatePoints(f,g[0],d/3,l,s):D.calculatePoints(f,g[0],d/3,s,l):f<0?D.calculatePoints(f,g[0],d/3,s,l):D.calculatePoints(f,g[0],d/3,l,s),f=(g[2].y-g[0].y)/(g[2].x-g[0].x+m),d=G(g[2],g[0])+m,g[2].y>g[0].y?f<0?D.calculatePoints(f,g[1],d/3,r,p):D.calculatePoints(f,g[1],d/3,p,r):f<0?D.calculatePoints(f,g[1],d/3,p,r):D.calculatePoints(f,g[1],d/3,r,p),h.x=(g[0].x+g[1].x)/2,h.y=(g[0].y+g[1].y)/2,f=(g[0].y-g[1].y)/(g[0].x-g[1].x+m),d=G(g[1],g[0])+m,g[0].y>g[1].y?f<0?D.calculatePoints(f,h,d/6,u,c):D.calculatePoints(f,h,d/6,c,u):f<0?D.calculatePoints(f,h,d/6,c,u):D.calculatePoints(f,h,d/6,u,c);var C=new Array;C[0]=g[0],C[1]=l,C[2]=u,C[3]=h;var M=new Array;M[0]=h,M[1]=c,M[2]=p,M[3]=g[1];var T=new Array;T[0]=g[1],T[1]=r,T[2]=o,T[3]=g[2];var A=new Array;A[0]=g[2],A[1]=a,A[2]=s,A[3]=g[0];var E=new O,I=new z,L=F(C),R=L.length;this.bzPoints=[];for(w=0;w<R;w++)E.addPoint(L[w]),this.bzPoints.push(L[w]);for(R=(L=F(M)).length,w=0;w<R;w++)E.addPoint(L[w]),this.bzPoints.push(L[w]);for(R=(L=F(T)).length,w=0;w<R;w++)E.addPoint(L[w]),this.bzPoints.push(L[w]);for(R=(L=F(A)).length,w=0;w<R;w++)E.addPoint(L[w]),this.bzPoints.push(L[w]);I.addGeometry(E);new k;return[I,this.getGraphParts(1)]},D.prototype.getGraphParts=function(t){var e,n,i,r=4*p(this.bzPoints)/3;pl1=d(this.bzPoints,r,.11,e)[0],pr1=d(this.bzPoints,r,.13,n)[0],midp1=d(this.bzPoints,r,.12,i)[0],distance1=G(pl1,pr1),pt1=f(pl1,pr1,midp1,distance1,!1),arrow1=new h,arrow1.addPoint(pl1),arrow1.addPoint(pt1),arrow1.addPoint(pr1),arrow1.addPoint(pl1),pl2=d(this.bzPoints,r,.34,e)[0],pr2=d(this.bzPoints,r,.36,n)[0],midp2=d(this.bzPoints,r,.35,i)[0],distance2=G(pl2,pr2),pt2=f(pl2,pr2,midp2,distance2,!1),arrow2=new h,arrow2.addPoint(pl2),arrow2.addPoint(pt2),arrow2.addPoint(pr2),arrow2.addPoint(pl2),pl3=d(this.bzPoints,r,.7,e)[0],pr3=d(this.bzPoints,r,.72,n)[0],midp3=d(this.bzPoints,r,.71,i)[0],distance3=G(pl3,pr3),pt3=f(pl3,pr3,midp3,distance3,!1),arrow3=new h,arrow3.addPoint(pl3),arrow3.addPoint(pt3),arrow3.addPoint(pr3),arrow3.addPoint(pl3),pl4=d(this.bzPoints,r,.49,e)[0],pr4=d(this.bzPoints,r,.51,n)[0],midp4=d(this.bzPoints,r,.5,i)[0],distance4=G(pl4,pr4),pt4=f(pl4,pr4,midp4,distance4,!1),arrow4=new h,arrow4.addPoint(pl4),arrow4.addPoint(pt4),arrow4.addPoint(pr4),arrow4.addPoint(pl4);var o=new k,a=new k,s=new k,l=new k;o.addGeometry(arrow1),a.addGeometry(arrow2),s.addGeometry(arrow3),l.addGeometry(arrow4);var u=new c;return u.addGeometry(o),u.addGeometry(a),u.addGeometry(s),u.addGeometry(l),u},D.calculatePoints=function(t,e,n,i,r){var o=e.x,a=e.y,s=a-t*o,l=t*t+1,u=2*t*(s-a)-2*o,h=(s-a)*(s-a)+o*o-n*n;i.x=(-u-Math.sqrt(u*u-4*l*h))/(2*l),r.x=(-u+Math.sqrt(u*u-4*l*h))/(2*l),i.y=t*i.x+s,r.y=t*r.x+s},D.prototype.getType=function(){return"rendezvousarea2propety"},D.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制事故区域蔓延双击结束绘制在地图上点击绘制第1个点。"},D.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},o.exports=D}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,R,O,i,r,N,o,a,s){function k(t){this.$type="RendezvousArea3Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3})}var l=t.extend2,u=(t.deepCopy,n.scalePoint,n.pathLength),h=n.vertex,z=(n.angle,n.bzLine),c=n.gainPt,D=n.distance,F=n.calLinePerpenPoints,G=n.optionWay;return l(k,e),k.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new O,o=new O,a=new O,s=new O,l=new O,u=new O,h=new O,c=new O,p=new O,f=0,d=0,y=0,m=1e-9,g=[],v=new O;if(1==i){if(g[0]=n[0],null!=e)if(n[0].x==e.x||n[0].y==e.y){var x=new O({x:e.x+m,y:e.y});g[1]=x}else g[1]=e;var _=new O;y=D(g[0],g[1]),F(g[0],g[1],y/2,y/2,v,_,!0),g[2]=_}else if(2==i){for(var w=0;w<i;w++)g[w]=n[w];if(null!=e)if(n[1].x==e.x||n[1].y==e.y){x=new O({x:e.x+m,y:e.y});g[2]=x}else g[2]=e;else{_=new O;y=D(g[0],g[1]),F(g[0],g[1],y/2,y/2,v,_,!0),g[2]=_}}else if(3==i)for(w=0;w<i;w++)g[w]=n[w];var b=D(g[0],g[1])+m,P=D(g[1],g[2])+m,S=D(g[2],g[0])+m;b<P&&S<P?(v=g[0],g[0]=g[1],g[1]=g[2],g[2]=v):b<S&&P<S&&(v=g[1],g[1]=g[0],g[0]=g[2],g[2]=v),G(g[0],g[1],g[2]),f=(g[0].y-g[1].y)/(g[0].x-g[1].x+m),d=D(g[1],g[0])+m,g[0].y>g[1].y?f<0?k.calculatePoints(f,g[2],d/3,a,o):k.calculatePoints(f,g[2],d/3,o,a):f<0?k.calculatePoints(f,g[2],d/3,o,a):k.calculatePoints(f,g[2],d/3,a,o),f=(g[1].y-g[2].y)/(g[1].x-g[2].x+m),d=D(g[2],g[1])+m,g[1].y>g[2].y?f<0?k.calculatePoints(f,g[0],d/3,l,s):k.calculatePoints(f,g[0],d/3,s,l):f<0?k.calculatePoints(f,g[0],d/3,s,l):k.calculatePoints(f,g[0],d/3,l,s),f=(g[2].y-g[0].y)/(g[2].x-g[0].x+m),d=D(g[2],g[0])+m,g[2].y>g[0].y?f<0?k.calculatePoints(f,g[1],d/3,r,p):k.calculatePoints(f,g[1],d/3,p,r):f<0?k.calculatePoints(f,g[1],d/3,p,r):k.calculatePoints(f,g[1],d/3,r,p),h.x=(g[0].x+g[1].x)/2,h.y=(g[0].y+g[1].y)/2,f=(g[0].y-g[1].y)/(g[0].x-g[1].x+m),d=D(g[1],g[0])+m,g[0].y>g[1].y?f<0?k.calculatePoints(f,h,d/6,u,c):k.calculatePoints(f,h,d/6,c,u):f<0?k.calculatePoints(f,h,d/6,c,u):k.calculatePoints(f,h,d/6,u,c);var C=new Array;C[0]=g[0],C[1]=l,C[2]=u,C[3]=h;var M=new Array;M[0]=h,M[1]=c,M[2]=p,M[3]=g[1];var T=new Array;T[0]=g[1],T[1]=r,T[2]=o,T[3]=g[2];var A=new Array;A[0]=g[2],A[1]=a,A[2]=s,A[3]=g[0];var E=new R;this.drawLine=new N;var I=z(C),L=I.length;this.bzPoints=[];for(w=0;w<L;w++)E.addPoint(I[w]),this.bzPoints.push(I[w]);for(L=(I=z(M)).length,w=0;w<L;w++)E.addPoint(I[w]),this.bzPoints.push(I[w]);for(L=(I=z(T)).length,w=0;w<L;w++)E.addPoint(I[w]),this.bzPoints.push(I[w]);for(L=(I=z(A)).length,w=0;w<L;w++)E.addPoint(I[w]),this.bzPoints.push(I[w]);return this.drawLine.addGeometry(E),this.getGraphParts(1),[this.drawLine]},k.prototype.getGraphParts=function(t){var e,n,i,r=4*u(this.bzPoints)/3;return pl1=c(this.bzPoints,r,.11,e)[0],pr1=c(this.bzPoints,r,.13,n)[0],midp1=c(this.bzPoints,r,.12,i)[0],distance1=D(pl1,pr1),pt1=h(pl1,pr1,midp1,distance1,!1),arrow1=new R,arrow1.addPoint(pl1),arrow1.addPoint(pt1),arrow1.addPoint(pr1),arrow1.addPoint(pl1),pl2=c(this.bzPoints,r,.34,e)[0],pr2=c(this.bzPoints,r,.36,n)[0],midp2=c(this.bzPoints,r,.35,i)[0],distance2=D(pl2,pr2),pt2=h(pl2,pr2,midp2,distance2,!1),arrow2=new R,arrow2.addPoint(pl2),arrow2.addPoint(pt2),arrow2.addPoint(pr2),arrow2.addPoint(pl2),pl3=c(this.bzPoints,r,.7,e)[0],pr3=c(this.bzPoints,r,.72,n)[0],midp3=c(this.bzPoints,r,.71,i)[0],distance3=D(pl3,pr3),pt3=h(pl3,pr3,midp3,distance3,!1),arrow3=new R,arrow3.addPoint(pl3),arrow3.addPoint(pt3),arrow3.addPoint(pr3),arrow3.addPoint(pl3),pl4=c(this.bzPoints,r,.49,e)[0],pr4=c(this.bzPoints,r,.51,n)[0],midp4=c(this.bzPoints,r,.5,i)[0],distance4=D(pl4,pr4),pt4=h(pl4,pr4,midp4,distance4,!1),arrow4=new R,arrow4.addPoint(pl4),arrow4.addPoint(pt4),arrow4.addPoint(pr4),arrow4.addPoint(pl4),this.drawLine.addGeometry(arrow1),this.drawLine.addGeometry(arrow2),this.drawLine.addGeometry(arrow3),this.drawLine.addGeometry(arrow4),this.drawLine},k.calculatePoints=function(t,e,n,i,r){var o=e.x,a=e.y,s=a-t*o,l=t*t+1,u=2*t*(s-a)-2*o,h=(s-a)*(s-a)+o*o-n*n;i.x=(-u-Math.sqrt(u*u-4*l*h))/(2*l),r.x=(-u+Math.sqrt(u*u-4*l*h))/(2*l),i.y=t*i.x+s,r.y=t*r.x+s},k.prototype.getType=function(){return"rendezvousarea3propety"},k.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制事故范围控制双击结束绘制在地图上点击绘制第1个点。"},k.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},s.exports=k}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n(24),n,e,t],void 0===(r=function(t,e,n,O,N,h,k,z,c,i,r,o){function D(t){this.$type="RendezvousArea4Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3})}var a=t.extend2,p=(t.deepCopy,n.scalePoint,n.pathLength),f=n.vertex,F=(n.angle,n.bzLine),d=n.gainPt,G=n.distance,j=n.calLinePerpenPoints,V=n.optionWay;return a(D,e),D.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new N,o=new N,a=new N,s=new N,l=new N,u=new N,h=new N,c=new N,p=new N,f=0,d=0,y=0,m=[],g=new N,v=1e-9;if(1==i){if(m[0]=n[0],null!=e)if(n[0].x==e.x||n[0].y==e.y){var x=new N({x:e.x+v,y:e.y});m[1]=x}else m[1]=e;var _=new N;y=G(m[0],m[1]),j(m[0],m[1],y/2,y/2,g,_,!0),m[2]=_}else if(2==i){for(var w=0;w<i;w++)m[w]=n[w];if(null!=e)if(n[1].x==e.x||n[1].y==e.y){x=new N({x:e.x+v,y:e.y});m[2]=x}else m[2]=e;else{_=new N;y=G(m[0],m[1]),j(m[0],m[1],y/2,y/2,g,_,!0),m[2]=_}}else if(3==i)for(w=0;w<i;w++)m[w]=n[w];var b=G(m[0],m[1])+v,P=G(m[1],m[2])+v,S=G(m[2],m[0])+v;b<P&&S<P?(g=m[0],m[0]=m[1],m[1]=m[2],m[2]=g):b<S&&P<S&&(g=m[1],m[1]=m[0],m[0]=m[2],m[2]=g),V(m[0],m[1],m[2]),f=(m[0].y-m[1].y)/(m[0].x-m[1].x+v),d=G(m[1],m[0])+v,m[0].y>m[1].y?f<0?D.calculatePoints(f,m[2],d/3,a,o):D.calculatePoints(f,m[2],d/3,o,a):f<0?D.calculatePoints(f,m[2],d/3,o,a):D.calculatePoints(f,m[2],d/3,a,o),f=(m[1].y-m[2].y)/(m[1].x-m[2].x+v),d=G(m[2],m[1])+v,m[1].y>m[2].y?f<0?D.calculatePoints(f,m[0],d/3,l,s):D.calculatePoints(f,m[0],d/3,s,l):f<0?D.calculatePoints(f,m[0],d/3,s,l):D.calculatePoints(f,m[0],d/3,l,s),f=(m[2].y-m[0].y)/(m[2].x-m[0].x+v),d=G(m[2],m[0])+v,m[2].y>m[0].y?f<0?D.calculatePoints(f,m[1],d/3,r,p):D.calculatePoints(f,m[1],d/3,p,r):f<0?D.calculatePoints(f,m[1],d/3,p,r):D.calculatePoints(f,m[1],d/3,r,p),h.x=(m[0].x+m[1].x)/2,h.y=(m[0].y+m[1].y)/2,f=(m[0].y-m[1].y)/(m[0].x-m[1].x+v),d=G(m[1],m[0])+v,m[0].y>m[1].y?f<0?D.calculatePoints(f,h,d/6,u,c):D.calculatePoints(f,h,d/6,c,u):f<0?D.calculatePoints(f,h,d/6,c,u):D.calculatePoints(f,h,d/6,u,c);var C=new Array;C[0]=m[0],C[1]=l,C[2]=u,C[3]=h;var M=new Array;M[0]=h,M[1]=c,M[2]=p,M[3]=m[1];var T=new Array;T[0]=m[1],T[1]=r,T[2]=o,T[3]=m[2];var A=new Array;A[0]=m[2],A[1]=a,A[2]=s,A[3]=m[0];var E=new O,I=new z,L=F(C),R=L.length;this.bzPoints=[];for(w=0;w<R;w++)E.addPoint(L[w]),this.bzPoints.push(L[w]);for(R=(L=F(M)).length,w=0;w<R;w++)E.addPoint(L[w]),this.bzPoints.push(L[w]);for(R=(L=F(T)).length,w=0;w<R;w++)E.addPoint(L[w]),this.bzPoints.push(L[w]);for(R=(L=F(A)).length,w=0;w<R;w++)E.addPoint(L[w]),this.bzPoints.push(L[w]);I.addGeometry(E);new k;return[I,this.getGraphParts(1)]},D.prototype.getGraphParts=function(t){var e,n,i,r=4*p(this.bzPoints)/3;pl1=d(this.bzPoints,r,.11,e)[0],pr1=d(this.bzPoints,r,.13,n)[0],midp1=d(this.bzPoints,r,.12,i)[0],distance1=G(pl1,pr1),pt1=f(pl1,pr1,midp1,distance1,!0),arrow1=new h,arrow1.addPoint(pl1),arrow1.addPoint(pt1),arrow1.addPoint(pr1),arrow1.addPoint(pl1),pl2=d(this.bzPoints,r,.34,e)[0],pr2=d(this.bzPoints,r,.36,n)[0],midp2=d(this.bzPoints,r,.35,i)[0],distance2=G(pl2,pr2),pt2=f(pl2,pr2,midp2,distance2,!0),arrow2=new h,arrow2.addPoint(pl2),arrow2.addPoint(pt2),arrow2.addPoint(pr2),arrow2.addPoint(pl2),pl3=d(this.bzPoints,r,.7,e)[0],pr3=d(this.bzPoints,r,.72,n)[0],midp3=d(this.bzPoints,r,.71,i)[0],distance3=G(pl3,pr3),pt3=f(pl3,pr3,midp3,distance3,!0),arrow3=new h,arrow3.addPoint(pl3),arrow3.addPoint(pt3),arrow3.addPoint(pr3),arrow3.addPoint(pl3),pl4=d(this.bzPoints,r,.49,e)[0],pr4=d(this.bzPoints,r,.51,n)[0],midp4=d(this.bzPoints,r,.5,i)[0],distance4=G(pl4,pr4),pt4=f(pl4,pr4,midp4,distance4,!0),arrow4=new h,arrow4.addPoint(pl4),arrow4.addPoint(pt4),arrow4.addPoint(pr4),arrow4.addPoint(pl4);var o=new k,a=new k,s=new k,l=new k;o.addGeometry(arrow1),a.addGeometry(arrow2),s.addGeometry(arrow3),l.addGeometry(arrow4);var u=new c;return u.addGeometry(o),u.addGeometry(a),u.addGeometry(s),u.addGeometry(l),u},D.calculatePoints=function(t,e,n,i,r){var o=e.x,a=e.y,s=a-t*o,l=t*t+1,u=2*t*(s-a)-2*o,h=(s-a)*(s-a)+o*o-n*n;i.x=(-u-Math.sqrt(u*u-4*l*h))/(2*l),r.x=(-u+Math.sqrt(u*u-4*l*h))/(2*l),i.y=t*i.x+s,r.y=t*r.x+s},D.prototype.getType=function(){return"rendezvousarea4propety"},D.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制物质集散地双击结束绘制在地图上点击绘制第1个点。"},D.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},o.exports=D}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,w,b,i,r,P,o,a,s){var l=t.extend2,S=(t.deepCopy,n.scalePoint,n.pathLength),C=n.vertex,M=n.angle;distance=n.distance,gainPt1=n.gainPt1;function u(t){this.$type="RoundsLineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}return l(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0],o=e,a=new w,s=new P;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}var l=[];this.p1=n[i-1],this.p2=e;for(var u=0;u<i;u++)l[u]=n[u];return null!=e&&l.push(e),m_Ctrlpts=l,this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l=m_Ctrlpts,u=l.length,h=S(l)/70,c=new P,p=(new b,new b,new b),f=(new b,new b,new b),d=(new b,new b,new b,new b,new b,new b,new b,new b),y=new b;new b,new b,new b;d=C(l[0],l[1],l[0],h,!0),y=C(l[0],l[1],l[0],h,!1),path1=new w,path1.addPoint(d),path1.addPoint(y),c.addGeometry(path1);for(var m=0;m<u-1&&(l[m].x!=l[m+1].x||l[m].y!=l[m+1].y);m++){e=(l[m].x+l[m+1].x)/2,n=(l[m].y+l[m+1].y)/2,new b({x:e,y:n}),l[m],l[m+1],90==(i=M(l[m],l[m+1]))?i=270:270==i&&(i=90),r=e+2*h*Math.cos(i*Math.PI/180),o=n-2*h*Math.sin(i*Math.PI/180),a=e-2*h*Math.cos(i*Math.PI/180),s=n+2*h*Math.sin(i*Math.PI/180);var g=new w;p=new b({x:a,y:s}),g.addPoint(l[m]),g.addPoint(p),c.addGeometry(g);var v=new w;f=new b({x:r,y:o}),v.addPoint(f),v.addPoint(l[m+1]),c.addGeometry(v),r=e+1.8*h*Math.cos(i*Math.PI/180),o=n-1.8*h*Math.sin(i*Math.PI/180),a=e-1.8*h*Math.cos(i*Math.PI/180),s=n+1.8*h*Math.sin(i*Math.PI/180),p=new b({x:a,y:s}),f=new b({x:r,y:o});var x=new w;fpt1=C(p,f,p,h,!0),tpt1=C(p,f,p,h,!1),x.addPoint(fpt1),x.addPoint(tpt1),x.addPoint(f),x.addPoint(fpt1),c.addGeometry(x)}u=l.length;var _=new w;return p11=C(l[u-1],l[u-2],l[u-1],h,!0),p12=C(l[u-1],l[u-2],l[u-1],h,!1),_.addPoint(p11),_.addPoint(p12),c.addGeometry(_),[c]},u.prototype.getType=function(){return"roundslinepropety"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制海上搜救队形双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n(24),n,e,t],void 0===(r=function(t,e,n,N,k,z,D,F,G,i,r,o){function a(t){this.$type="SeaMobileAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var s=t.extend2,j=t.deepCopy,V=n.scalePoint,q=n.pathLength,B=n.vertex,U=n.angle,l=(n.bzLine,n.bTypeline),W=n.gainPt,Z=n.distance;return s(a,e),a.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new N,o=new F;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},a.prototype.getGraphParts=function(t){var e,n,i=new F,r=new N,o=new N,a=new N,s=new N,l=new k,u=new k,h=new k,c=new k,p=new k,f=new k,d=new k;distance1=q(bzPoints);var y=distance1*t/30;distance1;l=W(bzPoints,distance1,3/7,e)[0],u=W(bzPoints,distance1,4/7,n)[0],e=W(bzPoints,distance1,3/7,e)[1],n=W(bzPoints,distance1,4/7,n)[1],h=B(l,u,l,y,!1),c=B(l,u,l,y,!0),p=B(l,u,u,y,!0);var m=U(l,u);90==m?m=270:270==m&&(m=90);var g=Z(l,u),v=new k;v.x=l.x+.8*g*Math.cos(m*Math.PI/180),v.y=l.y-.8*g*Math.sin(m*Math.PI/180),f=B(l,u,v,y,!1),o.addPoint(h),o.addPoint(c),o.addPoint(p),o.addPoint(u),o.addPoint(f),o.addPoint(h),i.addGeometry(o),tempx1=l.x+.2*g*Math.cos(m*Math.PI/180),tempy1=l.y-.2*g*Math.sin(m*Math.PI/180);var x=new k;x=new k({x:tempx1,y:tempy1});d=B(l,u,x,.15*g,!1),tempx2=l.x+.5*g*Math.cos(m*Math.PI/180),tempy2=l.y-.5*g*Math.sin(m*Math.PI/180);var _=new k;_=new k({x:tempx2,y:tempy2});p10=B(l,u,_,.15*g,!1),p11=B(l,u,_,.15*g,!0),tempx3=l.x+.8*g*Math.cos(m*Math.PI/180),tempy3=l.y-.8*g*Math.sin(m*Math.PI/180);var w=new k;w=new k({x:tempx3,y:tempy3});p12=B(l,u,w,.15*g,!0);var b=new k;b=V(p10,p12,.6),s.addPoint(d),s.addPoint(p11),s.addPoint(p10),s.addPoint(b),i.addGeometry(s),distance3=Z(b,p12),p13=B(b,p12,b,distance3/3,!0),p14=B(b,p12,b,distance3/3,!1);var P=[p13,p12,p14,p13],S=new z;0<S.points.length?S.points=P:S.addPoint(P);var C=new D;C.addGeometry(S);for(var M=0;M<e;M++)r.addPoint(bzPoints[M]);r.addPoint(l),i.addGeometry(r),a.addPoint(u);for(var T=bzPoints.length,A=n;A<T;A++)a.addPoint(bzPoints[A]);i.addGeometry(a),am1=W(bzPoints,distance1,12.7/13,void 0)[0];var E=j(bzPoints[T-1]),I=new k;I=V(am1,E,2.5),arrow1=B(am1,E,am1,y/2,!0),arrow2=B(am1,E,am1,y/2,!1);P=[arrow1,I,arrow2,E,arrow1];var L=new z,R=new D;0<L.points.length?L.points=P:L.addPoint(P),R.addGeometry(L);var O=new G;return O.addGeometry(C),O.addGeometry(R),[i,O]},a.prototype.getType=function(){return"seamobilepropety"},a.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制海上机动技术双击结束绘制在地图上点击绘制第1个点。"},a.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,f,d,i,r,y,o,a,s){function l(t){this.$type="StakeAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var u=t.extend2,m=(t.deepCopy,n.scalePoint,n.pathLength),h=(n.vertex,n.angle,n.bzLine,n.bTypeline),g=n.gainPt,v=n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new f,o=new y;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){for(var e=m(bzPoints),n=e*t/120,i=parseInt(e/n),r=new d({x:bzPoints[0].x,y:bzPoints[0].y}),o=new d,a=new d,s=new d,l=new y,u=(new y,[]),h=1;h<i+1;h++){var c=h/i,p=null;p=1==c?bzPoints[bzPoints.length-1]:0==c?bzPoints[0]:g(bzPoints,e,c,void 0)[0],linePerpenPoints(r,p,v(r,p),.66*n,o,a,!0),linePerpenPoints(r,p,v(r,p),.66*n,o,s,!1),u[parseInt(h)]=new f,u[parseInt(h)].addPoint(new d({x:a.x,y:a.y})),u[parseInt(h)].addPoint(new d({x:s.x,y:s.y})),l.addGeometry(u[parseInt(h)]),r.x=p.x,r.y=p.y}return[l]},l.prototype.getType=function(){return"stakepropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制在建铁路双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,o;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(o=function(t,e,n,G,j,V,q,B,i,o,a){var s=t.extend2,U=(t.deepCopy,n.scalePoint),W=n.pathLength,Z=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),X=n.gainPt,H=n.distance;polarAngle360=n.polarAngle360,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function u(t){this.$type="TankAndMusketerAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return s(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new G,o=new B;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e,n,i,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_,w,b,P=new B,S=W(bzPoints),C=S*t*4/210;e=X(bzPoints,S,5/13,v)[0],n=X(bzPoints,S,6/13,x)[0],v=X(bzPoints,S,5/13,v)[1],x=X(bzPoints,S,6/13,x)[1];var M=H(e,n);c=U(e,n,1-C/M),s=Z(e,c,e,C,!1),a=Z(e,c,e,C,!0),u=Z(e,c,c,C,!1),l=Z(e,c,c,C,!0),pCRec=new G,pCRec.addPoint(e),pCRec.addPoint(s),pCRec.addPoint(u);for(var T=polarAngle360(u,l),A=T+180;T<=A;A--)pCRec.addPoint(getPolarPointOfCenterPoint(c,A,C));pCRec.addPoint(l),pCRec.addPoint(a),pCRec.addPoint(e),P.addGeometry(pCRec),r=.5*C;var E=new j;E=midPoint(e,n);var I=H(e,E);h=U(e,E,(I-.25*C)/I),pCCircle=new G;for(var L=0;L<=360;L++)pCCircle.addPoint(getPolarPointOfCenterPoint(h,L,r));P.addGeometry(pCCircle),i=X(bzPoints,S,7/13,_)[0],o=X(bzPoints,S,8/13,w)[0],_=X(bzPoints,S,7/13,_)[1],w=X(bzPoints,S,8/13,w)[1],p=midPoint(i,o),d=Z(i,p,p,C,!1),f=Z(i,p,p,C,!0),pCDiamon=new G,pCDiamon.addPoint(i),pCDiamon.addPoint(d),pCDiamon.addPoint(o),pCDiamon.addPoint(f),pCDiamon.addPoint(i),P.addGeometry(pCDiamon),pcPl1=new G;for(var R=0;R<v;R++)pcPl1.addPoint(bzPoints[R]);pcPl1.addPoint(e),P.addGeometry(pcPl1),pcPl2=new G,pcPl2.addPoint(n);for(L=x;L<_;L++)pcPl2.addPoint(bzPoints[L]);pcPl2.addPoint(i),P.addGeometry(pcPl2),pcPl3=new G,pcPl3.addPoint(o);for(var O=bzPoints.length,N=w;N<O;N++)pcPl3.addPoint(bzPoints[N]);P.addGeometry(pcPl3),y=X(bzPoints,S,12.7/13,b)[0],b=X(bzPoints,S,12.7/13,b)[1];var k=bzPoints[O-1];m=U(y,k,2.5);var z=new V,D=[g=Z(k,y,y,C,!0),m,Z(k,y,y,C,!1),k,g];0<z.points.length?z.points=D:z.addPoint(D);var F=new q;return F.addGeometry(z),[F,P]},u.prototype.getType=function(){return"tankandmusketerpropety"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制坦克攻击双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=u}.apply(e,i))||(t.exports=o)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,D,i,F,G,j,r,o,a){var s=t.extend2,V=(t.deepCopy,n.scalePoint),q=n.pathLength,B=n.vertex,l=(n.angle,n.bzLine,n.bTypeline),U=n.gainPt,W=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,getMapPoints=n.getMapPoints;function u(t){this.$type="TankAttackAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return s(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new D,o=new j;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=l(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d,y,m,g,v,x,_=new j,w=q(bzPoints),b=w*t*4/150;e=U(bzPoints,w,5.8/15,f)[0],n=U(bzPoints,w,6.5/15,d)[0],f=U(bzPoints,w,5.8/15,f)[1],d=U(bzPoints,w,6.5/15,d)[1],centerPoint1=midPoint(e,n),a=B(e,centerPoint1,centerPoint1,1.5*b,!1),o=B(e,centerPoint1,centerPoint1,1.5*b,!0),pCRec1=new D,pCRec1.addPoint(e),pCRec1.addPoint(a),pCRec1.addPoint(n),pCRec1.addPoint(o),pCRec1.addPoint(e),_.addGeometry(pCRec1),i=U(bzPoints,w,8.5/15,y)[0],r=U(bzPoints,w,9.2/15,m)[0],y=U(bzPoints,w,8.5/15,y)[1],m=U(bzPoints,w,9.2/15,m)[1],centerPoint2=midPoint(i,r),l=B(i,centerPoint2,centerPoint2,1.5*b,!1),s=B(i,centerPoint2,centerPoint2,1.5*b,!0),pCRec2=new D,pCRec2.addPoint(i),pCRec2.addPoint(l),pCRec2.addPoint(r),pCRec2.addPoint(s),pCRec2.addPoint(i),_.addGeometry(pCRec2),u=U(bzPoints,w,.5,g)[0],h=U(bzPoints,w,.49,v)[0],c=U(bzPoints,w,.51,x)[0],g=U(bzPoints,w,.5,g)[1],v=U(bzPoints,w,.49,v)[1],x=U(bzPoints,w,.51,x)[1],p=B(h,c,u,5*b,!1),pcPl1=new D;for(var P=0;P<f;P++)pcPl1.addPoint(bzPoints[P]);pcPl1.addPoint(e),_.addGeometry(pcPl1),pcPl2=new D,pcPl2.addPoint(n);for(var S=d;S<y;S++)pcPl2.addPoint(bzPoints[S]);pcPl2.addPoint(i),_.addGeometry(pcPl2),pcPl3=new D,pcPl3.addPoint(r);for(var C=bzPoints.length,M=m;M<C;M++)pcPl3.addPoint(bzPoints[M]);_.addGeometry(pcPl3);var T=W(u,p),A=(u.x,u.y,V(u,p,.6)),E=(A.x,A.y,B(u,A,A,T/10,!0)),I=B(u,A,A,T/10,!1),L=V(u,p,.75),R=p,O=new D;O.addPoint(u),O.addPoint(L),_.addGeometry(O);var N=new F,k=[E,L,I,R,E];0<N.points.length?N.points=k:N.addPoint(k);var z=new G;return z.addGeometry(N),[z,_]},u.prototype.getType=function(){return"tankattack"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制坦克攻击双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,o;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(o=function(t,e,n,j,i,V,q,B,o,a,s){var l=t.extend2,U=(t.deepCopy,n.scalePoint),W=n.pathLength,Z=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),X=n.gainPt,H=n.distance;polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,getMapPoints=n.getMapPoints;function h(t){this.$type="TankMusColumnAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}return l(h,e),h.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new j,o=new B;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},h.prototype.getGraphParts=function(t){var e,n,i,o,a,s,l,u,h,c,p,f,d,y,m,g=[],v=[],x=new B,_=W(bzPoints),w=_*t*4/150,b=4*_*t/300;e=X(bzPoints,_,.4,f)[0],n=X(bzPoints,_,6.5/15,d)[0],f=X(bzPoints,_,.4,f)[1],d=X(bzPoints,_,6.5/15,d)[1],s=Z(e,n,e,w,!1),a=Z(e,n,e,1.5*w,!0),v=Z(e,n,n,w,!1),g=Z(e,n,n,1.5*w,!0),pCRec1=new j,pCRec1.addPoint(e),pCRec1.addPoint(s);var P=polarAngle360(s,v);l=midPoint(s,v);var S=H(s,v);rRec1=S/2;for(var C=P+180;P<=C;C--)pCRec1.addPoint(getPolarPointOfCenterPoint(l,C,rRec1));pCRec1.addPoint(v),pCRec1.addPoint(n),pCRec1.addPoint(g),pCRec1.addPoint(a),pCRec1.addPoint(e),x.addGeometry(pCRec1),i=X(bzPoints,_,8.5/15,y)[0],o=X(bzPoints,_,9.2/15,m)[0],y=X(bzPoints,_,8.5/15,y)[1],m=X(bzPoints,_,9.2/15,m)[1],centerPoint2=midPoint(i,o),v=Z(i,centerPoint2,centerPoint2,1.5*w,!1),g=Z(i,centerPoint2,centerPoint2,1.5*w,!0),pCRec2=new j,pCRec2.addPoint(i),pCRec2.addPoint(v),pCRec2.addPoint(o),pCRec2.addPoint(g),pCRec2.addPoint(i),x.addGeometry(pCRec2),centerPoint1=midPoint(e,n),r=b,pCCircle1=new j;for(var M=0;M<=360;M++)pCCircle1.addPoint(getPolarPointOfCenterPoint(centerPoint1,M,r));x.addGeometry(pCCircle1),u=X(bzPoints,_,.5,void 0)[0],h=X(bzPoints,_,.49,f)[0],c=X(bzPoints,_,.51,d)[0],p=Z(h,c,u,5*w,!1);var T=new j;T.addPoint(u),T.addPoint(p),x.addGeometry(T);var A=H(u,p);u.x;ny=u.y;var E,I,L,R,O=U(u,p,.8);O.x,O.y;E=Z(u,O,O,A/8,!0),I=Z(u,O,O,A/8,!1),L=U(u,p,1.25),R=p;var N=new j;N.addPoint(E),N.addPoint(L),N.addPoint(I),N.addPoint(R),N.addPoint(E);var k=new V,z=[E,L,I,R,E];0<k.points.length?k.points=z:k.addPoint(z);var D=new q;D.addGeometry(k),pcPl1=new j;for(var F=0;F<f;F++)pcPl1.addPoint(bzPoints[F]);pcPl1.addPoint(e),x.addGeometry(pcPl1),pcPl2=new j,pcPl2.addPoint(n);for(M=d;M<y;M++)pcPl2.addPoint(bzPoints[M]);pcPl2.addPoint(i),x.addGeometry(pcPl2),pcPl3=new j,pcPl3.addPoint(o);bzPoints.length;for(var G=m;G<bzPoints.length;G++)pcPl3.addPoint(bzPoints[G]);return x.addGeometry(pcPl3),[D,x]},h.prototype.getType=function(){return"tankmuscolumnpropety"},h.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制专业救援队形2双击结束绘制在地图上点击绘制第1个点。"},h.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},s.exports=h}.apply(e,i))||(t.exports=o)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,y,m,i,r,g,o,a,s){function l(t){this.$type="TrenchAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:30}),this.p1=null,this.p2=null}var u=t.extend2,v=(t.deepCopy,n.scalePoint,n.pathLength),x=n.vertex,h=(n.angle,n.bzLine,n.bTypeline),_=n.gainPt;n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new y,o=new g;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=h(a),this.getGraphParts(1)},l.prototype.getGraphParts=function(t){for(var e=v(bzPoints),n=parseInt(e/(e*t*4/350)),i=new m({x:bzPoints[0].x,y:bzPoints[0].y}),r=(new m,new m),o=new m,a=new g,s=(new g,[]),l=[],u=1;u<n;u++){var h,c=u/n,p=null;h=_(bzPoints,e,c,void 0)[0],u%3==0&&(c=(u-.5)/n,p=_(bzPoints,e,c,void 0)[0],r=x(i,h,h,e/150,!1),o=x(i,p,p,e/150,!1),s[parseInt(u)]=new y,s[parseInt(u)].addPoint(new m({x:r.x,y:r.y})),s[parseInt(u)].addPoint(new m({x:h.x,y:h.y})),a.addGeometry(s[parseInt(u)]),l[parseInt(u)]=new y,l[parseInt(u)].addPoint(new m({x:o.x,y:o.y})),l[parseInt(u)].addPoint(new m({x:p.x,y:p.y})),a.addGeometry(l[parseInt(u)])),null!=p?(i.x=p.x,i.y=p.y):(i.x=h.x,i.y=h.y)}var f=new y,d=bzPoints.length;for(u=0;u<=d-1;u++)f.addPoint(bzPoints[u]);return a.addGeometry(f),[a]},l.prototype.getType=function(){return"trenchpropety"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多30个点用于绘制危险路段双击结束绘制在地图上点击绘制第1个点。"},l.prototype.getStepDes=function(t){switch(t){case 30:return"完成绘制。";default:if(t<=29)return"单击绘制下一个点。"}},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,c,i,r,o,p,a,s,l){function u(t){this.$type="UnderProp2Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}var h=t.extend2,f=(t.deepCopy,n.scalePoint,n.pathLength),d=n.vertex,y=(n.angle,n.bzLine,n.bTypeline),m=n.gainPt;n.distance;return h(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new c,o=new p;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=y(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e=new p,n=f(bzPoints),i=n*t*4/60;p1=m(bzPoints,n,.04,void 0)[0],p2=m(bzPoints,n,.05,void 0)[0],p3=d(p1,p2,p1,i/3,!1),p4=d(p1,p2,p2,i/3,!1);var r=new c;r.addPoint(p1),r.addPoint(p3);var o=new c;o.addPoint(p2),o.addPoint(p4),e.addGeometry(r),e.addGeometry(o),p1=m(bzPoints,n,.96,void 0)[0],p2=m(bzPoints,n,.95,void 0)[0],p3=d(p1,p2,p1,i/3,!0),p4=d(p1,p2,p2,i/3,!0);var a=new c;a.addPoint(p1),a.addPoint(p3);var s=new c;s.addPoint(p2),s.addPoint(p4),e.addGeometry(a),e.addGeometry(s);for(var l=new c,u=bzPoints.length,h=0;h<=u-1;h++)l.addPoint(bzPoints[h]);return e.addGeometry(l),[e]},u.prototype.getType=function(){return"underprop2propety"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制支撑点2双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,f,i,r,o,d,a,s,l){function u(t){this.$type="UnderProp3Algorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this.p1=null,this.p2=null}var h=t.extend2,y=(t.deepCopy,n.scalePoint,n.pathLength),m=n.vertex,c=(n.angle,n.bzLine,n.bTypeline),g=n.gainPt;return h(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new f,o=new d;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=c(a),this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e=new d,n=y(bzPoints),i=n*t*4/60;p1=g(bzPoints,n,.04,void 0)[0],p2=g(bzPoints,n,.05,void 0)[0],p3=m(p1,p2,p1,i/3,!1),p4=m(p1,p2,p2,i/3,!1);var r=new f;r.addPoint(p1),r.addPoint(p3);var o=new f;o.addPoint(p2),o.addPoint(p4),e.addGeometry(r),e.addGeometry(o),p1=g(bzPoints,n,.96,void 0)[0],p2=g(bzPoints,n,.95,void 0)[0],p3=m(p1,p2,p1,i/3,!0),p4=m(p1,p2,p2,i/3,!0);var a=new f;a.addPoint(p1),a.addPoint(p3);var s=new f;s.addPoint(p2),s.addPoint(p4),e.addGeometry(a),e.addGeometry(s),p1=g(bzPoints,n,.5-.04/6,void 0)[0],p2=g(bzPoints,n,.5+.04/6,void 0)[0],p3=m(p1,p2,p1,i/3,!1),p4=m(p1,p2,p2,i/3,!1);var l=new f;l.addPoint(p1),l.addPoint(p3);var u=new f;u.addPoint(p2),u.addPoint(p4),e.addGeometry(l),e.addGeometry(u);for(var h=new f,c=bzPoints.length,p=0;p<=c-1;p++)h.addPoint(bzPoints[p]);return e.addGeometry(h),[e]},u.prototype.getType=function(){return"underprop3propety"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制支撑点3双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},l.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,ot,at,i,r,st,o,a,s){var l=t.extend2,lt=(t.deepCopy,n.scalePoint),ut=n.pathLength,ht=n.vertex,ct=n.angle,pt=n.midPoint,ft=n.polarAngle360,dt=n.getSide;distance=n.distance,getAngleOfThreePoints=n.getAngleOfThreePoints,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,gainPt1=n.gainPt1;function u(t){this.$type="WarBoundaryAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this._inilization(),this.p1=null,this.p2=null}return l(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=n[0],o=e,a=new ot,s=new st;return a.addPoint(r),a.addPoint(o),s.addGeometry(a),[s]}var l=[];this.p1=n[i-1],this.p2=e;for(var u=0;u<i;u++)l[u]=n[u];return null!=e&&l.push(e),m_Ctrlpts=l,this.getGraphParts(1)},u.prototype.getGraphParts=function(t){for(var e=m_Ctrlpts,n=e.length,i=new st,r=ut(e)*t/350,o=1.7*r,a=0;a<n-1&&(e[a].x!=e[a+1].x||e[a].y!=e[a+1].y);a++){var s=ct(e[a],e[a+1])*Math.PI/180,l=r*Math.cos(s),u=r*Math.sin(s),h=pt(e[a],e[a+1]),c=new at;c.x=h.x-5*l,c.y=h.y+5*u;var p=o/distance(e[a],e[a+1]),f=lt(e[a],e[a+1],p),d=new ot;d.addPoint(f),d.addPoint(c);var y=new at;y.x=h.x+5*l,y.y=h.y-5*u;var m=new at,g=new at;m.x=h.x-4*l,m.y=h.y+4*u,g.x=h.x+4*l,g.y=h.y-4*u;var v=new at,x=new at;v.x=h.x-2*l,v.y=h.y+2*u,x.x=h.x+2*l,x.y=h.y-2*u;var _=new at,w=new at;_.x=h.x-l,_.y=h.y+u,w.x=h.x+l,w.y=h.y-u;var b=ht(m,v,m,r,!0),P=ht(m,v,m,r,!1),S=ht(m,v,v,r,!0),C=ht(m,v,v,r,!1),M=ht(_,w,_,r,!0),T=ht(_,w,_,r,!1),A=ht(_,w,w,r,!0),E=ht(_,w,w,r,!1),I=ht(x,g,x,r,!0),L=ht(x,g,x,r,!1),R=ht(x,g,g,r,!0),O=ht(x,g,g,r,!1),N=new ot;N.addPoint(b),N.addPoint(C);var k=new ot;k.addPoint(P),k.addPoint(S);var z=new ot;z.addPoint(M),z.addPoint(E);var D=new ot;D.addPoint(T),D.addPoint(A);var F=new ot;F.addPoint(I),F.addPoint(O);var G=new ot;G.addPoint(L),G.addPoint(R);var j=new ot;f=lt(e[a+1],e[a],p),j.addPoint(y),j.addPoint(f),i.addGeometry(d),i.addGeometry(N),i.addGeometry(k),i.addGeometry(z),i.addGeometry(D),i.addGeometry(F),i.addGeometry(G),i.addGeometry(j)}for(var V=2;V<n&&(e[V-1].x!=e[V-2].x||e[V-1].y!=e[V-2].y)&&(e[V-1].x!=e[V].x||e[V-1].y!=e[V].y);V++){var q=o/distance(e[V-1],e[V-2]),B=o/distance(e[V-1],e[V]),U=(f=lt(e[V-1],e[V-2],q),lt(e[V-1],e[V],B)),W=pt(f,U),Z=distance(f,U)/4,X=ht(f,U,W,Z,!0),H=-(f.x-U.x)/(f.y-U.y),Y=-(X.x-U.x)/(X.y-U.y),K=pt(f,U),J=pt(f,X),Q=new at;Q.x=(H*K.x-Y*J.x+J.y-K.y)/(H-Y),Q.y=H*(Q.x-K.x)+K.y;var $=distance(X,U),tt=getAngleOfThreePoints(U,X,f),et=new ot;if(0!=tt){tt=180*tt/Math.PI;var nt=ft(X,f);if("right"==dt(U,f,X)){et.addPoint(f);for(var it=0;it<tt;it++)et.addPoint(getPolarPointOfCenterPoint(X,it+nt,$));et.addPoint(U)}else{et.addPoint(U);for(var rt=tt;rt<360;rt++)et.addPoint(getPolarPointOfCenterPoint(X,rt+nt,$));et.addPoint(f)}}i.addGeometry(et)}return[i]},u.prototype.getType=function(){return"warboundarypropety"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制隔离线2双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,Q,$,tt,et,nt,i,r,o){var a=t.extend2,it=(t.deepCopy,n.scalePoint),rt=n.pathLength,ot=n.vertex,at=n.angle;distance=n.distance,bTypeline=n.bTypeline,bzLine=n.bzLine;function s(t){this.$type="WaterageAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}return a(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new Q,o=new nt;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=bTypeline(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u=new Q,h=new Q,c=(new Q,new $,new $,new $),p=new $,f=new $,d=new $,y=new $,m=new $,g=(new $,new $),v=(new $,new $),x=new $,_=new $,w=new $,b=(new $,new $,new $,new $,new $,new $,new $),P=new $,S=new $,C=new $,M=new nt,T=rt(bzPoints),A=T*t/50;f=gainPt(bzPoints,T,3/7,s)[0],d=gainPt(bzPoints,T,4/7,l)[0],s=gainPt(bzPoints,T,3/7,s)[1],l=gainPt(bzPoints,T,4/7,l)[1];var E=Math.sqrt((f.x-d.x)*(f.x-d.x)+(f.y-d.y)*(f.y-d.y)),I=at(f,d);90==I?I=270:270==I&&(I=90),e=f.x+.2*E*Math.cos(I*Math.PI/180),n=f.y-.2*E*Math.sin(I*Math.PI/180),i=f.x+.8*E*Math.cos(I*Math.PI/180),r=f.y-.8*E*Math.sin(I*Math.PI/180);var L=new $,R=new $;L=new $({x:e,y:n}),R=new $({x:i,y:r});o=f.x+.5*E*Math.cos(I*Math.PI/180),a=f.y-.5*E*Math.sin(I*Math.PI/180);var O=new $;O=new $({x:o,y:a});b=ot(L,R,L,A,!0),P=ot(L,R,L,A,!1),c=ot(L,R,O,A,!0),p=ot(L,R,O,A,!1);var N,k=new Q;k.addPoint(b),k.addPoint(P),k.addPoint(p),k.addPoint(c),k.addPoint(b),M.addGeometry(k),S=ot(L,R,R,A,!0),C=ot(L,R,R,A,!1),(N=new Q).addPoint(b),N.addPoint(P),N.addPoint(C),N.addPoint(S),N.addPoint(b),M.addGeometry(N),b=ot(L,R,L,A,!0),P=ot(L,R,L,A,!1),(N=new Q).addPoint(b),N.addPoint(P),N.addPoint(p),N.addPoint(c),M.addGeometry(N),A=T*t/20;var z=new $,D=new $,F=new $,G=new $;z=ot(L,R,L,A,!0),D=ot(L,R,L,A,!1),F=ot(L,R,R,A,!0),G=ot(L,R,R,A,!1);var j=new Q;this.newPoints1=[],this.newPoints1.push(f),this.newPoints1.push(z),this.newPoints1.push(F),this.newPoints1.push(d);var V=this.newPoints1,q=bzLine(V);j.addPoint(f);for(var B=0;B<q.length;B++)j.addPoint(q[B]);j.addPoint(d),M.addGeometry(j);var U=new Q;this.newPoints2=[],this.newPoints2.push(f),this.newPoints2.push(D),this.newPoints2.push(G),this.newPoints2.push(d);var W=this.newPoints2,Z=bzLine(W);U.addPoint(f);for(B=0;B<Z.length;B++)U.addPoint(Z[B]);U.addPoint(d),M.addGeometry(U);for(B=0;B<s;B++)u.addPoint(bzPoints[B]);u.addPoint(f),M.addGeometry(u),h.addPoint(d);for(var X=bzPoints.length,H=l;H<X;H++)h.addPoint(bzPoints[H]);M.addGeometry(h);new $,new $;y=gainPt(bzPoints,T,12.7/13,void 0)[0];g=bzPoints[X-1];m=it(y,g,2.5);var Y=new et;v=ot(g,y,y,A/2.5,!0),x=ot(g,y,y,A/2.5,!1),_=m,w=g;var K=new tt,J=[v,_,x,w,v];return 0<K.points.length?K.points=J:K.addPoint(J),Y.addGeometry(K),[Y,M]},s.prototype.getType=function(){return"wateragepropety"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制水路输送双击结束绘制在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,I,i,L,R,O,r,o,a){function s(t){this.$type="ArmyAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,N=t.deepCopy,k=n.scalePoint,z=n.pathLength,D=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),F=n.gainPt,G=(z=n.pathLength,n.distance);return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new I,o=new O;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d=z(bzPoints),y=d*t*4/210;i=F(bzPoints,d,1/31,void 0)[0];var m=G(this.p1,i);e=F(bzPoints,d,12.7/13,void 0)[0];var g=N(bzPoints[bzPoints.length-1]);n=k(e,g,2.5);for(var v=new O,x=new I,_=bzPoints.length,w=0;w<=_-1;w++)x.addPoint(bzPoints[w]);v.addGeometry(x),u=D(i,this.p1,this.p1,m,!1),c=D(i,this.p1,this.p1,m,!0),h=D(this.p1,u,u,2*m,!0),p=D(this.p1,c,c,2*m,!1);var b=new I;b.addPoint(u),b.addPoint(h),b.addPoint(p),b.addPoint(c),b.addPoint(u),v.addGeometry(b);var P=k(u,c,.3),S=k(u,c,.7);Line8LDown=D(u,P,P,.8*m,!1),o=D(u,this.p1,this.p1,.2*m,!1),s=D(u,S,S,1*m,!1),r=D(u,P,P,1.6*m,!1),a=D(u,this.p1,this.p1,.7*m,!1),l=D(u,S,S,1.2*m,!1),this.path3=new I,this.path3.addPoint(Line8LDown),this.path3.addPoint(s),v.addGeometry(this.path3);var C=new I;C.addPoint(r),C.addPoint(l),v.addGeometry(C);var M=new I;M.addPoint(o),M.addPoint(a),v.addGeometry(M);var T=[f=D(g,e,e,1*y,!0),n,D(g,e,e,1*y,!1),g,f],A=new L;0<A.points.length?A.points=T:A.addPoint(T);var E=new R;return E.addGeometry(A),[E,v]},s.prototype.getType=function(){return"armyalgorithm"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制军队行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,M,i,T,A,E,r,o,a){function s(t){this.$type="ArsenalAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,I=t.deepCopy,L=n.scalePoint,R=n.pathLength,O=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),N=n.gainPt,k=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new M,o=new E;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new M,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new E;h.addGeometry(s);var c=R(bzPoints),p=c*t*4/210;n=N(bzPoints,c,1/31,void 0)[0],e=I(bzPoints[0]);var f=k(e,n);pline4=N(bzPoints,c,12.7/13,void 0)[0];var d=I(bzPoints[bzPoints.length-1]);pline6=L(pline4,d,2.5),i=O(n,e,e,f,!1),o=O(n,e,e,f,!0),r=O(e,i,i,2*f,!0),a=O(e,o,o,2*f,!1);var y=new M;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=L(i,o,.2),g=L(i,o,.8);L1=O(i,m,m,1.6*f,!1),L2=O(i,g,g,1.3*f,!1),L3=O(i,m,m,1*f,!1),L4=O(i,g,g,.7*f,!1),L5=O(i,m,m,.4*f,!1);var v=new M;v.addPoint(L1),v.addPoint(L2),v.addPoint(L3),v.addPoint(L4),v.addPoint(L5),h.addGeometry(v);var x,_,w,b,P=new A;x=O(d,pline4,pline4,1*p,!0),_=O(d,pline4,pline4,1*p,!1),w=pline6,b=d;var S=new T,C=[x,w,_,b,x];return 0<S.points.length?S.points=C:S.addPoint(C),P.addGeometry(S),[P,h]},s.prototype.getType=function(){return"arsenal"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制武警行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,O,i,N,k,z,r,o,a){function s(t){this.$type="ExpertProtectAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,D=t.deepCopy,F=n.scalePoint,G=n.pathLength,j=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),V=n.gainPt,q=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new O,o=new z;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s,l,u,h,c,p,f=new O,d=bzPoints.length,y=0;y<=d-1;y++)f.addPoint(bzPoints[y]);var m=new z;m.addGeometry(f);var g=G(bzPoints),v=g*t*4/210;n=V(bzPoints,g,1/31,void 0)[0],e=D(bzPoints[0]);var x=q(e,n);pline4=V(bzPoints,g,12.7/13,void 0)[0];var _=D(bzPoints[bzPoints.length-1]);pline6=F(pline4,_,2.5),i=j(n,e,e,x,!1),o=j(n,e,e,x,!0),r=j(e,i,i,2*x,!0),a=j(e,o,o,2*x,!1);var w=new O;w.addPoint(i),w.addPoint(r),w.addPoint(a),w.addPoint(o),w.addPoint(i),m.addGeometry(w);var b=F(i,o,.2),P=F(i,o,.8);s=j(i,b,b,.6*x,!1),l=j(i,e,e,.6*x,!1),h=j(i,P,P,.6*x,!1),c=j(i,b,b,1.4*x,!1),u=j(i,e,e,1.4*x,!1),p=j(i,P,P,1.4*x,!1);var S=new O;S.addPoint(s),S.addPoint(c),S.addPoint(p),S.addPoint(h),m.addGeometry(S);var C=new O;C.addPoint(u),C.addPoint(l),m.addGeometry(C);var M,T,A,E,I=new k;M=j(_,pline4,pline4,1*v,!0),T=j(_,pline4,pline4,1*v,!1),A=pline6,E=_;var L=new N,R=[M,A,T,E,M];return 0<L.points.length?L.points=R:L.addPoint(R),I.addGeometry(L),[I,m]},s.prototype.getType=function(){return"expert"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制专家行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,M,i,T,A,E,r,o,a){function s(t){this.$type="FireProtectAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,I=t.deepCopy,L=n.scalePoint,R=n.pathLength,O=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),N=n.gainPt,k=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new M,o=new E;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new M,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new E;h.addGeometry(s);var c=R(bzPoints),p=c*t*4/210;n=N(bzPoints,c,1/31,void 0)[0],e=I(bzPoints[0]);var f=k(e,n);pline4=N(bzPoints,c,12.7/13,void 0)[0];var d=I(bzPoints[bzPoints.length-1]);pline6=L(pline4,d,2.5),i=O(n,e,e,f,!1),o=O(n,e,e,f,!0),r=O(e,i,i,2*f,!0),a=O(e,o,o,2*f,!1);var y=new M;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y);var m=L(i,o,.2),g=L(i,o,.8);L1=O(i,m,m,1.6*f,!1),L2=O(i,m,m,.6*f,!1),L3=O(i,g,g,1*f,!1);var v=new M;v.addPoint(L1),v.addPoint(L2),v.addPoint(L3),v.addPoint(L1),h.addGeometry(v);var x,_,w,b,P=new A;x=O(d,pline4,pline4,1*p,!0),_=O(d,pline4,pline4,1*p,!1),w=pline6,b=d;var S=new T,C=[x,w,_,b,x];return 0<S.points.length?S.points=C:S.addPoint(C),P.addGeometry(S),[P,h]},s.prototype.getType=function(){return"fireprotect"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制消防行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,C,i,M,T,A,r,o,a){function s(t){this.$type="MedicalCureAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,E=t.deepCopy,I=n.scalePoint,L=n.pathLength,R=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),O=n.gainPt,N=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new C,o=new A;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new C,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new A;h.addGeometry(s);var c=L(bzPoints),p=c*t*4/210;n=O(bzPoints,c,1/31,void 0)[0],e=E(bzPoints[0]);var f=N(e,n);pline4=O(bzPoints,c,12.7/13,void 0)[0];var d=E(bzPoints[bzPoints.length-1]);pline6=I(pline4,d,2.5),i=R(n,e,e,f,!1),o=R(n,e,e,f,!0),r=R(e,i,i,2*f,!0),a=R(e,o,o,2*f,!1);var y=new C;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y),lineMid=R(i,e,e,f,!1),LineLeft=R(e,lineMid,lineMid,.8*f,!1),LineRight=R(e,lineMid,lineMid,.8*f,!0),LineUp=R(LineLeft,lineMid,lineMid,.8*f,!1),LineDown=R(LineLeft,lineMid,lineMid,.8*f,!0);var m=new C;m.addPoint(LineUp),m.addPoint(LineDown),h.addGeometry(m);var g=new C;g.addPoint(LineLeft),g.addPoint(LineRight),h.addGeometry(g);var v,x,_,w,b=new T;v=R(d,pline4,pline4,1*p,!0),x=R(d,pline4,pline4,1*p,!1),_=pline6,w=d;var P=new M,S=[v,_,x,w,v];return 0<P.points.length?P.points=S:P.addPoint(S),b.addGeometry(P),[b,h]},s.prototype.getType=function(){return"medical"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制医疗行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,S,i,C,M,T,r,o,a){function s(t){this.$type="PowerRepairAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,A=t.deepCopy,E=n.scalePoint,I=n.pathLength,L=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),R=n.gainPt,O=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new S,o=new T;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new S,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new T;h.addGeometry(s);var c=I(bzPoints),p=c*t*4/210;n=R(bzPoints,c,1/31,void 0)[0],e=A(bzPoints[0]);var f=O(e,n);pline4=R(bzPoints,c,12.7/13,void 0)[0];var d=A(bzPoints[bzPoints.length-1]);pline6=E(pline4,d,2.5),i=L(n,e,e,f,!1),o=L(n,e,e,f,!0),r=L(e,i,i,2*f,!0),a=L(e,o,o,2*f,!1);var y=new S;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y),lineL=E(i,o,.3),lineR=E(i,o,.7),LineDown=L(i,lineL,lineL,.2*f,!1),LineMidLeft=L(i,lineL,lineL,1*f,!1),LineUp=L(i,lineR,lineR,1.8*f,!1),LineMidRight=L(i,lineR,lineR,1*f,!1);var m=new S;m.addPoint(LineUp),m.addPoint(LineMidLeft),m.addPoint(LineMidRight),m.addPoint(LineDown),h.addGeometry(m);var g,v,x,_,w=new M;g=L(d,pline4,pline4,1*p,!0),v=L(d,pline4,pline4,1*p,!1),x=pline6,_=d;var b=new C,P=[g,x,v,_,g];return 0<b.points.length?b.points=P:b.addPoint(P),w.addGeometry(b),[w,h]},s.prototype.getType=function(){return"power"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制电力抢修行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,S,i,C,M,T,r,o,a){function s(t){this.$type="ProChymicAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,A=t.deepCopy,E=n.scalePoint,I=n.pathLength,L=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),R=n.gainPt,O=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new S,o=new T;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new S,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new T;h.addGeometry(s);var c=I(bzPoints),p=c*t*4/210;n=R(bzPoints,c,1/31,void 0)[0],e=A(bzPoints[0]);var f=O(e,n);pline4=R(bzPoints,c,12.7/13,void 0)[0];var d=A(bzPoints[bzPoints.length-1]);pline6=E(pline4,d,2.5),i=L(n,e,e,f,!1),o=L(n,e,e,f,!0),r=L(e,i,i,2*f,!0),a=L(e,o,o,2*f,!1);var y=new S;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y),line2=E(i,o,.2),line3=E(i,o,.3),line7=E(i,o,.7),line8=E(i,o,.8),L1=L(i,line2,line2,1.4*f,!1),L2=L(i,line3,line3,1.6*f,!1),L3=L(i,line7,line7,.4*f,!1),L4=L(i,line3,line3,.4*f,!1),L5=L(i,line7,line7,1.6*f,!1),L6=L(i,line8,line8,1.4*f,!1),LM=L(i,e,e,1*f,!1);var m=new S;m.addPoint(L1),m.addPoint(L2),m.addPoint(L3),m.addPoint(LM),m.addPoint(L4),m.addPoint(LM),m.addPoint(L5),m.addPoint(L6),h.addGeometry(m);var g,v,x,_,w=new M;g=L(d,pline4,pline4,1*p,!0),v=L(d,pline4,pline4,1*p,!1),x=pline6,_=d;var b=new C,P=[g,x,v,_,g];return 0<b.points.length?b.points=P:b.addPoint(P),w.addGeometry(b),[w,h]},s.prototype.getType=function(){return"prochymicproperty"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制防化行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,L,i,R,O,N,r,o,a){function s(t){this.$type="ProjectAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,k=t.deepCopy,z=n.scalePoint,D=n.pathLength,F=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),G=n.gainPt,j=(D=n.pathLength,n.distance);return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new L,o=new N;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){var e,n,i,r,o,a,s,l,u,h,c,p,f,d=D(bzPoints),y=d*t*4/210;i=G(bzPoints,d,1/31,void 0)[0];var m=j(this.p1,i);e=G(bzPoints,d,12.7/13,void 0)[0];var g=k(bzPoints[bzPoints.length-1]);n=z(e,g,2.5);for(var v=new N,x=new L,_=bzPoints.length,w=0;w<=_-1;w++)x.addPoint(bzPoints[w]);v.addGeometry(x),u=F(i,this.p1,this.p1,m,!1),c=F(i,this.p1,this.p1,m,!0),h=F(this.p1,u,u,2*m,!0),p=F(this.p1,c,c,2*m,!1);var b=new L;b.addPoint(u),b.addPoint(h),b.addPoint(p),b.addPoint(c),b.addPoint(u),v.addGeometry(b);var P=z(u,c,.2),S=z(u,c,.8);Line8LDown=F(u,P,P,.6*m,!1),o=F(u,P,P,1*m,!1),s=F(u,S,S,.4*m,!1),r=F(u,P,P,1.4*m,!1),a=F(u,S,S,1*m,!1),l=F(u,S,S,1.6*m,!1);var C=new L;C.addPoint(Line8LDown),C.addPoint(r),v.addGeometry(C);var M=new L;M.addPoint(l),M.addPoint(s),v.addGeometry(M);var T=new L;T.addPoint(o),T.addPoint(a),v.addGeometry(T);var A=[f=F(g,e,e,1*y,!0),n,F(g,e,e,1*y,!1),g,f],E=new R;0<E.points.length?E.points=A:E.addPoint(A);var I=new O;return I.addGeometry(E),[I,v]},s.prototype.getType=function(){return"projectproperty"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制工程行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,S,i,C,M,T,r,o,a){function s(t){this.$type="ProSuccorAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this.p1=null,this.p2=null}var l=t.extend2,A=t.deepCopy,E=n.scalePoint,I=n.pathLength,L=n.vertex,u=(n.angle,n.bzLine,n.bTypeline),R=n.gainPt,O=n.distance;return l(s,e),s.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new S,o=new T;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=u(a),this.getGraphParts(1)},s.prototype.getGraphParts=function(t){for(var e,n,i,r,o,a,s=new S,l=bzPoints.length,u=0;u<=l-1;u++)s.addPoint(bzPoints[u]);var h=new T;h.addGeometry(s);var c=I(bzPoints),p=c*t*4/210;n=R(bzPoints,c,1/31,void 0)[0],e=A(bzPoints[0]);var f=O(e,n);pline4=R(bzPoints,c,12.7/13,void 0)[0];var d=A(bzPoints[bzPoints.length-1]);pline6=E(pline4,d,2.5),i=L(n,e,e,f,!1),o=L(n,e,e,f,!0),r=L(e,i,i,2*f,!0),a=L(e,o,o,2*f,!1);var y=new S;y.addPoint(i),y.addPoint(r),y.addPoint(a),y.addPoint(o),y.addPoint(i),h.addGeometry(y),line2=E(i,o,.2),line8=E(i,o,.8),L1=L(i,e,e,1.6*f,!1),L2=L(i,line2,line2,1*f,!1),L3=L(i,line8,line8,1*f,!1),L4=L(i,e,e,.4*f,!1);var m=new S;m.addPoint(L1),m.addPoint(L2),m.addPoint(L4),m.addPoint(L3),m.addPoint(L1),h.addGeometry(m);var g,v,x,_,w=new M;g=L(d,pline4,pline4,1*p,!0),v=L(d,pline4,pline4,1*p,!1),x=pline6,_=d;var b=new C,P=[g,x,v,_,g];return 0<b.points.length?b.points=P:b.addPoint(P),w.addGeometry(b),[w,h]},s.prototype.getType=function(){return"power"},s.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制专业救援行进路线在地图上点击绘制第1个点。"},s.prototype.getStepDes=function(t){switch(t){case 1:return"单击绘制下一个点。";case 2:return"单击绘制最后一个点。";case 3:return"完成绘制。"}},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,b,P,S,C,M,i,r,o){var a=t.extend2,T=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine,n.gainPt,n.distance);polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,getSide=n.getSide,getAngleOfThreePoints=n.getAngleOfThreePoints;function s(t){this.$type="ArcAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this._inilization()}return a(s,e),s.prototype.createGeometries=function(t,e){var n,i,r,o,a,s,l,u,h,c=t.getControlPoints(),p=c.length,f=new C,d=new S,y=null,m=null,g=null,v=new P;if(1==p){var x=new M,_=new b;return _.addPoint(c[0]),_.addPoint(e),x.addGeometry(_),[x]}if(2==p){if(y=c[0],m=c[1],g=e,d.addPoint(y),d.addPoint(m),r=-(m.x-y.x)/(m.y-y.y),o=-(g.x-m.x)/(g.y-m.y),a=(y.x+m.x)/2,s=(m.x+g.x)/2,l=(y.y+m.y)/2,u=(m.y+g.y)/2,v.x=(r*a-o*s+u-l)/(r-o),v.y=r*(v.x-a)+l,n=getAngleOfThreePoints(y,v,m),h=T(v,m),0<n||n<0)if(n=180*n/Math.PI,i=polarAngle360(v,m),"right"==getSide(y,m,g))for(var w=i;w<=n+i;w++)d.addPoint(getPolarPointOfCenterPoint(v,w,h));else{d.addPoint(y);for(w=n+i;w<=i+360;w++)d.addPoint(getPolarPointOfCenterPoint(v,w,h));d.addPoint(m)}}else if(3==p&&(y=c[0],m=c[1],g=c[2],d.addPoint(y),d.addPoint(m),r=-(m.x-y.x)/(m.y-y.y),o=-(g.x-m.x)/(g.y-m.y),a=(y.x+m.x)/2,s=(m.x+g.x)/2,l=(y.y+m.y)/2,u=(m.y+g.y)/2,v.x=(r*a-o*s+u-l)/(r-o),v.y=r*(v.x-a)+l,n=getAngleOfThreePoints(y,v,m),h=T(v,m),0<n||n<0))if(n=180*n/Math.PI,i=polarAngle360(v,m),"right"==getSide(y,m,g))for(w=i;w<=n+i;w++)d.addPoint(getPolarPointOfCenterPoint(v,w,h));else{d.addPoint(y);for(w=n+i;w<=i+360;w++)d.addPoint(getPolarPointOfCenterPoint(v,w,h));d.addPoint(m)}return f.addGeometry(d),[f]},s.prototype.getType=function(){return"arcalgorithm"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制圆弧双击结束绘制在地图上点击绘制第一个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(3),n,e,t],void 0===(r=function(t,e,n,b,P,S,i,r,o){var a=t.extend2,C=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine,n.gainPt,n.distance);polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint,getSide=n.getSide,getAngleOfThreePoints=n.getAngleOfThreePoints;function s(t){this.$type="CamberAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this._inilization()}return a(s,e),s.prototype.createGeometries=function(t,e){var n,i,r,o,a,s,l,u,h,c=t.getControlPoints(),p=c.length,f=null,d=null,y=null,m=new P;if(1==p){var g=new S,v=new b;return v.addPoint(c[0]),v.addPoint(e),g.addGeometry(v),[g]}if(2==p){var x=new S,_=new b;if(f=c[0],d=c[1],null!=(y=e)&&e.x===c[1].x&&e.y===c[1].y)return _.addPoint(c[0]),_.addPoint(e),x.addGeometry(_),[x];if(r=-(d.x-f.x)/(d.y-f.y),o=-(y.x-d.x)/(y.y-d.y),a=(f.x+d.x)/2,s=(d.x+y.x)/2,l=(f.y+d.y)/2,u=(d.y+y.y)/2,m.x=(r*a-o*s+u-l)/(r-o),m.y=r*(m.x-a)+l,n=getAngleOfThreePoints(f,m,d),h=C(m,d),0<n||n<0)if(n=180*n/Math.PI,i=polarAngle360(m,d),"right"==getSide(f,d,y)){_.addPoint(d);for(var w=i;w<=n+i;w++)_.addPoint(getPolarPointOfCenterPoint(m,w,h));_.addPoint(f)}else{_.addPoint(f);for(w=n+i;w<=i+360;w++)_.addPoint(getPolarPointOfCenterPoint(m,w,h));_.addPoint(d)}}else if(3==p){x=new S,_=new b;if(c[2].x===c[1].x&&c[2].y===c[1].y)return _.addPoint(c[0]),_.addPoint(c[1]),x.addGeometry(_),[x];if(f=c[0],d=c[1],y=c[2],r=-(d.x-f.x)/(d.y-f.y),o=-(y.x-d.x)/(y.y-d.y),a=(f.x+d.x)/2,s=(d.x+y.x)/2,l=(f.y+d.y)/2,u=(d.y+y.y)/2,m.x=(r*a-o*s+u-l)/(r-o),m.y=r*(m.x-a)+l,n=getAngleOfThreePoints(f,m,d),h=C(m,d),0<n||n<0)if(n=180*n/Math.PI,i=polarAngle360(m,d),"right"==getSide(f,d,y)){_.addPoint(d);for(w=i;w<=n+i;w++)_.addPoint(getPolarPointOfCenterPoint(m,w,h));_.addPoint(f)}else{_.addPoint(f);for(w=n+i;w<=i+360;w++)_.addPoint(getPolarPointOfCenterPoint(m,w,h));_.addPoint(d)}}return x.addGeometry(_),[x]},s.prototype.getType=function(){return"camberalgorithm"},s.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制弧形双击结束绘制在地图上点击绘制第一个点。"},s.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},o.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n,e,t],void 0===(r=function(t,e,n,i,u,h,c,r,o,a){var s=t.extend2;t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle;distance=n.distance;function l(t){this.$type="CircleAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:2}),this._inilization(),this.p1=null,this.p2=null}return s(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints();1===n.length?(this.p1=n[0],this.p2=e):(this.p1=n[0],this.p2=n[1]);var i=distance(this.p1,this.p2),r=2*Math.PI,o=new h;o.points=[];for(var a=0;a<100;a++){var s=r*a/100;o.addPoint(new u({x:this.p1.x+i*Math.sin(s),y:this.p1.y+i*Math.cos(s)}))}o.close();var l=new c;return l.addGeometry(o),[l]},l.prototype.getType=function(){return"circle"},l.prototype.getDescription=function(){return"在地图上绘制两个点用于绘制圆形,在地图上点击绘制第一个点。"},l.prototype.getStepDes=function(t){switch(t){case 1:return"在地图上点击绘制最后一个点。";case 2:return"完成绘制。"}},a.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(7),n(0),n(2),n(4),n(6),n(5),n(3),n(1),n,e,t],void 0===(r=function(t,e,f,n,i,r,d,y,o,a,s){var l=e.extend2,m=(e.deepCopy,n.scalePoint,n.bzLine,n.bTypeline),g=n.distance,v=n.optionWay;linePerpenPoints=n.linePerpenPoints;function u(){this.$type="CloseCurveAlgorithm,http://www.Gs.com",t.call(this,{minCpt:2,maxCpt:8}),this._inilization()}return l(u,t),u.prototype._inilization=function(){},u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){var r=new f,o=new d;return r.addPoint(n[0]),r.addPoint(e),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),a.push(n[0]);var l=a.length;if(3<l){var u=!v(a[1],a[l-2],a[0]),h=new y,c=new y;linePerpenPoints(a[0],a[l-2],.25*g(a[0],a[l-2]),.1*g(a[0],a[l-2]),h,c,u);var p=[];for(s=0;s<l-1;s++)p.push(a[s]);p.push(c),p.push(a[l-1]),bzPoints=m(p,p.length)}else bzPoints=m(a,a.length);return this.getGraphParts(1)},u.prototype.getGraphParts=function(t){var e=new i,n=new r;bzPoints.length;return e.addPoint(bzPoints),n.addGeometry(e),[n]},u.prototype.getType=function(){return"closecurvealgorithm"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多8个点用于绘制封闭曲线双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 8:return"完成绘制。";default:if(t<=7)return"单击绘制下一个点。"}},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,l,i,r,o,u,a,s,h){function c(t){this.$type="CurveAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:10}),this.p1=null,this.p2=null}var p=t.extend2,f=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine,n.bTypeline);n.gainPt,n.distance;return p(c,e),c.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(1===i){this.p1=n[0],this.p2=e;var r=new l,o=new u;return r.addPoint(this.p1),r.addPoint(this.p2),o.addGeometry(r),[o]}for(var a=[],s=0;s<i-1;s++)n[s].x===n[s+1].x&&n[s].y===n[s+1].y||a.push(n[s]);return a.push(n[i-1]),null!=e&&(e.x===n[i-1].x&&e.y===n[i-1].y||a.push(e)),bzPoints=f(a),this.getGraphParts(1)},c.prototype.getGraphParts=function(t){for(var e=new l,n=new u,i=0;i<=bzPoints.length-1;i++)e.addPoint(bzPoints[i]);return n.addGeometry(e),[n]},c.prototype.getType=function(){return"curvealgorithm"},c.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多10个点用于绘制曲线双击结束绘制在地图上点击绘制第1个点。"},c.prototype.getStepDes=function(t){switch(t){case 10:return"完成绘制。";default:if(t<=9)return"单击绘制下一个点。"}},h.exports=c}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,i,l,u,h,r,o,a,s){var c=t.extend2,p=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.distance,n.midPoint);getAngleOfThreePoints=n.getAngleOfThreePoints,getAzimuthAngle=n.getAzimuthAngle,polarAngle360=n.polarAngle360,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function f(t){this.$type="EllipseAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:2}),this._inilization(),this.p1=null,this.p2=null,this.p3=null}return c(f,e),f.prototype.createGeometries=function(t,e){var n=new h,i=t.getControlPoints(),r=i.length;if(1==r){this.p1=i[0],this.p2=e;var o=p(this.p1,this.p2);high=Math.abs(this.p1.y-o.y),width=Math.abs(this.p1.x-o.x);for(var a=new u,s=0;s<=360;s++)a.addPoint(new l({x:o.x+width*Math.cos(s*Math.PI/180),y:o.y-high*Math.sin(s*Math.PI/180)}))}if(2<=r&&i[r-1]!=i[r-2]){this.p1=i[0],this.p2=i[1],o=p(this.p1,this.p2),high=Math.abs(this.p1.y-o.y),width=Math.abs(this.p1.x-o.x);for(a=new u,s=0;s<=360;s++)a.addPoint(new l({x:o.x+width*Math.cos(s*Math.PI/180),y:o.y-high*Math.sin(s*Math.PI/180)}))}return(n=new h).addGeometry(a),[n]},f.prototype.getType=function(){return"ellipse"},f.prototype.getDescription=function(){return"在地图上绘制两个点用于绘制椭圆,在地图上点击绘制第一个点。"},f.prototype.getStepDes=function(t){switch(t){case 1:return"在地图上点击绘制最后一个点。";case 2:return"完成绘制。"}},s.exports=f}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,i,f,d,y,r,o,a,s){var l=t.extend2,m=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine,n.gainPt,n.distance);polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function u(t){this.$type="ExactPolygonAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:20}),this._inilization(),this.p1=null,this.p2=null}return l(u,e),u.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new y,o=new d,a=null,s=null;s=null!=e?(a=n[0],e):(a=n[0],n[n.length-1]);for(var l=m(a,s),u=n.length,h=2*Math.PI,c=(i=u+2,0);c<i;c++){var p=h*c/i;o.addPoint(new f({x:a.x+l*Math.sin(p),y:a.y+l*Math.cos(p)}))}return o.close(),r.addGeometry(o),[r]},u.prototype.getType=function(){return"exactpolygonalgorithm"},u.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多20个点用于绘制正多边形双击结束绘制在地图上点击绘制第1个点。"},u.prototype.getStepDes=function(t){switch(t){case 20:return"完成绘制。";default:if(t<=19)return"单击绘制下一个点。"}},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,i,r,s,l,o,a,u,h){var c=t.extend2;t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle;distance=n.distance;function p(t){this.$type="FreePolygonAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:1e3}),this._inilization(),this.p1=null,this.p2=null,this.freeDraw=!0}return c(p,e),p.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new s;r.points=[];for(var o=0;o<i;o++)r.addPoint(n[o]);null!=e&&r.addPoint(e),r.close();var a=new l;return a.addGeometry(r),[a]},p.prototype.getType=function(){return"../../../sfs/geom/Polygon"},p.prototype.getDescription=function(){return"在地图上绘制多个点最少3个点最多1000个点用于绘制多边形双击结束绘制在地图上点击绘制第1个点。"},p.prototype.getStepDes=function(t){switch(t){case 1e3:return"完成绘制。";default:if(t<=999)return"单击绘制下一个点。"}},h.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,s,i,r,o,l,a,u,h){var c=t.extend2;t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle;distance=n.distance;function p(t){this.$type="FreePolylineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:1e3}),this._inilization(),this.p1=null,this.p2=null,this.freeDraw=!0}return c(p,e),p.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new s;r.points=[];for(var o=0;o<i;o++)r.addPoint(n[o]);null!=e&&r.addPoint(e);var a=new l;return a.addGeometry(r),[a]},p.prototype.getType=function(){return"../../../sfs/geom/Polyline"},p.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多1000个点用于绘制线双击结束绘制在地图上点击绘制第1个点。"},p.prototype.getStepDes=function(t){switch(t){case 1e3:return"完成绘制。";default:if(t<=999)return"单击绘制下一个点。"}},h.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,l,i,u,h,c,r,o,a){var s=t.extend2;t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle;distance=n.distance;function p(t){this.$type="PolygonAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:100}),this._inilization(),this.p1=null,this.p2=null}return s(p,e),p.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length;if(i+1<this.minCpt){for(var r=new l,o=0;o<i;o++)r.addPoint(n[o]);null!=e&&r.addPoint(e);var a=new c;return a.addGeometry(r),[a]}for(r=new u,o=0;o<i;o++)r.addPoint(n[o]);null!=e&&r.addPoint(e),r.close();var s=new h;return s.addGeometry(r),[s]},p.prototype.getType=function(){return"../../../sfs/geom/Polygon"},p.prototype.getDescription=function(){return"在地图上绘制多个点最少3个点最多100个点用于绘制多边形双击结束绘制在地图上点击绘制第1个点。"},p.prototype.getStepDes=function(t){switch(t){case 100:return"完成绘制。";default:if(t<=99)return"单击绘制下一个点。"}},a.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,s,i,r,o,l,a,u,h){var c=t.extend2;t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle;distance=n.distance;function p(t){this.$type="PolylineAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:100}),this._inilization(),this.p1=null,this.p2=null}return c(p,e),p.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new s;r.points=[];for(var o=0;o<i;o++)r.addPoint(n[o]);null!=e&&r.addPoint(e);var a=new l;return a.addGeometry(r),[a]},p.prototype.getType=function(){return"PolylineAlgorithm"},p.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多100个点用于绘制线双击结束绘制在地图上点击绘制第1个点。"},p.prototype.getStepDes=function(t){switch(t){case 100:return"完成绘制。";default:if(t<=99)return"单击绘制下一个点。"}},h.exports=p}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,x,_,w,b,P,i,r,o){function S(t){this.$type="RectangleAlgorithm,http://www.Gs.com",e.call(this,{minCpt:3,maxCpt:3}),this._inilization()}var a=t.extend2,C=(t.deepCopy,n.vertex,n.angle),M=n.optionWay;n.distance;return a(S,e),S.prototype.createGeometries=function(t,e){var n,i,r,o,a,s,l=new _,u=new _,h=[],c=new w,p=new b,f=t.getControlPoints(),d=f.length;if(1===d){l=f[0],u=e;var y=new x,m=new P;return y.addPoint(l),y.addPoint(u),m.addGeometry(y),[m]}2===d?(h[0]=f[0],h[1]=f[1],M(h[0],h[1],e)?(n=C(h[0],h[1])+90)<0&&(n=360+C):360<(n=C(h[0],h[1])-90)&&(n=C-360),i=S.getDistance(h[0],h[1],e),r=h[1].x+i*Math.cos(n*Math.PI/180),o=h[1].y-i*Math.sin(n*Math.PI/180),h[2]=new _({x:r,y:o}),a=h[0].x+i*Math.cos(n*Math.PI/180),s=h[0].y-i*Math.sin(n*Math.PI/180),h[3]=new _({x:a,y:s})):3==d&&(h[0]=f[0],h[1]=f[1],h[2]=f[2],M(h[0],h[1],h[2])?(n=C(h[0],h[1])+90)<0&&(n=360+C):360<(n=C(h[0],h[1])-90)&&(n=C-360),i=S.getDistance(h[0],h[1],h[2]),r=h[1].x+i*Math.cos(n*Math.PI/180),o=h[1].y-i*Math.sin(n*Math.PI/180),h[2]=new _({x:r,y:o}),a=h[0].x+i*Math.cos(n*Math.PI/180),s=h[0].y-i*Math.sin(n*Math.PI/180),h[3]=new _({x:a,y:s}));for(var g=h.length,v=0;v<g;v++)c.addPoint(h[v]);return p.addGeometry(c),[p]},S.getDistance=function(t,e,n){var i=e.y-t.y,r=t.x-e.x,o=(e.x-t.x)*t.y-(e.y-t.y)*t.x;return Math.abs(i*n.x+r*n.y+o)/Math.sqrt(i*i+r*r)},S.prototype.getType=function(){return"rectanglealgorithm"},S.prototype.getDescription=function(){return"在地图上绘制3个点用于绘制矩形双击结束绘制在地图上点击绘制第1个点。"},S.prototype.getStepDes=function(t){switch(t){case 1:return"点击绘制下一个点。";case 2:return"点击绘制最后一个点。";case 3:return"完成绘制。"}},o.exports=S}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,i,h,c,p,r,o,a,s){function l(t){this.$type="RectangleAlgorithm2,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:2}),this._inilization()}var u=t.extend2;t.deepCopy,n.vertex,n.angle,n.optionWay,n.distance;return u(l,e),l.prototype.createGeometries=function(t,e){var n=new h,i=new h,r=new h,o=new h,a=(new c,new p),s=t.getControlPoints(),l=s.length;if(1===l)n=s[0],i=e,r.x=n.x,r.y=i.y,o.x=i.x,o.y=n.y,(u=new c).addPoint(n),u.addPoint(r),u.addPoint(i),u.addPoint(o),u.addPoint(n);else if(2===l){var u;n=s[0],i=s[1],r.x=n.x,r.y=i.y,o.x=i.x,o.y=n.y,(u=new c).addPoint(n),u.addPoint(r),u.addPoint(i),u.addPoint(o),u.addPoint(n)}return(a=new p).addGeometry(u),[a]},l.prototype.getType=function(){return"rectanglealgorithm"},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(7),n(4),n(2),n(1),n(6),n(5),n(3),n,e,t],void 0===(r=function(t,e,n,d,i,y,m,g,r,o,a){var s=t.extend2,v=(t.deepCopy,n.scalePoint,n.pathLength,n.vertex,n.angle,n.bzLine,n.gainPt,n.distance);polarAngle360=n.polarAngle360,midPoint=n.midPoint,getPolarPointOfCenterPoint=n.getPolarPointOfCenterPoint;function l(t){this.$type="SectorAlgorithm,http://www.Gs.com",e.call(this,{minCpt:2,maxCpt:3}),this._inilization(),this.p1=null,this.p2=null}return s(l,e),l.prototype.createGeometries=function(t,e){var n=t.getControlPoints(),i=n.length,r=new m,o=new y,a=null,s=null,l=null;if(1==i){var u=new g,h=new d;return a=n[0],s=e,h.addPoint(a),h.addPoint(s),u.addGeometry(h),[u]}if(2==i){o=new y,a=n[0],s=n[1],l=e;var c=v(a,s);if(o.addPoint(a),o.addPoint(s),angle1=getAngleOfThreePoints(l,a,s),0<=angle1||angle1<0){angle1=180*angle1/Math.PI;for(var p=f=polarAngle360(a,s);p<=f+angle1;p++)o.addPoint(getPolarPointOfCenterPoint(a,p,c))}}else{var f;o=new y,a=n[0],s=n[1],l=n[2];c=v(a,s);if(o.addPoint(a),o.addPoint(s),angle1=getAngleOfThreePoints(l,a,s),0<=angle1||angle1<0){angle1=180*angle1/Math.PI;for(p=f=polarAngle360(a,s);p<=f+angle1;p++)o.addPoint(getPolarPointOfCenterPoint(a,p,c))}}return o.close(),r.addGeometry(o),[r]},l.prototype.getType=function(){return"sectoralgorithm"},l.prototype.getDescription=function(){return"在地图上绘制多个点最少2个点最多3个点用于绘制扇形双击结束绘制在地图上点击绘制第一个点。"},l.prototype.getStepDes=function(t){switch(t){case 3:return"完成绘制。";default:if(t<=2)return"单击绘制下一个点。"}},a.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(51),n(5),n(24),n(11),n(50),n(35),n(75),n(25),n(1),n(84),n(85),n(105),n,e,t],void 0===(r=function(t,n,f,d,o,y,m,g,v,x,a,s,i,e,r,l){var _=null,w=function(t){var e=t||{};n.call(this,e),this.fieldName=e.fieldName,this.dotValue=e.dotValue,this.symbol=e.symbol,this.map=e.map,this.layerCreator=e.layerCreator,this.featureLayer=w.createLayer(this.map,this.layerCreator,this.symbol),this.convertor=new i,_=this};return w.prototype.canRender=function(){return!1},w.prototype.createLegend=function(t,e){var n=this.convertor.toImage(this.symbol,t,e),i=new s({content:"点值:"+this.dotValue,image:n}),r=new a;return r.add(i),r},w.prototype.render=function(t){var e=t.getValue(_.fieldName);if(e>=_.dotValue){if(0==_.dotValue)return;var n=Math.floor(e/_.dotValue),i=t.getGeometry(),r=[],o=new m;if(o.add(new y({name:"shape",dataType:v.Point})),i instanceof d)for(var a=0;a<i.getGeometryCount();a++){r=w.calRandomPoints(i.getGeometry(a),n);for(var s=0;s<r.length;s++){var l=new x({x:r[s].x,y:r[s].y,spatialReference:i.spatialReference}),u=new g({fields:o});u.setGeometry(l),_.featureLayer.add(u)}}else if(i instanceof f){r=w.calRandomPoints(i,n);for(var h=0;h<r.length;h++){var c=new x({x:r[h].x,y:r[h].y,spatialReference:i.spatialReference}),p=new g({fields:o});p.setGeometry(c),_.featureLayer.add(p)}}}},w.prototype.unRender=function(){_.map.removeLayer(_.featureLayer)},w.prototype.show=function(t){_.featureLayer.setVisible(t)},w.createLayer=function(t,e,n){var i=t.findLayer("dotdensity"),r=null;return null==i&&(r={id:"dotdensity",name:"dotdensity",layerType:o.FeatureLayer,opacity:1,visible:!0,symbol:n},i=e.createLayer(r),t.addLayer(i)),i},w.calRandomPoints=function(t,e){var n=[];if(!t||e<=0)return n;for(var i=t.envelope(),r=0,o=0,a=0,s=i.maxx-i.minx,l=i.maxy-i.miny;a!=e;){r=Math.random(),o=Math.random();var u={x:i.minx+r*s,y:i.miny+o*l};w.isInPolygon(t,u)&&(n.push(u),a++)}return n},w.isInPolygon=function(t,e){for(var n={StartPoint:e,EndPoint:{y:e.y,x:t.envelope().minx-1e5}},i=t.getGeometryCount(),r=0,o=0;o<i;o++){var a=t.getGeometry(o);if(!a)return!1;var s=a.points;if(s)for(var l=0;l<s.length-1;l++){var u={StartPoint:s[l],EndPoint:s[l+1]};if(null!=u&&null!=n){var h=w.isSegmentCrossing(u,n),c=w.isSegmentCrossing(n,u);h&&c&&r++}}}return r%2!=0},w.isSegmentCrossing=function(t,e){var n=w.calPointLoaction(e.StartPoint,t),i=w.calPointLoaction(e.EndPoint,t);return!(0<n&&0<i)&&!(n<0&&i<0)},w.calPointLoaction=function(t,e){var n=e.StartPoint.x-t.x,i=e.StartPoint.y-t.y,r=e.EndPoint.x-t.x;return n*(e.EndPoint.y-t.y)-r*i},l.exports=w}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(434),n(172),n(433),n(436),n(437),n(438),n,e,t],void 0===(r=function(l,n,i,t,u,h,e,r,o){function a(t){t=t||{},this.symbolTable=t.symbolTable}var s="ClassifyRenderDescriptor",c="SimpleRenderDescriptor",p="UniqueRenderDescriptor",f="BubbleRenderDescriptor";return a.prototype.createRender=function(t,e){if(t&&t.hasOwnProperty("$type"))switch(t.$type.split(",")[0].trim()){case c:return function(t){var e=this.symbolTable.find(t.styleName);return new n({symbol:e,showLabel:t.showLabel,labelField:t.labelField})}.call(this,t,e);case p:return function(t,e){for(var n=this.symbolTable.find(t.defaultStyleName),i=t.uniqueStyles,r=new u({symbol:n,fieldName:e,showLabel:t.showLabel,labelField:t.labelField}),o=0,a=i.length;o<a;++o){var s=i[o],l=this.symbolTable.find(s.styleName);r.addValue(new h({value:s.uniqueValue,symbol:l}))}return r}.call(this,t,e);case s:return function(t,e){for(var n=this.symbolTable.find(t.defaultStyleName),i=t.classifyStyles,r=[],o=0,a=i.length;o<a;++o){var s=i[o];r.push({startValue:s.startValue,endValue:s.endValue,symbol:this.symbolTable.find(s.styleName)})}return new l({symbol:n,fieldName:e,showLabel:t.showLabel,labelField:t.labelField,classfications:r})}.call(this,t,e);case f:return function(t,e){this.symbolTable.find(t.styleName);return new i({fieldName:e,fillColor:t.fillColor,shadowBlur:t.shadowBlur,shadowColor:t.shadowColor,maxRadius:t.maxRadius,minRadius:t.minRadius,maxWeight:t.maxWeight,minWeight:t.minWeight,shadow:t.shadow})}(t,e)}},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(51),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.renders=t.renders}t.extend2(o,e),o.prototype.canRender=function(){return!0},o.prototype.render=function(t,e){var n=t.getLayer(),i=this.renders[n];if(i)return i.render(t,e)};return r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(139),n(61),n,e,t],void 0===(r=function(t,n,a,e,i,r){function o(t){var e=t||{};n.call(this,e),this.fields=e.fields,this.options={colors:e.colors||["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],name:e.name,itemStyle:{barBorderColor:e.barBorderColor,label:e.label}},s=this}var s=null;return t.extend2(o,n),o.prototype.copy=function(){var t=this.options,e=new o({fields:this.fields,colors:t.colors,name:t.name,barBorderColor:t.barBorderColor,label:t.label,style:this.style,customOption:this.customOption});return e.customOption=this.customOption,e},o.prototype.getOption=function(t){var e=[],n=[],i=[];this.options.itemStyle||(this.options.itemStyle={});for(var r=0;r<this.fields.length;r++){var o=this.fields[r];o.dataType>=a.Int&&o.dataType<=a.Boolean&&(e.push({value:t.getValue(o.name),name:o.alias}),this.options.colors?this.options.colors.constructor===Array&&(n.push({name:o.alias,color:this.options.colors[r]||"#000"}),i.push(o.alias)):(n.push(o.alias),i.push(o.alias)))}return{data:{tooltip:this.options.tooltip||{},grid:this.options.grid||{top:"1%"},xAxis:this.options.xAxis||{data:i,boundaryGap:!1,axisLabel:{interval:0,rotate:-90}},yAxis:{show:!1,type:"value"},series:[{type:"bar",name:this.options.name||"",data:e,itemStyle:{normal:{color:function(t){return s.options.colors[t.dataIndex]},barBorderColor:this.options.itemStyle.barBorderColor,barBorderRadius:this.options.itemStyle.barBorderRadius,barBorderWidth:this.options.itemStyle.barBorderWidth,label:this.options.itemStyle.label}},barCategoryGap:this.options.barCategoryGap,barMinHeight:this.options.barMinHeight,barMaxWidth:this.options.barMaxWidth,barWidth:this.options.barWidth}]},legend:n}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){t.exports=function(n){function i(t){if(r[t])return r[t].exports;var e=r[t]={exports:{},id:t,loaded:!1};return n[t].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}var r={};return i.m=n,i.c=r,i.p="",i(0)}([function(t,e,n){t.exports=n(2),n(85),n(79),n(90),n(163),n(196),n(176),n(34),n(187),n(182),n(181),n(166),n(188),n(204)},function(t,e,n){function a(t){if("object"!=typeof t||null===t)return t;var e=t;if(t instanceof Array){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=a(t[n])}else if(!h(t)&&!c(t))for(var r in e={},t)t.hasOwnProperty(r)&&(e[r]=a(t[r]));return e}function s(t,e,n){if(!u(e)||!u(t))return n?a(e):t;for(var i in e)if(e.hasOwnProperty(i)){var r=t[i],o=e[i];!u(o)||!u(r)||l(o)||l(r)||c(o)||c(r)||h(o)||h(r)?!n&&i in t||(t[i]=a(e[i])):s(r,o,n)}return t}function i(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function l(t){return"[object Array]"===f.call(t)}function u(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function h(t){return!!p[f.call(t)]||t instanceof o}function c(t){return t&&1===t.nodeType&&"string"==typeof t.nodeName}var r,o=n(16),p={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},f=Object.prototype.toString,d=Array.prototype,y=d.forEach,m=d.filter,g=d.slice,v=d.map,x=d.reduce,_={inherits:function(t,e){function n(){}var i=t.prototype;for(var r in n.prototype=e.prototype,t.prototype=new n,i)t.prototype[r]=i[r];(t.prototype.constructor=t).superClass=e},mixin:function(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,i(t,e,n)},clone:a,merge:s,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=s(n,t[i],e);return n},extend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},defaults:i,getContext:function(){return r=r||_.createCanvas().getContext("2d")},createCanvas:function(){return document.createElement("canvas")},indexOf:function(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1},slice:function(){return Function.call.apply(g,arguments)},find:function(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]},isArrayLike:function(t){return t?"string"!=typeof t&&"number"==typeof t.length:void 0},each:function(t,e,n){if(t&&e)if(t.forEach&&t.forEach===y)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)},map:function(t,e,n){if(t&&e){if(t.map&&t.map===v)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}},reduce:function(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===x)return t.reduce(e,n,i);for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}},filter:function(t,e,n){if(t&&e){if(t.filter&&t.filter===m)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}},bind:function(t,e){var n=g.call(arguments,2);return function(){return t.apply(e,n.concat(g.call(arguments)))}},curry:function(t){var e=g.call(arguments,1);return function(){return t.apply(this,e.concat(g.call(arguments)))}},isArray:l,isString:function(t){return"[object String]"===f.call(t)},isObject:u,isFunction:function(t){return"function"==typeof t},isBuildInObject:h,isDom:c,retrieve:function(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]},assert:function(t,e){if(!t)throw new Error(e)},noop:function(){}};t.exports=_},function(t,e,n){function i(i){return function(t,e,n){t=t&&t.toLowerCase(),C.prototype[i].call(this,t,e,n)}}function r(){C.call(this)}function o(t,e,n){n=n||{},"string"==typeof e&&(e=G[e]),e&&M(D,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=w.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=b.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new f(this),this._coordSysMgr=new d,C.call(this),this._messageCenter=new r,this._initEvents(),this.resize=b.bind(this.resize,this)}function a(i,r){var o=this._model;o&&o.eachComponent({mainType:"series",query:r},function(t,e){var n=this._chartsMap[t.__viewId];n&&n.__alive&&n[i](t,o,this._api,r)},this)}function s(i,r,o){var a=this._api;M(this._componentsViews,function(t){var e=t.__model;t[i](e,r,a,o),c(e,t)},this),r.eachSeries(function(t,e){var n=this._chartsMap[t.__viewId];n[i](t,r,a,o),c(t,n)},this)}function l(t,a){for(var s="component"===t,l=s?this._componentsViews:this._chartsViews,u=s?this._componentsMap:this._chartsMap,h=this._zr,e=0;e<l.length;e++)l[e].__alive=!1;a[s?"eachComponent":"eachSeries"](function(t,e){if(s){if("series"===t)return}else e=t;var n=e.id+"_"+e.type,i=u[n];if(!i){var r=m.parseClassType(e.type),o=s?v.getClass(r.main,r.sub):x.getClass(r.sub);if(!o)return;(i=new o).init(a,this._api),u[n]=i,l.push(i),h.add(i.group)}e.__viewId=n,i.__alive=!0,i.__id=n,i.__model=e},this);for(var e=0;e<l.length;){var n=l[e];n.__alive?e++:(h.remove(n.group),n.dispose(a,this._api),l.splice(e,1),delete u[n.__id])}}function u(e,n){var i=this._api;M(k,function(t){t(e,i,n)})}function h(e,n){M(T,function(t){M(F[t]||[],function(t){t(e,n)})})}function c(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){null!=n&&(t.z=n),null!=i&&(t.zlevel=i)})}
/*!
* ECharts, a javascript interactive chart library.
*
* Copyright (c) 2015, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/echarts/blob/master/LICENSE.txt
*/
var p=n(112),f=n(78),d=n(28),y=n(113),m=n(10),g=n(13),v=n(54),x=n(25),_=n(3),w=n(67),b=n(1),P=n(22),S=n(15),C=n(21),M=b.each,T=["echarts","chart","component"],A=["transform","filter","statistic"];r.prototype.on=i("on"),r.prototype.off=i("off"),r.prototype.one=i("one"),b.mixin(r,C);var E=o.prototype;E.getDom=function(){return this._dom},E.getZr=function(){return this._zr},E.setOption=function(t,e,n){this._model&&!e||(this._model=new p(null,null,this._theme,new y(this._api))),this._model.setOption(t,D),I.prepareAndUpdate.call(this),n||this._zr.refreshImmediately()},E.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},E.getModel=function(){return this._model},E.getOption=function(){return this._model.getOption()},E.getWidth=function(){return this._zr.getWidth()},E.getHeight=function(){return this._zr.getHeight()},E.getRenderedCanvas=function(t){if(S.canvasSupported){(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,n=e.storage.getDisplayList();return b.each(n,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},E.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;M(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(t){t.group.ignore=!1}),o},E.getConnectedDataURL=function(t){if(S.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(V[e]){var r=1/0,o=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;for(var h in j){var c=j[h];if(c.group===e){var p=c.getRenderedCanvas(b.clone(t)),f=c.getDom().getBoundingClientRect();r=n(f.left,r),o=n(f.top,o),a=i(f.right,a),s=i(f.bottom,s),l.push({dom:p,left:f.left,top:f.top})}}var d=(a*=u)-(r*=u),y=(s*=u)-(o*=u),m=b.createCanvas();m.width=d,m.height=y;var g=w.init(m);return M(l,function(t){var e=new _.Image({style:{x:t.left*u-r,y:t.top*u-o,image:t.dom}});g.add(e)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var I={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr;if(e){e.restoreData(),i.create(this._model,this._api),function(e,n){M(A,function(t){M(z[t]||[],function(t){t(e,n)})})}.call(this,e,n),function(t){var r={};t.eachSeries(function(t){var e=t.get("stack"),n=t.getData();if(e&&"list"===n.type){var i=r[e];i&&(n.stackedOn=i),r[e]=n}})}.call(this,e),i.update(e,n),u.call(this,e,t),h.call(this,e,t),function(i,r){var o=this._api;M(this._componentsViews,function(t){var e=t.__model;t.render(e,i,o,r),c(e,t)},this),M(this._chartsViews,function(t){t.__alive=!1},this),i.eachSeries(function(t,e){var n=this._chartsMap[t.__viewId];n.__alive=!0,n.render(t,i,o,r),n.group.silent=!!t.get("silent"),c(t,n)},this),M(this._chartsViews,function(t){t.__alive||t.remove(i,o)},this)}.call(this,e,t);var r=e.get("backgroundColor")||"transparent",o=this._zr.painter;if(o.isSingleCanvas&&o.isSingleCanvas())this._zr.configLayer(0,{clearColor:r});else{if(!S.canvasSupported){var a=P.parse(r);r=P.stringify(a,"rgb"),0===a[3]&&(r="transparent")}r=r,this._dom.style.backgroundColor=r}}},updateView:function(t){var e=this._model;e&&(u.call(this,e,t),h.call(this,e,t),s.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(h.call(this,e,t),s.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(u.call(this,e,t),s.call(this,"updateLayout",e,t))},highlight:function(t){a.call(this,"highlight",t)},downplay:function(t){a.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;l.call(this,"component",e),l.call(this,"chart",e),I.update.call(this,t)}};E.resize=function(){this._zr.resize();var t=this._model&&this._model.resetOption("media");I[t?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize()};var L=n(111);E.showLoading=function(t,e){b.isObject(t)&&(e=t,t="default"),this.hideLoading();var n=L(this._api,e),i=this._zr;this._loadingFX=n,i.add(n)},E.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},E.makeActionFromEvent=function(t){var e=b.extend({},t);return e.type=N[t.type],e},E.dispatchAction=function(e,t){var n=O[e.type];if(n){var i=n.actionInfo,r=i.update||"update",o=[e],a=!1;e.batch&&(a=!0,o=b.map(e.batch,function(t){return(t=b.defaults(b.extend({},t),e)).batch=null,t}));for(var s,l=[],u="highlight"===e.type||"downplay"===e.type,h=0;h<o.length;h++){var c=o[h];(s=(s=n.action(c,this._model))||b.extend({},c)).type=i.event||s.type,l.push(s),u&&I[r].call(this,c)}"none"===r||u||I[r].call(this,e),t||(s=a?{type:i.event||e.type,batch:l}:l[0],this._messageCenter.trigger(s.type,s))}},E.on=i("on"),E.off=i("off"),E.one=i("one");var R=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];E._initEvents=function(){var t=this._zr;M(R,function(o){t.on(o,function(t){var e=this.getModel(),n=t.target;if(n&&null!=n.dataIndex){var i=n.dataModel||e.getSeriesByIndex(n.seriesIndex),r=i&&i.getDataParams(n.dataIndex)||{};r.event=t,r.type=o,this.trigger(o,r)}else n&&n.eventData&&this.trigger(o,n.eventData)},this)},this),M(N,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},E.isDisposed=function(){return this._disposed},E.clear=function(){this.setOption({},!0)},E.dispose=function(){this._disposed=!0;var e=this._api,n=this._model;M(this._componentsViews,function(t){t.dispose(n,e)}),M(this._chartsViews,function(t){t.dispose(n,e)}),this._zr.dispose(),delete j[this.id]},b.mixin(o,C);var O=[],N={},k=[],z={},D=[],F={},G={},j={},V={},q=new Date-0,B=new Date-0,U="_echarts_instance_",W={version:"3.1.7",dependencies:{zrender:"3.0.8"},init:function(t,e,n){if(w.version.replace(".","")-0<W.dependencies.zrender.replace(".","")-0)throw new Error("ZRender "+w.version+" is too old for ECharts "+W.version+". Current version need ZRender "+W.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var i=new o(t,e,n);return i.id="ec_"+q++,j[i.id]=i,t.setAttribute&&t.setAttribute(U,i.id),function(o){function a(t,e){for(var n=0;n<t.length;n++)t[n][s]=e}var s="__connectUpdateStatus";b.each(N,function(t,e){o._messageCenter.on(e,function(t){if(V[o.group]&&0!==o[s]){var e=o.makeActionFromEvent(t),n=[];for(var i in j){var r=j[i];r!==o&&r.group===o.group&&n.push(r)}a(n,0),M(n,function(t){1!==t[s]&&t.dispatchAction(e)}),a(n,2)}})})}(i),i},connect:function(e){if(b.isArray(e)){var t=e;e=null,b.each(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+B++,b.each(t,function(t){t.group=e})}return V[e]=!0,e},disConnect:function(t){V[t]=!1},dispose:function(t){b.isDom(t)?t=W.getInstanceByDom(t):"string"==typeof t&&(t=j[t]),t instanceof o&&!t.isDisposed()&&t.dispose()},getInstanceByDom:function(t){var e=t.getAttribute(U);return j[e]},getInstanceById:function(t){return j[t]},registerTheme:function(t,e){G[t]=e},registerPreprocessor:function(t){D.push(t)},registerProcessor:function(t,e){if(b.indexOf(A,t)<0)throw new Error("stage should be one of "+A);var n=z[t]||(z[t]=[]);n.push(e)},registerAction:function(t,e,n){"function"==typeof e&&(n=e,e="");var i=b.isObject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,O[i]||(O[i]={action:n,actionInfo:t}),N[e]=i},registerCoordinateSystem:function(t,e){d.register(t,e)},registerLayout:function(t){b.indexOf(k,t)<0&&k.push(t)},registerVisualCoding:function(t,e){if(b.indexOf(T,t)<0)throw new Error("stage should be one of "+T);var n=F[t]||(F[t]=[]);n.push(e)},extendChartView:function(t){return x.extend(t)},extendComponentModel:function(t){return m.extend(t)},extendSeriesModel:function(t){return g.extend(t)},extendComponentView:function(t){return v.extend(t)},setCanvasCreator:function(t){b.createCanvas=t}};W.registerVisualCoding("echarts",b.curry(n(74),"","itemStyle")),W.registerPreprocessor(n(120)),W.registerAction({type:"highlight",event:"highlight",update:"highlight"},b.noop),W.registerAction({type:"downplay",event:"downplay",update:"downplay"},b.noop),W.graphic=n(3),W.number=n(4),W.format=n(9),W.matrix=n(19),W.vector=n(5),W.util={},M(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend"],function(t){W.util[t]=b[t]}),t.exports=W},function(t,e,n){"use strict";function i(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style.stroke,n=t.style.fill,i=t.__hoverStl,r=g.lift;i.fill=i.fill||n&&(n instanceof _?n:r(n,-.1)),i.stroke=i.stroke||e&&(e instanceof _?e:r(e,-.1));var o={};for(var a in i)i.hasOwnProperty(a)&&(o[a]=t.style[a]);t.__normalStl=o,t.__hoverStlDirty=!1}t.setStyle(t.__hoverStl),t.z2+=1,t.__isHover=!0}}function r(t){if(t.__isHover){var e=t.__normalStl;e&&t.setStyle(e),t.z2-=1,t.__isHover=!1}}function o(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&i(t)}):i(t)}function a(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&r(t)}):r(t)}function s(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0}function l(){this.__isEmphasis||o(this)}function u(){this.__isEmphasis||a(this)}function h(){this.__isEmphasis=!0,o(this)}function c(){this.__isEmphasis=!1,a(this)}function p(t,e,n,i,r){var o=t?"Update":"",a=i&&i.getShallow("animationDuration"+o),s=i&&i.getShallow("animationEasing"+o);i&&i.getShallow("animation")?e.animateTo(n,a,s,r):(e.attr(n),r&&r())}var f=n(1),d=n(156),y=Math.round,m=n(6),g=n(22),v=n(19),x=n(5),_=n(16),w={};w.Group=n(26),w.Image=n(46),w.Text=n(65),w.Circle=n(147),w.Sector=n(153),w.Ring=n(152),w.Polygon=n(149),w.Polyline=n(150),w.Rect=n(151),w.Line=n(148),w.BezierCurve=n(146),w.Arc=n(145),w.LinearGradient=n(76),w.RadialGradient=n(141),w.BoundingRect=n(8),w.extendShape=function(t){return m.extend(t)},w.extendPath=function(t,e){return d.extendFromString(t,e)},w.makePath=function(t,e,n,i){var r=d.createFromString(t,e),o=r.getBoundingRect();if(n){var a=o.width/o.height;if("center"===i){var s,l=n.height*a;s=l<=n.width?n.height:(l=n.width)/a;var u=n.x+n.width/2,h=n.y+n.height/2;n.x=u-l/2,n.y=h-s/2,n.width=l,n.height=s}this.resizePath(r,n)}return r},w.mergePath=d.mergePath,w.resizePath=function(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}},w.subPixelOptimizeLine=function(t){var e=w.subPixelOptimize,n=t.shape,i=t.style.lineWidth;return y(2*n.x1)===y(2*n.x2)&&(n.x1=n.x2=e(n.x1,i,!0)),y(2*n.y1)===y(2*n.y2)&&(n.y1=n.y2=e(n.y1,i,!0)),t},w.subPixelOptimizeRect=function(t){var e=w.subPixelOptimize,n=t.shape,i=t.style.lineWidth,r=n.x,o=n.y,a=n.width,s=n.height;return n.x=e(n.x,i,!0),n.y=e(n.y,i,!0),n.width=Math.max(e(r+a,i,!1)-n.x,0===a?0:1),n.height=Math.max(e(o+s,i,!1)-n.y,0===s?0:1),t},w.subPixelOptimize=function(t,e,n){var i=y(2*t);return(i+y(e))%2==0?i/2:(i+(n?1:-1))/2},w.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&s(t,e)}):s(t,e),t.on("mouseover",l).on("mouseout",u),t.on("emphasis",h).on("normal",c)},w.setText=function(t,e,n){var i=e.getShallow("position")||"inside",r=0<=i.indexOf("inside")?"white":n,o=e.getModel("textStyle");f.extend(t,{textDistance:e.getShallow("distance")||5,textFont:o.getFont(),textPosition:i,textFill:o.getTextColor()||r})},w.updateProps=f.curry(p,!0),w.initProps=f.curry(p,!1),w.getTransform=function(t,e){for(var n=v.identity([]);t&&t!==e;)v.mul(n,t.getLocalTransform(),n),t=t.parent;return n},w.applyTransform=function(t,e,n){return n&&(e=v.invert([],e)),x.applyTransform([],t,e)},w.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=w.applyTransform(o,e,n),Math.abs(o[0])>Math.abs(o[1])?0<o[0]?"right":"left":0<o[1]?"bottom":"top"},t.exports=w},function(t,e){var n={linearMap:function(t,e,n,i){var r=e[1]-e[0];if(0==r)return(n[0]+n[1])/2;var o=(t-e[0])/r;return i&&(o=Math.min(Math.max(o,0),1)),o*(n[1]-n[0])+n[0]},parsePercent:function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?function(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},round:function(t){return+(+t).toFixed(10)},asc:function(t){return t.sort(function(t,e){return t-e}),t},getPrecision:function(t){if(isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},getPixelPrecision:function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i);return Math.max(-r+o,0)},MAX_SAFE_INTEGER:9007199254740991,remRadian:function(t){var e=2*Math.PI;return(t%e+e)%e},isRadianAroundZero:function(t){return-1e-4<t&&t<1e-4},parseDate:function(t){return t instanceof Date?t:new Date("string"==typeof t?t.replace(/-/g,"/"):Math.round(t))},nice:function(t,e){var n=Math.floor(Math.log(t)/Math.LN10),i=Math.pow(10,n),r=t/i;return(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i}};t.exports=n},function(t,e){var i="undefined"==typeof Float32Array?Array:Float32Array,r={create:function(t,e){var n=new i(2);return n[0]=t||0,n[1]=e||0,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new i(2);return e[0]=t[0],e[1]=t[1],e},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},normalize:function(t,e){var n=r.len(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},applyTransform:function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}};r.length=r.len,r.lengthSquare=r.lenSquare,r.dist=r.distance,r.distSquare=r.distanceSquare,t.exports=r},function(t,e,n){function l(t){var e=t.fill;return null!=e&&"none"!==e}function u(t){var e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth}function o(t){i.call(this,t),this.path=new r}var i=n(35),a=n(1),r=n(27),h=n(137),c=n(16),s=Math.abs;o.prototype={constructor:o,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var e=this.style,n=this.path,i=u(e),r=l(e);this.__dirtyPath&&(r&&e.fill instanceof c&&e.fill.updateCanvasGradient(this,t),i&&e.stroke instanceof c&&e.stroke.updateCanvasGradient(this,t)),e.bind(t,this),this.setTransform(t);var o=e.lineDash,a=e.lineDashOffset,s=!!t.setLineDash;this.__dirtyPath||o&&!s&&i?(n=this.path.beginPath(t),o&&!s&&(n.setLineDash(o),n.setLineDashOffset(a)),this.buildPath(n,this.shape),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),r&&n.fill(t),o&&s&&(t.setLineDash(o),t.lineDashOffset=a),i&&n.stroke(t),null!=e.text&&this.drawRectText(t,this.getBoundingRect()),t.restore()},buildPath:function(t,e){},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape)),t=i.getBoundingRect()}if(this._rect=t,u(e)){var r=this._rectWithStroke;if(this.__dirty||n){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());r.copy(t);var o=e.lineWidth,a=e.strokeNoScale?this.getLineScale():1;l(e)||(o=Math.max(o,this.strokeContainThreshold)),1e-10<a&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path.data;if(u(r)){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(1e-10<s&&(l(r)||(a=Math.max(a,this.strokeContainThreshold)),h.containStroke(o,a/s,t,e)))return!0}if(l(r))return h.contain(o,t,e)}return!1},dirty:function(t){0===arguments.length&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?this.setShape(e):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(a.isObject(t))for(var i in t)n[i]=t[i];else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&1e-10<s(t[0]-1)&&1e-10<s(t[3]-1)?Math.sqrt(s(t[0]*t[3]-t[2]*t[1])):1}},o.extend=function(r){var t=function(t){o.call(this,t),r.style&&this.style.extendFrom(r.style,!1);var e=r.shape;if(e){this.shape=this.shape||{};var n=this.shape;for(var i in e)!n.hasOwnProperty(i)&&e.hasOwnProperty(i)&&(n[i]=e[i])}r.init&&r.init.call(this,t)};for(var e in a.inherits(t,o),r)"style"!==e&&"shape"!==e&&(t.prototype[e]=r[e]);return t},a.inherits(o,i),t.exports=o},function(t,e,n){var a=n(9),i=n(4),u=n(1),r=n(12),h={createNameEach:function(t,a){t=t.slice();var s=u.map(t,h.capitalFirst);a=(a||[]).slice();var l=u.map(a,h.capitalFirst);return function(r,o){u.each(t,function(t,e){for(var n={name:t,capital:s[e]},i=0;i<a.length;i++)n[a[i]]=t+l[i];r.call(o,n)})}},capitalFirst:function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}};h.eachAxisDim=h.createNameEach(["x","y","z","radius","angle"],["axisIndex","axis","index"]),h.normalizeToArray=function(t){return u.isArray(t)?t:null==t?[]:[t]},h.createLinkedNodesFinder=function(r,o,a){function s(t,n){n.nodes.push(t),o(function(e){u.each(a(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(t){function e(t){!function(t,e){return 0<=u.indexOf(e.nodes,t)}(t,i)&&function(t,n){var i=!1;return o(function(e){u.each(a(t,e)||[],function(t){n.records[e.name][t]&&(i=!0)})}),i}(t,i)&&(s(t,i),n=!0)}var n,i={nodes:[],records:{}};if(o(function(t){i.records[t.name]={}}),!t)return i;for(s(t,i);n=!1,r(e),n;);return i}},h.defaultEmphasis=function(t,e){if(t){var n=t.emphasis=t.emphasis||{},i=t.normal=t.normal||{};u.each(e,function(t){var e=u.retrieve(n[t],i[t]);null!=e&&(n[t]=e)})}},h.createDataFormatModel=function(t,e,n){var i=new r;return u.mixin(i,h.dataFormatMixin),i.seriesIndex=t.seriesIndex,i.name=t.name||"",i.getData=function(){return e},i.getRawDataArray=function(){return n},i},h.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},h.converDataValue=function(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?NaN:+t)},h.dataFormatMixin={getDataParams:function(t){var e=this.getData(),n=this.seriesIndex,i=this.name,r=this.getRawValue(t),o=e.getRawIndex(t),a=e.getName(t,!0),s=this.getRawDataArray(),l=s&&s[o];return{componentType:"series",seriesType:this.subType,seriesIndex:n,seriesName:i,name:a,dataIndex:o,data:l,value:r,color:e.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n){e=e||"normal";var i=this.getData(),r=i.getItemModel(t),o=this.getDataParams(t);return null==n&&(n=r.get(["label",e,"formatter"])),"function"==typeof n?(o.status=e,n(o)):"string"==typeof n?a.formatTpl(n,o):void 0},getRawValue:function(t){var e=this.getData().getItemModel(t);if(e&&null!=e.option){var n=e.option;return u.isObject(n)&&!u.isArray(n)?n.value:n}}},h.mappingToExists=function(t,r){r=(r||[]).slice();var o=u.map(t||[],function(t,e){return{exist:t}});return u.each(r,function(t,e){if(u.isObject(t))for(var n=0;n<o.length;n++){var i=o[n].exist;if(!o[n].option&&(null!=t.id&&i.id===t.id+""||null!=t.name&&!h.isIdInner(t)&&!h.isIdInner(i)&&i.name===t.name+"")){o[n].option=t,r[e]=null;break}}}),u.each(r,function(t,e){if(u.isObject(t)){for(var n=0;n<o.length;n++){var i=o[n].exist;if(!o[n].option&&!h.isIdInner(i)&&null==t.id){o[n].option=t;break}}n>=o.length&&o.push({option:t})}}),o},h.isIdInner=function(t){return u.isObject(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")},t.exports=h},function(t,e,n){"use strict";function i(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i}var r=n(5),o=n(19),a=r.applyTransform,s=Math.min,l=Math.abs,u=Math.max;i.prototype={constructor:i,union:function(t){var e=s(t.x,this.x),n=s(t.y,this.y);this.width=u(t.x+t.width,this.x+this.width)-e,this.height=u(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var e=[],n=[];return function(t){t&&(e[0]=this.x,e[1]=this.y,n[0]=this.x+this.width,n[1]=this.y+this.height,a(e,e,t),a(n,n,t),this.x=s(e[0],n[0]),this.y=s(e[1],n[1]),this.width=l(n[0]-e[0]),this.height=l(n[1]-e[1]))}}(),calculateTransform:function(t){var e=t.width/this.width,n=t.height/this.height,i=o.create();return o.translate(i,i,[-this.x,-this.y]),o.scale(i,i,[e,n]),o.translate(i,i,[t.x,t.y]),i},intersect:function(t){var e=this.x,n=this.x+this.width,i=this.y,r=this.y+this.height,o=t.x,a=t.x+t.width,s=t.y,l=t.y+t.height;return!(n<o||a<e||r<s||l<i)},contain:function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}},t.exports=i},function(t,e,n){function l(t,e){return"{"+t+(null==e?"":e)+"}"}function u(t){return t<10?"0"+t:t}var h=n(1),c=n(4),p=["a","b","c","d","e","f","g"];t.exports={normalizeCssArray:function(t){var e=t.length;return"number"==typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},addCommas:function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<t.length?"."+t[1]:"")},toCamelCase:function(t){return t.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})},encodeHTML:function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},formatTpl:function(t,e){h.isArray(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars,r=0;r<i.length;r++){var o=p[r];t=t.replace(l(o),l(o,0))}for(var a=0;a<n;a++)for(var s=0;s<i.length;s++)t=t.replace(l(p[s],a),e[a][i[s]]);return t},formatTime:function(t,e){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=c.parseDate(e),i=n.getFullYear(),r=n.getMonth()+1,o=n.getDate(),a=n.getHours(),s=n.getMinutes(),l=n.getSeconds();return t=t.replace("MM",u(r)).toLowerCase().replace("yyyy",i).replace("yy",i%100).replace("dd",u(o)).replace("d",o).replace("hh",u(a)).replace("h",a).replace("mm",u(s)).replace("m",s).replace("ss",u(l)).replace("s",l)}}},function(t,e,n){var i=n(12),o=n(1),r=Array.prototype.push,a=n(41),s=n(20),l=n(11),u=i.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(t,e,n,i){this.mergeDefaultAndTheme(this.option,this.ecModel)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?l.getLayoutParams(t):{},r=e.getTheme();o.merge(t,r.get(this.mainType)),o.merge(t,this.getDefaultOption()),n&&l.mergeLayoutParam(t,i,n)},mergeOption:function(t){o.merge(this.option,t,!0);var e=this.layoutMode;e&&l.mergeLayoutParam(this.option,t,e)},optionUpdated:function(t){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var n=e.prototype.defaultOption;n&&t.push(n),e=e.superClass}for(var i={},r=t.length-1;0<=r;r--)i=o.merge(i,t[r],!0);this.__defaultOption=i}return this.__defaultOption}});s.enableClassExtend(u,function(t,e,n,i){o.extend(this,i),this.uid=a.getUID("componentModel")}),s.enableClassManagement(u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,function(t){var e=[];return o.each(u.getClassesByMainType(t),function(t){r.apply(e,t.prototype.dependencies||[])}),o.map(e,function(t){return s.parseClassType(t).main})}),o.mixin(u,n(116)),t.exports=u},function(t,e,n){"use strict";function i(h,c,p,f,d){var y=0,m=0;null==f&&(f=1/0),null==d&&(d=1/0);var g=0;c.eachChild(function(t,e){var n,i,r=t.position,o=t.getBoundingRect(),a=c.childAt(e+1),s=a&&a.getBoundingRect();if("horizontal"===h){var l=o.width+(s?-s.x+o.x:0);g=f<(n=y+l)||t.newline?(y=0,n=l,m+=g+p,o.height):Math.max(g,o.height)}else{var u=o.height+(s?-s.y+o.y:0);g=d<(i=m+u)||t.newline?(y+=g+p,m=0,i=u,o.width):Math.max(g,o.width)}t.newline||(r[0]=y,r[1]=m,"horizontal"===h?y=n+p:m=i+p)})}var a=n(1),y=n(8),r=n(4),m=n(9),g=r.parsePercent,f=a.each,o={},s=["left","right","top","bottom","width","height"];o.box=i,o.vbox=a.curry(i,"vertical"),o.hbox=a.curry(i,"horizontal"),o.getAvailableSize=function(t,e,n){var i=e.width,r=e.height,o=g(t.x,i),a=g(t.y,r),s=g(t.x2,i),l=g(t.y2,r);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=i),(isNaN(a)||isNaN(parseFloat(t.y)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=r),n=m.normalizeCssArray(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}},o.getLayoutRect=function(t,e,n){n=m.normalizeCssArray(n||0);var i=e.width,r=e.height,o=g(t.left,i),a=g(t.top,r),s=g(t.right,i),l=g(t.bottom,r),u=g(t.width,i),h=g(t.height,r),c=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),isNaN(u)&&isNaN(h)&&(i/r<f?u=.8*i:h=.8*r),null!=f&&(isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-o-(s||0)),isNaN(h)&&(h=r-a-(l||0));var d=new y(o+n[3],a+n[0],u,h);return d.margin=n,d},o.positionGroup=function(t,e,n,i){var r=t.getBoundingRect();e=a.extend(a.clone(e),{width:r.width,height:r.height}),e=o.getLayoutRect(e,n,i),t.position=[e.x-r.x,e.y-r.y]},o.mergeLayoutParam=function(l,u,h){function t(t){var e={},n=0,i={},r=0,o=h.ignoreSize?1:2;if(f(t,function(t){i[t]=l[t]}),f(t,function(t){c(u,t)&&(e[t]=i[t]=u[t]),p(e,t)&&n++,p(i,t)&&r++}),r!==o&&n){if(o<=n)return e;for(var a=0;a<t.length;a++){var s=t[a];if(!c(e,s)&&c(l,s)){e[s]=l[s];break}}return e}return i}function c(t,e){return t.hasOwnProperty(e)}function p(t,e){return null!=t[e]&&"auto"!==t[e]}function e(t,e,n){f(t,function(t){e[t]=n[t]})}a.isObject(h)||(h={});var n=["width","left","right"],i=["height","top","bottom"],r=t(n),o=t(i);e(n,l,r),e(i,l,o)},o.getLayoutParams=function(t){return o.copyLayoutParams({},t)},o.copyLayoutParams=function(e,n){return n&&e&&f(s,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e},t.exports=o},function(t,e,n){function o(t,e,n,i){this.parentModel=e,this.ecModel=n,this.option=t,this.init&&(arguments.length<=4?this.init(t,e,n,i):this.init.apply(this,arguments))}var i=n(1),r=n(20);o.prototype={constructor:o,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){if(!t)return this.option;"string"==typeof t&&(t=t.split("."));for(var n=this.option,i=this.parentModel,r=0;r<t.length&&null!=(n=n&&"object"==typeof n?n[t[r]]:null);r++);return null==n&&i&&!e&&(n=i.get(t)),n},getShallow:function(t,e){var n=this.option,i=n&&n[t],r=this.parentModel;return null==i&&r&&!e&&(i=r.getShallow(t)),i},getModel:function(t,e){var n=this.get(t,!0),i=this.parentModel,r=new o(n,e||i&&i.getModel(t),this.ecModel);return r},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this.option))},setReadOnly:function(t){r.setReadOnly(this,t)}},r.enableClassExtend(o);var a=i.mixin;a(o,n(118)),a(o,n(115)),a(o,n(119)),a(o,n(117)),t.exports=o},function(t,e,n){"use strict";var l=n(1),i=n(9),r=n(7),o=n(10),u=i.encodeHTML,h=i.addCommas,a=o.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,n,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,n),this._dataBeforeProcessed=this.getInitialData(t,n),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,e){l.merge(t,e.getTheme().get(this.subType)),l.merge(t,this.getDefaultOption()),r.defaultEmphasis(t.label,["position","show","textStyle","distance","formatter"]);for(var n=t.data||[],i=0;i<n.length;i++)n[i]&&n[i].label&&r.defaultEmphasis(n[i].label,["position","show","textStyle","distance","formatter"])},mergeOption:function(t,e){t=l.merge(this.option,t,!0);var n=this.getInitialData(t,e);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},getInitialData:function(){},getData:function(){return this._data},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},getRawDataArray:function(){return this.option.data},coordDimToDataDim:function(t){return[t]},dataDimToCoordDim:function(t){return t},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e){var n=this._data,i=this.getRawValue(t),r=l.isArray(i)?l.map(i,h).join(", "):h(i),o=n.getName(t),a=n.getItemVisual(t,"color"),s='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+a+'"></span>';return e?s+u(this.name)+" : "+r:u(this.name)+"<br />"+s+(o?u(o)+" : "+r:r)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});l.mixin(a,r.dataFormatMixin),t.exports=a},function(f,t,d){(function(t){function c(t){return w.isArray(t)||(t=[t]),t}function v(t,e){var n=t.dimensions,i=new h(w.map(n,t.getDimensionInfo,t),t.hostModel);u(i,t,t._wrappedMethods);for(var r=i._storage={},o=t._storage,a=0;a<n.length;a++){var s=n[a],l=o[s];0<=w.indexOf(e,s)?r[s]=new l.constructor(o[s].length):r[s]=o[s]}return i}var e="undefined"==typeof window?t:window,n=void 0===e.Float64Array?Array:e.Float64Array,i=void 0===e.Int32Array?Array:e.Int32Array,_={float:n,int:i,ordinal:Array,number:Array,time:Array},r=d(12),o=d(52),w=d(1),b=d(7),a=w.isObject,s=["stackedOn","_nameList","_idList","_rawData"],u=function(e,n,t){w.each(s.concat(t||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])})},h=function(t,e){t=t||["x","y"];for(var n={},i=[],r=0;r<t.length;r++){var o,a={};"string"==typeof t[r]?(o=t[r],a={name:o,stackable:!1,type:"number"}):(a=t[r],o=a.name,a.type=a.type||"number"),i.push(o),n[o]=a}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},l=h.prototype;l.type="list",l.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},l.getDimensionInfo=function(t){return w.clone(this._dimensionInfos[this.getDimension(t)])},l.initData=function(t,e,n){t=t||[],this._rawData=t;var i=this._storage={},r=this.indices=[],o=this.dimensions,a=t.length,s=this._dimensionInfos,l=[],u={};e=e||[];for(var h=0;h<o.length;h++){var c=s[o[h]],p=_[c.type];i[o[h]]=new p(a)}n=n||function(t,e,n,i){var r=b.getDataItemValue(t);return b.converDataValue(w.isArray(r)?r[i]:r,s[e])};for(var f=0;f<t.length;f++){for(var d=t[f],y=0;y<o.length;y++){var m=o[y],g=i[m];g[f]=n(d,m,f,y)}r.push(f)}for(var h=0;h<t.length;h++){var v="";e[h]||(e[h]=t[h].name,v=t[h].id);var x=e[h]||"";!v&&x&&(u[x]=u[x]||0,0<u[v=x]&&(v+="__ec__"+u[x]),u[x]++),v&&(l[h]=v)}this._nameList=e,this._idList=l},l.count=function(){return this.indices.length},l.get=function(t,e,n){var i=this._storage,r=this.indices[e];if(null==r)return NaN;var o=i[t]&&i[t][r];if(n){var a=this._dimensionInfos[t];if(a&&a.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(0<=o&&0<l||o<=0&&l<0)&&(o+=l),s=s.stackedOn}}return o},l.getValues=function(t,e,n){var i=[];w.isArray(t)||(n=e,e=t,t=this.dimensions);for(var r=0,o=t.length;r<o;r++)i.push(this.get(t[r],e,n));return i},l.hasValue=function(t){for(var e=this.dimensions,n=this._dimensionInfos,i=0,r=e.length;i<r;i++)if("ordinal"!==n[e[i]].type&&isNaN(this.get(e[i],t)))return!1;return!0},l.getDataExtent=function(t,e){var n=this._storage[t],i=this.getDimensionInfo(t);e=i&&i.stackable&&e;var r,o=(this._extent||(this._extent={}))[t+!!e];if(o)return o;if(n){for(var a=1/0,s=-1/0,l=0,u=this.count();l<u;l++)(r=this.get(t,l,e))<a&&(a=r),s<r&&(s=r);return this._extent[t+e]=[a,s]}return[1/0,-1/0]},l.getSum=function(t,e){var n=this._storage[t],i=0;if(n)for(var r=0,o=this.count();r<o;r++){var a=this.get(t,r,e);isNaN(a)||(i+=a)}return i},l.indexOf=function(t,e){var n=this._storage,i=n[t],r=this.indices;if(i)for(var o=0,a=r.length;o<a;o++){var s=r[o];if(i[s]===e)return o}return-1},l.indexOfName=function(t){for(var e=this.indices,n=this._nameList,i=0,r=e.length;i<r;i++){var o=e[i];if(n[o]===t)return i}return-1},l.indexOfNearest=function(t,e,n){var i=this._storage,r=i[t];if(r){for(var o=Number.MAX_VALUE,a=-1,s=0,l=this.count();s<l;s++){var u=e-this.get(t,s,n),h=Math.abs(u);(h<o||h===o&&0<u)&&(o=h,a=s)}return a}return-1},l.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},l.getName=function(t){return this._nameList[this.indices[t]]||""},l.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},l.each=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),t=w.map(c(t),this.getDimension,this);var r=[],o=t.length,a=this.indices;i=i||this;for(var s=0;s<a.length;s++)if(0===o)e.call(i,s);else if(1===o)e.call(i,this.get(t[0],s,n),s);else{for(var l=0;l<o;l++)r[l]=this.get(t[l],s,n);r[l]=s,e.apply(i,r)}},l.filterSelf=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),t=w.map(c(t),this.getDimension,this);var r=[],o=[],a=t.length,s=this.indices;i=i||this;for(var l=0;l<s.length;l++){var u;if(1===a)u=e.call(i,this.get(t[0],l,n),l);else{for(var h=0;h<a;h++)o[h]=this.get(t[h],l,n);o[h]=l,u=e.apply(i,o)}u&&r.push(s[l])}return this.indices=r,this._extent={},this},l.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n,i),r},l.map=function(a,s,t,e){var n=v(this,a=w.map(c(a),this.getDimension,this)),l=n.indices=this.indices,u=n._storage,h=[];return this.each(a,function(){var t=arguments[arguments.length-1],e=s&&s.apply(this,arguments);if(null!=e){"number"==typeof e&&(h[0]=e,e=h);for(var n=0;n<e.length;n++){var i=a[n],r=u[i],o=l[t];r&&(r[o]=e[n])}}},t,e),n},l.downSample=function(t,e,n,i){for(var r=v(this,[t]),o=this._storage,a=r._storage,s=this.indices,l=r.indices=[],u=[],h=[],c=Math.floor(1/e),p=a[t],f=this.count(),d=0;d<o[t].length;d++)a[t][d]=o[t][d];for(var d=0;d<f;d+=c){f-d<c&&(c=f-d,u.length=c);for(var y=0;y<c;y++){var m=s[d+y];u[y]=p[m],h[y]=m}var g=n(u),m=h[i(u,g)||0];p[m]=g,l.push(m)}return r},l.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new r(this._rawData[t],e,e.ecModel)},l.diff=function(t){var e=this._idList,n=t&&t._idList;return new o(t?t.indices:[],this.indices,function(t){return n[t]||t+""},function(t){return e[t]||t+""})},l.getVisual=function(t){var e=this._visual;return e&&e[t]},l.setVisual=function(t,e){if(a(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},l.setLayout=function(t,e){if(a(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},l.getLayout=function(t){return this._layout[t]},l.getItemLayout=function(t){return this._itemLayouts[t]},l.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?w.extend(this._itemLayouts[t]||{},e):e},l.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},l.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};if(this._itemVisuals[t]=i,a(e))for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);else i[e]=n};var p=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex};l.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(p,e)),this._graphicEls[t]=e},l.getItemGraphicEl=function(t){return this._graphicEls[t]},l.eachItemGraphicEl=function(n,i){w.each(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},l.cloneShallow=function(){var t=w.map(this.dimensions,this.getDimensionInfo,this),e=new h(t,this.hostModel);return e._storage=this._storage,u(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},l.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.call(this,t)})},f.exports=h}).call(t,function(){return this}())},function(t,e){var n={};n="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:function(t){var e={},n={},i=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=t.match(/(iPad).*OS\s([\d_]+)/),a=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!o&&t.match(/(iPhone\sOS)\s([\d_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),u=l&&t.match(/TouchPad/),h=t.match(/Kindle\/([\d.]+)/),c=t.match(/Silk\/([\d._]+)/),p=t.match(/(BlackBerry).*Version\/([\d.]+)/),f=t.match(/(BB10).*Version\/([\d.]+)/),d=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),y=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),g=t.match(/Firefox\/([\d.]+)/),v=i&&t.match(/Mobile\//)&&!m,x=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,_=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),w=t.match(/Edge\/([\d.]+)/);return(n.webkit=!!i)&&(n.version=i[1]),r&&(e.android=!0,e.version=r[2]),s&&!a&&(e.ios=e.iphone=!0,e.version=s[2].replace(/_/g,".")),o&&(e.ios=e.ipad=!0,e.version=o[2].replace(/_/g,".")),a&&(e.ios=e.ipod=!0,e.version=a[3]?a[3].replace(/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),u&&(e.touchpad=!0),p&&(e.blackberry=!0,e.version=p[2]),f&&(e.bb10=!0,e.version=f[2]),d&&(e.rimtabletos=!0,e.version=d[2]),y&&(n.playbook=!0),h&&(e.kindle=!0,e.version=h[1]),c&&(n.silk=!0,n.version=c[1]),!c&&e.android&&t.match(/Kindle Fire/)&&(n.silk=!0),m&&(n.chrome=!0,n.version=m[1]),g&&(n.firefox=!0,n.version=g[1]),_&&(n.ie=!0,n.version=_[1]),v&&(t.match(/Safari/)||e.ios)&&(n.safari=!0),x&&(n.webview=!0),_&&(n.ie=!0,n.version=_[1]),w&&(n.edge=!0,n.version=w[1]),e.tablet=!!(o||y||r&&!t.match(/Mobile/)||g&&t.match(/Tablet/)||_&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||p||f||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||g&&t.match(/Mobile/)||_&&t.match(/Touch/))),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&10<=n.version)}}(navigator.userAgent),t.exports=n},function(t,e){var n=function(t){this.colorStops=t||[]};n.prototype={constructor:n,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t.exports=n},function(t,e,n){function l(t,e){var n=t+":"+e;if(h[n])return h[n];for(var i=(t+"").split("\n"),r=0,o=0,a=i.length;o<a;o++)r=Math.max(y.measureText(i[o],e).width,r);return p<c&&(c=0,h={}),c++,h[n]=r}function s(t,e,n,i){for(var r=0;;r++){var o=l(t,e);if(o<n||r>=i.maxIterations){t+=i.ellipsis;break}var a=0===r?u(t,n,i):Math.floor(t.length*n/o);if(a<i.minCharacters){t="";break}t=t.substr(0,a)}return t}function u(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++){var a=t.charCodeAt(r);i+=0<=a&&a<=127?n.ascCharWidth:n.cnCharWidth}return r}var h={},c=0,p=5e3,f=n(1),d=n(8),y={getWidth:l,getBoundingRect:function(t,e,n,i){var r=((t||"")+"").split("\n").length,o=l(t,e),a=l("国",e),s=new d(0,0,o,r*a);switch(s.lineHeight=a,i){case"bottom":case"alphabetic":s.y-=a;break;case"middle":s.y-=a/2}switch(n){case"end":case"right":s.x-=s.width;break;case"center":s.x-=s.width/2}return s},adjustTextPositionOnRect:function(t,e,n,i){var r=e.x,o=e.y,a=e.height,s=e.width,l=n.height,u=a/2-l/2,h="left";switch(t){case"left":r-=i,o+=u,h="right";break;case"right":r+=i+s,o+=u,h="left";break;case"top":r+=s/2,o-=i+l,h="center";break;case"bottom":r+=s/2,o+=a+i,h="center";break;case"inside":r+=s/2,o+=u,h="center";break;case"insideLeft":r+=i,o+=u,h="left";break;case"insideRight":r+=s-i,o+=u,h="right";break;case"insideTop":r+=s/2,o+=i,h="center";break;case"insideBottom":r+=s/2,o+=a-l-i,h="center";break;case"insideTopLeft":r+=i,o+=i,h="left";break;case"insideTopRight":r+=s-i,o+=i,h="right";break;case"insideBottomLeft":r+=i,o+=a-l-i;break;case"insideBottomRight":r+=s-i,o+=a-l-i,h="right"}return{x:r,y:o,textAlign:h,textBaseline:"top"}},ellipsis:function(t,e,n,i){if(!n)return"";i=f.defaults({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:l("国",e),ascCharWidth:l("a",e)},i,!0),n-=l(i.ellipsis);for(var r=(t+"").split("\n"),o=0,a=r.length;o<a;o++)r[o]=s(r[o],e,n,i);return r.join("\n")},measureText:function(t,e){var n=f.getContext();return n.font=e,n.measureText(t)}};t.exports=y},function(t,e,n){"use strict";function M(t){return-o<t&&t<o}function f(t){return o<t||t<-o}function _(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function v(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}var i=n(5),r=i.create,w=i.distSquare,T=Math.pow,A=Math.sqrt,o=1e-8,E=A(3),b=r(),P=r(),S=r();t.exports={cubicAt:_,cubicDerivativeAt:function(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)},cubicRootAt:function(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(M(h)&&M(c))M(s)?o[0]=0:0<=(S=-l/s)&&S<=1&&(o[f++]=S);else{var d=c*c-4*h*p;if(M(d)){var y=c/h,m=-y/2;0<=(S=-s/a+y)&&S<=1&&(o[f++]=S),0<=m&&m<=1&&(o[f++]=m)}else if(0<d){var g=A(d),v=h*s+1.5*a*(-c+g),x=h*s+1.5*a*(-c-g);v=v<0?-T(-v,1/3):T(v,1/3),x=x<0?-T(-x,1/3):T(x,1/3),0<=(S=(-s-(v+x))/(3*a))&&S<=1&&(o[f++]=S)}else{var _=(2*h*s-3*a*c)/(2*A(h*h*h)),w=Math.acos(_)/3,b=A(h),P=Math.cos(w),S=(-s-2*b*P)/(3*a),C=(m=(-s+b*(P+E*Math.sin(w)))/(3*a),(-s+b*(P-E*Math.sin(w)))/(3*a));0<=S&&S<=1&&(o[f++]=S),0<=m&&m<=1&&(o[f++]=m),0<=C&&C<=1&&(o[f++]=C)}}return f},cubicExtrema:function(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(M(a))f(o)&&0<=(h=-s/o)&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(M(u))r[0]=-o/(2*a);else if(0<u){var h,c=A(u),p=(-o-c)/(2*a);0<=(h=(-o+c)/(2*a))&&h<=1&&(r[l++]=h),0<=p&&p<=1&&(r[l++]=p)}}return l},cubicSubdivide:function(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i},cubicProjectPoint:function(t,e,n,i,r,o,a,s,l,u,h){var c,p,f,d,y,m=.005,g=1/0;b[0]=l,b[1]=u;for(var v=0;v<1;v+=.05)P[0]=_(t,n,r,a,v),P[1]=_(e,i,o,s,v),(d=w(b,P))<g&&(c=v,g=d);g=1/0;for(var x=0;x<32&&!(m<1e-4);x++)p=c-m,f=c+m,P[0]=_(t,n,r,a,p),P[1]=_(e,i,o,s,p),d=w(P,b),0<=p&&d<g?(c=p,g=d):(S[0]=_(t,n,r,a,f),S[1]=_(e,i,o,s,f),y=w(S,b),f<=1&&y<g?(c=f,g=y):m*=.5);return h&&(h[0]=_(t,n,r,a,c),h[1]=_(e,i,o,s,c)),A(g)},quadraticAt:v,quadraticDerivativeAt:function(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))},quadraticRootAt:function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(M(o))f(a)&&0<=(h=-s/a)&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(M(u))0<=(h=-a/(2*o))&&h<=1&&(r[l++]=h);else if(0<u){var h,c=A(u),p=(-a-c)/(2*o);0<=(h=(-a+c)/(2*o))&&h<=1&&(r[l++]=h),0<=p&&p<=1&&(r[l++]=p)}}return l},quadraticExtremum:function(t,e,n){var i=t+n-2*e;return 0==i?.5:(t-e)/i},quadraticSubdivide:function(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n},quadraticProjectPoint:function(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;b[0]=a,b[1]=s;for(var p=0;p<1;p+=.05)P[0]=v(t,n,r,p),P[1]=v(e,i,o,p),(m=w(b,P))<c&&(u=p,c=m);c=1/0;for(var f=0;f<32&&!(h<1e-4);f++){var d=u-h,y=u+h;P[0]=v(t,n,r,d),P[1]=v(e,i,o,d);var m=w(P,b);if(0<=d&&m<c)u=d,c=m;else{S[0]=v(t,n,r,y),S[1]=v(e,i,o,y);var g=w(S,b);y<=1&&g<c?(u=y,c=g):h*=.5}}return l&&(l[0]=v(t,n,r,u),l[1]=v(e,i,o,u)),A(c)}}},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(){var t=new n(6);return i.identity(t),t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(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},mul:function(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t},translate:function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t},rotate:function(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t},scale:function(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t},invert:function(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}};t.exports=i},function(t,e,n){function r(t,e){var n=a.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function o(t,e,n){return this.superClass.prototype[e].apply(t,n)}var a=n(1),i={},s="___EC__COMPONENT__CONTAINER___",l=i.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e};i.enableClassExtend=function(n,i){n.extend=function(t){var e=function(){i&&i.apply(this,arguments),n.apply(this,arguments)};return a.extend(e.prototype,t),e.extend=this.extend,e.superCall=r,e.superApply=o,a.inherits(e,this),e.superClass=this,e}},i.enableClassManagement=function(n,t){t=t||{};var r={};if(n.registerClass=function(t,e){if(e)if((e=l(e)).sub){if(e.sub!==s){var n=function(t){var e=r[t.main];return e&&e[s]||((e=r[t.main]={})[s]=!0),e}(e);n[e.sub]=t}}else{if(r[e.main])throw new Error(e.main+"exists.");r[e.main]=t}return t},n.getClass=function(t,e,n){var i=r[t];if(i&&i[s]&&(i=e?i[e]:null),n&&!i)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return i},n.getClassesByMainType=function(t){t=l(t);var n=[],e=r[t.main];return e&&e[s]?a.each(e,function(t,e){e!==s&&n.push(t)}):n.push(e),n},n.hasClass=function(t){return t=l(t),!!r[t.main]},n.getAllClassMainTypes=function(){var n=[];return a.each(r,function(t,e){n.push(e)}),n},n.hasSubTypes=function(t){t=l(t);var e=r[t.main];return e&&e[s]},n.parseClassType=l,t.registerWhenExtend){var i=n.extend;i&&(n.extend=function(t){var e=i.call(this,t);return n.registerClass(e,t.type)})}return n},i.setReadOnly=function(t,e){},t.exports=i},function(t,e,n){var s=Array.prototype.slice,i=n(1),r=i.indexOf,o=function(){this._$handlers={}};o.prototype={constructor:o,one:function(t,e,n){var i=this._$handlers;return e&&t&&(i[t]||(i[t]=[]),0<=r(i[t],t)||i[t].push({h:e,one:!0,ctx:n||this})),this},on:function(t,e,n){var i=this._$handlers;return e&&t&&(i[t]||(i[t]=[]),i[t].push({h:e,one:!1,ctx:n||this})),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!=e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){if(this._$handlers[t]){var e=arguments,n=e.length;3<n&&(e=s.call(e,1));for(var i=this._$handlers[t],r=i.length,o=0;o<r;){switch(n){case 1:i[o].h.call(i[o].ctx);break;case 2:i[o].h.call(i[o].ctx,e[1]);break;case 3:i[o].h.call(i[o].ctx,e[1],e[2]);break;default:i[o].h.apply(i[o].ctx,e)}i[o].one?(i.splice(o,1),r--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var e=arguments,n=e.length;4<n&&(e=s.call(e,1,e.length-1));for(var i=e[e.length-1],r=this._$handlers[t],o=r.length,a=0;a<o;){switch(n){case 1:r[a].h.call(i);break;case 2:r[a].h.call(i,e[1]);break;case 3:r[a].h.call(i,e[1],e[2]);break;default:r[a].h.apply(i,e)}r[a].one?(r.splice(a,1),o--):a++}}return this}},t.exports=o},function(t,e){function h(t){return(t=Math.round(t))<0?0:255<t?255:t}function c(t){return t<0?0:1<t?1:t}function l(t){return h(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function u(t){return c(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function s(t,e,n){return n<0?n+=1:1<n&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function p(t,e,n){return t+(e-t)*n}function f(t){if(t){var e=(t+="").replace(/ /g,"").toLowerCase();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var n=e.indexOf("("),i=e.indexOf(")");if(-1!==n&&i+1===e.length){var r=e.substr(0,n),o=e.substr(n+1,i-(n+1)).split(","),a=1;switch(r){case"rgba":if(4!==o.length)return;a=u(o.pop());case"rgb":if(3!==o.length)return;return[l(o[0]),l(o[1]),l(o[2]),a];case"hsla":if(4!==o.length)return;return o[3]=u(o[3]),d(o);case"hsl":if(3!==o.length)return;return d(o);default:return}}}else{if(4===e.length){var s=parseInt(e.substr(1),16);if(!(0<=s&&s<=4095))return;return[(3840&s)>>4|(3840&s)>>8,240&s|(240&s)>>4,15&s|(15&s)<<4,1]}if(7===e.length){var s=parseInt(e.substr(1),16);if(!(0<=s&&s<=16777215))return;return[(16711680&s)>>16,(65280&s)>>8,255&s,1]}}}}function d(t){var e=(parseFloat(t[0])%360+360)%360/360,n=u(t[1]),i=u(t[2]),r=i<=.5?i*(n+1):i+n-i*n,o=2*i-r,a=[h(255*s(o,r,e+1/3)),h(255*s(o,r,e)),h(255*s(o,r,e-1/3))];return 4===t.length&&(a[3]=t[3]),a}function o(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0==l)n=e=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),1<e&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function y(t,e,n){if(e&&e.length&&0<=t&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=f(e[r]),s=f(e[o]),l=i-r,u=m([h(p(a[0],s[0],l)),h(p(a[1],s[1],l)),h(p(a[2],s[2],l)),c(p(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function m(t,e){return"rgb"!==e&&"hsv"!==e&&"hsl"!==e||(t=t.slice(0,3)),e+"("+t.join(",")+")"}var g={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};t.exports={parse:f,lift:function(t,e){var n=f(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return m(n,4===n.length?"rgba":"rgb")}},toHex:function(t,e){var n=f(t);return n?((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1):void 0},fastMapToColor:function(t,e,n){if(e&&e.length&&0<=t&&t<=1){n=n||[0,0,0,0];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=h(p(a[0],s[0],l)),n[1]=h(p(a[1],s[1],l)),n[2]=h(p(a[2],s[2],l)),n[3]=h(p(a[3],s[3],l)),n}},mapToColor:y,mapIntervalToColor:function(t,e){if(!(2!==t.length||t[1]<t[0])){for(var n=y(t[0],e,!0),i=y(t[1],e,!0),r=[{color:n.color,offset:0}],o=i.value-n.value,a=Math.max(n.value,n.rightIndex),s=Math.min(i.value,i.leftIndex),l=a;0<o&&l<=s;l++)r.push({color:e[l],offset:(l-n.value)/o});return r.push({color:i.color,offset:1}),r}},modifyHSL:function(t,e,n,i){return(t=f(t))?(t=o(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:360<r?360:r)),null!=n&&(t[1]=u(n)),null!=i&&(t[2]=u(i)),m(d(t),"rgba")):void 0;var r},modifyAlpha:function(t,e){return(t=f(t))&&null!=e?(t[3]=c(e),m(t,"rgba")):void 0},stringify:m}},function(t,e,n){var i=n(124),r=n(37);n(125),n(123);var o=n(32),c=n(4),p=n(1),f=n(17),s={getScaleExtent:function(t,e){var n=t.scale,i=n.getExtent(),r=i[1]-i[0];if("ordinal"===n.type)return isFinite(r)?i:[0,0];var o=e.getMin?e.getMin():e.get("min"),a=e.getMax?e.getMax():e.get("max"),s=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),l=e.get("boundaryGap");p.isArray(l)||(l=[l||0,l||0]),l[0]=c.parsePercent(l[0],1),l[1]=c.parsePercent(l[1],1);var u=!0,h=!0;return null==o&&(o=i[0]-l[0]*r,u=!1),null==a&&(a=i[1]+l[1]*r,h=!1),"dataMin"===o&&(o=i[0]),"dataMax"===a&&(a=i[1]),s&&(0<o&&0<a&&!u&&(o=0),o<0&&a<0&&!h&&(a=0)),[o,a]},niceScaleExtent:function(t,e){var n=t.scale,i=s.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),o=null!=(e.getMax?e.getMax():e.get("max"));n.setExtent(i[0],i[1]),n.niceExtent(e.get("splitNumber"),r,o);var a=e.get("interval");null!=a&&n.setInterval&&n.setInterval(a)},createScaleByModel:function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new i(t.getCategories(),[1/0,-1/0]);case"value":return new r;default:return(o.getClass(e)||r).create(t)}},ifAxisCrossZero:function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(0<n&&0<i||n<0&&i<0)},getAxisLabelInterval:function(t,e,n,i){var r,o=0,a=0,s=1;40<e.length&&(s=Math.round(e.length/40));for(var l=0;l<t.length;l+=s){var u=t[l],h=f.getBoundingRect(e[l],n,"center","top");h[i?"x":"y"]+=u,h[i?"width":"height"]*=1.5,r?r.intersect(h)?(a++,o=Math.max(o,a)):(r.union(h),a=0):r=h.clone()}return 0===o&&1<s?s:o*s},getFormattedLabels:function(n,i){var r=n.scale,t=r.getTicksLabels(),e=r.getTicks();return"string"==typeof i?(i=function(e){return function(t){return e.replace("{value}",t)}}(i),p.map(t,i)):"function"==typeof i?p.map(e,function(t,e){return i("category"===n.type?r.getLabel(t):t,e)},this):t}};t.exports=s},function(t,e,n){"use strict";var l=n(3),u=n(8),i=l.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),r=l.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),o=l.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u);t.arc(n,l,a,Math.PI-u,2*Math.PI+u);var f=.6*a,d=.7*a;t.bezierCurveTo(n+h-c*f,l+s+p*f,n,i-d,n,i),t.bezierCurveTo(n,i-d,n-h+c*f,l+s+p*f,n-h,l+s),t.closePath()}}),a=l.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),s={line:l.Line,rect:l.Rect,roundRect:l.Rect,square:l.Rect,circle:l.Circle,diamond:r,pin:o,arrow:a,triangle:i},h={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},c={};for(var p in s)c[p]=new s[p];var f=l.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e){var n=e.symbolType,i=c[n];"none"!==e.symbolType&&(i=i||c[n="rect"],h[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape))}}),d=function(t){if("image"!==this.type){var e=this.style,n=this.shape;n&&"line"===n.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty()}},y={createSymbol:function(t,e,n,i,r,o){var a,s=0===t.indexOf("empty");return s&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(a=0===t.indexOf("image://")?new l.Image({style:{image:t.slice(8),x:e,y:n,width:i,height:r}}):0===t.indexOf("path://")?l.makePath(t.slice(7),{},new u(e,n,i,r)):new f({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=d,a.setColor(o),a}};t.exports=y},function(t,e,n){function i(){this.group=new a,this.uid=s.getUID("viewChart")}function o(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)o(t.childAt(n),e)}function r(t,e,n){if(null!=e.dataIndex){var i=t.getItemGraphicEl(e.dataIndex);o(i,n)}else if(e.name){var r=t.indexOfName(e.name),i=t.getItemGraphicEl(r);o(i,n)}else t.eachItemGraphicEl(function(t){o(t,n)})}var a=n(26),s=n(41),l=n(20),u=i.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){r(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){r(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){}};u.updateView=u.updateLayout=u.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},l.enableClassExtend(i),l.enableClassManagement(i,{registerWhenExtend:!0}),t.exports=i},function(t,e,n){var o=n(1),i=n(55),u=n(8),a=function(t){for(var e in t=t||{},i.call(this,t),t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);0<=i&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,r=o.indexOf(i,t);return r<0||(i.splice(r,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),e&&e.refresh()),this},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToMap(n),n instanceof a&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromMap(n.id),n instanceof a&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new u(0,0,0,0),i=t||this._children,r=[],o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(n.copy(s),n.applyTransform(l),(e=e||n.clone()).union(n)):(e=e||s.clone()).union(s)}}return e||n}},o.inherits(a,i),t.exports=a},function(t,e,n){"use strict";var b=n(18),m=n(5),g=n(64),v=n(8),x={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_=[],w=[],P=[],S=[],C=Math.min,M=Math.max,T=Math.cos,A=Math.sin,E=Math.sqrt,s="undefined"!=typeof Float32Array,i=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};i.prototype={constructor:i,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,getContext:function(){return this._ctx},beginPath:function(t){return(this._ctx=t)&&t.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(x.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){return this.addData(x.L,t,e),this._ctx&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),this._xi=t,this._yi=e,this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(x.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(x.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(x.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=T(r)*n+t,this._xi=A(r)*n+t,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(x.R,t,e,n,i),this},closePath:function(){this.addData(x.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length==e||!s||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();s&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},addData:function(t){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,h=t-l,c=e-u,p=E(h*h+c*c),f=l,d=u,y=a.length;for(o<0&&(o=r+o),f-=(o%=r)*(h/=p),d-=o*(c/=p);0<=h&&f<=t||h<0&&t<f;)i=this._dashIdx,n=a[i],f+=h*n,d+=c*n,this._dashIdx=(i+1)%y,0<h&&f<l||h<0&&l<f||s[i%2?"moveTo":"lineTo"](0<=h?C(f,t):M(f,t),0<=c?C(d,e):M(d,e));h=f-t,c=d-e,this._dashOffset=-E(h*h+c*c)},_dashedBezierTo:function(t,e,n,i,r,o){var a,s,l,u,h,c=this._dashSum,p=this._dashOffset,f=this._lineDash,d=this._ctx,y=this._xi,m=this._yi,g=b.cubicAt,v=0,x=this._dashIdx,_=f.length,w=0;for(p<0&&(p=c+p),p%=c,a=0;a<1;a+=.1)s=g(y,t,n,r,a+.1)-g(y,t,n,r,a),l=g(m,e,i,o,a+.1)-g(m,e,i,o,a),v+=E(s*s+l*l);for(;x<_&&(w+=f[x],!(p<w));x++);for(a=(w-p)/v;a<=1;)u=g(y,t,n,r,a),h=g(m,e,i,o,a),x%2?d.moveTo(u,h):d.lineTo(u,h),a+=f[x]/v,x=(x+1)%_;x%2!=0&&d.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-E(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,s&&(this.data=new Float32Array(t)))},getBoundingRect:function(){_[0]=_[1]=P[0]=P[1]=Number.MAX_VALUE,w[0]=w[1]=S[0]=S[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,o=0;o<t.length;){var a=t[o++];switch(1==o&&(e=t[o],n=t[o+1],i=e,r=n),a){case x.M:i=t[o++],r=t[o++],e=i,n=r,P[0]=i,P[1]=r,S[0]=i,S[1]=r;break;case x.L:g.fromLine(e,n,t[o],t[o+1],P,S),e=t[o++],n=t[o++];break;case x.C:g.fromCubic(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],P,S),e=t[o++],n=t[o++];break;case x.Q:g.fromQuadratic(e,n,t[o++],t[o++],t[o],t[o+1],P,S),e=t[o++],n=t[o++];break;case x.A:var s=t[o++],l=t[o++],u=t[o++],h=t[o++],c=t[o++],p=t[o++]+c,f=(t[o++],1-t[o++]);1==o&&(i=T(c)*u+s,r=A(c)*h+l),g.fromArc(s,l,u,h,c,p,f,P,S),e=T(p)*u+s,n=A(p)*h+l;break;case x.R:i=e=t[o++],r=n=t[o++];var d=t[o++],y=t[o++];g.fromLine(i,r,i+d,r+y,P,S);break;case x.Z:e=i,n=r}m.min(_,_,P),m.max(w,w,S)}return 0===o&&(_[0]=_[1]=w[0]=w[1]=0),new v(_[0],_[1],w[0]-_[0],w[1]-_[1])},rebuildPath:function(t){for(var e=this.data,n=0;n<this._len;){var i=e[n++];switch(i){case x.M:t.moveTo(e[n++],e[n++]);break;case x.L:t.lineTo(e[n++],e[n++]);break;case x.C:t.bezierCurveTo(e[n++],e[n++],e[n++],e[n++],e[n++],e[n++]);break;case x.Q:t.quadraticCurveTo(e[n++],e[n++],e[n++],e[n++]);break;case x.A:var r=e[n++],o=e[n++],a=e[n++],s=e[n++],l=e[n++],u=e[n++],h=e[n++],c=e[n++],p=s<a?a:s,f=s<a?1:a/s,d=s<a?s/a:1,y=.001<Math.abs(a-s);y?(t.translate(r,o),t.rotate(h),t.scale(f,d),t.arc(0,0,p,l,l+u,1-c),t.scale(1/f,1/d),t.rotate(-h),t.translate(-r,-o)):t.arc(r,o,p,l,l+u,1-c);break;case x.R:t.rect(e[n++],e[n++],e[n++],e[n++]);break;case x.Z:t.closePath()}}}},i.CMD=x,t.exports=i},function(t,e){"use strict";function n(){this._coordinateSystems=[]}var o={};n.prototype={constructor:n,create:function(t,e){var n=[];for(var i in o){var r=o[i].create(t,e);r&&(n=n.concat(r))}this._coordinateSystems=n},update:function(t,e){for(var n=this._coordinateSystems,i=0;i<n.length;i++)n[i].update&&n[i].update(t,e)}},n.register=function(t,e){o[t]=e},n.get=function(t){return o[t]},t.exports=n},function(t,e){"use strict";var n={};t.exports={register:function(t,e){n[t]=e},get:function(t){return n[t]}}},function(t,e,n){var a=n(1);t.exports=function(o){for(var t=0;t<o.length;t++)o[t][1]||(o[t][1]=o[t][0]);return function(t){for(var e={},n=0;n<o.length;n++){var i=o[n][1];if(!(t&&0<=a.indexOf(t,i))){var r=this.getShallow(i);null!=r&&(e[o[n][0]]=r)}}return e}}},function(t,e,n){function l(t,e){for(var n=0,i=t.length;n<i;n++){var r=u(t[n]);if(!h.isArray(r))return!1;var r=r[e];if(null!=r&&isFinite(r))return!1;if(h.isString(r)&&"-"!==r)return!0}return!1}function u(t){return h.isArray(t)?t:h.isObject(t)?t.value:t}var h=n(1);t.exports=function(t,e,n,i){if(!e)return t;var r=u(e[0]),o=h.isArray(r)&&r.length||1;n=n||[],i=i||"extra";for(var a=0;a<o;a++)if(!t[a]){var s=n[a]||i+(a-n.length);t[a]=l(e,a)?{type:"ordinal",name:s}:s}return t}},function(t,e,n){function i(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var r=n(20),o=i.prototype;o.parse=function(t){return t},o.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},o.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},o.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},o.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},o.getExtent=function(){return this._extent.slice()},o.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},o.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;n<e.length;n++)t.push(this.getLabel(e[n]));return t},r.enableClassExtend(i),r.enableClassManagement(i,{registerWhenExtend:!0}),t.exports=i},function(t,e,n){"use strict";function a(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}var i=n(21),r="undefined"!=typeof window&&!!window.addEventListener,o=r?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};t.exports={normalizeEvent:function(t,e){if(null!=(e=e||window.event).zrX)return e;var n=e.type;if(n&&0<=n.indexOf("touch")){var i="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];if(i){var r=a(t);e.zrX=i.clientX-r.left,e.zrY=i.clientY-r.top}}else{var o=a(t);e.zrX=e.clientX-o.left,e.zrY=e.clientY-o.top,e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3}return e},addEventListener:function(t,e,n){r?t.addEventListener(e,n):t.attachEvent("on"+e,n)},removeEventListener:function(t,e,n){r?t.removeEventListener(e,n):t.detachEvent("on"+e,n)},stop:o,Dispatcher:i}},function(t,e,n){"use strict";var i=n(3),r=n(1);n(51),n(96),n(2).extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new i.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})},function(t,e,n){function i(t){for(var e in t=t||{},a.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new o(t.style),this._rect=null,this.__clipPaths=[]}var r=n(1),o=n(142),a=n(55),s=n(66);i.prototype={constructor:i,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this}},r.inherits(i,a),r.mixin(i,s),t.exports=i},function(t,e,n){"use strict";function y(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function c(t){return"category"!==t&&"time"!==t}function p(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function m(t,e){var n=[];if(t&&t.categoryAxisModel){var i=t.categoryAxisModel.getCategories();if(i){var r=e.length;if(x.isArray(e[0])&&1<e[0].length){n=[];for(var o=0;o<r;o++)n[o]=i[e[o][t.categoryIndex||0]]}else n=i.slice(0)}}return n}var g=n(14),v=n(31),x=n(1),i=n(7),_=n(28),w=i.getDataItemValue,b=i.converDataValue,P={cartesian2d:function(t,e,n){var i=n.getComponent("xAxis",e.get("xAxisIndex")),r=n.getComponent("yAxis",e.get("yAxisIndex")),o=i.get("type"),a=r.get("type"),s=[{name:"x",type:p(o),stackable:c(o)},{name:"y",type:p(a),stackable:c(a)}],l="category"===o;return v(s,t,["x","y","z"]),{dimensions:s,categoryIndex:l?0:1,categoryAxisModel:l?i:"category"===a?r:null}},polar:function(t,e,n){var i=e.get("polarIndex")||0,r=function(t){return t.get("polarIndex")===i},o=n.findComponents({mainType:"angleAxis",filter:r})[0],a=n.findComponents({mainType:"radiusAxis",filter:r})[0],s=a.get("type"),l=o.get("type"),u=[{name:"radius",type:p(s),stackable:c(s)},{name:"angle",type:p(l),stackable:c(l)}],h="category"===l;return v(u,t,["radius","angle","value"]),{dimensions:u,categoryIndex:h?1:0,categoryAxisModel:h?o:"category"===s?a:null}},geo:function(t,e,n){return{dimensions:v([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};t.exports=function(t,e,n){t=t||[];var i=e.get("coordinateSystem"),r=P[i],o=_.get(i),a=r&&r(t,e,n),s=a&&a.dimensions;s||(s=o&&o.dimensions||["x","y"],s=v(s,t,s.concat(["value"])));var l,u,h=a&&a.categoryAxisModel,c="ordinal"===s[0].type?0:"ordinal"===s[1].type?1:-1,p=new g(s,e),f=m(a,t),d=h&&(null!=(u=y(t))&&!x.isArray(w(u)))?function(t,e,n,i){return i===c?n:b(w(t),s[i])}:function(t,e,n,i){var r=w(t),o=b(r&&r[i],s[i]);return c===i&&"string"==typeof o&&(l=l||h.getCategories(),(o=x.indexOf(l,o))<0&&!isNaN(o)&&(o=+o)),o};return p.initData(t,f,d),p}},function(t,e,n){var s=n(4),i=n(9),r=n(32),l=Math.floor,u=Math.ceil,o=r.extend({type:"interval",_interval:0,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,e=this._extent,n=[];if(t){var i=this._niceExtent;e[0]<i[0]&&n.push(e[0]);for(var r=i[0];r<=i[1];)if(n.push(r),r=s.round(r+t),1e4<n.length)return[];e[1]>i[1]&&n.push(e[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;n<e.length;n++)t.push(this.getLabel(e[n]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||5;var e=this._extent,n=e[1]-e[0];if(isFinite(n)){n<0&&(n=-n,e.reverse());var i=s.nice(n/t,!0),r=[s.round(u(e[0]/i)*i),s.round(l(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t,e,n){var i=this._extent;if(i[0]===i[1])if(0!==i[0]){var r=i[0]/2;i[0]-=r,i[1]+=r}else i[1]=1;var o=i[1]-i[0];isFinite(o)||(i[0]=0,i[1]=1),this.niceTicks(t);var a=this._interval;e||(i[0]=s.round(l(i[0]/a)*a)),n||(i[1]=s.round(u(i[1]/a)*a))}});o.create=function(){return new o},t.exports=o},function(t,e,n){function i(t){this.group=new c.Group,this._symbolCtor=t||r}function h(t,e,n){var i=t.getItemLayout(e);return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(n&&n(e))&&"none"!==t.getItemVisual(e,"symbol")}var c=n(3),r=n(47),o=i.prototype;o.updateData=function(r,o){var a=this.group,s=r.hostModel,l=this._data,u=this._symbolCtor;r.diff(l).add(function(t){var e=r.getItemLayout(t);if(h(r,t,o)){var n=new u(r,t);n.attr("position",e),r.setItemGraphicEl(t,n),a.add(n)}}).update(function(t,e){var n=l.getItemGraphicEl(e),i=r.getItemLayout(t);return h(r,t,o)?(n?(n.updateData(r,t),c.updateProps(n,{position:i},s)):(n=new u(r,t)).attr("position",i),a.add(n),void r.setItemGraphicEl(t,n)):void a.remove(n)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&e.fadeOut(function(){a.remove(e)})}).execute(),this._data=r},o.updateLayout=function(){var n=this._data;n&&n.eachItemGraphicEl(function(t,e){t.attr("position",n.getItemLayout(e))})},o.remove=function(t){var e=this.group,n=this._data;n&&(t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},t.exports=i},function(t,e,n){function r(e){var n={};return h(["start","end","startValue","endValue"],function(t){n[t]=e[t]}),n}function i(t,e,n,i){null!=n[e]&&null==n[t]&&(i[t]=null)}var s=n(1),o=n(15),a=n(2),l=n(7),u=n(167),h=s.each,c=l.eachAxisDim,p=a.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,angleAxisIndex:null,radiusAxisIndex:null,filterMode:"filter",throttle:100,start:0,end:100,startValue:null,endValue:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel;var i=r(t);this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=r(t);s.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;o.canvasSupported||(e.realtime=!1),i("start","startValue",t,e),i("end","endValue",t,e),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var a=this._axisProxies;this.eachTargetAxis(function(t,e,n,i){var r=this.dependentModels[t.axis][e],o=r.__dzAxisProxy||(r.__dzAxisProxy=new u(t.name,e,this,i));a[t.name+"_"+e]=o},this)},_resetTarget:function(){var n=this.option,t=this._judgeAutoMode();c(function(t){var e=t.axisIndex;n[e]=l.normalizeToArray(n[e])},this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,n=!1;c(function(t){null!=e[t.axisIndex]&&(n=!0)},this);var t=e.orient;return null==t&&n?"orient":n?void 0:(null==t&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var o=!0,t=this.get("orient",!0),a=this.option;if(o){var e="vertical"===t?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[e.axis].length&&(a[e.axisIndex]=[0],o=!1)}o&&c(function(t){if(o){var e=[],n=this.dependentModels[t.axis];if(n.length&&!e.length)for(var i=0,r=n.length;i<r;i++)"category"===n[i].get("type")&&e.push(i);(a[t.axisIndex]=e).length&&(o=!1)}},this),o&&this.ecModel.eachSeries(function(i){this._isSeriesHasAllAxesTypeOf(i,"value")&&c(function(t){var e=a[t.axisIndex],n=i.get(t.axisIndex);s.indexOf(e,n)<0&&e.push(n)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(t){e=e||t.name},this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(i,r){var o=!0;return c(function(t){var e=i.get(t.axisIndex),n=this.dependentModels[t.axis][e];n&&n.get("type")===r||(o=!1)},this),o},getFirstTargetAxisModel:function(){var n;return c(function(t){if(null==n){var e=this.get(t.axisIndex);e.length&&(n=this.dependentModels[t.axis][e[0]])}},this),n},eachTargetAxis:function(n,i){var r=this.ecModel;c(function(e){h(this.get(e.axisIndex),function(t){n.call(i,e,t,this,r)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(e){h(["start","end","startValue","endValue"],function(t){this.option[t]=e[t]},this)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]}});t.exports=p},function(t,e,n){var i=n(54);t.exports=i.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetInfo:function(){function a(t,e,n,i){for(var r,o=0;o<n.length;o++)if(n[o].model===t){r=n[o];break}r||n.push(r={model:t,axisModels:[],coordIndex:i}),r.axisModels.push(e)}var t=this.dataZoomModel,s=this.ecModel,l=[],u=[],h=[];return t.eachTargetAxis(function(t,e){var n=s.getComponent(t.axis,e);if(n){h.push(n);var i=n.get("gridIndex"),r=n.get("polarIndex");if(null!=i){var o=s.getComponent("grid",i);a(o,n,l,i)}else if(null!=r){var o=s.getComponent("polar",r);a(o,n,u,r)}}},this),{cartesians:l,polars:u,axisModels:h}}})},function(t,e,n){var d=n(1),i=n(20),a=i.parseClassType,r=0,o={getUID:function(t){return[t||"",r++,Math.random()].join("_")},enableSubTypeDefaulter:function(r){var o={};return r.registerSubTypeDefaulter=function(t,e){t=a(t),o[t.main]=e},r.determineSubType=function(t,e){var n=e.type;if(!n){var i=a(t).main;r.hasSubTypes(t)&&o[i]&&(n=o[i](e))}return n},r},enableTopologicalTravel:function(t,s){function f(r){var o={},a=[];return d.each(r,function(n){var i=l(o,n),t=i.originalDeps=s(n),e=function(t,e){var n=[];return d.each(t,function(t){0<=d.indexOf(e,t)&&n.push(t)}),n}(t,r);i.entryCount=e.length,0===i.entryCount&&a.push(n),d.each(e,function(t){d.indexOf(i.predecessor,t)<0&&i.predecessor.push(t);var e=l(o,t);d.indexOf(e.successor,t)<0&&e.successor.push(n)})}),{graph:o,noEntryList:a}}function l(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,e,n,i){function r(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function o(t){u[t]=!0,r(t)}if(t.length){var a=f(e),s=a.graph,l=a.noEntryList,u={};for(d.each(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=s[h],p=!!u[h];p&&(n.call(i,h,c.originalDeps.slice()),delete u[h]),d.each(c.successor,p?o:r)}d.each(u,function(){throw new Error("Circle dependency may exists")})}}}};t.exports=o},function(t,e){var n=1;"undefined"!=typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var i={debugMode:0,devicePixelRatio:n};t.exports=i},function(t,e,n){function o(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}var i=n(4),a=i.linearMap,r=n(1),s=[0,1],l=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};l.prototype={constructor:l,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return n<=t&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&o(n=n.slice(),i.count()),a(t,s,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&o(n=n.slice(),i.count());var r=a(t,n,s,e);return this.scale.scale(r)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],n=0;n<t.length;n++)e.push(t[n][0]);return t[n-1]&&e.push(t[n-1][1]),e}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),n=[],i=0;i<e.length;i++)t=e[i],n.push((t[0]+t[1])/2);return n}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this.getExtent(),e=[],n=this.scale.count(),i=t[0],r=t[1],o=r-i,a=0;a<n;a++)e.push([o*a/n+i,o*(a+1)/n+i]);return e},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n}},t.exports=l},function(t,e){t.exports=function(t,e,n,a,i){a.eachRawSeriesByType(t,function(i){var r=i.getData(),t=i.get("symbol")||e,o=i.get("symbolSize");r.setVisual({legendSymbol:n||t,symbol:t,symbolSize:o}),a.isSeriesFiltered(i)||("function"==typeof o&&r.each(function(t){var e=i.getRawValue(t),n=i.getDataParams(t);r.setItemVisual(t,"symbolSize",o(e,n))}),r.each(function(t){var e=r.getItemModel(t),n=e.get("symbol",!0),i=e.get("symbolSize",!0);null!=n&&r.setItemVisual(t,"symbol",n),null!=i&&r.setItemVisual(t,"symbolSize",i)}))})}},function(t,e,n){var i=n(42);t.exports=function(){if(0!==i.debugMode)if(1==i.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(1<i.debugMode)for(var t in arguments)console.log(arguments[t])}},function(t,e,n){function i(t){r.call(this,t)}var r=n(35),o=n(8),a=n(1),f=n(60),s=n(140),d=new s(50);i.prototype={constructor:i,type:"image",brush:function(t){var e,n=this.style,i=n.image;if(!(e="string"==typeof i?this._image:i)&&i){var r=d.get(i);if(!r)return(e=new Image).onload=function(){e.onload=null;for(var t=0;t<r.pending.length;t++)r.pending[t].dirty()},r={image:e,pending:[this]},e.src=i,d.put(i,r),void(this._image=e);if(e=r.image,!(this._image=e).width||!e.height)return void r.pending.push(this)}if(e){var o=n.width||e.width,a=n.height||e.height,s=n.x||0,l=n.y||0;if(!e.width||!e.height)return;if(t.save(),n.bind(t),this.setTransform(t),n.r&&(t.beginPath(),f.buildPath(t,n),t.clip()),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(e,u,h,n.sWidth,n.sHeight,s,l,o,a)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=o-u,p=a-h;t.drawImage(e,u,h,c,p,s,l,o,a)}else t.drawImage(e,s,l,o,a);null==n.width&&(n.width=o),null==n.height&&(n.height=a),null!=n.text&&this.drawRectText(t,this.getBoundingRect()),t.restore()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new o(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(i,r),t.exports=i},function(t,e,n){function w(t){return b.isArray(t)||(t=[+t,+t]),t}function i(t,e){P.Group.call(this),this.updateData(t,e)}function s(t,e){this.parent.drift(t,e)}var b=n(1),l=n(24),P=n(3),S=n(4),r=i.prototype;r._createSymbol=function(t,e,n){this.removeAll();var i=e.hostModel,r=e.getItemVisual(n,"color"),o=l.createSymbol(t,-.5,-.5,1,1,r);o.attr({style:{strokeNoScale:!0},z2:100,culling:!0,scale:[0,0]}),o.drift=s;var a=w(e.getItemVisual(n,"symbolSize"));P.initProps(o,{scale:a},i),this._symbolType=t,this.add(o)},r.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},r.getScale=function(){return this.childAt(0).scale},r.highlight=function(){this.childAt(0).trigger("emphasis")},r.downplay=function(){this.childAt(0).trigger("normal")},r.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},r.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},r.updateData=function(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.hostModel,r=w(t.getItemVisual(e,"symbolSize"));if(n!==this._symbolType)this._createSymbol(n,t,e);else{var o=this.childAt(0);P.updateProps(o,{scale:r},i)}this._updateCommon(t,e,r),this._seriesModel=i};var C=["itemStyle","normal"],M=["itemStyle","emphasis"],T=["label","normal"],A=["label","emphasis"];r._updateCommon=function(t,e,n){var i=this.childAt(0),r=t.hostModel,o=t.getItemModel(e),a=o.getModel(C),s=t.getItemVisual(e,"color"),l=i.style,u=o.getModel(M).getItemStyle();i.rotation=o.getShallow("symbolRotate")*Math.PI/180||0;var h=o.getShallow("symbolOffset");if(h){var c=i.position;c[0]=S.parsePercent(h[0],n[0]),c[1]=S.parsePercent(h[1],n[1])}i.setColor(s),b.extend(l,a.getItemStyle(["color"]));var p=t.getItemVisual(e,"opacity");null!=p&&(l.opacity=p);for(var f,d=o.getModel(T),y=o.getModel(A),m=t.dimensions.slice(),g=m.pop();"ordinal"===(f=t.getDimensionInfo(g).type)||"time"===f;)g=m.pop();d.get("show")?(P.setText(l,d,s),l.text=b.retrieve(r.getFormattedLabel(e,"normal"),t.get(g,e))):l.text="",y.getShallow("show")?(P.setText(u,y,s),u.text=b.retrieve(r.getFormattedLabel(e,"emphasis"),t.get(g,e))):u.text="";var v=w(t.getItemVisual(e,"symbolSize"));if(i.off("mouseover").off("mouseout").off("emphasis").off("normal"),P.setHoverStyle(i,u),o.getShallow("hoverAnimation")){var x=function(){var t=v[1]/v[0];this.animateTo({scale:[Math.max(1.1*v[0],v[0]+3),Math.max(1.1*v[1],v[1]+3*t)]},400,"elasticOut")},_=function(){this.animateTo({scale:v},400,"elasticOut")};i.on("mouseover",x).on("mouseout",_).on("emphasis",x).on("normal",_)}},r.fadeOut=function(t){var e=this.childAt(0);e.style.text="",P.updateProps(e,{scale:[0,0]},this._seriesModel,t)},b.inherits(i,P.Group),t.exports=i},function(t,e,n){function C(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function M(t,e,n){var i,r,o=p(e-t.rotation);return i=f(o)?(r=0<n?"top":"bottom","center"):f(o-E)?(r=0<n?"bottom":"top","center"):(r="middle",0<o&&o<E?0<n?"right":"left":0<n?"left":"right"),{rotation:o,textAlign:i,verticalAlign:r}}var i=n(1),T=n(3),A=n(12),r=n(4),p=r.remRadian,f=r.isRadianAroundZero,E=Math.PI,o=function(t,e){this.opt=e,this.axisModel=t,i.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new T.Group({position:e.position.slice(),rotation:e.rotation})};o.prototype={constructor:o,hasBuilder:function(t){return!!a[t]},add:function(t){a[t].call(this)},getGroup:function(){return this.group}};var a={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent();this.group.add(new T.Line({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:i.extend({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.axisLineSilent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,n=t.getModel("axisTick"),i=this.opt,r=n.getModel("lineStyle"),o=n.get("length"),a=c(n,i.labelInterval),s=e.getTicksCoords(),l=[],u=0;u<s.length;u++)if(!I(e,u,a)){var h=s[u];l.push(new T.Line(T.subPixelOptimizeLine({shape:{x1:h,y1:0,x2:h,y2:i.tickDirection*o},style:{lineWidth:r.get("width")},silent:!0})))}this.group.add(T.mergePath(l,{style:r.getLineStyle(),z2:2,silent:!0}))}},axisLabel:function(){function t(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();return n&&i?(n.applyTransform(t.getLocalTransform()),i.applyTransform(e.getLocalTransform()),n.intersect(i)):void 0}var e=this.axisModel;if(e.get("axisLabel.show")){var n=this.opt,i=e.axis,r=e.getModel("axisLabel"),o=r.getModel("textStyle"),a=r.get("margin"),s=i.scale.getTicks(),l=e.getFormattedLabels(),u=n.labelRotation;null==u&&(u=r.get("rotate")||0);for(var h=M(n,u=u*E/180,n.labelDirection),c=e.get("data"),p=[],f=e.get("silent"),d=0;d<s.length;d++)if(!I(i,d,n.labelInterval)){var y=o;c&&c[d]&&c[d].textStyle&&(y=new A(c[d].textStyle,o,e.ecModel));var m=y.getTextColor(),g=i.dataToCoord(s[d]),v=[g,n.labelOffset+n.labelDirection*a],x=i.scale.getLabel(s[d]),_=new T.Text({style:{text:l[d],textAlign:y.get("align",!0)||h.textAlign,textVerticalAlign:y.get("baseline",!0)||h.verticalAlign,textFont:y.getFont(),fill:"function"==typeof m?m(x):m},position:v,rotation:h.rotation,silent:f,z2:10});_.eventData=C(e),_.eventData.targetType="axisLabel",_.eventData.value=x,p.push(_),this.group.add(_)}if("category"!==i.type){if(e.getMin?e.getMin():e.get("min")){var w=p[0],b=p[1];t(w,b)&&(w.ignore=!0)}if(e.getMax?e.getMax():e.get("max")){var P=p[p.length-1],S=p[p.length-2];t(S,P)&&(P.ignore=!0)}}}},axisName:function(){var t=this.opt,e=this.axisModel,n=this.opt.axisName;if(null==n&&(n=e.get("name")),n){var i,r=e.get("nameLocation"),o=t.nameDirection,a=e.getModel("nameTextStyle"),s=e.get("nameGap")||0,l=this.axisModel.axis.getExtent(),u=l[0]>l[1]?-1:1,h=["start"===r?l[0]-u*s:"end"===r?l[1]+u*s:(l[0]+l[1])/2,"middle"===r?t.labelOffset+o*s:0];i="middle"===r?M(t,t.rotation,o):function(t,e,n){var i,r,o=p(-t.rotation),a=n[0]>n[1],s="start"===e&&!a||"start"!==e&&a;return i=f(o-E/2)?(r=s?"bottom":"top","center"):f(o-1.5*E)?(r=s?"top":"bottom","center"):(r="middle",o<1.5*E&&E/2<o?s?"left":"right":s?"right":"left"),{rotation:o,textAlign:i,verticalAlign:r}}(t,r,l);var c=new T.Text({style:{text:n,textFont:a.getFont(),fill:a.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:i.textAlign,textVerticalAlign:i.verticalAlign},position:h,rotation:i.rotation,silent:e.get("silent"),z2:1});c.eventData=C(e),c.eventData.targetType="axisName",c.eventData.name=n,this.group.add(c)}}},I=o.ifIgnoreOnTick=function(t,e,n){var i,r=t.scale;return"ordinal"===r.type&&("function"==typeof n?(i=r.getTicks()[e],!n(i,r.getLabel(i))):e%(n+1))},c=o.getInterval=function(t,e){var n=t.get("interval");return null!=n&&"auto"!=n||(n=e),n};t.exports=o},function(t,e,n){function i(t){return r.isObject(t)&&null!=t.value?t.value:t}var r=n(1),o=n(23);t.exports={getFormattedLabels:function(){return o.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))},getCategories:function(){return"category"===this.get("type")&&r.map(this.get("data"),i)}}},function(t,e,n){"use strict";function i(t,e){return e.type||(e.data?"category":"value")}var r=n(10),o=n(1),a=n(61),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},getMin:function(){var t=this.option;return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this.option;return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},_resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});o.merge(s.prototype,n(49));var l={gridIndex:0};a("x",s,i,l),a("y",s,i,l),t.exports=s},function(t,e,n){function p(t,e,n){return n.getComponent("grid",t.get("gridIndex"))===e}function a(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this._model=t}var o=n(11),c=n(23),i=n(1),f=n(107),d=n(105),y=i.each,s=c.ifAxisCrossZero,l=c.niceScaleExtent;n(108);var r=a.prototype;r.type="grid",r.getRect=function(){return this._rect},r.update=function(t,e){function n(t){var e=r[t];for(var n in e){var i=e[n];if(i&&("category"===i.type||!s(i)))return!0}return!1}var r=this._axesMap;this._updateScale(t,this._model),y(r.x,function(t){l(t,t.model)}),y(r.y,function(t){l(t,t.model)}),y(r.x,function(t){n("y")&&(t.onZero=!1)}),y(r.y,function(t){n("x")&&(t.onZero=!1)}),this.resize(this._model,e)},r.resize=function(t,e){function n(){y(i,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?r.x:r.y)})}var r=o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var i=this._axesList;n(),t.get("containLabel")&&(y(i,function(t){if(!t.model.get("axisLabel.inside")){var e=function(t){var e,n=t.model,i=n.getFormattedLabels(),r=1,o=i.length;40<o&&(r=Math.ceil(o/40));for(var a=0;a<o;a+=r)if(!t.isLabelIgnored(a)){var s=n.getTextRect(i[a]);e?e.union(s):e=s}return e}(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}}),n())},r.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)return n[i];return n[e]}},r.getCartesian=function(t,e){var n="x"+t+"y"+e;return this._coordsMap[n]},r._initCartesian=function(a,s,t){function e(o){return function(t,e){if(p(t,a,s)){var n=t.get("position");"x"===o?("top"!==n&&"bottom"!==n&&(n="bottom"),l[n]&&(n="top"===n?"bottom":"top")):("left"!==n&&"right"!==n&&(n="left"),l[n]&&(n="left"===n?"right":"left")),l[n]=!0;var i=new d(o,c.createScaleByModel(t),[0,0],t.get("type"),n),r="category"===i.type;i.onBand=r&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.onZero=t.get("axisLine.onZero"),(t.axis=i).model=t,i.index=e,this._axesList.push(i),u[o][e]=i,h[o]++}}}var l={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},h={x:0,y:0};return s.eachComponent("xAxis",e("x"),this),s.eachComponent("yAxis",e("y"),this),h.x&&h.y?(this._axesMap=u,void y(u.x,function(r,o){y(u.y,function(t,e){var n="x"+o+"y"+e,i=new f(n);(i.grid=this)._coordsMap[n]=i,this._coordsList.push(i),i.addAxis(r),i.addAxis(t)},this)},this)):(this._axesMap={},void(this._axesList=[]))},r._updateScale=function(u,h){function c(e,n,t){y(t.coordDimToDataDim(n.dim),function(t){n.scale.unionExtent(e.getDataExtent(t,"ordinal"!==n.scale.type))})}i.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),u.eachSeries(function(t){if("cartesian2d"===t.get("coordinateSystem")){var e=t.get("xAxisIndex"),n=t.get("yAxisIndex"),i=u.getComponent("xAxis",e),r=u.getComponent("yAxis",n);if(!p(i,h,u)||!p(r,h,u))return;var o=this.getCartesian(e,n),a=t.getData(),s=o.getAxis("x"),l=o.getAxis("y");"list"===a.type&&(c(a,s,t),c(a,l,t))}},this)},a.create=function(r,i){var o=[];return r.eachComponent("grid",function(t,e){var n=new a(t,r,i);n.name="grid_"+e,n.resize(t,i),t.coordinateSystem=n,o.push(n)}),r.eachSeries(function(t){if("cartesian2d"===t.get("coordinateSystem")){var e=t.get("xAxisIndex"),n=r.getComponent("xAxis",e),i=o[n.get("gridIndex")];t.coordinateSystem=i.getCartesian(e,t.get("yAxisIndex"))}}),o},a.dimensions=f.prototype.dimensions,n(28).register("cartesian2d",a),t.exports=a},function(t,e){"use strict";function r(t){return t}function n(t,e,n,i){this._old=t,this._new=e,this._oldKeyGetter=n||r,this._newKeyGetter=i||r}function u(t,e,n){for(var i=0;i<t.length;i++){var r=n(t[i]),o=e[r];null==o?e[r]=i:(o.length||(e[r]=o=[o]),o.push(i))}}n.prototype={constructor:n,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n=this._oldKeyGetter,i=this._newKeyGetter,r={};for(u(t,{},n),u(e,r,i),l=0;l<t.length;l++){var o=n(t[l]),a=r[o];if(null!=a){var s=a.length;s?(1===s&&(r[o]=null),a=a.unshift()):r[o]=null,this._update&&this._update(a,l)}else this._remove&&this._remove(l)}for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];if(null==a)continue;if(a.length)for(var l=0,s=a.length;l<s;l++)this._add&&this._add(a[l]);else this._add&&this._add(a)}}},t.exports=n},function(t,e){t.exports=function(t,e,n){e.eachSeriesByType(t,function(t){var r=t.getData(),o=t.coordinateSystem,e=o.dimensions;r.each(e,function(t,e,n){var i;i=isNaN(t)||isNaN(e)?[NaN,NaN]:o.dataToPoint([t,e]),r.setItemLayout(n,i)},!0)})}},function(t,e,n){var i=n(26),r=n(41),o=n(20),a=function(){this.group=new i,this.uid=r.getUID("viewComponent")},s=a.prototype={constructor:a,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){}};s.updateView=s.updateLayout=s.updateVisual=function(t,e,n,i){},o.enableClassExtend(a),o.enableClassManagement(a,{registerWhenExtend:!0}),t.exports=a},function(t,e,n){"use strict";var i=n(58),r=n(21),o=n(77),a=n(154),s=n(1),l=function(t){o.call(this,t),r.call(this,t),a.call(this,t),this.id=t.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;(n=n||(this.transform=[1,0,0,1,0,0]))[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];(n=n||(this[t]=[]))[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),(this.clipPath=t).__zr=e,(t.__clipTarget=this).dirty()},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,a),s.mixin(l,o),s.mixin(l,r),t.exports=l},function(t,e,n){function r(t,e){return t[e]}function o(t,e,n){t[e]=n}function O(t,e,n){return(e-t)*n+t}function N(t,e,n){return.5<n?e:t}function k(t,e,n,i,r){var o=t.length;if(1==r)for(var a=0;a<o;a++)i[a]=O(t[a],e[a],n);else for(var s=t[0].length,a=0;a<o;a++)for(var l=0;l<s;l++)i[a][l]=O(t[a][l],e[a][l],n)}function z(t,e,n){var i=t.length,r=e.length;if(i!==r){var o=r<i;if(o)t.length=r;else for(var a=i;a<r;a++)t.push(1===n?e[a]:s.call(e[a]))}}function D(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;r<i;r++)if(t[r]!==e[r])return!1}else for(var o=t[0].length,r=0;r<i;r++)for(var a=0;a<o;a++)if(t[r][a]!==e[r][a])return!1;return!0}function F(t,e,n,i,r,o,a,s,l){var u=t.length;if(1==l)for(var h=0;h<u;h++)s[h]=G(t[h],e[h],n[h],i[h],r,o,a);else for(var c=t[0].length,h=0;h<u;h++)for(var p=0;p<c;p++)s[h][p]=G(t[h][p],e[h][p],n[h][p],i[h][p],r,o,a)}function G(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function a(t){if(B(t)){var e=t.length;if(B(t[0])){for(var n=[],i=0;i<e;i++)n.push(s.call(t[i]));return n}return s.call(t)}return t}function j(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function l(t,e,n,i,o){var a=t._getter,s=t._setter,l="spline"===e,u=i.length;if(u){var r,h=i[0].value,c=B(h),p=!1,f=!1,d=c&&B(h[0])?2:1;i.sort(function(t,e){return t.time-e.time}),r=i[u-1].time;for(var y=[],m=[],g=i[0].value,v=!0,x=0;x<u;x++){y.push(i[x].time/r);var _=i[x].value;if(c&&D(_,g,d)||!c&&_===g||(v=!1),"string"==typeof(g=_)){var w=q.parse(_);w?(_=w,p=!0):f=!0}m.push(_)}if(!v){if(c){for(var b=m[u-1],x=0;x<u-1;x++)z(m[x],b,d);z(a(t._target,o),b,d)}var P,S,C,M,T,A,E=0,I=0;if(p)var L=[0,0,0,0];var R=new V({target:t._target,life:r,loop:t._loop,delay:t._delay,onframe:function(t,e){var n;if(e<I){for(P=Math.min(E+1,u-1),n=P;0<=n&&!(y[n]<=e);n--);n=Math.min(n,u-2)}else{for(n=E;n<u&&!(y[n]>e);n++);n=Math.min(n-1,u-2)}I=e;var i=y[(E=n)+1]-y[n];if(0!=i)if(S=(e-y[n])/i,l)if(M=m[n],C=m[0===n?n:n-1],T=m[u-2<n?u-1:n+1],A=m[u-3<n?u-1:n+2],c)F(C,M,T,A,S,S*S,S*S*S,a(t,o),d);else{if(p)r=F(C,M,T,A,S,S*S,S*S*S,L,1),r=j(L);else{if(f)return N(M,T,S);r=G(C,M,T,A,S,S*S,S*S*S)}s(t,o,r)}else if(c)k(m[n],m[n+1],S,a(t,o),d);else{var r;if(p)k(m[n],m[n+1],S,L,1),r=j(L);else{if(f)return N(m[n],m[n+1],S);r=O(m[n],m[n+1],S)}s(t,o,r)}},ondestroy:n});return e&&"spline"!==e&&(R.easing=e),R}}}var V=n(132),q=n(22),i=n(1),B=i.isArrayLike,s=Array.prototype.slice,u=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||r,this._setter=i||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};u.prototype={when:function(t,e){var n=this._tracks;for(var i in e){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:a(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;n<e;n++)t[n].call(this)},start:function(t){var e,i=this,n=0,r=function(){--n||i._doneCallback()};for(var o in this._tracks){var a=l(this,t,r,this._tracks[o],o);a&&(this._clipList.push(a),n++,this.animation&&this.animation.addClip(a),e=a)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},t.exports=u},function(t,e){var n=2*Math.PI;t.exports={normalizeRadian:function(t){return(t%=n)<0&&(t+=n),t}}},function(t,e){var n=2311;t.exports=function(){return"zr_"+n++}},function(t,e,n){var p=n(144),f=n(143);t.exports={buildPath:function(t,e,n){var i=e.points,r=e.smooth;if(i&&2<=i.length){if(r&&"spline"!==r){var o=f(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===r&&(i=p(i,n)),t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}}},function(t,e){t.exports={buildPath:function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,u<n+i&&(n*=u/(a=n+i),i*=u/a),u<r+o&&(r*=u/(a=r+o),o*=u/a),h<i+r&&(i*=h/(a=i+r),r*=h/a),h<n+o&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.quadraticCurveTo(s+u,l,s+u,l+i),t.lineTo(s+u,l+h-r),0!==r&&t.quadraticCurveTo(s+u,l+h,s+u-r,l+h),t.lineTo(s+o,l+h),0!==o&&t.quadraticCurveTo(s,l+h,s,l+h-o),t.lineTo(s,l+n),0!==n&&t.quadraticCurveTo(s,l,s+n,l)}}},function(t,e,n){var i=n(72),l=n(1),r=n(10),u=n(11),o=["value","category","time","log"];t.exports=function(a,t,s,e){l.each(o,function(o){t.extend({type:a+"Axis."+o,mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?u.getLayoutParams(t):{},r=e.getTheme();l.merge(t,r.get(o+"Axis")),l.merge(t,this.getDefaultOption()),t.type=s(a,t),n&&u.mergeLayoutParam(t,i,n)},defaultOption:l.mergeAll([{},i[o+"Axis"],e],!0)})}),r.registerSubTypeDefaulter(a+"Axis",l.curry(s,a))}},function(t,e){t.exports=function(t,e){var r=e.findComponents({mainType:"legend"});r&&r.length&&e.eachSeriesByType(t,function(t){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),n=0;n<r.length;n++)if(!r[n].isSelected(e))return!1;return!0},this)},this)}},function(t,e){t.exports=function(t,e){var u=e.get("color"),h=0;e.eachRawSeriesByType(t,function(t){var a=t.get("color",!0),s=t.getRawData();if(!e.isSeriesFiltered(t)){var l=t.getData();l.each(function(t){var e=l.getItemModel(t),n=l.getRawIndex(t),i=l.getItemVisual(t,"color",!0);if(i)s.setItemVisual(n,"color",i);else{var r=a?a[n%a.length]:u[(n+h)%u.length],o=e.get("itemStyle.normal.color")||r;s.setItemVisual(n,"color",o),l.setItemVisual(t,"color",o)}})}h+=s.count()})}},function(t,e,n){var d=n(5),m=n(18),i={},g=Math.min,v=Math.max,y=Math.sin,x=Math.cos,_=d.create(),w=d.create(),b=d.create(),P=2*Math.PI;i.fromPoints=function(t,e,n){if(0!==t.length){var i,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(i=1;i<t.length;i++)r=t[i],o=g(o,r[0]),a=v(a,r[0]),s=g(s,r[1]),l=v(l,r[1]);e[0]=o,e[1]=s,n[0]=a,n[1]=l}},i.fromLine=function(t,e,n,i,r,o){r[0]=g(t,n),r[1]=g(e,i),o[0]=v(t,n),o[1]=v(e,i)};var S=[],C=[];i.fromCubic=function(t,e,n,i,r,o,a,s,l,u){var h,c=m.cubicExtrema,p=m.cubicAt,f=c(t,n,r,a,S);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,h=0;h<f;h++){var d=p(t,n,r,a,S[h]);l[0]=g(d,l[0]),u[0]=v(d,u[0])}for(f=c(e,i,o,s,C),h=0;h<f;h++){var y=p(e,i,o,s,C[h]);l[1]=g(y,l[1]),u[1]=v(y,u[1])}l[0]=g(t,l[0]),u[0]=v(t,u[0]),l[0]=g(a,l[0]),u[0]=v(a,u[0]),l[1]=g(e,l[1]),u[1]=v(e,u[1]),l[1]=g(s,l[1]),u[1]=v(s,u[1])},i.fromQuadratic=function(t,e,n,i,r,o,a,s){var l=m.quadraticExtremum,u=m.quadraticAt,h=v(g(l(t,n,r),1),0),c=v(g(l(e,i,o),1),0),p=u(t,n,r,h),f=u(e,i,o,c);a[0]=g(t,r,p),a[1]=g(e,o,f),s[0]=v(t,r,p),s[1]=v(e,o,f)},i.fromArc=function(t,e,n,i,r,o,a,s,l){var u=d.min,h=d.max,c=Math.abs(r-o);if(c%P<1e-4&&1e-4<c)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(_[0]=x(r)*n+t,_[1]=y(r)*i+e,w[0]=x(o)*n+t,w[1]=y(o)*i+e,u(s,_,w),h(l,_,w),(r%=P)<0&&(r+=P),(o%=P)<0&&(o+=P),o<r&&!a?o+=P:r<o&&a&&(r+=P),a){var p=o;o=r,r=p}for(var f=0;f<o;f+=Math.PI/2)r<f&&(b[0]=x(f)*n+t,b[1]=y(f)*i+e,u(s,b,s),h(l,b,l))},t.exports=i},function(t,e,n){var i=n(35),r=n(1),c=n(17),o=function(t){i.call(this,t)};o.prototype={constructor:o,type:"text",brush:function(t){var e=this.style,n=e.x||0,i=e.y||0,r=e.text,o=e.fill,a=e.stroke;if(null!=r&&(r+=""),r){if(t.save(),this.style.bind(t),this.setTransform(t),o&&(t.fillStyle=o),a&&(t.strokeStyle=a),t.font=e.textFont||e.font,t.textAlign=e.textAlign,e.textVerticalAlign){var s=c.getBoundingRect(r,t.font,e.textAlign,"top");switch(t.textBaseline="top",e.textVerticalAlign){case"middle":i-=s.height/2;break;case"bottom":i-=s.height}}else t.textBaseline=e.textBaseline;for(var l=c.measureText("国",t.font).width,u=r.split("\n"),h=0;h<u.length;h++)o&&t.fillText(u[h],n,i),a&&t.strokeText(u[h],n,i),i+=l;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,n=c.getBoundingRect(t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":n.y-=n.height/2;break;case"bottom":n.y-=n.height}n.x+=t.x||0,n.y+=t.y||0,this._rect=n}return this._rect}},r.inherits(o,i),t.exports=o},function(t,e,n){function _(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function w(t,e){t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}var b=n(17),i=n(8),P=new i,r=function(){};r.prototype={constructor:r,drawRectText:function(t,e,n){var i=this.style,r=i.text;if(null!=r&&(r+=""),r){var o,a,s=i.textPosition,l=i.textDistance,u=i.textAlign,h=i.textFont||i.font,c=i.textBaseline,p=i.textVerticalAlign;n=n||b.getBoundingRect(r,h,u,c);var f=this.transform,d=this.invTransform;if(f&&(P.copy(e),P.applyTransform(f),e=P,w(t,d)),s instanceof Array)o=e.x+_(s[0],e.width),a=e.y+_(s[1],e.height),u=u||"left",c=c||"top";else{var y=b.adjustTextPositionOnRect(s,e,n,l);o=y.x,a=y.y,u=u||y.textAlign,c=c||y.textBaseline}if(t.textAlign=u,p){switch(p){case"middle":a-=n.height/2;break;case"bottom":a-=n.height}t.textBaseline="top"}else t.textBaseline=c;var m=i.textFill,g=i.textStroke;m&&(t.fillStyle=m),g&&(t.strokeStyle=g),t.font=h,t.shadowColor=i.textShadowColor,t.shadowBlur=i.textShadowBlur,t.shadowOffsetX=i.textShadowOffsetX,t.shadowOffsetY=i.textShadowOffsetY;for(var v=r.split("\n"),x=0;x<v.length;x++)m&&t.fillText(v[x],o,a),g&&t.strokeText(v[x],o,a),a+=n.lineHeight;f&&w(t,f)}}},t.exports=r},function(t,e,n){
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/
var r=n(58),u=n(15),h=n(127),c=n(130),p=n(131),f=!u.canvasSupported,d={canvas:n(129)},i={},o={version:"3.0.8",init:function(t,e){var n=new a(r(),t,e);return i[n.id]=n},dispose:function(t){if(t)t.dispose();else{for(var e in i)i[e].dispose();i={}}return o},getInstance:function(t){return i[t]},registerPainter:function(t,e){d[t]=e}},a=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new c,o=n.renderer;if(f){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&d[o]||(o="canvas");var a=new d[o](e,r,n);this.storage=r,this.painter=a,u.node||(this.handler=new h(a.getViewportRoot(),r,a)),this.animation=new p({stage:{update:function(){i._needsRefresh&&i.refreshImmediately()}}}),this.animation.start(),this._needsRefresh;var s=r.delFromMap,l=r.addToMap;r.delFromMap=function(t){var e=r.get(t);s.call(r,t),e&&e.removeSelfFromZr(i)},r.addToMap=function(t){l.call(r,t),t.addSelfToZr(i)}};a.prototype={constructor:a,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter.resize(),this.handler&&this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},toDataURL:function(t,e,n){return this.painter.toDataURL(t,e,n)},pathToImage:function(t,e,n){var i=r();return this.painter.pathToImage(i,t,e,n)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,n){this.handler&&this.handler.on(t,e,n)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,function(t){delete i[t]}(this.id)}},t.exports=o},function(t,e,n){var i=n(2),r=n(1);t.exports=function(n,t){r.each(t,function(o){o.update="updateView",i.registerAction(o,function(t,e){var r={};return e.eachComponent({mainType:"series",subType:n,query:t},function(n){n[o.method]&&n[o.method](t.name);var i=n.getData();i.each(function(t){var e=i.getName(t);r[e]=n.isSelected(e)||!1})}),{name:t.name,selected:r}})})}},function(t,e,n){var r=n(1);t.exports={updateSelectedMap:function(){var t=this.option;this._dataOptMap=r.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var e=this._dataOptMap,n=e[t],i=this.get("selectedMode");"single"===i&&r.each(e,function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e.selected}}},function(t,e,n){function u(t){if(!t.target||!t.target.draggable){var e=t.offsetX,n=t.offsetY,i=this.rect;i&&i.contain(e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function h(t){if(this._dragging&&(s.stop(t.event),"pinch"!==t.gestureEvent)){if(l.isTaken("globalPan",this._zr))return;var e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y;this._x=e,this._y=n;var o=this.target;if(o){var a=o.position;a[0]+=i,a[1]+=r,o.dirty()}s.stop(t.event),this.trigger("pan",i,r)}}function c(t){this._dragging=!1}function p(t){s.stop(t.event);var e=0<t.wheelDelta?1.1:1/1.1;i.call(this,t,e,t.offsetX,t.offsetY)}function f(t){if(!l.isTaken("globalPan",this._zr)){s.stop(t.event);var e=1<t.pinchScale?1.1:1/1.1;i.call(this,t,e,t.pinchX,t.pinchY)}}function i(t,e,n,i){var r=this.rect;if(r&&r.contain(n,i)){var o=this.target,a=this.zoomLimit;if(o){var s=o.position,l=o.scale,u=this.zoom=this.zoom||1;u*=e,a&&(u=Math.max(Math.min(a.max,u),a.min));var h=u/this.zoom;this.zoom=u,s[0]-=(n-s[0])*(h-1),s[1]-=(i-s[1])*(h-1),l[0]*=h,l[1]*=h,o.dirty()}this.trigger("zoom",e,n,i)}}function r(e,t,n){this.target=t,this.rect=n,this.zoomLimit,this.zoom,this._zr=e;var i=y.bind,r=i(u,this),o=i(h,this),a=i(c,this),s=i(p,this),l=i(f,this);d.call(this),this.enable=function(t){this.disable(),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",o),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",l))},this.disable=function(){e.off("mousedown",r),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",l)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var d=n(21),y=n(1),s=n(33),l=n(102);y.mixin(r,d),t.exports=r},function(t,e){t.exports=function(t,e,n,i,r){function o(t,e,n){var i=e.length?e.slice():[e,e];return e[0]>e[1]&&i.reverse(),t<0&&i[0]+t<n[0]&&(t=n[0]-i[0]),0<t&&i[1]+t>n[1]&&(t=n[1]-i[1]),t}return t&&("rigid"===i?(t=o(t,e,n),e[0]+=t,e[1]+=t):(t=o(t,e[r],n),e[r]+=t,"push"===i&&e[0]>e[1]&&(e[1-r]=e[r]))),e}},function(t,e,n){var i=n(1),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,silent:!0,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o=i.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},r),a=i.defaults({boundaryGap:[0,0],splitNumber:5},r),s=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},a),l=i.defaults({},a);l.scale=!0,t.exports={categoryAxis:o,valueAxis:a,timeAxis:s,logAxis:l}},,function(t,e,n){var s=n(16);t.exports=function(t,o,a){function e(e){var i=[o,"normal","color"],t=a.get("color"),r=e.getData(),n=e.get(i)||t[e.seriesIndex%t.length];r.setVisual("color",n),a.isSeriesFiltered(e)||("function"!=typeof n||n instanceof s||r.each(function(t){r.setItemVisual(t,"color",n(e.getDataParams(t)))}),r.each(function(t){var e=r.getItemModel(t),n=e.get(i,!0);null!=n&&r.setItemVisual(t,"color",n)}))}t?a.eachSeriesByType(t,e):a.eachSeries(e)}},function(t,e){t.exports=function(t,e,n,i,r,o){if(e<o&&i<o||o<e&&o<i)return 0;if(i===e)return 0;var a=i<e?1:-1,s=(o-e)/(i-e),l=s*(n-t)+t;return r<l?a:0}},function(t,e,n){"use strict";var i=n(1),o=n(16),r=function(t,e,n,i,r){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,o.call(this,r)};r.prototype={constructor:r,type:"linear",updateCanvasGradient:function(t,e){for(var n=t.getBoundingRect(),i=this.x*n.width+n.x,r=this.x2*n.width+n.x,o=this.y*n.height+n.y,a=this.y2*n.height+n.y,s=e.createLinearGradient(i,o,r,a),l=this.colorStops,u=0;u<l.length;u++)s.addColorStop(l[u].offset,l[u].color);this.canvasGradient=s}},i.inherits(r,o),t.exports=r},function(t,e,n){"use strict";function a(t){return 5e-5<t||t<-5e-5}var s=n(19),r=n(5),o=s.identity,i=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=i.prototype;l.transform=null,l.needLocalTransform=function(){return a(this.rotation)||a(this.position[0])||a(this.position[1])||a(this.scale[0]-1)||a(this.scale[1]-1)},l.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;return n||e?(i=i||s.create(),n?this.getLocalTransform(i):o(i),e&&(n?s.mul(i,t.transform,i):s.copy(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||s.create(),void s.invert(this.invTransform,i)):void(i&&o(i))},l.getLocalTransform=function(t){o(t=t||[]);var e=this.origin,n=this.scale,i=this.rotation,r=this.position;return e&&(t[4]-=e[0],t[5]-=e[1]),s.scale(t,t,n),i&&s.rotate(t,t,i),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=r[0],t[5]+=r[1],t},l.setTransform=function(t){var e=this.transform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])};var u=[];l.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(s.mul(u,t.invTransform,e),e=u);var n=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],r=this.position,o=this.scale;a(n-1)&&(n=Math.sqrt(n)),a(i-1)&&(i=Math.sqrt(i)),e[0]<0&&(n=-n),e[3]<0&&(i=-i),r[0]=e[4],r[1]=e[5],o[0]=n,o[1]=i,this.rotation=Math.atan2(-e[1]/i,e[0]/n)}},l.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},l.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},t.exports=i},function(t,e,n){"use strict";var i=n(1),r=["getDom","getZr","getWidth","getHeight","dispatchAction","on","off","getDataURL","getConnectedDataURL","getModel","getOption"];t.exports=function(e){i.each(r,function(t){this[t]=i.bind(e[t],e)},this)}},function(t,e,n){var i=n(1);n(51),n(80),n(81);var r=n(110),o=n(2);o.registerLayout(i.curry(r,"bar")),o.registerVisualCoding("chart",function(t){t.eachSeriesByType("bar",function(t){var e=t.getData();e.setVisual("legendSymbol","roundRect")})}),n(34)},function(t,e,n){"use strict";var i=n(13),r=n(36);t.exports=i.extend({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return r(t.data,this,e)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(t),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,itemStyle:{normal:{barBorderColor:"#fff",barBorderWidth:0},emphasis:{barBorderColor:"#fff",barBorderWidth:0}}}})},function(t,e,n){"use strict";function f(t,e){var n=0<t.width?1:-1,i=0<t.height?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t.height)),t.x+=n*e/2,t.y+=i*e/2,t.width-=n*e,t.height-=i*e}var m=n(1),g=n(3);m.extend(n(12).prototype,n(82)),t.exports=n(2).extendChartView({type:"bar",render:function(t,e,n){var i=t.get("coordinateSystem");return"cartesian2d"===i&&this._renderOnCartesian(t,e,n),this.group},_renderOnCartesian:function(l,t,e){function o(t,e){var n=u.getItemLayout(t),i=u.getItemModel(t).get(p)||0;f(n,i);var r=new g.Rect({shape:m.extend({},n)});if(c){var o=r.shape,a=h?"height":"width",s={};o[a]=0,s[a]=n[a],g[e?"updateProps":"initProps"](r,{shape:s},l)}return r}var a=this.group,u=l.getData(),s=this._data,n=l.coordinateSystem,i=n.getBaseAxis(),h=i.isHorizontal(),c=l.get("animation"),p=["itemStyle","normal","barBorderWidth"];u.diff(s).add(function(t){if(u.hasValue(t)){var e=o(t);u.setItemGraphicEl(t,e),a.add(e)}}).update(function(t,e){var n=s.getItemGraphicEl(e);if(u.hasValue(t)){n=n||o(t,!0);var i=u.getItemLayout(t),r=u.getItemModel(t).get(p)||0;f(i,r),g.updateProps(n,{shape:i},l),u.setItemGraphicEl(t,n),a.add(n)}else a.remove(n)}).remove(function(t){var e=s.getItemGraphicEl(t);e&&(e.style.text="",g.updateProps(e,{shape:{width:0}},l,function(){a.remove(e)}))}).execute(),this._updateStyle(l,u,h),this._data=u},_updateStyle:function(p,f,d){function y(t,e,n,i,r){g.setText(t,e,n),t.text=i,"outside"===t.textPosition&&(t.textPosition=r)}f.eachItemGraphicEl(function(t,e){var n=f.getItemModel(e),i=f.getItemVisual(e,"color"),r=f.getItemVisual(e,"opacity"),o=f.getItemLayout(e),a=n.getModel("itemStyle.normal"),s=n.getModel("itemStyle.emphasis").getBarItemStyle();t.setShape("r",a.get("barBorderRadius")||0),t.setStyle(m.defaults({fill:i,opacity:r},a.getBarItemStyle()));var l=d?0<o.height?"bottom":"top":0<o.width?"left":"right",u=n.getModel("label.normal"),h=n.getModel("label.emphasis"),c=t.style;u.get("show")?y(c,u,i,m.retrieve(p.getFormattedLabel(e,"normal"),p.getRawValue(e)),l):c.text="",h.get("show")?y(s,h,i,m.retrieve(p.getFormattedLabel(e,"emphasis"),p.getRawValue(e)),l):s.text="",g.setHoverStyle(t,s)})},remove:function(e,t){var n=this.group;e.get("animation")?this._data&&this._data.eachItemGraphicEl(function(t){t.style.text="",g.updateProps(t,{shape:{width:0}},e,function(){n.remove(t)})}):n.removeAll()}})},function(t,e,n){t.exports={getBarItemStyle:n(30)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}},function(t,e,n){function p(t,e,n){var i=e.getItemVisual(n,"color"),r=e.getItemVisual(n,"symbol"),o=e.getItemVisual(n,"symbolSize");if("none"!==r){g.isArray(o)||(o=[o,o]);var a=s.createSymbol(r,-o[0]/2,-o[1]/2,o[0],o[1],i);return a.name=t,a}}function f(t,e){var n=e[0],i=e[1],r=e[2];t.x1=n[0],t.y1=n[1],t.x2=i[0],t.y2=i[1],t.percent=1,r&&(t.cpx1=r[0],t.cpy1=r[1])}function h(t){return"symbol"===t.type&&"arrow"===t.shape.symbolType}function c(t,e){return-Math.PI/2-Math.atan2(e[1]-t[1],e[0]-t[0])}function i(t,e,n,i){m.Group.call(this),this._createLine(t,e,n,i)}var s=n(24),d=n(5),y=n(162),m=n(3),g=n(1),v=n(4),r=i.prototype;r.beforeUpdate=function(){var t=this.childOfName("line");if(this.__dirty||t.__dirty){var e,n,i,r=this.childOfName("fromSymbol"),o=this.childOfName("toSymbol"),a=this.childOfName("label"),s=t.pointAt(0),l=t.pointAt(t.shape.percent),u=d.sub([],l,s);d.normalize(u,u),r&&(r.attr("position",s),h(r)&&r.attr("rotation",c(l,s))),o&&(o.attr("position",l),h(o)&&o.attr("rotation",c(s,l))),a.attr("position",l),i="end"===a.__position?(e=[5*u[0]+l[0],5*u[1]+l[1]],n=.8<u[0]?"left":u[0]<-.8?"right":"center",.8<u[1]?"top":u[1]<-.8?"bottom":"middle"):(e=[5*-u[0]+s[0],5*-u[1]+s[1]],n=.8<u[0]?"right":u[0]<-.8?"left":"center",.8<u[1]?"bottom":u[1]<-.8?"top":"middle"),a.attr({style:{textVerticalAlign:a.__verticalAlign||i,textAlign:a.__textAlign||n},position:e})}},r._createLine=function(t,e,n,i){var r=t.hostModel,o=t.getItemLayout(i),a=function(t){var e=new y({name:"line",style:{strokeNoScale:!0}});return f(e.shape,t),e}(o);a.shape.percent=0,m.initProps(a,{shape:{percent:1}},r),this.add(a);var s=new m.Text({name:"label"});if(this.add(s),e){var l=p("fromSymbol",e,i);this.add(l),this._fromSymbolType=e.getItemVisual(i,"symbol")}if(n){var u=p("toSymbol",n,i);this.add(u),this._toSymbolType=n.getItemVisual(i,"symbol")}this._updateCommonStl(t,e,n,i)},r.updateData=function(t,e,n,i){var r=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(i),s={shape:{}};if(f(s.shape,a),m.updateProps(o,s,r),e){var l=e.getItemVisual(i,"symbol");if(this._fromSymbolType!==l){var u=p("fromSymbol",e,i);this.remove(this.childOfName("fromSymbol")),this.add(u)}this._fromSymbolType=l}if(n){var h=n.getItemVisual(i,"symbol");if(h!==this._toSymbolType){var c=p("toSymbol",n,i);this.remove(this.childOfName("toSymbol")),this.add(c)}this._toSymbolType=h}this._updateCommonStl(t,e,n,i)},r._updateCommonStl=function(t,e,n,i){var r=t.hostModel,o=this.childOfName("line"),a=t.getItemModel(i),s=a.getModel("label.normal"),l=s.getModel("textStyle"),u=a.getModel("label.emphasis"),h=u.getModel("textStyle"),c=v.round(r.getRawValue(i));isNaN(c)&&(c=t.getName(i)),o.setStyle(g.extend({stroke:t.getItemVisual(i,"color")},a.getModel("lineStyle.normal").getLineStyle()));var p=this.childOfName("label");p.setStyle({text:s.get("show")?g.retrieve(r.getFormattedLabel(i,"normal"),c):"",textFont:l.getFont(),fill:l.getTextColor()||t.getItemVisual(i,"color")}),p.hoverStyle={text:u.get("show")?g.retrieve(r.getFormattedLabel(i,"emphasis"),c):"",textFont:h.getFont(),fill:h.getTextColor()},p.__textAlign=l.get("align"),p.__verticalAlign=l.get("baseline"),p.__position=s.get("position"),m.setHoverStyle(this,a.getModel("lineStyle.emphasis").getLineStyle())},r.updateLayout=function(t,e,n,i){var r=t.getItemLayout(i),o=this.childOfName("line");f(o.shape,r),o.dirty(!0)},g.inherits(i,m.Group),t.exports=i},function(t,e,n){function i(t){this._ctor=t||o,this.group=new r.Group}var r=n(3),o=n(83),a=i.prototype;a.updateData=function(i,r,o){var a=this._lineData,s=this.group,n=this._ctor;i.diff(a).add(function(t){var e=new n(i,r,o,t);i.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(i,r,o,t),i.setItemGraphicEl(t,n),s.add(n)}).remove(function(t){s.remove(a.getItemGraphicEl(t))}).execute(),this._lineData=i,this._fromData=r,this._toData=o},a.updateLayout=function(){var n=this._lineData;n.eachItemGraphicEl(function(t,e){t.updateLayout(n,this._fromData,this._toData,e)},this)},a.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){var i=n(1),r=n(2);n(86),n(87),r.registerVisualCoding("chart",i.curry(n(44),"line","circle","line")),r.registerLayout(i.curry(n(53),"line")),r.registerProcessor("statistic",i.curry(n(122),"line")),n(34)},function(t,e,n){"use strict";var i=n(36),r=n(13);t.exports=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},symbol:"emptyCircle",symbolSize:4,showSymbol:!0,animationEasing:"linear"}})},function(t,e,n){"use strict";function C(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function M(t){return"number"==typeof t?t:t?.3:0}function c(t){var e=t.getGlobalExtent();if(t.onBand){var n=t.getBandWidth()/2-1,i=e[1]>e[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function T(t){return 0<=t?1:-1}function l(t,e){return null!=e.dataIndex?e.dataIndex:null!=e.name?t.indexOfName(e.name):void 0}function A(t,e,n){return"polar"===t.type?function(t,e,n){var i=t.getAngleAxis(),r=t.getRadiusAxis().getExtent(),o=i.getExtent(),a=Math.PI/180,s=new d.Sector({shape:{cx:t.cx,cy:t.cy,r0:r[0],r:r[1],startAngle:-o[0]*a,endAngle:-o[1]*a,clockwise:i.inverse}});return e&&(s.shape.endAngle=-o[0]*a,d.initProps(s,{shape:{endAngle:-o[1]*a}},n)),s}(t,e,n):function(t,e,n){var i=c(t.getAxis("x")),r=c(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),a=i[0],s=r[0],l=i[1]-a,u=r[1]-s;n.get("clipOverflow")||(o?(s-=u,u*=3):(a-=l,l*=3));var h=new d.Rect({shape:{x:a,y:s,width:l,height:u}});return e&&(h.shape[o?"width":"height"]=0,d.initProps(h,{shape:{width:l,height:u}},n)),h}(t,e,n)}var E=n(1),i=n(38),u=n(47),f=n(88),d=n(3),r=n(89),h=n(25);t.exports=h.extend({type:"line",init:function(){var t=new d.Group,e=new i;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle.normal"),s=t.getModel("areaStyle.normal"),l=o.mapArray(o.getItemLayout,!0),u="polar"===i.type,h=this._coordSys,c=this._symbolDraw,p=this._polyline,f=this._polygon,d=this._lineGroup,y=t.get("animation"),m=!s.isEmpty(),g=function(o,a){var s=o.getBaseAxis(),t=o.getOtherAxis(s),l=s.onZero?0:t.scale.getExtent()[0],u=t.dim,h="x"===u||"radius"===u?1:0;return a.mapArray([u],function(t,e){for(var n,i=a.stackedOn;i&&T(i.get(u,e))===T(t);){n=i;break}var r=[];return r[h]=a.get(s.dim,e),r[1-h]=n?n.get(u,e,!0):l,o.dataToPoint(r)},!0)}(i,o),v=t.get("showSymbol"),x=v&&!u&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(o,i),_=this._data;_&&_.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),_.setItemGraphicEl(e,null))}),v||c.remove(),r.add(d),p&&h.type===i.type?(m&&!f?f=this._newPolygon(l,g,i,y):f&&!m&&(d.remove(f),f=this._polygon=null),d.setClipPath(A(i,!1,t)),v&&c.updateData(o,x),o.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),C(this._stackedOnPoints,g)&&C(this._points,l)||(y?this._updateAnimation(o,g,i,n):(p.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:g})))):(v&&c.updateData(o,x),p=this._newPolyline(l,i,y),m&&(f=this._newPolygon(l,g,i,y)),d.setClipPath(A(i,!0,t))),p.setStyle(E.defaults(a.getLineStyle(),{stroke:o.getVisual("color"),lineJoin:"bevel"}));var w=t.get("smooth");if(w=M(t.get("smooth")),p.setShape({smooth:w,smoothMonotone:t.get("smoothMonotone")}),f){var b=o.stackedOn,P=0;if(f.style.opacity=.7,f.setStyle(E.defaults(s.getAreaStyle(),{fill:o.getVisual("color"),lineJoin:"bevel"})),b){var S=b.hostModel;P=M(S.get("smooth"))}f.setShape({smooth:w,stackedOnSmooth:P,smoothMonotone:t.get("smoothMonotone")})}this._data=o,this._coordSys=i,this._stackedOnPoints=g,this._points=l},highlight:function(t,e,n,i){var r=t.getData(),o=l(r,i);if(null!=o&&0<=o){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);(a=new u(r,o,n)).position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else h.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=l(r,i);if(null!=o&&0<=o){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else h.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new r.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new r.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n},_getSymbolIgnoreFunc:function(t,e){var n=e.getAxesByScale("ordinal")[0];return n&&n.isLabelIgnored?E.bind(n.isLabelIgnored,n):void 0},_updateAnimation:function(t,e,n,i){var r=this._polyline,o=this._polygon,a=t.hostModel,s=f(this._data,t,this._stackedOnPoints,e,this._coordSys,n);r.shape.points=s.current,d.updateProps(r,{shape:{points:s.next}},a),o&&(o.setShape({points:s.current,stackedOnPoints:s.stackedOnCurrent}),d.updateProps(o,{shape:{points:s.next,stackedOnPoints:s.stackedOnNext}},a));for(var l=[],u=s.status,h=0;h<u.length;h++){var c=u[h].cmd;if("="===c){var p=t.getItemGraphicEl(u[h].idx1);p&&l.push({el:p,ptIdx:h})}}r.animators&&r.animators.length&&r.animators[0].during(function(){for(var t=0;t<l.length;t++){var e=l[t].el;e.attr("position",r.shape.points[l[t].ptIdx])}})},remove:function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})},function(t,e){function p(t){return 0<=t?1:-1}function T(t,e,n){for(var i,r=t.getBaseAxis(),o=t.getOtherAxis(r),a=r.onZero?0:o.scale.getExtent()[0],s=o.dim,l="x"===s||"radius"===s?1:0,u=e.stackedOn,h=e.get(s,n);u&&p(u.get(s,n))===p(h);){i=u;break}var c=[];return c[l]=e.get(r.dim,n),c[1-l]=i?i.get(s,n,!0):a,t.dataToPoint(c)}t.exports=function(t,e,n,i,r,o){for(var a=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),s=[],l=[],u=[],h=[],c=[],p=[],f=[],d=o.dimensions,y=0;y<a.length;y++){var m=a[y],g=!0;switch(m.cmd){case"=":var v=t.getItemLayout(m.idx),x=e.getItemLayout(m.idx1);(isNaN(v[0])||isNaN(v[1]))&&(v=x.slice()),s.push(v),l.push(x),u.push(n[m.idx]),h.push(i[m.idx1]),f.push(e.getRawIndex(m.idx1));break;case"+":var _=m.idx;s.push(r.dataToPoint([e.get(d[0],_,!0),e.get(d[1],_,!0)])),l.push(e.getItemLayout(_).slice()),u.push(T(r,e,_)),h.push(i[_]),f.push(e.getRawIndex(_));break;case"-":var _=m.idx,w=t.getRawIndex(_);w!==_?(s.push(t.getItemLayout(_)),l.push(o.dataToPoint([t.get(d[0],_,!0),t.get(d[1],_,!0)])),u.push(n[_]),h.push(T(o,t,_)),f.push(w)):g=!1}g&&(c.push(m),p.push(p.length))}p.sort(function(t,e){return f[t]-f[e]});for(var b=[],P=[],S=[],C=[],M=[],y=0;y<p.length;y++){var _=p[y];b[y]=s[_],P[y]=l[_],S[y]=u[_],C[y]=h[_],M[y]=c[_]}return{current:b,next:P,stackedOnCurrent:S,stackedOnNext:C,status:M}}},function(t,e,n){function h(t,e,n,i,r,o,a,s,l,u){for(var h=n,c=0;c<r;c++){var p=e[h];if(i<=h||h<0||isNaN(p[0])||isNaN(p[1]))break;if(h===n)t[0<o?"moveTo":"lineTo"](p[0],p[1]),C(T,p);else if(0<l){var f=h-o,d=h+o,y=.5,m=e[f],g=e[d];if(0<o&&(h===r-1||isNaN(g[0])||isNaN(g[1]))||o<=0&&(0===h||isNaN(g[0])||isNaN(g[1])))C(A,p);else{var v,x;if((isNaN(g[0])||isNaN(g[1]))&&(g=p),w.sub(M,g,m),"x"===u||"y"===u){var _="x"===u?0:1;v=Math.abs(p[_]-m[_]),x=Math.abs(p[_]-g[_])}else v=w.dist(p,m),x=w.dist(p,g);S(A,p,M,-l*(1-(y=x/(x+v))))}b(T,T,s),P(T,T,a),b(A,A,s),P(A,A,a),t.bezierCurveTo(T[0],T[1],A[0],A[1],p[0],p[1]),S(T,p,M,l*y)}else t.lineTo(p[0],p[1]);h+=o}return c}function c(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var o=t[r];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>i[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var i=n(6),w=n(5),b=w.min,P=w.max,S=w.scaleAndAdd,C=w.copy,M=[],T=[],A=[];t.exports={Polyline:i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null},style:{fill:null,stroke:"#000"},buildPath:function(t,e){for(var n=e.points,i=0,r=n.length,o=c(n,e.smoothConstraint);i<r;)i+=h(t,n,i,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone)+1}}),Polygon:i.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null},buildPath:function(t,e){for(var n=e.points,i=e.stackedOnPoints,r=0,o=n.length,a=e.smoothMonotone,s=c(n,e.smoothConstraint),l=c(i,e.smoothConstraint);r<o;){var u=h(t,n,r,o,o,1,s.min,s.max,e.smooth,a);h(t,i,r+u-1,o,u,-1,l.min,l.max,e.stackedOnSmooth,a),r+=u+1,t.closePath()}}})}},function(t,e,n){var i=n(1),r=n(2);n(91),n(92),n(68)("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),r.registerVisualCoding("chart",i.curry(n(63),"pie")),r.registerLayout(i.curry(n(94),"pie")),r.registerProcessor("filter",i.curry(n(62),"pie"))},function(t,e,n){"use strict";var r=n(14),i=n(1),o=n(7),a=n(31),s=n(69),l=n(2).extendSeriesModel({type:"series.pie",init:function(t){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(),this._defaultLabelLine(t)},mergeOption:function(t){l.superCall(this,"mergeOption",t),this.updateSelectedMap()},getInitialData:function(t,e){var n=a(["value"],t.data),i=new r(n,this);return i.initData(t.data),i},getDataParams:function(t){var e=this._data,n=l.superCall(this,"getDataParams",t),i=e.getSum("value");return n.percent=i?+(e.get("value",t)/i*100).toFixed(2):0,n.$vars.push("percent"),n},_defaultLabelLine:function(t){o.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,n=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,n.show=n.show&&t.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1}},animationEasing:"cubicOut",data:[]}});i.mixin(l,s),t.exports=l},function(t,e,n){function d(t,e,n,i){var r=e.getData(),o=this.dataIndex,a=r.getName(o),s=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:a,seriesId:e.id}),r.each(function(t){p(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),s,n)})}function p(t,e,n,i,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=n?i:0,u=[a*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function y(t,e){function n(){o.ignore=o.hoverIgnore,a.ignore=a.hoverIgnore}function i(){o.ignore=o.normalIgnore,a.ignore=a.normalIgnore}g.Group.call(this);var r=new g.Sector({z2:2}),o=new g.Polyline,a=new g.Text;this.add(r),this.add(o),this.add(a),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function m(t,e,n,i,r){var o=i.getModel("textStyle"),a="inside"===r||"inner"===r;return{fill:o.getTextColor()||(a?"#fff":t.getItemVisual(e,"color")),textFont:o.getFont(),text:v.retrieve(t.hostModel.getFormattedLabel(e,n),t.getName(e))}}var g=n(3),v=n(1),i=y.prototype;i.updateData=function(t,e,n){function i(){o.stopAnimation(!0),o.animateTo({shape:{r:l.r+10}},300,"elasticOut")}function r(){o.stopAnimation(!0),o.animateTo({shape:{r:l.r}},300,"elasticOut")}var o=this.childAt(0),a=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=v.extend({},l);u.label=null,n?(o.setShape(u),o.shape.endAngle=l.startAngle,g.updateProps(o,{shape:{endAngle:l.endAngle}},a)):g.updateProps(o,{shape:u},a);var h=s.getModel("itemStyle"),c=t.getItemVisual(e,"color");o.setStyle(v.defaults({fill:c},h.getModel("normal").getItemStyle())),o.hoverStyle=h.getModel("emphasis").getItemStyle(),p(this,t.getItemLayout(e),s.get("selected"),a.get("selectedOffset"),a.get("animation")),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),s.get("hoverAnimation")&&o.on("mouseover",i).on("mouseout",r).on("emphasis",i).on("normal",r),this._updateLabel(t,e),g.setHoverStyle(this)},i._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=a.label,l=t.getItemVisual(e,"color");g.updateProps(n,{shape:{points:s.linePoints||[[s.x,s.y],[s.x,s.y],[s.x,s.y]]}},r),g.updateProps(i,{style:{x:s.x,y:s.y}},r),i.attr({style:{textVerticalAlign:s.verticalAlign,textAlign:s.textAlign,textFont:s.font},rotation:s.rotation,origin:[s.x,s.y],z2:10});var u=o.getModel("label.normal"),h=o.getModel("label.emphasis"),c=o.getModel("labelLine.normal"),p=o.getModel("labelLine.emphasis"),f=u.get("position")||h.get("position");i.setStyle(m(t,e,"normal",u,f)),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!h.get("show"),n.ignore=n.normalIgnore=!c.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:l}),n.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=m(t,e,"emphasis",h,f),n.hoverStyle=p.getModel("lineStyle").getLineStyle();var d=c.get("smooth");d&&!0===d&&(d=.4),n.setShape({smooth:d})},v.inherits(y,g.Group);var r=n(25).extend({type:"pie",init:function(){var t=new g.Group;this._sectorGroup=t},render:function(t,e,n,i){if(!i||i.from!==this.uid){var r=t.getData(),o=this._data,a=this.group,s=e.get("animation"),l=!o,u=v.curry(d,this.uid,t,s,n),h=t.get("selectedMode");if(r.diff(o).add(function(t){var e=new y(r,t);l&&e.eachChild(function(t){t.stopAnimation(!0)}),h&&e.on("click",u),r.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),n.off("click"),h&&n.on("click",u),a.add(n),r.setItemGraphicEl(t,n)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),s&&l&&0<r.count()){var c=r.getItemLayout(0),p=Math.max(n.getWidth(),n.getHeight())/2,f=v.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(c.cx,c.cy,p,c.startAngle,c.clockwise,f,t))}this._data=r}},_createClipPath:function(t,e,n,i,r,o,a){var s=new g.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return g.initProps(s,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),s}});t.exports=r},function(t,e,n){"use strict";function c(o,t,e,n,i,r,a){function s(t,e,n,i){for(var r=t;r<e;r++)if(o[r].y+=n,t<r&&r+1<e&&o[r+1].y>o[r].y+o[r].height)return void l(r,n/2);l(e-1,n/2)}function l(t,e){for(var n=t;0<=n&&(o[n].y-=e,!(0<n&&o[n].y>o[n-1].y+o[n-1].height));n--);}function u(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("center"!==t[s].position){var u=Math.abs(t[s].y-i),h=t[s].len,c=t[s].len2,p=u<r+h?Math.sqrt((r+h+c)*(r+h+c)-u*u):Math.abs(t[s].x-n);e&&a<=p&&(p=a-10),!e&&p<=a&&(p=a+10),t[s].x=n+p*o,a=p}}o.sort(function(t,e){return t.y-e.y});for(var h,c=0,p=o.length,f=[],d=[],y=0;y<p;y++)(h=o[y].y-c)<0&&s(y,p,-h,i),c=o[y].y+o[y].height;a-c<0&&l(p-1,c-a);for(var y=0;y<p;y++)o[y].y>=e?d.push(o[y]):f.push(o[y]);u(f,!1,t,e,n,i),u(d,!0,t,e,n,i)}var O=n(17);t.exports=function(M,T,t,e){var A,E,I=M.getData(),L=[],R=!1;I.each(function(t){var e,n,i,r,o=I.getItemLayout(t),a=I.getItemModel(t),s=a.getModel("label.normal"),l=s.get("position")||a.get("label.emphasis.position"),u=a.getModel("labelLine.normal"),h=u.get("length"),c=u.get("length2"),p=(o.startAngle+o.endAngle)/2,f=Math.cos(p),d=Math.sin(p);A=o.cx,E=o.cy;var y="inside"===l||"inner"===l;if("center"===l)e=o.cx,n=o.cy,r="center";else{var m=(y?(o.r+o.r0)/2*f:o.r*f)+A,g=(y?(o.r+o.r0)/2*d:o.r*d)+E;if(e=m+3*f,n=g+3*d,!y){var v=m+f*(h+T-o.r),x=g+d*(h+T-o.r),_=v+(f<0?-1:1)*c,w=x;e=_+(f<0?-5:5),i=[[m,g],[v,x],[_,n=w]]}r=y?"center":0<f?"left":"right"}var b=s.getModel("textStyle").getFont(),P=s.get("rotate")?f<0?-p+Math.PI:-p:0,S=M.getFormattedLabel(t,"normal")||I.getName(t),C=O.getBoundingRect(S,b,r,"top");R=!!P,o.label={x:e,y:n,position:l,height:C.height,len:h,len2:c,linePoints:i,textAlign:r,verticalAlign:"middle",font:b,rotation:P},y||L.push(o.label)}),!R&&M.get("avoidLabelOverlap")&&function(t,e,n,i,r,o){for(var a=[],s=[],l=0;l<t.length;l++)t[l].x<e?a.push(t[l]):s.push(t[l]);for(c(s,e,n,i,1,r,o),c(a,e,n,i,-1,r,o),l=0;l<t.length;l++){var u=t[l].linePoints;if(u){var h=u[1][0]-u[2][0];t[l].x<e?u[2][0]=t[l].x+3:u[2][0]=t[l].x-3,u[1][1]=u[2][1]=t[l].y,u[1][0]=u[2][0]+h}}}(L,A,E,T,t,e)}},function(t,e,n){var S=n(4),C=S.parsePercent,M=n(93),T=n(1),A=2*Math.PI,E=Math.PI/180;t.exports=function(t,e,P){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");T.isArray(n)||(n=[0,n]),T.isArray(e)||(e=[e,e]);var i=P.getWidth(),r=P.getHeight(),o=Math.min(i,r),a=C(e[0],i),s=C(e[1],r),l=C(n[0],o/2),u=C(n[1],o/2),h=t.getData(),c=-t.get("startAngle")*E,p=t.get("minAngle")*E,f=h.getSum("value"),d=Math.PI/(f||h.count())*2,y=t.get("clockwise"),m=t.get("roseType"),g=h.getDataExtent("value");g[0]=0;var v=A,x=0,_=c,w=y?1:-1;if(h.each("value",function(t,e){var n;(n="area"!==m?0===f?d:t*d:A/(h.count()||1))<p?v-=n=p:x+=t;var i=_+w*n;h.setItemLayout(e,{angle:n,startAngle:_,endAngle:i,clockwise:y,cx:a,cy:s,r0:l,r:m?S.linearMap(t,g,[l,u]):u}),_=i},!0),v<A)if(v<=.001){var b=A/h.count();h.each(function(t){var e=h.getItemLayout(t);e.startAngle=c+w*t*b,e.endAngle=c+w*(t+1)*b})}else d=v/x,_=c,h.each("value",function(t,e){var n=h.getItemLayout(e),i=n.angle===p?p:t*d;n.startAngle=_,n.endAngle=_+w*i,_+=i});M(t,u,i,r)})}},,function(t,e,n){"use strict";n(50),n(97)},function(t,e,n){var b=n(1),P=n(3),o=n(48),S=o.ifIgnoreOnTick,C=o.getInterval,a=["axisLine","axisLabel","axisTick","axisName"],s=["splitLine","splitArea"],i=n(2).extendComponentView({type:"axis",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=t.getComponent("grid",e.get("gridIndex")),i=function(t,e){function n(t){var e=i.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var i=t.coordinateSystem,r=e.axis,o={},a=r.position,s=r.onZero?"onZero":a,l=r.dim,u=i.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],c={x:{top:h[2],bottom:h[3]},y:{left:h[0],right:h[1]}};c.x.onZero=Math.max(Math.min(n("y"),c.x.bottom),c.x.top),c.y.onZero=Math.max(Math.min(n("x"),c.y.right),c.y.left),o.position=["y"===l?c.y[s]:h[0],"x"===l?c.x[s]:h[3]];var p={x:0,y:1};o.rotation=Math.PI/2*p[l];var f={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=f[a],r.onZero&&(o.labelOffset=c[l][a]-c[l].onZero),e.getModel("axisTick").get("inside")&&(o.tickDirection=-o.tickDirection),e.getModel("axisLabel").get("inside")&&(o.labelDirection=-o.labelDirection);var d=e.getModel("axisLabel").get("rotate");return o.labelRotation="top"===s?-d:d,o.labelInterval=r.getLabelInterval(),o.z2=1,o}(n,e),r=new o(e,i);b.each(a,r.add,r),this.group.add(r.getGroup()),b.each(s,function(t){e.get(t+".show")&&this["_"+t](e,n,i.labelInterval)},this)}},_splitLine:function(t,e,n){var i=t.axis,r=t.getModel("splitLine"),o=r.getModel("lineStyle"),a=o.get("width"),s=o.get("color"),l=C(r,n);s=b.isArray(s)?s:[s];for(var u=e.coordinateSystem.getRect(),h=i.isHorizontal(),c=[],p=0,f=i.getTicksCoords(),d=[],y=[],m=0;m<f.length;m++)if(!S(i,m,l)){var g=i.toGlobalCoord(f[m]);h?(d[0]=g,d[1]=u.y,y[0]=g,y[1]=u.y+u.height):(d[0]=u.x,d[1]=g,y[0]=u.x+u.width,y[1]=g);var v=p++%s.length;c[v]=c[v]||[],c[v].push(new P.Line(P.subPixelOptimizeLine({shape:{x1:d[0],y1:d[1],x2:y[0],y2:y[1]},style:{lineWidth:a},silent:!0})))}for(var x=o.getLineStyle(),m=0;m<c.length;m++)this.group.add(P.mergePath(c[m],{style:b.defaults({stroke:s[m%s.length]},x),silent:!0}))},_splitArea:function(t,e,n){var i=t.axis,r=t.getModel("splitArea"),o=r.getModel("areaStyle"),a=o.get("color"),s=e.coordinateSystem.getRect(),l=i.getTicksCoords(),u=i.toGlobalCoord(l[0]),h=i.toGlobalCoord(l[0]),c=[],p=0,f=C(r,n);a=b.isArray(a)?a:[a];for(var d=1;d<l.length;d++)if(!S(i,d,f)){var y,m,g,v,x=i.toGlobalCoord(l[d]);v=i.isHorizontal()?(y=u,m=s.y,g=x-y,s.height):(y=s.x,m=h,g=s.width,x-m);var _=p++%a.length;c[_]=c[_]||[],c[_].push(new P.Rect({shape:{x:y,y:m,width:g,height:v},silent:!0})),u=y+g,h=m+v}for(var w=o.getAreaStyle(),d=0;d<c.length;d++)this.group.add(P.mergePath(c[d],{style:b.defaults({fill:a[d%a.length]},w),silent:!0}))}});i.extend({type:"xAxis"}),i.extend({type:"yAxis"})},function(t,e,n){var o=n(1),a=n(7),i=n(2);i.registerAction("dataZoom",function(n,t){var i=a.createLinkedNodesFinder(o.bind(t.eachComponent,t,"dataZoom"),a.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),r=[];t.eachComponent({mainType:"dataZoom",query:n},function(t,e){r.push.apply(r,i(t).nodes)}),o.each(r,function(t,e){t.setRawRange({start:n.start,end:n.end,startValue:n.startValue,endValue:n.endValue})})})},function(t,e,n){function i(t,e,n){n.getAxisProxy(t.name,e).reset(n)}function r(t,e,n){n.getAxisProxy(t.name,e).filterData(n)}var o=n(2);o.registerProcessor("filter",function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(i),t.eachTargetAxis(r)}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setRawRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})})})},function(t,e,n){function o(t){var e=t[r];return e=e||(t[r]=[{}])}var i=n(1),l=i.each,r="\0_ec_hist_store",a={push:function(a,t){var s=o(a);l(t,function(t,e){for(var n=s.length-1;0<=n;n--){var i=s[n];if(i[e])break}if(n<0){var r=a.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(r){var o=r.getPercentRange();s[0][e]={dataZoomId:e,start:o[0],end:o[1]}}}}),s.push(t)},pop:function(t){var i=o(t),e=i[i.length-1];1<i.length&&i.pop();var r={};return l(e,function(t,e){for(var n=i.length-1;0<=n;n--){var t=i[n][e];if(t){r[e]=t;break}}}),r},clear:function(t){t[r]=null},count:function(t){return o(t).length}};t.exports=a},function(t,e,n){n(10).registerSubTypeDefaulter("dataZoom",function(t){return"slider"})},function(t,e){function n(t){return t[i]||(t[i]={})}var i="\0_ec_interaction_mutex",r={take:function(t,e){n(e)[t]=!0},release:function(t,e){n(e)[t]=!1},isTaken:function(t,e){return!!n(e)[t]}};t.exports=r},function(t,e,n){var r=n(11),a=n(9),s=n(3);t.exports={layout:function(t,e,n){var i=r.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},e.get("padding"));r.box(e.get("orient"),t,e.get("itemGap"),i.width,i.height),function(t,e,n){r.positionGroup(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},e.get("padding"))}(t,e,n)},addBackground:function(t,e){var n=a.normalizeCssArray(e.get("padding")),i=t.getBoundingRect(),r=e.getItemStyle(["color","opacity"]);r.fill=e.get("backgroundColor");var o=new s.Rect({shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},style:r,silent:!0,z2:-1});s.subPixelOptimizeRect(o),t.add(o)}}},function(t,e,n){function i(t,e,n,i,r,o){var a=[],s=f(e,i,t),l=e.indexOfNearest(i,s,!0);a[r]=e.get(n,l,!0),a[o]=e.get(i,l,!0);var u=function(t,e,n){for(var i=-1;i=Math.max(h.getPrecision(t.get(e,n)),i),t=t.stackedOn;);return i}(e,i,l);return 0<=u&&(a[o]=+a[o].toFixed(u)),a}var l=n(1),h=n(4),u=l.indexOf,r=l.curry,c={min:r(i,"min"),max:r(i,"max"),average:r(i,"average")},p=function(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(i.dataDimToCoordDim(r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=i.coordDimToDataDim(r.baseAxis.dim)[0]):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=i.coordDimToDataDim(r.baseAxis.dim)[0],r.valueDataDim=i.coordDimToDataDim(r.valueAxis.dim)[0]),r},f=function(t,e,n){return"average"===n?t.getSum(e,!0)/t.count():t.getDataExtent(e,!0)["max"===n?1:0]};t.exports={dataTransform:function(t,e){var n=t.getData(),i=t.coordinateSystem;if((isNaN(e.x)||isNaN(e.y))&&!l.isArray(e.coord)&&i){var r=p(e,n,i,t);if((e=l.clone(e)).type&&c[e.type]&&r.baseAxis&&r.valueAxis){var o=i.dimensions,a=u(o,r.baseAxis.dim),s=u(o,r.valueAxis.dim);e.coord=c[e.type](n,r.baseDataDim,r.valueDataDim,a,s),e.value=e.coord[s]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}return e},dataFilter:function(t,e){return!(t&&t.containData&&e.coord)||null!=e.x&&null!=e.y||t.containData(e.coord)},dimValueGetter:function(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value},getAxisInfo:p,numCalculate:f}},function(t,e,n){var i=n(1),o=n(43),r=n(109),a=function(t,e,n,i,r){o.call(this,t,e,n),this.type=i||"value",this.position=r||"bottom"};a.prototype={constructor:a,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t=t||(this._labelInterval=r(this))},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},i.inherits(a,o),t.exports=a},function(t,e,n){"use strict";function i(t){return this._axes[t]}var r=n(1),o=function(t){this._axes={},this._dimList=[],this.name=t||""};o.prototype={constructor:o,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return r.map(this._dimList,i,this)},getAxesByScale:function(e){return e=e.toLowerCase(),r.filter(this.getAxes(),function(t){return t.scale.type===e})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var o=n[r],a=this._axes[o];i[o]=a[e](t[o])}return i}},t.exports=o},function(t,e,n){"use strict";function i(t){o.call(this,t)}var r=n(1),o=n(106);i.prototype={constructor:i,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.toGlobalCoord(n.dataToCoord(t[0],e)),i.toGlobalCoord(i.dataToCoord(t[1],e))]},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.coordToData(n.toLocalCoord(t[0]),e),i.coordToData(i.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},r.inherits(i,o),t.exports=i},function(t,e,n){"use strict";n(50);var i=n(10);t.exports=i.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})},function(t,e,n){"use strict";var r=n(1),o=n(23);t.exports=function(t){var e=t.model,n=e.getModel("axisLabel"),i=n.get("interval");return"category"!==t.type||"auto"!==i?"auto"===i?0:i:o.getAxisLabelInterval(r.map(t.scale.getTicks(),t.dataToCoord,t),e.getFormattedLabels(),n.getModel("textStyle").getFont(),t.isHorizontal())}},function(t,e,n){"use strict";function v(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function i(t,e){var c={};d.each(t,function(t,e){var n=t.coordinateSystem,i=n.getBaseAxis(),r=c[i.index]||{remainedWidth:i.getBandWidth(),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:i,stacks:{}},o=r.stacks;c[i.index]=r;var a=v(t);o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.get("barWidth"),l=t.get("barMaxWidth"),u=t.get("barGap"),h=t.get("barCategoryGap");s&&!o[a].width&&(s=Math.min(r.remainedWidth,s),o[a].width=s,r.remainedWidth-=s),l&&(o[a].maxWidth=l),null!=u&&(r.gap=u),null!=h&&(r.categoryGap=h)});var f={};return d.each(c,function(t,n){f[n]={};var e=t.stacks,i=t.axis,r=i.getBandWidth(),o=y(t.categoryGap,r),a=y(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),d.each(e,function(t,e){var n=t.maxWidth;!t.width&&n&&n<u&&(n=Math.min(n,s),s-=n,t.width=n,l--)}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0;d.each(e,function(t,e){t.width||(t.width=u),c+=(h=t).width*(1+a)}),h&&(c-=h.width*a);var p=-c/2;d.each(e,function(t,e){f[n][e]=f[n][e]||{offset:p,width:t.width},p+=t.width*(1+a)})}),f}var d=n(1),r=n(4),y=r.parsePercent;t.exports=function(t,e,n){var r=i(d.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})),g={};e.eachSeriesByType(t,function(t){var u=t.getData(),e=t.coordinateSystem,n=e.getBaseAxis(),h=v(t),i=r[n.index][h],c=i.offset,p=i.width,f=e.getOtherAxis(n),d=t.get("barMinHeight")||0,y=n.onZero?f.toGlobalCoord(f.dataToCoord(0)):f.getGlobalExtent()[0],m=e.dataToPoints(u,!0);g[h]=g[h]||[],u.setLayout({offset:c,size:p}),u.each(f.dim,function(t,e){if(!isNaN(t)){g[h][e]||(g[h][e]={p:y,n:y});var n,i,r,o,a=0<=t?"p":"n",s=m[e],l=g[h][e][a];f.isHorizontal()?(n=l,i=s[1]+c,r=s[0]-l,o=p,Math.abs(r)<d&&(r=(r<0?-1:1)*d),g[h][e][a]+=r):(n=s[0]+c,i=l,r=p,o=s[1]-l,Math.abs(o)<d&&(o=(o<=0?-1:1)*d),g[h][e][a]+=o),u.setItemLayout(e,{x:n,y:i,width:r,height:o})}},!0)},this)}},function(t,e,n){var s=n(3),l=n(1),u=Math.PI;t.exports=function(i,t){t=t||{},l.defaults(t,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var r=new s.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),o=new s.Arc({shape:{startAngle:-u/2,endAngle:-u/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),a=new s.Rect({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*u/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*u/2}).delay(300).start("circularInOut");var e=new s.Group;return e.add(o),e.add(a),e.add(r),e.resize=function(){var t=i.getWidth()/2,e=i.getHeight()/2;o.setShape({cx:t,cy:e});var n=o.shape.r;a.setShape({x:t-n,y:e-n,width:2*n,height:2*n}),r.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},e.resize(),e}},function(t,e,n){function a(t){t=t,this.option={},this.option[l]=1,this._componentsMap={},this._seriesIndices=null,function(t,e){for(var n in e)_.hasClass(n)||("object"==typeof e[n]?t[n]=t[n]?p.merge(t[n],e[n],!1):p.clone(e[n]):null==t[n]&&(t[n]=e[n]))}(t,this._theme.option),p.merge(t,i,!1),this.mergeOption(t)}function r(e,t){p.isArray(t)||(t=t?[t]:[]);var n={};return d(t,function(t){n[t]=(e[t]||[]).slice()}),n}function u(r,t){var a={};d(t,function(t,e){var n=t.exist;n&&(a[n.id]=t)}),d(t,function(t,e){var n=t.option;if(p.assert(!n||null==n.id||!a[n.id]||a[n.id]===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(a[n.id]=t),x(n)){var i=function(t,e,n){return e.type?e.type:n?n.subType:_.determineSubType(t,e)}(r,n,t.exist);t.keyInfo={mainType:r,subType:i}}}),d(t,function(t,e){var n=t.exist,i=t.option,r=t.keyInfo;if(x(i)){if(r.name=null!=i.name?i.name+"":n?n.name:"\0-",n)r.id=n.id;else if(null!=i.id)r.id=i.id+"";else for(var o=0;r.id="\0"+r.name+"\0"+o++,a[r.id];);a[r.id]=t}})}function h(t){return m(t,function(t){return t.componentIndex})||[]}function c(t,e){return e.hasOwnProperty("subType")?y(t,function(t){return t.subType===e.subType}):t}function o(t){if(!t._seriesIndices)throw new Error("Series has not been initialized yet.")}var p=n(1),f=n(7),s=n(12),d=p.each,y=p.filter,m=p.map,g=p.isArray,v=p.indexOf,x=p.isObject,_=n(10),i=n(114),l="\0_ec_inner",w=s.extend({constructor:w,init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new s(n),this._optionManager=i},setOption:function(t,e){p.assert(!(l in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):a.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o.length&&d(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(i){var s=this.option,l=this._componentsMap,n=[];d(i,function(t,e){null!=t&&(_.hasClass(e)?n.push(e):s[e]=null==s[e]?p.clone(t):p.merge(s[e],t,!0))}),_.topologicalTravel(n,_.getAllClassMainTypes(),function(o,t){var e=f.normalizeToArray(i[o]),n=f.mappingToExists(l[o],e);u(o,n);var a=r(l,t);s[o]=[],l[o]=[],d(n,function(t,e){var n=t.exist,i=t.option;if(p.assert(x(i)||n,"Empty component definition"),i){var r=_.getClass(o,t.keyInfo.subType,!0);n&&n instanceof r?n.mergeOption(i,this):n=new r(i,this,this,p.extend({dependentModels:a,componentIndex:e},t.keyInfo)),n.optionUpdated(this)}else n.mergeOption({},this),n.optionUpdated(this);l[o][e]=n,s[o][e]=n.option},this),"series"===o&&(this._seriesIndices=h(l.series))},this)},getOption:function(){var i=p.clone(this.option);return d(i,function(t,e){if(_.hasClass(e)){for(var t=f.normalizeToArray(t),n=t.length-1;0<=n;n--)f.isIdInner(t[n])&&t.splice(n,1);i[e]=t}}),delete i[l],i},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap[t];return n?n[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap[e];if(!a||!a.length)return[];if(null!=i)g(i)||(i=[i]),n=y(m(i,function(t){return a[t]}),function(t){return!!t});else if(null!=r){var s=g(r);n=y(a,function(t){return s&&0<=v(r,t.id)||!s&&t.id===r})}else if(null!=o){var l=g(o);n=y(a,function(t){return l&&0<=v(o,t.name)||!l&&t.name===o})}return c(n,t)},findComponents:function(e){var t=e.query,r=e.mainType,n=function(t){var e=r+"Index",n=r+"Id",i=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(n)||t.hasOwnProperty(i))?{mainType:r,index:t[e],id:t[n],name:t[i]}:null}(t),i=n?this.queryComponents(n):this._componentsMap[r];return function(t){return e.filter?y(t,e.filter):t}(c(i,e))},eachComponent:function(t,i,r){var e=this._componentsMap;if("function"==typeof t)r=i,i=t,d(e,function(t,n){d(t,function(t,e){i.call(r,n,t,e)})});else if(p.isString(t))d(e[t],i,r);else if(x(t)){var n=this.findComponents(t);d(n,i,r)}},getSeriesByName:function(e){var t=this._componentsMap.series;return y(t,function(t){return t.name===e})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(e){var t=this._componentsMap.series;return y(t,function(t){return t.subType===e})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(n,i){o(this),d(this._seriesIndices,function(t){var e=this._componentsMap.series[t];n.call(i,e,t)},this)},eachRawSeries:function(t,e){d(this._componentsMap.series,t,e)},eachSeriesByType:function(n,i,r){o(this),d(this._seriesIndices,function(t){var e=this._componentsMap.series[t];e.subType===n&&i.call(r,e,t)},this)},eachRawSeriesByType:function(t,e,n){return d(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return o(this),p.indexOf(this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){o(this);var n=y(this._componentsMap.series,t,e);this._seriesIndices=h(n)},restoreData:function(){var n=this._componentsMap;this._seriesIndices=h(n.series);var i=[];d(n,function(t,e){i.push(e)}),_.topologicalTravel(i,_.getAllClassMainTypes(),function(t,e){d(n[t],function(t){t.restoreData()})})}});t.exports=w},function(t,e,n){function i(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newOptionBackup}function u(t,e,n){var o={width:e,height:n,aspectratio:e/n},a=!0;return l.each(t,function(t,e){var n=e.match(f);if(n&&n[1]&&n[2]){var i=n[1],r=n[2].toLowerCase();!function(t,e,n){return"min"===n?e<=t:"max"===n?t<=e:t===e}(o[r],t,i)&&(a=!1)}}),a}var l=n(1),o=n(7),a=n(10),h=l.each,c=l.clone,p=l.map,s=l.merge,f=/^(min|max)?(.+)$/;i.prototype={constructor:i,setOption:function(t,e){t=c(t,!0);var n=this._optionBackup,i=this._newOptionBackup=function(t,n){var e,i,r=[],o=[],a=t.timeline;if(t.baseOption&&(i=t.baseOption),(a||t.options)&&(i=i||{},r=(t.options||[]).slice()),t.media){i=i||{};var s=t.media;h(s,function(t){t&&t.option&&(t.query?o.push(t):e=e||t)})}return(i=i||t).timeline||(i.timeline=a),h([i].concat(r).concat(l.map(o,function(t){return t.option})),function(e){h(n,function(t){t(e)})}),{baseOption:i,timelineOptions:r,mediaDefault:e,mediaList:o}}.call(this,t,e);n?(function(r,t){h(t=t||{},function(t,e){if(null!=t){var n=r[e];if(a.hasClass(e)){t=o.normalizeToArray(t),n=o.normalizeToArray(n);var i=o.mappingToExists(n,t);r[e]=p(i,function(t){return t.option&&t.exist?s(t.exist,t.option,!0):t.exist||t.option})}else r[e]=s(n,t,!0)}})}(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=t?this._optionBackup:this._newOptionBackup;return this._timelineOptions=p(e.timelineOptions,c),this._mediaList=p(e.mediaList,c),this._mediaDefault=c(e.mediaDefault),this._currentMediaIndices=[],c(e.baseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=c(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var s=0,l=i.length;s<l;s++)u(i[s].query,e,n)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!function(t,e){return t.join(",")===e.join(",")}(o,this._currentMediaIndices)&&(a=p(o,function(t){return c(-1===t?r.option:i[t].option)})),this._currentMediaIndices=o,a}},t.exports=i},function(t,e){var n="";"undefined"!=typeof navigator&&(n=navigator.platform||""),t.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],grid:{},textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2e3,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}},function(t,e,n){t.exports={getAreaStyle:n(30)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}},function(t,e){t.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(t,e,n){t.exports={getItemStyle:n(30)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}},function(t,e,n){var i=n(30)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getLineStyle:function(t){var e=i.call(this,t),n=this.getLineDash();return n&&(e.lineDash=n),e},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}},function(t,e,n){function i(t,e){return t&&t.getShallow(e)}var r=n(17);t.exports={getTextColor:function(){var t=this.ecModel;return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this.ecModel,e=t&&t.getModel("textStyle");return[this.getShallow("fontStyle")||i(e,"fontStyle"),this.getShallow("fontWeight")||i(e,"fontWeight"),(this.getShallow("fontSize")||i(e,"fontSize")||12)+"px",this.getShallow("fontFamily")||i(e,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get("textStyle")||{};return r.getBoundingRect(t,this.getFont(),e.align,e.baseline)},ellipsis:function(t,e,n){return r.ellipsis(t,this.getFont(),e,n)}}},function(t,e,n){function r(e){u(i,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var o=n(1),a=n(121),i=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],u=o.each;t.exports=function(n){u(n.series,function(t){if(o.isObject(t)){var e=t.type;if(a(t),"pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var n=function(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t,"pointer.color");null!=n&&function(t,e,n,i){e=e.split(",");for(var r,o=t,a=0;a<e.length-1;a++)r=e[a],null==o[r]&&(o[r]={}),o=o[r];!i&&null!=o[e[a]]||(o[e[a]]=n)}(t,"itemStyle.normal.color",n)}for(var i=0;i<l.length;i++)if(l[i]===t.type){r(t);break}}}),n.dataRange&&(n.visualMap=n.dataRange),u(s,function(t){var e=n[t];e&&(o.isArray(e)||(e=[e]),u(e,function(t){r(t)}))})}},function(t,e,n){function s(i){var r=i&&i.itemStyle;r&&l.each(o,function(t){var e=r.normal,n=r.emphasis;e&&e[t]&&(i[t]=i[t]||{},i[t].normal?l.merge(i[t].normal,e[t]):i[t].normal=e[t],e[t]=null),n&&n[t]&&(i[t]=i[t]||{},i[t].emphasis?l.merge(i[t].emphasis,n[t]):i[t].emphasis=n[t],n[t]=null)})}var l=n(1),o=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];t.exports=function(t){if(t){s(t),s(t.markPoint),s(t.markLine);var e=t.data;if(e){for(var n=0;n<e.length;n++)s(e[n]);var i=t.markPoint;if(i&&i.data)for(var r=i.data,n=0;n<r.length;n++)s(r[n]);var o=t.markLine;if(o&&o.data)for(var a=o.data,n=0;n<a.length;n++)l.isArray(a[n])?(s(a[n][0]),s(a[n][1])):s(a[n])}}}},function(t,e){var h={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return e},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return e},nearest:function(t){return t[0]}},c=function(t,e){return Math.round(t.length/2)};t.exports=function(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),n=t.get("sampling"),i=t.coordinateSystem;if("cartesian2d"===i.type&&n){var r,o=i.getBaseAxis(),a=i.getOtherAxis(o),s=o.getExtent(),l=s[1]-s[0],u=Math.round(e.count()/l);1<u&&("string"==typeof n?r=h[n]:"function"==typeof n&&(r=n),r&&(e=e.downSample(a.dim,1/u,r,c),t.setData(e)))}},this)}},function(t,e,n){var i=n(1),r=n(32),a=n(4),o=n(37),s=r.prototype,l=o.prototype,u=Math.floor,h=Math.ceil,c=Math.pow,p=Math.log,f=r.extend({type:"log",getTicks:function(){return i.map(l.getTicks.call(this),function(t){return a.round(c(10,t))})},getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),c(10,t)},setExtent:function(t,e){t=p(t)/p(10),e=p(e)/p(10),l.setExtent.call(this,t,e)},getExtent:function(){var t=s.getExtent.call(this);return t[0]=c(10,t[0]),t[1]=c(10,t[1]),t},unionExtent:function(t){t[0]=p(t[0])/p(10),t[1]=p(t[1])/p(10),s.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=c(10,u(p(n/t)/Math.LN10)),r=t/n*i;r<=.5&&(i*=10);var o=[a.round(h(e[0]/i)*i),a.round(u(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:l.niceExtent});i.each(["contain","normalize"],function(e){f.prototype[e]=function(t){return t=p(t)/p(10),s[e].call(this,t)}}),f.create=function(){return new f},t.exports=f},function(t,e,n){var i=n(1),r=n(32),o=r.prototype,a=r.extend({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t.length-1]},parse:function(t){return"string"==typeof t?i.indexOf(this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._data[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:i.noop,niceExtent:i.noop});a.create=function(){return new a},t.exports=a},function(t,e,n){var i=n(1),c=n(4),r=n(9),o=n(37),a=o.prototype,p=Math.ceil,f=Math.floor,s=864e5,l=o.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return r.formatTime(e[0],n)},niceExtent:function(t,e,n){var i=this._extent;if(i[0]===i[1]&&(i[0]-=s,i[1]+=s),i[1]===-1/0&&i[0]===1/0){var r=new Date;i[1]=new Date(r.getFullYear(),r.getMonth(),r.getDate()),i[0]=i[1]-s}this.niceTicks(t,e,n);var o=this._interval;e||(i[0]=c.round(f(i[0]/o)*o)),n||(i[1]=c.round(p(i[1]/o)*o))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0],i=n/t,r=d.length,o=function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][2]<e?n=1+r:i=r}return n}(d,i,0,r),a=d[Math.min(o,r-1)],s=a[2];if("year"===a[0]){var l=n/s,u=c.nice(l/t,!0);s*=u}var h=[p(e[0]/s)*s,f(e[1]/s)*s];this._stepLvl=a,this._interval=s,this._niceExtent=h},parse:function(t){return+c.parseDate(t)}});i.each(["contain","normalize"],function(e){l.prototype[e]=function(t){return a[e].call(this,this.parse(t))}});var d=[["hh:mm:ss",1,1e3],["hh:mm:ss",5,5e3],["hh:mm:ss",10,1e4],["hh:mm:ss",15,15e3],["hh:mm:ss",30,3e4],["hh:mm\nMM-dd",1,6e4],["hh:mm\nMM-dd",5,3e5],["hh:mm\nMM-dd",10,6e5],["hh:mm\nMM-dd",15,9e5],["hh:mm\nMM-dd",30,18e5],["hh:mm\nMM-dd",1,36e5],["hh:mm\nMM-dd",2,72e5],["hh:mm\nMM-dd",6,216e5],["hh:mm\nMM-dd",12,432e5],["MM-dd\nyyyy",1,s],["week",7,7*s],["month",1,31*s],["quarter",3,8208e6],["half-year",6,16416e6],["year",1,32832e6]];l.create=function(){return new l},t.exports=l},function(t,e){var s={},l="\0__throttleOriginMethod",u="\0__throttleRate";s.throttle=function(i,r,o,a){function t(t){function e(){p=(new Date).getTime(),f=null,(d?i:i[t]).apply(l,u||[])}var n=function(){h=(new Date).getTime(),l=this,u=arguments,s=h-(a?c:p)-r,clearTimeout(f),a?o?f=setTimeout(e,r):0<=s&&e():0<=s?e():o&&(f=setTimeout(e,-s)),c=h};return n.clear=function(){f&&(clearTimeout(f),f=null)},n}var s,l,u,h=(new Date).getTime(),c=0,p=0,f=null,d="function"==typeof i;if(r=r||0,d)return t();for(var e=[],n=0;n<i.length;n++)e[n]=t(n);return e},s.fixRate=function(t,e){return null!=e?s.throttle(t,e,!0,!1):t},s.debounce=function(t,e){return null!=e?s.throttle(t,e,!0,!0):t},s.createOrUpdate=function(t,e,n,i){var r=t[e];if(r&&null!=n&&i){var o=r[l]||r,a=r[u];a!==n&&((r=t[e]=s[i](o,n))[l]=o,r[u]=n)}},s.clear=function(t,e){var n=t[e];n&&n[l]&&(t[e]=n[l])},t.exports=s},function(t,e,n){"use strict";function i(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var r=i.recognize(e,t.findHover(e.zrX,e.zrY,null));if("end"===n&&i.clear(),r){var o=r.type;e.gestureEvent=o,t._dispatchProxy(r.target,o,r.event)}}function o(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t;i;){if(i.silent||i.clipPath&&!i.clipPath.contain(e,n))return!1;i=i.parent}return!0}return!1}function r(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function a(t){return"mousewheel"===t&&s.browser.firefox?"DOMMouseScroll":t}var s=n(15),l=n(33),u=n(1),h=n(155),c=n(139),p=n(21),f=["click","dblclick","mousewheel","mouseout"];f.push("mouseup","mousedown","mousemove");var d=["touchstart","touchend","touchmove"],y=["pointerdown","pointerup","pointermove"],m=l.addEventListener,g=l.removeEventListener,v=l.normalizeEvent,x={mousemove:function(t){var e=(t=v(this.root,t)).zrX,n=t.zrY,i=this.findHover(e,n,null),r=this._hovered;this._hovered=i,this.root.style.cursor=i?i.cursor:this._defaultCursorStyle,r&&i!==r&&r.__zr&&this._dispatchProxy(r,"mouseout",t),this._dispatchProxy(i,"mousemove",t),i&&i!==r&&this._dispatchProxy(i,"mouseover",t)},mouseout:function(t){var e=(t=v(this.root,t)).toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e.parentNode}this._dispatchProxy(this._hovered,"mouseout",t),this.trigger("globalout",{event:t})},touchstart:function(t){t=v(this.root,t),this._lastTouchMoment=new Date,i(this,t,"start"),x.mousemove.call(this,t),x.mousedown.call(this,t),r(this)},touchmove:function(t){i(this,t=v(this.root,t),"change"),x.mousemove.call(this,t),r(this)},touchend:function(t){i(this,t=v(this.root,t),"end"),x.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&x.click.call(this,t),r(this)}};u.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(n){x[n]=function(t){t=v(this.root,t);var e=this.findHover(t.zrX,t.zrY,null);this._dispatchProxy(e,n,t)}});var _=function(n,t,e){function i(t,e){u.each(t,function(t){m(n,a(t),e._handlers[t])},e)}p.call(this),this.root=n,this.storage=t,this.painter=e,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new c,this._handlers=[],this._touching=!1,this._touchTimer,function(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var n=d.concat(y),i=0;i<n.length;i++){var r=n[i];t._handlers[r]=u.bind(x[r],t)}for(i=0;i<f.length;i++)r=f[i],t._handlers[r]=e(x[r],t)}(this),s.touchEventsSupported&&i(d,this),i(f,this),h.call(this)};_.prototype={constructor:_,resize:function(t){this._hovered=null},dispatch:function(t,e){var n=this._handlers[t];n&&n.call(this,e)},dispose:function(){for(var t=this.root,e=f.concat(d),n=0;n<e.length;n++){var i=e[n];g(t,a(i),this._handlers[i])}this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,e,n){for(var i="on"+e,r=function(t,e,n){return{type:t,event:n,target:e,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta}}(e,t,n),o=t;o&&(o[i]&&(r.cancelBubble=o[i].call(o,r)),o.trigger(e,r),o=o.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[i]&&t[i].call(t,r),t.trigger&&t.trigger(e,r)}))},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r=i.length-1;0<=r;r--)if(!i[r].silent&&i[r]!==n&&!i[r].ignore&&o(i[r],t,e))return i[r]}},u.mixin(_,p),u.mixin(_,h),t.exports=_},function(t,e,n){function o(){return!1}function a(t,e,n,i){var r=document.createElement(e),o=n.getWidth(),a=n.getHeight(),s=r.style;return s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",r.width=o*i,r.height=a*i,r.setAttribute("data-zr-dom-id",t),r}var s=n(1),l=n(42),i=function(t,e,n){var i;n=n||l.devicePixelRatio,"string"==typeof t?i=a(t,"canvas",e,n):s.isObject(t)&&(t=(i=t).id),this.id=t;var r=(this.dom=i).style;r&&(i.onselectstart=o,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};i.prototype={constructor:i,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=a("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r.width=t+"px",r.height=e+"px",i.width=t*n,i.height=e*n,1!=n&&this.ctx.scale(n,n),o&&(o.width=t*n,o.height=e*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(t){var e=this.dom,n=this.ctx,i=e.width,r=e.height,o=this.clearColor,a=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/l,r/l)),n.clearRect(0,0,i/l,r/l),o&&(n.save(),n.fillStyle=this.clearColor,n.fillRect(0,0,i/l,r/l),n.restore()),a){var u=this.domBack;n.save(),n.globalAlpha=s,n.drawImage(u,0,0,i/l,r/l),n.restore()}}},t.exports=i},function(t,e,h){"use strict";function n(t){return parseInt(t,10)}function m(t){t.__unusedCount++}function g(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function v(t,e){if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0}function x(t,e){for(var n=0;n<t.length;n++){var i,r=t[n];r.transform&&(i=r.transform,e.transform(i[0],i[1],i[2],i[3],i[4],i[5]));var o=r.path;o.beginPath(e),r.buildPath(o,r.shape),e.clip(),r.transform&&(i=r.invTransform,e.transform(i[0],i[1],i[2],i[3],i[4],i[5]))}}var c=h(42),r=h(1),_=h(45),i=h(8),p=h(128),w=new i(0,0,0,0),b=new i(0,0,0,0),o=function(t,e,n){var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();n=n||{},this.dpr=n.devicePixelRatio||c.devicePixelRatio,this._singleCanvas=i;var r=(this.root=t).style;if(r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,i){var o=t.width,a=t.height;this._width=o,this._height=a;var s=new p(t,this,1);s.initContext(),this._layers={0:s},this._zlevelList=[0]}else{var o=this._getWidth(),a=this._getHeight();this._width=o,this._height=a;var l=document.createElement("div"),u=(this._domRoot=l).style;u.position="relative",u.overflow="hidden",u.width=this._width+"px",u.height=this._height+"px",t.appendChild(l),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};o.prototype={constructor:o,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._paintList(e,t);for(var i=0;i<n.length;i++){var r=n[i],o=this._layers[r];!o.isBuildin&&o.refresh&&o.refresh()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var n,i,r,o,a,s,l=this._width,u=this._height;this.eachBuildinLayer(m);for(var h=null,c=0,p=t.length;c<p;c++){var f=t[c],d=this._singleCanvas?0:f.zlevel;if(i!==d&&(i=d,(n=this.getLayer(i)).isBuildin||_("ZLevel "+i+" has been used by unkown layer "+n.id),r=n.ctx,n.__unusedCount=0,(n.__dirty||e)&&n.clear()),(n.__dirty||e)&&!f.invisible&&0!==f.style.opacity&&f.scale[0]&&f.scale[1]&&(!f.culling||(o=f,a=l,s=u,w.copy(o.getBoundingRect()),o.transform&&w.applyTransform(o.transform),b.width=a,b.height=s,w.intersect(b)))){var y=f.__clipPaths;v(y,h)&&(h&&r.restore(),y&&(r.save(),x(y,r)),h=y),f.beforeBrush&&f.beforeBrush(r),f.brush(r,!1),f.afterBrush&&f.afterBrush(r)}f.__dirty=!1}h&&r.restore(),this.eachBuildinLayer(g)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||((e=new p("zr_"+t,this,this.dpr)).isBuildin=!0,this._layerConfig[t]&&r.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=null,a=-1,s=this._domRoot;if(n[t])_("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.isBuildin||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(0<r&&t>i[0]){for(a=0;a<r-1&&!(i[a]<t&&i[a+1]>t);a++);o=n[i[a]]}if(i.splice(a+1,0,t),o){var l=o.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);n[t]=e}else _("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuildinLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],(n=this._layers[i]).isBuildin&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],(n=this._layers[i]).isBuildin||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,n={};this.eachBuildinLayer(function(t,e){n[e]=t.elCount,t.elCount=0});for(var i=0,r=t.length;i<r;i++){var o=t[i],a=this._singleCanvas?0:o.zlevel,s=e[a];if(s){if(s.elCount++,s.__dirty)continue;s.__dirty=o.__dirty}}this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?r.merge(n[t],e,!0):n[t]=e;var i=this._layers[t];i&&r.merge(i,n[t],!0)}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(r.indexOf(n,t),1))},resize:function(t,e){var n=this._domRoot;if(n.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),n.style.display="",this._width!=t||e!=this._height){for(var i in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers[i].resize(t,e);this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new p("image",this,t.pixelRatio||this.dpr);e.initContext();var n=e.ctx;e.clearColor=t.backgroundColor,e.clear();for(var i=this.storage.getDisplayList(!0),r=0;r<i.length;r++){var o=i[r];o.invisible||(o.beforeBrush&&o.beforeBrush(n),o.brush(n,!1),o.afterBrush&&o.afterBrush(n))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,e=document.defaultView.getComputedStyle(t);return(t.clientWidth||n(e.width)||n(t.style.width))-(n(e.paddingLeft)||0)-(n(e.paddingRight)||0)|0},_getHeight:function(){var t=this.root,e=document.defaultView.getComputedStyle(t);return(t.clientHeight||n(e.height)||n(t.style.height))-(n(e.paddingTop)||0)-(n(e.paddingBottom)||0)|0},_pathToImage:function(t,e,n,i,r){var o=document.createElement("canvas"),a=o.getContext("2d");o.width=n*r,o.height=i*r,a.clearRect(0,0,n*r,i*r);var s={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[0,0,0],e.rotation=0,e.scale=[1,1],e&&e.brush(a);var l=h(46),u=new l({id:t,style:{x:0,y:0,image:o}});return null!=s.position&&(u.position=e.position=s.position),null!=s.rotation&&(u.rotation=e.rotation=s.rotation),null!=s.scale&&(u.scale=e.scale=s.scale),u},_createPathToImage:function(){var r=this;return function(t,e,n,i){return r._pathToImage(t,e,n,i,r.dpr)}}},t.exports=o},function(t,e,n){"use strict";function o(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var a=n(1),s=n(26),i=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};i.prototype={constructor:i,getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen;for(var i=0,r=n.length;i<r;i++)n[i].__renderidx=i;n.sort(o)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.clipPath;if(i&&(i.parent=t,i.updateTransform(),e?(e=e.slice()).push(i):e=[i]),"group"==t.type){for(var r=t._children,o=0;o<r.length;o++){var a=r[o];a.__dirty=t.__dirty||a.__dirty,this._updateAndAddDisplayable(a,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof s&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof s&&n.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var r;r="string"==typeof t?this._elements[t]:t;var o=a.indexOf(this._roots,r);0<=o&&(this.delFromMap(r.id),this._roots.splice(o,1),r instanceof s&&r.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof s&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,n=e[t];return n&&(delete e[t],n instanceof s&&(n.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},t.exports=i},function(t,e,n){"use strict";var i=n(1),r=n(33).Dispatcher,o="undefined"!=typeof window&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},a=n(56),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,r.call(this)};s.prototype={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=i.indexOf(this._clips,t);0<=e&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,n=this._clips,i=n.length,r=[],o=[],a=0;a<i;a++){var s=n[a],l=s.step(t);l&&(r.push(l),o.push(s))}for(var a=0;a<i;)n[a]._needsRemove?(n[a]=n[i-1],n.pop(),i--):a++;i=r.length;for(var a=0;a<i;a++)o[a].fire(r[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},start:function(){var e=this;this._running=!0,this._time=(new Date).getTime(),o(function t(){e._running&&(o(t),e._update())})},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){var n=new a(t,(e=e||{}).loop,e.getter,e.setter);return n}},i.mixin(s,r),t.exports=s},function(t,e,n){function i(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var o=n(133);i.prototype={constructor:i,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(e<0)){e=Math.min(e,1);var n=this.easing,i="string"==typeof n?o[n]:n,r="function"==typeof i?i(e):e;return this.fire("frame",r),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)}},t.exports=i},function(t,e){var n={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}};t.exports=n},function(t,e,n){var f=n(57).normalizeRadian,d=2*Math.PI;t.exports={containStroke:function(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(n<h-u||h+u<n)return!1;if(Math.abs(i-r)%d<1e-4)return!0;if(o){var c=i;i=f(r),r=f(c)}else i=f(i),r=f(r);r<i&&(r+=d);var p=Math.atan2(l,s);return p<0&&(p+=d),i<=p&&p<=r||i<=p+d&&p+d<=r}}},function(t,e,n){var f=n(18);t.exports={containStroke:function(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(e+c<h&&i+c<h&&o+c<h&&s+c<h||h<e-c&&h<i-c&&h<o-c&&h<s-c||t+c<u&&n+c<u&&r+c<u&&a+c<u||u<t-c&&u<n-c&&u<r-c&&u<a-c)return!1;var p=f.cubicProjectPoint(t,e,n,i,r,o,a,s,u,h,null);return p<=c/2}}},function(t,e){t.exports={containStroke:function(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(e+s<a&&i+s<a||a<e-s&&a<i-s||t+s<o&&n+s<o||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n),h=u*u/(l*l+1);return h<=s/2*s/2}}},function(t,e,n){"use strict";function S(t,e,n,i,r,o,a,s,l,u){if(e<u&&i<u&&o<u&&s<u||u<e&&u<i&&u<o&&u<s)return 0;var h,c=x.cubicRootAt(e,i,o,s,u,_);if(0===c)return 0;for(var p,f,d=0,y=-1,m=0;m<c;m++){var g=_[m],v=x.cubicAt(t,n,r,a,g);v<l||(y<0&&(y=x.cubicExtrema(e,i,o,s,w),w[1]<w[0]&&1<y&&(h=w[0],w[0]=w[1],w[1]=h),p=x.cubicAt(e,i,o,s,w[0]),1<y&&(f=x.cubicAt(e,i,o,s,w[1]))),d+=2==y?g<w[0]?p<e?1:-1:g<w[1]?f<p?1:-1:s<f?1:-1:g<w[0]?p<e?1:-1:s<p?1:-1)}return d}function C(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;var l=x.quadraticRootAt(e,i,o,s,_);if(0===l)return 0;var u=x.quadraticExtremum(e,i,o);if(0<=u&&u<=1){for(var h=0,c=x.quadraticAt(e,i,o,u),p=0;p<l;p++){var f=x.quadraticAt(t,n,r,_[p]);f<a||(h+=_[p]<u?c<e?1:-1:o<c?1:-1)}return h}var f=x.quadraticAt(t,n,r,_[0]);return f<a?0:o<e?1:-1}function M(t,e,n,i,r,o,a,s){if(n<(s-=e)||s<-n)return 0;var l=Math.sqrt(n*n-s*s);_[0]=-l,_[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%m<1e-4){r=m;var h=o?1:-1;return a>=_[i=0]+t&&a<=_[1]+t?h:0}if(o){var l=i;i=y(r),r=y(l)}else i=y(i),r=y(r);r<i&&(r+=m);for(var c=0,p=0;p<2;p++){var f=_[p];if(a<f+t){var d=Math.atan2(s,f),h=o?1:-1;d<0&&(d=m+d),(i<=d&&d<=r||i<=d+m&&d+m<=r)&&(d>Math.PI/2&&d<1.5*Math.PI&&(h=-h),c+=h)}}return c}function r(t,e,n,i,r){for(var o=0,a=0,s=0,l=0,u=0,h=0;h<t.length;){var c=t[h++];if(c===T.M&&1<h&&(n||(o+=L(a,s,l,u,i,r)),0!==o))return!0;switch(1==h&&(a=t[h],s=t[h+1],l=a,u=s),c){case T.M:l=t[h++],u=t[h++],a=l,s=u;break;case T.L:if(n){if(R(a,s,t[h],t[h+1],e,i,r))return!0}else o+=L(a,s,t[h],t[h+1],i,r)||0;a=t[h++],s=t[h++];break;case T.C:if(n){if(A.containStroke(a,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,i,r))return!0}else o+=S(a,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],i,r)||0;a=t[h++],s=t[h++];break;case T.Q:if(n){if(E.containStroke(a,s,t[h++],t[h++],t[h],t[h+1],e,i,r))return!0}else o+=C(a,s,t[h++],t[h++],t[h],t[h+1],i,r)||0;a=t[h++],s=t[h++];break;case T.A:var p=t[h++],f=t[h++],d=t[h++],y=t[h++],m=t[h++],g=t[h++],v=(t[h++],1-t[h++]),x=Math.cos(m)*d+p,_=Math.sin(m)*y+f;1<h?o+=L(a,s,x,_,i,r):(l=x,u=_);var w=(i-p)*y/d+p;if(n){if(I.containStroke(p,f,y,m,m+g,v,e,w,r))return!0}else o+=M(p,f,y,m,m+g,v,w,r);a=Math.cos(m+g)*d+p,s=Math.sin(m+g)*y+f;break;case T.R:l=a=t[h++],u=s=t[h++];var b=t[h++],P=t[h++],x=l+b,_=u+P;if(n){if(R(l,u,x,u,e,i,r)||R(x,u,x,_,e,i,r)||R(x,_,l,_,e,i,r)||R(l,_,x,_,e,i,r))return!0}else o+=L(x,u,x,_,i,r),o+=L(l,_,l,u,i,r);break;case T.Z:if(n){if(R(a,s,l,u,e,i,r))return!0}else if(0!==(o+=L(a,s,l,u,i,r)))return!0;a=l,s=u}}return n||function(t,e){return Math.abs(t-e)<O}(s,u)||(o+=L(a,s,l,u,i,r)||0),0!==o}var T=n(27).CMD,i=n(136),A=n(135),E=n(138),I=n(134),y=n(57).normalizeRadian,x=n(18),L=n(75),R=i.containStroke,m=2*Math.PI,O=1e-4,_=[-1,-1,-1],w=[-1,-1];t.exports={contain:function(t,e,n){return r(t,0,!1,e,n)},containStroke:function(t,e,n,i){return r(t,e,!0,n,i)}}},function(t,e,n){var c=n(18);t.exports={containStroke:function(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(e+u<l&&i+u<l&&o+u<l||l<e-u&&l<i-u&&l<o-u||t+u<s&&n+u<s&&r+u<s||s<t-u&&s<n-u&&s<r-u)return!1;var h=c.quadraticProjectPoint(t,e,n,i,r,o,s,l,null);return h<=u/2}}},function(t,e){"use strict";function s(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var n=function(){this._track=[]};n.prototype={constructor:n,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},r=0,o=n.length;r<o;r++){var a=n[r];i.points.push([a.clientX,a.clientY]),i.touches.push(a)}this._track.push(i)}},_recognize:function(t){for(var e in i)if(i.hasOwnProperty(e)){var n=i[e](this._track,t);if(n)return n}}};var i={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&1<r.length&&i&&1<i.length){var o=s(i)/s(r);isFinite(o)||(o=1),e.pinchScale=o;var a=function(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};t.exports=n},function(t,e){var n=function(){this.head=null,this.tail=null,this._len=0},i=n.prototype;i.insert=function(t){var e=new r(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len};var r=function(t){this.value=t,this.next,this.prev},o=function(t){this._list=new n,this._map={},this._maxSize=t||10},a=o.prototype;a.put=function(t,e){var n=this._list,i=this._map;if(null==i[t]){var r=n.len();if(r>=this._maxSize&&0<r){var o=n.head;n.remove(o),delete i[o.key]}var a=n.insert(e);a.key=t,i[t]=a}},a.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},a.clear=function(){this._list.clear(),this._map={}},t.exports=o},function(t,e,n){"use strict";var i=n(1),r=n(16),o=function(t,e,n,i){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,r.call(this,i)};o.prototype={constructor:o,type:"radial",updateCanvasGradient:function(t,e){for(var n=t.getBoundingRect(),i=n.width,r=n.height,o=Math.min(i,r),a=this.x*i+n.x,s=this.y*r+n.y,l=this.r*o,u=e.createRadialGradient(a,s,0,a,s,l),h=this.colorStops,c=0;c<h.length;c++)u.addColorStop(h[c].offset,h[c].color);this.canvasGradient=u}},i.inherits(o,r),t.exports=o},function(t,e){var n,i,s=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],r=function(t){this.extendFrom(t)},o=r.prototype={constructor:r,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(t,e){for(var n=this.fill,i=this.stroke,r=0;r<s.length;r++){var o=s[r];null!=this[o]&&(t[o]=this[o])}if(null!=i){var a=this.lineWidth;t.lineWidth=a/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}null!=n&&(t.fillStyle=n.canvasGradient?n.canvasGradient:n),null!=i&&(t.strokeStyle=i.canvasGradient?i.canvasGradient:i),null!=this.opacity&&(t.globalAlpha=this.opacity)},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!e&&this.hasOwnProperty(n)||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t}};for(i=0;i<s.length;i++)(n=s[i])in o||(o[n]=null);t.exports=r},function(t,e,n){var _=n(5),w=_.min,b=_.max,P=_.scale,S=_.distance,C=_.add;t.exports=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;p<f;p++)w(a,a,t[p]),b(s,s,t[p]);w(a,a,i[0]),b(s,s,i[1])}for(var p=0,f=t.length;p<f;p++){var d=t[p];if(n)r=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){l.push(_.clone(t[p]));continue}r=t[p-1],o=t[p+1]}_.sub(u,o,r),P(u,u,e);var y=S(d,r),m=S(d,o),g=y+m;0!==g&&(y/=g,m/=g),P(h,u,-y),P(c,u,m);var v=C([],d,h),x=C([],d,c);i&&(b(v,v,a),w(v,v,s),b(x,x,a),w(x,x,s)),l.push(v),l.push(x)}return n&&l.push(l.shift()),l}},function(t,e,n){function m(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}var g=n(5);t.exports=function(t,e){for(var n=t.length,i=[],r=0,o=1;o<n;o++)r+=g.distance(t[o-1],t[o]);var a=r/2;a=a<n?n:a;for(var o=0;o<a;o++){var s,l,u,h=o/(a-1)*(e?n:n-1),c=Math.floor(h),p=h-c,f=t[c%n];u=e?(s=t[(c-1+n)%n],l=t[(c+1)%n],t[(c+2)%n]):(s=t[0===c?c:c-1],l=t[n-2<c?n-1:c+1],t[n-3<c?n-1:c+2]);var d=p*p,y=p*d;i.push([m(s[0],f[0],l[0],u[0],p,d,y),m(s[1],f[1],l[1],u[1],p,d,y)])}return i}},function(t,e,n){t.exports=n(6).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)}})},function(t,e,n){"use strict";var i=n(18),c=i.quadraticSubdivide,p=i.cubicSubdivide,r=i.quadraticAt,o=i.cubicAt,f=[];t.exports=n(6).extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(h<1&&(c(n,a,r,h,f),a=f[1],r=f[2],c(i,s,o,h,f),s=f[1],o=f[2]),t.quadraticCurveTo(a,s,r,o)):(h<1&&(p(n,a,l,r,h,f),a=f[1],l=f[2],r=f[3],p(i,s,u,o,h,f),s=f[1],u=f[2],o=f[3]),t.bezierCurveTo(a,s,l,u,r,o)))},pointAt:function(t){var e=this.shape,n=e.cpx2,i=e.cpy2;return null===n||null===i?[r(e.x1,e.cpx1,e.x2,t),r(e.y1,e.cpy1,e.y2,t)]:[o(e.x1,e.cpx1,e.cpx1,e.x2,t),o(e.y1,e.cpy1,e.cpy1,e.y2,t)]}})},function(t,e,n){"use strict";t.exports=n(6).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})},function(t,e,n){t.exports=n(6).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.percent;0!==a&&(t.moveTo(n,i),a<1&&(r=n*(1-a)+r*a,o=i*(1-a)+o*a),t.lineTo(r,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})},function(t,e,n){var i=n(59);t.exports=n(6).extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){i.buildPath(t,e,!0)}})},function(t,e,n){var i=n(59);t.exports=n(6).extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){i.buildPath(t,e,!1)}})},function(t,e,n){var a=n(60);t.exports=n(6).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width,o=e.height;e.r?a.buildPath(t,e):t.rect(n,i,r,o),t.closePath()}})},function(t,e,n){t.exports=n(6).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}})},function(t,e,n){t.exports=n(6).extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),h=Math.sin(a);t.moveTo(u*r+n,h*r+i),t.lineTo(u*o+n,h*o+i),t.arc(n,i,o,a,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,a,l),t.closePath()}})},function(t,e,n){"use strict";var p=n(56),f=n(1),u=f.isString,h=f.isFunction,c=f.isObject,d=n(45),i=function(){this.animators=[]};i.prototype={constructor:i,animate:function(t,e){var n,i=!1,r=this,o=this.__zr;if(t){var a=t.split("."),s=r;i="shape"===a[0];for(var l=0,u=a.length;l<u;l++)s=s&&s[a[l]];s&&(n=s)}else n=r;if(n){var h=r.animators,c=new p(n,e);return c.during(function(t){r.dirty(i)}).done(function(){h.splice(f.indexOf(h,c),1)}),h.push(c),o&&o.animation.addAnimator(c),c}d('Property "'+t+'" is not existed in element '+r.id)},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r){function o(){--s||r&&r()}u(n)?(r=i,i=n,n=0):h(i)?(r=i,i="linear",n=0):h(n)?(r=n,n=0):e=h(e)?(r=e,500):e||500,this.stopAnimation(),this._animateToShallow("",this,t,e,n,i,r);var a=this.animators.slice(),s=a.length;s||r&&r();for(var l=0;l<a.length;l++)a[l].done(o).start(i)},_animateToShallow:function(t,e,n,i,r){var o={},a=0;for(var s in n)if(null!=e[s])c(n[s])&&!f.isArrayLike(n[s])?this._animateToShallow(t?t+"."+s:s,e[s],n[s],i,r):(o[s]=n[s],a++);else if(null!=n[s])if(t){var l={};l[t]={},l[t][s]=n[s],this.attr(l)}else this.attr(s,n[s]);return 0<a&&this.animate(t,!1).when(null==i?500:i,o).delay(r||0),this}},t.exports=i},function(t,e){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}n.prototype={constructor:n,_dragStart:function(t){var e=t.target;e&&e.draggable&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this._dispatchProxy(e,"drag",t.event);var a=this.findHover(n,i,e),s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this._dispatchProxy(s,"dragleave",t.event),a&&a!==s&&this._dispatchProxy(a,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t.exports=n},function(t,e,n){function M(t,e,n,i,r,o,a,s,l,u,h){var c=l*(I/180),p=E(c)*(t-n)/2+C(c)*(e-i)/2,f=-1*C(c)*(t-n)/2+E(c)*(e-i)/2,d=p*p/(a*a)+f*f/(s*s);1<d&&(a*=S(d),s*=S(d));var y=(r===o?-1:1)*S((a*a*(s*s)-a*a*(f*f)-s*s*(p*p))/(a*a*(f*f)+s*s*(p*p)))||0,m=y*a*f/s,g=y*-s*p/a,v=(t+n)/2+E(c)*m-C(c)*g,x=(e+i)/2+C(c)*m+E(c)*g,_=R([1,0],[(p-m)/a,(f-g)/s]),w=[(p-m)/a,(f-g)/s],b=[(-1*p-m)/a,(-1*f-g)/s],P=R(w,b);L(w,b)<=-1&&(P=I),1<=L(w,b)&&(P=0),0===o&&0<P&&(P-=2*I),1===o&&P<0&&(P+=2*I),h.addData(u,v,x,a,s,_,P,c,o)}function i(t,e){var n,i=function(t){if(!t)return[];var e,n=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e<A.length;e++)n=n.replace(new RegExp(A[e],"g"),"|"+A[e]);var i,r=n.split("|"),o=0,a=0,s=new T,l=T.CMD;for(e=1;e<r.length;e++){var u,h=r[e],c=h.charAt(0),p=0,f=h.slice(1).replace(/e,-/g,"e-").split(",");0<f.length&&""===f[0]&&f.shift();for(var d=0;d<f.length;d++)f[d]=parseFloat(f[d]);for(;p<f.length&&!isNaN(f[p])&&!isNaN(f[0]);){var y,m,g,v,x,_,w,b=o,P=a;switch(c){case"l":o+=f[p++],a+=f[p++],u=l.L,s.addData(u,o,a);break;case"L":o=f[p++],a=f[p++],u=l.L,s.addData(u,o,a);break;case"m":o+=f[p++],a+=f[p++],u=l.M,s.addData(u,o,a),c="l";break;case"M":o=f[p++],a=f[p++],u=l.M,s.addData(u,o,a),c="L";break;case"h":o+=f[p++],u=l.L,s.addData(u,o,a);break;case"H":o=f[p++],u=l.L,s.addData(u,o,a);break;case"v":a+=f[p++],u=l.L,s.addData(u,o,a);break;case"V":a=f[p++],u=l.L,s.addData(u,o,a);break;case"C":u=l.C,s.addData(u,f[p++],f[p++],f[p++],f[p++],f[p++],f[p++]),o=f[p-2],a=f[p-1];break;case"c":u=l.C,s.addData(u,f[p++]+o,f[p++]+a,f[p++]+o,f[p++]+a,f[p++]+o,f[p++]+a),o+=f[p-2],a+=f[p-1];break;case"S":y=o,m=a;var S=s.len(),C=s.data;i===l.C&&(y+=o-C[S-4],m+=a-C[S-3]),u=l.C,b=f[p++],P=f[p++],o=f[p++],a=f[p++],s.addData(u,y,m,b,P,o,a);break;case"s":y=o,m=a,S=s.len(),C=s.data,i===l.C&&(y+=o-C[S-4],m+=a-C[S-3]),u=l.C,b=o+f[p++],P=a+f[p++],o+=f[p++],a+=f[p++],s.addData(u,y,m,b,P,o,a);break;case"Q":b=f[p++],P=f[p++],o=f[p++],a=f[p++],u=l.Q,s.addData(u,b,P,o,a);break;case"q":b=f[p++]+o,P=f[p++]+a,o+=f[p++],a+=f[p++],u=l.Q,s.addData(u,b,P,o,a);break;case"T":y=o,m=a,S=s.len(),C=s.data,i===l.Q&&(y+=o-C[S-4],m+=a-C[S-3]),o=f[p++],a=f[p++],u=l.Q,s.addData(u,y,m,o,a);break;case"t":y=o,m=a,S=s.len(),C=s.data,i===l.Q&&(y+=o-C[S-4],m+=a-C[S-3]),o+=f[p++],a+=f[p++],u=l.Q,s.addData(u,y,m,o,a);break;case"A":g=f[p++],v=f[p++],x=f[p++],_=f[p++],w=f[p++],b=o,P=a,o=f[p++],a=f[p++],u=l.A,M(b,P,o,a,_,w,g,v,x,u,s);break;case"a":g=f[p++],v=f[p++],x=f[p++],_=f[p++],w=f[p++],b=o,P=a,o+=f[p++],a+=f[p++],u=l.A,M(b,P,o,a,_,w,g,v,x,u,s)}}"z"!==c&&"Z"!==c||(u=l.Z,s.addData(u)),i=u}return s.toStatic(),s}(t);return(e=e||{}).buildPath=function(t){t.setData(i.data),n&&r(t,n);var e=t.getContext();e&&t.rebuildPath(e)},e.applyTransform=function(t){n=n||o.create(),o.mul(n,t,n)},e}var s=n(6),T=n(27),r=n(157),o=n(19),A=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],S=Math.sqrt,C=Math.sin,E=Math.cos,I=Math.PI,a=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},L=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e))},R=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(L(t,e))};t.exports={createFromString:function(t,e){return new s(i(t,e))},extendFromString:function(t,e){return s.extend(i(t,e))},mergePath:function(t,e){var n,i,r=[],o=t.length;for(i=0;i<o;i++)(n=t[i]).__dirty&&n.buildPath(n.path,n.shape),r.push(n.path);var a=new s(e);return a.buildPath=function(t){t.appendPath(r);var e=t.getContext();e&&t.rebuildPath(e)},a}}},function(t,e,n){var _=n(27).CMD,i=n(5),w=i.applyTransform,b=[[],[],[]],P=Math.sqrt,S=Math.atan2;t.exports=function(t,e){var n,i,r,o,a,s=t.data,l=_.M,u=_.C,h=_.L,c=_.R,p=_.A,f=_.Q;for(o=r=0;r<s.length;){switch(n=s[r++],o=r,i=0,n){case l:case h:i=1;break;case u:i=3;break;case f:i=2;break;case p:var d=e[4],y=e[5],m=P(e[0]*e[0]+e[1]*e[1]),g=P(e[2]*e[2]+e[3]*e[3]),v=S(-e[1]/g,e[0]/m);s[r++]+=d,s[r++]+=y,s[r++]*=m,s[r++]*=g,s[r++]+=v,s[r++]+=v,o=r+=2;break;case c:x[0]=s[r++],x[1]=s[r++],w(x,x,e),s[o++]=x[0],s[o++]=x[1],x[0]+=s[r++],x[1]+=s[r++],w(x,x,e),s[o++]=x[0],s[o++]=x[1]}for(a=0;a<i;a++){var x=b[a];x[0]=s[r++],x[1]=s[r++],w(x,x,e),s[o++]=x[0],s[o++]=x[1]}}}},function(t,e,n){if(!n(15).canvasSupported){var i,r="urn:schemas-microsoft-com:vml",o=window,a=o.document,s=!1;try{a.namespaces.zrvml||a.namespaces.add("zrvml",r),i=function(t){return a.createElement("<zrvml:"+t+' class="zrvml">')}}catch(t){i=function(t){return a.createElement("<"+t+' xmlns="'+r+'" class="zrvml">')}}t.exports={doc:a,initVML:function(){if(!s){s=!0;var t=a.styleSheets;t.length<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}},createNode:i}}},,function(t,e,n){function i(t,e,n){d.call(this),this.type=t,this.zr=e,this.opt=y.clone(n),this.group=new m.Group,this._containerRect=null,this._track=[],this._dragging,this._cover,this._disabled=!0,this._handlers={mousedown:g(a,this),mousemove:g(s,this),mouseup:g(l,this)},v(S,function(t){this.zr.on(t,this._handlers[t])},this)}function o(t,e){var n=this.group.transformCoordToLocal(t,e);return!this._containerRect||this._containerRect.contain(n[0],n[1])}function r(t){var e=t.event;e.preventDefault&&e.preventDefault()}function a(t){if(!(this._disabled||t.target&&t.target.draggable)){r(t);var e=t.offsetX,n=t.offsetY;o.call(this,e,n)&&(this._dragging=!0,this._track=[[e,n]])}}function s(t){this._dragging&&!this._disabled&&(r(t),u.call(this,t))}function l(t){this._dragging&&!this._disabled&&(r(t),u.call(this,t,!0),this._dragging=!1,this._track=[])}function u(t,e){var n=t.offsetX,i=t.offsetY;if(o.call(this,n,i)){this._track.push([n,i]);var r=function(){var t=this._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],r=e[1]-n[1];return w(i*i+r*r,.5)>P}.call(this)?C[this.type].getRanges.call(this):[];h.call(this,r),this.trigger("selected",y.clone(r)),e&&this.trigger("selectEnd",y.clone(r))}}function h(t){var e=C[this.type];t&&t.length?(this._cover||(this._cover=e.create.call(this),this.group.add(this._cover)),e.update.call(this,t)):(this.group.remove(this._cover),this._cover=null),function(t){t.traverse(function(t){t.z=b})}(this.group)}function c(){var t=this.group,e=t.parent;e&&e.remove(t)}function p(){var t=this.opt;return new m.Rect({style:{stroke:t.stroke,fill:t.fill,lineWidth:t.lineWidth,opacity:t.opacity}})}function f(){var t=function(){return y.map(this._track,function(t){return this.group.transformCoordToLocal(t[0],t[1])},this)}.call(this),e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}var d=n(21),y=n(1),m=n(3),g=y.bind,v=y.each,x=Math.min,_=Math.max,w=Math.pow,b=1e4,P=2,S=["mousedown","mousemove","mouseup"];i.prototype={constructor:i,enable:function(t,e){this._disabled=!1,c.call(this),this._containerRect=!1!==e?e||t.getBoundingRect():null,t.add(this.group)},update:function(t){h.call(this,t&&y.clone(t))},disable:function(){this._disabled=!0,c.call(this)},dispose:function(){this.disable(),v(S,function(t){this.zr.off(t,this._handlers[t])},this)}},y.mixin(i,d);var C={line:{create:p,getRanges:function(){var t=f.call(this),e=x(t[0][0],t[1][0]),n=_(t[0][0],t[1][0]);return[[e,n]]},update:function(t){var e=t[0],n=this.opt.width;this._cover.setShape({x:e[0],y:-n/2,width:e[1]-e[0],height:n})}},rect:{create:p,getRanges:function(){var t=f.call(this),e=[x(t[1][0],t[0][0]),x(t[1][1],t[0][1])],n=[_(t[1][0],t[0][0]),_(t[1][1],t[0][1])];return[[[e[0],n[0]],[e[1],n[1]]]]},update:function(t){var e=t[0];this._cover.setShape({x:e[0][0],y:e[1][0],width:e[0][1]-e[0][0],height:e[1][1]-e[1][0]})}}};t.exports=i},function(t,e,n){function i(){this.group=new r.Group,this._symbolEl=new s({silent:!0})}var r=n(3),o=n(24),a=n(1),s=r.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var n=e.points,i=e.sizes,r=this.symbolProxy,o=r.shape,a=0;a<n.length;a++){var s=n[a],l=i[a];l[0]<4?t.rect(s[0]-l[0]/2,s[1]-l[1]/2,l[0],l[1]):(o.x=s[0]-l[0]/2,o.y=s[1]-l[1]/2,o.width=l[0],o.height=l[1],r.buildPath(t,o))}}}),l=i.prototype;l.updateData=function(n){this.group.removeAll();var t=this._symbolEl,e=n.hostModel;t.setShape({points:n.mapArray(n.getItemLayout),sizes:n.mapArray(function(t){var e=n.getItemVisual(t,"symbolSize");return a.isArray(e)||(e=[e,e]),e})}),t.symbolProxy=o.createSymbol(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor,t.setStyle(e.getModel("itemStyle.normal").getItemStyle(["color"]));var i=n.getVisual("color");i&&t.setColor(i),this.group.add(this._symbolEl)},l.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},l.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){var i=n(3),r=i.Line.prototype,o=i.BezierCurve.prototype;t.exports=i.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(null==e.cpx1||null==e.cpy1?r:o).buildPath(t,e)},pointAt:function(t){var e=this.shape;return null==e.cpx1||null==e.cpy1?r.pointAt.call(this,t):o.pointAt.call(this,t)}})},function(t,e,n){var i=n(1),r=n(2);n(164),n(165),r.registerVisualCoding("chart",i.curry(n(44),"scatter","circle",null)),r.registerLayout(i.curry(n(53),"scatter")),n(34)},function(t,e,n){"use strict";var i=n(36),r=n(13);t.exports=r.extend({type:"series.scatter",dependencies:["grid","polar"],getInitialData:function(t,e){var n=i(t.data,this,e);return n},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,geoIndex:0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(t,e,n){var i=n(38),r=n(161);n(2).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new i,this._largeSymbolDraw=new r},render:function(t,e,n){var i=t.getData(),r=this._largeSymbolDraw,o=this._normalSymbolDraw,a=this.group,s=t.get("large")&&i.count()>t.get("largeThreshold")?r:o;(this._symbolDraw=s).updateData(i),a.add(s.group),a.remove(s===r?o.group:r.group)},updateLayout:function(t){this._symbolDraw.updateLayout(t)},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e,!0)}})},function(t,e,n){n(101),n(39),n(40),n(172),n(173),n(168),n(169),n(99),n(98)},function(t,e,n){function i(e,r,t){var n=t.getAxisModel(),o=n.axis.scale,a=[0,100],s=[e.start,e.end],l=[];return function(i,r,o){h(["min","max"],function(t,e){var n=r.get(t,!0);null!=n&&(n+"").toLowerCase()!=="data"+t&&(i[e]=o.parse(n))}),r.get("scale",!0)||(0<i[0]&&(i[0]=0),i[1]<0&&(i[1]=0))}(r=r.slice(),n,o),h(["startValue","endValue"],function(t){l.push(null!=e[t]?o.parse(e[t]):null)}),h([0,1],function(e){function t(t){return Math[0===e?"floor":"ceil"](1e12*t)/1e12}var n=l[e],i=s[e];null!=i||null==n?(null==i&&(i=a[e]),n=o.parse(u.linearMap(i,a,r,!0))):i=u.linearMap(n,r,a,!0),l[e]=t(n),s[e]=t(i)}),{valueWindow:c(l),percentWindow:c(s)}}function r(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=e||0===i[0]&&100===i[1],a=!e&&u.getPixelPrecision(r,[0,500]),s=!(e||a<20&&0<=a),l=e||o||s;n.setRange&&n.setRange(l?null:+r[0].toFixed(a),l?null:+r[1].toFixed(a))}}var o=n(1),u=n(4),h=o.each,c=u.asc,a=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this.ecModel=i,this._dataZoomModel=n};a.prototype={constructor:a,hostedBy:function(t){return this._dataZoomModel===t},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[];return this.ecModel.eachSeries(function(t){this._axisIndex===t.get(this._dimName+"AxisIndex")&&e.push(t)},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel(),a="x"===i||"y"===i;return t=a?(e="gridIndex","x"===i?"y":"x"):(e="polarIndex","angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)}),n},reset:function(t){if(t===this._dataZoomModel){var e=this._dataExtent=function(e,t){var i=[1/0,-1/0];return h(t,function(t){var n=t.getData();n&&h(t.coordDimToDataDim(e),function(t){var e=n.getDataExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})},this),i}(this._dimName,this.getTargetSeriesModels()),n=i(t.option,e,this);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,r(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,r(this,!0))},filterData:function(t){function i(t){return t>=n[0]&&t<=n[1]}if(t===this._dataZoomModel){var r=this._dimName,e=this.getTargetSeriesModels(),o=t.get("filterMode"),n=this._valueWindow,a=this.getOtherAxisModel();t.get("$fromToolbox")&&a&&"category"===a.get("type")&&(o="empty"),h(e,function(e){var n=e.getData();n&&h(e.coordDimToDataDim(r),function(t){"empty"===o?e.setData(n.map(t,function(t){return i(t)?t:NaN})):n.filterSelf(t,i)})})}}},t.exports=a},function(t,e,n){t.exports=n(39).extend({type:"dataZoom.inside",defaultOption:{zoomLock:!1}})},function(t,e,n){function h(t,e,n){var i=e.axis,r=n.rect,o={};return"x"===i.dim?(o.pixel=t[0],o.pixelLength=r.width,o.pixelStart=r.x,o.signal=i.inverse?1:-1):(o.pixel=t[1],o.pixelLength=r.height,o.pixelStart=r.y,o.signal=i.inverse?-1:1),o}var i=n(40),a=n(1),s=n(71),l=n(174),u=a.bind,c=i.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(n,t,i,e){c.superApply(this,"render",arguments),l.shouldRecordRange(e,n.id)&&(this._range=n.getPercentRange());var r=this.getTargetInfo().cartesians,o=a.map(r,function(t){return l.generateCoordId(t.model)});a.each(r,function(t){var e=t.model;l.register(i,{coordId:l.generateCoordId(e),allCoordIds:o,coordinateSystem:e.coordinateSystem,dataZoomId:n.id,throttleRage:n.get("throttle",!0),panGetRange:u(this._onPan,this,t),zoomGetRange:u(this._onZoom,this,t)})},this)},remove:function(){l.unregister(this.api,this.dataZoomModel.id),c.superApply(this,"remove",arguments),this._range=null},dispose:function(){l.unregister(this.api,this.dataZoomModel.id),c.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,n,i){return this._range=function(t,e,n,i){e=e.slice();var r=i.axisModels[0];if(r){var o=h(t,r,n),a=o.signal*(e[1]-e[0])*o.pixel/o.pixelLength;return s(a,e,[0,100],"rigid"),e}}([n,i],this._range,e,t)},_onZoom:function(t,e,n,i,r){var o=this.dataZoomModel;return o.option.zoomLock?this._range:this._range=function(t,e,n,i,r){n=n.slice();var o,a,s=r.axisModels[0];if(s){var l=h(e,s,i),u=(l.pixel-l.pixelStart)/l.pixelLength*(n[1]-n[0])+n[0];return t=Math.max(t,0),n[0]=(n[0]-u)*t+u,n[1]=(n[1]-u)*t+u,a=[0,100],(o=n)[0]<=a[1]||(o[0]=a[1]),o[1]<=a[1]||(o[1]=a[1]),o[0]>=a[0]||(o[0]=a[0]),o[1]>=a[0]||(o[1]=a[0]),o}}(1/n,[i,r],this._range,e,t)}});t.exports=c},function(t,e,n){var i=n(39);t.exports=i.extend({type:"dataZoom.select"})},function(t,e,n){t.exports=n(40).extend({type:"dataZoom.select"})},function(t,e,n){var i=n(39),r=(n(11),n(1),i.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#ddd",fillerColor:"rgba(47,69,84,0.15)",handleColor:"rgba(148,164,165,0.95)",handleSize:10,labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}},mergeOption:function(t){r.superApply(this,"mergeOption",arguments)}}));t.exports=r},function(t,e,n){var l=n(1),f=n(3),r=n(126),i=n(40),o=f.Rect,a=n(4),d=a.linearMap,s=n(11),u=n(71),h=a.asc,c=l.bind,p=Math.round,y=Math.max,m=l.each,g="horizontal",v=["line","bar","candlestick","scatter"],x=i.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._halfHandleSize,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){return x.superApply(this,"render",arguments),r.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),this._halfHandleSize=p(t.get("handleSize")/2),!1===this.dataZoomModel.get("show")?void this.group.removeAll():(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),void this._updateView())},remove:function(){x.superApply(this,"remove",arguments),r.clear(this,"_dispatchZoomAction")},dispose:function(){x.superApply(this,"dispose",arguments),r.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new f.Group;this._renderBackground(),this._renderDataShadow(),this._renderHandle(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},r=this._orient===g?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=s.getLayoutParams(t.option);l.each(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=r[t])});var a=s.getLayoutRect(o,i,t.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==g||r?n===g&&r?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==n||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.position[0]=e.x-s.x,t.position[1]=e.y-s.y},_getViewExtent:function(){var t=this._halfHandleSize,e=y(this._size[0],4*t),n=[t,e-t];return n},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new o({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")}}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim,o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s=[0,e[1]],l=[0,e[0]],u=[[e[0],0],[0,0]],h=l[1]/(i.count()-1),c=0,p=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(0<p&&e%p)c+=h;else{var n=null==t||isNaN(t)||""===t?null:d(t,o,s,!0);null!=n&&u.push([c,n]),c+=h}}),this._displayables.barGroup.add(new f.Polyline({shape:{points:u},style:{fill:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:0},silent:!0,z2:-20}))}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,o=e.get("showDataShadow");if(!1!==o){var a,s=this.ecModel;return e.eachTargetAxis(function(i,r){var t=e.getAxisProxy(i.name,r).getTargetSeriesModels();l.each(t,function(t){if(!(a||!0!==o&&l.indexOf(v,t.get("type"))<0)){var e=function(t){return"x"===t?"y":"x"}(i.name),n=s.getComponent(i.axis,r).axis;a={thisAxis:n,series:t,thisDim:i.name,otherDim:e,otherAxisInverse:t.coordinateSystem.getOtherAxis(n).inverse}}},this)},this),a}},_renderHandle:function(){var t=this._displayables,n=t.handles=[],i=t.handleLabels=[],r=this._displayables.barGroup,e=this._size;r.add(t.filler=new o({draggable:!0,cursor:"move",drift:c(this._onDragMove,this,"all"),ondragend:c(this._onDragEnd,this),onmouseover:c(this._showDataInfo,this,!0),onmouseout:c(this._showDataInfo,this,!1),style:{fill:this.dataZoomModel.get("fillerColor"),textPosition:"inside"}})),r.add(new o(f.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{stroke:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),m([0,1],function(t){r.add(n[t]=new o({style:{fill:this.dataZoomModel.get("handleColor")},cursor:"move",draggable:!0,drift:c(this._onDragMove,this,t),ondragend:c(this._onDragEnd,this),onmouseover:c(this._showDataInfo,this,!0),onmouseout:c(this._showDataInfo,this,!1)}));var e=this.dataZoomModel.textStyleModel;this.group.add(i[t]=new f.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:e.getTextColor(),textFont:e.getFont()}}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[d(t[0],[0,100],e,!0),d(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this._handleEnds,i=this._getViewExtent();u(e,n,i,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=h([d(n[0],i,[0,100],!0),d(n[1],i,[0,100],!0)])},_updateView:function(){var n=this._displayables,i=this._handleEnds,t=h(i.slice()),r=this._size,o=this._halfHandleSize;m([0,1],function(t){var e=n.handles[t];e.setShape({x:i[t]-o,y:-1,width:2*o,height:r[1]+2,r:1})},this),n.filler.setShape({x:t[0],y:0,width:t[1]-t[0],height:this._size[1]}),this._updateDataInfo()},_updateDataInfo:function(){function t(t){var e=f.getTransform(o.handles[t],this.group),n=f.transformDirection(0===t?"right":"left",e),i=this._halfHandleSize+5,r=f.applyTransform([u[t]+(0===t?-i:i),this._size[1]/2],e);a[t].setStyle({x:r[0],y:r[1],textVerticalAlign:s===g?"middle":n,textAlign:s===g?n:"center",text:l[t]})}var n,i,r=this.dataZoomModel,o=this._displayables,a=o.handleLabels,s=this._orient,l=["",""];r.get("showDetail")&&(r.eachTargetAxis(function(t,e){n||(n=r.getAxisProxy(t.name,e).getDataValueWindow(),i=this.ecModel.getComponent(t.axis,e).axis)},this),n&&(l=[this._formatLabel(n[0],i),this._formatLabel(n[1],i)]));var u=h(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter");if(l.isFunction(i))return i(t);var r=n.get("labelPrecision");return null!=r&&"auto"!==r||(r=e.getPixelPrecision()),t=null==t&&isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20)),l.isString(i)&&(t=i.replace("{value}",t)),t},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=this._applyBarTransform([e,n],!0);this._updateInterval(t,i[0]),this._updateView(),this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var n=this._displayables.barGroup.getLocalTransform();return f.applyTransform(t,n,e)},_findCoordRect:function(){var t,e=this.getTargetInfo();if(e.cartesians.length)t=e.cartesians[0].model.coordinateSystem.getRect();else{var n=this.api.getWidth(),i=this.api.getHeight();t={x:.2*n,y:.2*i,width:.6*n,height:.6*i}}return t}});t.exports=x},function(t,e,n){function a(t){var e=t.getZr();return e[i]||(e[i]={})}function s(n){c.each(n,function(t,e){t.count||(t.controller.off("pan").off("zoom"),delete n[e])})}function l(e,n,i){o(e,function(t){return t.panGetRange(e.controller,n,i)})}function u(e,n,i,r){o(e,function(t){return t.zoomGetRange(e.controller,n,i,r)})}function o(t,n){var i=[];c.each(t.dataZoomInfos,function(t){var e=n(t);e&&i.push({dataZoomId:t.dataZoomId,start:e[0],end:e[1]})}),t.dispatchAction(i)}function h(t,e){t.dispatchAction({type:"dataZoom",batch:e})}var c=n(1),p=n(70),f=n(126),d=c.curry,i="\0_ec_dataZoom_roams",r={register:function(t,i){var e=a(t),r=i.dataZoomId,o=i.coordId;c.each(e,function(t,e){var n=t.dataZoomInfos;n[r]&&c.indexOf(i.allCoordIds,o)<0&&(delete n[r],t.count--)}),s(e);var n=e[o];n||((n=e[o]={coordId:o,dataZoomInfos:{},count:0}).controller=function(t,e,n){var i=new p(t.getZr());return i.enable(),i.on("pan",d(l,n)),i.on("zoom",d(u,n)),i}(t,0,n),n.dispatchAction=c.curry(h,t)),n.controller.rect=i.coordinateSystem.getRect().clone(),f.createOrUpdate(n,"dispatchAction",i.throttleRate,"fixRate"),n.dataZoomInfos[r]||n.count++,n.dataZoomInfos[r]=i},unregister:function(t,n){var e=a(t);c.each(e,function(t){var e=t.dataZoomInfos;e[n]&&(delete e[n],t.count--)}),s(e)},shouldRecordRange:function(t,e){if(t&&"dataZoom"===t.type&&t.batch)for(var n=0,i=t.batch.length;n<i;n++)if(t.batch[n].dataZoomId===e)return!1;return!0},generateCoordId:function(t){return t.type+"\0_"+t.id}};t.exports=r},function(t,e,n){n(101),n(39),n(40),n(170),n(171),n(99),n(98)},function(t,e,n){n(177),n(179),n(178);var i=n(2);i.registerProcessor("filter",n(180))},function(t,e,n){"use strict";var r=n(1),i=n(12),o=n(2).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateData(n);var i=this._data,r=this.option.selected;if(i[0]&&"single"===this.get("selectedMode")){var o=!1;for(var a in r)r[a]&&(this.select(a),o=!0);o||this.select(i[0].get("name"))}},mergeOption:function(t){o.superCall(this,"mergeOption",t),this._updateData(this.ecModel)},_updateData:function(t){var e=r.map(this.get("data")||[],function(t){return"string"==typeof t&&(t={name:t}),new i(t,this,this.ecModel)},this);this._data=e;var n=r.map(t.getSeries(),function(t){return t.name});t.eachSeries(function(t){if(t.legendDataProvider){var e=t.legendDataProvider();n=n.concat(e.mapArray(e.getName))}}),this._availableNames=n},getData:function(){return this._data},select:function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;r.each(i,function(t){e[t.get("name")]=!1})}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(t in e&&!e[t])&&0<=r.indexOf(this._availableNames,t)},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0}});t.exports=o},function(t,e,n){function y(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function m(t,e,n){t.get("legendHoverLink")&&n.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function g(t,e,n){t.get("legendHoverLink")&&n.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var i=n(1),x=n(24),_=n(3),r=n(103),v=i.curry;t.exports=n(2).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(l,u,h){var c=this.group;if(c.removeAll(),l.get("show")){var p=l.get("selectedMode"),f=l.get("align");"auto"===f&&(f="right"===l.get("left")&&"vertical"===l.get("orient")?"right":"left");var d={};i.each(l.getData(),function(o){var a=o.get("name");if(""!==a&&"\n"!==a){var t=u.getSeriesByName(a)[0];if(!d[a])if(t){var e=t.getData(),n=e.getVisual("color");"function"==typeof n&&(n=n(t.getDataParams(0)));var i=e.getVisual("legendSymbol")||"roundRect",r=e.getVisual("symbol"),s=this._createItem(a,o,l,i,r,f,n,p);s.on("click",v(y,a,h)).on("mouseover",v(m,t,"",h)).on("mouseout",v(g,t,"",h)),d[a]=!0}else u.eachRawSeries(function(t){if(!d[a]&&t.legendDataProvider){var e=t.legendDataProvider(),n=e.indexOfName(a),i=e.getItemVisual(n,"color"),r=this._createItem(a,o,l,"roundRect",null,f,i,p);r.on("click",v(y,a,h)).on("mouseover",v(m,t,a,h)).on("mouseout",v(g,t,a,h)),d[a]=!0}},this)}else c.add(new _.Group({newline:!0}))},this),r.layout(c,l,h),r.addBackground(c,l)}},_createItem:function(t,e,n,i,r,o,a,s){var l=n.get("itemWidth"),u=n.get("itemHeight"),h=n.isSelected(t),c=new _.Group,p=e.getModel("textStyle"),f=e.get("icon");if(i=f||i,c.add(x.createSymbol(i,0,0,l,u,h?a:"#ccc")),!f&&r&&(r!==i||"none"==r)){var d=.8*u;"none"===r&&(r="circle"),c.add(x.createSymbol(r,(l-d)/2,(u-d)/2,d,d,h?a:"#ccc"))}var y="left"===o?l+5:-5,m=o,g=n.get("formatter");"string"==typeof g&&g?t=g.replace("{name}",t):"function"==typeof g&&(t=g(t));var v=new _.Text({style:{text:t,x:y,y:u/2,fill:h?p.getTextColor():"#ccc",textFont:p.getFont(),textAlign:m,textVerticalAlign:"middle"}});return c.add(v),c.add(new _.Rect({shape:c.getBoundingRect(),invisible:!0})),c.eachChild(function(t){t.silent=!s}),this.group.add(c),_.setHoverStyle(c),c}})},function(t,e,n){function i(e,n,t){var r,o={},a="toggleSelected"===e;return t.eachComponent("legend",function(i){a&&null!=r?i[r?"select":"unSelect"](n.name):(i[e](n.name),r=i.isSelected(n.name));var t=i.getData();s.each(t,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);o[e]=e in o?o[e]&&n:n}})}),{name:n.name,selected:o}}var r=n(2),s=n(1);r.registerAction("legendToggleSelect","legendselectchanged",s.curry(i,"toggleSelected")),r.registerAction("legendSelect","legendselected",s.curry(i,"select")),r.registerAction("legendUnSelect","legendunselected",s.curry(i,"unSelect"))},function(t,e){t.exports=function(t){var n=t.findComponents({mainType:"legend"});n&&n.length&&t.filterSeries(function(t){for(var e=0;e<n.length;e++)if(!n[e].isSelected(t.name))return!1;return!0})}},function(t,e,n){n(183),n(184),n(2).registerPreprocessor(function(t){t.markLine=t.markLine||{}})},function(t,e,n){n(185),n(186),n(2).registerPreprocessor(function(t){t.markPoint=t.markPoint||{}})},function(t,e,n){var a=n(7),s=n(2).extendComponentModel({type:"markLine",dependencies:["series","grid","polar"],init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n),this.mergeOption(t,n,i.createdBySelf,!0)},mergeOption:function(t,r,e,o){e||r.eachSeries(function(t){var e=t.get("markLine"),n=t.markLineModel;if(e&&e.data){if(n)n.mergeOption(e,r,!0);else{o&&a.defaultEmphasis(e.label,["position","show","textStyle","distance","formatter"]);var i={seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0};n=new s(e,this,r,i)}t.markLineModel=n}else t.markLineModel=null},this)},defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});t.exports=s},function(t,e,n){function m(t,e){return w.dataFilter(t,e[0])&&w.dataFilter(t,e[1])}function g(t,e,n,i,r,o,a){var s,l=o.coordinateSystem,u=t.getItemModel(e),h=u.get("x"),c=u.get("y");if(null!=h&&null!=c)s=[_.parsePercent(h,a.getWidth()),_.parsePercent(c,a.getHeight())];else{if(o.getMarkerPosition)s=o.getMarkerPosition(t.getValues(t.dimensions,e));else{var p=l.dimensions,f=t.get(p[0],e),d=t.get(p[1],e);s=l.dataToPoint([f,d])}if(i&&"cartesian2d"===l.type){var y=null!=r?l.getAxis(1===r?"x":"y"):l.getAxesByScale("ordinal")[0];y&&y.onBand&&(s["x"===y.dim?0:1]=y.toGlobalCoord(y.getExtent()[n?0:1]))}}t.setItemLayout(e,s)}var v=n(1),x=n(14),i=n(9),r=n(7),_=n(4),o=i.addCommas,a=i.encodeHTML,w=n(104),b=n(84),P=function(t,e,n,i){var r=t.getData(),o=i.type;if(!v.isArray(i)&&("min"===o||"max"===o||"average"===o)){var a=w.getAxisInfo(i,r,e,t),s=a.baseAxis.dim+"Axis",l=a.valueAxis.dim+"Axis",u=a.baseAxis.scale.getExtent(),h=v.clone(i),c={};h.type=null,h[s]=u[0],c[s]=u[1];var p=w.numCalculate(r,a.valueDataDim,o);p=a.valueAxis.coordToData(a.valueAxis.dataToCoord(p));var f=n.get("precision");0<=f&&(p=+p.toFixed(f)),h[l]=c[l]=p,i=[h,c,{type:o,valueIndex:i.valueIndex,value:p}]}return(i=[w.dataTransform(t,i[0]),w.dataTransform(t,i[1]),v.extend({},i[2])])[2].type=i[2].type||"",v.merge(i[2],i[0]),v.merge(i[2],i[1]),i},S={formatTooltip:function(t){var e=this._data,n=this.getRawValue(t),i=v.isArray(n)?v.map(n,o).join(", "):o(n),r=e.getName(t);return this.name+"<br />"+(r?a(r)+" : ":"")+i},getRawDataArray:function(){return this.option.data},getData:function(){return this._data},setData:function(t){this._data=t}};v.defaults(S,r.dataFormatMixin),n(2).extendComponentView({type:"markLine",init:function(){this._markLineMap={}},render:function(t,n,i){var e=this._markLineMap;for(var r in e)e[r].__keep=!1;for(var r in n.eachSeries(function(t){var e=t.markLineModel;e&&this._renderSeriesML(t,e,n,i)},this),e)e[r].__keep||this.group.remove(e[r].group)},updateLayout:function(t,e,l){e.eachSeries(function(r){var t=r.markLineModel;if(t){var o=t.getData(),a=t.__from,s=t.__to;a.each(function(t){var e=o.getItemModel(t),n=e.get("type"),i=e.get("valueIndex");g(a,t,!0,n,i,r,l),g(s,t,!1,n,i,r,l)}),o.each(function(t){o.setItemLayout(t,[a.getItemLayout(t),s.getItemLayout(t)])}),this._markLineMap[r.name].updateLayout()}},this)},_renderSeriesML:function(a,n,t,s){function r(t,e,n,i,r){var o=t.getItemModel(e);g(t,e,n,i,r,a,s),t.setItemVisual(e,{symbolSize:o.get("symbolSize")||y[n?0:1],symbol:o.get("symbol",!0)||d[n?0:1],color:o.get("itemStyle.normal.color")||l.getVisual("color")})}var e=a.coordinateSystem,i=a.name,l=a.getData(),o=this._markLineMap,u=o[i];u=u||(o[i]=new b),this.group.add(u.group);var h=function(t,n,e){var i;i=t?v.map(t&&t.dimensions,function(t){var e=n.getData().getDimensionInfo(n.coordDimToDataDim(t)[0])||{};return e.name=t,e}):[{name:"value",type:"float"}];var r=new x(i,e),o=new x(i,e),a=new x([],e),s=v.map(e.get("data"),v.curry(P,n,t,e));t&&(s=v.filter(s,v.curry(m,t)));var l=t?w.dimValueGetter:function(t){return t.value};return r.initData(v.map(s,function(t){return t[0]}),null,l),o.initData(v.map(s,function(t){return t[1]}),null,l),a.initData(v.map(s,function(t){return t[2]})),{from:r,to:o,line:a}}(e,a,n),c=h.from,p=h.to,f=h.line;n.__from=c,n.__to=p,v.extend(n,S),n.setData(f);var d=n.get("symbol"),y=n.get("symbolSize");v.isArray(d)||(d=[d,d]),"number"==typeof y&&(y=[y,y]),h.from.each(function(t){var e=f.getItemModel(t),n=e.get("type"),i=e.get("valueIndex");r(c,t,!0,n,i),r(p,t,!1,n,i)}),f.each(function(t){var e=f.getItemModel(t).get("lineStyle.normal.color");f.setItemVisual(t,{color:e||c.getItemVisual(t,"color")}),f.setItemLayout(t,[c.getItemLayout(t),p.getItemLayout(t)])}),u.updateData(f,c,p),h.line.eachItemGraphicEl(function(t,e){t.traverse(function(t){t.dataModel=n})}),u.__keep=!0}})},function(t,e,n){var a=n(7),s=n(2).extendComponentModel({type:"markPoint",dependencies:["series","grid","polar"],init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n),this.mergeOption(t,n,i.createdBySelf,!0)},mergeOption:function(t,r,e,o){e||r.eachSeries(function(t){var e=t.get("markPoint"),n=t.markPointModel;if(e&&e.data){if(n)n.mergeOption(e,r,!0);else{o&&a.defaultEmphasis(e.label,["position","show","textStyle","distance","formatter"]);var i={seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0};n=new s(e,this,r,i)}t.markPointModel=n}else t.markPointModel=null},this)},defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2},emphasis:{}}}});t.exports=s},function(t,e,n){function u(s,l,u){var h=l.coordinateSystem;s.each(function(t){var e,n=s.getItemModel(t),i=n.getShallow("x"),r=n.getShallow("y");if(null!=i&&null!=r)e=[p.parsePercent(i,u.getWidth()),p.parsePercent(r,u.getHeight())];else if(l.getMarkerPosition)e=l.getMarkerPosition(s.getValues(s.dimensions,t));else if(h){var o=s.get(h.dimensions[0],t),a=s.get(h.dimensions[1],t);e=h.dataToPoint([o,a])}s.setItemLayout(t,e)})}var h=n(38),c=n(1),i=n(9),r=n(7),p=n(4),o=i.addCommas,a=i.encodeHTML,f=n(14),d=n(104),y={getRawDataArray:function(){return this.option.data},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=c.isArray(n)?c.map(n,o).join(", "):o(n),r=e.getName(t);return this.name+"<br />"+(r?a(r)+" : ":"")+i},getData:function(){return this._data},setData:function(t){this._data=t}};c.defaults(y,r.dataFormatMixin),n(2).extendComponentView({type:"markPoint",init:function(){this._symbolDrawMap={}},render:function(t,e,n){var i=this._symbolDrawMap;for(var r in i)i[r].__keep=!1;for(var r in e.eachSeries(function(t){var e=t.markPointModel;e&&this._renderSeriesMP(t,e,n)},this),i)i[r].__keep||(i[r].remove(),this.group.remove(i[r].group))},updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markPointModel;e&&(u(e.getData(),t,n),this._symbolDrawMap[t.name].updateLayout(e))},this)},_renderSeriesMP:function(t,i,e){var n=t.coordinateSystem,r=t.name,o=t.getData(),a=this._symbolDrawMap,s=a[r];s=s||(a[r]=new h);var l=function(t,n,e){var i;i=t?c.map(t&&t.dimensions,function(t){var e=n.getData().getDimensionInfo(n.coordDimToDataDim(t)[0])||{};return e.name=t,e}):[{name:"value",type:"float"}];var r=new f(i,e),o=c.map(e.get("data"),c.curry(d.dataTransform,n));return t&&(o=c.filter(o,c.curry(d.dataFilter,t))),r.initData(o,null,t?d.dimValueGetter:function(t){return t.value}),r}(n,t,i);c.mixin(i,y),i.setData(l),u(i.getData(),t,e),l.each(function(t){var e=l.getItemModel(t),n=e.getShallow("symbolSize");"function"==typeof n&&(n=n(i.getRawValue(t),i.getDataParams(t))),l.setItemVisual(t,{symbolSize:n,color:e.get("itemStyle.normal.color")||o.getVisual("color"),symbol:e.getShallow("symbol")})}),s.updateData(l),this.group.add(s.group),l.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=i})}),s.__keep=!0}})},function(t,e,n){"use strict";var i=n(2),x=n(3),_=n(11);i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=new x.Text({style:{text:t.get("text"),textFont:r.getFont(),fill:r.getTextColor(),textBaseline:"top"},z2:10}),l=s.getBoundingRect(),u=t.get("subtext"),h=new x.Text({style:{text:u,textFont:o.getFont(),fill:o.getTextColor(),y:l.height+t.get("itemGap"),textBaseline:"top"},z2:10}),c=t.get("link"),p=t.get("sublink");s.silent=!c,h.silent=!p,c&&s.on("click",function(){window.open(c,"_"+t.get("target"))}),p&&h.on("click",function(){window.open(p,"_"+t.get("subtarget"))}),i.add(s),u&&i.add(h);var f=i.getBoundingRect(),d=t.getBoxLayoutParams();d.width=f.width,d.height=f.height;var y=_.getLayoutRect(d,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),i.position=[y.x,y.y],s.setStyle("textAlign",a),h.setStyle("textAlign",a),f=i.getBoundingRect();var m=y.margin,g=t.getItemStyle(["color","opacity"]);g.fill=t.get("backgroundColor");var v=new x.Rect({shape:{x:f.x-m[3],y:f.y-m[0],width:f.width+m[1]+m[3],height:f.height+m[0]+m[2]},style:g,silent:!0});x.subPixelOptimizeRect(v),i.add(v)}}})},function(t,e,n){n(189),n(190),n(195),n(193),n(191),n(192),n(194)},function(t,e,n){var i=n(29),r=n(1),o=n(2).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(t){o.superApply(this,"mergeDefaultAndTheme",arguments),r.each(this.option.feature,function(t,e){var n=i.get(e);n&&r.merge(t,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});t.exports=o},function(i,t,r){(function(t){var m=r(29),g=r(1),v=r(3),x=r(12),e=r(52),n=r(103),_=r(17);i.exports=r(2).extendComponentView({type:"toolbox",render:function(c,p,f){function t(t,e){var n,i=h[t],r=h[e],o=l[i],a=new x(o,c,c.ecModel);if(i&&!r){if(function(t){return 0===t.indexOf("my")}(i))n={model:a,onclick:a.option.onclick,featureName:i};else{var s=m.get(i);if(!s)return;n=new s(a)}u[i]=n}else{if(!(n=u[r]))return;n.model=a}return!i&&r?void(n.dispose&&n.dispose(p,f)):!a.get("show")||n.unusable?void(n.remove&&n.remove(p,f)):(function(a,s,t){var l=a.getModel("iconStyle"),e=s.getIcons?s.getIcons():a.get("icon"),u=a.get("title")||{};if("string"==typeof e){var n=e,i=u;u={},(e={})[t]=n,u[t]=i}var h=a.iconPaths={};g.each(e,function(t,e){var n=l.getModel("normal").getItemStyle(),i=l.getModel("emphasis").getItemStyle(),r={x:-y/2,y:-y/2,width:y,height:y},o=0===t.indexOf("image://")?(r.image=t.slice(8),new v.Image({style:r})):v.makePath(t.replace("path://",""),{style:n,hoverStyle:i,rectHover:!0},r,"center");v.setHoverStyle(o),c.get("showTitle")&&(o.__title=u[e],o.on("mouseover",function(){o.setStyle({text:u[e],textPosition:i.textPosition||"bottom",textFill:i.fill||i.stroke||"#000",textAlign:i.textAlign||"center"})}).on("mouseout",function(){o.setStyle({textFill:null})})),o.trigger(a.get("iconStatus."+e)||"normal"),d.add(o),o.on("click",g.bind(s.onclick,s,p,f,e)),h[e]=o})}(a,n,i),a.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},void(n.render&&n.render(a,p,f)))}var d=this.group;if(d.removeAll(),c.get("show")){var y=+c.get("itemSize"),l=c.get("feature")||{},u=this._features||(this._features={}),h=[];g.each(l,function(t,e){h.push(e)}),new e(this._featureNames||[],h).add(t).update(t).remove(g.curry(t,null)).execute(),this._featureNames=h,n.layout(d,c,f),n.addBackground(d,c),d.eachChild(function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var i=_.getBoundingRect(e,n.font),r=t.position[0]+d.position[0],o=t.position[1]+d.position[1]+y,a=!1;o+i.height>f.getHeight()&&(n.textPosition="top",a=!0);var s=a?-5-i.height:y+8;r+i.width/2>f.getWidth()?(n.textPosition=["100%",s],n.textAlign="right"):r-i.width/2<0&&(n.textPosition=[0,s],n.textAlign="left")}})}},remove:function(e,n){g.each(this._features,function(t){t.remove&&t.remove(e,n)}),this.group.removeAll()},dispose:function(e,n){g.each(this._features,function(t){t.dispose&&t.dispose(e,n)})}})}).call(t,r(201))},function(t,e,n){function _(t){var e=function(t){var r={},o=[],a=[];return t.eachRawSeries(function(t){var e=t.coordinateSystem;if(!e||"cartesian2d"!==e.type&&"polar"!==e.type)o.push(t);else{var n=e.getBaseAxis();if("category"===n.type){var i=n.dim+"_"+n.index;r[i]||(r[i]={categoryAxis:n,valueAxis:e.getOtherAxis(n),series:[]},a.push({axisDim:n.dim,axisIndex:n.index})),r[i].series.push(t)}else o.push(t)}}),{seriesGroupByCategoryAxis:r,other:o,meta:a}}(t);return{value:b.filter([function(t){var h=[];return b.each(t,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,r=[" "].concat(b.map(t.series,function(t){return t.name})),o=[n.model.getCategories()];b.each(t.series,function(t){o.push(t.getRawData().mapArray(i,function(t){return t}))});for(var a=[r.join(S)],s=0;s<o[0].length;s++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][s]);a.push(l.join(S))}h.push(a.join("\n"))}),h.join("\n\n"+r+"\n\n")}(e.seriesGroupByCategoryAxis),function(t){return b.map(t,function(t){var r=t.getRawData(),o=[t.name],a=[];return r.each(r.dimensions,function(){for(var t=arguments.length,e=arguments[t-1],n=r.getName(e),i=0;i<t-1;i++)a[i]=arguments[i];o.push((n?n+S:"")+a.join(S))}),o.join("\n")}).join("\n\n"+r+"\n\n")}(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+r+"\n\n"),meta:e.meta}}function h(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function w(t,o){var e=t.split(new RegExp("\n*"+r+"\n*","g")),a={series:[]};return b.each(e,function(t,e){if(function(t){return 0<=t.slice(0,t.indexOf("\n")).indexOf(S)||void 0}(t)){var n=function(t){for(var e=t.split(/\n+/g),n=h(e.shift()).split(c),i=[],r=b.map(n,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=h(e[o]).split(c);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}(t),i=o[e],r=i.axisDim+"Axis";i&&(a[r]=a[r]||[],a[r][i.axisIndex]={data:n.categories},a.series=a.series.concat(n.series))}else{var n=function(t){for(var e=t.split(/\n+/g),n=h(e.shift()),i=[],r=0;r<e.length;r++){var o,a=h(e[r]).split(c),s="",l=!1;o=isNaN(a[0])?(l=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},i[r].value):i[r]=[];for(var u=0;u<a.length;u++)o.push(+a[u]);1===o.length&&(l?i[r].value=o[0]:i[r]=o[0])}return{name:n,data:i}}(t);a.series.push(n)}}),a}function i(t){this._dom=null,this.model=t}var b=n(1),P=n(33),r=new Array(60).join("-"),S="\t",c=new RegExp("["+S+"]+","g");i.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},i.prototype.onclick=function(t,e){function n(){i.removeChild(o),x._dom=null}var i=e.getDom(),r=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),s=r.get("lang")||[];a.innerHTML=s[0]||r.get("title"),a.style.cssText="margin: 10px 20px;",a.style.color=r.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:hidden;";var h=r.get("optionToContent"),c=r.get("contentToOption"),p=_(t);if("function"==typeof h){var f=h(e.getOption());"string"==typeof f?l.innerHTML=f:b.isDom(f)&&l.appendChild(f)}else l.appendChild(u),u.readOnly=r.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=r.get("textColor"),u.style.borderColor=r.get("textareaBorderColor"),u.style.backgroundColor=r.get("textareaColor"),u.value=p.value;var d=p.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",g=document.createElement("div"),v=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var x=this;P.addEventListener(g,"click",n),P.addEventListener(v,"click",function(){var t;try{t="function"==typeof c?c(l,e.getOption()):w(u.value,d)}catch(t){throw n(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),n()}),g.innerHTML=s[1],v.innerHTML=s[2],v.style.cssText=m,g.style.cssText=m,r.get("readOnly")||y.appendChild(v),y.appendChild(g),P.addEventListener(u,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,n=this.selectionStart,i=this.selectionEnd;this.value=e.substring(0,n)+S+e.substring(i),this.selectionStart=this.selectionEnd=n+1,P.stop(t)}}),o.appendChild(a),o.appendChild(l),o.appendChild(y),l.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},i.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},i.prototype.dispose=function(t,e){this.remove(t,e)},n(29).register("dataView",i),n(2).registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,i){var r=[];b.each(t.newOption.series,function(t){var e=i.getSeriesByName(t.name)[0];if(e){var n=e.get("data");r.push({name:t.name,data:function(t,i){return b.map(t,function(t,e){var n=i&&i[e];return b.isObject(n)&&!b.isArray(n)?(b.isObject(t)&&!b.isArray(t)&&(t=t.value),b.defaults({value:t},n)):t})}(t.data,n)})}else r.push(b.extend({type:"scatter"},t))}),i.mergeOption(b.defaults({series:r},t.newOption))}),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t,this._controllerGroup,this._controller,this._isZoomActive}function h(t,e,n,i){var r=n.get(t+"Index");return null!=r&&i.getComponent(t,r)===e}function c(t,e,n,i){var r=e[n],o=r.dataZoomModel;return o?{dataZoomId:o.id,startValue:t[n][0],endValue:t[n][1]}:void 0}var l=n(1),r=n(4),o=n(160),p=n(8),a=n(26),f=n(100),s=n(102),u=l.each,d=r.asc;n(175),i.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var y=i.prototype;y.render=function(t,e,n){!function(t,e){t.setIconStatus("back",1<f.count(e)?"emphasis":"normal")}(t,e)},y.onclick=function(t,e,n){var i=this._controllerGroup;this._controllerGroup||(i=this._controllerGroup=new a,e.getZr().add(i)),m[n].call(this,i,this.model,t,e)},y.remove=function(t,e){this._disposeController(),s.release("globalPan",e.getZr())},y.dispose=function(t,e){var n=e.getZr();s.release("globalPan",n),this._disposeController(),this._controllerGroup&&n.remove(this._controllerGroup)};var m={zoom:function(t,e,n,i){var r=this._isZoomActive=!this._isZoomActive,o=i.getZr();s[r?"take":"release"]("globalPan",o),e.setIconStatus("zoom",r?"emphasis":"normal"),r?(o.setDefaultCursorStyle("crosshair"),this._createController(t,e,n,i)):(o.setDefaultCursorStyle("default"),this._disposeController())},back:function(t,e,n,i){this._dispatchAction(f.pop(n),i)}};y._createController=function(t,e,n,i){var r=this._controller=new o("rect",i.getZr(),{lineWidth:3,stroke:"#333",fill:"rgba(0,0,0,0.2)"});r.on("selectEnd",l.bind(this._onSelected,this,r,e,n,i)),r.enable(t,!1)},y._disposeController=function(){var t=this._controller;t&&(t.off("selected"),t.dispose())},y._onSelected=function(t,e,s,n,i){if(i.length){var l=i[0];t.update();var u={};s.eachComponent("grid",function(t,e){var n=t.coordinateSystem,i=function(t,n){var i=[{axisModel:t.getAxis("x").model,axisIndex:0},{axisModel:t.getAxis("y").model,axisIndex:0}];return i.grid=t,n.eachComponent({mainType:"dataZoom",subType:"select"},function(t,e){h("xAxis",i[0].axisModel,t,n)&&(i[0].dataZoomModel=t),h("yAxis",i[1].axisModel,t,n)&&(i[1].dataZoomModel=t)}),i}(n,s),r=function(t,e){var n=e.grid;if(new p(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0]).intersect(n.getRect())){var i=n.getCartesian(e[0].axisIndex,e[1].axisIndex),r=i.pointToData([t[0][0],t[1][0]],!0),o=i.pointToData([t[0][1],t[1][1]],!0);return[d([r[0],o[0]]),d([r[1],o[1]])]}}(l,i);if(r){var o=c(r,i,0,"x"),a=c(r,i,1,"y");o&&(u[o.dataZoomId]=o),a&&(u[a.dataZoomId]=a)}},this),f.push(s,u),this._dispatchAction(u,n)}},y._dispatchAction=function(t,e){var n=[];u(t,function(t){n.push(t)}),n.length&&e.dispatchAction({type:"dataZoom",from:this.uid,batch:l.clone(n,!0)})},n(29).register("dataZoom",i),n(2).registerPreprocessor(function(a){function t(i,t){if(t){var r=i+"Index",o=t[r];null==o||l.isArray(o)||(o=!1===o?[]:[o]),function(t,e){var n=a[t];l.isArray(n)||(n=n?[n]:[]),u(n,e)}(i,function(t,e){if(null==o||-1!==l.indexOf(o,e)){var n={type:"select",$fromToolbox:!0,id:"\0_ec_\0toolbox-dataZoom_"+i+e};n[r]=e,s.push(n)}})}}if(a){var s=a.dataZoom||(a.dataZoom=[]);l.isArray(s)||(s=[s]);var e=a.toolbox;if(e&&(l.isArray(e)&&(e=e[0]),e&&e.feature)){var n=e.feature.dataZoom;t("xAxis",n),t("yAxis",n)}}}),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t}var f=n(1);i.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var r=i.prototype;r.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return f.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var d={line:function(t,e,n,i){return"bar"===t?f.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0):void 0},bar:function(t,e,n,i){return"line"===t?f.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0):void 0},stack:function(t,e,n,i){return"line"===t||"bar"===t?f.merge({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0):void 0},tiled:function(t,e,n,i){return"line"===t||"bar"===t?f.merge({id:e,stack:""},i.get("option.tiled")||{},!0):void 0}},o=[["line","bar"],["stack","tiled"]];r.onclick=function(t,e,h){var c=this.model,n=c.get("seriesIndex."+h);if(d[h]){var p={series:[]};f.each(o,function(t){0<=f.indexOf(t,h)&&f.each(t,function(t){c.setIconStatus(t,"normal")})}),c.setIconStatus(h,"emphasis"),t.eachComponent({mainType:"series",query:null==n?null:{seriesIndex:n}},function(t){var e=t.subType,n=t.id,i=d[h](e,n,t,c);i&&(f.defaults(i,t.option),p.series.push(i));var r=t.coordinateSystem;if(r&&"cartesian2d"===r.type&&("line"===h||"bar"===h)){var o=r.getAxesByScale("ordinal")[0];if(o){var a=o.dim,s=t.get(a+"AxisIndex"),l=a+"Axis";p[l]=p[l]||[];for(var u=0;u<=s;u++)p[l][s]=p[l][s]||{};p[l][s].boundaryGap="bar"===h}}}),e.dispatchAction({type:"changeMagicType",currentType:h,newOption:p})}};var a=n(2);a.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),n(29).register("magicType",i),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t}var r=n(100);i.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var o=i.prototype;o.onclick=function(t,e,n){r.clear(t),e.dispatchAction({type:"restore",from:this.uid})},n(29).register("restore",i),n(2).registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),t.exports=i},function(t,e,n){function i(t){this.model=t}var r=n(15);i.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},i.prototype.unusable=!r.canvasSupported;var o=i.prototype;o.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r=document.createElement("a"),o=n.get("type",!0)||"png";r.download=i+"."+o,r.target="_blank";var a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(r.href=a,"function"==typeof MouseEvent){var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}else{var l=n.get("lang"),u='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>',h=window.open();h.document.write(u)}},n(29).register("saveAsImage",i),t.exports=i},function(t,e,n){n(198),n(199),n(2).registerAction({type:"showTip",event:"showTip",update:"none"},function(){}),n(2).registerAction({type:"hideTip",event:"hideTip",update:"none"},function(){})},function(t,e,n){function i(r){var o=[],t=(r=r).get("transitionDuration"),e=r.get("backgroundColor"),n=r.getModel("textStyle"),i=r.get("padding");return t&&o.push(function(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return a.map(c,function(t){return t+"transition:"+n}).join(";")}(t)),e&&(o.push("background-Color:"+s.toHex(e)),o.push("filter:alpha(opacity=70)"),o.push("background-Color:"+e)),u(["width","color","radius"],function(t){var e="border-"+t,n=h(e),i=r.get(n);null!=i&&o.push(e+":"+i+("color"===t?"":"px"))}),o.push(function(n){var i=[],t=n.get("fontSize"),e=n.getTextColor();return e&&i.push("color:"+e),i.push("font:"+n.getFont()),t&&i.push("line-height:"+Math.round(3*t/2)+"px"),u(["decoration","align"],function(t){var e=n.get(t);e&&i.push("text-"+t+":"+e)}),i.join(";")}(n)),null!=i&&o.push("padding:"+l.normalizeCssArray(i).join("px ")+"px"),o.join(";")+";"}function r(n,t){var e=document.createElement("div"),i=t.getZr();this.el=e,this._x=t.getWidth()/2,this._y=t.getHeight()/2,n.appendChild(e),this._container=n,this._show=!1,this._hideTimeout;var r=this;e.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},e.onmousemove=function(t){if(!r.enterable){var e=i.handler;o.normalizeEvent(n,t),e.dispatch("mousemove",t)}},e.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},function(e,n){function t(t){!function(t){for(;t&&t!==n;){if(t===e)return!0;t=t.parentNode}}(t.target)||t.preventDefault()}o.addEventListener(n,"touchstart",t),o.addEventListener(n,"touchmove",t),o.addEventListener(n,"touchend",t)}(e,n)}var a=n(1),s=n(22),o=n(33),l=n(9),u=a.each,h=l.toCamelCase,c=["","-webkit-","-moz-","-o-"];r.prototype={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+i(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var n=this.el.style;n.left=t+"px",n.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(a.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},t.exports=r},function(t,e,n){n(2).extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})},function(t,e,n){function p(t,e,n,i){return{x1:t,y1:e,x2:n,y2:i}}function c(t,e,n,i){return{x:t,y:e,width:n,height:i}}function f(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}function x(t,e,n,i,r,o,a){var s=a.getWidth(),l=a.getHeight(),u=o&&o.getBoundingRect().clone();if(o&&u.applyTransform(o.transform),"function"==typeof t&&(t=t([e,n],r,u)),_.isArray(t))e=g(t[0],s),n=g(t[1],l);else if("string"==typeof t&&o){var h=function(t,e,n){var i=n.clientWidth,r=n.clientHeight,o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-i/2,a=e.y-r-5;break;case"bottom":o=e.x+s/2-i/2,a=e.y+l+5;break;case"left":o=e.x-i-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+5,a=e.y+l/2-r/2}return[o,a]}(t,u,i.el);e=h[0],n=h[1]}else{var h=function(t,e,n,i,r){var o=n.clientWidth,a=n.clientHeight;return i<t+o+20?t-=o+20:t+=20,r<e+a+20?e-=a+20:e+=20,[t,e]}(e,n,i.el,s,l);e=h[0],n=h[1]}i.moveTo(e,n)}function d(t){var e=t.coordinateSystem,n=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"single"!==e.type||"item"===n)}var i=n(197),y=n(3),_=n(1),w=n(9),m=n(4),g=m.parsePercent,s=n(15);n(2).extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!s.node){var n=new i(e.getDom(),e);this._tooltipContent=n,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,n){if(!s.node){this.group.removeAll(),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastHover={};var i=this._tooltipContent;i.update(),i.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;if(r&&this.group.add(r),null!=this._lastX&&null!=this._lastY){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){o._manuallyShowTip({x:o._lastX,y:o._lastY})})}var a=this._api.getZr();a.off("click",this._tryShow),a.off("mousemove",this._mousemove),a.off("mouseout",this._hide),a.off("globalout",this._hide),"click"===t.get("triggerOn")?a.on("click",this._tryShow,this):(a.on("mousemove",this._mousemove,this),a.on("mouseout",this._hide,this),a.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),n=this;clearTimeout(this._showTimeout),0<e?this._showTimeout=setTimeout(function(){n._tryShow(t)},e):this._tryShow(t)},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,n=t.seriesIndex,i=t.dataIndex,r=e.getSeriesByIndex(n),o=this._api;if(null==t.x||null==t.y){if(r||e.eachSeries(function(t){d(t)&&!r&&(r=t)}),r){var a=r.getData();null==i&&(i=a.indexOfName(t.name));var s,l,u=a.getItemGraphicEl(i),h=r.coordinateSystem;if(h&&h.dataToPoint){var c=h.dataToPoint(a.getValues(_.map(h.dimensions,function(t){return r.coordDimToDataDim(t)[0]}),i,!0));s=c&&c[0],l=c&&c[1]}else if(u){var p=u.getBoundingRect().clone();p.applyTransform(u.transform),s=p.x+p.width/2,l=p.y+p.height/2}null!=s&&null!=l&&this._tryShow({offsetX:s,offsetY:l,target:u,event:{}})}}else{var u=o.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,target:u,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var r={};return e.eachSeries(function(t){if(d(t)){var e,n,i=t.coordinateSystem;n="cartesian2d"===i.type?(e=i.getBaseAxis()).dim+e.index:"single"===i.type?(e=i.getAxis()).dim+e.type:(e=i.getBaseAxis()).dim+i.name,r[n]=r[n]||{coordSys:[],series:[]},r[n].coordSys.push(i),r[n].series.push(t)}},this),r},_tryShow:function(t){var e=t.target,n=this._tooltipModel,i=n.get("trigger"),r=this._ecModel,o=this._api;if(n)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e.dataIndex){var a=e.dataModel||r.getSeriesByIndex(e.seriesIndex),s=e.dataIndex,l=a.getData().getItemModel(s);"axis"===(l.get("tooltip.trigger")||i)?this._showAxisTooltip(n,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(a,s,t)),o.dispatchAction({type:"showTip",from:this.uid,dataIndex:e.dataIndex,seriesIndex:e.seriesIndex})}else"item"===i?this._hide():this._showAxisTooltip(n,r,t),"cross"===n.get("axisPointer.type")&&o.dispatchAction({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,e,c){var p=t.getModel("axisPointer"),f=p.get("type");if("cross"===f){var n=c.target;if(n&&null!=n.dataIndex){var i=e.getSeriesByIndex(n.seriesIndex),r=n.dataIndex;this._showItemTooltipContent(i,r,c)}}this._showAxisPointer();var d=!0;_.each(this._seriesGroupByAxis,function(t){var e=t.coordSys,n=e[0],i=[c.offsetX,c.offsetY];if(n.containPoint(i)){d=!1;var r=n.dimensions,o=n.pointToData(i,!0);i=n.dataToPoint(o);var a=n.getBaseAxis(),s=p.get("axis");"auto"===s&&(s=a.dim);var l=!1,u=this._lastHover;if("cross"===f)!function(t,e){if(!t||!e)return!1;var n=m.round;return n(t[0])===n(e[0])&&n(t[1])===n(e[1])}(u.data,o)||(l=!0),u.data=o;else{var h=_.indexOf(r,s);u.data===o[h]&&(l=!0),u.data=o[h]}"cartesian2d"!==n.type||l?"polar"!==n.type||l?"single"!==n.type||l||this._showSinglePointer(p,n,s,i):this._showPolarPointer(p,n,s,i):this._showCartesianPointer(p,n,s,i),"cross"!==f&&this._dispatchAndShowSeriesTooltipContent(n,t.series,i,o,l)}else this._hideAxisPointer(n.name)},this),d&&this._hide()},_showCartesianPointer:function(s,l,t,e){function n(t,e,n){var i="x"===t?p(e[0],n[0],e[0],n[1]):p(n[0],e[1],n[1],e[1]),r=u._getPointerElement(l,s,t,i);h?y.updateProps(r,{shape:i},s):r.attr({shape:i})}var u=this,i=s.get("type"),h="cross"!==i;if("cross"===i)n("x",e,l.getAxis("y").getGlobalExtent()),n("y",e,l.getAxis("x").getGlobalExtent()),this._updateCrossText(l,e,s);else{var r=l.getAxis("x"===t?"y":"x"),o=r.getGlobalExtent();"cartesian2d"===l.type&&("line"===i?n:function(t,e,n){var i=l.getAxis(t).getBandWidth(),r=n[1]-n[0],o="x"===t?c(e[0]-i/2,n[0],i,r):c(n[0],e[1]-i/2,r,i),a=u._getPointerElement(l,s,t,o);h?y.updateProps(a,{shape:o},s):a.attr({shape:o})})(t,e,o)}},_showSinglePointer:function(o,a,t,e){var s=this,n=o.get("type"),l="cross"!==n,i=a.getRect(),r=[i.y,i.y+i.height];!function(t,e,n){var i="horizontal"===a.getAxis().orient?p(e[0],n[0],e[0],n[1]):p(n[0],e[1],n[1],e[1]),r=s._getPointerElement(a,o,t,i);l?y.updateProps(r,{shape:i},o):r.attr({shape:i})}(t,e,r)},_showPolarPointer:function(l,u,t,e){function n(t,e,n){var i,r=u.pointToCoord(e);if("angle"===t){var o=u.coordToPoint([n[0],r[1]]),a=u.coordToPoint([n[1],r[1]]);i=p(o[0],o[1],a[0],a[1])}else i={cx:u.cx,cy:u.cy,r:r[0]};var s=h._getPointerElement(u,l,t,i);c?y.updateProps(s,{shape:i},l):s.attr({shape:i})}var h=this,i=l.get("type"),r=u.getAngleAxis(),o=u.getRadiusAxis(),c="cross"!==i;if("cross"===i)n("angle",e,o.getExtent()),n("radius",e,r.getExtent()),this._updateCrossText(u,e,l);else{var a=u.getAxis("radius"===t?"angle":"radius"),s=a.getExtent();("line"===i?n:function(t,e,n){var i,r=u.getAxis(t).getBandWidth(),o=u.pointToCoord(e),a=Math.PI/180;i="angle"===t?f(u.cx,u.cy,n[0],n[1],(-o[1]-r/2)*a,(-o[1]+r/2)*a):f(u.cx,u.cy,o[0]-r/2,o[0]+r/2,0,2*Math.PI);var s=h._getPointerElement(u,l,t,i);c?y.updateProps(s,{shape:i},l):s.attr({shape:i})})(t,e,s)}},_updateCrossText:function(i,t,e){var n=e.getModel("crossStyle"),r=n.getModel("textStyle"),o=this._tooltipModel,a=this._crossText;a||(a=this._crossText=new y.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(a));var s=i.pointToData(t),l=i.dimensions;s=_.map(s,function(t,e){var n=i.getAxis(l[e]);return t="category"===n.type||"time"===n.type?n.scale.getLabel(t):w.addCommas(t.toFixed(n.getPixelPrecision()))}),a.setStyle({fill:r.getTextColor()||n.get("color"),textFont:r.getFont(),text:s.join(", "),x:t[0]+5,y:t[1]-5}),a.z=o.get("z"),a.zlevel=o.get("zlevel")},_getPointerElement:function(t,e,n,i){var r=this._tooltipModel,o=r.get("z"),a=r.get("zlevel"),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][n])return s[l][n];var u=e.get("type"),h=e.getModel(u+"Style"),c="shadow"===u,p=h[c?"getAreaStyle":"getLineStyle"](),f="polar"===t.type?c?"Sector":"radius"===n?"Circle":"Line":c?"Rect":"Line";c?p.stroke=null:p.fill=null;var d=s[l][n]=new y[f]({style:p,z:o,zlevel:a,silent:!0,shape:i});return this.group.add(d),d},_dispatchAndShowSeriesTooltipContent:function(t,e,n,i,r){var o=this._tooltipModel,a=this._tooltipContent,s=t.getBaseAxis(),l=_.map(e,function(t){return{seriesIndex:t.seriesIndex,dataIndex:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(s.dim),i,s):t.getData().indexOfNearest(t.coordDimToDataDim(s.dim)[0],i["x"===s.dim||"radius"===s.dim?0:1])}}),u=this._lastHover,h=this._api;if(u.payloadBatch&&!r&&h.dispatchAction({type:"downplay",batch:u.payloadBatch}),r||(h.dispatchAction({type:"highlight",batch:l}),u.payloadBatch=l),h.dispatchAction({type:"showTip",dataIndex:l[0].dataIndex,seriesIndex:l[0].seriesIndex,from:this.uid}),s&&o.get("showContent")){var c,p=o.get("formatter"),f=o.get("position"),d=_.map(e,function(t,e){return t.getDataParams(l[e].dataIndex)});a.show(o);var y=l[0].dataIndex;if(!r){if(this._ticket="",p){if("string"==typeof p)c=w.formatTpl(p,d);else if("function"==typeof p){var m=this,g="axis_"+t.name+"_"+y;m._ticket=g,c=p(d,g,function(t,e){t===m._ticket&&(a.setContent(e),x(f,n[0],n[1],a,d,null,h))})}}else{var v=e[0].getData().getName(y);c=(v?v+"<br />":"")+_.map(e,function(t,e){return t.formatTooltip(l[e].dataIndex,!0)}).join("<br />")}a.setContent(c)}x(f,n[0],n[1],a,d,null,h)}},_showItemTooltipContent:function(t,e,n){var i=this._api,r=t.getData(),o=r.getItemModel(e),a=this._tooltipModel,s=this._tooltipContent,l=o.getModel("tooltip");if(l.parentModel?l.parentModel.parentModel=a:l.parentModel=this._tooltipModel,l.get("showContent")){var u,h=l.get("formatter"),c=l.get("position"),p=t.getDataParams(e);if(h){if("string"==typeof h)u=w.formatTpl(h,p);else if("function"==typeof h){var f=this,d="item_"+t.name+"_"+e;f._ticket=d,u=h(p,d,function(t,e){t===f._ticket&&(s.setContent(e),x(c,n.offsetX,n.offsetY,s,p,n.target,i))})}}else u=t.formatTooltip(e);s.show(l),s.setContent(u),x(c,n.offsetX,n.offsetY,s,p,n.target,i)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&_.each(e,function(t){t.show()})}else this.group.eachChild(function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api.dispatchAction({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&_.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api.dispatchAction({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(t,e){if(!s.node){var n=e.getZr();this._tooltipContent.hide(),n.off("click",this._tryShow),n.off("mousemove",this._mousemove),n.off("mouseout",this._hide),n.off("globalout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})},,function(t,e){function n(){u=!1,a.length?l=a.concat(l):h=-1,l.length&&i()}function i(){if(!u){var t=setTimeout(n);u=!0;for(var e=l.length;e;){for(a=l,l=[];++h<e;)a&&a[h].run();h=-1,e=l.length}a=null,u=!1,clearTimeout(t)}}function r(t,e){this.fun=t,this.array=e}function o(){}var a,s=t.exports={},l=[],u=!1,h=-1;s.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new r(t,e)),1!==l.length||u||setTimeout(i,0)},r.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=o,s.addListener=o,s.once=o,s.off=o,s.removeListener=o,s.removeAllListeners=o,s.emit=o,s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(t,e,n){function i(t){return parseInt(t,10)}function r(t,n){s.initVML(),this.root=t,this.storage=n;var e=document.createElement("div"),i=document.createElement("div");e.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",t.appendChild(e),this._vmlRoot=i,this._vmlViewport=e,this.resize();var r=n.delFromMap,o=n.addToMap;n.delFromMap=function(t){var e=n.get(t);r.call(n,t),e&&e.onRemove&&e.onRemove(i)},n.addToMap=function(t){t.onAdd&&t.onAdd(i),o.call(n,t)},this._firstPaint=!0}function o(t){return function(){a('In IE8.0 VML mode painter not support method "'+t+'"')}}var a=n(45),s=n(158);r.prototype={constructor:r,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,n=0;n<t.length;n++){var i=t[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(e),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(e),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,e),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var n=this._vmlViewport.style;n.width=t+"px",n.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||i(e.width))-i(e.paddingLeft)-i(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||i(e.height))-i(e.paddingTop)-i(e.paddingBottom)|0}};for(var l=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],u=0;u<l.length;u++){var h=l[u];r.prototype[h]=o(h)}t.exports=r},function(t,e,n){if(!n(15).canvasSupported){var i=n(5),r=n(8),G=n(27).CMD,N=n(22),C=n(17),o=n(66),a=n(35),s=n(46),l=n(65),u=n(6),k=n(16),j=n(158),V=Math.round,q=Math.sqrt,h=Math.abs,B=Math.cos,U=Math.sin,W=Math.max,Z=i.applyTransform,X="progid:DXImageTransform.Microsoft",H=21600,Y=10800,K=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=H+","+H,t.coordorigin="0,0"},z=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},J=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},c=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},Q=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},M=function(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t},D=function(t,e,n){var i=N.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=z(i[0],i[1],i[2]),t.opacity=n*i[3])},T=function(t,e,n,i){var r="fill"==e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof k&&c(t,o),o=o||j.createNode(e),r?function(t,e,n){var i,r,o=e.fill;if(null!=o)if(o instanceof k){var a,s=0,l=[0,0],u=0,h=1,c=n.getBoundingRect(),p=c.width,f=c.height;if("linear"===o.type){a="gradient";var d=n.transform,y=[o.x*p,o.y*f],m=[o.x2*p,o.y2*f];d&&(Z(y,y,d),Z(m,m,d));var g=m[0]-y[0],v=m[1]-y[1];(s=180*Math.atan2(g,v)/Math.PI)<0&&(s+=360),s<1e-6&&(s=0)}else{a="gradientradial";var y=[o.x*p,o.y*f],d=n.transform,x=n.scale,_=p,w=f;l=[(y[0]-c.x)/_,(y[1]-c.y)/w],d&&Z(y,y,d),_/=x[0]*H,w/=x[1]*H;var b=W(_,w);u=0/b,h=2*o.r/b-u}var P=o.colorStops.slice();P.sort(function(t,e){return t.offset-e.offset});for(var S=P.length,C=[],M=[],T=0;T<S;T++){var A=P[T],E=(i=A.color,void 0,r=N.parse(i),[z(r[0],r[1],r[2]),r[3]]);M.push(A.offset*h+u+" "+E[0]),0!==T&&T!==S-1||C.push(E)}if(2<=S){var I=C[0][0],L=C[1][0],R=C[0][1]*e.opacity,O=C[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=s,t.color=I,t.color2=L,t.colors=M.join(","),t.opacity=O,t.opacity2=R}"radial"===a&&(t.focusposition=l.join(","))}else D(t,o,e.opacity)}(o,n,i):function(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*H),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof k||D(t,e.stroke,e.opacity)}(o,n),J(t,o)):(t[r?"filled":"stroked"]="false",c(t,o))},$=[[],[],[]];u.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=j.createNode("shape"),K(n),this._vmlEl=n),T(n,"fill",e,this),T(n,"stroke",e,this);var i=this.transform,r=null!=i,o=n.getElementsByTagName("stroke")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=q(h(s))}o.weight=a+"px"}var l=this.path;this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=function(t,e){var n,i,r,o,a,s,l=G.M,u=G.C,h=G.L,c=G.A,p=G.Q,f=[];for(o=0;o<t.length;){switch(r=t[o++],i="",n=0,r){case l:i=" m ",n=1,a=t[o++],s=t[o++],$[0][0]=a,$[0][1]=s;break;case h:i=" l ",n=1,a=t[o++],s=t[o++],$[0][0]=a,$[0][1]=s;break;case p:case u:i=" c ",n=3;var d,y,m=t[o++],g=t[o++],v=t[o++],x=t[o++];r===p?(v=((d=v)+2*m)/3,x=((y=x)+2*g)/3,m=(a+2*m)/3,g=(s+2*g)/3):(d=t[o++],y=t[o++]),$[0][0]=m,$[0][1]=g,$[1][0]=v,$[1][1]=x,$[2][0]=d,$[2][1]=y,a=d,s=y;break;case c:var _=0,w=0,b=1,P=1,S=0;e&&(_=e[4],w=e[5],b=q(e[0]*e[0]+e[1]*e[1]),P=q(e[2]*e[2]+e[3]*e[3]),S=Math.atan2(-e[1]/P,e[0]/b));var C=t[o++],M=t[o++],T=t[o++],A=t[o++],E=t[o++]+S,I=t[o++]+E+S;o++;var L=t[o++],R=C+B(E)*T,O=M+U(E)*A,m=C+B(I)*T,g=M+U(I)*A,N=L?" wa ":" at ";Math.abs(R-m)<1e-10&&L&&(R+=.0125),f.push(N,V(((C-T)*b+_)*H-Y),",",V(((M-A)*P+w)*H-Y),",",V(((C+T)*b+_)*H-Y),",",V(((M+A)*P+w)*H-Y),",",V((R*b+_)*H-Y),",",V((O*P+w)*H-Y),",",V((m*b+_)*H-Y),",",V((g*P+w)*H-Y)),a=m,s=g;break;case G.R:var k=$[0],z=$[1];k[0]=t[o++],k[1]=t[o++],z[0]=k[0]+t[o++],z[1]=k[1]+t[o++],e&&(Z(k,k,e),Z(z,z,e)),k[0]=V(k[0]*H-Y),z[0]=V(z[0]*H-Y),k[1]=V(k[1]*H-Y),z[1]=V(z[1]*H-Y),f.push(" m ",k[0],",",k[1]," l ",z[0],",",k[1]," l ",z[0],",",z[1]," l ",k[0],",",z[1]);break;case G.Z:f.push(" x ")}if(0<n){f.push(i);for(var D=0;D<n;D++){var F=$[D];e&&Z(F,F,e),f.push(V(F[0]*H-Y),",",V(F[1]*H-Y),D<n-1?",":"")}}}return f.join("")}(l.data,this.transform),n.style.zIndex=Q(this.zlevel,this.z,this.z2),J(t,n),e.text&&this.drawRectText(t,this.getBoundingRect())},u.prototype.onRemove=function(t){c(t,this._vmlEl),this.removeRectText(t)},u.prototype.onAdd=function(t){J(t,this._vmlEl),this.appendRectText(t)},s.prototype.brushVML=function(t){var e,n,i=this.style,r=i.image;if(function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()}(r)){var o=r.src;if(o===this._imageSrc)e=this._imageWidth,n=this._imageHeight;else{var a=r.runtimeStyle,s=a.width,l=a.height;a.width="auto",a.height="auto",e=r.width,n=r.height,a.width=s,a.height=l,this._imageSrc=o,this._imageWidth=e,this._imageHeight=n}r=o}else r===this._imageSrc&&(e=this._imageWidth,n=this._imageHeight);if(r){var u=i.x||0,h=i.y||0,c=i.width,p=i.height,f=i.sWidth,d=i.sHeight,y=i.sx||0,m=i.sy||0,g=f&&d,v=this._vmlEl;v||(v=j.doc.createElement("div"),K(v),this._vmlEl=v);var x,_=v.style,w=!1,b=1,P=1;if(this.transform&&(x=this.transform,b=q(x[0]*x[0]+x[1]*x[1]),P=q(x[2]*x[2]+x[3]*x[3]),w=x[1]||x[2]),w){var S=[u,h],C=[u+c,h],M=[u,h+p],T=[u+c,h+p];Z(S,S,x),Z(C,C,x),Z(M,M,x),Z(T,T,x);var A=W(S[0],C[0],M[0],T[0]),E=W(S[1],C[1],M[1],T[1]),I=[];I.push("M11=",x[0]/b,",","M12=",x[2]/P,",","M21=",x[1]/b,",","M22=",x[3]/P,",","Dx=",V(u*b+x[4]),",","Dy=",V(h*P+x[5])),_.padding="0 "+V(A)+"px "+V(E)+"px 0",_.filter=X+".Matrix("+I.join("")+", SizingMethod=clip)"}else x&&(u=u*b+x[4],h=h*P+x[5]),_.filter="",_.left=V(u)+"px",_.top=V(h)+"px";var L=this._imageEl,R=this._cropEl;L||(L=j.doc.createElement("div"),this._imageEl=L);var O=L.style;if(g){if(e&&n)O.width=V(b*e*c/f)+"px",O.height=V(P*n*p/d)+"px";else{var N=new Image,k=this;N.onload=function(){N.onload=null,e=N.width,n=N.height,O.width=V(b*e*c/f)+"px",O.height=V(P*n*p/d)+"px",k._imageWidth=e,k._imageHeight=n,k._imageSrc=r},N.src=r}R||((R=j.doc.createElement("div")).style.overflow="hidden",this._cropEl=R);var z=R.style;z.width=V((c+y*c/f)*b),z.height=V((p+m*p/d)*P),z.filter=X+".Matrix(Dx="+-y*c/f*b+",Dy="+-m*p/d*P+")",R.parentNode||v.appendChild(R),L.parentNode!=R&&R.appendChild(L)}else O.width=V(b*c)+"px",O.height=V(P*p)+"px",v.appendChild(L),R&&R.parentNode&&(v.removeChild(R),this._cropEl=null);var D="",F=i.opacity;F<1&&(D+=".Alpha(opacity="+V(100*F)+") "),D+=X+".AlphaImageLoader(src="+r+", SizingMethod=scale)",O.filter=D,v.style.zIndex=Q(this.zlevel,this.z,this.z2),J(t,v),i.text&&this.drawRectText(t,this.getBoundingRect())}},s.prototype.onRemove=function(t){c(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},s.prototype.onAdd=function(t){J(t,this._vmlEl),this.appendRectText(t)};var p,A="normal",E={},I=0,L=document.createElement("div");C.measureText=function(t,e){var n=j.doc;p||((p=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",j.doc.body.appendChild(p));try{p.style.font=e}catch(t){}return p.innerHTML="",p.appendChild(n.createTextNode(t)),{width:p.offsetWidth}};for(var R=new r,f=function(t,e,n,i){var r=this.style,o=r.text;if(o){var a,s,l=r.textAlign,u=function(t){var e=E[t];if(!e){100<I&&(I=0,E={});var n,i=L.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(t){}e={style:i.fontStyle||A,variant:i.fontVariant||A,weight:i.fontWeight||A,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},E[t]=e,I++}return e}(r.textFont),h=u.style+" "+u.variant+" "+u.weight+" "+u.size+'px "'+u.family+'"',c=r.textBaseline,p=r.textVerticalAlign;n=n||C.getBoundingRect(o,h,l,c);var f=this.transform;if(f&&!i&&(R.copy(e),R.applyTransform(f),e=R),i)a=e.x,s=e.y;else{var d=r.textPosition,y=r.textDistance;if(d instanceof Array)a=e.x+M(d[0],e.width),s=e.y+M(d[1],e.height),l=l||"left",c=c||"top";else{var m=C.adjustTextPositionOnRect(d,e,n,y);a=m.x,s=m.y,l=l||m.textAlign,c=c||m.textBaseline}}if(p){switch(p){case"middle":s-=n.height/2;break;case"bottom":s-=n.height}c="top"}var g=u.size;switch(c){case"hanging":case"top":s+=g/1.75;break;case"middle":break;default:s-=g/2.25}switch(l){case"left":break;case"center":a-=n.width/2;break;case"right":a-=n.width}var v,x,_,w=j.createNode,b=this._textVmlEl;b?(_=b.firstChild,v=_.nextSibling,x=v.nextSibling):(b=w("line"),v=w("path"),x=w("textpath"),_=w("skew"),x.style["v-text-align"]="left",K(b),v.textpathok=!0,x.on=!0,b.from="0 0",b.to="1000 0.05",J(b,_),J(b,v),J(b,x),this._textVmlEl=b);var P=[a,s],S=b.style;f&&i?(Z(P,P,f),_.on=!0,_.matrix=f[0].toFixed(3)+","+f[2].toFixed(3)+","+f[1].toFixed(3)+","+f[3].toFixed(3)+",0,0",_.offset=(V(P[0])||0)+","+(V(P[1])||0),_.origin="0 0",S.left="0px",S.top="0px"):(_.on=!1,S.left=V(a)+"px",S.top=V(s)+"px"),x.string=function(t){return String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;")}(o);try{x.style.font=h}catch(t){}T(b,"fill",{fill:i?r.fill:r.textFill,opacity:r.opacity},this),T(b,"stroke",{stroke:i?r.stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),b.style.zIndex=Q(this.zlevel,this.z,this.z2),J(t,b)}},d=function(t){c(t,this._textVmlEl),this._textVmlEl=null},y=function(t){J(t,this._textVmlEl)},m=[o,a,s,u,l],g=0;g<m.length;g++){var v=m[g].prototype;v.drawRectText=f,v.removeRectText=d,v.appendRectText=y}l.prototype.brushVML=function(t){var e=this.style;e.text&&this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0)},l.prototype.onRemove=function(t){this.removeRectText(t)},l.prototype.onAdd=function(t){this.appendRectText(t)}}},function(t,e,n){n(203),n(67).registerPainter("vml",n(202))}])},function(t,e,n){var i,r;i=[n(15),n,e,t],void 0===(r=function(d,t,e,n){function i(t){var e=t||{};this.fromColor=e.fromColor,this.toColor=e.toColor,this.size=e.size}return i.prototype.createRamp=function(){var t,e,n,i,r,o,a,s,l,u,h;e=(t=d.fromHex(this.toColor)).r,n=t.g,i=t.b,o=(r=d.fromHex(this.fromColor)).r,a=r.g,s=r.b,l=(o-e)/(this.size-1),u=(a-n)/(this.size-1),h=(s-i)/(this.size-1);for(var c=[],p=0;p<this.size;p++){var f=new d({r:parseInt(l*p+e),g:parseInt(u*p+n),b:parseInt(h*p+i)});c.push(f.toHex())}return c},n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(139),n(61),n,e,t],void 0===(r=function(t,n,s,e,i,r){function o(t){var e=t||{};n.call(this,e),this.fields=e.fields,this.options={colors:e.colors||["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],name:e.name},l=this}var l=null;return t.extend2(o,n),o.prototype.copy=function(){var t=this.options,e=new o({fields:this.fields,colors:t.colors,name:t.name,style:this.style,customOption:this.customOption});return e.customOption=this.customOption,e},o.prototype.getOption=function(t){for(var e=[],n=[],i=[],r=0,o=0;o<this.fields.length;o++){var a=this.fields[o];a.dataType>=s.Int&&a.dataType<=s.Boolean&&(e.push({value:t.getValue(a.name),name:a.alias}),0==t.getValue(a.name)&&r++,this.options.colors?this.options.colors.constructor===Array&&(n.push({name:a.alias,color:this.options.colors[o]||"#000"}),i.push(a.alias)):(n.push({name:a.alias,color:"#00FF00"}),i.push(a.alias)))}return r==this.fields.length?null:{data:{tooltip:this.options.tooltip||{},grid:this.options.grid||{top:"1%"},xAxis:this.options.xAxis||{data:i,boundaryGap:!1,axisLabel:{interval:0,rotate:-90}},yAxis:this.options.yAxis||{show:!1,type:"value"},series:[{name:this.options.name||"",type:"line",data:e,symbol:"circle",symbolSize:5,itemStyle:{normal:{color:function(t){return l.options.colors[t.dataIndex]},lineStyle:{color:"#00FF00"}}}}]},legend:n}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(139),n(61),n,e,t],void 0===(r=function(t,n,u,e,i,r){function o(t){var e=t||{};n.call(this,e),this.fields=e.fields,this.options={type:void 0===e.type?1:e.type,colors:e.colors||["#c4ccd3","#546579"],name:e.name,radius:e.radius,labelStyle:e.labelStyle},h=this}var h=null;function c(t,e){var n,i,r;try{n=t.toString().split(".")[1].length}catch(t){n=0}try{i=e.toString().split(".")[1].length}catch(t){i=0}return(t*(r=Math.pow(10,Math.max(n,i)))+e*r)/r}return t.extend2(o,n),o.prototype.copy=function(){var t=this.options,e=new o({fields:this.fields,type:t.type,colors:t.colors,name:t.name,radius:t.radius,labelStyle:t.labelStyle,style:this.style});return e.customOption=this.customOption,e},o.prototype.getOption=function(t){switch(this.options.type){case 0:return o.simple(t);case 1:return o.doughnut(t);default:return o.simple(t)}},o.doughnut=function(t){for(var e=[],n=[],i=0,r=0,o=h.options.radius,a=0;a<h.fields.length;a++){var s=h.fields[a];s.dataType>=u.Int&&s.dataType<=u.Boolean&&(e.push({value:t.getValue(s.name),name:s.alias}),r=c(r,t.getValue(s.name)),0==t.getValue(s.name)&&i++,h.options.colors?h.options.colors.constructor===Array&&n.push({name:s.alias,color:h.options.colors[a]||"#000"}):n.push(s.alias))}if(i==h.fields.length)return null;t.extend&&(o=t.extend.radius);var l={tooltip:h.options.tooltip||{},grid:h.options.grid,series:[{name:h.options.name||"",type:"pie",avoidLabelOverlap:!1,radius:o||["50%","70%"],label:{normal:{show:!0,position:"center",formatter:function(){return r},textStyle:h.options.labelStyle}},data:e}]};return h.options.colors&&h.options.colors.constructor===Array&&(l.series[0].itemStyle={normal:{color:function(t){return h.options.colors[t.dataIndex]}}}),{data:l,legend:n}},o.simple=function(t){for(var e=[],n=[],i=0,r=h.options.radius,o=0;o<h.fields.length;o++){var a=h.fields[o];e.push({value:t.getValue(a.name),name:a.alias}),0==t.getValue(a.name)&&i++,h.options.colors?h.options.colors.constructor===Array&&n.push({name:a.alias,color:h.options.colors[o]||"#000"}):n.push(a.alias)}if(i==h.fields.length)return null;t.extend&&(r=t.extend.radius);var s={tooltip:h.options.tooltip||{},grid:h.options.grid,series:[{name:h.options.name||"",type:"pie",radius:r||"80%",label:{normal:{show:!1}},data:e}]};return h.options.colors&&h.options.colors.constructor===Array&&(s.series[0].itemStyle={normal:{color:function(t){return h.options.colors[t.dataIndex]}}}),{data:s,legend:n}},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(32),n(28),n(119),n(31),n(41),n(120),n(34),n(63),n(95),n(78),n(121),n(156),n(157),n,e,t],void 0===(r=function(t,e,n,i,r,o,a,s,l,u,h,c,p,f,d,y){var m=document.createElement("canvas");m.getContext("2d")}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(51),n(9),n(32),n(31),n(15),n(84),n(85),n(105),n,e,t],void 0===(r=function(t,n,a,e,h,c,p,f,i,r,o,s){var l=null,u=function(t){var e=t||{};n.call(this,e),this.chartTemplate=e.chartTemplate,this.map=e.map.map,this.resize=e.resize||!1,this.charts=[],e.map&&this.resize&&(e.map.on("extentchanged",u.onExtentChanged.call(this)),l=e.map),this.convertor=new i};return t.extend2(u,n),u.onExtentChanged=function(){for(var t=l.getZoomLevel(),e=0;e<this.charts.length;e++){var n=this.charts[e].element.getElement();n.style.width=12*t+"%",n.style.height=12*t+"%",this.charts[e].value.resize()}},u.prototype.canRender=function(){return!1},u.prototype.createLegend=function(t,e){var n=this.chartTemplate.getLegend();0<this.charts.length&&(n=this.charts[0].value.getLegend());for(var i=["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],r=new p,o=null,a=null,s=new h,l=0;l<n.length;l++){var u=n[l];o="object"==typeof u?("string"==typeof u.color?s.fillColor=c.fromHex(u.color):s.fillColor=u.color,a=this.convertor.toImage(s,t,e),new f({content:u.name,image:a})):(s.fillColor=c.fromHex(i[l]),a=this.convertor.toImage(s,t,e),new f({content:u,image:a})),r.add(o)}return r},u.prototype.render=function(t){var e=this.chartTemplate.copy();e.bindEvents(this.chartTemplate,t);var n=e.toHtml(t);if(n){var i=t.geometry,r=(i=i||t.getGeometry()).getBaryCenter(),o=new a.Overlay({positioning:"center-center",element:n,stopEvent:!1});o.setPosition([r.x,r.y]),this.map.addOverlay(o),u.add.call(this,{element:o,value:e})}},u.prototype.unRender=function(){u.remove.call(this)},u.prototype.show=function(t){var e="block";e=t?"block":"none";for(var n=0;n<this.charts.length;n++){this.charts[n].element.getElement().style.display=e}},u.add=function(t){this.charts.push(t)},u.remove=function(){for(var t=0;t<this.charts.length;t++)this.map.removeOverlay(this.charts[t].element);this.charts=[]},s.exports=u}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(76),n(27),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){this.$type="EntityDef,http://www.Gs.com",this.state=0,t&&(this.alias=t.alias,this.memo=t.memo,this.fields=t.fields,this.name=t.name,this.id=e.newGuid())}return o.prototype.createEntity=function(){return new t(this.fields)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.near=t.near||0,this.far=t.far||Number.MAX_VALUE,this.$type="DistanceDisplayCondition,http://www.Gs.com"}return i.prototype.clone=function(){return new i(this)},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(114),n(25),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.fields=t.fields,this.$type="GElement,http://www.Gs.com"}return t.extend2(a,e),a.prototype.getElement=function(){return this.getIdentity()},a.prototype.setElement=function(t){this.setIdentity(t)},a.prototype.getIdentityIndex=function(){for(var t=0,e=this.fields.getCount();t<e;++t)if(n.isElementType(this.fields.getField(t).dataType))return t;return-1},a.prototype.copy=function(){for(var t=[],e=0,n=this.properties.length;e<n;e++)t.push(this.properties[e].copy());return new a({fields:this.fields,properties:t})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(118),n(25),n,e,t],void 0===(r=function(t,e,i,n,r,o){function a(t){e.call(this,t),this.$type="GElementCollection,http://www.Gs.com"}function s(){for(var t=-1,e=0,n=this.fields.getCount();e<n;++e)if(i.isElementType(this.fields.getField(e).dataType)){t=e;break}return t}return t.extend2(a,e),a.prototype.reset=function(){this.uber.reset.call(this);var e=this;s.call(this);this.entities.forEach(function(t){t.fields=e.fields})},a.prototype.unReset=function(){this.uber.unReset.call(this);s.call(this);this.entities.forEach(function(t){t.fields=null})},a.prototype.getIdentityIndex=function(){return s.call(this)},a.prototype.destroy=function(){this.entities.length=0},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(109),n(38),n(17),n(160),n(1),n(29),n(5),n(6),n(15),n(31),n(34),n(41),n(28),n(32),n,e,t],void 0===(r=function(t,n,g,v,e,x,_,l,u,i,w,b,r,P,S,o,a,s){function h(t){if(t=t||{},n.call(this,t),this.dimension=t.dimension||2,this.anchor=t.anchor,this.size=t.size||3,this.label=t.label,this.fontSize=t.fontSize||12,this.fontFamilyName=t.fontFamilyName||"Arial",this.leadLength=t.leadLength||100,this.angle=t.angle||60,this.lineWidth=t.lineWidth||2,this.lineColor=t.lineColor||new i({r:19,g:181,b:177,a:153}),this.lineStyle=t.lineStyle||5,this.foregroundColor=t.foregroundColor||new i({r:0,g:0,b:0,a:255}),this.textBorderColor=t.textBorderColor||new i({a:255,r:0,g:0,b:0}),this.textBorderThickness=t.textBorderThickness,this.backgroundColor=t.backgroundColor||new i({r:0,b:200,g:0,a:255}),this.textBackgroundBorderColor=t.textBackgroundBorderColor||new i({r:0,b:200,g:0,a:255}),this.textBackgroundBorderThickness=t.textBackgroundBorderThickness,this.textAlign="center",void 0===t.padding&&(t.padding=10),!(t.padding instanceof Array)){var e=t.padding;t.padding=[e,e,e,e]}this.padding=t.padding||[5,5,5,5],this.$type="LeadLabel,http://www.Gs.com"}t.extend2(h,n);var m=m||document.createElement("canvas");function C(t,e,n,i){var r=new u({spatialReference:n.spatialReference}),o=new l({spatialReference:n.spatialReference});r.addPoint(n.copy());var a=n.x,s=n.y;return 0<=i&&i<=90?(r.addPoint(new x({x:a+t,y:s,spatialReference:n.spatialReference})),r.addPoint(new x({x:a+t,y:s+e,spatialReference:n.spatialReference})),r.addPoint(new x({x:a,y:s+e,spatialReference:n.spatialReference}))):90<i&&i<=180?(r.addPoint(new x({x:a-t,y:s,spatialReference:n.spatialReference})),r.addPoint(new x({x:a-t,y:s+e,spatialReference:n.spatialReference})),r.addPoint(new x({x:a,y:s+e,spatialReference:n.spatialReference}))):180<i&&i<=270?(r.addPoint(new x({x:a-t,y:s,spatialReference:n.spatialReference})),r.addPoint(new x({x:a-t,y:s-e,spatialReference:n.spatialReference})),r.addPoint(new x({x:a,y:s-e,spatialReference:n.spatialReference}))):270<i&&i<360&&(r.addPoint(new x({x:a+t,y:s,spatialReference:n.spatialReference})),r.addPoint(new x({x:a+t,y:s-e,spatialReference:n.spatialReference})),r.addPoint(new x({x:a,y:s-e,spatialReference:n.spatialReference}))),r.close(),o.addGeometry(r),o}function M(t,e){this.padding;var n=[0,0];return 0<=t&&t<=90?(n[0]=e.width/2,n[1]=-e.height/2):90<t&&t<=180?(n[0]=-e.width/2,n[1]=-e.height/2):180<t&&t<=270?(n[0]=-e.width/2,n[1]=e.height/2):270<t&&t<360&&(n[0]=e.width/2,n[1]=e.height/2),n}return h.prototype.format=function(t){var e=this._measureTextWidthAndHeight(),n=M.call(this,this.angle,e),i=Math.cos(this.angle/180*Math.PI)*this.leadLength*t,r=Math.sin(this.angle/180*Math.PI)*this.leadLength*t,o=new b({text:this.label,foreground:this.foregroundColor,borderColor:this.textBorderColor,borderThickness:this.textBorderThickness,fontFamilyName:this.fontFamilyName,fontSize:this.fontSize,textAlign:this.textAlign,textBaseline:this.baseLine,padding:this.padding,offsetX:n[0],offsetY:n[1]}),a=new w({size:this.size,fillColor:this.lineColor,borderColor:this.lineColor}),s=new x({x:this.anchor.x+i,y:this.anchor.y+r,spatialReference:this.anchor.spatialReference}),l=new P({color:this.lineColor,style:this.lineStyle,width:this.lineWidth}),u=new _({spatialReference:this.anchor.spatialReference});u.addPoint(this.anchor),u.addPoint(s);var h=new S({fillColor:this.backgroundColor,borderColor:this.textBackgroundBorderColor,borderThickness:this.textBackgroundBorderThickness}),c=C(e.width*t,e.height*t,s,this.angle),p=new v({symbol:a,geometry:this.anchor}),f=new v({symbol:o,geometry:s}),d=new v({symbol:l,geometry:u}),y=new v({geometry:c,symbol:h}),m=new g;return m.add(d),m.add(p),m.add(f),m.add(y),m.reset(),m},h.prototype.update=function(t,e){var n=this._measureTextWidthAndHeight(),i=e.getItem(0),r=e.getItem(1),o=e.getItem(2),a=e.getItem(3),s=M.call(this,this.angle,n),l=Math.cos(this.angle/180*Math.PI)*this.leadLength*t,u=Math.sin(this.angle/180*Math.PI)*this.leadLength*t,h=o.geometry;h.x=this.anchor.x+l,h.y=this.anchor.y+u;var c=n.width*t,p=n.height*t;a.geometry=C(c,p,h,this.angle);var f=i.symbol,d=o.symbol,y=r.symbol,m=a.symbol;d.text=this.label,d.foreground=this.foregroundColor,d.borderColor=this.textBorderColor,d.borderThickness=this.textBorderThickness,d.fontFamilyName=this.fontFamilyName,d.fontSize=this.fontSize,d.textAlign=this.textAlign,d.textBaseline=this.baseLine,d.padding=this.padding,d.offsetX=s[0],d.offsetY=s[1],m.fillColor=this.backgroundColor,m.borderColor=this.textBackgroundBorderColor,m.borderThickness=this.textBackgroundBorderThickness,f.color=this.lineColor,f.width=this.lineWidth,f.style=this.lineStyle,y.size=this.size,y.fillColor=this.lineColor,y.borderColor=this.lineColor},h.prototype._measureTextWidthAndHeight=function(){var t=this.fontSize+"px "+this.fontFamilyName,e=this.foregroundColor.toRgba(),n=this.foregroundColor.toRgba();m.height=m.width=10;var i=m.getContext("2d");i.background=this.backgroundColor.toRgba(),i.font=t,i.lineWidth=1;for(var r=0,o=function(t){var e=[],n=t.split("\n");e=""===n[n.length-1]?n.splice(0,n.length-1):n;return e}(this.label),a=0,s=o.length;a<s;++a){var l=i.measureText(o[a]).width;r<l&&(r=l)}var u=function(){var t;t||((t=document.createElement("span")).textContent="M",t.style.margin=t.style.padding="0 !important",t.style.position="absolute !important",t.style.left="-99999px !important");t.style.fontFamilyName=this.fontFamilyName,t.style.fontSize=this.fontSize+"px",document.body.appendChild(t);var e=t.offsetHeight;return document.body.removeChild(t),e}.call(this),h=2===this.dimension?u*o.length+2:this.fontSize*o.length+2,c=this.padding[3],p=this.padding[0],f=this.padding[1];r=r+c+f,h=h+p+this.padding[2],m.width=r,m.height=h,i.fillStyle=this.backgroundColor.toRgba(),i.strokeStyle=this.textBackgroundBorderColor.toRgba(),i.lineWidth=this.textBackgroundBorderThickness,i.fillRect(0,0,m.width,m.height),i.strokeRect(0,0,m.width,m.height),i.save(),i.font=t,i.fillStyle=e,i.strokeStyle=n,i.lineWidth=1,i.lineWidth=this.textBorderThickness;var d=c,y=p;for(a=0,s=o.length;a<s;++a)"center"===this.textAlign&&(d=(r-c-f-i.measureText(o[a]).width)/2+c),"right"===this.textAlign&&(d=r-i.measureText(o[a]).width-f),y+=this.fontSize,i.fillText(o[a],d,y);return{image:m.toDataURL(),width:m.width,height:m.height}},s.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.index=t.index,this.analyzer=t.analyzer,this.$type="ESAnalyzer,http://www.Gs.com"}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(50),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t),this.analyzers=t.analyzers,this.$type="ESField,http://www.Gs.com"}return t.extend2(o,e),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(198),n(35),n(50),n(127),n(49),n(153),n(439),n,e,t],void 0===(r=function(u,h,c,p,f,d,y,t,e,n){var i={};function m(t,e){var n=t.properties,i=new h,r=[];for(var o in n){var a=new c({name:o});i.fields.push(a);var s=new p;s.setValue(n[o]),r.push(s)}var l=d.fromJson(t.geometry,e);return new u({values:r,fields:i,geometry:l,objectId:t.id})}return i.fromJson=function(t,e){var n="";if(!t)return null;n=t.crs?function(t){return"urn:ogc:def:crs:EPSG::3857"===t||"urn:ogc:def:crs:EPSG:3857"===t||"EPSG:3857"===t||"EPSG:102100"===t||"EPSG:102113"===t||"EPSG:900913"===t||"urn:ogc:def:crs:EPSG:6.18:3:3857"===t||"http://www.opengis.net/gml/srs/epsg.xml#3857"===t?f.EPSG3857:"CRS:84"===t||"EPSG:4326"===t||"urn:ogc:def:crs:EPSG:6.6:4326"===t||"urn:ogc:def:crs:OGC:1.3:CRS84"===t||"urn:ogc:def:crs:OGC:2:84"===t||"http://www.opengis.net/gml/srs/epsg.xml#4326"===t||"urn:x-ogc:def:crs:EPSG:4326"===t||"urn:x-ogc:def:crs:EPSG::4326"===t?f.EPSG4326:void 0}(t.crs.properties.name):e;var i=t;if("Feature"==i.type)return m(i,n);if(i.type="FeatureCollection"){var r=i.features,o=new y;if(null!=r)for(var a=0,s=r.length;a<s;++a){var l=m(r[a],n);o.add(l)}return o}},n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(114),n(25),n(1),n,e,t],void 0===(r=function(t,e,r,i,n,o,a){function s(t){t=t||{},e.call(this,t),this.$type="GModel,http://www.Gs.com"}return t.extend2(s,e),s.prototype.getModel=function(){return this.getIdentity()},s.prototype.setModel=function(t){this.setIdentity(t)},s.prototype.getPosition=function(){this.properties;for(var t=0,e=this.properties.length;t<e;t++){var n=this.properties[t].getValue();if(n&&n instanceof i)return n}},s.prototype.getIdentityIndex=function(){for(var t=this.getFields(),e=0,n=t.getCount();e<n;e++){var i=t.getField(e);if(r.isModelType(i.dataType))return e}return-1},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(118),n(25),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){e.call(this,t),this.$type="GModelCollection,http://www.Gs.com"}return t.extend2(a,e),a.prototype.getIdentityIndex=function(){for(var t=0,e=this.fields.getCount();t<e;t++)if(n.isModelType(this.fields.getField(t).dataType))return t;return-1},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function r(t){if(t=t||{},this.$type="Model,http://www.Gs.com",t instanceof Fields){this.fields=t,this.values=[];for(var e=0,n=t.getCount();e<n;++e)this.values.push(new Value)}else this.values=t.values,this.fields=t.fields,this.position=t.position,this.objectId=t.objectId,this.content=t.content}return r.prototype.getFields=function(){return this.fields},r.prototype.getValue=function(t){var e=this.fields.findIndex(t);return-1!=e?this.values[e]:null},r.prototype.setValue=function(t,e){var n=this.fields.findIndex(t);-1!=n&&this.values[n].setValue(e)},r.prototype.copy=function(){for(var t={values:[],fields:this.fields,position:this.position.copy(),objectId:this.objectId,content:this.content},e=0,n=this.values.length;e<n;++e){var i=new Value;i.setValue(this.values[e].getValue()),t.values.push(i)}return new r(t)},n.exports=r}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(440),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},e.call(this,t)}return t.extend2(o,e),o.prototype.fromCsv=function(t){papaparse.parse(t,{download:!0,complete:function(t){if(t){for(var e,n,i,r=t.data,o={type:"FeatureCollection",features:[]},a=0;a<r[0].length;a++)"x"!=r[0][a]&&"X"!=r[0][a]&&"longitude"!=r[0][a]&&"LONGITUDE"!=r[0][a]||(e=a),"y"!=r[0][a]&&"Y"!=r[0][a]&&"latitude"!=r[0][a]&&"LATITUDE"!=r[0][a]||(n=a),"wkt"!=r[0][a]&&"SDE.ST_ASTEXT(SHAPE)"!=r[0][a]||(i=a);for(var s in r)if("0"!=s){var l={type:"Feature",properties:{},geometry:{},symbol:{}},u={};if(null!=e||null!=n){var h={type:"Point",coordinates:[r[s][e],r[s][n]]};u.type="SimpleMarkerSymbol",l.geometry=h,l.symbol=u,o.features.push(l)}if(null!=i){if(!r[s][i])break;"LineString"==(h=G.utils.GeometryUtil.getGeoJSONWriter().write(G.utils.GeometryUtil.getWktReader().read(r[s][i]))).type?u.type="SimpleLineSymbol":u.type="SimpleFillSymbol",l.geometry=h,l.symbol=u,o.features.push(l)}}}}})},o.prototype.toCsv=function(){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={XY:0,XYZ:1,XYM:2,XYZM:3};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(29),n(8),n,e,t],void 0===(r=function(t,n,e,i,r,o){function a(t){var e=t||{};n.call(this,e),this.$type="Line,http://www.Gs.com"}return t.extend2(a,n),a.prototype.getGeometryType=function(){return e.Line},a.prototype.copy=function(){return new a(this)},a.prototype.envelope=function(){return null},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(91),n(8),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};n.call(this,e),this.geometryType=i.Segment,this.$type="Segment,http://www.Gs.com"}return t.extend2(a,n),a.prototype.getGeometryType=function(){return this.geometryType},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){t=t||{},this.normal=t.normal,this.distance=t.distance}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(10),n(179),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){t=t||{},this._planes=t.planes||[],this._edgeColor=t.edgeColor,this._edgeWidth=t.edgeWidth,this._edgeColorChangedEvent=new e,this._edgeWidthChangedEvent=new e}return t(o.prototype,{edgeColor:{get:function(){return this._edgeColor},set:function(t){t!==this._edgeColor&&(this._edgeColor=t,this._edgeColorChangedEvent.raiseEvent())}},edgeWidth:{get:function(){return this._edgeWidth},set:function(t){t!==this._edgeWidth&&(this._edgeWidth=t,this._edgeWidthChangedEvent.raiseEvent())}},planes:{get:function(){return this._planes}}}),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(70),n,e,t],void 0===(r=function(n,t,e,i){function r(t){t=t||{},this.normal=t.normal,this.distance=t.distance}return r.prototype.getPointDistance=function(t){var e=new n(t);return n.dot(this.normal,e)+this.distance},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.x=e.x||0,this.y=e.y||0,this.z=e.z||0,this.w=e.w||0}return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(1),n(70),n,e,t],void 0===(r=function(e,i,t,n,r){function o(t){t=t||{},this.origin=t.origin||new e({x:0,y:0,z:0}),this.direction=t.direction||new i({x:0,y:1,z:0})}return o.prototype.copy=function(){return o({origin:this.origin.copy(),direction:this.direction.copy()})},o.formPoints=function(t,e){var n=i.fromPoint(t,e);return n.normalize(),new o({origin:t,direction:n})},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={meterToDegrees:function(t,e){var n=Math.PI/180,i=t.x-2/n*Math.asin(Math.sin(e/2/6378.137/1e3)/Math.cos(n*t.y));return Math.abs(i-t.x)},degreesToMeters:function(t,e){var n=Math.PI/180,i=(t.y+e)*n,r=t.y*n,o=i-r,a=(t.x-t.x)*n,s=2*Math.asin(Math.sqrt(Math.pow(Math.sin(o/2),2)+Math.cos(i)*Math.cos(r)*Math.pow(Math.sin(a/2),2)));return s=6378.137*s*1e3}};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(15),n,e,t],void 0===(r=function(o,t,e,n){function i(t){var e=t||{};this.stops=e.stops,this.size=e.size;var n=document.createElement("canvas");n.width=this.size,n.height=1,this.context=n.getContext("2d")}return i.prototype.createRamp=function(){var e=this.context.createLinearGradient(0,0,this.size,0);this.stops.forEach(function(t){e.addColorStop(t.step,t.color.toggleRowExpansion())}),this.context.fillStyle=e,this.context.fillRect(0,0,this.size,1);for(var t,n=[],i=0;i<this.size;i++){n=this.context.getImageData(i,1,1,1);var r=new o({r:t[0],g:t[1],b:t[2],a:t[3]});n.push(r)}return n},n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(86),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.radius=e.radius,this.height=e.height,this.slices=e.slices||8,this.$type="ConePrimitive,http://www.Gs.com"}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(86),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.height=e.height,this.depth=e.depth,this.width=e.width,this.$type="CubePrimitive,http://www.Gs.com"}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(86),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.height=e.height,this.bottomRadius=e.bottomRadius,this.topRadius=e.topRadius,this.slices=e.slices||8,this.$type="CylinderPrimitive,http://www.Gs.com"}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(86),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.radiusX=e.radiusX,this.radiusY=e.radiusY,this.radiusZ=e.radiusZ,this.$type="EllipsoidPrimitive,http://www.Gs.com"}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(108),n(15),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.color=t.color||new n({r:255,g:0,b:0,a:255}),this.image=t.image,this.repeat=t.repeat||[20,1],this.axisY=void 0!==t.axisY&&t.axisY,this.$type="GroundLineFlowSymbol,http://www.Gs.com"}return t.extend2(a,e),a.prototype.copy=function(){return new a({color:this.color.copy(),image:this.image,repeat:[this.repeat[0],this.repeat[1]],axisY:this.axisY,width:this.width})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(53),n(15),n,e,t],void 0===(r=function(t,n,i,e,r,o){function a(t){var e=t||{};this.lineStyle=null==e.lineStyle?5:e.lineStyle,this.lineWidth=null==e.lineWidth?5:e.lineWidth,this.lineColor=null==e.lineColor?new i({a:255,r:0,g:0,b:0}):e.lineColor,this.fill=e.fill,n.call(this,e),this.$type="MixSymbol,http://www.Gs.com"}return t.extend2(a,n),a.prototype.copy=function(){return new a({lineStyle:this.lineStyle,lineWidth:this.lineWidth,lineColor:this.lineColor.copy(),fill:this.fill.copy()})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(86),n,e,t],void 0===(r=function(t,n,e,i,r){function o(t){var e=t||{};n.call(this,e),this.radius=e.radius,this.$type="SpherePrimitive,http://www.Gs.com"}return t.extend2(o,n),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){var e=t||{};this.step=e.step,this.color=e.color,this.$type="Stop,http://www.Gs.com"}return i.prototype.copy=function(){return new i({step:this.step,color:this.color.copy()})},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){this.stops=[],this.$type="StopCollection,http://www.Gs.com"}return i.prototype.addStop=function(t){this.stops.push(t)},i.prototype.remove=function(t){var e=this.stops.indexOf(t);this.stops.splice(e,1)},i.prototype.getItem=function(t){if(0<=t&&t<this.stops.length)return this.stops[t]},i.prototype.getCount=function(){return this.stops.length},i.prototype.copy=function(){for(var t=new i,e=0,n=this.stops.length;e<n;++e)t.addStop(this.stops[e].copy());return t},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(57),n(15),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){t=t||{},e.call(this,t),this.source=t.source,this.heading=t.heading,this.pitch=t.pitch,this.roll=t.roll,this.color=t.color||new n({r:255,g:255,b:255,a:255}),this.scale=null==t.scale?1:t.scale,this.silhouetteopacity=null==t.silhouetteopacity?0:t.silhouetteopacity,this.silhouetteColor=t.silhouetteColor||new n({r:255,g:255,b:255,a:0}),this.clippingPlanes=t.clippingPlanes||void 0,this.$type="Marker3DSymbol,http://www.Gs.com"}return t.extend2(a,e),a.prototype.copy=function(){return new a({heading:this.heading,pitch:this.pitch,roll:this.roll,scale:this.scale,silhouetteopacity:this.silhouetteopacity,color:this.color.copy(),source:this.source,silhouetteColor:this.silhouetteColor.copy(),clippingPlanes:this.clippingPlanes})},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(21),n(15),n(442),n,e,t],void 0===(r=function(s,o,a,t,e,n){function i(t){this.baseUrl=null==t.baseUrl?void 0:t.baseUrl,this.symbols={}}var l=[];function u(t){var e=this,n={width:parseInt(t.getAttribute("width")),height:parseInt(t.getAttribute("height")),source:this.baseUrl+t.getAttribute("source"),opacity:parseFloat(t.getAttribute("opacity")),offsetX:parseInt(t.getAttribute("offsetX")),offsetY:parseInt(t.getAttribute("offsetY")),rotation:parseFloat(t.getAttribute("rotation"))||0},i=t.getAttribute("Key")||t.getAttribute("key"),r=a.createVectorMarkerSymbolAsync(n);r.then(function(t){e.symbols[i]=t}),l.push(r)}function h(t){var e=this,n={width:parseInt(t.getAttribute("width")),height:parseInt(t.getAttribute("height")),source:this.baseUrl+t.getAttribute("source"),opacity:parseFloat(t.getAttribute("opacity")),offsetX:parseInt(t.getAttribute("offsetX")),offsetY:parseInt(t.getAttribute("offsetY")),rotation:parseFloat(t.getAttribute("rotation"))||0,scale:parseFloat(t.getAttribute("scale"))||1},i=t.getAttribute("Key")||t.getAttribute("key"),r=a.createPictureMarkerSymbolAsync(n);r.then(function(t){e.symbols[i]=t}),l.push(r)}function c(t){var e={fillColor:o.fromHex(t.getAttribute("Color")),size:parseInt(t.getAttribute("Size")),points:parseInt(t.getAttribute("Points")||0),radius1:parseFloat(t.getAttribute("Radius1")||0),radius2:parseFloat(t.getAttribute("Radius2")||0),angle:parseFloat(t.getAttribute("Angle")||0),style:function(){switch(parseInt(t.getAttribute("Style"))){case 0:return"circle";case 1:return"square";case 2:return"star";case 3:return"x";case 4:return"cross";case 5:return"triangle";case 6:return"regular";default:return"circle"}}()},n=t.getAttribute("Key")||t.getAttribute("key");n&&(this.symbols[n]=a.createSimpleMarkerSymbol(e))}function p(t){var e={width:parseInt(t.getAttribute("Width")),color:o.fromHex(t.getAttribute("Color")),style:parseInt(t.getAttribute("Style")),followModel:"true"==t.getAttribute("followModel")},n=t.getAttribute("Key")||t.getAttribute("key");n&&(this.symbols[n]=a.createSimpleLineSymbol(e))}function f(t){var e={borderColor:o.fromHex(t.getAttribute("BorderColor")),borderThickness:parseInt(t.getAttribute("Thickness")),style:parseInt(t.getAttribute("Style")),fillColor:o.fromHex(t.getAttribute("FillColor")),opacity:t.getAttribute("Opacity")?parseFloat(t.getAttribute("Opacity")):.6},n=t.getAttribute("Key")||t.getAttribute("key");n&&(this.symbols[n]=a.createSimpleFillSymbol(e))}function d(t){var e={text:t.getAttribute("Text")?t.getAttribute("Text"):"Text",fontFamilyName:t.getAttribute("FontFamilyName")?t.getAttribute("FontFamilyName"):"宋体",fontSize:t.getAttribute("FontSize")?parseInt(t.getAttribute("FontSize")):25,foreground:o.fromHex(t.getAttribute("Foreground")),offsetX:t.getAttribute("OffSetX")?parseInt(t.getAttribute("OffSetX")):0,offsetY:t.getAttribute("OffSetY")?parseInt(t.getAttribute("OffSetY")):0},n=t.getAttribute("Key")||t.getAttribute("key");n&&(this.symbols[n]=a.createTextSymbol(e))}function y(t){var e={source:t.getAttribute("source"),borderColor:o.fromHex(t.getAttribute("BorderColor")),borderThickness:parseFloat(t.getAttribute("Thickness")),opacity:parseFloat(t.getAttribute("opacity"))},n=t.getAttribute("Key")||t.getAttribute("key"),i=this,r=a.createTextureFillSymbolAsync(e);r.then(function(t){i.symbols[n]=t}),l.push(r)}function m(t){var e={source:t.getAttribute("source"),width:parseFloat(t.getAttribute("Width")),opacity:parseFloat(t.getAttribute("opacity"))},n=t.getAttribute("Key")||t.getAttribute("key"),i=this,r=a.createTextureLineSymbolAsync(e);r.then(function(t){i.symbols[n]=t}),l.push(r)}function g(t){var e={frequency:parseFloat(t.getAttribute("frequency")),animationSpeed:parseFloat(t.getAttribute("animationSpeed")),amplitude:parseFloat(t.getAttribute("amplitude"))},n=t.getAttribute("Key")||t.getAttribute("key");this.symbols[n]=a.createWaterSymbol(e)}function v(t){var e={waveWidth:parseInt(t.getAttribute("waveWidth")),flowDirection:parseFloat(t.getAttribute("flowDirection")),flowSpeed:parseFloat(t.getAttribute("flowSpeed")),waterColor:o.fromHex(t.getAttribute("waterColor")),source:t.getAttribute("source")},n=t.getAttribute("Key")||t.getAttribute("key"),i=a.createRippleSymbolAsync(e),r=this;i.then(function(t){r.symbols[n]=t}),l.push(i)}function x(t){var e={url:t.getAttribute("url")},n=t.getAttribute("Key")||t.getAttribute("key");this.symbols[n]=a.createVideoSymbol(e)}function _(t){var e=this,n={heading:parseFloat(t.getAttribute("heading")),pitch:parseFloat(t.getAttribute("pitch")),source:this.baseUrl+t.getAttribute("source"),roll:parseFloat(t.getAttribute("roll")),scale:parseFloat(t.getAttribute("scale")),silhouetteColor:o.fromHex(t.getAttribute("silhouetteColor"))},i=t.getAttribute("Key")||t.getAttribute("key"),r=a.createMarker3DSymbolAsync(n);r.then(function(t){e.symbols[i]=t}),l.push(r)}function w(t){var e=this,n={source:this.baseUrl+t.getAttribute("source")},i=t.getAttribute("Key")||t.getAttribute("key"),r=a.createPictureMarkerSymbolAsync(n);r.then(function(t){e.symbols[i]=t}),l.push(r)}return i.prototype.append=function(t,e){this.symbols[t]=e},i.prototype.find=function(t){return this.symbols[t]},i.prototype.load=function(t){for(var e=this,n=s.defer(),i=function(e){var n;if(window.ActiveXObject)(n=new ActiveXObject("Microsoft.XMLDOM")).load(e);else try{(n=document.implementation.createDocument("","",null)).async=!1,n.load(e)}catch(t){try{var i=new window.XMLHttpRequest;i.open("GET",e,!1),i.send(null),n=i.responseXML.documentElement}catch(t){error=t.message}}return n}(t),r=i.getElementsByTagName("MarkerSymbol"),o=0;o<r.length;o++){var a=r[o];c.call(e,a)}for(r=i.getElementsByTagName("LineSymbol"),o=0;o<r.length;o++){a=r[o];p.call(e,a)}for(r=i.getElementsByTagName("FillSymbol"),o=0;o<r.length;o++){a=r[o];f.call(e,a)}for(r=i.getElementsByTagName("TextSymbol"),o=0;o<r.length;o++){a=r[o];d.call(e,a)}for(r=i.getElementsByTagName("PictureMarkerSymbol"),o=0;o<r.length;o++){a=r[o];h.call(e,a)}for(r=i.getElementsByTagName("VectorMarkerSymbol"),o=0;o<r.length;o++){a=r[o];u.call(e,a)}for(r=i.getElementsByTagName("Marker3DSymbol"),o=0;o<r.length;o++){a=r[o];_.call(e,a)}for(r=i.getElementsByTagName("TextureFillSymbol"),o=0;o<r.length;o++){a=r[o];y.call(e,a)}for(r=i.getElementsByTagName("TextureLineSymbol"),o=0;o<r.length;o++){a=r[o];m.call(e,a)}for(r=i.getElementsByTagName("WaterSymbol"),o=0;o<r.length;o++){a=r[o];g.call(e,a)}for(r=i.getElementsByTagName("VideoSymbol"),o=0;o<r.length;o++){a=r[o];x.call(e,a)}for(r=i.getElementsByTagName("RippleSymbol"),o=0;o<r.length;o++){a=r[o];v.call(e,a)}for(r=i.getElementsByTagName("ParticleImage"),o=0;o<r.length;o++){a=r[o];w.call(e,a)}return s.all(l,function(t){n.resolve()}),n.promise},n.exports=i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){var i={specularMap:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/7QN8UGhvdG9zaG9wIDMuMAA4QklNA+kKUHJpbnQgSW5mbwAAAAB4AQAAUABIAEgAAAAAAtoCKP/h/+IC+QJGUAAFKAP8AAEAUABIAEgAAAAAAtoCKAAAAAAAZAAAAAAAAAAAAAAAAScPAAEAAQAAAAAAAAAAAAAAAAASAAACZAAAAxgAAAAAInIAAQABAAMAAgAAAAAAAAAA/lwBAAAAOEJJTQPtClJlc29sdXRpb24AAAAAEABIAAAAAQABAEgAAAABAAE4QklNBA0YRlggR2xvYmFsIExpZ2h0aW5nIEFuZ2xlAAAAAAQAAAB4OEJJTQQZEkZYIEdsb2JhbCBBbHRpdHVkZQAAAAAEAAAAHjhCSU0D8wtQcmludCBGbGFncwAAAAkAAAAAAAAAAAEAOEJJTQQKDkNvcHlyaWdodCBGbGFnAAAAAAEAADhCSU0nEBRKYXBhbmVzZSBQcmludCBGbGFncwAAAAAKAAEAAAAAAAAAAjhCSU0D9BxNb25vY2hyb21lIEhhbGZ0b25lIFNldHRpbmdzAAAAABIANQAAAAEALQAAAAYAAAAAAAE4QklNA/ccTW9ub2Nocm9tZSBUcmFuc2ZlciBTZXR0aW5ncwAAAAAcAAD/////////////////////////////A+gAADhCSU0ECAZHdWlkZXMAAAAAEAAAAAEAAAJAAAACQAAAAAA4QklNBB4NVVJMIG92ZXJyaWRlcwAAAAQAAAAAOEJJTQQaBlNsaWNlcwAAAAB3AAAABgAAAAAAAAAAAAAB9AAAA+gAAAALAGUAYQByAHQAaABzAHAAZQBjADIASwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAD6AAAAfQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOEJJTQQUF0xheWVyIElEIEdlbmVyYXRvciBCYXNlAAAABAAAAAI4QklNBCEaVmVyc2lvbiBjb21wYXR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9xX121sXhd10lFSJLUxiGRMlUJOrhiUvb2QH+YL/wmF/mN/wAv7pzP9/ZlurvkF1dtOoQ7trOgKvsDc269pYQwST1G79x7QzWwMDW0m0cWsLGur4ZaiGhS0k5jiJca53v3v3vJFFLPLHBBHJNNNIkUMMSNJLLLIwSOOONAXeR3IAABJJsPY57J+LXya7KTCy9dfHXvTfkO5KsUO3p9ndS793LT5ysNQ1L9riajDYCshyE4qUaMrEzkOpB5B9qnJfCL5oYbORbZy3xF+TuM3HPP9rT4Gu6E7UpcxUVJlMAgp8bNtRKyeVpgUARGJbgc+1bR/wAuT+YRkKdKuh+CnzEq6aRpFjnp/jR3PLE7QyvDKqumyypaOaNlYfhgR7dqf+WP/Mgqo2lp/gJ8zpUWQRMV+Mnc/EjKXC6TswNcqL/T2npP5eXz8hlqoJfg98vo5qGPzVkT/GvuZZKWLVo8k6nZgMceri549u+U/lq/zEsJtmLeWY+CPzCxm1pZ6unXOV3xu7gpqBZKFIZKvyyy7PUwRQrOt5HCoebE6WsVXd/X2/evaumoN/bI3fseurI5JaSi3ftrM7aq6qKFlSaWmps1RUU08cTuAzKCFJAP19pD3737373737373737373737373737373737373737373737373737373/AP/S0AkjeQsEVnKo0jBReyICzsbfRVUXPvh797979797979797979797979797979797977Bsb2B/wBcXH+2Pvr37373737373737373737373737373737373737373737373737373737373737372OPx3+RPZvxc7OxvbfUtRtKLdePx+Tw0lLvrrzYfae08tg85T/Z5rC5vZfZG3d0bXydDlKO8Tl6XzxqxMUkb2YWO7w/n3/wA0bcPY9d2VtT5CUXTdd/D8dt/au3+nOsutNobe602RhsdTYzD9bdaPUbWzG5do9b4qngZ4MJDkmoVnqamYoZamd5BM/lJfDHeH8zX5ILh+zetPlh3Z/pN7TgyvY/auK3Pubanx8oaLDUlZntzV/fHZOF677D3NW5vIZHOU1FSU9BJjaiiGV85qUjYld5vpv/hOR/LT7A2ZhcHvL41dcUM/XW489trM5ba/afyK7ixu+tn5CpWvmwWE7E7EzOyqPD5LDV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kV8Sf5SMfwr3b2HU/GburdY3Jl8r2b0/U7d3fvjZm4t/wCWp81uXdGKy2UoJturuumwUyYCiJgqVxy4yKrSWV2VYrDPnF3rmP5fv8vXv7vrYO18321nfjf0fltxbdwu59xVuRzG5slhaSnoYc7vDctetdksoKSeoOVy85DVFTDDPos7rb5uvxW/4VWfPPozB/IDb/cWxemfknRd2ruTNY2ortmbS6VyOxN/bkeeer3ItX1Bs7Aru7FSV9VJWS0degr2rm88WRgZpBJrETzzVM81TUSyz1FRLJPPPPI8s000rmSWWaWQs8ssjsSzMSWJufeL3737373737373737373737373737373737373737373737373IhiVg0khsi2+n1Jv9P9495CsEgIjBVgL2P1P/Ee4Z449ivsfoztnsfau7t+bP2Pl8lsTYa0o3jvmqaiwmytu1Ne6pjsZkt256qxm3oc3k2b/JaD7k1tSATFE4UkY+w+p8l1mmOizm8OtMvl66hochNgtj78we/6vFQZBZpKePKZXZ82Z2rBXLFCGmpo8jLUU/kQSojNp9hZ7979797979797cMTicrnsnj8Jg8ZkM1mctWU+OxWIxNFU5HJ5PIVkqwUlDj6Cjjmq62sqp3VI4o0Z3cgKCT73Df5PP8Awk77s+VcNL3b/MQXsX4udIh6Kp2v1DS4+hwffXaEDgTyVWWhz9PXt1FtcLpW+Qxs2ZrQzCOnpU8dU30Rvid8P/jj8HenML0J8XOrsF1R1jhaqpya4TDvXVtZl85Xx08eS3HuTO5eryGb3FuHJLSxiarrKiaUpGkalY40RTK+/e/e/e6Rv56383vEfyhvi9trsLGbAg7S7j7p3Tluu+o9n5DN1u3sDR1eP29U5bcG+tz5HGwvlJsDtIS0SPR0clNWVlTXwok9Ovknj+TP8mPnB8vfmPmVzfyg+R3cHdstPWtX4zF793zns3tnA1T00NG0m3NqT1v929vM9LTojGjpYTJpu5ZizFdfy5+u/m/2Z8uuscB/Lspt7n5XQLubI7AzGwcxidtZnbFB/dnK4zdm4KndefrMdgNrYmn21k6mCetrKiCJfuFjRvNJErfZr+DdR2LU/EfoM9ubK7d687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+w83/ADK/jrUPujcO5cVhsV3j05HNuLP74zjbJ2nTYig391nt+hoMnJV4/C7V29BDmMfThEp0jFcLBqgivH/hOtsz+XpJltpYH+YD09svq7vbbnalfuP4wdsb9o81jMl27jt8Y3E7TzOwN47B33hcr1zv7beEy1Bq29k/sak4vJVFUrGCUxznYB/4Uj/GPZmL+Jm19zdX7e+L3Wme6vx29e28RkN59H9GVO4KPY/XOy/NgOodqYnesLZSryG6ctVoK2rhgyKLJRU1O9Ghk8x0Cvk//NS+ePzI69xPU/yI72n3z1vgMoctgtn0uwOr9nYzETBahKeko5Nk7K27kBiKCOqkWlonnelpVYiKNB7r4Z3fTrZm0KEXUxbSgvZVuTZRfgfT3x9qDbu7N1bPrJMjtLc24NrZCWnmpJa/buZyOErJKWoRoqimkqsZU0s7088TFXQsVZSQQR74V+6dz5XF0mEye489ksLj6upr6DEV+XyFZi6KurQBWVtJQVFRJSU1XVhR5ZERXkt6ifc/I7G3Xitn7b39X4iWDaG7snn8Pt3NfcUUsGQye1/4cc7ReCGpkrKSagXL0zETxxCRZQU1C5CXkhmh8fmili8sSzReSNk8kL30Sx6gNcT2NmFwbe/oLf8ACVj4s/FL5YZzsT5wbLwu7vjD3B8ed1L0vmOnfj3273FtzY/YOwtz7D2LlNqbv7drM5vHM5jc+Rym59s5yaXHY6pxeCqaiISVOPdooSN5ztnYtT2d1hv/AK6o977561qt8bRz+1YewOscxS7e7E2c+cxtRjhuLZOfrcXmqbB7nxYqPLRVjUk5pp1WRULKPfyXv+FDuQqusvnLv34vTfN75efMrF9Fy42lo6P5R7oye6q/pzd+49tbZ3FlqDaO7f4njsHnHrqKeiWsqaXbmOLiBYmlmeMS+6D9x7x3Lu2qo6/ceWqcrX0OCxW2o6+oEYrZsLg6aOhxFHX1cSRz5L+H4+CKmikqGkkWngii1aIkVU1797979797979797979797979797979797979797vc/lY/8J//AJcfzUNnYLubqzeXSmz+jafuFusew83ubfwPYm2KHEQbeyu489j+vcXiMpVVzthc2/8AC4K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+4Xc82brfttp5fFGrjx2ASkRMecjII5Up44aWOzqDfW2c/8AKPdfQlZ1BVbNzfXG3Nr/ACB2D2HkVwlHt3tubO026dob1zm08dhJxlMzkusMruGkoM5/E/tTHPuGkni8l1LGuxWZSuihSrhbHZMmOGooJmDgVn2NPXzx0VSv7GSp4oqgETRFkNiDZgVD3797979797979797979797979797979797979797+W9/wrF/mhYz5b/MDAfGD4/d1zb0+OHxy2q+D3zj9m5bLR7C3R8hancuUk3nLXNDUR4Hfi7FxmKxVBQ1qR1FNR1n3y00pLyM2pR7979797979797979797979797975O+sg6UWyIlkXSDoULqI/Lta5P5J98fe51/wAJEP5qq/Hvv/P/AMvTufdq0HTfySyn94ekajMVEpotpfIdYqHHSbaopNDpRUPbuApI4NLssQzGNpFQB6yZmg/8Kvf5P+e6G+SNX87/AI29P70ruiu96TM7x+RWR2jt3+JbG6m7ijylHBltw5g4cS1O1cP2eMimRlqKyGKifMmrKzl5hEmmn79797X3VXYmZ6i7P657X25TY+s3B1lvvaXYGCpMtFNPi6nMbNz9BuLGQZGGnnpaiSilrcciyiOWOQoTpdWsw+pL/JM/nUdc/I/qj5gd8/Lv5c9L9Y7Sn+SuNj6S667i7Z2ns/dHUfUmQ692dg8DtfIDdlTj67KY+s3diciIcnJkcnUZOvWsqJRThlVwg/njf8KRvjZ8Q9ijYXwQ3N058jPl12PtrIYmk7Z2fkdp7/2N0FtsVUMsebzWewtRWLuPedRWVDVWDwyTtRQ1EP3tddEipq1Q0H8q3+Vt/wAKHvjf8WvmZuLt/tnJ92434x9U9Rdib66u7Pwa72p917E29V0mbwvcu2N5bd3qZN74TeWTr2nrJ4qaqycCxSCeemeCUkT7T/4Q/wDV9VjnbpP5679wmX/iFO0cHafTu3t0444rx6auF6raW7Nn1IyAl9ccohMen0GO/wC57Z9vf8Iddnpiqj+9f8xLctRm5MVAtIdvfHLF0eKo83ctVSVC5Lt+uq8litNljRTSzXOovxoIEfPj/hHZj/jt8Nuzu5fjL8it8d5d2dV01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U7ul68y29KBd+YDdeLiqI6ndexcJhshW5VIYoKuvxtUrT0qCOWsWWmX/AISRfLHrr4adq/Kv+WR8rcVJ8ffkpvrtXF7p2PH2RVVG3TvHdO18PLszcXURjyjw4ei3VjGoEr8L4nJz8VXUpC8jQUyy7+G5907Z2TgMpureW48FtLa+EpjWZrcm58vj8DgMRRh0jNVlMxlaikx1BTCSRV1yyIupgL3I9y8TmMRn8fTZbBZXG5rFVkYlo8nia6lyWPqomFxJTVtHLNTTxkHgqxHvSa/nmf8ACoX5AfBD5d9p/Cr4odPdWVOa6qxPXo3F3L2XPl91mXdu48Xtvf2UxOG2Vh67CY0Yaj2vmFxU7VNY9V99JNKnh8CLJSh8If5lf8yHvvM/Pv8Am4796w6J+aHafwl6q2fnetq7u/N1mNx/xJi7E3dmsRmM58eul9t5nEU02AptnPkp804alqzFjaaRsjJUl4qoPP5fH/Coj5g/Hf5FYfKfJifA9qfEzcfaPanY3YvUu1usNnVO7NpV/be5M52FnqzpXcueyuK3FhFoOyclFkKfGZDO1GNjp1eJEVhC8W0L8eP+FjH8tPtzsbKbW7Z2Z3b8XdrmhgqMD2Z2FgI9/wCCyVYKuKKqxGX2/wBTT7szu3Z3owHgqVirKYsG8jRkKJUrsf8A4WGfCbdPyVpOl49mbgwvTWc3plsZjPk/2O2T682VtnalLTO2Jq8/snD4jtHfmQfIzUTLHWNDjfXWQiopKREmlXY3+CvygxPy96s3L2/syg2RjOqIOyt7bB6efr7sTY3ZG3949bbKy0lBtns9qzZTyLs3Ib6ophM22q4pXYeGGJZUDSlmOv797979797979797979797979797DDujqfaXevVW/OoN94nCZ3aPYW3a7bWfxO48Bi904Kvx9cgWWnym3s1DPi8vRuVGuGZdLD6FTZh80f/AIUb/wDCfrsX4a723f8ANP4u7aqt5fDzcMv8X39gNu4LbuG/2V+rqK+gw2JwP938D9nJW9W1D1UUdBk4aM/w9v8AJ65gfFU1God797979797979797979797979797979797Xy9n71Tq6fphcpSr11U7+puzp8KMFt/72TelHt6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Gri63uPz9QDp+n199j6Dm/8Aj9P9499+/e/e/e+iSNNlvc2JuBpFidRv9eRbj+vvv37373737373737373737373737373737373737373737373738+n/hYJ/MH6Bk39hfgjjvjBtLenyH2fsrD7hzXye33hDT5rq3avYUcGag2P1PMlPDV7iOex0EdTX1k9Q2Mx1SQkEMlak702g7797979797979797979797zU8qwVEE7RRzrDNFK0EurxTLG6uYpdJVvHIBZrEGx92M7M/m9/zMuuN/Tdjde/NTvvZmbfAU+0qTE4XfOTOxcTtGgVYsPtbEdd5F6/Y1Bg8BTosdBCmPvRoo8ZU3Jsm6l/4Vb/zkev8AtfbfYG9+9dp91bRxa0lFuDqHenU3WeB2ZunExywmsSTI9f7U2puzDZ2eGNvFkKavDRSkGSKaPVC/0RP5Uv8AOS+KP813qCj3b1buDG7D7qwlKq9qfHDdG4cbL2JsSvQyI+RxsRTHy702LX+PyUeaoqcQlWEVSlNVLJTpbcCGAZSCCAQQbgg8ggjggj34X5uLcm3N7j8H6CxPvv3737373737373737373737372h+y+tdg9ydfb06o7T2lhN+dcdibay+z977N3JRR5DB7k21nqKXH5bE5Kkk4kp6ukmZbqVdDZkZWAYfKB/4UG/yKNzfyp+2KXtzpyLJbo+D/ce5psb1zm66skyWf6j3nVUtdl36f3tVVDvWZGMY+gqKjA5d9TZChp5Iqhvu6eR59b3373737372KfW/T29e18V2nlNlY6XLnqDreu7Z3dRU1LXVFTT7Gw+4dubez2bD01LNSU1Hg5tz001RJUSQp4rhSzlUL30n8lfkF8bMlnM38fO6Oy+k85uSkxtBnM91dvDN7Hz2SoMRk4czj6GfN7drKDK/ZQZSnjmMSzLHI6DWGAA9h7vnfu9+zt15rffY+7tyb73ruSrNfuDdu7s1kNw7jzdcyqj1mWzOVqKrIZCqdUGqSWRna3J9pP39P7/AISWfyucN8bviM3zU7l63wlP8ivkdXvmOtcjuXbmLk311j0HJi4qfbSYjIVdNJnNsN3BT1cmbnjjkiFdg5sY7DS7A7fXv3v3v3uLV1kFEkbzmS01RDS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tvK5angpaWAQ7hrNo5HCvkmdmaqlK1BJkklZtPr37373737373737373737373sEf8JgvjlkvkN/OP+NNVEcjDgOhId4fIfdlbjKwUM9LRbAwc1DtmKWXSzTUGT7D3FhqOqgUXnpJ5UNlLEfXw9+9+9+99MCRYMVPHIAJ+t/oQRz779+9+9+9/wD/0d/j3737373737373737373737373737373737373737373737373737373737373737373x1LqKal1hQxW41BSSAxX6hSVIB/w98IZoaiJJqeWOaF7lJYnV43AJUlXUlTZgR7y+9TD/AIWVZDZlP/Kl2XQbigqZNy5H5Z9Wnr+aChapip83R7N7NlzJrasOgx1NJtJq9Q5D+SYpHp9Wpflre/e/e/e3XL4TI4KekpspB9tUVmKxWahhLq0gx+boIMpi5pQpPjNZjaqKdVPPjlUm17e22KKWeWOGGOSaaaRIoookaSWWWRgkcccaAs8jsQAACST7+ov/AMJh/wCT7D8bPhdQ96/KfqiPDd5d+b2oOy6DZG9to0GO3VtLr/aFfRVXU1BvIV8M2eZ5M7iU3bSYioamp6KskoKmopTkKSGSn23vfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvdNf/AAoD692X2L/KJ+alBvPpTc3eQ271Nmt57TwmzMdi8jufY++tu08lRtbtyhGRyGOnpcV1lXSfxTNS0bTVn8AhrkWCeN5IX+M3797EPrzqPtXt3N4zbXVXWu/OydwZrL0uAxOF2JtHPbsyeRzdcjyUeJo6PB0FdPPkaiKNnSFVLlFZraQSN/b+RB/wlck65zO3flt/NF2ZgMzuajgo8z1P8R8nLTZ7FbZyZkSppN396tRzz4TNZqiRVaj2wj1VFTu3kyLSTL9nDveoixqqIqoiKEREAVUVQAqqoACqoFgBwB75e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e/e9Rv8A4WSZPpZv5ZO0sPu2TY9Z3PB8h+ucj1Nj8hn8RR7/AMRQVmO3dT71z+3MHJOM7ldv1eFoHoq8RRmlEkkMkh8kEXv5dfvKkE8iSSxwyy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zGPxtWJmCrjJat1WR0WN/sZRRRQRRwQRxwwwxpFDDEixxRRRqEjjjjQBEjRAAAAAALD3k9+9+9+9+9+917/zFd4fNnpzpxu/vgrsPa3e3ZfVsr1+9fjXvevzFBQ9xdWvaq3TSde1mFlp6nFd0YNqOGfCzSmopqilNZStSVVRNSxgxHxi+RGz/lD0f1P3TtON8XF2d1hsrsifa1VM1TktqNuykqlrNu5KqNLRxVddt3cWJyOLqJY41R6nHykAKVuYD3//09/j37373737373737373737373737373737373737373737373737373737373737373737372juw8Pmdw7A3xgNu5XKYHcGc2fuXD4POYOtgx2awuXyeGraLG5fD5CqgqqahyuNrJ0mp5pI5I45kVmUgEe/hAdyTdiT9u9pzdvVuWyXbEvY2937PyOfrEyGcruwm3NkzvOszNfEzxVuVqdx/cvUSqSskpZgbH2G/v3tXbB2Rn+y97bU692pHQT7n3rnsZtnb1Nk8tjcFQ1eazNVHQ4yjny+ZqqLFY8VdZMkSyVE0cQZxqYDn3dt1p/wmb/AJ1fZmTjoYfhjmtjUrNabNdl9kdS7MxlMt1BeSKu3xJmZ1UPe0FJMxsbAkW97d38hf8A4TEZv4CdzwfL35w7i6y7H7v2jSxHorrzrytze4NpdV52siyNJmd9bjzmbw234Nx70hxtRHBioqelejxbPNUiaap+3el3JvfvfvfvfvfvfvfvfvfvfvfvfvfvfveGCnipw6xBgJJZJ31SSSFpZTqdryO5UE/gWUfgD3m9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+94wJPK7F7xGOMJHoA0uGkMj+TUWbWCosQANP1N+Mnv3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3vRb+e3/CMzA9v9z727a+GPyexHU2A7B3PuHdeQ6i7i2xuLc+I2lkMykOQei2tv/DZXIbhr8RV7hlqn8eRopaijppUUT1JjOusn46/8I0/nburc3b1B8kuw+perNu7SwmYx/VOV2bvUbtk7V3lVY+ddtZ1Ei23V1m2Ou8PkWilyiZKko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vfvfvfvfvfvfvfvfvfvfvfvfvfvZC/wCYXujvTor429zfKT4idR7C7b+T/VuwsbW4jam+JspS0+8+r9tbwxm7Ox9nUdVi6+gqEyz7SgydXjUV1aXIRxINRZUOmf2d/wALHMx8i9gYT4/7H/l01tR2H3DT47rnc0M/f25XWHc258hQ4Wmi60pdi9e4bfM2ZevqNeNlWtpK2lrTDoErJd/oKYkEYrGBpaidhj6MNPVyCWqmIpowZamURxCWokPLtpXUxJsPp7cPfvfvfvfvfveCqqqahpqmtraiCko6OCaqq6uplSCmpaanjaWeoqJ5WWKGCGJCzuxCqoJJt70n83/wrloc38/u0Pjp8cPjrWfK/o/dGZ6w6t+Kua2DjNxbf37vjsauyGMx3Ym4s5jcm2SyGb2XXVWTrVwsFJiqSrlgxtPLJ40qZXjMpvz/AITvRfKD+dVlPm93t1X8eepPhn1viuv87sTqPpCrqaXcPyF7Q2x5slBujuTC0e0NrYjAt/eOQ1GcEDSPlKSjoKTyT+SuqV20/f8A/9Xf49p/brboNPkF3WmEFYmayq42TAfeikn2+at2wclVHXvJPFlhj2RatQTF9wrmP9sr7UHv3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3v3upT+cjX9OSfGXYmye/tsdj7x6u7L+SHQO0q3b/XG65thVVTumm7N27uzZc24d3UhfI0+Bps9tuN/saVFqa+qEKxyxFPV8nv+a33hP8AJP8AmK/LvvKSoo5aPsTujduTwFJRyB/4PtLG1h27s7B1aDD4LwZHE7Vw1HDPG1MsqyKfK0kut2r292//AMnD+Wn3H89fml8acBP0d3BuL40VfbeCn7k7S23RZnZ+z8HsjbM8mf3bDB2zU43+72N3CuKxMwp6Smqf4rUyDxUoWco6fYX6d+P3S/QGO3BjuneuNrbD/vhl6bcW98nhcbEm4N+bmpMPj8BFunfm5JvNnt57obD4qngfI5OoqquSOJQ0h9jF797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797i1tF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/e/e/e6Ef5sH8h34qfzMd643uXfu2uycv3fPj9hdWQ7mxffWa2HtzrvrXH7ofJbl3bgdq5HavYe2shuXF4SurWp8YmMgp8xXSxrUTUpZ66ILP5Wv/AAmX+Ff8s/uST5ENu3enyU7rwdVUt1VuvsrGYnBYnqanq6aqoanIbd2tgJ5aDI7xqqCskgbLVjymGNj9rBTOzu2yD79797//19/j3737373737373737373737373737373737373737373737373737373737373737373737383T/hTz8Ydwba+ZHyS7hbcOYg2f27sTYuUo9p1axYat3dvDbGzdhYw5rCZzL1ajL7J68TEUv8Qejp4qegqq2GkkqJGqaj7fSTJJJJJJJJJJuSTySSeSSfdo/8r/8AlDfLj+bLv3eW1PjVjdoY7bXV/wDdOftTsnsHcIwO1NlUm8a3J0+EjMFJS5PP5/MZCmwOQmgpKGkmLLRt5XhVlY/YO+I3w1+OHwc6e270p8aep9l9XbRw2MxdLlH2xhKWhzG8stj6UwS7n3rnSJs5u3cVdLJLJJWZGpqqgeUqrhAFBovfQIN7EGxsbG9jYGx/obH33797979797979797979797979797979797979797979797979797979797979797979797979797979797979797IZ3v8fvmZvX5AYrtLof5tR9H9Xx9Y4Pr/cPSOX6R252lhstno95Z7N5ztLC5vObgxjba3vHt7I0uOo1ekyFBKtN/lMDjRoPiisqIruZHVFVpCFUyMAAzlUAVSx5sAAPfL373737373737373737373737373737373737373737373737373737373737372zYHcGI3PQPlMJVNW0CZLMYk1BpqulBr8Dlq3B5WJErIKeWSOmymPmjEqqYpQmuNnQqxeffvfvfE69S206LNqvfVfjTp/Fvre/v8A/9Df49+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+90dfzlvgjmfkl1hvPsTYdJks1uqTp7Kdbbs20mytqb6xuY2Rjdy0G/wARVFHVRUfZ9DTztjq2jlTaWQFdI9ZFN9jVyQKB80yn+CWB+QG5thbW29v3ZHV2/wDKb32F0OiUe0ty1vWGf3JW7kgxOd3zmt4YeHI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5uQzzTmuzMlFJWHzNqEINBQ4+mWCH6IoiFh+T7dffvfvfvfvfvfvfvZf+8vi/wBKfIfHQwdk7QWTcGMPn2t2NtXJ5TY/a2xcpFFNHRZzYvZm06vEby2vlsc07PE9NVrGTdZEkjZkYdqCl+xoaOi+5q6z7Okp6X7yvlFRXVf28KQ/c1k4SMTVc+jVI+kanJNh7le+ibAnk2F+ASf9gBck++kdXVXRldHAZWUhlZSLgqRcEEe+Xv3v3v3v3v3v3v3v3vG8SSNEzarwyGWPS7oNZjki9aoyrIuiQ+lgVvY2uARk9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+94JacSy00plnQ0sryqkUzxxTF4JafRUxqQtREomLKrcCRVb6qPef3737373737373//S3+PfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfTEKCzGyqCST+ABcn/YD230EksslZJYfZvLC9C17F43pYWkZU+3iAhaUkq2uQsSeVsFDj797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797/AP/T3+PfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvaPzvYWw9sVceP3FvPa2EyM/j+3xmTz2Mo8nUmWRIolpcdPUpW1TyyyKqLHGxZmAAJPuBsLsnb/ZFPlKzblBvKmocVXNjzW7s2DvTYkOTkRpFapwKb0wWBqc5jLxHTWUsctLICCkjAg+3ym/vaMrkzVnbj4NshRDDpTrk48rFihjV/iLZOWR5aOoyDZi/hWJIo1piNRLjlR+/e07m8JkMrVYiqoN1Z3boxdRUzVFJiYcBPRZyOopzAtLmI8zhMrUGnpWPliNJLSSCQep2X0+32FHjhijlmeokjijSS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VlfHTvbH4Ppn+YI2P+NHZuB2fg6WL5A7h3DS5Hqvt/c1CtPjs7V5yHB7QwFN1HnstMwr46aWOXDiNpkWqh8UazbheA3Bgd14TE7m2tm8RuXbeex9LlsFuDAZKjzGEzWKr4UqKHJ4nLY6apoMjj6ynkWSKaGR45EYMpIN/bv79797DfY/cnUPZ23ctu/rbtTrjsHaeBrspjM5ujZG99s7r27hslhEaTM0GWzWCydfjcdW4mNS1TFNKjwKLuFHvn1l2/1P3Vt1939N9nde9s7TjyNbh5Nz9abz25vrb0eVx0hhr8a+Z2xkspjlrqKUaZYvJ5EJFwL+xFJABJNgOSTwAB9ST7ZxuLb5yS4YZ3DnLu0yJihk6I5J3p6daudVofP90zQ0rCVwFusZDGw59lr3187PhR1hvrE9Ydi/Lj42bH7FzmTTC4zY+6e6+ucJuqfLSwxVFPj5MHkNxQZCkq6qKdDCk0cZmLqE1FgCtdzfKH46bF2RguyOwe7uruuNi7nzkG2tv7o7H3vt3YWIy+4aqr+ypcJQ1W7chiEnytTNzHAP3WiIkC+P1exzhmhqYYqinlinp54o5oJ4ZFlhmhlUPFLFKhZJIpEYFWBIINx7ye/e/e/e/e/e/e/e/e/e/e/e/e/e/e//1d/j373737373737373737373737373737373737373737373737373737373737373737373737373St/O3/mr7n/lR9C9ddp7Z6jxnYMvYXYtLs2u3PurdOCwu1NlY2lpxl8stPtr+8GN3z2Fv7N4aGoGExeMpxRK8E1Tka2kp4AtRo5fPz/hWl/MB+VeLquvfjfQ4T4Z9fSS05q9xdcZXIZnvHOxRiohkE3YVY8eP2fQVgkSc0+HoY62nkjVRkZFB1auGdyed3hlM3u3em4M3uTd24MrV5jObh3HkqzN5zNZCudqivyubzOTqqmuyWSraly8kszvI7kszEn3tQf8ACUKT+W/tf5Z7+3/8yuyOjdv9ybam66x/xFwvdMddhmp+xMnnnjqN47C3XmMxRdfDeMde9JRUtHWUsuWjmeKooJYdM4k+pL797979797979797979797979797979797979797979797979797979797979797979797IF8ov5pn8vn4V9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+LTyyaRI7SBV0LqJOlR/ZW/wBB77Ror+sOF/5t21f7zx7yiSlFwY5nX8HyKGsfrf0kX/3j3wl+3NmhE97nUJNGm3+0stjcn/D24QTFQoVQvF+QLH/bHm3v/9PQPqaSdWd9N1+twQfp9P8AePbfe309+9+9+9+9+996mP5P+3Pvr3737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373lhmeBxIgRiL+mWNJo2uCLPFKrRuBfi4Njz7xe/f7C/8Avvr7kR08jMvAKn8ki30/2/tzWjlJWxUAEcnn6H6W/p7/AP/U0KKhwqtcMbaibAcjkX+v59sFRJG1gqFWH9R+PcX3737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373Lpp9DDWx0jgC3+8e1HEysFt/h7//1dCaqvp9Ou1/7Gm/1/2r2yzeDUPJ572/Hi/4j3i/yX/po/6x+/f5L/00f9Y/fv8AJf8Apo/6x+/f5L/00f8AWP37/Jf+mj/rH79/kv8A00f9Y/fv8l/6aP8ArH79/kv/AE0f9Y/fv8l/6aP+sfv3+S/9NH/WP37/ACX/AKaP+sfv3+S/9NH/AFj9+/yX/po/6x+/f5L/ANNH/WP37/Jf+mj/AKx+/f5L/wBNH/WP37/Jf+mj/rH79/kv/TR/1j9+/wAl/wCmj/rH79/kv/TR/wBY/fv8l/6aP+sfv3+S/wDTR/1j9+/yX/po/wCsfv3+S/8ATR/1j9+/yX/po/6x+/f5L/00f9Y/fv8AJf8Apo/6x+/f5L/00f8AWP37/Jf+mj/rH79/kv8A00f9Y/fv8l/6aP8ArH79/kv/AE0f9Y/fv8l/6aP+sfv3+S/9NH/WP37/ACX/AKaP+sfv3+S/9NH/AFj9+/yX/po/6x+/f5L/ANNH/WP37/Jf+mj/AKx+/f5L/wBNH/WP37/Jf+mj/rH79/kv/TR/1j9+/wAl/wCmj/rH79/kv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SVL329j3I2viknBxfQ42SKPadu5XSD3ca27orxaq8rJdpV7s8vX0sTbBy3Gw3Xm6m1zPcduWp9X29EtGxztQRk+KMpnjAG4Rs/pBsDYQ73QXE16ndeqrhbdD69mf999kJlBGfeeytzSQI9bEgrrrU/bCy+6svQadhuVOeOSu9qqZhPHwo9bXKlOLEYHXcELRBtXtmND+GHsMcxjsx+yS3NpNq7a5XaduCbB0snxm66KUK7mYnA4kEOGcTSD1oVQYW6GBD1u4pWOSYRpnuuYw9SP4GVXsUi2D5J7WUwF23hEK/wUdZQFdN3sFmskppRLuuwbrLDJnV6/VXxPT4qHtWki/r93hyXzBFYonAoAlD+l/NKu2GNyMMZBYBBIpUvpCv1chYiz2aFO1d+guZgUhGn9gIg5Pr1c6vzGWz3bKvVh3bRgRc0y7Rw0/OSEATKVI3+nRcDnxGuOzQJ7LQxHIGr90fVbmdVisXFk1xNcIsDa9KxA++Xl1f7PPZxpsIJ9OxG2uL/vFTaOYFVBaC/mOqzZRn6VsfnR927Rjcqkig0uAcFHRxHDpbfjEUQnhCt7TbZSrBGfuzKKgBGuvzxmskMY14PHrzXBCBlmHV+PckfHIUt4Z+xtg9wJBabr1jU5X02zgIfvJsQkDJYRgYrQ7MJM29BBQszQKHOVagzIBIOgHFtW3lmDkGx5gNASu5n5byjs3T+VJlZikMee/C/ATN9yF8fHWlhAAAAAElFTkSuQmCC"};return n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(447),n(181),n(36),n(182),n,e,t],void 0===(r=function(t,e,n,i,o,r,a,s){function l(t){e.call(this,t),t=t||{},this._convertor=new n({projectService:t.projectService||new i})}return t.extend2(l,e),l.prototype.contains=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);return o.booleanContains(n,i)},l.prototype.crosses=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);return o.booleanCrosses(n,i)},l.prototype.disjoint=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);return o.booleanDisjoint(n,i)},l.prototype.equal=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);return o.booleanEqual(n,i)},l.prototype.overlap=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);return o.booleanOverlap(n,i)},l.prototype.within=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);return o.booleanWithin(n,i)},l.prototype.touches=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);if(n&&i){var r=o.intersect(n,i);return!o.booleanWithin(r,n)&&!o.booleanWithin(r,i)}},l.prototype.intersect=function(t,e){var n=this._convertor.toGeometry(t),i=this._convertor.toGeometry(e);return!o.booleanDisjoint(n,i)},s.exports=l}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(102),n(39),n(199),n(200),n(201),n(202),n(203),n(204),n(448),n,e,t],void 0===(r=function(t,e,u,h,c,p,f,d,y,m,n,i,r){function o(t){t=t||{},e.call(this,t),this.northArrows=t.northArrows,this.editActiveName=void 0===t.editActiveName?"ThematicEditTool":t.editActiveName}var g=null,v=null;function x(t){var e=null;switch(t){case u.TextLabel:e="文本";break;case u.PictureLabel:e="图片";break;case u.LegendLabel:e="图例";break;case u.NorthArrow:e="指北针";break;case u.ScaleBar:e="比例尺"}return e+"_"+(new Date).getTime()}return t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),v=t.pageLayout},o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,t),this.setCursor("crosshair"),g=t},o.prototype.onMouseDown=function(t,e,n,i,r,o,a){var s={pattern:null};switch(g){case u.TextLabel:s.pattern=function(t,e){var n=x(u.TextLabel);return new h({name:n,x:t,y:e,text:"Text",textStyle:new c({fontFamily:"宋体",fontSize:12,fontStyle:"normal",fontWeight:"normal",color:"#00000"})})}(r,o);break;case u.PictureLabel:s.pattern=function(t,e){var n=x(u.PictureLabel);return new p({name:n,x:t,y:e,width:320,height:180,opacity:1,source:""})}(r,o);break;case u.LegendLabel:s.legendLayers=[{layerId:"plotLayer",layerAlias:"标绘图层"}],s.pattern=function(t,e){var n=x(u.LegendLabel);return new y({name:n,x:t,y:e,column:2,width:300,height:30,legend:null,titleStyle:new c({fontFamily:"宋体",fontSize:16,fontStyle:"normal",fontWeight:"normal",color:"#00000"}),contentStyle:new c({fontFamily:"宋体",fontSize:12,fontStyle:"normal",fontWeight:"normal",color:"#00000"})})}(r,o);break;case u.PictureLegend:s.pattern=function(){x(u.PictureLegend);return new m({source:""})}();break;case u.NorthArrow:s.northArrows=this.northArrows,s.pattern=function(t,e){var n=x(u.NorthArrow);return new f({name:n,x:t,y:e,nrName:null,source:null,width:60,height:60,opacity:1})}(r,o);break;case u.ScaleBar:var l="1:{0}".replace("{0}",v.getScale());s.pattern=function(t,e,n){var i=x(u.ScaleBar);return new d({name:i,x:t,y:e,unit:"米",scale:n,background:"#99CC33",width:200,height:30})}(r,o,l)}this.activeCommand(this.editActiveName,null),this.showAddView(s)},o.prototype.showAddView=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(102),n(39),n,e,t],void 0===(r=function(t,e,i,n,r,o){function a(t){t=t||{},e.call(this,t),this.pattern=null,this.startPositon=null,this.northArrows=t.northArrows}var s=null,l=null;return t.extend2(a,e),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),s=t.patternLayer,l=t.pageLayout},a.prototype.onClick=function(t){a.prototype.uber.onClick.call(this,t),this.setCursor("default")},a.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.setCursor("move"),this.pattern=s.hitTest(n,i)},a.prototype.onMouseUp=function(t,e,n,i,r,o,a){this.setCursor("default"),this.pattern=null,this.startPositon=null},a.prototype.onMouseMove=function(t,e,n,i,r,o,a){null!=this.pattern&&(null==this.startPositon||(this.pattern.x+=r-this.startPositon.x,this.pattern.y+=o-this.startPositon.y,s.update(this.pattern,!1)),this.startPositon={x:r,y:o})},a.prototype.onDblclick=function(t){var e=s.hitTest(0,0);null!=e&&this.selectEdit(e)},a.prototype.selectEdit=function(t){var e={pattern:t};switch(t.getPatternType()){case i.TextLabel:case i.PictureLabel:case i.LegendLabel:case i.PictureLegend:break;case i.NorthArrow:e.northArrows=this.northArrows;break;case i.ScaleBar:var n="1:{0}".replace("{0}",l.getScale());t.scale=n}this.showEditView(e)},a.prototype.showEditView=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(102),n(39),n(199),n(200),n(201),n(202),n(203),n(204),n,e,t],void 0===(r=function(t,e,u,h,c,p,f,d,y,n,i,r){function o(t){t=t||{},e.call(this,t),this.northArrows=t.northArrows,this.editActiveName=void 0===t.editActiveName?"ThematicEditTool":t.editActiveName}var m=null,g=null;function v(t){var e=null;switch(t){case u.TextLabel:e="文本";break;case u.PictureLabel:e="图片";break;case u.LegendLabel:e="图例";break;case u.NorthArrow:e="指北针";break;case u.ScaleBar:e="比例尺"}return e+"_"+(new Date).getTime()}return t.extend2(o,e),o.prototype.onCreate=function(t){o.prototype.uber.onCreate.call(this,t),g=t.pageLayout},o.prototype.onClick=function(t){o.prototype.uber.onClick.call(this,t),this.setCursor("crosshair"),m=t},o.prototype.onMouseDown=function(t,e,n,i,r,o,a){var s={pattern:null};switch(m){case u.TextLabel:s.pattern=function(t,e){var n=v(u.TextLabel);return new h({name:n,x:t,y:e,text:"Text",textStyle:new c({fontFamily:"宋体",fontSize:12,fontStyle:"normal",fontWeight:"normal",color:"#00000"})})}(r,o);break;case u.PictureLabel:s.pattern=function(t,e){var n=v(u.PictureLabel);return new p({name:n,x:t,y:e,width:320,height:180,opacity:1,source:""})}(r,o);break;case u.LegendLabel:s.legendLayers=[{layerId:"plotLayer",layerAlias:"标绘图层"}],s.pattern=function(t,e){var n=v(u.LegendLabel);return new y({name:n,x:t,y:e,column:2,width:300,height:30,legend:null,titleStyle:new c({fontFamily:"宋体",fontSize:16,fontStyle:"normal",fontWeight:"normal",color:"#00000"}),contentStyle:new c({fontFamily:"宋体",fontSize:12,fontStyle:"normal",fontWeight:"normal",color:"#00000"})})}(r,o);break;case u.NorthArrow:s.northArrows=this.northArrows,s.pattern=function(t,e){var n=v(u.NorthArrow);return new f({name:n,x:t,y:e,nrName:null,source:null,width:60,height:60,opacity:1})}(r,o);break;case u.ScaleBar:var l="1:{0}".replace("{0}",g.getScale());s.pattern=function(t,e,n){var i=v(u.ScaleBar);return new d({name:i,x:t,y:e,unit:"米",scale:n,background:"#99CC33",width:200,height:30})}(r,o,l)}this.activeCommand(this.editActiveName,null),this.showAddView(s)},o.prototype.showAddView=function(t){},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(102),n(39),n,e,t],void 0===(r=function(t,e,i,n,r,o){function a(t){t=t||{},e.call(this,t),this.pattern=null,this.startPositon=null,this.northArrows=t.northArrows}var s=null,l=null;return t.extend2(a,e),a.prototype.onCreate=function(t){a.prototype.uber.onCreate.call(this,t),s=t.patternLayer,l=t.pageLayout},a.prototype.onClick=function(t){a.prototype.uber.onClick.call(this,t),this.setCursor("default")},a.prototype.onMouseDown=function(t,e,n,i,r,o,a){this.setCursor("move"),this.pattern=s.hitTest(n,i)},a.prototype.onMouseUp=function(t,e,n,i,r,o,a){this.setCursor("default"),this.pattern=null,this.startPositon=null},a.prototype.onMouseMove=function(t,e,n,i,r,o,a){null!=this.pattern&&(null==this.startPositon||(this.pattern.x+=r-this.startPositon.x,this.pattern.y+=o-this.startPositon.y,s.update(this.pattern,!1)),this.startPositon={x:r,y:o})},a.prototype.onDblclick=function(t){var e=s.hitTest(0,0);null!=e&&this.selectEdit(e)},a.prototype.selectEdit=function(t){var e={pattern:t};switch(t.getPatternType()){case i.TextLabel:case i.PictureLabel:case i.LegendLabel:break;case i.NorthArrow:e.northArrows=this.northArrows;break;case i.ScaleBar:var n="1:{0}".replace("{0}",l.getScale());t.scale=n}this.showEditView(e)},a.prototype.showEditView=function(t){},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(449),n(85),n(84),n(28),n(32),n(41),n(95),n(34),n(8),n(17),n(38),n(30),n(3),n(2),n,e,t],void 0===(r=function(t,e,u,h,n,i,m,g,v,x,_,w,b,P,S,r,o,a){function s(t){e.call(this),this.map=t.map,this.svgBox=t.svgBox||{width:30,height:30}}return t.extend2(s,e),s.prototype.build=function(t){var e=this.map.findLayer(t);switch(t){case"plotLayer":return this.getPlotLegend(e);case"modelLayer":break;default:if(this.builder)return this.builder.build(e)}},s.prototype.getPlotLegend=function(t){for(var e="{0}图例".replace("{0}",t.getLayerName()),n=new h({id:"",name:e,layerId:""}),i=[],r=t.getCount(),o=0;o<r;o++){var a=t.get(o),s=a.kind;if(-1==i.indexOf(s)){var l=new u({content:s,svg:this.convert(a)});n.add(l),i.push(s)}}return n},s.prototype.convert=function(t){var e=document.createElement("div");if(t instanceof _){var n=t.geometry.envelope(),i=this.createSvg(n),r=this.createPath(t.geometry,t.symbol);return i.appendChild(r),e.appendChild(i),e}if(t instanceof w);else if(t instanceof b){for(var o=t.getCount(),a=[],s=new P,l=(r=new S,0);l<o;l++){var u=t.getItem(l),h=u.geometry;if(h.getGeometryType()==x.Point){var c=u.symbol;if(c instanceof m||c instanceof g){var p=this.createImg(c);return e.appendChild(p),e}if(c instanceof v){var f=this.createText(c);return e.appendChild(f),e}}for(var d=h.getPointCount(),y=0;y<d;y++)r.addPoint(h.getPoint(y));a.push(this.createPath(h,u.symbol))}s.addGeometry(r);for(n=s.envelope(),i=this.createSvg(n),l=0;l<a.length;l++)i.appendChild(a[l]);return e.appendChild(i),e}},s.prototype.createSvg=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),n=this.map.getPixelFromCoordinate([t.minx,t.miny]),i=this.map.getPixelFromCoordinate([t.maxx,t.maxy]),r=Math.abs(parseInt(i[0]-n[0])),o=Math.abs(parseInt(i[1]-n[1])),a=n[0]+" "+(n[1]-o)+" "+r+" "+o;return e.setAttribute("viewBox",a),e.setAttribute("width",this.svgBox.width+"px"),e.setAttribute("height",this.svgBox.height+"px"),e},s.prototype.createPath=function(t,e){for(var n=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.getPointCount(),r=[],o=0;o<i;o++){var a=t.getPoint(o);r.push(this.map.getPixelFromCoordinate([a.x,a.y]))}var s="M"+r[0][0]+" "+r[0][1];for(o=1;o<r.length;o++)s+=" L"+r[o][0]+" "+r[o][1];switch(t.getGeometryType()){case x.Polygon:(u=e.fillColor.copy()).a=null,n.setAttribute("fill",u.toHex());var l=e.borderColor.copy();l.a=null,n.setAttribute("stroke",l.toHex());break;case x.Polyline:var u;(u=e.color.copy()).a=null,n.setAttribute("stroke",u.toHex()),n.setAttribute("fill","none"),n.setAttribute("style","stroke-width:3px;")}return n.setAttribute("d",s),n},s.prototype.createImg=function(t){var e=document.createElement("img");e.setAttribute("width",this.svgBox.width),e.setAttribute("height",this.svgBox.height);var n=t.source;return e.setAttribute("src",n),e.setAttribute("draggable","false"),e},s.prototype.createText=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("width",this.svgBox.width),e.setAttribute("height",this.svgBox.height);var n="0 0 "+this.svgBox.width+" "+this.svgBox.height;e.setAttribute("viewBox",n);var i=t.text.length,r=Math.floor(this.svgBox.width/t.fontSize);if(0!=r)for(var o=Math.ceil(i/r),a=0,s=0;s<=o;++s){var l;if(s<=r)(l=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("x",0),l.setAttribute("y",t.fontSize*(s+1)),l.setAttribute("font-size",t.fontSize+"px"),l.setAttribute("font-weight","Microsoft YaHei"),l.innerHTML=t.text.substring(a,r+a),a+=r,e.appendChild(l)}else(l=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("x",0),l.setAttribute("y",Math.floor(this.svgBox.height/2)),l.setAttribute("font-size",t.fontSize+"px"),l.setAttribute("font-weight","Microsoft YaHei"),l.innerHTML=t.text,e.appendChild(l);return e},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(451),n(452),n(453),n,e,t],void 0===(r=function(n,i,l,t,e,r){function o(t){t=t||{},this.layoutName=t.layoutName,this.useSuggestedDPI=void 0===t.useSuggestedDPI||t.useSuggestedDPI;var e=t.dpi||function(t){var e=96;switch(t){case i.wellEffect:e=400;break;case i.generalEffect:e=200;break;case i.poorEffect:e=96;break;default:e=200}return e}(t.printEffect);this.paper=t.paper,this.OLPageLayout=new n({defaultExtent:{projection:t.projection||"EPSG:4490"},map:t.map.map,layout:t.layout||"A0 landscape",outputFormat:t.outputFormat||"pdf",dpi:e,producer:t.producer||"辰安",unit:t.unit||"辰安科技",userCustomData:t.userCustomData,IsTransform:void 0!==t.IsTransform&&t.IsTransform,transformProj:t.transformProj})}return o.prototype.getSuggestedDPI=function(t){var e=this.OLPageLayout.getViewSize(),n=l.getPixelSize(t),i=Math.ceil(e[0]/n[0]*96);return i<96?96:400<i?400:i},o.prototype.setDPI=function(t){t&&(this.OLPageLayout.dpi=t)},o.prototype.getDPI=function(){return this.OLPageLayout.dpi},o.prototype.setLayout=function(t){t&&(this.OLPageLayout.layout=t)},o.prototype.getLayout=function(){return this.OLPageLayout.layout},o.prototype.setOutputFormat=function(t){t&&(this.OLPageLayout.outputFormat=t)},o.prototype.getOutputFormat=function(){return this.OLPageLayout.outputFormat},o.prototype.setPrintProducer=function(t){t&&(this.OLPageLayout.producer=t)},o.prototype.getPrintProducer=function(){return this.OLPageLayout.producer},o.prototype.setPrintUnit=function(t){t&&(this.OLPageLayout.unit=t)},o.prototype.getPrintUnit=function(){return this.OLPageLayout.unit},o.prototype.setPrintTransform=function(t){this.OLPageLayout.IsTransform=t},o.prototype.getPrintTransform=function(){return this.OLPageLayout.IsTransform},o.prototype.setTransformProj=function(t){t&&(this.OLPageLayout.transformProj=t)},o.prototype.getTransformProj=function(){return this.OLPageLayout.transformProj},o.prototype.setLayoutName=function(t){t&&(this.layoutName=t)},o.prototype.getLayoutName=function(){return this.layoutName},o.prototype.setUseSuggestedDPI=function(t){this.useSuggestedDPI=t},o.prototype.getUseSuggestedDPI=function(){return this.useSuggestedDPI},o.prototype.getSuggestedLayout=function(){var t=this.OLPageLayout.getViewSize(),e=t[0],n=t[1];for(var i in l){var r=l[i],o=l.getPixelSize(r);if(o[0]>e&&o[1]>n)return r}},o.prototype.setPatternLayer=function(t){t&&this.OLPageLayout.setPatternLayer(t)},o.prototype.addLayer=function(t){null!=t&&this.OLPageLayout.addLayer(t)},o.prototype.removeLayer=function(t){t.clear(),this.OLPageLayout.removeLayer(t)},o.prototype.format=function(t,e){var n=this.getSuggestedLayout(),i=function(t,e){var n=1,i=e.includes("LandScape"),r=l.getPixelSize(e);if(t){var o,a=t.name,s=t.landscape;o="custom"===a?s?[t.height,t.width]:[t.width,t.height]:(s&&(a+="_LandScape"),l.getPixelSize(a)),(s&&i||!s&&!i)&&(n=o[0]/r[0])}return n}(this.paper,n);return this.OLPageLayout.format(t,e,i)},r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(10),n(36),n(1),n(17),n,e,t],void 0===(r=function(t,e,n,o,i,r,a){function s(t){this._trackLayer=t.trackLayer,this._trackSymbol=t.trackSymbol,this._speed=t.speed,this._polyline=t.polyline,this._skip=t.skip||1,this._playing=!1,this._paused=!1,this._trackElement=null,this._interval=null,this._totalTime=null}var l=new e({});return t(s.prototype,{interval:{get:function(){return this._interval},set:function(t){this._interval!=t&&(this._interval=t,this._animater&&this._animater.updateInterval(this._interval))}},playing:{get:function(){return this._playing},set:function(t){this._playing!=t&&(this._playing=t)}},paused:{get:function(){return this._paused},set:function(t){this._paused!=t&&(this._paused=t)}}}),s.prototype.play=function(t){this._interPolyline=this.getInterLine();var e=this._interPolyline.getPointCount(),n=this.getIndex(t),i=this._interPolyline.getPoint(n);if(0!=e){(function(t){this._trackElement=new o({geometry:t,symbol:this._trackSymbol}),this._trackLayer.add(this._trackElement)}).call(this,i),this._playing=!0,this._paused=!1,this._interval=function(){return this._totalTime=this.getTotalTime(),this._totalTime/this._interPolyline.getPointCount()}.call(this);var r=this;return this._animater=function(t,e,n,i,r){var o={timer:null,index:e,interval:t,count:n,isPause:!1,play:function(){var t=function(){o.isPause||(o.index<o.count?(i(o.index++,o.count),clearInterval(o.timer),o.timer=setInterval(t,o.interval)):o.stop())};o.timer=setInterval(t,o.interval)},pause:function(){o.isPause=!0},continue:function(){o.isPause=!1},stop:function(){o.index=0,clearInterval(o.timer),r()},updateInterval:function(t){o.interval=t}};return o}(this._interval,n+1,e,function(t,e){i=r._interPolyline.getPoint(t),function(t){this._trackElement.geometry.x=t.x,this._trackElement.geometry.y=t.y,this._trackLayer.update(this._trackElement,!1)}.call(r,i),r._playing=!0,r._paused=!1,r.onRunning(t,e)},function(t){r._playing=!1,r._paused=!1,r.onFinished()}),this._animater.play(),this._totalTime}},s.prototype.getInterLine=function(){for(var t=l.transform(this._polyline,3857),e=this.getLength(),n=Math.floor(e/this._skip)+1,i=this._polyline.copy(),r=i.paths[0].points.length=0;r<n;r++){var o=t.getPartPoint(r*this._skip);o.setSpatialReference(3857),i.addPoint(l.transform(o,i.getSpatialReference()))}return i},s.prototype.getLength=function(){return l.transform(this._polyline,3857).length()},s.prototype.getTotalTime=function(){var t=this.getLength();return this._totalTime=t/this._speed*3600,this._totalTime},s.prototype.continue=function(){this._animater.continue(),this._playing=!0,this._paused=!1},s.prototype.getIndex=function(t){if(!t)return 0;var e=this._interPolyline.getPointCount(),n=Math.ceil(t/this.getTotalTime()*e);return n=n<e?n:e-1},s.prototype.stop=function(){this._animater.stop(),this._trackLayer.remove(this._trackElement),this._playing=!1,this._paused=!1},s.prototype.pause=function(){this._animater.pause(),this._playing=!1,this._paused=!0},s.prototype.onRunning=function(t,e){},s.prototype.onFinished=function(){},a.exports=s}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(10),n,e,t],void 0===(r=function(t,e,n,i){function r(t){var e=t||{};this._routeName=null==e.routeName?"":e.routeName,this._speed=void 0===e.speed?0:e.speed,this._stops=void 0===e.stops?[]:e.stops,this.$type="Route,http://www.Gs.com"}return t(r.prototype,{routeName:{get:function(){return this._routeName},set:function(t){this._routeName!==t&&(this._routeName=t)}},speed:{get:function(){return this._speed},set:function(t){this._speed!==t&&(this._speed=t)}},stops:{get:function(){return this._stops},set:function(t){this._stops!=t&&(this._stops=t)}}}),r.prototype.addStop=function(t){this._stops.push(t)},r.prototype.getStop=function(t){if(0<=t&&t<this._stops.length)return this._stops[t]},r.prototype.removeStop=function(t){var e=this._stops.indexOf(t);this._stops.splice(e,1)},r.prototype.getStopCount=function(){return this._stops.length},r.prototype.clearStop=function(){this._stops.length=0},r.prototype.getStopIndex=function(t){return this._stops.indexOf(t)},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(1),n(10),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){var e=t||{};this._position=e.position||void 0,this._heading=e.heading||0,this._pitch=e.pitch||0,this._waitTime=e.waitTime||0,this.$type="RouteStop,http://www.Gs.com"}return e(o.prototype,{position:{get:function(){return this._position},set:function(t){this._position!==t&&(this._position=t)}},heading:{get:function(){return this._heading},set:function(t){this._heading!=t&&(this._heading=t)}},pitch:{get:function(){return this._pitch},set:function(t){this._pitch!=t&&(this._pitch=t)}},waitTime:{get:function(){return this._waitTime},set:function(t){this._waitTime!=t&&(this._waitTime=t)}}}),r.exports=o}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(t){}return i.prototype.clear=function(){},i.prototype.remove=function(t){},i.prototype.show=function(t,e){},i.prototype.add=function(t,e){},i.prototype.update=function(t){},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t,e,n){function i(){this.legends=[]}return i.prototype.show=function(t){t&&(this.lookup(t.id)||this.legends.push(t))},i.prototype.clear=function(){this.legends=[]},i.prototype.remove=function(t){for(var e=0,n=this.legends.length;e<n;++e){if(this.legends[e].id===t)return void this.legends.splice(e,1)}},i.prototype.lookup=function(t){for(var e=0,n=this.legends.length;e<n;++e){var i=this.legends[e];if(i.id===t)return i}return null},n.exports=i}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(27),n,e,t],void 0===(r=function(e,t,n,i){function r(t){if(this.position=t.position,this.id=t.id||e.newGuid(),this.element=t.element,this.offset=t.offset||[0,0],this.positioning=t.positioning||"top-left",this.stopEvent=null==t.stopEvent||t.stopEvent,this.autoPan=t.autoPan||!1,this.autoPanAnimation=t.autoPanAnimation||{duration:250},this.autoPanMargin=t.autoPanMargin||20,this.events={mouseover:[],mouseout:[],click:[]},this.element){var n=this;this.element.onmouseover=function(e){n.events.mouseover.forEach(function(t){t(e)})},this.element.onmouseout=function(e){n.events.mouseout.forEach(function(t){t(e)})},this.element.onclick=function(e){n.events.click.forEach(function(t){t(e)})}}}return r.prototype.on=function(t,e){t in this.events&&this.events[t].push(e)},r.prototype.un=function(t,e){if(t in this.events)for(var n=this.events[t],i=0,r=n.length;i<r;++i){(e=n[i])==e&&(n.splice(i,1),i--,r--)}},r.prototype.destroy=function(){var t=this.element;t.onclick=void 0,t.onmouseover=void 0,t.onmouseout=void 0;t.attributes;for(var e in this.events){for(var n=this.events[e],i=0;i<n.length;i++)n[i]=void 0;n.length=0,this.events[e]=void 0,delete this.events[e]}for(var e in this)this[e]=void 0,delete this[e]},i.exports=r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(27),n,e,t],void 0===(r=function(e,t,n,i){function r(t){this.anchor=t.anchor,this.content=t.content,this.id=t.id||e.newGuid(),this.layerId=t.layerId,this.onClose=t.onClose,this.title=t.title||"",this.className=t.className,this.windowPosition=t.windowPosition}return i.exports=r}.apply(e,i))||(t.exports=r)},function(t,n,i){(function(t){var e;void 0===(e=function(t,e,n){var i={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"};return n.exportss=i}.apply(n,[i,n,t]))||(t.exports=e)}).call(this,i(314)(t))},function(t,e,n){var i,r;i=[n(0),n(454),n(9),n,e,t],void 0===(r=function(t,e,n,i,r,o){function a(t){e.call(this,t),this.map=t.map.map,this.overlays=[]}return t.extend2(a,e),a.prototype.add=function(t){var e=function(t){return new n.Overlay({id:t.id,positioning:t.positioning,element:t.element,stopEvent:t.stopEvent,autoPan:t.autoPan,autoPanAnimation:t.autoPanAnimation,autoPanMargin:t.autoPanMargin,offset:t.offset})}(t);this.map.addOverlay(e),e.setPosition([t.position.x,t.position.y]),this.overlays.push(t)},a.prototype.panIntoView=function(t){(t=this.map.getOverlayById(t.id)).panIntoView()},a.prototype.update=function(t){this.map.getOverlayById(t.id).setProperties({element:t.element,offset:t.offset,position:[t.position.x,t.position.y],positioning:t.positioning},!1)},a.prototype.remove=function(t){for(var e=0;e<this.overlays.length;e++){var n=this.get(e);if(n.id===t){var i=this.map.getOverlayById(t);this.map.removeOverlay(i),this.overlays.splice(e,1),n.destroy();break}}},a.prototype.getCount=function(){return this.overlays.length},a.prototype.get=function(t){return this.overlays[t]},a.prototype.clear=function(){for(var t=0;t<this.overlays.length;t++){var e=this.get(t),n=this.map.getOverlayById(e.id);this.map.removeOverlay(n),e.destroy()}this.overlays.length=0},o.exports=a}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(178),n(9),n,e,t],void 0===(r=function(t,e,c,n,i,r){function o(t){e.call(this,t),this._vectorSource=new c.source.Vector,this._leadWireLayer=new c.layer.Vector({source:this._vectorSource,zIndex:99999}),this.map.addLayer(this._leadWireLayer);var s=this;this.createContainer=function(n){var i=document.createElement("div");function r(){for(var t=0,e=s.elements.length;t<e;++t)s.elements[t].style.zIndex=1;i.style.zIndex=2}if(i.className=n.className||"ol-popup",i.style.display="block",i.style.zIndex=2,i.addEventListener("click",r,!0),r(),n.title){var o=document.createElement("button");n.id;o.addEventListener("click",function t(){i.style.display="none",i.blur(),s.remove(n.id),n.onClose&&n.onClose();var e=n.overlay.feature;s._vectorSource.removeFeature(e),o.removeEventListener("click",t),i.removeEventListener("click",r)},!1),o.className="close right1",o.style.backgroundImage="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAABaklEQVRYR+3WMUsdQRTF8Z/Bws6kECzShhRqBAu/gI0ETRNIxDSpbAIRWz+DhV9ABAttLBSRFCFtIISQQoyCIjaCCEIC9srABB6PF+fNLIQnzDa77J2d8+ece4ft02NXX4/xqECpRKpD1aGUA6l67aHqUMqBVL20hwbxJ7V5Sb0UaAHf8fMfoqNYxnwuVCnQbRQKwodtok+xiwm8xKccqFKgb5iMQiP4FZ8HsI453OADNv4HUNDYw0wUe45+bGIcAXgx3nN4Gv9+bOM1QoQB5h3OMIXzLJK4uDSyVq0rDLW8eIbTEpjwTVOgR9jBbAvA4yZHQhOgYaziLa7xBW86NHqWWaVAYbK2MIaveI+TOO6vIsELHGTRNIgsnC3TuIwN/Hfs26fvCX7nQJU6FKbqGB/xuYPgfjwUl2KsXTOVAoVYfuDiHqU1rOCoa5oGkeVoZK0tdShLJGdxBUq5VR2qDqUcSNVrDz04h+4AFYwxJbxXuaoAAAAASUVORK5CYII=)",o.style.width="36px",o.style.height="36px",o.style.backgroundSize="100% 100%";var t=document.createElement("div");t.innerHTML=n.title,t.style.styleFloat="left",t.style.cssFloat="left";var e=document.createElement("div");e.className="div-header1",e.appendChild(t),e.appendChild(o),i.appendChild(e)}var a=document.createElement("div");return a.className="popup-content",a.innerHTML=n.content,i.appendChild(a),this.elements.push(i),i}}function p(t,e,n){var i=new c.Feature({geometry:t,name:"引线"});i.setStyle(new c.style.Style({stroke:new c.style.Stroke({color:n.leadWireColor||"#272727",width:n.leadWireWidth||2})})),this._vectorSource.addFeature(i),e.feature=i}function f(t){t.feature&&t.feature.setGeometry(d(t))}function d(t){var e=[[[0,0],t.getPosition(),t.getPosition(),[0,0]]];return new c.geom.Polygon(e)}return t.extend2(o,e),o.prototype.clear=function(){o.prototype.uber.clear.call(this),this._vectorSource.clear()},o.prototype.remove=function(t){var e=null,n=this;if(t in this.container){var i=this.container[t];i.forEach(function(t){t&&(t.onClose&&(t.onClose(),t.onClose=null),n._vectorSource.removeFeature(t.feature),n.map.removeOverlay(t),n.removeOverlay(t))}),i.splice(0,i.length)}t in this.IdContainer&&((e=this.IdContainer[t])&&(n._vectorSource.removeFeature(e.feature),this.map.removeOverlay(e),this.removeOverlay(e)),delete this.IdContainer[t])},o.prototype.add=function(t,e){var i=this,n=this.createContainer(t),r=new c.Overlay({element:n,autoPan:t.autoPan,autoPanAnimation:{duration:250},stopEvent:t.stopEvent,positioning:t.positioning});(t.overlay=r).tooltip=t,this.map.addOverlay(r);var o,a,s=i.map.getCoordinateFromPixel([0,0]),l=i.map.getCoordinateFromPixel(t.offset),u=l[0]-s[0],h=l[1]-s[1];r.setPosition([t.anchor.x+u,t.anchor.y+h]),p.call(i,d(r),r,t),n.onmousedown=(o=r,a=t,function(t){if(t.currentTarget){var e=o.getPosition();a._pattern={x:e[0],y:e[1]},window.nowInfoWindowControl=a}}),document.onmouseup=function(t){window.nowInfoWindowControl&&(window.nowInfoWindowControl._pattern=null,window.nowInfoWindowControl._startPosition=null)},document.onmousemove=function(t){var e=i.map.getCoordinateFromPixel([t.clientX,t.clientY]),n=window.nowInfoWindowControl;n&&null!=n._pattern&&(null==n._startPosition||(n._pattern.x+=e[0]-n._startPosition.x,n._pattern.y+=e[1]-n._startPosition.y,n.overlay.setPosition([n._pattern.x,n._pattern.y]),f(n.overlay)),n._startPosition={x:e[0],y:e[1]})},t.layerId in this.container||(this.container[t.layerId]=[]),e&&(this.lastTip&&-1==this.excluseLayerIds.indexOf(this.lastTip.layerId)&&(this.remove(this.lastTip.layerId),this.remove(this.lastTip.id)),this.lastTip=null),this.container[t.layerId].push(r),this.IdContainer[t.id]=r,this.lastTip=t},o.prototype.update=function(t){o.prototype.uber.update.call(this,t),f(t.overlay)},o.prototype.show=function(t,e){var n=this,i="block";i=e?"block":"none",t in this.container&&this.container[t].forEach(function(t){t&&(t.getElement().style.display=i,e?-1==n._vectorSource.getFeatures().indexOf(t.feature)&&p.call(n,d(t),t,t.tooltip):n._vectorSource.removeFeature(t.feature))});if(t in this.IdContainer){var r=this.IdContainer[t];if(r)if(r.getElement().style.display=i,e)-1==n._vectorSource.getFeatures().indexOf(r.feature)&&p.call(n,d(r),r,r.tooltip);else n._vectorSource.removeFeature(r.feature)}},r.exports=o}.apply(e,i))||(t.exports=r)}],n={},o.m=m,o.c=n,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=455);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return m[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var m,n});