geojs 1.15.2 → 1.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/geo.lean.min.js CHANGED
@@ -28,7 +28,7 @@
28
28
  * @copyright 2017, Vladimir Agafonkin
29
29
  * @license ISC
30
30
  */
31
- var i=n(5616),r=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;i.htmlPrefilter=function(t){return t.replace(r,"<$1></$2>")},n(7605),t.exports=Object.assign({annotationLayer:n(2075),camera:n(3578),choroplethFeature:n(3561),contourFeature:n(6761),domRenderer:n(9726),event:n(6409),feature:n(1275),featureLayer:n(6498),fetchQueue:n(5938),fileReader:n(703),geo_action:n(8695),graphFeature:n(3187),heatmapFeature:n(9163),imageTile:n(4912),isolineFeature:n(2586),geojsonReader:n(5173),gridFeature:n(2499),layer:n(5156),lineFeature:n(9281),map:n(6211),mapInteractor:n(7908),markerFeature:n(2225),meshFeature:n(6124),object:n(1338),osmLayer:n(4880),pathFeature:n(2266),pointFeature:n(7541),polygonFeature:n(6645),quadFeature:n(3842),pixelmapFeature:n(7761),pixelmapLayer:n(534),renderer:n(2274),sceneObject:n(5402),textFeature:n(6546),tile:n(5289),tileCache:n(9123),tileLayer:n(9264),timestamp:n(77),trackFeature:n(338),transform:n(5325),typedef:n(3170),vectorFeature:n(6858),inherit:n(4626),version:n(4081),sha:n(9079),annotation:n(4655),util:n(642),jQuery:i,canvas:n(8074),svg:n(6488),vtkjs:n(394),webgl:n(8635),gui:n(4812),vgl:n(1611)},n(1098)),window&&!window.$&&(window.$=i),window&&!window.jQuery&&(window.jQuery=i),window&&!window.geojsMap&&(window.geojsMap=function(){var t=i(".geojs-map").map(function(t,e){return i(e).data("data-geojs-map")});return 0===t.length?void 0:1===t.length?t[0]:t})},2266:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=this,n=this._init;return this.featureType="path",this.position=function(t){return void 0===t?e.style("position"):(t!==e.style("position")&&(e.style("position",t),e.dataTime().modified(),e.modified()),e)},this._init=function(t){n.call(e,t);var i=Object.assign({},{strokeWidth:1,strokeColor:{r:1,g:1,b:1},position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t}},void 0===t.style?{}:t.style);return void 0!==t.position&&(i.position=t.position),e.style(i),i.position&&e.position(i.position),e.dataTime().modified(),e},this._init(t),this};i(o,r),t.exports=o},2274:function(t,e,n){var i=n(4626),r=n(1338),o=function(t){"use strict";if(!(this instanceof o))return new o(t);r.call(this);var e=this,n=0,i=0,a=void 0===(t=t||{}).layer?null:t.layer,s=void 0===t.canvas?null:t.canvas,l=!1;return this.layer=function(){return a},this.canvas=function(t){return void 0===t?s:(s=t,e.modified(),e)},this.map=function(){return a?a.map():null},this.initialized=function(t){return void 0===t?l:(l=t,e)},this.api=function(){throw new Error("Should be implemented by derived classes")},this.width=function(){return n},this.height=function(){return i},this._setWidthHeight=function(t,r){return n=t,i=r,e},this._init=function(){return e},this._resize=function(t,n,i,r){return e._setWidthHeight(i,r),e},this._render=function(){return e},this};i(o,r),t.exports=o},2308:function(t,e,n){"use strict";function i(){}function r(t){return t}n.r(e),n.d(e,{forward:function(){return r},init:function(){return i},inverse:function(){return r},names:function(){return o}});var o=["longlat","identity"];e.default={init:i,forward:r,inverse:r,names:o}},2311:function(t){t.exports=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}},2337:function(t){t.exports=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}},2340:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}},2493:function(t,e,n){var i=n(4626),r=n(1098).registerRenderer,o=n(2274),a=function(t){"use strict";var e=a.d3,i=n(5005),r=n(642),s=n(6409),l=n(4765);if(!(this instanceof a))return new a(t);o.call(this,t);var u=this._exit;i.call(this,t),t=t||{};var c=this,d=null,h={},f=null,p=null,m=1,g={dx:0,dy:0,rx:0,ry:0,rotation:0},y={},v={},x=null,_=null;function b(t){return t?x.select(".group-"+t):x.select(".group-"+c._svgid())}function w(){var t=c.layer().map(),e=t.size().width,n=t.size().height;if(!e||!n)throw new Error("Map layer has size 0");c._setWidthHeight(e,n),p=Math.pow(e*e+n*n,.5),f={upperLeft:t.displayToGcs({x:0,y:0},null),lowerRight:t.displayToGcs({x:e,y:n},null),center:t.displayToGcs({x:e/2,y:n/2},null)}}return this._convertColor=function(t,n){return t=r.ensureFunction(t),n=n||function(){return!0},function(){var i="none";return n.apply(c,arguments)&&(i=t.apply(c,arguments)).hasOwnProperty("r")&&i.hasOwnProperty("g")&&i.hasOwnProperty("b")&&(i=e.rgb(255*i.r,255*i.g,255*i.b)),i}},this._convertScale=function(t){return t=r.ensureFunction(t),function(){return t.apply(c,arguments)/m}},this._setTransform=function(){if(f||w(),d){var t,e,n,i,r,o,a=c.layer().map(),s=a.gcsToDisplay(f.upperLeft,null),l=a.gcsToDisplay(f.lowerRight,null),u=a.gcsToDisplay(f.center,null),h=b();n=Math.sqrt(Math.pow(l.y-s.y,2)+Math.pow(l.x-s.x,2))/p,i=a.rotation(),r=-c.width()/2,o=-c.height()/2,t=n*r+u.x,e=n*o+u.y,i||(t=Math.round(t),e=Math.round(e));var y="matrix("+[n,0,0,n,t,e].join()+")";i&&(y+=" rotate("+[180*i/Math.PI,-r,-o].join()+")"),h.attr("transform",y),m=n,g.dx=t,g.dy=e,g.rx=r,g.ry=o,g.rotation=i}},this.baseToLocal=function(t){if(t={x:(t.x-g.dx)/m,y:(t.y-g.dy)/m},g.rotation){var e=Math.sin(-g.rotation),n=Math.cos(-g.rotation),i=t.x+g.rx,r=t.y+g.ry;t={x:i*n-r*e-g.rx,y:i*e+r*n-g.ry}}return t},this.localToBase=function(t){if(g.rotation){var e=Math.sin(g.rotation),n=Math.cos(g.rotation),i=t.x+g.rx,r=t.y+g.ry;t={x:i*n-r*e-g.rx,y:i*e+r*n-g.ry}}return t={x:t.x*m+g.dx,y:t.y*m+g.dy}},this._init=function(t){if(!c.canvas()){var n;t.widget=t.widget||!1,(x="d3Parent"in t?e.select(t.d3Parent).append("svg"):e.select(c.layer().node().get(0)).append("svg")).attr("display","block");var i=(_=x.append("defs")).append("filter").attr("id","geo-highlight").attr("x","-100%").attr("y","-100%").attr("width","300%").attr("height","300%");i.append("feMorphology").attr("operator","dilate").attr("radius",2).attr("in","SourceAlpha").attr("result","dilateOut"),i.append("feGaussianBlur").attr("stdDeviation",5).attr("in","dilateOut").attr("result","blurOut"),i.append("feColorMatrix").attr("type","matrix").attr("values","-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0").attr("in","blurOut").attr("result","invertOut"),i.append("feBlend").attr("in","SourceGraphic").attr("in2","invertOut").attr("mode","normal"),t.widget||(n=t.canvas||x.append("g")),(i=_.append("filter").attr("id","geo-blur").attr("x","-100%").attr("y","-100%").attr("width","300%").attr("height","300%")).append("feGaussianBlur").attr("stdDeviation",20).attr("in","SourceGraphic"),d=c.layer().sticky(),x.attr("class",c._svgid()),x.attr("width",c.layer().node().width()),x.attr("height",c.layer().node().height()),t.widget?c.canvas(x):(n.attr("class","group-"+c._svgid()),c.canvas(n))}return c._setTransform(),c},this.api=function(){return a.apiname},this.scaleFactor=function(){return m},this._resize=function(t,e,n,i){return f||w(),x.attr("width",n),x.attr("height",i),c._setTransform(),c._setWidthHeight(n,i),c.layer().geoTrigger(l,{scale:m},!0),c},this._exit=function(){h={},c.canvas().remove(),x.remove(),x=void 0,_.remove(),_=void 0,y={},v={},u()},this._definitions=function(){return _},this._drawFeatures=function(t){return h[t.id]={data:t.data,index:t.dataIndex,style:t.style,visible:t.visible,attributes:t.attributes,classes:t.classes,append:t.append,onlyRenderNew:t.onlyRenderNew,sortByZ:t.sortByZ,parentId:t.parentId},c.__render(t.id,t.parentId)},this.__render=function(t,e){var n;if(void 0===t){for(n in h)h.hasOwnProperty(n)&&c.__render(n);return c}return e?c._renderFeature(t,e):(y[t]=!0,c.layer().map().scheduleAnimationFrame(c._renderFrame)),c},this._scheduleUpdate=function(){c.layer().map().scheduleAnimationFrame(c._renderFrame)},this._renderFrame=function(){var t;for(t in v)c.select(t).remove(),_.selectAll("."+t).remove();v={};var e=y;for(t in y={},e)e.hasOwnProperty(t)&&c._renderFeature(t);for(t in h)h.hasOwnProperty(t)&&void 0===e[t]&&c.select(t).attr("visibility",!h[t].visible||h[t].visible()?"visible":"hidden")},this._renderFeature=function(t,e){if(!h[t])return c;c.select(t).remove();var n,i,r=h[t].data,o=h[t].index,a=h[t].style,s=h[t].visible,l=h[t].attributes,u=h[t].classes,d=h[t].append,f=c.select(t,e).data(r,o);return n=f.enter().append(d),f.exit().remove(),function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}(i=n,l),i.attr("class",u.concat([t]).join(" ")),function(t,e){var n,i,r;function o(){return e.fill.apply(c,arguments)?null:"none"}function a(){return e.stroke.apply(c,arguments)?null:"none"}for(n in e)e.hasOwnProperty(n)&&(r=null,i=null,"strokeColor"===n?(i="stroke",r=c._convertColor(e[n],e.stroke)):"stroke"===n&&e[n]&&!e.hasOwnProperty("strokeColor")?(i="stroke",r=a):"strokeWidth"===n?(i="stroke-width",r=c._convertScale(e[n])):"strokeOpacity"===n?(i="stroke-opacity",r=e[n]):"fillColor"===n?(i="fill",r=c._convertColor(e[n],e.fill)):"fill"!==n||e.hasOwnProperty("fillColor")?"fillOpacity"===n?(i="fill-opacity",r=e[n]):"lineCap"===n?(i="stroke-linecap",r=e[n]):"lineJoin"===n?(i="stroke-linejoin",r=e[n]):"miterLimit"===n&&(i="stroke-miterlimit",r=e[n]):(i="fill",r=o),i&&t.style(i,r))}(i,a),s&&i.attr("visibility",s()?"visible":"hidden"),n.size()&&h[t].sortByZ&&f.sort(function(t,e){return(t.zIndex||0)-(e.zIndex||0)}),c},this.select=function(t,e){return b(e).selectAll("."+t)},this._removeFeature=function(t){return v[t]=!0,c.layer().map().scheduleAnimationFrame(c._renderFrame),delete h[t],y[t]&&delete y[t],c},this.draw=function(){},this.layer().geoOn(s.pan,c._setTransform),this.layer().geoOn(s.rotate,c._setTransform),this.layer().geoOn(s.zoom,function(){c._setTransform(),c.__render(),c.layer().geoTrigger(l,{scale:m},!0)}),this.layer().geoOn(s.resize,function(t){c._resize(t.x,t.y,t.width,t.height)}),this._init(t),this};a.apiname="svg",i(a,o),r("svg",a),r("d3",a),a.supported=function(){delete a.d3;try{a.d3=n(3893),a.d3&&a.d3.rgb||(a.d3=void 0)}catch(t){}return void 0!==a.d3},a.fallback=function(){return null},a.supported(),t.exports=a},2499:function(t,e,n){var i=n(4626),r=n(6124),o=function(t){"use strict";if(!(this instanceof o))return new o(t);var e=n(642),i=n(5905);t=t||{},r.call(this,t);var a=this,s=this._init;return this._createGrids=function(){return i.createColoredMesh(a,!0)},this.grid=a.mesh,this._init=function(t){s.call(a,t);var n=Object.assign({},{opacity:1,value:function(t,n){return e.isNonNullFinite(t)?t:a.position()(t,n).z},position:function(t){return t||{x:0,y:0}},origin:function(t){return t.length>=3?[t[0],t[1],0]:[0,0,0]}},void 0===t.style?{}:t.style);a.style(n),a.grid(Object.assign({},{minColor:"black",minOpacity:0,maxColor:"black",maxOpacity:0,colorRange:[{r:.07514311,g:.468049805,b:1},{r:.468487184,g:.588057293,b:1},{r:.656658579,g:.707001303,b:1},{r:.821573924,g:.837809045,b:1},{r:.943467973,g:.943498599,b:.943398095},{r:1,g:.788626485,b:.750707739},{r:1,g:.6289553,b:.568237474},{r:1,g:.472800903,b:.404551679},{r:.916482116,g:.236630659,b:.209939162}]},t.mesh||{},t.grid||{})),(t.mesh||t.grid)&&a.dataTime().modified()},this._init(t),this};i(o,r),t.exports=o},2508:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*o-l*r,d=u*r+l*i-a*o,h=u*o+a*r-s*i,f=-a*i-s*r-l*o;return t[0]=c*u+f*-a+d*-l-h*-s,t[1]=d*u+f*-s+h*-a-c*-l,t[2]=h*u+f*-l+c*-s-d*-a,t[3]=e[3],t}},2513:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return d}});var i=n(7e3),r={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},o={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function a(){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||"Quadrilateralized Spherical Cube",this.lat0>=i.sK-i.Vj/2?this.face=r.TOP:this.lat0<=-(i.sK-i.Vj/2)?this.face=r.BOTTOM:Math.abs(this.long0)<=i.Vj?this.face=r.FRONT:Math.abs(this.long0)<=i.sK+i.Vj?this.face=this.long0>0?r.RIGHT:r.LEFT:this.face=r.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function s(t){var e,n,a,s,l,d,h={x:0,y:0},f={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===r.TOP)s=i.sK-e,n>=i.Vj&&n<=i.sK+i.Vj?(f.value=o.AREA_0,a=n-i.sK):n>i.sK+i.Vj||n<=-(i.sK+i.Vj)?(f.value=o.AREA_1,a=n>0?n-i.DF:n+i.DF):n>-(i.sK+i.Vj)&&n<=-i.Vj?(f.value=o.AREA_2,a=n+i.sK):(f.value=o.AREA_3,a=n);else if(this.face===r.BOTTOM)s=i.sK+e,n>=i.Vj&&n<=i.sK+i.Vj?(f.value=o.AREA_0,a=-n+i.sK):n<i.Vj&&n>=-i.Vj?(f.value=o.AREA_1,a=-n):n<-i.Vj&&n>=-(i.sK+i.Vj)?(f.value=o.AREA_2,a=-n-i.sK):(f.value=o.AREA_3,a=n>0?-n+i.DF:-n-i.DF);else{var p,m,g,y,v,x;this.face===r.RIGHT?n=c(n,+i.sK):this.face===r.BACK?n=c(n,+i.DF):this.face===r.LEFT&&(n=c(n,-i.sK)),y=Math.sin(e),v=Math.cos(e),x=Math.sin(n),p=v*Math.cos(n),m=v*x,g=y,this.face===r.FRONT?a=u(s=Math.acos(p),g,m,f):this.face===r.RIGHT?a=u(s=Math.acos(m),g,-p,f):this.face===r.BACK?a=u(s=Math.acos(-p),g,-m,f):this.face===r.LEFT?a=u(s=Math.acos(-m),g,p,f):(s=a=0,f.value=o.AREA_0)}return d=Math.atan(12/i.DF*(a+Math.acos(Math.sin(a)*Math.cos(i.Vj))-i.sK)),l=Math.sqrt((1-Math.cos(s))/(Math.cos(d)*Math.cos(d))/(1-Math.cos(Math.atan(1/Math.cos(a))))),f.value===o.AREA_1?d+=i.sK:f.value===o.AREA_2?d+=i.DF:f.value===o.AREA_3&&(d+=1.5*i.DF),h.x=l*Math.cos(d),h.y=l*Math.sin(d),h.x=h.x*this.a+this.x0,h.y=h.y*this.a+this.y0,t.x=h.x,t.y=h.y,t}function l(t){var e,n,a,s,l,u,d,h,f,p,m,g,y={lam:0,phi:0},v={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?v.value=o.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(v.value=o.AREA_1,e-=i.sK):t.x<0&&-t.x>=Math.abs(t.y)?(v.value=o.AREA_2,e=e<0?e+i.DF:e-i.DF):(v.value=o.AREA_3,e+=i.sK),f=i.DF/12*Math.tan(e),l=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),u=Math.atan(l),(d=1-(a=Math.cos(e))*a*(s=Math.tan(n))*s*(1-Math.cos(Math.atan(1/Math.cos(u)))))<-1?d=-1:d>1&&(d=1),this.face===r.TOP)h=Math.acos(d),y.phi=i.sK-h,v.value===o.AREA_0?y.lam=u+i.sK:v.value===o.AREA_1?y.lam=u<0?u+i.DF:u-i.DF:v.value===o.AREA_2?y.lam=u-i.sK:y.lam=u;else if(this.face===r.BOTTOM)h=Math.acos(d),y.phi=h-i.sK,v.value===o.AREA_0?y.lam=-u+i.sK:v.value===o.AREA_1?y.lam=-u:v.value===o.AREA_2?y.lam=-u-i.sK:y.lam=u<0?-u-i.DF:-u+i.DF;else{var x,_,b;f=(x=d)*x,_=(f+=(b=f>=1?0:Math.sqrt(1-f)*Math.sin(u))*b)>=1?0:Math.sqrt(1-f),v.value===o.AREA_1?(f=_,_=-b,b=f):v.value===o.AREA_2?(_=-_,b=-b):v.value===o.AREA_3&&(f=_,_=b,b=-f),this.face===r.RIGHT?(f=x,x=-_,_=f):this.face===r.BACK?(x=-x,_=-_):this.face===r.LEFT&&(f=x,x=_,_=-f),y.phi=Math.acos(-b)-i.sK,y.lam=Math.atan2(_,x),this.face===r.RIGHT?y.lam=c(y.lam,-i.sK):this.face===r.BACK?y.lam=c(y.lam,-i.DF):this.face===r.LEFT&&(y.lam=c(y.lam,+i.sK))}0!==this.es&&(p=y.phi<0?1:0,m=Math.tan(y.phi),g=this.b/Math.sqrt(m*m+this.one_minus_f_squared),y.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),p&&(y.phi=-y.phi));return y.lam+=this.long0,t.x=y.lam,t.y=y.phi,t}function u(t,e,n,r){var a;return t<i.H0?(r.value=o.AREA_0,a=0):(a=Math.atan2(e,n),Math.abs(a)<=i.Vj?r.value=o.AREA_0:a>i.Vj&&a<=i.sK+i.Vj?(r.value=o.AREA_1,a-=i.sK):a>i.sK+i.Vj||a<=-(i.sK+i.Vj)?(r.value=o.AREA_2,a=a>=0?a-i.DF:a+i.DF):(r.value=o.AREA_3,a+=i.sK)),a}function c(t,e){var n=t+e;return n<-i.DF?n+=i.JM:n>+i.DF&&(n-=i.JM),n}var d=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];e.default={init:a,forward:s,inverse:l,names:d}},2586:function(t,e,n){var i=n(4626),r=n(6124),o=n(1098),a=n(642),s={17:[{l0:1,h0:2,l1:0,h1:2}],18:[{l0:0,h0:1,l1:2,h1:1}],20:[{l0:2,h0:0,l1:1,h1:0}],22:[{l0:2,h0:0,l1:2,h1:1}],21:[{l0:1,h0:2,l1:1,h1:0}],19:[{l0:0,h0:1,l1:0,h1:2}],1:[{l0:2,h0:3,l1:1,h1:3}],2:[{l0:0,h0:2,l1:3,h1:2}],4:[{l0:3,h0:1,l1:0,h1:1}],8:[{l0:1,h0:0,l1:2,h1:0}],14:[{l0:3,h0:1,l1:3,h1:2}],13:[{l0:2,h0:3,l1:2,h1:0}],11:[{l0:1,h0:0,l1:1,h1:3}],7:[{l0:0,h0:2,l1:0,h1:1}],3:[{l0:0,h0:2,l1:1,h1:3}],10:[{l0:1,h0:0,l1:3,h1:2}],12:[{l0:3,h0:1,l1:2,h1:0}],5:[{l0:2,h0:3,l1:0,h1:1}],6:[{l0:0,h0:2,l1:0,h1:1},{l0:3,h0:1,l1:3,h1:2}],9:[{l0:1,h0:0,l1:1,h1:3},{l0:2,h0:3,l1:2,h1:0}]},l=function(t){"use strict";if(!(this instanceof l))return new l(t);var e=n(5325),i=n(6409),u=n(6546);t=t||{},r.call(this,t);var c,d,h,f,p,m=this,g=this.draw,y=this._exit,v=this._init,x=this.modified,_=this._update;return this.featureType="isoline",this.contour=m.mesh,this.isoline=m.mesh,this._createIsolines=function(){var t,e=m.style.get("value"),n=void 0!==m.style("used")?m.style.get("used"):function(t,n){return a.isNonNullFinite(e(t,n))},i=!1,r=[],o=m._createMesh({used:n,value:e});return(t=m._getValueList(o)).length?(t.forEach(function(t){var e=m._isolinesForValue(o,t);e.length&&(r=r.concat(e),i=i||!!t.label)}),{lines:r,mesh:o,values:t,hasLabels:i}):{}},this._getValueList=function(t){var e,n,i,r,o,s,l,u=m.isoline,c=u.get("values")(t),d=u.get("spacing")(t),h=u.get("count")(t),f=u.get("autofit")(t),p=u.get("levels")(t);if(!t.numVertices||!t.numElements)return[];if(e=a.getMinMaxValues(t.value,u.get("min")(t),u.get("max")(t),!0),t.minValue=e.min,t.maxValue=e.max,(n=t.maxValue-t.minValue)<=0)return[];if(Array.isArray(c))c=(c=c.map(function(t,e){return{value:void 0!==t.value?t.value:t,position:e,level:t.level}})).filter(function(e){return e.value>=t.minValue&&e.value<=t.maxValue});else if(d||f)for(d||(i=n/(2*h/3),o=Math.floor(Math.log10(i)),s=Math.max(0,-o),d=(i=(i/=r=Math.pow(10,o))>=5?5:i>=2?2:1)*r),c=[],l=Math.ceil(t.minValue/d);l<=Math.floor(t.maxValue/d);l+=1)c.push({value:l*d,position:l,fixedDigits:s});else for(c=Array(h),l=0;l<h;l+=1)c[l]={value:t.minValue+n*(l+1)/(h+1),position:l+1};return p.length&&c.forEach(function(t,e){if(void 0===t.level){t.level=0;for(var n=0,i=p[0];n<p.length&&!(t.position%i);i*=p[n+=1])t.level=n+1}if(u.get("label")(t,t.position)){var r=u.get("labelText")(t,t.position);void 0===r&&(r=void 0!==t.fixedDigits?""+parseFloat(t.value.toFixed(t.fixedDigits)):""+t.value),r&&(t.label=r)}}),c},this._addSegment=function(t,e,n){var i,r,o,a,s,l,u=[e,n],c=t.length;for(t.push(u),r=0;r<2;r+=1){for(i=c-1;i>=0;i-=1){if(a=(o=t[i])[0],s=o[o.length-1],n[0]===a[0]&&n[1]===a[1])l=u.concat(o.slice(1));else{if(e[0]!==s[0]||e[1]!==s[1])continue;l=o.concat(u.slice(1))}t.splice(c,1),t[i]=u=l,c=i,e=u[0],n=u[u.length-1];break}if(i<0)break}return t},this._chainVertex=function(t,e,n){var i=n[0],r=n[1],o=3*i,a=3*r,s=(e.value-t.value[i])/(t.value[r]-t.value[i]),l=1-s;return{x:t.pos[o]*l+t.pos[a]*s,y:t.pos[o+1]*l+t.pos[a+1]*s,z:t.pos[o+2]*l+t.pos[a+2]*s}},this._isolinesForValue=function(t,e){var n,i,r,o,a=e.value,l=Array(t.value.length),u=[];for(n=l.length-1;n>=0;n-=1)l[n]=t.value[n]<=a?0:1;var c=t.verticesPerElement,d="square"===t.shape,h=t.elements,f=h.length;for(i=0;i<f;i+=c){if(d){if(0===(r=8*l[h[i]]+4*l[h[i+1]]+2*l[h[i+2]]+l[h[i+3]])||15===r)continue}else if(16===(r=16+4*l[h[i]]+2*l[h[i+1]]+l[h[i+2]])||23===r)continue;s[r].forEach(function(t){u=m._addSegment(u,[h[i+t.l0],h[i+t.h0]],[h[i+t.l1],h[i+t.h1]])})}return o=u.map(function(n){var i=[];return n.forEach(function(n){var r=m._chainVertex(t,e,n);i.length&&r.x===i[i.length-1].x&&r.y===i[i.length-1].y||i.push(r)}),i.closed=i[0].x===i[i.length-1].x&&i[0].y===i[i.length-1].y,i.value=e.value,i.level=e.level,i.position=e.position,i.label=e.label,i}).filter(function(t){return t.length>1}),o},this.modified=function(){var t=x();return h&&h.modified(),p&&p.modified(),t},this.labelPositions=function(){if(m.dataTime().timestamp()>=m.buildTime().timestamp()&&m._build(),d=null,!p)return m;if(!(c&&c.hasLabels&&c.lines&&c.lines.length))return p.data([]),m;var t=m.isoline,n=t.get("labelSpacing"),i=t.get("labelOffset"),r=t.get("labelViewport")(c.mesh),o=m.gcs(),s=m.layer().map(),l=s.gcs(),u=s.rotation(),h=s.size(),f=[],g=0;return c.lines.forEach(function(t,c){if(t.label){var d,p,m,y,v,x,_,b,w,M,A,E=n(t.value,t.value.position),T=i(t.value,t.value.position)||0,S=s.gcsToDisplay(t,o),C=0;if(!(E<=0||isNaN(E))&&(g=Math.max(E,g),T=T+.5-Math.floor(T+.5),d=S.map(function(e,n){if(!t.closed&&n+1===S.length)return 0;var i=Math.sqrt(a.distance2dSquared(e,S[n+1<S.length?n+1:0]));return C+=i,i}),p=Math.floor(C/E)))for(A=e.transformCoordinates(o,l,t),y=(m=C/p)*T,v=0,x=0;x<S.length;x+=1){for(;v+d[x]>=y;)_=x+1===S.length?0:x+1,w=1-(b=(y-v)/d[x]),y+=m,r>0&&((M={x:S[x].x*w+S[_].x*b,y:S[x].y*w+S[_].y*b}).x<-r||M.x>h.width+r||M.y<-r||M.y>h.height+r)||f.push({x:A[x].x*w+A[_].x*b,y:A[x].y*w+A[_].y*b,z:A[x].z*w+A[_].z*b,line:t,rotation:Math.atan2(S[x].y-S[_].y,S[x].x-S[_].x)-u});v+=d[x]}}}),p.gcs(l),p.data(f),p.style("renderThreshold",2*g),d={zoom:s.zoom(),center:s.center(),rotation:u,size:h,labelViewport:r,maxSpacing:g,labelAutoUpdate:t.get("labelAutoUpdate")(c.mesh)},m},this.lastLabelPositions=function(){return Object.assign({},d)},this._updateLabelPositions=function(){var t=d;if(!t||!t.labelAutoUpdate)return m;var e=m.layer().map(),n=e.zoom(),i=e.size(),r=!!(Math.abs(n-t.zoom)>=2);if(!r&&t.labelViewport>0){var o=Math.sqrt(a.distance2dSquared(e.gcsToDisplay(e.center()),e.gcsToDisplay(t.center)))*Math.pow(2,t.zoom-n),s=t.labelViewport/2-2*t.maxSpacing-Math.max(i.width-t.size.width,i.height-t.size.height,0);r=r||o>=s}return r&&m.labelPositions().draw(),m},this._build=function(){if((c=m._createIsolines())&&c.lines&&c.lines.length){h||(h=m.layer().createFeature("line",{selectionAPI:!1,gcs:m.gcs(),visible:m.visible(void 0,!0),style:{closed:function(t){return t.closed}}}),m.dependentFeatures([h]));var t=m.style();if(h.data(c.lines).style({antialiasing:t.antialiasing,lineCap:t.lineCap,lineJoin:t.lineJoin,miterLimit:t.miterLimit,strokeWidth:t.strokeWidth,strokeStyle:t.strokeStyle,strokeColor:t.strokeColor,strokeOffset:t.strokeOffset,strokeOpacity:t.strokeOpacity}),c.hasLabels){if(!p){if(!(o.registries.features[m.layer().rendererName()]||{}).text){var e=o.rendererForFeatures(["text"]);f=o.createLayer("feature",m.layer().map(),{renderer:e}),m.layer().addChild(f),m.layer().node().append(f.node())}p=(f||m.layer()).createFeature("text",{selectionAPI:!1,gcs:m.gcs(),visible:m.visible(void 0,!0),style:{text:function(t){return t.line.label}}}).geoOn(i.pan,m._updateLabelPositions)}u.usedStyles.forEach(function(e){"visible"!==e&&p.style(e,t[e])}),m.dependentFeatures([h,p])}}else h&&h.data([]);return m.buildTime().modified(),m.labelPositions(),m},this._update=function(){return _.call(m),(m.dataTime().timestamp()>=m.buildTime().timestamp()||m.updateTime().timestamp()<=m.timestamp())&&m._build(),m.updateTime().modified(),m},this.draw=function(){var t=g();return h&&h.draw(),p&&p.draw(),t},this._exit=function(){p&&((f||m.layer())&&(f||m.layer()).deleteFeature(p),f&&m.layer()&&m.layer().removeChild(f)),h&&m.layer()&&m.layer().deleteFeature(h),p=null,f=null,h=null,m.dependentFeatures([]),y()},this._init=function(t){t=t||{},v.call(m,t);var e=Object.assign({},{opacity:1,value:function(t,e){return m.position()(t,e).z},rotateWithMap:!0,rotation:l.rotationFunction(),strokeWidth:function(t,e,n,i){return n.level+.5},strokeColor:{r:0,g:0,b:0},textStrokeColor:{r:1,g:1,b:1,a:.75},textStrokeWidth:2,fontSize:"12px"},void 0===t.style?{}:t.style);m.style(e),m.isoline(Object.assign({},{count:15,autofit:!0,levels:[5,5],label:function(t){return t.level>=1},labelSpacing:200,labelViewport:1e4,labelAutoUpdate:!0},t.mesh||{},t.contour||{},t.isoline||{})),(t.mesh||t.contour||t.isoline)&&m.dataTime().modified()},this};l.rotationFunction=function(t,e){var n={higher:function(t){return t.rotation},lower:function(t){return t.rotation+Math.PI},map:function(t){var e=t.rotation,n=a.wrapAngle(e,!0);return(n>Math.PI/2||n<-Math.PI/2)&&(e+=Math.PI),e},screen:function(t){var n=t.rotation,i=a.wrapAngle(n+e.rotation(),!0);return(i>Math.PI/2||i<-Math.PI/2)&&(n+=Math.PI),n}};return n[t]||n.higher},i(l,r),t.exports=l},2602:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7541),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5005),i=n(77);t=t||{},o.call(this,t),e.call(this);var r=this,s=this._init,l=this._update,u=i(),c={};return this._init=function(t){return s.call(r,t),r},this._build=function(){var t=r.data(),e=r.style.get(),n=r.renderer(),i=r.position();return l.call(r),t||(t=[]),c.id=r._svgid(),c.data=t,c.append="circle",c.attributes={r:n._convertScale(e.radius),cx:function(t){return r.featureGcsToDisplay(i(t)).x},cy:function(t){return r.featureGcsToDisplay(i(t)).y}},c.style=e,c.classes=["svgPointFeature"],c.visible=r.visible,r.renderer()._drawFeatures(c),u.modified(),r.updateTime().modified(),r},this._update=function(){return l.call(r),r.timestamp()>=u.timestamp()&&r._build(),r},this._init(t),this};i(a,o);var s={};s[o.capabilities.stroke]=!0,r("svg","point",a,s),t.exports=a},2612:function(t,e,n){var i=n(4626),r=n(1098).registerAnnotation,o=n(9281),a=n(642),s=n(6978).annotation,l=n(6978).state,u=n(6978).continuousVerticesActions,c=n(6978).continuousVerticesProcessAction,d=function(t){"use strict";if(!(this instanceof d))return new d(t);(t=a.deepMerge({},this.constructor.defaults,{style:{line:function(t){return Array(e.options("vertices").length).fill(t)},position:function(t,n){return e.options("vertices")[n]}},createStyle:{line:function(t){return Array(e.options("vertices").length).fill(t)},position:function(t,n){return e.options("vertices")[n]}}},t)).vertices=t.vertices||t.coordinates||[],delete t.coordinates,s.call(this,"line",t);var e=this,n=this.actions,i=this.processEditAction;this.features=function(){var t,n=e.options(),i=e.state();if(i===l.create)t=[{line:{line:n.vertices,style:e.styleForState(i)}}];else t=[{line:{line:n.vertices,style:e.styleForState(i)}}],i===l.edit&&e._addEditHandles(t,n.vertices,void 0,!e.style("closed"));return t},this._coordinates=function(t){return t&&e.options("vertices",t),e.options("vertices")},this.mouseMove=function(t){if(e.state()===l.create){var n=e.options("vertices");return n.length?(n[n.length-1]=t.mapgcs,!0):void 0}},this.mouseClick=function(t){var n=e.layer();if(e.state()===l.create&&n){var i,r=!!t.buttonsDown.right;if(t.buttonsDown.left||t.buttonsDown.right){var o=e.options("vertices");if(!t.buttonsDown.right||o.length)return t.handled=!0,t.buttonsDown.left&&(o.length?o.length>=2&&n.displayDistance(o[o.length-2],null,t.map,"display")<=n.options("adjacentPointProximity")?(i=!0,e._lastClick&&t.time-e._lastClick<n.options("dblClickTime")&&(r=!0)):o.length>=2&&n.displayDistance(o[0],null,t.map,"display")<=n.options("finalPointProximity")?r="close":o[o.length-1]=t.mapgcs:o.push(t.mapgcs),r||i||o.push(t.mapgcs),e._lastClick=t.time,e._lastClickVertexCount=o.length),r?o.length<3?"remove":(o.pop(),e.options("style").closed="close"===r,e.state(l.done),"done"):!i}}},this.actions=function(t){return u(e,n,t,"line",arguments)},this.processAction=function(t){return c(e,t,"line")},this._geojsonCoordinates=function(t){var n=e.coordinates(t);if(n&&!(n.length<2)&&e.state()!==l.create){for(var i=[],r=0;r<n.length;r+=1)i.push([n[r].x,n[r].y]);return i}},this._geojsonGeometryType=function(){return"LineString"},this._geojsonStyles=function(){return["closed","lineCap","lineJoin","strokeColor","strokeOffset","strokeOpacity","strokeWidth"]},this.processEditAction=function(t){return"vertex"===e._editHandle.handle.type?e._processEditActionVertex(t,!0):i.apply(e,arguments)},this.mouseClickEdit=function(t){var n,i=e.layer(),r=e._editHandle;if(e.state()===l.edit&&i&&t.buttonsDown.left&&r&&r.handle.selected&&"edge"===r.handle.type&&e.options("style").closed&&(t.handled=!0,e._lastClick&&t.time-e._lastClick<i.options("dblClickTime")&&(n=!0),e._lastClick=t.time,n)){var o=r.handle.index,a=e._coordinates(),s=a.slice(o+1).concat(a.slice(0,o+1));return e._coordinates(s),e.options("style").closed=!1,r.handle.index=void 0,!0}}};i(d,s),d.defaults=Object.assign({},s.defaults,{style:{strokeColor:{r:0,g:0,b:0},strokeOpacity:1,strokeWidth:3,closed:!1,lineCap:"butt",lineJoin:"miter"},highlightStyle:{strokeWidth:5},createStyle:{strokeColor:{r:0,g:0,b:1},strokeOpacity:1,strokeWidth:3,closed:!1,lineCap:"butt",lineJoin:"miter"}});var h={};h[o.capabilities.basic]=[l.create],r("line",d,h),t.exports=d},2649:function(t){t.exports=function(t,e,n,i,r){var o=1/Math.tan(e/2),a=1/(i-r);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(r+i)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*r*i*a,t[15]=0,t}},2664:function(t){t.exports=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=o,t[11]=e[14],t[12]=r,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},2678:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r}},2682:function(t){t.exports="/* pointFeature sprite fragment shader */\n\n/* pointFeature common fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float radiusVar;\nvarying float strokeWidthVar;\n\nvoid pointFeatureFragment(float rad) {\n vec4 strokeColor, fillColor;\n float endStep;\n // No stroke or fill implies nothing to draw\n if (rad > 1.0)\n discard;\n // If there is no stroke, the fill region should transition to nothing\n if (strokeColorVar.a == 0.0) {\n strokeColor = vec4(fillColorVar.rgb, 0.0);\n endStep = 1.0;\n } else {\n strokeColor = strokeColorVar;\n endStep = radiusVar / (radiusVar + strokeWidthVar);\n }\n // Likewise, if there is no fill, the stroke should transition to nothing\n if (fillColorVar.a == 0.0)\n fillColor = vec4(strokeColor.rgb, 0.0);\n else\n fillColor = fillColorVar;\n // Distance to antialias over. First number is in pixels\n float antialiasDist = 1.5 / (radiusVar + strokeWidthVar);\n if (rad < endStep) {\n float step = smoothstep(max(0.0, endStep - antialiasDist), endStep, rad);\n vec4 color = mix(fillColor, strokeColor, step);\n float step2 = smoothstep(max(0.0, 1.0 - antialiasDist), 1.0, rad);\n gl_FragColor = mix(color, vec4(color.rgb, 0.0), step2);\n } else {\n float step = smoothstep(max(0.0, 1.0 - antialiasDist), 1.0, rad);\n gl_FragColor = mix(strokeColor, vec4(strokeColor.rgb, 0.0), step);\n }\n}\n\n\n// the square/triangle shader defines unitVar\n\nvoid main () {\n // No stroke or fill implies nothing to draw\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0)\n discard;\n float rad = 2.0 * length(gl_PointCoord - vec2(0.5)); // distinct for sprite\n pointFeatureFragment(rad);\n}\n"},2709:function(t,e,n){var i=n(7541);t.exports=function(t,e){e=e||{},t._primitiveShapeAuto=!0,t._primitiveShape=i.primitiveShapes.auto,void 0!==i.primitiveShapes[e.primitiveShape]&&(t._primitiveShape=e.primitiveShape),t._primitiveShapeAuto=t._primitiveShape===i.primitiveShapes.auto,t._primitiveShapeAuto&&(t._primitiveShape=i.primitiveShapes.sprite,t._primitiveShapeAuto=!0),t._pointPolygon=function(e,n,r,o){var a;switch(t._primitiveShape){case i.primitiveShapes.triangle:a=[e,n-2*o,e-r*Math.sqrt(3),n+o,e+r*Math.sqrt(3),n+o];break;case i.primitiveShapes.square:a=[e-r,n+o,e-r,n-o,e+r,n+o,e-r,n-o,e+r,n-o,e+r,n+o];break;default:a=[e,n]}return a},t.verticesPerFeature=function(){return t._pointPolygon(0,0,1,1).length/2},t.primitiveShape=function(e,n){if(void 0===e)return n||!t._primitiveShapeAuto?t._primitiveShape:i.primitiveShapes.auto;if(void 0!==i.primitiveShapes[e]){var r=!1;e===i.primitiveShapes.auto?(r=!t._primitiveShapeAuto,t._primitiveShapeAuto=!0):(r=t._primitiveShapeAuto||t._primitiveShape!==e,t._primitiveShapeAuto=!1,t._primitiveShape=e),r&&(t.renderer().contextRenderer().removeActor(t.actors()[0]),t._init(!0),t.dataTime().modified())}return t}}},2710:function(t){t.exports=function(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t[3]=s+i*(n[3]-s),t}},2775:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}},2778:function(t,e,n){t.exports=function(t){"use strict";t=t||{};var e=n(1611),i=n(5325),r=n(642),o=n(428),a=n(4993);n(4084).call(this);var s,l,u=this,c=this._exit,d=null,h=null,f=null,p=null,m=null,g=null,y=null,v=null,x=void 0!==t.dynamicDraw&&t.dynamicDraw,_=this._init,b=this._update;function w(){var t=new e.shader(e.GL.VERTEX_SHADER);return t.setShaderSource(a),t}function M(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(o),t}return this.createGLMeshColored=function(t){var e,n,o,a,c,d,f,x,_,b=t.elements.length,w=[],M=h.geometryData();for(m.set([t.minColor.r,t.minColor.g,t.minColor.b,t.minColor.a]),g.set([t.maxColor.r,t.maxColor.g,t.maxColor.b,t.maxColor.a]),y.set(t.colorMap.length),v.set(t.stepped),e=-1;e<t.colorMap.length+1;e+=1)o=Math.max(0,Math.min(t.colorMap.length-1,e)),w.push(255*t.colorMap[o].r),w.push(255*t.colorMap[o].g),w.push(255*t.colorMap[o].b),w.push(255*t.colorMap[o].a);if(p.setColorTable(w),t.pos=i.transformCoordinates(u.gcs(),u.layer().map().gcs(),t.pos,3),(s=new Float32Array(u.style.get("origin")(t.pos)))[0]||s[1]||s[2])for(e=0;e<t.pos.length;e+=3)t.pos[e]-=s[0],t.pos[e+1]-=s[1],t.pos[e+2]-=s[2];for(l.setOrigin(s),d=r.getGeomBuffer(M,"pos",3*b),f=r.getGeomBuffer(M,"opacity",b),x=r.getGeomBuffer(M,"value",b),e=n=0;e<b;e+=1,n+=3)a=3*(o=t.elements[e]),d[n]=t.pos[a],d[n+1]=t.pos[a+1],d[n+2]=t.pos[a+2],c=t.elementValues?Math.floor(e/3):o,f[e]=t.opacity[c],x[e]=t.value[c];(_=M.primitive(0).indices())instanceof Uint16Array&&_.length===b||(_=new Uint16Array(b),M.primitive(0).setIndices(_)),M.boundsDirty(!0),h.modified(),h.boundsDirtyTimestamp().modified()},this._init=function(t){var n=e.blend(),i=e.shaderProgram(),r=e.material(),o=e.lookupTable(),a=e.geometryData(),s=new e.projectionUniform("projectionMatrix"),c=new e.uniform(e.GL.INT,"sampler2d"),b=w(),A=M(),E=e.vertexAttribute("pos"),T=e.vertexAttribute("value"),S=e.vertexAttribute("opacity"),C=e.sourceDataP3fv({name:"pos"}),k=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.One,{name:"value"}),P=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Two,{name:"opacity"}),O=new e.triangles;l=new e.modelViewOriginUniform("modelViewMatrix"),_.call(u,t),h=e.mapper({dynamicDraw:x}),i.addVertexAttribute(E,e.vertexAttributeKeys.Position),i.addVertexAttribute(T,e.vertexAttributeKeysIndexed.One),i.addVertexAttribute(S,e.vertexAttributeKeysIndexed.Two),i.addUniform(l),i.addUniform(s),m=new e.uniform(e.GL.FLOAT_VEC4,"minColor"),i.addUniform(m),g=new e.uniform(e.GL.FLOAT_VEC4,"maxColor"),i.addUniform(g),y=new e.uniform(e.GL.FLOAT,"steps"),i.addUniform(y),v=new e.uniform(e.GL.BOOL,"stepped"),i.addUniform(v),i.addShader(A),i.addShader(b),i.addUniform(c),o.setTextureUnit(7),c.set(7),(f=r).addAttribute(i),f.addAttribute(n),p=o,f.addAttribute(p),(d=e.actor()).setMaterial(f),d.setMapper(h),a.addSource(C),a.addSource(k),a.addSource(P),a.addPrimitive(O),a.computeBounds=function(){a.setBounds(0,0,0,0,0,0)},h.setGeometryData(a)},this.actors=function(){return d?[d]:[]},this._update=function(){b.call(u),(u.dataTime().timestamp()>=u.buildTime().timestamp()||u.updateTime().timestamp()<=u.timestamp())&&u._build(),d.setVisible(u.visible()),d.material().setBinNumber(u.bin()),u.updateTime().modified()},this._exit=function(){u.renderer().contextRenderer().removeActor(d),c()},this}},2869:function(t){t.exports=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t}},2889:function(t,e,n){"use strict";function i(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)}n.d(e,{A:function(){return i}})},2894:function(t,e,n){var i=n(5616),r=n(4626),o=n(7854),a=n(1098).registerWidget;n(615);var s=function(t){"use strict";if(!(this instanceof s))return new s(t);o.call(this,t);var e=n(6409),r=n(5325),a=n(642),l=n(2493).d3,u=this,c=this._exit,d=Object.assign({},{scale:1,maxWidth:200,maxHeight:"left"===t.orientation||"right"===t.orientation?200:20,orientation:"bottom",strokeWidth:2,tickLength:10,units:"si",distance:function(t,e,n){return"+proj=longlat +axis=enu"===n?Math.sqrt(a.distance2dSquared(t,e)):r.sphericalDistance(t,e,n)}},t);this._init=function(){return u._createCanvas(),u._appendCanvasToParent(),u.reposition(),l.select(u.canvas()).attr("width",d.maxWidth).attr("height",d.maxHeight),u.geoOn(e.pan,u._update),u._render(),u},this._exit=function(){u.geoOff(e.pan,u._update),c()},this._vertical=function(){return"left"===d.orientation||"right"===d.orientation},this._scaleValue=function(t,e,n){var i,r,o,a=[{multiple:1,digits:1},{multiple:1.5,digits:2},{multiple:2,digits:1},{multiple:3,digits:1},{multiple:5,digits:1},{multiple:8,digits:1}],l=(n=s.unitsTable[n]||n||s.unitsTable[d.units]||d.units)[0];return n.forEach(function(e){t>=e.scale*(e.minimum||1)&&(l=e)}),r=Math.floor(Math.log(t/l.scale)/Math.log(l.basis||10)),(a=l.multiples||a).forEach(function(e){var n=l.scale*e.multiple*Math.pow(10,r);n<=t&&(i=e,o=n)}),{html:(i.multiple*Math.pow(10,r)).toFixed(Math.max(0,-r+i.digits-1))+" "+l.unit,value:o,pixels:o/t*e,power:r,multiple:i,unitRecord:l,originalValue:t,originalPixels:e}},this._render=function(){var t,e,n,r,o,a,s=l.select(u.canvas()),c=u.layer().map(),h=d.maxWidth,f=d.maxHeight,p=d.strokeWidth,m=.5*p,g=d.tickLength,y=u._vertical();if(t=(y?d.maxHeight:d.maxWidth)-p,n={x:(e={x:(e=i(s.node()).offset()).left+("left"===d.orientation?h-m:m),y:e.top+("top"===d.orientation?f-m:m)}).x+(y?0:t),y:e.y+(y?t:0)},(r=d.distance(c.displayToGcs(e,null),c.displayToGcs(n,null),c.gcs())*d.scale)<=0||!isFinite(r))console.warn("The distance calculated for the scale is invalid: "+r);else{switch(o=u._scaleValue(r,t),y?f=o.pixels+p:h=o.pixels+p,s.attr("width",h).attr("height",f),s.select("polyline").empty()&&s.append("polyline").classed("geojs-scale-widget-bar",!0).attr("fill","none").attr("stroke-width",p),s.select("text").empty()&&s.append("text").classed("geojs-scale-widget-text",!0),d.orientation){case"bottom":a=[[m,g],[m,m],[h-m,m],[h-m,g]],s.select("text").attr("x",h/2).attr("y",2*p).attr("text-anchor","middle").attr("dominant-baseline","hanging");break;case"top":a=[[m,f-g],[m,f-m],[h-m,f-m],[h-m,f-g]],s.select("text").attr("x",h/2).attr("y",f-2*p).attr("text-anchor","middle").attr("dominant-baseline","alphabetic");break;case"left":a=[[h-g,m],[h-m,m],[h-m,f-m],[h-g,f-m]],s.select("text").attr("x",h-2*p).attr("y",f/2).attr("text-anchor","end").attr("dominant-baseline","middle");break;case"right":a=[[g,m],[m,m],[m,f-m],[g,f-m]],s.select("text").attr("x",2*p).attr("y",f/2).attr("text-anchor","start").attr("dominant-baseline","middle")}s.select("polyline").attr("points",a.map(function(t){return t.join(",")}).join(" ")),s.select("text").html(o.html)}},this._update=function(){u._render()},this.options=function(t,e){if(void 0===t){var n=Object.assign({},d);return n.position=u.position(void 0,!0),n}return"string"==typeof t&&void 0===e?"position"===t?u.position(void 0,!0):d[t]:(void 0===e?d=a.deepMerge(d,t):d[t]=e,(t.position||"position"===t)&&u.position(t.position||e),u._render(),u)}};r(s,o),s.unitsTable={si:[{unit:"nm",scale:1e-9},{unit:"μm",scale:1e-6},{unit:"mm",scale:.001},{unit:"m",scale:1},{unit:"km",scale:1e3}],miles:[{unit:"in",scale:.0254},{unit:"in",scale:.0254,basis:12,multiples:[{multiple:1,digits:1},{multiple:1.5,digits:2},{multiple:2,digits:1},{multiple:3,digits:1},{multiple:6,digits:1},{multiple:9,digits:1}]},{unit:"ft",scale:.3048},{unit:"mi",scale:1609.344}],decmiles:[{unit:"mi",scale:1609.344}]},s.areaUnitsTable={si:[{unit:"nm²",scale:1e-18},{unit:"μm²",scale:1e-12},{unit:"mm²",scale:1e-6},{unit:"m²",scale:1},{unit:"km²",scale:1e6}],hectares:[{unit:"ha",scale:1e4}],decmiles:[{unit:"mi²",scale:2589988.110336}],miles:[{unit:"in²",scale:64516e-8},{unit:"ft²",scale:.09290304},{unit:"mi²",scale:2589988.110336}],acres:[{unit:"pl",scale:25.29285264},{unit:"rd",scale:1011.7141056},{unit:"ac",scale:4046.8564224}]},s.formatUnit=function(t,e,n,i){if(null!=t){if(!Array.isArray(e)){if(!(n=n||s.unitsTable)||!n[e||"si"])return;e=n[e||"si"]}var r;for(r=0;r<e.length-1&&!(t<e[r+1].scale);r+=1);if(t/=(e=e[r]).scale,!((i=Math.max(0,-Math.ceil(Math.log10(t))+(void 0===i||i<0?3:i)))>10)){var o=t.toFixed(i);if(i){for(;"0"===o.substr(o.length-1);)o=o.substr(0,o.length-1);"."===o.substr(o.length-1)&&(o=o.substr(0,o.length-1))}return o+" "+e.unit}}},a("dom","scale",s),t.exports=s},2924:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u},dependsOn:function(){return a},init:function(){return s},names:function(){return l}});var i=n(6269);var r=n(3426),o=n(7e3),a="etmerc";function s(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*((0,i.A)(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*o.zq,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,r.default.init.apply(this),this.forward=r.default.forward,this.inverse=r.default.inverse}var l=["Universal Transverse Mercator System","utm"],u={init:s,names:l,dependsOn:a}},2926:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},2954:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5895);t=t||{},o.call(this,t),e.call(this);var i=this;return this._renderOnCanvas=function(t,e){var n,r,o,a,s,l=i.data(),u=i.position(),c=i.line(),d=i.style.get("strokeWidth"),h=i.style.get("strokeColor"),f=i.style.get("strokeOpacity"),p=i.style.get("lineCap"),m=i.style.get("lineJoin"),g=i.style.get("miterLimit")(l),y=i.style.get("closed"),v={},x={};l.forEach(function(e,l){if(!((r=c(e,l)).length<2)){for(x.closed=y(e,l),x.width=d(r[0],0,e,l),x.color=h(r[0],0,e,l),x.opacity=f(r[0],0,e,l),x.linecap=p(r[0],0,e,l),x.linejoin=m(r[0],0,e,l),x.strokeStyle="rgba("+255*x.color.g+", "+255*x.color.g+", "+255*x.color.b+", "+(void 0!==x.opacity?x.opacity:1)+")",v.strokeStyle===x.strokeStyle&&v.width===x.width&&v.linecap===x.linecap&&v.linejoin===x.linejoin&&v.miterlimit===x.miterlimit||(void 0!==v.strokeStyle&&t.stroke(),t.beginPath(),t.strokeStyle=x.strokeStyle,t.lineWidth=x.width,t.lineCap=x.linecap,t.lineJoin=x.linejoin,t.miterLimit=g),s=0;s<r.length;s+=1)o=i.featureGcsToDisplay(u(r[s],s,e,l)),s?t.lineTo(o.x,o.y):(a=o,t.moveTo(o.x,o.y));x.closed&&t.lineTo(a.x,a.y),n=v,v=x,x=n}}),void 0!==v.strokeStyle&&t.stroke()},this._init(t),this};i(a,o);var s={};s[o.capabilities.basic]=!0,s[o.capabilities.multicolor]=!1,r("canvas","line",a,s),t.exports=a},2971:function(t,e,n){var i=n(698),r=n(4626);i.node=function(){"use strict";if(!(this instanceof i.node))return new i.node;i.boundingObject.call(this);var t=null,e=null,n=!0;return this.material=function(){return e},this.setMaterial=function(t){return t!==e&&(e=t,this.modified(),!0)},this.visible=function(){return n},this.setVisible=function(t){return t!==n&&(n=t,this.modified(),!0)},this.parent=function(){return t},this.setParent=function(e){return e!==t&&(null!==t&&t.removeChild(this),t=e,this.modified(),!0)},this.boundsModified=function(){this.boundsDirtyTimestamp().modified(),null!==t&&t.boundsModified()},this},r(i.node,i.boundingObject)},3019:function(t,e,n){var i=n(7854),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e,r,o,s,l,u,c,d=n(2493).d3,h=n(6409),f=this,p=this._exit,m=t.width||20,g=t.height||160,y=t.width?.5*t.width:10;function v(t,e,n,i,r){var o=e.append("g"),a=r/1024;return o.append("g").append("g").attr("transform","translate("+n+","+i+") scale("+a+") translate(-512,-512)").append("path").attr("d",t).attr("class","geo-glyphicon"),o}c={white:"#f4f4f4",black:"#505050"},this.size=function(){return{width:m,height:g}},this._init=function(){f._createCanvas(),f._appendCanvasToParent(),f.reposition();var t=d.select(f.canvas()),n=f.layer().map();function i(e,i){var o=r.invert(d.pointer(event,t.node())[1]),a=n.zoomRange();o=(1-o)*(a.max-a.min)+a.min,i?n.transition({zoom:o,ease:d.easeCubicInOut,duration:500,done:f._update()}):(n.zoom(o),f._update()),e.stopPropagation()}function a(){d.select(this).attr("filter",null),u.selectAll("circle,rect,path").transition().duration(100).style("fill",function(t){return c[t.fill]||null}).style("stroke",function(t){return c[t.stroke]||null})}return t.attr("width",m).attr("height",g),e=d.scaleLinear().domain([-4,4]).range([0,m]),r=d.scaleLinear().domain([0,1]).range([1.5*m,g-1.5*m]),t=t.append("g").classed("geo-ui-slider",!0),u=t,(o=t.append("g")).append("circle").datum({fill:"white",stroke:null}).classed("geo-zoom-in",!0).attr("cx",e(0)).attr("cy",r(0)-m+2).attr("r",(m-2)/2).style("cursor","pointer").on("click",function(){var t=n.zoom();n.transition({zoom:t+1,ease:d.easeCubicInOut,duration:500})}).on("mousedown",function(t){t.stopPropagation()}),v("M512 81.92c-237.568 0-430.080 192.614-430.080 430.080 0 237.568 192.563 430.080 430.080 430.080s430.080-192.563 430.080-430.080c0-237.517-192.563-430.080-430.080-430.080zM564.326 564.326v206.182h-104.653v-206.182h-206.234v-104.653h206.182v-206.234h104.704v206.182h206.182v104.704h-206.182z",o,e(0),r(0)-m+2,m+4).style("cursor","pointer").style("pointer-events","none").select("path").datum({fill:"black",stroke:null}),(s=t.append("g")).append("circle").datum({fill:"white",stroke:null}).classed("geo-zoom-out",!0).attr("cx",e(0)).attr("cy",r(1)+m-2).attr("r",(m-2)/2).style("cursor","pointer").on("click",function(){var t=n.zoom();n.transition({zoom:t-1,ease:d.easeCubicInOut,duration:500})}).on("mousedown",function(t){t.stopPropagation()}),v("M512 81.92c-237.568 0-430.080 192.614-430.080 430.080 0 237.568 192.563 430.080 430.080 430.080s430.080-192.563 430.080-430.080c0-237.517-192.563-430.080-430.080-430.080zM770.56 459.674v104.704h-517.12v-104.704h517.12z",s,e(0),r(1)+m-2,m+4).style("cursor","pointer").style("pointer-events","none").select("path").datum({fill:"black",stroke:null}),t.append("rect").datum({fill:"white",stroke:"black"}).classed("geo-zoom-track",!0).attr("x",e(0)-m/6).attr("y",r(0)).attr("rx",m/10).attr("ry",m/10).attr("width",m/3).attr("height",g-3*m).style("cursor","pointer").on("click",function(t){i(t,!0)}),l=t.append("rect").datum({fill:"black",stroke:null}).classed("geo-zoom-nub",!0).attr("x",e(-4)).attr("y",r(.5)-y/2).attr("rx",3).attr("ry",3).attr("width",m).attr("height",y).style("cursor","pointer").on("mousedown",function(t){d.select(document).on("mousemove.geo.slider",function(){i(t)}),d.select(document).on("mouseup.geo.slider",function(){i(t),d.select(document).on(".geo.slider",null)}),t.stopPropagation()}),u.selectAll("*").on("mouseover",function(){d.select(this).attr("filter","url(#geo-highlight)"),u.selectAll("rect,path,circle").transition().duration(100).style("fill",function(t){return t.fill||null}).style("stroke",function(t){return t.stroke||null})}).on("mouseout",a),f.geoOn(h.zoom,f._update),a(),f._update(),f},this._exit=function(){f.geoOff(h.zoom,f._update),u.remove(),p()},this._update=function(t){var e=f.layer().map(),n=e.zoomRange(),i=e.zoom(),o=d.scaleLinear();i=(t=t||{}).value||i,o.domain([n.min,n.max]).range([1,0]).clamp(!0),l.attr("y",r(o(i))-y/2)}};r(a,i),o("dom","slider",a),t.exports=a},3021:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},3071:function(t){t.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},3074:function(t,e,n){var i=n(4092);t.exports=function(t,e,n){function r(t,e){return{id:n?n.segmentId():-1,start:t,end:e,myFill:{above:null,below:null},otherFill:null}}function o(t,e,i){return{id:n?n.segmentId():-1,start:t,end:e,myFill:{above:i.myFill.above,below:i.myFill.below},otherFill:null}}var a=i.create();function s(t,n){a.insertBefore(t,function(i){return function(t,n,i,r,o,a){var s=e.pointsCompare(n,o);return 0!==s?s:e.pointsSame(i,a)?0:t!==r?t?1:-1:e.pointAboveOrOnLine(i,r?o:a,r?a:o)?1:-1}(t.isStart,t.pt,n,i.isStart,i.pt,i.other.pt)<0})}function l(t,e){var n=function(t,e){var n=i.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return s(n,t.end),n}(t,e);return function(t,e,n){var r=i.node({isStart:!1,pt:e.end,seg:e,primary:n,other:t,status:null});t.other=r,s(r,t.pt)}(n,t,e),n}function u(t,e){var i=o(e,t.seg.end,t.seg);return function(t,e){n&&n.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,s(t.other,t.pt)}(t,e),l(i,t.primary)}function c(r,o){var s=i.create();function l(t){return s.findTransition(function(n){var i,r,o,a,s,l;return(i=t,r=n.ev,o=i.seg.start,a=i.seg.end,s=r.seg.start,l=r.seg.end,e.pointsCollinear(o,s,l)?e.pointsCollinear(a,s,l)||e.pointAboveOrOnLine(a,s,l)?1:-1:e.pointAboveOrOnLine(o,s,l)?1:-1)>0})}function c(t,i){var r=t.seg,o=i.seg,a=r.start,s=r.end,l=o.start,c=o.end;n&&n.checkIntersection(r,o);var d=e.linesIntersect(a,s,l,c);if(!1===d){if(!e.pointsCollinear(a,s,l))return!1;if(e.pointsSame(a,c)||e.pointsSame(s,l))return!1;var h=e.pointsSame(a,l),f=e.pointsSame(s,c);if(h&&f)return i;var p=!h&&e.pointBetween(a,l,c),m=!f&&e.pointBetween(s,l,c);if(h)return m?u(i,s):u(t,c),i;p&&(f||(m?u(i,s):u(t,c)),u(i,a))}else 0===d.alongA&&(-1===d.alongB?u(t,l):0===d.alongB?u(t,d.pt):1===d.alongB&&u(t,c)),0===d.alongB&&(-1===d.alongA?u(i,a):0===d.alongA?u(i,d.pt):1===d.alongA&&u(i,s));return!1}for(var d=[];!a.isEmpty();){var h=a.getHead();if(n&&n.vert(h.pt[0]),h.isStart){n&&n.segmentNew(h.seg,h.primary);var f=l(h),p=f.before?f.before.ev:null,m=f.after?f.after.ev:null;function g(){if(p){var t=c(h,p);if(t)return t}return!!m&&c(h,m)}n&&n.tempStatus(h.seg,!!p&&p.seg,!!m&&m.seg);var y,v=g();if(v){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&&(v.seg.myFill.above=!v.seg.myFill.above);else v.seg.otherFill=h.seg.myFill;n&&n.segmentUpdate(v.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){n&&n.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=m?m.seg.myFill.above:r,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)y=m?h.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:h.primary?o:r,h.seg.otherFill={above:y,below:y};n&&n.status(h.seg,!!p&&p.seg,!!m&&m.seg),h.other.status=f.insert(i.node({ev:h}))}else{var _=h.status;if(null===_)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(_.prev)&&s.exists(_.next)&&c(_.prev.ev,_.next.ev),n&&n.statusRemove(_.ev.seg),_.remove(),!h.primary){var b=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=b}d.push(h.seg)}a.getHead().remove()}return n&&n.done(),d}return t?{addRegion:function(t){for(var n,i=t[t.length-1],o=0;o<t.length;o++){n=i,i=t[o];var a=e.pointsCompare(n,i);0!==a&&l(r(a<0?n:i,a<0?i:n),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,n,i){return t.forEach(function(t){l(o(t.start,t.end,t),!0)}),n.forEach(function(t){l(o(t.start,t.end,t),!1)}),c(e,i)}}}},3084:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return d},init:function(){return c},inverse:function(){return h},names:function(){return f},ssfn_:function(){return u}});var i=n(7e3),r=n(9393),o=n(7072),a=n(851),s=n(6157),l=n(6269);function u(t,e,n){return e*=n,Math.tan(.5*(i.sK+t))*Math.pow((1-e)/(1+e),.5*n)}function c(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,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)<=i.H0&&(this.k0=.5*(1+(0,r.A)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=i.H0&&(this.lat0>0?this.con=1:this.con=-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)<=i.H0&&Math.abs(Math.cos(this.lat_ts))>i.H0&&(this.k0=.5*this.cons*(0,o.A)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/(0,a.A)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=(0,o.A)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(u(this.lat0,this.sinlat0,this.e))-i.sK,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function d(t){var e,n,r,o,s,c,d=t.x,h=t.y,f=Math.sin(h),p=Math.cos(h),m=(0,l.A)(d-this.long0);return Math.abs(Math.abs(d-this.long0)-Math.PI)<=i.H0&&Math.abs(h+this.lat0)<=i.H0?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*f+this.coslat0*p*Math.cos(m)),t.x=this.a*e*p*Math.sin(m)+this.x0,t.y=this.a*e*(this.coslat0*f-this.sinlat0*p*Math.cos(m))+this.y0,t):(n=2*Math.atan(u(h,f,this.e))-i.sK,o=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=i.H0?(s=(0,a.A)(this.e,h*this.con,this.con*f),c=2*this.a*this.k0*s/this.cons,t.x=this.x0+c*Math.sin(d-this.long0),t.y=this.y0-this.con*c*Math.cos(d-this.long0),t):(Math.abs(this.sinlat0)<i.H0?(e=2*this.a*this.k0/(1+o*Math.cos(m)),t.y=e*r):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*o*Math.cos(m))),t.y=e*(this.cosX0*r-this.sinX0*o*Math.cos(m))+this.y0),t.x=e*o*Math.sin(m)+this.x0,t))}function h(t){var e,n,r,o,a;t.x-=this.x0,t.y-=this.y0;var u=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var c=2*Math.atan(u/(2*this.a*this.k0));return e=this.long0,n=this.lat0,u<=i.H0?(t.x=e,t.y=n,t):(n=Math.asin(Math.cos(c)*this.sinlat0+t.y*Math.sin(c)*this.coslat0/u),e=Math.abs(this.coslat0)<i.H0?this.lat0>0?(0,l.A)(this.long0+Math.atan2(t.x,-1*t.y)):(0,l.A)(this.long0+Math.atan2(t.x,t.y)):(0,l.A)(this.long0+Math.atan2(t.x*Math.sin(c),u*this.coslat0*Math.cos(c)-t.y*this.sinlat0*Math.sin(c))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=i.H0){if(u<=i.H0)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,r=u*this.cons/(2*this.a*this.k0),n=this.con*(0,s.A)(this.e,r),e=this.con*(0,l.A)(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else o=2*Math.atan(u*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,u<=i.H0?a=this.X0:(a=Math.asin(Math.cos(o)*this.sinX0+t.y*Math.sin(o)*this.cosX0/u),e=(0,l.A)(this.long0+Math.atan2(t.x*Math.sin(o),u*this.cosX0*Math.cos(o)-t.y*this.sinX0*Math.sin(o)))),n=-1*(0,s.A)(this.e,Math.tan(.5*(i.sK+a)));return t.x=e,t.y=n,t}var f=["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"];e.default={init:c,forward:d,inverse:h,names:f,ssfn_:u}},3095:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},3108:function(t,e,n){t.exports=n(2340)},3158:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KPHBhdGggZD0iTTAsMTFsMTEsMGwwLC0xMWwyLDBsMCwxMWwxMSwwbDAsMmwtMTEsMGwwLDExbC0yLDBsMCwtMTFsLTExLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+CjxwYXRoIGQ9Ik0yNCwzMmwwLC00YTQsNCwwLDAsMSw4LDBsMCw0bC0yLDBsMCwtNGEyLDIsMCwwLDAsLTQsMGwwLDR6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+Cjwvc3ZnPgo="},3170:function(t){t.exports={}},3187:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=n(642),i=n(1098),a=this,s=this.draw,l=this.style,u=null,c=null,d=function(t){return t.children},h=[],f=this._init,p=this._exit;return this.featureType="graph",this._init=function(t){f.call(a,t);var n=e.deepMerge({},{nodes:{radius:5,fill:!0,fillColor:{r:1,g:0,b:0},strokeColor:{r:0,g:0,b:0}},links:{strokeColor:{r:0,g:0,b:0}},linkType:"path"},void 0===t.style?{}:t.style);return a.style(n),a.nodes(e.identityFunction),a},this._build=function(){a.children().forEach(function(t){t._build()})},this._update=function(){a.children().forEach(function(t){t._update()})},this._exit=function(){return a.data([]),h.forEach(function(t){t._exit(),a.removeChild(t)}),h=[],c._exit(),a.removeChild(c),p(),a},this.style=function(t,e){var n=l.call(a,t,e);return n!==a?n:(c.style(t.nodes),h.forEach(function(e){e.style(t.links)}),a)},this.style.get=l.get,this.links=function(t){return void 0===t?d:(d=e.ensureFunction(t),a)},this.nodes=function(t){return void 0===t?u:(u=t,a.modified(),a)},this.nodeFeature=function(){return c},this.linkFeatures=function(){return h},this.draw=function(){var t,e=a.layer(),n=a.data(),r=0;return t=a.style(),c.data(n),c.style(t.nodes),n.forEach(function(n){(n.children||[]).forEach(function(o){var s;r+=1,h.length<r&&(s=i.createFeature(t.linkType,e,e.renderer()).style(t.links),a.addChild(s),h.push(s)),h[r-1].data([n,o])})}),h.splice(r,h.length-r).forEach(function(t){t._exit(),a.removeChild(t)}),s(),a},c=i.createFeature("point",this.layer(),this.layer().renderer()),a.addChild(c),t.nodes&&this.nodes(t.nodes),this._init(t),this};i(o,r),t.exports=o},3197:function(t){t.exports=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}},3245:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return p},init:function(){return f},inverse:function(){return m},names:function(){return g}});var i=n(1417),r=n(1341),o=n(7954),a=n(3611),s=n(4280),l=n(2889),u=n(6269),c=n(6165),d=n(364),h=n(7e3);function f(){this.sphere||(this.e0=(0,r.A)(this.es),this.e1=(0,o.A)(this.es),this.e2=(0,a.A)(this.es),this.e3=(0,s.A)(this.es),this.ml0=this.a*(0,i.A)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function p(t){var e,n,r=t.x,o=t.y;if(r=(0,u.A)(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(o)*Math.sin(r)),n=this.a*(Math.atan2(Math.tan(o),Math.cos(r))-this.lat0);else{var a=Math.sin(o),s=Math.cos(o),c=(0,l.A)(this.a,this.e,a),d=Math.tan(o)*Math.tan(o),h=r*Math.cos(o),f=h*h,p=this.es*s*s/(1-this.es);e=c*h*(1-f*d*(1/6-(8-d+8*p)*f/120)),n=this.a*(0,i.A)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+c*a/s*f*(.5+(5-d+6*p)*f/24)}return t.x=e+this.x0,t.y=n+this.y0,t}function m(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=(0,d.A)(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-h.sK)<=h.H0)return t.x=this.long0,t.y=h.sK,r<0&&(t.y*=-1),t;var f=(0,l.A)(this.a,this.e,Math.sin(s)),p=f*f*f/this.a/this.a*(1-this.es),m=Math.pow(Math.tan(s),2),g=i*this.a/f,y=g*g;e=s-f*Math.tan(s)/p*g*g*(.5-(1+3*m)*g*g/24),n=g*(1-y*(m/3+(1+3*m)*m*y/15))/Math.cos(s)}return t.x=(0,u.A)(n+this.long0),t.y=(0,c.A)(e),t}var g=["Cassini","Cassini_Soldner","cass"];e.default={init:f,forward:p,inverse:m,names:g}},3260:function(t){t.exports="/* quadFeature Color vertex shader */\n\nattribute vec3 vertexPosition;\nuniform float zOffset;\nuniform vec3 vertexColor;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying mediump vec3 iVertexColor;\n\nvoid main(void) {\n gl_Position = projectionMatrix * modelViewMatrix * vec4(vertexPosition, 1.0);\n gl_Position.z += zOffset;\n iVertexColor = vertexColor;\n}\n"},3277:function(t){t.exports=function(t,e,n,i,r,o,a){var s=1/(n-e),l=1/(r-i),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t}},3310:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=i+i,l=r+r,u=o+o,c=i*s,d=i*l,h=i*u,f=r*l,p=r*u,m=o*u,g=a*s,y=a*l,v=a*u;return t[0]=1-(f+m),t[1]=d+v,t[2]=h-y,t[3]=0,t[4]=d-v,t[5]=1-(c+m),t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-(c+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}},3346:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},3356:function(t,e,n){"use strict";n.d(e,{Fs:function(){return l},OI:function(){return r},Rw:function(){return a},jX:function(){return o},mj:function(){return s}});var i=n(7e3);function r(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(t.datum_type===i.a8?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==i.Y$||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function o(t,e,n){var r,o,a,s,l=t.x,u=t.y,c=t.z?t.z:0;if(u<-i.sK&&u>-1.001*i.sK)u=-i.sK;else if(u>i.sK&&u<1.001*i.sK)u=i.sK;else{if(u<-i.sK)return{x:-1/0,y:-1/0,z:t.z};if(u>i.sK)return{x:1/0,y:1/0,z:t.z}}return l>Math.PI&&(l-=2*Math.PI),o=Math.sin(u),s=Math.cos(u),a=o*o,{x:((r=n/Math.sqrt(1-e*a))+c)*s*Math.cos(l),y:(r+c)*s*Math.sin(l),z:(r*(1-e)+c)*o}}function a(t,e,n,r){var o,a,s,l,u,c,d,h,f,p,m,g,y,v,x,_=1e-12,b=t.x,w=t.y,M=t.z?t.z:0;if(o=Math.sqrt(b*b+w*w),a=Math.sqrt(b*b+w*w+M*M),o/n<_){if(v=0,a/n<_)return i.sK,x=-r,{x:t.x,y:t.y,z:t.z}}else v=Math.atan2(w,b);s=M/a,h=(l=o/a)*(1-e)*(u=1/Math.sqrt(1-e*(2-e)*l*l)),f=s*u,y=0;do{y++,c=e*(d=n/Math.sqrt(1-e*f*f))/(d+(x=o*h+M*f-d*(1-e*f*f))),g=(m=s*(u=1/Math.sqrt(1-c*(2-c)*l*l)))*h-(p=l*(1-c)*u)*f,h=p,f=m}while(g*g>1e-24&&y<30);return{x:v,y:Math.atan(m/Math.abs(p)),z:x}}function s(t,e,n){if(e===i.a8)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(e===i.Y$){var r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6];return{x:c*(t.x-u*t.y+l*t.z)+r,y:c*(u*t.x+t.y-s*t.z)+o,z:c*(-l*t.x+s*t.y+t.z)+a}}}function l(t,e,n){if(e===i.a8)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(e===i.Y$){var r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6],d=(t.x-r)/c,h=(t.y-o)/c,f=(t.z-a)/c;return{x:d+u*h-l*f,y:-u*d+h+s*f,z:l*d-s*h+f}}}},3369:function(t){t.exports=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],c=e[8];return t[0]=a*c-s*u,t[1]=r*u-i*c,t[2]=i*s-r*a,t[3]=s*l-o*c,t[4]=n*c-r*l,t[5]=r*o-n*s,t[6]=o*u-a*l,t[7]=i*l-n*u,t[8]=n*a-i*o,t}},3403:function(t,e,n){var i=n(5616),r=n(4626),o=n(1098).registerFeature,a=n(2225),s=n(7945),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},a.call(this,t);var e=n(1611),r=n(5325),o=n(642),u=n(4084),c=n(2709),d=n(6409),h=n(9923),f=n(3724),p=n(1202),m=n(7665);u.call(this);var g,y,v=this,x=this._exit,_=null,b=null,w={},M=this._init,A=this._update,E=this.updateStyleFromArray;function T(t){return t.length?((void 0===t[0]?0:Math.floor(250*Math.abs(t[0]))+1)+252*(void 0===t[1]?0:Math.floor(250*Math.abs(t[1]))+1)+252*(void 0===t[2]?0:Math.floor(250*Math.abs(t[2]))+1)*252)*(t[3]?-1:1):void 0===t?0:Math.floor(250*Math.abs(t))+1}function S(t){var e,n,i,l,u,c,d,h,f,p,m,x,w=v.data().length,M=v._pointPolygon(0,0,1,1),A=new Array(3*w),E={},C={},k={},P={},O={radius:1,fillColor:3,fillOpacity:1,strokeColor:3,strokeOpacity:1,strokeOffset:0,strokeWidth:1,symbol:1,symbolValue:1,rotation:1,scaleWithZoom:0,rotateWithMap:0,radiusIncludesStroke:0},L=v.verticesPerFeature(),R=v.data(),I=b.geometryData();for(var F in u=v.position(),O)k[F]=v.style.get(F),o.isFunction(v.style(F))||(P[F]=k[F]()),O[F]&&(E[F]=o.getGeomBuffer(I,F,L*w*O[F]));if(!t){for(e=x=0;e<w;e+=1,x+=3)l=u(R[e],e),A[x]=l.x,A[x+1]=l.y,A[x+2]=0;if(A=r.transformCoordinates(v.gcs(),v.layer().map().gcs(),A,3),(y=new Float32Array(v.style.get("origin")(A)))[0]||y[1]||y[2])for(e=x=0;e<w;e+=1,x+=3)A[x]-=y[0],A[x+1]-=y[1],A[x+2]-=y[2];g.setOrigin(y),i=o.getGeomBuffer(I,"pos",L*w*3),v._primitiveShape!==a.primitiveShapes.sprite&&(d=o.getGeomBuffer(I,"unit",L*w*2)),(c=I.primitive(0).indices())instanceof Uint16Array&&c.length===L*w||(c=new Uint16Array(L*w),I.primitive(0).setIndices(c))}for(e=f=p=m=x=0;e<w;e+=1,x+=3){if(h=R[e],!t&&v._primitiveShape!==a.primitiveShapes.sprite)for(n=0;n<M.length;n+=1,m+=1)d[m]=M[n];for(var D in O)C[D]=void 0===P[D]?k[D](h,e):P[D];for(C.scaleWithZoom=a.scaleMode[C.scaleWithZoom]||(C.scaleWithZoom>=1&&C.scaleWithZoom<=3?C.scaleWithZoom:0),C.symbolComputed=C.scaleWithZoom+(C.rotateWithMap?4:0)+16*(Math.sign(void 0!==C.radiusIncludesStroke&&C.radiusIncludesStroke?C.strokeOffset:1)+1)+64*C.symbol,C.symbolValue&&C.symbol>=a.symbols.arrow&&C.symbol<a.symbols.arrow+a.symbols.arrowMax&&(C.symbolValue=T(C.symbolValue)),n=0;n<L;n+=1,f+=1,p+=3)t||(i[p]=A[x],i[p+1]=A[x+1],i[p+2]=A[x+2]),E.radius[f]=C.radius,E.fillColor[p]=C.fillColor.r,E.fillColor[p+1]=C.fillColor.g,E.fillColor[p+2]=C.fillColor.b,E.fillOpacity[f]=C.fillOpacity,E.strokeColor[p]=C.strokeColor.r,E.strokeColor[p+1]=C.strokeColor.g,E.strokeColor[p+2]=C.strokeColor.b,E.strokeOpacity[f]=C.strokeOpacity,E.strokeWidth[f]=C.strokeWidth,E.symbol[f]=C.symbolComputed,E.symbolValue[f]=C.symbolValue,E.rotation[f]=C.rotation}if(v._primitiveShapeAuto){var G=v._approximateMaxRadius(v.renderer().map().zoom());if(v._primitiveShape===a.primitiveShapes.sprite&&G>s._maxPointSize||v._primitiveShape!==a.primitiveShapes.sprite&&G<=s._maxPointSize)return v._primitiveShape=G>s._maxPointSize?a.primitiveShapes.triangle:a.primitiveShapes.sprite,v.renderer().contextRenderer().removeActor(_),_=null,v._init(!0),void S()}t?Object.keys(E).forEach(function(t){return b.updateSourceBuffer(t)}):(I.boundsDirty(!0),b.modified(),b.boundsDirtyTimestamp().modified())}return c(v,t),this.actors=function(){return _?[_]:[]},this.updateStyleFromArray=function(t,e,n){var r,o,a={radius:1,fillColor:3,fillOpacity:1,strokeColor:3,strokeOpacity:1,strokeWidth:1,symbolComputed:1,symbolValueComputed:1,rotation:1};if("string"==typeof t){var s={};s[t]=e,t=s}return i.each(t,function(t,e){var n,i,s,l,u,c,d,h,f,p="symbolComputed"===t?"symbol":"symbolValueComputed"===t?"symbolValue":t;if(v.visible()&&_&&a[t]&&!r&&!v.clustering())if(f=a[t],l=v.data().length,s=(i=_.mapper()).getSourceBuffer(p),n=v.verticesPerFeature(),s&&l&&l*n*f===s.length){switch(a[t]){case 1:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=1)s[h]=u;break;case 3:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=3)s[h]=u.r,s[h+1]=u.g,s[h+2]=u.b}i.updateSourceBuffer(p),o=!0}else r=!0;else r=!0;var m=v.modified;r||t!==p||(v.modified=function(){}),E(t,e,!1),v.modified=m}),n&&(v.visible()&&r?v.draw():o&&v.renderer()._render()),v},this._handleZoom=function(t){v._primitiveShapeAuto&&v._primitiveShape===a.primitiveShapes.sprite&&2*v._approximateMaxRadius(t)>s._maxPointSize&&(v._primitiveShape=a.primitiveShapes.triangle,v.renderer().contextRenderer().removeActor(v.actors()[0]),v._init(!0),v.dataTime().modified(),v.draw())},this._init=function(n){var i,r,o=e.shaderProgram(),s=((r=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(v._primitiveShape===a.primitiveShapes.sprite?m:p),r),l=function(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(v._primitiveShape===a.primitiveShapes.sprite?f:h),t}(),u=e.material(),c=e.blend(),x=e.geometryData(),A=e.sourceDataP3fv({name:"pos"}),E={fillColor:3,fillOpacity:1,radius:1,rotation:1,strokeColor:3,strokeOpacity:1,strokeWidth:1,symbol:1,symbolValue:1},T={pixelWidth:e.GL.FLOAT,aspect:e.GL.FLOAT,zoom:e.GL.FLOAT,rotationUniform:e.GL.FLOAT},S=new e.projectionUniform("projectionMatrix");g=new e.modelViewOriginUniform("modelViewMatrix",y),v._primitiveShape===a.primitiveShapes.sprite?i=new e.points:(i=new e.triangles,E.unit=2),i.setIndices(new Uint16Array),n||M.call(v,t),b=e.mapper(),o.addVertexAttribute(e.vertexAttribute("pos"),e.vertexAttributeKeys.Position),x.addSource(A),Object.keys(E).forEach(function(t,n){o.addVertexAttribute(e.vertexAttribute(t),n+1),x.addSource(e.sourceDataAnyfv(E[t],n+1,{name:t}))}),w={},Object.keys(T).forEach(function(t){w[t]=new e.uniform(T[t],t),o.addUniform(w[t])}),o.addUniform(g),o.addUniform(S),o.addShader(l),o.addShader(s),u.addAttribute(o),u.addAttribute(c),(_=e.actor()).setMaterial(u),_.setMapper(b),x.addPrimitive(i),x.computeBounds=function(){x.setBounds(0,0,0,0,0,0)},b.setGeometryData(x),n||v.geoOn(d.zoom,function(t){v._handleZoom(t.zoomLevel)})},this._build=function(){return S(v.dataTime().timestamp()<v.buildTime().timestamp()),v.renderer().contextRenderer().hasActor(_)||v.renderer().contextRenderer().addActor(_),v.buildTime().modified(),v},this._update=function(){return A.call(v),(v.dataTime().timestamp()>=v.buildTime().timestamp()||v.updateTime().timestamp()<v.timestamp())&&v._build(),w.pixelWidth.set(2/v.renderer().width()),w.aspect.set(v.renderer().width()/v.renderer().height()),w.zoom.set(v.renderer().map().zoom()),w.rotationUniform.set(v.renderer().map().rotation()),_.setVisible(v.visible()),_.material().setBinNumber(v.bin()),v.updateTime().modified(),v},this._exit=function(){v.renderer().contextRenderer().removeActor(_),_=null,w={},x()},v._init(),this};r(l,a);o("webgl","marker",l,{}),t.exports=l},3426:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m},forward:function(){return h},init:function(){return d},inverse:function(){return f},names:function(){return p}});var i=n(5518),r=n(7897),o=n(4424);function a(t){var e=Math.abs(t);return e=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}(e*(1+e/((0,o.A)(1,e)+1))),t<0?-e:e}function s(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return e+n*Math.sin(2*e)}var l=n(6449);function u(t,e,n){for(var i,o,a=Math.sin(e),s=Math.cos(e),u=(0,r.A)(n),c=(0,l.A)(n),d=2*s*c,h=-2*a*u,f=t.length-1,p=t[f],m=0,g=0,y=0;--f>=0;)i=g,o=m,p=d*(g=p)-i-h*(m=y)+t[f],y=h*g-o+d*m;return[(d=a*c)*p-(h=s*u)*y,d*y+h*p]}var c=n(6269);function d(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(i.default.init.apply(this),this.forward=i.default.forward,this.inverse=i.default.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=s(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return Math.sin(e)*n}(this.gtu,2*r))}function h(t){var e=(0,c.A)(t.x-this.long0),n=t.y;n=s(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),l=Math.sin(e),d=Math.cos(e);n=Math.atan2(i,d*r),e=Math.atan2(l*r,(0,o.A)(i,r*d)),e=a(Math.tan(e));var h,f,p=u(this.gtu,2*n,2*e);return n+=p[0],e+=p[1],Math.abs(e)<=2.623395162778?(h=this.a*(this.Qn*e)+this.x0,f=this.a*(this.Qn*n+this.Zb)+this.y0):(h=1/0,f=1/0),t.x=h,t.y=f,t}function f(t){var e,n,i=(t.x-this.x0)*(1/this.a),a=(t.y-this.y0)*(1/this.a);if(a=(a-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var l=u(this.utg,2*a,2*i);a+=l[0],i+=l[1],i=Math.atan((0,r.A)(i));var d=Math.sin(a),h=Math.cos(a),f=Math.sin(i),p=Math.cos(i);a=Math.atan2(d*p,(0,o.A)(f,p*h)),i=Math.atan2(f,p*h),e=(0,c.A)(i+this.long0),n=s(this.cgb,a)}else e=1/0,n=1/0;return t.x=e,t.y=n,t}var p=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"],m={init:d,forward:h,inverse:f,names:p}},3471:function(t,e,n){var i=n(698),r=n(4626),o=n(3503);i.uniform=function(t,e){"use strict";if(!(this instanceof i.uniform))return new i.uniform(t,e);this.getTypeNumberOfComponents=function(t){switch(t){case i.GL.FLOAT:case i.GL.INT:case i.GL.BOOL:return 1;case i.GL.FLOAT_VEC2:case i.GL.INT_VEC2:case i.GL.BOOL_VEC2:return 2;case i.GL.FLOAT_VEC3:case i.GL.INT_VEC3:case i.GL.BOOL_VEC3:return 3;case i.GL.FLOAT_VEC4:case i.GL.INT_VEC4:case i.GL.BOOL_VEC4:return 4;case i.GL.FLOAT_MAT3:return 9;case i.GL.FLOAT_MAT4:return 16;default:return 0}};var n=t,r=e,o=new Array(this.getTypeNumberOfComponents(n)).fill(0);return this.name=function(){return r},this.set=function(t){var e=0,n=o.length;if(1!==n)for(e=0;e<n;e+=1)o[e]=t[e];else o[0]=t},this.callGL=function(t,e){switch(n){case i.GL.BOOL:case i.GL.INT:t.m_context.uniform1iv(e,o);break;case i.GL.FLOAT:t.m_context.uniform1fv(e,o);break;case i.GL.BOOL_VEC2:case i.GL.INT_VEC2:t.m_context.uniform2iv(e,o);break;case i.GL.FLOAT_VEC2:t.m_context.uniform2fv(e,o);break;case i.GL.BOOL_VEC3:case i.GL.INT_VEC3:t.m_context.uniform3iv(e,o);break;case i.GL.FLOAT_VEC3:t.m_context.uniform3fv(e,o);break;case i.GL.BOOL_VEC4:case i.GL.INT_VEC4:t.m_context.uniform4iv(e,o);break;case i.GL.FLOAT_VEC4:t.m_context.uniform4fv(e,o);break;case i.GL.FLOAT_MAT3:t.m_context.uniformMatrix3fv(e,i.GL.FALSE,o);break;case i.GL.FLOAT_MAT4:t.m_context.uniformMatrix4fv(e,i.GL.FALSE,o)}},this.update=function(t,e){},this},i.modelViewOriginUniform=function(t,e){"use strict";if(!(this instanceof i.modelViewOriginUniform))return new i.modelViewOriginUniform(t,e);t||(t="modelViewMatrix");var n=[(e=e||[0,0,0])[0],e[1],e[2]||0];return i.uniform.call(this,i.GL.FLOAT_MAT4,t),this.set(o.create()),this.setOrigin=function(t){n=[(t=t||[0,0,0])[0],t[1],t[2]||0]},this.update=function(t,e){var i=t.m_modelViewMatrix;if(t.m_modelViewAlignment){var r=t.m_modelViewAlignment;(i=i.slice?i.slice():Array.prototype.slice.call(i))[12]=Math.round(i[12]/r.roundx)*r.roundx+r.dx,i[13]=Math.round(i[13]/r.roundy)*r.roundy+r.dy}i=o.translate(o.create(),i,n),this.set(i)},this},r(i.modelViewOriginUniform,i.uniform),i.projectionUniform=function(t){"use strict";return this instanceof i.projectionUniform?(t||(t="projectionMatrix"),i.uniform.call(this,i.GL.FLOAT_MAT4,t),this.set(o.create()),this.update=function(t,e){this.set(t.m_projectionMatrix)},this):new i.projectionUniform(t)},r(i.projectionUniform,i.uniform),i.floatUniform=function(t,e){"use strict";if(!(this instanceof i.floatUniform))return new i.floatUniform(t,e);t||(t="floatUniform"),e=void 0===e?1:e,i.uniform.call(this,i.GL.FLOAT,t),this.set(e)},r(i.floatUniform,i.uniform)},3497:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},3503:function(t,e,n){t.exports={create:n(3783),clone:n(1130),copy:n(74),identity:n(257),transpose:n(2664),invert:n(6583),adjoint:n(5200),determinant:n(8844),multiply:n(9899),translate:n(573),scale:n(177),rotate:n(648),rotateX:n(5618),rotateY:n(5345),rotateZ:n(5208),fromRotation:n(5405),fromRotationTranslation:n(3310),fromScaling:n(1826),fromTranslation:n(4692),fromXRotation:n(1349),fromYRotation:n(8034),fromZRotation:n(1655),fromQuat:n(5936),frustum:n(3277),perspective:n(2649),perspectiveFromFieldOfView:n(7733),ortho:n(2337),lookAt:n(8541),str:n(6600)}},3556:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.boundingObject=function(){"use strict";if(!(this instanceof i.boundingObject))return new i.boundingObject;i.object.call(this);var t=[0,0,0,0,0,0],e=o(),n=o();return e.modified(),n.modified(),this.bounds=function(){return t},this.hasValidBounds=function(t){return t[0]!==Number.MAX_VALUE&&t[1]!==-Number.MAX_VALUE&&t[2]!==Number.MAX_VALUE&&t[3]!==-Number.MAX_VALUE&&t[4]!==Number.MAX_VALUE&&t[5]!==-Number.MAX_VALUE},this.setBounds=function(n,i,r,o,a,s){if(this.hasValidBounds([n,i,r,o,a,s]))return t[0]=n,t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=s,this.modified(),e.modified(),!0},this.resetBounds=function(){t[0]=Number.MAX_VALUE,t[1]=-Number.MAX_VALUE,t[2]=Number.MAX_VALUE,t[3]=-Number.MAX_VALUE,t[4]=Number.MAX_VALUE,t[5]=-Number.MAX_VALUE,this.modified()},this.computeBounds=function(){},this.computeBoundsTimestamp=function(){return e},this.boundsDirtyTimestamp=function(){return n},this.resetBounds(),this},i.boundingObject.ReferenceFrame={Relative:0,Absolute:1},r(i.boundingObject,i.object)},3559:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3561),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=this,n=null,i=this._exit,r=this.draw,s=this._update;return this.draw=function(){if(e._update(),n)for(var t=0;t<n.length;t+=1)n[t].draw();return r(),e},this._build=function(){return e.buildTime().modified(),n=e.createChoropleth()},this._update=function(){s.call(e),(e.dataTime().timestamp()>=e.buildTime().timestamp()||e.updateTime().timestamp()<=e.timestamp())&&(e._wipePolygons(),e._build()),e.updateTime().modified()},this._wipePolygons=function(){n&&n.map(function(t){return t._exit()}),n=null},this._exit=function(){e._wipePolygons(),i()},this._init(t),this};i(a,o),r("webgl","choropleth",a),t.exports=a},3561:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=n(642).ensureFunction;delete t.layer,delete t.renderer;var i=n(2493).d3,a=this,s=this._init,l=Object.assign({},{colorRange:[{r:.07514311,g:.468049805,b:1},{r:.468487184,g:.588057293,b:1},{r:.656658579,g:.707001303,b:1},{r:.821573924,g:.837809045,b:1},{r:.943467973,g:.943498599,b:.943398095},{r:1,g:.788626485,b:.750707739},{r:1,g:.6289553,b:.568237474},{r:1,g:.472800903,b:.404551679},{r:.916482116,g:.236630659,b:.209939162}],scale:i.scaleQuantize(),geoId:function(t){return t.properties.GEO_ID},scalarId:function(t){return t.id},scalarValue:function(t){return t.value}},t);return this.featureType="choropleth",this.scalar=function(t,e){var n,r;return void 0===t?a.choropleth.get("scalar")()||[]:(n=a.choropleth.get("scalarId"),r=a.choropleth.get("scalarValue"),l.scalar=t,l.scalarAggregator=e||i.mean,l.scalar._dictionary=t.reduce(function(t,e){var i,o;return i=n(e),o=r(e),t[i]=t[i]?t[i].push(o):[o],t},{}),a.dataTime().modified(),a)},this.choropleth=function(t,e){var n;return void 0===t?l:"string"==typeof t&&void 0===e?l[t]:(void 0===e?(n=Object.assign({},l,t),l=n):l[t]=e,a.modified(),a)},this.choropleth.get=function(t){var n,i={};if(void 0===t){for(n in l)l.hasOwnProperty(n)&&(i[n]=a.choropleth.get(n));return i}return e(l[t])},this._featureToPolygons=function(t,e){var n=a.layer().createFeature("polygon",{});return"Polygon"===t.geometry.type?n.data([{type:"Polygon",coordinates:t.geometry.coordinates}]):"MultiPolygon"===t.geometry.type&&n.data(t.geometry.coordinates.map(function(t){return{type:"Polygon",coordinates:t}})),n.polygon(function(t){return{outer:t.coordinates[0],inner:t.coordinates[1]}}).position(function(t){return{x:t[0],y:t[1]}}).style({fillColor:e}),n},this._generateScale=function(t){var e=i.extent(a.scalar(),t||void 0);return a.choropleth().scale.domain(e).range(a.choropleth().colorRange),a},this.createChoropleth=function(){var t=a.choropleth,e=a.data(),n=a.scalar(),i=t.get("scalarValue"),r=t.get("geoId");return a._generateScale(i),e.map(function(e){var i=r(e),o=n._dictionary[i],s=t().scalarAggregator(o),l=a.choropleth().scale(s);return a._featureToPolygons(e,l)})},this._init=function(t){return s.call(a,t),l&&a.dataTime().modified(),a},this._init(t),this};i(o,r),t.exports=o},3578:function(t,e,n){var i=n(4626),r=n(1338),o=n(642),a=n(3638),s=n(1982),l=n(3503),u=n(4663),c=function(t){if(!(this instanceof c))return new c(t);var e=n(6409);return t=t||{},r.call(this,t),this._view=o.mat4AsArray(),this._proj=o.mat4AsArray(),this._projection=null,this._transform=o.mat4AsArray(),this._inverse=o.mat4AsArray(),this._bounds=null,this._display=null,this._world=null,this._viewport={width:1,height:1},this._createProj=function(){var t="perspective"===this._projection?l.frustum:l.ortho,e=this._clipbounds[this._projection];t(this._proj,e.left,e.right,e.bottom,e.top,e.near,e.far)},this._update=function(){this._bounds=null,this._display=null,this._world=null,this._transform=l.multiply(o.mat4AsArray(),this._proj,this._view),l.invert(this._inverse,this._transform),this.geoTrigger(e.camera.view,{camera:this})},Object.defineProperty(this,"view",{get:function(){return this._view},set:function(t){l.copy(this._view,t),this._update()},configurable:!0}),Object.defineProperty(this,"bounds",{get:function(){return null===this._bounds&&(this._bounds=this._getBounds()),this._bounds},set:function(t){this._setBounds(t),this._update()}}),Object.defineProperty(this,"clipbounds",{get:function(){return this._clipbounds[this._projection]},set:function(t){var e=this._clipbounds[this._projection];if((t={left:void 0===t.left?e.left:t.left,right:void 0===t.right?e.right:t.right,top:void 0===t.top?e.top:t.top,bottom:void 0===t.bottom?e.bottom:t.bottom,near:void 0===t.near?e.near:t.near,far:void 0===t.far?e.far:t.far}).left===t.right)throw new Error("Left and right values must be different");if(t.top===t.bottom)throw new Error("Top and bottom values must be different");if(t.near===t.far)throw new Error("Near and far values must be different");this._clipbounds[this._projection]=t,this._createProj(),this._update()}}),Object.defineProperty(this,"display",{get:function(){if(null===this._display){var t=this._clipbounds[this._projection],e=o.mat4AsArray();l.translate(e,e,[this.viewport.width/2,this.viewport.height/2,0]),l.scale(e,e,[this.viewport.width/(t.right-t.left),this.viewport.height/(t.bottom-t.top),1]),l.translate(e,e,[-(t.left+t.right)/2,-(t.top+t.bottom)/2,0]),l.multiply(e,e,this._transform),this._display=e}return this._display}}),Object.defineProperty(this,"world",{get:function(){return null===this._world&&(this._world=l.invert(o.mat4AsArray(),this.display)),this._world}}),Object.defineProperty(this,"projection",{get:function(){return this._projection},set:function(t){if(!this.constructor.projection[t])throw new Error("Unsupported projection type: "+t);t!==this._projection&&(this._projection=t,this._createProj(),this._update(),this.geoTrigger(e.camera.projection,{camera:this,projection:t}))}}),Object.defineProperty(this,"projectionMatrix",{get:function(){return this._proj}}),Object.defineProperty(this,"transform",{get:function(){return this._transform}}),Object.defineProperty(this,"inverse",{get:function(){return this._inverse}}),Object.defineProperty(this,"viewport",{get:function(){return{width:this._viewport.width,height:this._viewport.height,left:this._viewport.left,top:this._viewport.top}},set:function(t){if(!(t.width>0&&t.height>0))throw new Error("Invalid viewport dimensions");t.width===this._viewport.width&&t.height===this._viewport.height||(this._viewport.width&&this._viewport.height&&(this._scale([this._viewport.width/t.width,this._viewport.height/t.height,1]),this._translate([(t.width-this._viewport.width)/2,(t.height-this._viewport.height)/2,0])),this._viewport={width:t.width,height:t.height,left:t.left,top:t.top},this._update(),this.geoTrigger(e.camera.viewport,{camera:this,viewport:this.viewport}))}}),this._resetView=function(){return l.identity(this._view),this},this._translate=function(t){return l.translate(this._view,this._view,t),this},this._scale=function(t){return l.scale(this._view,this._view,t),this},this._worldToClip4=function(t){return u.transformMat4(t,t,this._transform)},this._clipToWorld4=function(t){return u.transformMat4(t,t,this._inverse)},this.applyProjection=function(t){var e;return"perspective"===this._projection?(e=1/(t[3]||1),t[0]=e*t[0],t[1]=e*t[1],t[2]=e*t[2],t[3]=e):t[3]=1,t},this.unapplyProjection=function(t){var e;return"perspective"===this._projection?(e=t[3]||1,t[0]=e*t[0],t[1]=e*t[1],t[2]=e*t[2],t[3]=e):t[3]=1,t},this.worldToDisplay4=function(t){return t=[t[0],t[1],t[2]||0,t[3]||1],(t=u.transformMat4(t,t,this.display))[3]&&1!==t[3]&&(t=[t[0]/t[3],t[1]/t[3],t[2]/t[3],1]),t},this.displayToWorld4=function(t){return t=[t[0],t[1],t[2]||0,t[3]||1],(t=u.transformMat4(t,t,this.world))[3]&&1!==t[3]&&(t=[t[0]/t[3],t[1]/t[3],t[2]/t[3],1]),t},this.worldToDisplay=function(t){var e=this._clipbounds[this._projection];return{x:(t=this.worldToDisplay4([t.x,t.y,-e.near]))[0],y:t[1]}},this.displayToWorld=function(t){return{x:(t=this.displayToWorld4([t.x,t.y,-1]))[0],y:t[1]}},this._getBounds=function(){var t,e,n,i,r={};return t=this.displayToWorld({x:0,y:0}),e=this.displayToWorld({x:this._viewport.width,y:0}),n=this.displayToWorld({x:0,y:this._viewport.height}),i=this.displayToWorld({x:this._viewport.width,y:this._viewport.height}),r.left=Math.min(t.x,e.x,n.x,i.x),r.bottom=Math.min(t.y,e.y,n.y,i.y),r.right=Math.max(t.x,e.x,n.x,i.x),r.top=Math.max(t.y,e.y,n.y,i.y),r},this._setBounds=function(t){var e={width:t.right-t.left,height:t.top-t.bottom},n={x:(t.left+t.right)/2,y:(t.bottom+t.top)/2};return this._viewFromCenterSizeRotation(n,e,0),this},this._viewFromCenterSizeRotation=function(t,e,n){var i,r,a,s=o.vec3AsArray(),l=o.vec3AsArray();return this._resetView(),(r=Math.abs(e.width))/(a=Math.abs(e.height))>=(i=this._viewport.width/this._viewport.height)?(a=r/i,l[0]=2/r,l[1]=2/a):(r=a*i,l[0]=2/r,l[1]=2/a),l[2]=1,this._scale(l),n&&this._rotate(n),s[0]=-t.x,s[1]=-t.y,s[2]=0,this._translate(s),this},this.viewFromCenterSizeRotation=function(t,e,n){return this._viewFromCenterSizeRotation(t,e,n),this._update(),this},this.pan=function(t){return t.x||t.y||t.z?(this._translate([t.x,t.y,t.z||0]),this._update(),this):this},this.zoom=function(t){return 1===t||(l.scale(this._view,this._view,[t,t,t]),this._update()),this},this._rotate=function(t,e,n){if(!t)return this;n=n||[0,0,-1],e?void 0!==e.x&&(e=[e.x||0,e.y||0,e.z||0]):e=[0,0,0];var i=[-e[0],-e[1],-e[2]];return l.translate(this._view,this._view,e),l.rotate(this._view,this._view,t,n),l.translate(this._view,this._view,i),this},this.css=function(t){var e;switch((t||"").toLowerCase()){case"display":case"":e=this.display;break;case"world":e=this.world;break;default:throw new Error("Unknown transform "+t)}return c.css(e)},this.ppMatrix=function(t,e){var n=t;function i(t){var i=n[t],r=i.toExponential(e);return i>=0&&(r=" "+r),r}return e=e||2,[[i(0),i(4),i(8),i(12)].join(" "),[i(1),i(5),i(9),i(13)].join(" "),[i(2),i(6),i(10),i(14)].join(" "),[i(3),i(7),i(11),i(15)].join(" ")].join("\n")},this.toString=function(){return this.ppMatrix(this._transform)},this.debug=function(){return["bounds",JSON.stringify(this.bounds),"view:",this.ppMatrix(this._view),"projection:",this.ppMatrix(this._proj),"transform:",this.ppMatrix(this._transform)].join("\n")},this.valueOf=function(){return this._transform},this._clipbounds=this.constructor.clipbounds,this._resetView(),this.projection=t.projection||"parallel",t.viewport&&(this.viewport=t.viewport),this._update(),this};c.projection={perspective:!0,parallel:!0},c.clipbounds={perspective:{left:-1,right:1,top:1,bottom:-1,far:2e3,near:.01},parallel:{left:-1,right:1,top:1,bottom:-1,far:-1,near:1}},c.css=function(t){return"matrix3d("+t.map(function(t){return(t=(+t).toPrecision(15)).indexOf("e")>=0?t=(+t).toString():t.indexOf(".")>=0&&(t=t.replace(/(\.|)0+$/,"")),t}).join(",")+")"},c.vec3=s,c.mat3=a,c.vec4=u,c.mat4=l,i(c,r),t.exports=c},3611:function(t,e,n){"use strict";function i(t){return.05859375*t*t*(1+.75*t)}n.d(e,{A:function(){return i}})},3638:function(t,e,n){t.exports={adjoint:n(3369),clone:n(5723),copy:n(817),create:n(6396),determinant:n(9133),frob:n(7053),fromMat2:n(7068),fromMat4:n(5018),fromQuat:n(3955),identity:n(6658),invert:n(6028),multiply:n(4980),normalFromMat4:n(8093),rotate:n(8163),scale:n(2311),str:n(6321),translate:n(5068),transpose:n(6333)}},3656:function(t,e,n){var i=n(4626),r=n(1098).registerAnnotation,o=n(2225),a=n(642),s=n(6978).state,l=n(4019),u=function(t,e){"use strict";if(!(this instanceof u))return new u(t,e);t=a.deepMerge({},this.constructor.defaults,t),l.call(this,t,e||"ellipse");var n=this;this.features=function(){var t,e=n.options(),i=n.state();if(t=[],e.corners&&e.corners.length>=4){var r=n.styleForState(i),a=Math.pow(Math.pow(e.corners[0].x-e.corners[1].x,2)+Math.pow(e.corners[0].y-e.corners[1].y,2),.5),l=Math.pow(Math.pow(e.corners[0].x-e.corners[3].x,2)+Math.pow(e.corners[0].y-e.corners[3].y,2),.5),u=Math.max(a,l)/2/n.layer().map().unitsPerPixel(0),c=a?l/a:1e20,d=-Math.atan2(e.corners[1].y-e.corners[0].y,e.corners[1].x-e.corners[0].x);t=[{marker:{x:(e.corners[0].x+e.corners[1].x+e.corners[2].x+e.corners[3].x)/4,y:(e.corners[0].y+e.corners[1].y+e.corners[2].y+e.corners[3].y)/4,style:Object.assign({},r,{radius:u,symbolValue:c,rotation:d,strokeOffset:0,radiusIncludesStroke:!1,scaleWithZoom:o.scaleMode.fill,rotateWithMap:!0,strokeOpacity:!1===r.stroke?0:r.strokeOpacity,fillOpacity:!1===r.fill?0:r.fillOpacity})}}]}return i===s.edit&&n._addEditHandles(t,e.corners),t},this.toPolygonList=function(t){var e=n._coordinates();if(e.length<3)return[];var i=t&&t.tolerance||0;if(!i){var r=n.layer().map();i=t&&t.pixelTolerance?r.unitsPerPixel(r.zoom())*t.pixelTolerance:.1*r.unitsPerPixel(r.zoomRange().max)}for(var o=Math.pow(Math.pow(e[0].x-e[1].x,2)+Math.pow(e[0].y-e[1].y,2),.5),a=Math.pow(Math.pow(e[0].x-e[3].x,2)+Math.pow(e[0].y-e[3].y,2),.5),s=(e[0].x+e[2].x)/2,l=(e[0].y+e[2].y)/2,u=Math.max(o,a)/2,c=-Math.atan2(e[1].y-e[0].y,e[1].x-e[0].x),d=Math.max(12,Math.ceil(Math.PI/Math.acos((u-i)/(u+i)))),h=o/2*(1+(1-Math.cos(Math.PI/d))/2),f=a/2*(1+(1-Math.cos(Math.PI/d))/2),p=[],m=Math.cos(c),g=Math.sin(c),y=0;y<d;y+=1){var v=2*Math.PI*y/d,x=Math.cos(v),_=Math.sin(v),b=s+h*m*x-f*g*_,w=l+h*g*x+f*m*_;p.push([b,w])}return[[p]]}};i(u,l),u.defaults=Object.assign({},l.defaults,{});var c={};c[o.capabilities.feature]=!0,r("ellipse",u,c),t.exports=u},3712:function(t,e,n){"use strict";function i(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))}n.d(e,{A:function(){return i}})},3724:function(t){t.exports="/* markerFeature sprite fragment shader */\n\n/* markerFeature common fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying float radiusVar;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float strokeWidthVar;\nvarying float symbolVar; /* contains some bit fields */\nvarying float symbolValueVar;\nvarying float rotationVar;\n// the square/triangle shader defines unitVar\nconst int symbolEllipse = 0;\nconst int symbolFlowerBase = 1;\nconst int symbolFlowerMax = 16;\nconst int symbolTriangle = 16;\nconst int symbolStarBase = 17;\nconst int symbolStarMax = 16;\nconst int symbolRectangle = 32;\nconst int symbolCrossBase = 33;\nconst int symbolCrossMax = 16;\nconst int symbolOval = 48;\nconst int symbolJackBase = 49;\nconst int symbolJackMax = 16;\nconst int symbolDrop = 64;\nconst int symbolDropBase = 65;\nconst int symbolDropMax = 16;\nconst int symbolArrow = 80;\nconst int symbolArrowBase = 81;\nconst int symbolArrowMax = 16;\n// Distance to antialias in pixels\nconst float antialiasDist = 1.5;\n\n/* Compute the distance from a point to an arrow defined by the radiusVar and a\n * packed value containing\n * headWidth: ratio to radius (0, 1]\n * headLength: ratio to diameter (0, 1]\n * stemWidth: ratio to headWidth [0, 1]\n * sweep: boolean\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float packed: the packed value.\n * Exit: float dist: the distance to the drop in pixels. Negative is inside.\n */\nfloat distanceToArrow(vec2 pos, float value) {\n bool sweep = value < 0.0;\n value = abs(value);\n float pack0 = (mod(value, 252.0) - 1.0) / 250.0;\n value = floor(value / 252.0);\n float pack1 = (mod(value, 252.0) - 1.0) / 250.0;\n value = floor(value / 252.0);\n float pack2 = (mod(value, 252.0) - 1.0) / 250.0;\n\n float headWidth = (pack0 > 0.0 ? pack0 : 2.0 / 3.0);\n float headEnd = 1.0 - 2.0 * (pack1 > 0.0 ? pack1 : 1.0 / 2.0);\n float stemWidth = headWidth * (pack2 >= 0.0 ? pack2 : 1.0 / 3.0);\n if (length(vec2(headWidth, headEnd)) > 1.0) {\n vec2 scaledHead = normalize(vec2(headWidth, headEnd));\n headWidth = scaledHead.x;\n headEnd = scaledHead.y;\n }\n float stemEnd = -cos(asin(stemWidth));\n\n headWidth *= radiusVar;\n headEnd *= radiusVar;\n stemWidth *= radiusVar;\n stemEnd *= radiusVar;\n pos.y = abs(pos.y);\n float stemDist = pos.y - stemWidth;\n float stemEndDist = stemEnd - pos.x;\n float B = (radiusVar - headEnd) / headWidth;\n float headDist = (pos.x + B * pos.y - radiusVar) / sqrt(1.0 + B * B);\n float headEndDist;\n if (sweep) {\n B = (radiusVar - headEnd) / 3.0 / headWidth;\n headEndDist = -(pos.x + B * pos.y - (radiusVar + headEnd * 2.0) / 3.0) / sqrt(1.0 + B * B);\n } else {\n headEndDist = headEnd - pos.x;\n }\n headEndDist = min(headEndDist, stemDist);\n return max(max(headDist, headEndDist), stemEndDist);\n}\n\n/* Compute the distance from a point to a drop defined by the radiusVar (the\n * semimajor axis) and ratio (between the minor and major radii).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the drop in pixels. Negative is inside.\n */\nfloat distanceToDrop(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0 || ratio >= 1.0) {\n ratio = 1.0;\n }\n float r = radiusVar * ratio;\n float cx = radiusVar - r;\n float rad = distance(pos.xy, vec2(cx, 0.0)) - r;\n if (ratio < 0.5) {\n float x = radiusVar - r - r * r / cx;\n float y = sqrt(r * r - (cx - x) * (cx - x));\n float Bt = (cx - x) / y;\n if ((pos.x + Bt * abs(pos.y) - cx) / sqrt(1.0 + Bt * Bt) < 0.0) {\n float B = -x / y;\n return -(pos.x + B * abs(pos.y)) / sqrt(1.0 + B * B);\n }\n }\n return rad;\n}\n\n/* Compute the distance from a point to the ellipse defined by the radiusVar\n * (the semimajor axis) and ratio (between the minor and major axes).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the ellipse in pixels. Negative is\n * inside.\n */\nfloat distanceToEllipse(vec2 pos, float ratio) {\n // a and b are the semi-major and semi-minor axes\n // ratio is the between the minor and major axes. If > 1, swap these and\n // rotate 90 degrees.\n if (ratio == 0.0) {\n ratio = 1.0;\n }\n float a = radiusVar, b = abs(radiusVar * ratio);\n if (b > a) {\n pos = vec2(pos.y, -pos.x);\n b = abs(radiusVar / ratio);\n }\n float a2 = a * a, b2 = b * b;\n // compute the distance to the ellipse. See this discussion:\n // https://stackoverflow.com/questions/22959698\n float f = sqrt(a2 - b2),\n // this value will be positive if outside and negative if inside. If\n // we used it directly, the stroke would be too thick along the long\n // edges of the ellipse\n d = (distance(pos, vec2(f, 0.0)) + distance(pos, vec2(-f, 0.0))) * 0.5 - a;\n // if we are outside of the ellipse, accuracy is not important, so return\n // early.\n if (d >= 0.0) {\n return d;\n }\n // work in one quadrant\n pos = abs(pos);\n // t (the angle from center) could start as `atan(pos.y, pos.x)`, but this\n // results in a slower solution near narrow ends\n float t = 0.7;\n float cost = cos(t), sint = sin(t), x = a * cost, y = b * sint;\n vec2 lastxy;\n for (int iter = 0; iter < 10; iter += 1) {\n lastxy = vec2(x, y);\n float ex = (a2 - b2) * pow(cost, 3.0) / a,\n ey = (b2 - a2) * pow(sint, 3.0) / b;\n vec2 r = vec2(x - ex, y - ey),\n q = vec2(pos.x - ex, pos.y - ey);\n float lenr = length(r);\n t += lenr * asin((r.x * q.y - r.y * q.x) / lenr / length(q)) / sqrt(a2 + b2 - x * x - y * y);\n t = clamp(t, 0.0, acos(0.0));\n cost = cos(t);\n sint = sin(t);\n x = a * cost;\n y = b * sint;\n if (distance(lastxy, vec2(x, y)) < 0.05) {\n break;\n }\n }\n return sign(d) * distance(pos, vec2(x, y));\n}\n\n/* Compute the distance from a point to an isosceles triangle.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: length of the base compared to the other sides.\n * Exit: float dist: the distance to the rectangle in pixels. Negative is\n * inside.\n */\nfloat distanceToIsoscelesTriangle(vec2 pos, float ratio) {\n ratio = clamp(abs(ratio), 0.0, 2.0);\n if (ratio == 0.0 || ratio == 2.0) {\n ratio = 1.0;\n }\n float s1, s2, x0, x1, y1;\n if (ratio < sqrt(2.0)) {\n s1 = radiusVar * sqrt(4.0 - ratio * ratio); // length of equal sides\n s2 = s1 * ratio;\n y1 = s2 / 2.0;\n x0 = radiusVar;\n x1 = x0 - sqrt(s1 * s1 - y1 * y1);\n } else {\n s2 = radiusVar * 2.0;\n s1 = s2 / ratio;\n y1 = s2 / 2.0;\n x0 = sqrt(s1 * s1 - y1 * y1);\n x1 = 0.0;\n }\n float B = (x0 - x1) / y1;\n return max(x1 - pos.x, (pos.x + B * abs(pos.y) - x0) / sqrt(1.0 + B * B));\n}\n\n/* Compute the distance from a point to an oval defined by the radiusVar (the\n * semimajor axis) and ratio (between the minor and major axes). Here an oval\n * is defined as two semicircles connected by straight line segments.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the oval in pixels. Negative is inside.\n */\nfloat distanceToOval(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0 || ratio >= 1.0) {\n ratio = 1.0;\n }\n float minor = radiusVar * ratio;\n float center = radiusVar - minor;\n pos = abs(pos);\n if (pos.x <= center) {\n return pos.y - minor;\n }\n return distance(pos, vec2(center, 0.0)) - minor;\n}\n\n/* Compute the distance from a point to a rectangle defined by the radiusVar\n * (the semidiagonal) and ratio (between the minor and major axes).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the rectangle in pixels. Negative is\n * inside.\n */\nfloat distanceToRectangle(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0) {\n ratio = 1.0;\n }\n vec2 wh = normalize(vec2(1.0, abs(ratio))) * radiusVar;\n vec2 dist = abs(pos) - wh;\n return max(dist.x, dist.y);\n}\n\n/* Based on a repetition value, return a position for rotational symmetry.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * int repetitions: number of repetitions on the cross.\n * Exit: float dist: a point in the primary position.\n */\nvec2 rotationalSymmetry(vec2 pos, int repetitions) {\n float pi = acos(-1.0);\n float limit = pi / float(repetitions);\n float ang = atan(pos.y, pos.x);\n ang = mod(ang + pi * 2.0, limit * 2.0);\n if (ang > limit) {\n ang -= limit * 2.0;\n }\n return vec2(cos(ang), sin(ang)) * length(pos);\n}\n\nvoid markerFeatureFragment(vec2 pos) {\n // rad is a value in pixels from the edge of the symbol where negative is\n // inside the shape\n float rad = length(pos.xy) - radiusVar;\n // never allow points outside of the main radius\n if (rad > 0.0) {\n discard;\n return;\n }\n // apply clockwise rotation\n if (rotationVar != 0.0) {\n float cosr = cos(rotationVar), sinr = sin(rotationVar);\n pos = vec2(pos.x * cosr + pos.y * sinr, -pos.x * sinr + pos.y * cosr);\n }\n\n int symbol = int(floor(symbolVar / 64.0));\n bool isimage = bool(mod(floor(symbolVar / 8.0), 2.0));\n vec4 fillColor, strokeColor;\n float endStep;\n\n float ratio = symbolValueVar;\n // When ratio is 0, it usually gets changed to 1; some shapes could have\n // better defaults\n /* Symbol shapes */\n if (symbol == symbolTriangle) {\n rad = distanceToIsoscelesTriangle(pos, ratio);\n } else if (symbol == symbolRectangle) {\n rad = distanceToRectangle(pos, ratio);\n } else if (symbol == symbolOval) {\n rad = distanceToOval(pos, ratio);\n } else if (symbol == symbolDrop) {\n rad = distanceToDrop(pos, ratio);\n } else if (symbol == symbolArrow) {\n rad = distanceToArrow(pos, ratio);\n } else if (symbol >= symbolCrossBase && symbol <= symbolCrossBase + symbolCrossMax - 2) {\n rad = distanceToRectangle(rotationalSymmetry(pos, symbol - symbolCrossBase + 2), ratio);\n } else if (symbol >= symbolFlowerBase && symbol <= symbolFlowerBase + symbolFlowerMax - 2) {\n rad = distanceToEllipse(rotationalSymmetry(pos, symbol - symbolFlowerBase + 2), ratio);\n } else if (symbol >= symbolStarBase && symbol <= symbolStarBase + symbolStarMax - 2) {\n rad = distanceToIsoscelesTriangle(rotationalSymmetry(pos, symbol - symbolStarBase + 2), ratio);\n } else if (symbol >= symbolJackBase && symbol <= symbolJackBase + symbolJackMax - 2) {\n rad = distanceToOval(rotationalSymmetry(pos, symbol - symbolJackBase + 2), ratio);\n } else if (symbol >= symbolDropBase && symbol <= symbolDropBase + symbolDropMax - 2) {\n rad = distanceToDrop(rotationalSymmetry(pos, symbol - symbolDropBase + 2), ratio);\n } else if (symbol >= symbolArrowBase && symbol <= symbolArrowBase + symbolArrowMax - 2) {\n rad = distanceToArrow(rotationalSymmetry(pos, symbol - symbolArrowBase + 2), ratio);\n } else { // default - circle or ellipse; a value of 0 or 1 is a circle\n if (ratio != 0.0 && ratio != 1.0) {\n rad = distanceToEllipse(pos, ratio);\n }\n }\n\n if (rad >= 0.0) {\n discard;\n return;\n }\n // If there is no stroke, the fill region should transition to nothing\n if (strokeColorVar.a == 0.0 || strokeWidthVar <= 0.0) {\n strokeColor = vec4(fillColorVar.rgb, 0.0);\n endStep = 0.0;\n } else {\n strokeColor = strokeColorVar;\n endStep = -strokeWidthVar;\n }\n // Likewise, if there is no fill, the stroke should transition to nothing\n if (fillColorVar.a == 0.0) {\n fillColor = vec4(strokeColorVar.rgb, 0.0);\n } else {\n fillColor = fillColorVar;\n }\n if (rad <= endStep) {\n float step = smoothstep(endStep - antialiasDist, endStep, rad);\n vec4 color = mix(fillColor, strokeColor, step);\n float step2 = smoothstep(-antialiasDist, 0.0, rad);\n gl_FragColor = mix(color, vec4(color.rgb, 0.0), step2);\n } else {\n float step = smoothstep(-antialiasDist, 0.0, rad);\n gl_FragColor = mix(strokeColor, vec4(strokeColor.rgb, 0.0), step);\n }\n}\n\n\n// the square/triangle shader defines unitVar\n\nvoid main(void) {\n // No stroke or fill implies nothing to draw\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0)\n discard;\n // for sprites, convert the position to [-radius,radius],[-radius,radius]\n vec2 pos = (gl_PointCoord.xy - 0.5) * 2.0 * radiusVar;\n markerFeatureFragment(pos);\n}\n"},3783:function(t){t.exports=function(){var t=new Float32Array(16);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}},3832:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3187),a=function(t){"use strict";var e=this;return this instanceof a?(o.call(this,t),this.select=function(){var t=e.renderer(),n={},i=e.nodeFeature(),r=e.linkFeatures();return n.nodes=t.select(i._svgid()),n.links=r.map(function(e){return t.select(e._svgid())}),n},this):new a(t)};i(a,o),r("svg","graph",a),t.exports=a},3842:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=function(t){"use strict";var e=n(5325),r=n(642);if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var s,l,u=this,c=this._init,d=t.nearestPixel,h=0,f=[],p=[];return this.featureType="quad",this._objectListStart=function(t){i.each(t,function(t,e){e.used=!1})},this._objectListGet=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].entry===e)return t[n].used=!0,t[n].value},this._objectListAdd=function(t,e,n){t.push({entry:e,value:n,used:!0})},this._objectListEnd=function(t){for(var e=t.length-1;e>=0;e-=1)t[e].used||t.splice(e,1)},this.pointSearch=function(t,n){var o,a,s=[],c=[],d={},h=[{},{},{},{}],f=[{},{},{},{}],p=[0,1,2,0],m=[1,2,3,1],g=u.data(),y=u.layer().map();return n=null===n?y.gcs():void 0===n?y.ingcs():n,t=e.transformCoordinates(n,y.gcs(),t),l||u._generateQuads(),i.each([l.clrQuads,l.imgQuads,l.vidQuads],function(e,n){n.forEach(function(e,n){for(o=0;o<p.length;o+=1)h[o].x=e.pos[3*p[o]],h[o].y=e.pos[3*p[o]+1],h[o].z=e.pos[3*p[o]+2],f[o].x=e.pos[3*m[o]],f[o].y=e.pos[3*m[o]+1],f[o].z=e.pos[3*m[o]+2];if((r.pointInPolygon(t,h)||r.pointInPolygon(t,f))&&(c.push(e.idx),s.push(g[e.idx]),!(a=r.pointToTriangleBasis2d(t,h[0],h[1],h[2]))||a.x+a.y>1?(a=r.pointToTriangleBasis2d(t,f[2],f[1],f[0]))&&(a.x=1-a.x):a.y=1-a.y,a)){if(e.crop&&void 0!==e.crop.x&&void 0!==e.crop.y&&(a.x>=e.crop.x||a.y>=e.crop.y))return c.pop(),void s.pop();d[e.idx]={basis:a,_quad:e}}})}),{index:c,found:s,extra:d}},this.position=function(t){return void 0===t?u.style("position"):(u.style("position",r.ensureFunction(t)),u.dataTime().modified(),u.modified(),u)},this._positionToQuad=function(t,n,r,o){var a=t.call(u,r,o);if(a.ll&&a.ur||a.ul&&a.lr){var s=u.gcs(),l=u.layer().map().gcs(),c={};return i.each(["ll","lr","ul","ur"],function(t,i){void 0!==a[i]&&(c[i]={},void 0===a[i].x?c[i]=[a[i][0],a[i][1],a[i][2]]:c[i]=[a[i].x,a[i].y,a[i].z],void 0===c[i][2]&&(c[i][2]=n.call(u,r,o)),s!==l&&!1!==s&&(c[i]=e.transformCoordinates(s,l,c[i])))}),c.ll=c.ll||[c.ul[0],c.lr[1],(c.ul[2]+c.lr[2])/2],c.lr=c.lr||[c.ur[0],c.ll[1],(c.ur[2]+c.ll[2])/2],c.ur=c.ur||[c.lr[0],c.ul[1],(c.lr[2]+c.ul[2])/2],c.ul=c.ul||[c.ll[0],c.ur[1],(c.ll[2]+c.ur[2])/2],c}},this._checkQuadUpdate=function(t,e){},this._generateQuads=function(){var t,e,n=u.position(),o=u.style.get("image"),a=u.style.get("video"),c=u.style.get("delayRenderWhenSeeking"),d=u.style.get("color"),m=u.style.get("depth"),g=u.style.get("opacity"),y=u.style.get("drawOnAsyncResourceLoaded"),v=u.style.get("previewColor"),x=u.style.get("previewImage"),_=u.data(),b=[],w=[],M=[],A=[0,0,0];return u._objectListStart(f),u._objectListStart(p),i.each(_,function(l,_){if(_._cachedQuad)return e=_._cachedQuad.diag2,(void 0===t||_._cachedQuad.diag2&&_._cachedQuad.diag2<t)&&(A=_._cachedQuad.ll,t=_._cachedQuad.diag2),_._cachedQuad.clrquad&&b.push(_._cachedQuad.clrquad),_._cachedQuad.imgquad&&(_._cachedQuad.imageEntry&&u._objectListGet(f,_._cachedQuad.imageEntry),w.push(_._cachedQuad.imgquad)),void(_._cachedQuad.vidquad&&(_._cachedQuad.videoEntry&&u._objectListGet(p,_._cachedQuad.videoEntry),M.push(_._cachedQuad.vidquad)));var E,T,S,C,k,P,O,L,R,I,F,D,G={};if(O=u._positionToQuad(n,m,_,l),I=g.call(u,_,l),void 0!==O&&I&&!(I<0)){if(e=Math.pow(O.ll[0]-O.ur[0],2)+Math.pow(O.ll[1]-O.ur[1],2)+Math.pow(O.ll[2]-O.ur[0],2)+Math.pow(O.lr[0]-O.ur[0],2)+Math.pow(O.lr[1]-O.ur[1],2)+Math.pow(O.lr[2]-O.ur[0],2),G.diag2=e,G.ll=O.ll,(void 0===t||e&&e<t)&&(A=O.ll,t=e),O=[O.ll[0],O.ll[1],O.ll[2],O.lr[0],O.lr[1],O.lr[2],O.ul[0],O.ul[1],O.ul[2],O.ur[0],O.ur[1],O.ur[2]],E={idx:l,pos:O,opacity:I,zOffset:_.zOffset},_.reference&&(E.reference=_.reference),_.crop&&(E.crop=_.crop),R=(L=o.call(u,_,l))?null:a.call(u,_,l),_.texture&&_.texture.data&&_.texture.width&&_.texture.height){var j={width:_.texture.width,height:_.texture.height,type:_.texture.type||"RGBA",data:_.texture.data};E.imageTexture=j,w.push(E),G.imgquad=E}else if(L){if(G.imageEntry=L,void 0===(T=u._objectListGet(f,L))&&(L instanceof Image||L instanceof HTMLCanvasElement?T=L:(T=new Image).src=L,u._objectListAdd(f,L,T)),r.isReadyImage(T)||T instanceof HTMLCanvasElement)E.image=T;else if(F=void 0,(D=x.call(u,_,l))&&r.isReadyImage(D)?E.image=D:(F=v.call(u,_,l),E.color=r.convertColor(F),E.color&&void 0!==E.color.r&&void 0!==E.color.g&&void 0!==E.color.b?(b.push(E),G.clrquad=E):F=void 0),y.call(u,_,l))P=r.isReadyImage(T,!0)?null:i.Deferred(),C=T.onload,T.onload=function(){if(void 0!==F&&(b.includes(E)&&b.splice(b.indexOf(E),1),delete G.clrquad),E.image=T,u.dataTime().modified(),u.modified(),u._update(),u.layer().draw(),P&&P.resolve(),C)return C.apply(u,arguments)},k=T.onerror,T.onerror=function(){if(P&&P.reject(),k)return k.apply(u,arguments)},P&&u.layer().addPromise(P.promise());else if(void 0===F&&!E.image)return;w.push(E),G.imgquad=E}else if(R){if(G.videoEntry=R,void 0===(S=u._objectListGet(p,R))&&(R instanceof HTMLVideoElement?S=R:(S=document.createElement("video")).src=R,u._objectListAdd(p,R,S),i(S).off(".geojsvideo").on("seeking.geojsvideo canplay.geojsvideo pause.geojsvideo playing.geojsvideo",function(t){u._checkQuadUpdate(E,t)})),E.delayRenderWhenSeeking=c.call(u,_,l),void 0===E.delayRenderWhenSeeking&&(E.delayRenderWhenSeeking=!0),r.isReadyVideo(S))E.video=S;else if(F=v.call(u,_,l),E.color=r.convertColor(F),E.color&&void 0!==E.color.r&&void 0!==E.color.g&&void 0!==E.color.b?(b.push(E),G.clrquad=E):F=void 0,y.call(u,_,l))P=r.isReadyVideo(S,!0)?null:i.Deferred(),C=S.onloadeddata,S.onloadeddata=function(){if(void 0!==F&&(b.includes(E)&&b.splice(b.indexOf(E),1),delete G.clrquad),E.video=S,u.dataTime().modified(),u.modified(),u._update(),u.layer().draw(),P&&P.resolve(),C)return C.apply(u,arguments)},k=S.onerror,S.onerror=function(){if(P&&P.reject(),k)return k.apply(u,arguments)},P&&u.layer().addPromise(P.promise());else if(void 0===F&&!E.video)return;M.push(E),G.vidquad=E}else{if(E.color=r.convertColor(d.call(u,_,l)),!E.color||void 0===E.color.r||void 0===E.color.g||void 0===E.color.b)return;b.push(E),G.clrquad=E}G.clrquad&&(h+=1,G.clrquad.quadId=h),G.imgquad&&(h+=1,G.imgquad.quadId=h),G.vidquad&&(h+=1,G.vidquad.quadId=h),!1!==s&&(_._cachedQuad=G)}}),u._objectListEnd(f),u._objectListEnd(p),l={clrQuads:b,imgQuads:w,vidQuads:M,origin:new Float32Array(A)}},this.cacheUpdate=function(t){return null==t?i.each(u.data(),function(t,e){e._cachedQuad&&delete e._cachedQuad}):(isFinite(t)&&(t=u.data()[t]),t._cachedQuad&&delete t._cachedQuad),u.modified(),u},this.video=function(t){var e,n;return isFinite(t)&&(t=u.data()[t]),t._cachedQuad?e=(t._cachedQuad.vidquad||{}).video:(l||u._generateQuads(),(n=u.data().indexOf(t))>=0&&(e=u._objectListGet(p,u.style.get("video")(t,n)))),e instanceof HTMLVideoElement?e:null},this.nearestPixel=function(t){return void 0===t?d:(d=t,u.modified(),u)},this._init=function(t){t=t||{},c.call(u,t),s=!1!==t.cacheQuads;var e=Object.assign({},{color:{r:1,g:1,b:1},opacity:1,depth:0,drawOnAsyncResourceLoaded:!0,previewColor:null,previewImage:null,image:function(t){return t.image},video:function(t){return t.video},position:r.identityFunction},void 0===t.style?{}:t.style);void 0!==t.position&&(e.position=r.ensureFunction(t.position)),u.style(e),u.dataTime().modified()},u};a.create=function(t,e){"use strict";return(e=e||{}).type="quad",o.create(t,e)},a.capabilities={color:"quad.color",image:"quad.image",imageCrop:"quad.imageCrop",imageFixedScale:"quad.imageFixedScale",imageFull:"quad.imageFull",canvas:"quad.canvas",video:"quad.video",texture:"quad.texture"},r(a,o),t.exports=a},3893:function(t){"use strict";if(void 0===e){var n=new Error("Cannot find module 'd3'");throw n.code="MODULE_NOT_FOUND",n}t.exports=e},3925:function(t){t.exports="/* pixelmapFeature fragment shader */\n\nvarying highp vec2 iTextureCoord;\nuniform sampler2D sampler2d;\nuniform sampler2D lutSampler;\nuniform int lutWidth;\nuniform int lutHeight;\nuniform mediump float opacity;\nuniform highp vec2 crop;\n\nvoid main(void) {\n if ((crop.s < 1.0 && iTextureCoord.s > crop.s) || (crop.t < 1.0 && 1.0 - iTextureCoord.t > crop.t)) {\n discard;\n }\n // to add anti-aliasing, we would need to know the current pixel size\n // (probably computed in the vertex shader) and then sample the base image at\n // multiple points, then average the output color.\n highp vec4 lutValue = texture2D(sampler2d, iTextureCoord);\n highp vec2 lutCoord;\n lutCoord.s = (\n mod(\n // add 0.5 to handle float imprecision\n floor(lutValue.r * 255.0 + 0.5) +\n floor(lutValue.g * 255.0 + 0.5) * 256.0,\n float(lutWidth)\n // center in pixel\n ) + 0.5) / float(lutWidth);\n // Our image is top-down, so invert the coordinate\n lutCoord.t = 1.0 - (\n floor(\n (\n // add 0.5 to handle float imprecision\n floor(lutValue.r * 255.0 + 0.5) +\n floor(lutValue.g * 255.0 + 0.5) * 256.0 +\n floor(lutValue.b * 255.0 + 0.5) * 256.0 * 256.0\n // We may want an option to use the alpha channel to allow more indices\n ) / float(lutWidth)\n // center in pixel\n ) + 0.5) / float(lutHeight);\n if (lutCoord.t < 0.0) {\n discard;\n }\n mediump vec4 color = texture2D(lutSampler, lutCoord);\n\n color.a *= opacity;\n gl_FragColor = color;\n}\n"},3926:function(t){t.exports=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}},3955:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,u=n*a,c=i*a,d=i*s,h=r*a,f=r*s,p=r*l,m=o*a,g=o*s,y=o*l;return t[0]=1-d-p,t[3]=c-y,t[6]=h+g,t[1]=c+y,t[4]=1-u-p,t[7]=f-m,t[2]=h-g,t[5]=f+m,t[8]=1-u-d,t}},4001:function(t,e,n){t.exports=n(9852)},4019:function(t,e,n){var i=n(4626),r=n(6409),o=n(8695),a=n(1098).registerAnnotation,s=n(6645),l=n(642),u=n(6978).annotation,c=n(6978).state,d=n(6978).annotationActionOwner,h=function(t,e){"use strict";if(!(this instanceof h))return new h(t,e);(t=l.deepMerge({},this.constructor.defaults,t)).corners=t.corners||t.coordinates||[],delete t.coordinates,u.call(this,e||"rectangle",t);var n=this,i=this.actions,a=this.processEditAction;this.actions=function(t){return t||(t=n.state()),t===c.create?[{action:o.annotation_rectangle,name:"rectangle create",owner:d,input:"left",selectionRectangle:!0,selectionConstraint:this._selectionConstraint}]:i.apply(n,arguments)},this.processAction=function(t){var e=n.layer();if(n.state()===c.create&&e&&t.event===r.actionselection&&t.state.action===o.annotation_rectangle){var i=e.map(),a=[i.displayToGcs({x:t.lowerLeft.x,y:t.lowerLeft.y},null),i.displayToGcs({x:t.lowerLeft.x,y:t.upperRight.y},null),i.displayToGcs({x:t.upperRight.x,y:t.upperRight.y},null),i.displayToGcs({x:t.upperRight.x,y:t.lowerLeft.y},null)];return this._selectionConstraint&&t.mouse&&t.state.origin&&this._selectionConstraint(t.mouse.mapgcs,t.state.origin.mapgcs,a),e.displayDistance(a[0],null,a[1],null)*e.displayDistance(a[0],null,a[3],null)<.01?"remove":(n.options("corners",a),n.state(c.done),"done")}},this.features=function(){var t,e=n.options(),i=n.state();return t=[],e.corners&&e.corners.length>=4&&(t=[{polygon:{polygon:e.corners,style:n.styleForState(i)}}]),i===c.edit&&n._addEditHandles(t,e.corners),t},this.toPolygonList=function(t){return n._coordinates().length<3?[]:[[n._coordinates().map(function(t){return[t.x,t.y]})]]},this._coordinates=function(t){return t&&t.length>=4&&n.options("corners",t.slice(0,4)),n.options("corners")},this._coordinateOption="corners",this._geojsonCoordinates=function(t){var e=n.coordinates(t);if(e&&n.state()!==c.create&&!(e.length<4)){for(var i=[],r=0;r<4;r+=1)i.push([e[r].x,e[r].y]);return i.push([e[0].x,e[0].y]),[i]}},this._geojsonGeometryType=function(){return"Polygon"},this._geojsonStyles=function(){return["fill","fillColor","fillOpacity","lineCap","lineJoin","stroke","strokeColor","strokeOffset","strokeOpacity","strokeWidth"]},this._setCornersFromMouse=function(t,e){var i=n.layer().map(),r=i.gcsToDisplay({x:t[0].x,y:t[0].y},null),o=i.gcsToDisplay(e.mapgcs,null),a={x:o.x,y:r.y},s={x:r.x,y:o.y};t[2]=Object.assign({},e.mapgcs),t[1]=i.displayToGcs(a,null),t[3]=i.displayToGcs(s,null),this._selectionConstraint&&this._selectionConstraint(e.mapgcs,t[0],t)},this.mouseMove=function(t){if(n.state()===c.create){var e=n.options("corners");return e.length?(n._setCornersFromMouse(e,t),!0):void 0}},this.mouseClick=function(t){var e=n.layer();if(n.state()===c.create&&e&&(t.buttonsDown.left||t.buttonsDown.right)){var i=n.options("corners");if(!t.buttonsDown.right||i.length)return t.handled=!0,i.length?(n._setCornersFromMouse(i,t),e.displayDistance(i[0],null,i[1],null)*e.displayDistance(i[0],null,i[3],null)<.01?"remove":(n.state(c.done),"done")):t.buttonsDown.left?(i.push(Object.assign({},t.mapgcs)),i.push(Object.assign({},t.mapgcs)),i.push(Object.assign({},t.mapgcs)),i.push(Object.assign({},t.mapgcs)),!0):void 0}},this.processEditAction=function(t){var e,i,r,o,s,l=n._editHandle.startCoordinates,u={x:t.mouse.mapgcs.x-t.state.origin.mapgcs.x,y:t.mouse.mapgcs.y-t.state.origin.mapgcs.y},c=n._editHandle.handle.type,d=n._editHandle.handle.index,h=[Math.atan2(l[1].y-l[0].y,l[1].x-l[0].x),Math.atan2(l[2].y-l[1].y,l[2].x-l[1].x),Math.atan2(l[3].y-l[2].y,l[3].x-l[2].x),Math.atan2(l[0].y-l[3].y,l[0].x-l[3].x)];switch(h[0]||h[1]||h[2]||h[3]||(h[1]=Math.PI/2,h[2]=Math.PI,h[3]=-Math.PI/2),h[0]||h[2]||(h[0]=h[1]-Math.PI/2,h[2]=h[1]+Math.PI/2),h[1]||h[3]||(h[1]=h[2]-Math.PI/2,h[3]=h[2]+Math.PI/2),c){case"vertex":return e=l.map(function(t){return{x:t.x,y:t.y}}),o=h[(d+1)%4],i={x:(u.x*Math.cos(o)+u.y*Math.sin(o))*Math.cos(o),y:(u.y*Math.sin(o)+u.x*Math.cos(o))*Math.sin(o)},s=h[d],r={x:(u.x*Math.cos(s)+u.y*Math.sin(s))*Math.cos(s),y:(u.y*Math.sin(s)+u.x*Math.cos(s))*Math.sin(s)},e[d].x+=u.x,e[d].y+=u.y,e[(d+1)%4].x+=i.x,e[(d+1)%4].y+=i.y,e[(d+3)%4].x+=r.x,e[(d+3)%4].y+=r.y,this._selectionConstraint&&(e=this._selectionConstraint(t.mouse.mapgcs,t.state.origin.mapgcs,e,"vertex",h,d).corners),n.options("corners",e),!0;case"edge":return e=l.map(function(t){return{x:t.x,y:t.y}}),o=h[(d+1)%4],u={x:(u.x*Math.cos(o)+u.y*Math.sin(o))*Math.cos(o),y:(u.y*Math.sin(o)+u.x*Math.cos(o))*Math.sin(o)},e[d].x+=u.x,e[d].y+=u.y,e[(d+1)%4].x+=u.x,e[(d+1)%4].y+=u.y,this._selectionConstraint&&(e=this._selectionConstraint(t.mouse.mapgcs,t.state.origin.mapgcs,e,"edge",h,d).corners),n.options("corners",e),!0}return a.apply(n,arguments)}};i(h,u),h.defaults=Object.assign({},u.defaults,{style:{fill:!0,fillColor:{r:0,g:1,b:0},fillOpacity:.25,polygon:function(t){return t.polygon},stroke:!0,strokeColor:{r:0,g:0,b:0},strokeOpacity:1,strokeWidth:3,uniformPolygon:!0},highlightStyle:{fillColor:{r:0,g:1,b:1},fillOpacity:.5,strokeWidth:5},createStyle:{fillColor:{r:.3,g:.3,b:.3},fillOpacity:.25,strokeColor:{r:0,g:0,b:1}},allowBooleanOperations:!0});var f={};f[s.capabilities.feature]=!0,a("rectangle",h,f),t.exports=h},4025:function(t,e,n){"use strict";function i(t,e){return Math.pow((1-t)/(1+t),e)}n.r(e),n.d(e,{default:function(){return c},forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var r=n(7e3),o=20;function a(){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+r.Vj)/(Math.pow(Math.tan(.5*this.lat0+r.Vj),this.C)*i(this.e*t,this.ratexp))}function s(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+r.Vj),this.C)*i(this.e*Math.sin(n),this.ratexp))-r.sK,t.x=this.C*e,t}function l(t){for(var e=t.x/this.C,n=t.y,a=Math.pow(Math.tan(.5*n+r.Vj)/this.K,1/this.C),s=o;s>0&&(n=2*Math.atan(a*i(this.e*Math.sin(t.y),-.5*this.e))-r.sK,!(Math.abs(n-t.y)<1e-14));--s)t.y=n;return s?(t.x=e,t.y=n,t):null}var u=["gauss"],c={init:a,forward:s,inverse:l,names:u}},4061:function(t,e,n){var i=function(){"use strict";var t,e=this,n=this._init,i=this._exit,r=this._update,o=0,a=[];this._drawTile=function(n){if(t){var i=e._tileBounds(n),r=n.index.level||0,s=e._tileOffset(r),l={};l.ul=e.fromLocal(e.fromLevel({x:i.left-s.x,y:i.top-s.y},r),0),l.ll=e.fromLocal(e.fromLevel({x:i.left-s.x,y:i.bottom-s.y},r),0),l.ur=e.fromLocal(e.fromLevel({x:i.right-s.x,y:i.top-s.y},r),0),l.lr=e.fromLocal(e.fromLevel({x:i.right-s.x,y:i.bottom-s.y},r),0),l.ul.z=l.ll.z=l.ur.z=l.lr.z=r,o+=1,l.id=o,n.quadId=l.id,l.image=n.image,l.reference=n.toString(),a.push(l),t.data(a),t._update(),e.draw()}},this._remove=function(n){if(void 0!==n.quadId&&t){for(var i=0;i<a.length;i+=1)if(a[i].id===n.quadId){a.splice(i,1);break}t.data(a),t._update(),e.draw()}},this._update=function(n){return r.call(e,n),e._addBaseQuadToTiles(t,a),e},this._exit=function(){e.deleteFeature(t),t=null,a=[],i.apply(e,arguments)},this._init=function(){n.apply(e,arguments),(t=e.createFeature("quad",{previewColor:e._options.previewColor,previewImage:e._options.previewImage})).geoTrigger=void 0,t.gcs(e._options.gcs||e.map().gcs()),t.data(a),t._update()},this._getSubLayer=function(){},this._updateSubLayers=void 0};(0,n(1098).registerLayerAdjustment)("svg","tile",i),t.exports=i},4081:function(t){t.exports="1.15.2"},4084:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw;if(this.draw=function(){return e.ready&&(e._update({mayDelay:!0}),e.renderer()._render(),r()),e},this.bin){var o=this.bin;this.bin=function(t,n){if(void 0===t&&!n&&null===o(void 0,!0)){var i=e.layer&&e.layer(),r=i&&i.map&&i.map(),a=(r&&r.listSceneObjects()||[]).indexOf(e);if(a>=0)return a}return o.apply(e,arguments)}}return this};t.exports=i},4087:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5616),i=n(2493).d3,r=n(5005);o.call(this,t),r.call(this);var s,l=this,u=this._exit,c=this._init,d=this._update;return this._build=function(){if(this.position()){var t=l.renderer(),n=t.layer().map();s=l._generateQuads();var r=[];e.each(s.clrQuads,function(t,e){r.push({type:"clr",quad:e,zIndex:e.pos[2]})}),e.each(s.imgQuads,function(t,e){e.image&&r.push({type:"img",quad:e,zIndex:e.pos[2]})});var o={id:l._svgid(),data:r,dataIndex:function(t){return t.quad.quadId},append:function(t){var e=this.namespaceURI,n="clr"===t.type?"polygon":"image";return e?document.createElementNS(e,n):document.createElement(n)},attributes:{fill:function(t){if("clr"===t.type)return i.rgb(255*t.quad.color.r,255*t.quad.color.g,255*t.quad.color.b);1!==t.quad.opacity&&i.select(this).style("opacity",t.quad.opacity)},height:function(t){return"clr"===t.type?void 0:1},points:function(e){if("clr"===e.type&&!e.points){var i,r=[];for(i=0;i<e.quad.pos.length;i+=3){var o={x:e.quad.pos[i],y:e.quad.pos[i+1],z:e.quad.pos[i+2]};o=n.gcsToDisplay(o,null),o=t.baseToLocal(o),r.push(o.x+","+o.y)}e.points=r[0]+" "+r[1]+" "+r[3]+" "+r[2]}return"clr"===e.type?e.points:void 0},preserveAspectRatio:function(t){return"clr"===t.type?void 0:"none"},reference:function(t){return t.quad.reference},stroke:!1,transform:function(e){if("img"===e.type&&e.quad.image&&!e.svgTransform){var i,r,o,a,s=[],l=-1,u=e.quad.image.width,c=e.quad.image.height;for(o=0;o<e.quad.pos.length;o+=3){var d={x:e.quad.pos[o],y:e.quad.pos[o+1],z:e.quad.pos[o+2]};d=n.gcsToDisplay(d,null),d=t.baseToLocal(d),s.push(d)}for(o=0;o<4;o+=1)(i=Math.abs(s[(o+1)%4].x*(s[(o+2)%4].y-s[(o+3)%4].y)+s[(o+2)%4].x*(s[(o+3)%4].y-s[(o+1)%4].y)+s[(o+3)%4].x*(s[(o+1)%4].y-s[(o+2)%4].y))/2)>l&&(l=i,r=o);e.svgTransform=[3===r||2===r?s[1].x-s[0].x:s[3].x-s[2].x,3===r||2===r?s[1].y-s[0].y:s[3].y-s[2].y,0===r||2===r?s[1].x-s[3].x:s[0].x-s[2].x,0===r||2===r?s[1].y-s[3].y:s[0].y-s[2].y,2===r?s[3].x+s[0].x-s[1].x:s[2].x,2===r?s[3].y+s[0].y-s[1].y:s[2].y],Math.abs(e.svgTransform[1]/u)<1e-6&&Math.abs(e.svgTransform[2]/c)<1e-6&&(a=e.svgTransform[0]/u,e.svgTransform[4]=Math.round(e.svgTransform[4]/a)*a,a=e.svgTransform[3]/c,e.svgTransform[5]=Math.round(e.svgTransform[5]/a)*a)}return"img"===e.type&&e.quad.image?"matrix("+e.svgTransform.join(" ")+")":void 0},width:function(t){return"clr"===t.type?void 0:1},x:function(t){return"clr"===t.type?void 0:0},"xlink:href":function(t){return"clr"!==t.type&&t.quad.image?t.quad.image.src:void 0},y:function(t){return"clr"===t.type?void 0:0}},style:{fillOpacity:function(t){return"clr"===t.type?t.quad.opacity:void 0}},onlyRenderNew:!this.style("previewColor")&&!this.style("previewImage"),sortByZ:!0,visible:l.visible,classes:["svgQuadFeature"]};t._drawFeatures(o),l.buildTime().modified()}},this._update=function(){return d.call(l),(l.buildTime().timestamp()<=l.dataTime().timestamp()||l.buildTime().timestamp()<l.timestamp())&&l._build(),l},this._init=function(){c.call(l,t)},this._exit=function(){u.call(l)},l._init(t),this};i(a,o);var s={};s[o.capabilities.color]=!0,s[o.capabilities.image]=!0,s[o.capabilities.imageCrop]=!1,s[o.capabilities.imageFixedScale]=!1,s[o.capabilities.imageFull]=!1,s[o.capabilities.canvas]=!1,s[o.capabilities.video]=!1,r("svg","quad",a,s),t.exports=a},4092:function(t){t.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&&e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,n){for(var i=t.root,r=t.root.next;null!==r;){if(n(r))return e.prev=r.prev,e.next=r,r.prev.next=e,void(r.prev=e);i=r,r=r.next}i.next=e,e.prev=i,e.next=null},findTransition:function(e){for(var n=t.root,i=t.root.next;null!==i&&!e(i);)n=i,i=i.next;return{before:n===t.root?null:n,after:i,insert:function(t){return t.prev=n,t.next=i,n.next=t,null!==i&&(i.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&&(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},4231:function(t,e,n){var i=n(4626),r=n(1098).registerLayer,o=n(5156),a=function(t){"use strict";var e=n(1098).createWidget;if(t.renderer="dom",t.sticky=!1,!(this instanceof a))return new a(t);o.call(this,t);var i=this,r=this._exit;this.createWidget=function(t,n){var r=e(t,i,n);return n&&"parent"in n||i.addChild(r),r._init(n),i.modified(),r},this.deleteWidget=function(t){return t._exit(),i.removeChild(t),i.modified(),i},this._exit=function(){i.children().forEach(function(t){i.deleteWidget(t)}),r()}};i(a,o),r("ui",a),t.exports=a},4279:function(t,e,n){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,{default:function(){return u}});var l=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],u=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float64Array,r=arguments.length>3?arguments[3]:void 0;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),isNaN(e)||e<0)throw new Error("Unpexpected numItems value: ".concat(e,"."));this.numItems=+e,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;var o=l.indexOf(this.ArrayType),a=2*e*this.ArrayType.BYTES_PER_ELEMENT,s=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-s%8)%8;if(o<0)throw new Error("Unexpected typed array class: ".concat(i,"."));r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+u,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+a+s+u),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+u,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=e)}return e=t,i=[{key:"from",value:function(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var n=r(new Uint8Array(e,0,2),2),i=n[0],o=n[1];if(219!==i)throw new Error("Data does not appear to be in a KDBush format.");var a=o>>4;if(1!==a)throw new Error("Got v".concat(a," data when expected v").concat(1,"."));var s=l[15&o];if(!s)throw new Error("Unrecognized array type.");var u=r(new Uint16Array(e,2,1),1)[0];return new t(r(new Uint32Array(e,4,1),1)[0],u,s,e)}}],(n=[{key:"add",value:function(t,e){var n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=e,n}},{key:"finish",value:function(){var t=this._pos>>1;if(t!==this.numItems)throw new Error("Added ".concat(t," items when expected ").concat(this.numItems,"."));return c(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}},{key:"range",value:function(t,e,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var r=this.ids,o=this.coords,a=this.nodeSize,s=[0,r.length-1,0],l=[];s.length;){var u=s.pop()||0,c=s.pop()||0,d=s.pop()||0;if(c-d<=a)for(var h=d;h<=c;h++){var f=o[2*h],p=o[2*h+1];f>=t&&f<=n&&p>=e&&p<=i&&l.push(r[h])}else{var m=d+c>>1,g=o[2*m],y=o[2*m+1];g>=t&&g<=n&&y>=e&&y<=i&&l.push(r[m]),(0===u?t<=g:e<=y)&&(s.push(d),s.push(m-1),s.push(1-u)),(0===u?n>=g:i>=y)&&(s.push(m+1),s.push(c),s.push(1-u))}}return l}},{key:"within",value:function(t,e,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var i=this.ids,r=this.coords,o=this.nodeSize,a=[0,i.length-1,0],s=[],l=n*n;a.length;){var u=a.pop()||0,c=a.pop()||0,d=a.pop()||0;if(c-d<=o)for(var h=d;h<=c;h++)p(r[2*h],r[2*h+1],t,e)<=l&&s.push(i[h]);else{var f=d+c>>1,m=r[2*f],g=r[2*f+1];p(m,g,t,e)<=l&&s.push(i[f]),(0===u?t-n<=m:e-n<=g)&&(a.push(d),a.push(f-1),a.push(1-u)),(0===u?t+n>=m:e+n>=g)&&(a.push(f+1),a.push(c),a.push(1-u))}}return s}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i}();function c(t,e,n,i,r,o){if(!(r-i<=n)){var a=i+r>>1;d(t,e,a,i,r,o),c(t,e,n,i,a-1,1-o),c(t,e,n,a+1,r,1-o)}}function d(t,e,n,i,r,o){for(;r>i;){if(r-i>600){var a=r-i+1,s=n-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);d(t,e,n,Math.max(i,Math.floor(n-s*u/a+c)),Math.min(r,Math.floor(n+(a-s)*u/a+c)),o)}var f=e[2*n+o],p=i,m=r;for(h(t,e,i,n),e[2*r+o]>f&&h(t,e,i,r);p<m;){for(h(t,e,p,m),p++,m--;e[2*p+o]<f;)p++;for(;e[2*m+o]>f;)m--}e[2*i+o]===f?h(t,e,i,m):h(t,e,++m,r),m<=n&&(i=m+1),n<=m&&(r=m-1)}}function h(t,e,n,i){f(t,n,i),f(e,2*n,2*i),f(e,2*n+1,2*i+1)}function f(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function p(t,e,n,i){var r=t-n,o=e-i;return r*r+o*o}},4280:function(t,e,n){"use strict";function i(t){return t*t*t*(35/3072)}n.d(e,{A:function(){return i}})},4317:function(t){t.exports="/* pointFeature square/triangle fragment shader */\n\n/* pointFeature common fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float radiusVar;\nvarying float strokeWidthVar;\n\nvoid pointFeatureFragment(float rad) {\n vec4 strokeColor, fillColor;\n float endStep;\n // No stroke or fill implies nothing to draw\n if (rad > 1.0)\n discard;\n // If there is no stroke, the fill region should transition to nothing\n if (strokeColorVar.a == 0.0) {\n strokeColor = vec4(fillColorVar.rgb, 0.0);\n endStep = 1.0;\n } else {\n strokeColor = strokeColorVar;\n endStep = radiusVar / (radiusVar + strokeWidthVar);\n }\n // Likewise, if there is no fill, the stroke should transition to nothing\n if (fillColorVar.a == 0.0)\n fillColor = vec4(strokeColor.rgb, 0.0);\n else\n fillColor = fillColorVar;\n // Distance to antialias over. First number is in pixels\n float antialiasDist = 1.5 / (radiusVar + strokeWidthVar);\n if (rad < endStep) {\n float step = smoothstep(max(0.0, endStep - antialiasDist), endStep, rad);\n vec4 color = mix(fillColor, strokeColor, step);\n float step2 = smoothstep(max(0.0, 1.0 - antialiasDist), 1.0, rad);\n gl_FragColor = mix(color, vec4(color.rgb, 0.0), step2);\n } else {\n float step = smoothstep(max(0.0, 1.0 - antialiasDist), 1.0, rad);\n gl_FragColor = mix(strokeColor, vec4(strokeColor.rgb, 0.0), step);\n }\n}\n\n\nvarying vec3 unitVar; // distinct for square/triangle\n\nvoid main () {\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0)\n discard;\n float rad = length(unitVar.xy); // distinct for square/triangle\n pointFeatureFragment(rad);\n}\n"},4370:function(t){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}},4424:function(t,e,n){"use strict";function i(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}n.d(e,{A:function(){return i}})},4436:function(t){"use strict";if(void 0===n){var e=new Error("Cannot find module 'vtk.js'");throw e.code="MODULE_NOT_FOUND",e}t.exports=n},4547:function(t){t.exports="/* polygonFeature fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying vec4 fillColorVar;\n\nvoid main () {\n gl_FragColor = fillColorVar;\n}\n"},4580:function(t,e,n){var i=n(698),r=n(4626),o=n(77),a=n(1982),s=n(4663),l=n(3503);i.camera=function(t){"use strict";if(!(this instanceof i.camera))return new i.camera(t);i.groupNode.call(this),t=t||{};var e=30*Math.PI/180,n=s.fromValues(0,0,1,1),r=s.fromValues(0,0,0,1),u=s.fromValues(0,1,0,0),c=1,d=s.fromValues(0,0,-1,0),h=l.create(),f=l.create(),p=o(),m=o(),g=-1,y=1,v=1,x=-1,_={zoom:1,tilesize:256},b=!1,w=[0,0,0,0],M=i.GL.COLOR_BUFFER_BIT|i.GL.DEPTH_BUFFER_BIT;return void 0!==t.parallelProjection&&(b=!!t.parallelProjection),this.setViewAspect=function(t){c=t,this.modified()},this.parallelExtents=function(){return _},this.setParallelExtents=function(t){var e,n,i=["width","height","zoom","tilesize"],r=!1;for(e=0;e<i.length;e+=1)void 0!==t[n=i[e]]&&t[n]!==_[n]&&(_[n]=t[n],r=!0);if(r&&_.width&&_.height&&void 0!==_.zoom&&_.tilesize){var o=this.unitsPerPixel(_.zoom,_.tilesize);y=o*_.width/2,g=-y,v=o*_.height/2,x=-v,this.modified()}},this.unitsPerPixel=function(t,e){return e=e||256,360*Math.pow(2,-t)/e},this.viewMatrix=function(){return this.computeViewMatrix()},this.setViewMatrix=function(t,e){e?h=t.slice():l.copy(h,t),p.modified()},this.projectionMatrix=function(){return this.computeProjectionMatrix()},this.setProjectionMatrix=function(t){l.copy(f,t),m.modified()},this.clearMask=function(){return M},this.clearColor=function(){return w},this.clearDepth=function(){return 1},this.computeDirectionOfProjection=function(){a.subtract(d,r,n),a.normalize(d,d),this.modified()},this.computeViewMatrix=function(){return p.getMTime()<this.getMTime()&&(l.lookAt(h,n,r,u),p.modified()),h},this.computeProjectionMatrix=function(){return m.getMTime()<this.getMTime()&&(b?l.ortho(f,g,y,x,v,.01,1e4):l.perspective(f,e,c,.01,1e4),m.modified()),f},this.computeDirectionOfProjection(),this},r(i.camera,i.groupNode)},4622:function(t){t.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},4626:function(t){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},4655:function(t,e,n){var i=n(6978);t.exports={state:i.state,actionOwner:i.actionOwner,annotation:i.annotation,_editHandleFeatureLevel:i._editHandleFeatureLevel,defaultEditHandleStyle:i.defaultEditHandleStyle,constrainAspectRatio:i.constrainAspectRatio,baseAnnotation:i,circleAnnotation:n(9894),ellipseAnnotation:n(3656),lineAnnotation:n(2612),pointAnnotation:n(400),polygonAnnotation:n(1920),rectangleAnnotation:n(4019),squareAnnotation:n(5229)}},4663:function(t,e,n){t.exports={create:n(3071),clone:n(7682),fromValues:n(8741),copy:n(9298),set:n(6675),add:n(2108),subtract:n(6919),multiply:n(9363),divide:n(1350),min:n(9271),max:n(2045),scale:n(7705),scaleAndAdd:n(2869),distance:n(5476),squaredDistance:n(6733),length:n(7159),squaredLength:n(2678),negate:n(6977),inverse:n(3095),normalize:n(8308),dot:n(216),lerp:n(2710),random:n(9960),transformMat4:n(8773),transformQuat:n(2508)}},4692:function(t){t.exports=function(t,e){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]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},4765:function(t){t.exports="geo_svg_rescale"},4812:function(t,e,n){t.exports={colorLegendWidget:n(5734),domWidget:n(8524),legendWidget:n(9443),scaleWidget:n(2894),sliderWidget:n(3019),svgWidget:n(7854),uiLayer:n(4231),widget:n(8738)}},4831:function(t,e,n){var i=n(698);i.event={},i.event.keyPress="vgl.event.keyPress",i.event.mousePress="vgl.event.mousePress",i.event.mouseRelease="vgl.event.mouseRelease",i.event.contextMenu="vgl.event.contextMenu",i.event.configure="vgl.event.configure",i.event.enable="vgl.event.enable",i.event.mouseWheel="vgl.event.mouseWheel",i.event.keyRelease="vgl.event.keyRelease",i.event.middleButtonPress="vgl.event.middleButtonPress",i.event.startInteraction="vgl.event.startInteraction",i.event.enter="vgl.event.enter",i.event.rightButtonPress="vgl.event.rightButtonPress",i.event.middleButtonRelease="vgl.event.middleButtonRelease",i.event.char="vgl.event.char",i.event.disable="vgl.event.disable",i.event.endInteraction="vgl.event.endInteraction",i.event.mouseMove="vgl.event.mouseMove",i.event.mouseOut="vgl.event.mouseOut",i.event.expose="vgl.event.expose",i.event.timer="vgl.event.timer",i.event.leftButtonPress="vgl.event.leftButtonPress",i.event.leave="vgl.event.leave",i.event.rightButtonRelease="vgl.event.rightButtonRelease",i.event.leftButtonRelease="vgl.event.leftButtonRelease",i.event.click="vgl.event.click",i.event.dblClick="vgl.event.dblClick"},4880:function(t,e,n){var i=n(4626),r=n(9264),o=n(1098),a=n(3842),s=n(642),l=function(t){var e=n(4912);if(!(this instanceof l))return new l(t);void 0!==(t=t||{}).mapOpacity&&void 0===t.opacity&&((t=Object.assign({},t)).opacity=t.mapOpacity),t=s.deepMerge({},this.constructor.defaults,l.tileSources[this.constructor.defaults.source]||{},l.tileSources[t.source]||{},{name:""},t),r.call(this,t);var i=this;this.mapOpacity=this.opacity,this._getTile=function(t,n){var r=n||t;return e({index:t,size:{x:i._options.tileWidth,y:i._options.tileHeight},queue:i._queue,overlap:i._options.tileOverlap,scale:i._options.tileScale,url:i._options.url.call(i,r.x,r.y,Math.max(r.level||0,Math.min(0,i._options.minLevel||0)),i._options.subdomains),crossDomain:i._options.crossDomain})},this.source=function(t){if(void 0!==t)return l.tileSources[t]&&(i.url(l.tileSources[t].url),i.subdomains(l.tileSources[t].subdomains||"abc"),i.attribution(l.tileSources[t].attribution||""),i._options.maxLevel=l.tileSources[t].maxLevel||18,i._options.minLevel=l.tileSources[t].minLevel||0),i;for(var e in l.tileSources)if(l.tileSources[e].url===i.url())return e}};l.defaults=Object.assign({},r.defaults,{tileOffset:function(t){var e=256*Math.pow(2,t-1);return{x:e,y:e}},url:"",source:"osm"});var u='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',c='<a href="https://carto.com"> Carto</a> Contributors <a href="https://www.openstreetmap.org/"> OpenStreetMap</a>';l.tileSources={"dark-matter-with-labels":{url:" https://{s}.basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}.png",attribution:c,name:"Carto Dark Matter With Labels",minLevel:0,maxLevel:18},"dark-matter-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/dark_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Dark Matter Without Labels",minLevel:0,maxLevel:18},"nationalmap-relief":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Shaded Relief",minLevel:0,maxLevel:16},"nationalmap-satellite":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Satellite",minLevel:0,maxLevel:16},"nationalmap-satellite-topo":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Satellite and Topo",minLevel:0,maxLevel:16},"nationalmap-topo":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Topo",minLevel:0,maxLevel:16},osm:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'Tile data &copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',name:"OpenStreetMap",subdomains:"abc",minLevel:0,maxLevel:19},"positron-with-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}.png",attribution:c,name:"Carto Positron With Labels",minLevel:0,maxLevel:18},"positron-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/light_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Positron Without Labels",minLevel:0,maxLevel:18},"stamen-terrain":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png",attribution:u,name:"Stamen Terrain",subdomains:"abcd",minLevel:0,maxLevel:14},"stamen-terrain-background":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain-background/{z}/{x}/{y}.png",attribution:u,name:"Stamen Terrain Background",subdomains:"abcd",minLevel:0,maxLevel:14},"stamen-toner":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",attribution:u,name:"Stamen Toner",subdomains:"abcd",minLevel:0,maxLevel:20},"stamen-toner-lite":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png",attribution:u,name:"Stamen Toner Lite",subdomains:"abcd",minLevel:0,maxLevel:20},"voyager-with-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager_labels_under/{z}/{x}/{y}.png",attribution:c,name:"Carto Voyager With Labels",minLevel:0,maxLevel:18},"voyager-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Voyager Without Labels",minLevel:0,maxLevel:18}},i(l,r),o.registerLayer("osm",l,[a.capabilities.image]),t.exports=l},4894:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return u},init:function(){return l},inverse:function(){return c},names:function(){return h},phi1z:function(){return d}});var i=n(7072),r=n(5964),o=n(6269),a=n(8597),s=n(7e3);function l(){Math.abs(this.lat1+this.lat2)<s.H0||(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=(0,i.A)(this.e3,this.sin_po,this.cos_po),this.qs1=(0,r.A)(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=(0,i.A)(this.e3,this.sin_po,this.cos_po),this.qs2=(0,r.A)(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=(0,r.A)(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>s.H0?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=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)}function u(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=(0,r.A)(this.e3,this.sin_phi),a=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,s=this.ns0*(0,o.A)(e-this.long0),l=a*Math.sin(s)+this.x0,u=this.rh-a*Math.cos(s)+this.y0;return t.x=l,t.y=u,t}function c(t){var e,n,i,r,a,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,s=this.phi1z(this.e3,n)),a=(0,o.A)(r/this.ns0+this.long0),t.x=a,t.y=s,t}function d(t,e){var n,i,r,o,l=(0,a.A)(.5*e);if(t<s.H0)return l;for(var u=t*t,c=1;c<=25;c++)if(l+=o=.5*(r=1-(i=t*(n=Math.sin(l)))*i)*r/Math.cos(l)*(e/(1-u)-n/r+.5/t*Math.log((1-i)/(1+i))),Math.abs(o)<=1e-7)return l;return null}var h=["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"];e.default={init:l,forward:u,inverse:c,names:h,phi1z:d}},4912:function(t,e,n){var i=n(4626),r=n(5289),o=function(t){if(!(this instanceof o))return new o(t);var e=n(5616);return t.size=t.size||{x:256,y:256},this._image=null,this._cors=t.crossDomain||null===t.crossDomain?t.crossDomain:"anonymous",r.call(this,t),Object.defineProperty(this,"image",{get:function(){return this._image}}),this.fetch=function(){var t;return this._image||(this._image=new Image(this.right-this.left,this.bottom-this.top),this._cors&&this._url.indexOf(":")>=0&&this._url.indexOf("/")===this._url.indexOf(":")+1&&(this._image.crossOrigin=this._cors),t=e.Deferred(),this._image.onload=t.resolve,this._image.onerror=t.reject,this._image.src=this._url,t.done(function(){this._fetched=!0}.bind(this)).promise(this)),this},this.fadeIn=function(t){var n=this.fetch(),i=e.Deferred();return e(this._image).css("display","none"),n.done(function(){e(this._image).fadeIn(t,function(){i.resolve()})}.bind(this)),i.promise(this)},this};i(o,r),t.exports=o},4933:function(t,e,n){var i=n(698);i.vertexAttributeKeys={Position:0,Normal:1,TextureCoordinate:2,Color:3,Scalar:4,CountAttributeIndex:5},i.vertexAttributeKeysIndexed={Zero:0,One:1,Two:2,Three:3,Four:4,Five:5,Six:6,Seven:7,Eight:8,Nine:9},i.vertexAttribute=function(t){"use strict";if(!(this instanceof i.vertexAttribute))return new i.vertexAttribute(t);var e=t;this.name=function(){return e},this.bindVertexData=function(t,n){var i=t.m_mapper.geometryData().sourceData(n),r=t.m_material.shaderProgram();t.m_context.vertexAttribPointer(r.attributeLocation(e),i.attributeNumberOfComponents(n),i.attributeDataType(n),i.normalized(n),i.attributeStride(n),i.attributeOffset(n)),t.m_context.enableVertexAttribArray(r.attributeLocation(e))},this.undoBindVertexData=function(t,n){var i=t.m_material.shaderProgram();t.m_context.disableVertexAttribArray(i.attributeLocation(e))}}},4942:function(t){"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),o="/*# ".concat(r," */");return[e].concat([o]).join("\n")}return[e].join("\n")}},4970:function(t,e,n){var i=n(698),r=n(4626);i.material=function(){"use strict";if(!(this instanceof i.material))return new i.material;i.graphicsObject.call(this);var t=this,e=new i.shaderProgram,n=100,r={},o={};return this.binNumber=function(){return n},this.setBinNumber=function(e){n=e,t.modified()},this.exists=function(t){return t.type()===i.materialAttributeType.Texture?r.hasOwnProperty(t.textureUnit()):o.hasOwnProperty(t.type())},this.addAttribute=function(n){return!t.exists(n)&&(n.type()===i.materialAttributeType.Texture?(r[n.textureUnit()]=n,t.modified(),!0):(n.type()===i.materialAttributeType.ShaderProgram&&(e=n),o[n.type()]=n,t.modified(),!0))},this.shaderProgram=function(){return e},this._cleanup=function(n){for(var i in o)o.hasOwnProperty(i)&&o[i]._cleanup(n);for(i in r)r.hasOwnProperty(i)&&r[i]._cleanup(n);e._cleanup(n),t.modified()},this.bind=function(t){var n=null;for(n in e.bind(t),o)o.hasOwnProperty(n)&&o[n]!==e&&o[n].bind(t);for(n in r)r.hasOwnProperty(n)&&r[n].bind(t)},this.undoBind=function(t){var e=null;for(e in o)o.hasOwnProperty(e)&&o[e].undoBind(t);for(e in r)r.hasOwnProperty(e)&&r[e].undoBind(t)},this.bindVertexData=function(t,e){var n=null;for(n in o)o.hasOwnProperty(n)&&o[n].bindVertexData(t,e)},this.undoBindVertexData=function(t,e){var n=null;for(n in o)o.hasOwnProperty(n)&&o[n].undoBindVertexData(t,e)},t},i.material.RenderBin={Base:0,Default:100,Opaque:100,Transparent:1e3,Overlay:1e4},r(i.material,i.graphicsObject)},4980:function(t){t.exports=function(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],c=e[7],d=e[8],h=n[0],f=n[1],p=n[2],m=n[3],g=n[4],y=n[5],v=n[6],x=n[7],_=n[8];return t[0]=h*i+f*a+p*u,t[1]=h*r+f*s+p*c,t[2]=h*o+f*l+p*d,t[3]=m*i+g*a+y*u,t[4]=m*r+g*s+y*c,t[5]=m*o+g*l+y*d,t[6]=v*i+x*a+_*u,t[7]=v*r+x*s+_*c,t[8]=v*o+x*l+_*d,t}},4993:function(t){t.exports="/* contourFeature vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute float value;\nattribute float opacity;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying float valueVar;\nvarying float opacityVar;\n\nvoid main(void)\n{\n /* Don't use z values */\n vec4 scrPos = projectionMatrix * modelViewMatrix * vec4(pos.xy, 0, 1);\n if (scrPos.w != 0.0) {\n scrPos = scrPos / scrPos.w;\n }\n valueVar = value;\n opacityVar = opacity;\n gl_Position = scrPos;\n}\n"},4997:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=s*o-l*r,d=l*i-a*o,h=a*r-s*i;return c*=2,d*=2,h*=2,t[0]=i+u*c+s*h-l*d,t[1]=r+u*d+l*c-a*h,t[2]=o+u*h+a*d-s*c,t}},5005:function(t,e,n){var i=function(t){"use strict";var e=n(1338),r=n(7376);if(!(this instanceof e))return new i(t);var o="svg-"+r(),a=this._exit,s=this,l=this.visible,u=this.draw;return this._svgid=function(){return o},this.select=function(){return s.renderer().select(s._svgid())},this.draw=function(){return s.ready&&(s._update(),u()),s},this._exit=function(){s.renderer()._removeFeature(s._svgid()),a()},this.visible=function(t,e){return void 0!==t&&t!==l(void 0,!0)&&s.renderer()&&s.renderer()._scheduleUpdate(),l(t,e)},this};t.exports=i},5018:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}},5055:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}},5068:function(t){t.exports=function(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],c=e[7],d=e[8],h=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=h*i+f*a+u,t[7]=h*r+f*s+c,t[8]=h*o+f*l+d,t}},5106:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var i=n(6269),r=n(8597),o=n(7e3);function a(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function s(t){var e,n,r,a,s,l,u,c=t.x,d=t.y;return r=(0,i.A)(c-this.long0),e=Math.sin(d),n=Math.cos(d),a=Math.cos(r),(s=this.sin_p14*e+this.cos_p14*n*a)>0||Math.abs(s)<=o.H0?(l=this.x0+1*this.a*n*Math.sin(r)/s,u=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*a)/s):(l=this.x0+this.infinity_dist*n*Math.sin(r),u=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*a)),t.x=l,t.y=u,t}function l(t){var e,n,o,a,s,l;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,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(a=Math.atan2(e,this.rc),n=Math.sin(a),o=Math.cos(a),l=(0,r.A)(o*this.sin_p14+t.y*n*this.cos_p14/e),s=Math.atan2(t.x*n,e*this.cos_p14*o-t.y*this.sin_p14*n),s=(0,i.A)(this.long0+s)):(l=this.phic0,s=0),t.x=s,t.y=l,t}var u=["gnom"];e.default={init:a,forward:s,inverse:l,names:u}},5140:function(t,e,n){t.exports=n(5055)},5156:function(t,e,n){var i=n(4626),r=n(5402),o=n(1275),a=n(1098).checkRenderer,s=n(1098).rendererForFeatures,l=n(1098).rendererForAnnotations,u=function(t){"use strict";if(!(this instanceof u))return new u(t);t=t||{},r.call(this,t);var e,i=n(5616),o=n(77),c=n(2274),d=n(1098).createRenderer,h=n(1098).adjustLayerForRenderer,f=n(6409),p=this,m=this._exit,g=void 0===t.id?u.newLayerId():t.id,y=void 0===t.name?"":t.name,v=void 0===t.map?null:t.map,x=null,_=void 0===t.canvas?null:t.canvas,b=t.renderer instanceof c?t.renderer:null,w=!1,M=void 0!==t.renderer?t.renderer instanceof c?t.renderer.api():t.renderer:t.annotations?l(t.annotations):s(t.features),A=void 0===t.autoshareRenderer||t.autoshareRenderer,E=o(),T=o(),S=void 0===t.sticky||t.sticky,C=void 0===t.active||t.active,k=void 0===t.opacity?1:t.opacity,P=t.attribution||null,O=void 0===t.visible||t.visible,L=void 0===t.selectionAPI||t.selectionAPI;if(M=a(M),!v)throw new Error("Layers must be initialized on a map.");function R(){return(p.parent()||p.map()).children().filter(function(t){return t instanceof u})}if(this.rendererName=function(){return M},this.autoshareRenderer=function(){return A},this.zIndex=function(t,n){return void 0===t?e:(n||R().reverse().forEach(function(e){e!==p&&e.zIndex()===t&&e.zIndex(t+1)}),t!==e&&(e=t,x.css("z-index",e),p.geoTrigger(f.layerMove,{layer:p})),p)},this.moveUp=function(t){var e,n,i,r,o=null;for(void 0===t&&(t=1),r=1,t<0&&(r=-1,t=-t),e=R().sort(function(t,e){return r*(t.zIndex()-e.zIndex())}),n=0;n<e.length;n+=1)if(null===o)e[n]===p&&(o=n);else{if(!(n-o<=t))break;i=p.zIndex(),p.zIndex(e[n].zIndex(),!0),e[n].zIndex(i,!0)}return p},this.moveDown=function(t){return void 0===t&&(t=1),p.moveUp(-t)},this.moveToTop=function(){return p.moveUp(R().length-1)},this.moveToBottom=function(){return p.moveDown(R().length-1)},this.sticky=function(){return S},this.active=function(t){return void 0===t?C:(C!==t&&(C=t,x.toggleClass("active",C)),p)},this.node=function(){return x},this.id=function(t){return void 0===t?g:(g=null===t?u.newLayerId():t,p.modified(),p)},this.name=function(t){return void 0===t?y:(y=t,x.attr("id",y),p.modified(),p)},this.map=function(){return v},this.renderer=function(){return b},this._renderer=function(t){return void 0===t?b:(b=t,p)},this.canvas=function(){return _},this._canvas=function(t){return void 0===t?_:(_=t,p)},this.dataTime=function(){return E},this.updateTime=function(){return T},this.initialized=function(t){return void 0!==t?(w=t,p):w},this.toLocal=function(t){return t},this.fromLocal=function(t){return t},this.attribution=function(t){return void 0!==t?(P=t,p.map().updateAttribution(),p):P},this.visible=function(t){return void 0===t?O:(O!==t&&(O=t,x.toggleClass("hidden",!O),p.modified()),p)},this.selectionAPI=function(t){return void 0===t?L:(L!==t&&(L=t),p)},this._init=function(e){if(w)return p;v.node().append(x);var n=Object.assign({},t);return delete n.map,b?p._canvas(b.canvas()):null===M?(p._renderer(null),p._canvas(x)):_?p._renderer(d(M,p,_,n)):(p._renderer(d(M,p,void 0,n)),p._canvas(b.canvas())),x.toggleClass("active",p.active()),w=!0,e||(p.geoOn(f.resize,function(t){p._update({event:t})}),p.geoOn(f.pan,function(t){p._update({event:t})}),p.geoOn(f.rotate,function(t){p._update({event:t})}),p.geoOn(f.zoom,function(t){p._update({event:t})})),p},this._exit=function(){p.geoOff(),b&&b._exit(),x.off(),x.remove(),t={},p._canvas(null),p._renderer(null),m()},this._update=function(t){return p},this.width=function(){return p.map().size().width},this.height=function(){return p.map().size().height},this.opacity=function(t){return void 0!==t?(k=t,x.css("opacity",k),p):k},(x=i(document.createElement("div"))).addClass("geojs-layer"),x.attr("renderer",M),y&&x.attr("id",y),p.opacity(k),p.visible(O),void 0===t.zIndex){var I=-1;R().forEach(function(t){void 0!==t.zIndex()&&(I=Math.max(I,t.zIndex()))}),t.zIndex=I+1}return p.zIndex(t.zIndex),h("all",p),p};u.newLayerId=function(){"use strict";var t=1;return function(){var e=t;return t+=1,e}}(),u.create=function(t,e){"use strict";if((e=e||{}).type=e.type||"feature",e.renderer=void 0===e.renderer?"webgl":e.renderer,e.renderer=a(e.renderer),!e.renderer)return console.warn("Invalid renderer"),null;var n=t.createLayer(e.type,e);return n?(e.features&&e.features.forEach(function(t){t.data=t.data||e.data,t.feature=o.create(n,t)}),n):(console.warn("Unable to create a layer"),null)},i(u,r),t.exports=u},5173:function(t,e,n){function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(4626),l=n(1098).registerFileReader,u=n(703),c=function(t){"use strict";if(!(this instanceof c))return new c(t);var e=n(5616),i=n(642).convertColor,r=n(2225),s=n(5325),l=this,d=o(o({},t),{},{pointStyle:o({fill:!0,fillColor:"#ff7800",fillOpacity:.8,stroke:!0,strokeColor:"#000",strokeWidth:1,strokeOpacity:1,radius:8},t.pointStyle),lineStyle:o({strokeColor:"#ff7800",strokeWidth:4,strokeOpacity:.5,strokeOffset:0,lineCap:"butt",lineJoin:"miter",uniformLine:!0,closed:!1},t.lineStyle),polygonStyle:o({fill:!0,fillColor:"#b0de5c",fillOpacity:.8,stroke:!0,strokeColor:"#999999",strokeWidth:2,strokeOpacity:1,uniformPolygon:!0},t.polygonStyle)});u.call(this,d),this.canRead=function(t){if(t instanceof File||t instanceof Blob)return!!("application/json"===t.type||t.name&&t.name.match(/\.json$/));if("string"==typeof t){try{JSON.parse(t)}catch(t){return!1}return!0}try{if(Array.isArray(l._featureArray(t)))return!0}catch(t){}return!1},this._readObject=function(t,n,i){var r;function o(t){try{r=JSON.parse(t),n(r)}catch(i){r||e.ajax({type:"GET",url:t,dataType:"text"}).done(function(t){try{r=JSON.parse(t),n(r)}catch(t){r||n(!1)}}).fail(function(){n(!1)})}}t instanceof File||t instanceof Blob?l._getString(t,o,i):"string"==typeof t?o(t):n(t)},this._featureArray=function(t){var e,n=[];switch(t.type){case"FeatureCollection":e=t.features;break;case"Feature":e=[t];break;case"GeometryCollection":e=t.geometries.map(function(t){return{type:"Feature",geometry:t,properties:{}}});break;case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":e=[{type:"Feature",geometry:t,properties:{}}];break;default:throw new Error("Invalid json type")}return e.forEach(function(t){Array.prototype.push.apply(n,l._feature(t))}),n=n.filter(function(t){return t.geometry&&t.geometry.coordinates&&t.geometry.coordinates.length})},this._feature=function(t){if("Feature"!==t.type)throw new Error("Invalid feature object");switch(t.geometry.type){case"Point":case"LineString":case"Polygon":return[t];case"MultiPoint":case"MultiLineString":case"MultiPolygon":return t.geometry.coordinates.map(function(e){return{type:"Feature",geometry:{type:t.geometry.type.replace("Multi",""),coordinates:e},properties:t.properties}});default:throw new Error("Invalid geometry type")}},this._position=function(t){return{x:t[0],y:t[1],z:t[2]||0}},this._style=function(t,e){var n=t.toLowerCase().match(/color$/);return n&&(e=i(e)),function(r,o,a,s){var l;return void 0!==(l=void 0!==a&&a.properties?a.properties:r.properties)&&l.hasOwnProperty(t)?n?i(l[t]):l[t]:e}},this.read=function(t,e,n){var i=new Promise(function(i,u){function c(t){return"Polygon"===t.geometry.type&&1===t.geometry.coordinates.length&&5===t.geometry.coordinates[0].length&&("ellipse"===(t.properties||{}).annotationType||"circle"===(t.properties||{}).annotationType)}l._readObject(t,function(t){if(!1===t)return e&&e(t),void u(new Error("Failed to parse GeoJSON"));var n,h,f=[];try{n=l._featureArray(t)}catch(t){return void u(t)}var p=n.filter(function(t){return"Point"===t.geometry.type});p.length&&(h=l.layer().createFeature("point"))&&(h.data(p).position(function(t){return l._position(t.geometry.coordinates)}).style([{}].concat(Object.keys(d.pointStyle)).reduce(function(t,e){return o(a({},e,p.some(function(t){return t.properties&&void 0!==t.properties[e]})?l._style(e,d.pointStyle[e]):d.pointStyle[e]),t)})),f.push(h));var m=n.filter(function(t){return"LineString"===t.geometry.type});m.length&&(h=l.layer().createFeature("line"))&&(h.data(m).line(function(t){return t.geometry.coordinates}).position(l._position).style([{}].concat(Object.keys(d.lineStyle)).reduce(function(t,e){return o(a({},e,m.some(function(t){return t.properties&&void 0!==t.properties[e]})?l._style(e,d.lineStyle[e]):d.lineStyle[e]),t)})),f.push(h));var g=n.filter(function(t){return"Polygon"===t.geometry.type&&!c(t)});g.length&&(h=l.layer().createFeature("polygon"))&&(h.data(g).polygon(function(t,e){return{outer:t.geometry.coordinates[0],inner:t.geometry.coordinates.slice(1)}}).position(l._position).style([{}].concat(Object.keys(d.polygonStyle)).reduce(function(t,e){return o(a({},e,g.some(function(t){return t.properties&&void 0!==t.properties[e]})?l._style(e,d.polygonStyle[e]):d.polygonStyle[e]),t)})),f.push(h));var y=n.filter(c);y.length&&(h=l.layer().createFeature("marker"))&&(y.forEach(function(t){var e=l.layer().map(),n=s.transformCoordinates(e.ingcs(),e.gcs(),t.geometry.coordinates[0]),i=Math.pow(Math.pow(n[0][0]-n[1][0],2)+Math.pow(n[0][1]-n[1][1],2),.5),r=Math.pow(Math.pow(n[0][0]-n[3][0],2)+Math.pow(n[0][1]-n[3][1],2),.5),o=Math.max(i,r)/2/e.unitsPerPixel(0),a=i?r/i:1e20,u=-Math.atan2(n[1][1]-n[0][1],n[1][0]-n[0][0]),c=s.transformCoordinates(e.gcs(),e.ingcs(),{x:(n[0][0]+n[1][0]+n[2][0]+n[3][0])/4,y:(n[0][1]+n[1][1]+n[2][1]+n[3][1])/4});t._props={pos:c,radius:o,aspect:a,rotation:u}}),h.data(y).position(function(t){return t._props.pos}).style([{}].concat(Object.keys(d.polygonStyle)).reduce(function(t,e){return o(a(a(a(a(a(a(a(a({},e,y.some(function(t){return t.properties&&void 0!==t.properties[e]})?l._style(e,d.polygonStyle[e]):d.polygonStyle[e]),"radius",function(t){return t._props.radius}),"radiusIncludesStroke",!1),"symbolValue",function(t){return t._props.aspect}),"rotation",function(t){return t._props.rotation}),"strokeOffset",0),"rotateWithMap",!0),"scaleWithZoom",r.scaleMode.fill),t)})),f.push(h)),e&&e(f),i(f)},n)});return l.addPromise(i),i}};s(c,u),l("geojsonReader",c),l("jsonReader",c),t.exports=c},5200:function(t){t.exports=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],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15];return t[0]=s*(h*y-f*g)-d*(l*y-u*g)+m*(l*f-u*h),t[1]=-(i*(h*y-f*g)-d*(r*y-o*g)+m*(r*f-o*h)),t[2]=i*(l*y-u*g)-s*(r*y-o*g)+m*(r*u-o*l),t[3]=-(i*(l*f-u*h)-s*(r*f-o*h)+d*(r*u-o*l)),t[4]=-(a*(h*y-f*g)-c*(l*y-u*g)+p*(l*f-u*h)),t[5]=n*(h*y-f*g)-c*(r*y-o*g)+p*(r*f-o*h),t[6]=-(n*(l*y-u*g)-a*(r*y-o*g)+p*(r*u-o*l)),t[7]=n*(l*f-u*h)-a*(r*f-o*h)+c*(r*u-o*l),t[8]=a*(d*y-f*m)-c*(s*y-u*m)+p*(s*f-u*d),t[9]=-(n*(d*y-f*m)-c*(i*y-o*m)+p*(i*f-o*d)),t[10]=n*(s*y-u*m)-a*(i*y-o*m)+p*(i*u-o*s),t[11]=-(n*(s*f-u*d)-a*(i*f-o*d)+c*(i*u-o*s)),t[12]=-(a*(d*g-h*m)-c*(s*g-l*m)+p*(s*h-l*d)),t[13]=n*(d*g-h*m)-c*(i*g-r*m)+p*(i*h-r*d),t[14]=-(n*(s*g-l*m)-a*(i*g-r*m)+p*(i*l-r*s)),t[15]=n*(s*h-l*d)-a*(i*h-r*d)+c*(i*l-r*s),t}},5208:function(t){t.exports=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],c=e[5],d=e[6],h=e[7];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]);return t[0]=o*r+u*i,t[1]=a*r+c*i,t[2]=s*r+d*i,t[3]=l*r+h*i,t[4]=u*r-o*i,t[5]=c*r-a*i,t[6]=d*r-s*i,t[7]=h*r-l*i,t}},5229:function(t,e,n){var i=n(4626),r=n(1098).registerAnnotation,o=n(6645),a=n(642),s=n(4019),l=function(t,e){"use strict";if(!(this instanceof l))return new l(t,e);t=a.deepMerge({},this.constructor.defaults,t,{constraint:1}),s.call(this,t,e||"square")};i(l,s),l.defaults=Object.assign({},s.defaults,{});var u={};u[o.capabilities.feature]=!0,r("square",l,u),t.exports=l},5245:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KPHBhdGggZD0iTTAsMTFsMTEsMGwwLC0xMWwyLDBsMCwxMWwxMSwwbDAsMmwtMTEsMGwwLDExbC0yLDBsMCwtMTFsLTExLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+CjxwYXRoIGQ9Ik0yNCwyN2w4LDBsMCwybC04LDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+Cjwvc3ZnPgo="},5289:function(t,e,n){var i=n(5616),r=function(t){if(!(this instanceof r))return new r(t);this._index=t.index,this._size=t.size,this._overlap=t.overlap||{x:0,y:0},this._wrap=t.wrap||{x:1,y:1},this._url=t.url,this._fetched=!1,this._queue=t.queue||null,Object.defineProperty(this,"index",{get:function(){return this._index}}),Object.defineProperty(this,"size",{get:function(){return this._size}}),Object.defineProperty(this,"overlap",{get:function(){return this._overlap}}),this.fetch=function(){return this._fetched||i.get(this._url).done(function(){this._fetched=!0}.bind(this)).promise(this),this},this.fetched=function(){return this._fetched},this.then=function(t,e){return this.fetched()||!this._queue||!this._queue.add||this.state&&"pending"!==this.state()?this.fetch():this._queue.add(this,this.fetch),this.done&&this.fail?this.done(t).fail(e):this.then(t,e),this},this.catch=function(t){return this.then(void 0,t),this},this.toString=function(){return[this._index.level||0,this._index.y,this._index.x,this._index.reference||0].join("_")},this.bounds=function(t,e){var n,i,r,o;return i=(n=this.size.x*(this.index.x-t.x)-this.overlap.x-e.x)+this.size.x+2*this.overlap.x,r=(o=this.size.y*(this.index.y-t.y)-this.overlap.y-e.y)+this.size.y+2*this.overlap.y,this.overlap.x&&this.index.x===t.x&&(n+=this.overlap.x),this.overlap.y&&this.index.y===t.y&&(o+=this.overlap.y),{left:n,right:i,bottom:r,top:o}},Object.defineProperty(this,"bottom",{get:function(){return this.size.y*(this.index.y+1)+this.overlap.y}}),Object.defineProperty(this,"top",{get:function(){return this.size.y*this.index.y-(this.index.y?this.overlap.y:0)}}),Object.defineProperty(this,"left",{get:function(){return this.size.x*this.index.x-(this.index.x?this.overlap.x:0)}}),Object.defineProperty(this,"right",{get:function(){return this.size.x*(this.index.x+1)+this.overlap.x}}),this.fadeIn=function(t){return i.noop(t),this}};t.exports=r},5290:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o)()(r());a.push([t.id,".geojs-scale-widget-bar{stroke:#000}.geojs-scale-widget-text{font-weight:bold;font-size:16px;font-family:serif}","",{version:3,sources:["webpack://./ui/scaleWidget.styl"],names:[],mappings:"AAAA,wBACE,WAAO,CACT,yBACE,gBAAY,CACZ,cAAU,CACV,iBAAY",sourcesContent:[".geojs-scale-widget-bar\n stroke black\n.geojs-scale-widget-text\n font-weight bold\n font-size 16px\n font-family serif\n"],sourceRoot:""}]),e.A=a},5292:function(t){"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],u=i.base?l[0]+i.base:l[0],c=o[u]||0,d="".concat(u," ").concat(c);o[u]=c+1;var h=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)e[h].references++,e[h].updater(f);else{var p=r(f,i);i.byIndex=s,e.splice(s,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}function r(t,e){var n=e.domAPI(e);n.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var o=i(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var l=i(t,r),u=0;u<o.length;u++){var c=n(o[u]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},5325:function(t,e,n){var i=n(6298),r=n(1982),o=n(3503),a=n(642);i=i.__esModule?i.default:i;var s=n(9689);s.keys().forEach(function(t){i.Proj.projections.add(s(t))});var l={},u=/^(.* |)\+axis=e(n|s)u(| .*)$/,c=/(^|\s)\+(s[1-3][1-3]|[xyz]off)=\S/,d=function(t){"use strict";if(!(this instanceof d))return(t=t||{}).source in l||(Object.keys(l).length>=10&&(l={}),l[t.source]={}),t.target in l[t.source]||(Object.keys(l[t.source]).length>=10&&(l[t.source]={}),l[t.source][t.target]=new d(t)),l[t.source][t.target];var e,n,s,u,h,f,p,m=this,g={s11:0,s12:4,s13:8,xoff:12,s21:1,s22:5,s23:9,yoff:13,s31:2,s32:6,s33:10,zoff:14};function y(t){if(!c.exec(t))return{proj:t};var e,n,i=a.mat4AsArray(),r=[];return t.split(/(\s+)/).forEach(function(t){var e=/^\+(s[1-3][1-3]|[xyz]off)=(.*)$/.exec(t);e?i[g[e[1]]]=parseFloat(e[2]):r.push(t)}),n={proj:r.join(" "),orig:t},(e=o.invert(a.mat4AsArray(),i))?(n.matrix=i,n.inverse=e):console.warn("Affine transform is not invertable and will not be used: "+t),n}function v(){var t=y(m.source()),n=y(m.target()),r=t.proj,o=n.proj;u=t.matrix,h=t.inverse,f=n.matrix,p=n.inverse,e=new i(r,o)}this.source=function(t){return void 0===t?n||"EPSG:4326":(n=t,v(),m)},this.target=function(t){return void 0===t?s||"EPSG:3857":(s=t,v(),m)},this._forward=function(t){if(u){var n=r.transformMat4(a.vec3AsArray(),[t.x,t.y,t.z||0],h);t={x:n[0],y:n[1],z:n[2]}}var i=e.forward(t,!0);if(i.z=t.z||0,f){var o=r.transformMat4(a.vec3AsArray(),[i.x,i.y,i.z],f);i={x:o[0],y:o[1],z:o[2]}}return i},this._inverse=function(t){if(f){var n=r.transformMat4(a.vec3AsArray(),[t.x,t.y,t.z||0],p);t={x:n[0],y:n[1],z:n[2]}}var i=e.inverse(t,!0);if(i.z=t.z||0,u){var o=r.transformMat4(a.vec3AsArray(),[i.x,i.y,i.z],u);i={x:o[0],y:o[1],z:o[2]}}return i},this.forward=function(t){return Array.isArray(t)?t.map(m._forward):m._forward(t)},this.inverse=function(t){return Array.isArray(t)?t.map(m._inverse):m._inverse(t)},t=t||{};try{this.source(t.source)}catch(e){console.error("Can't use transform source: "+t.source),this.source("EPSG:4326")}try{this.target(t.target)}catch(e){console.error("Can't use transform target: "+t.target),this.target("EPSG:3857")}return this};d.defs=i.defs,d.lookup=function(t){var e,r,o=n(5616),a=o.Deferred();return i.defs.hasOwnProperty(t)?a.resolve(i.defs[t]):2!==(r=t.split(":")).length||"EPSG"!==r[0].toUpperCase()?a.reject("Invalid projection code").promise():(e=r[1],o.ajax({url:"https://epsg.io/"+encodeURIComponent(e)+".proj4"}).done(function(e){var n=(e.results||[])[0];return n?(i.defs(t,n),o.when(i.defs[t])):a.reject(e).promise()}))},d.transformCoordinates=function(t,e,n,i){"use strict";if(t===e||Array.isArray(n)&&!n.length)return n;if(Array.isArray(n)&&n.length>=3&&3===i&&!a.isObject(n[0])&&!c.test(t)&&!c.test(e))return d.transformCoordinatesFlatArray3(t,e,n);if(Array.isArray(n)&&n.length&&a.isObject(n[0])&&"x"in n[0]&&"y"in n[0]){var r=t.match(u),o=e.match(u);if(r&&o&&r[1]===o[1]&&r[3]===o[3])return"z"in n[0]?n.map(function(t){return{x:+t.x,y:-t.y,z:+t.z||0}}):n.map(function(t){return{x:+t.x,y:-t.y}})}var s,l=d({source:t,target:e});return a.isObject(n)&&"x"in n&&"y"in n?(s=l.forward({x:+n.x,y:+n.y,z:+n.z||0},!0),"z"in n?s:{x:s.x,y:s.y}):Array.isArray(n)&&1===n.length&&a.isObject(n[0])&&"x"in n[0]&&"y"in n[0]?(s=l.forward({x:+n[0].x,y:+n[0].y,z:+n[0].z||0},!0),"z"in n[0]?[s]:[{x:s.x,y:s.y}]):d.transformCoordinatesArray(l,n,i)},d.transformCoordinatesArray=function(t,e,n){var i,r,o,s,l,u,c,d,h,f={};function p(){if(Array.isArray(e[0]))if(2===e[0].length)s=function(t){return+e[t][0]},l=function(t){return+e[t][1]},c=function(t,e,n){d[t]=[e,n]};else{if(3!==e[0].length)throw new Error("Invalid coordinates. Requires two or three components per array");s=function(t){return+e[t][0]},l=function(t){return+e[t][1]},u=function(t){return+e[t][2]},c=function(t,e,n,i){d[t]=[e,n,i]}}else if(2===e.length)o=2,s=function(t){return+e[t*o]},l=function(t){return+e[t*o+1]},c=function(t,e,n){d[t]=e,d[t+1]=n};else if(3===e.length)o=3,s=function(t){return+e[t*o]},l=function(t){return+e[t*o+1]},u=function(t){return+e[t*o+2]},c=function(t,e,n,i){d[t]=e,d[t+1]=n,d[t+2]=i};else{if(!n)throw new Error("Invalid coordinates");if(2!==n&&3!==n)throw new Error("Number of components should be two or three");o=n,s=function(t){return+e[t]},l=function(t){return+e[t+1]},2===n?c=function(t,e,n){d[t]=e,d[t+1]=n}:(u=function(t){return+e[t+2]},c=function(t,e,n,i){d[t]=e,d[t+1]=n,d[t+2]=i})}}if(u=function(){return 0},!Array.isArray(e))throw new Error("Coordinates are not valid");if((d=[]).length=e.length,r=e.length,!e.length)return d;for(Array.isArray(e[0])||a.isObject(e[0])?(o=1,Array.isArray(e[0])?p():a.isObject(e[0])&&function(){if(!(e[0]&&"x"in e[0]&&"y"in e[0]))throw new Error("Invalid coordinates");s=function(t){return+e[t].x},l=function(t){return+e[t].y},"z"in e[0]?(u=function(t){return+e[t].z},c=function(t,e,n,r){d[i]={x:e,y:n,z:r}}):c=function(t,e,n){d[t]={x:e,y:n}}}()):p(),i=0;i<r;i+=o)f.x=s(i),f.y=l(i),f.z=u(i),h=t.forward(f,!0),c(i,h.x,h.y,h.z);return d},d.transformCoordinatesFlatArray3=function(t,e,n){"use strict";var r,o=t.match(u),a=e.match(u);if(o&&a&&o[1]===a[1]&&o[3]===a[3]){for(r=n.length-3+1;r>=0;r-=3)n[r]*=-1;return n}var s,l=i.Proj(t),c=i.Proj(e),d={},h=new i(l,c);for(r=n.length-3;r>=0;r-=3)d.x=+n[r],d.y=+n[r+1],d.z=+(n[r+2]||0),s=h.forward(d,!0),n[r]=s.x,n[r+1]=s.y,n[r+2]=void 0===s.z?d.z:s.z;return n},d.affineForward=function(t,e){"use strict";var n,i=t.origin,r=t.scale||{x:1,y:1,z:1};for(n=0;n<e.length;n+=1)e[n].x=(e[n].x-i.x)*r.x,e[n].y=(e[n].y-i.y)*r.y,e[n].z=((e[n].z||0)-(i.z||0))*r.z;return e},d.affineInverse=function(t,e){"use strict";var n,i=t.origin,r=t.scale||{x:1,y:1,z:1};for(n=0;n<e.length;n+=1)e[n].x=e[n].x/r.x+i.x,e[n].y=e[n].y/r.y+i.y,e[n].z=(e[n].z||0)/r.z+(i.z||0);return e},d.sphericalDistance=function(t,e,n,r,o){if(r=r||"EPSG:4326",o=o||i.WGS84,(n=n||r)!==r){var a=d.transformCoordinates(n,r,[t,e]);t=a[0],e=a[1]}var s=t.y*Math.PI/180,l=e.y*Math.PI/180,u=(e.x-t.x)*Math.PI/180,c=Math.sin(s),h=Math.cos(s),f=Math.sin(l),p=Math.cos(l),m=Math.atan2(Math.pow(Math.pow(p*Math.sin(u),2)+Math.pow(h*f-c*p*Math.cos(u),2),.5),c*f+h*p*Math.cos(u));return o.a*m},d.vincentyDistance=function(t,e,n,r,o,a){if(r=r||"EPSG:4326",o=o||i.WGS84,a=a||100,(n=n||r)!==r){var s=d.transformCoordinates(n,r,[t,e]);t=s[0],e=s[1]}var l,u,c,h,f,p,m,g,y,v,x=o.a,_=o.b||o.a*(1-(o.f||1/o.rf)),b=o.f||(o.rf?1/o.rf:1-_/x),w=t.y*Math.PI/180,M=e.y*Math.PI/180,A=((e.x-t.x)%360+360)%360*Math.PI/180,E=Math.atan((1-b)*Math.tan(w)),T=Math.atan((1-b)*Math.tan(M)),S=Math.sin(E),C=Math.cos(E),k=Math.sin(T),P=Math.cos(T),O=A,L=A+2*Math.PI;if(w===M&&!A)return{distance:0,alpha1:0,alpha2:0};for(v=a;v>0&&Math.abs(O-L)>1e-12;v-=1)l=Math.pow(Math.pow(P*Math.sin(O),2)+Math.pow(C*k-S*P*Math.cos(O),2),.5),u=S*k+C*P*Math.cos(O),c=Math.atan2(l,u),h=C*P*Math.sin(O)/l,L=O,O=A+(1-(m=b/16*(f=1-Math.pow(h,2))*(4+b*(4-3*f))))*b*h*(c+m*l*((p=u-(f?2*S*k/f:0))+m*u*(2*Math.pow(p,2)-1)));return v?{distance:_*(1+(g=f*(x*x-_*_)/(_*_))/16384*(4096+g*(g*(320-175*g)-768)))*(c-(y=g/1024*(256+g*(g*(74-47*g)-128)))*l*(p+y/4*(u*(2*Math.pow(p,2)-1)-y/6*p*(4*l*l-3)*(4*Math.pow(p,2)-3)))),alpha1:Math.atan2(P*Math.sin(O),C*k-S*P*Math.cos(O)),alpha2:Math.atan2(C*Math.sin(O),-S*P+C*k*Math.cos(O))}:void 0},d.onlyInvertedY=function(t,e){var n=t.match(u),i=e.match(u);return n&&i&&n[1]===i[1]&&n[3]===i[3]},d.proj4=i,t.exports=d},5345:function(t){t.exports=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[8],c=e[9],d=e[10],h=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*r-u*i,t[1]=a*r-c*i,t[2]=s*r-d*i,t[3]=l*r-h*i,t[8]=o*i+u*r,t[9]=a*i+c*r,t[10]=s*i+d*r,t[11]=l*i+h*r,t}},5380:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7541),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(5325),i=n(7015),r=n(9897).vtkjs,s=r.Rendering.Core.vtkActor,l=r.Common.Core.vtkDataArray,u=r.Rendering.Core.vtkGlyph3DMapper,c=r.Rendering.Core.vtkMapper,d=r.Common.DataModel.vtkPointSet,h=r.Filters.Sources.vtkSphereSource;i.call(this);var f,p,m,g,y,v=this,x=this._init,_=this._exit,b=this._update;return this._createPipeline=function(){p=d.newInstance(),(m=h.newInstance()).setThetaResolution(30),m.setPhiResolution(30);var t=u.newInstance({orient:!1,colorByArrayName:"color",scalarMode:c.ScalarMode.USE_POINT_FIELD_DATA,colorMode:c.ColorMode.DIRECT_SCALARS,scaling:!0,scaleArray:"diam",scaleMode:u.ScaleModes.SCALE_BY_MAGNITUDE});t.setInputData(p,0),t.setInputConnection(m.getOutputPort(),1),(f=s.newInstance()).setMapper(t),f.getProperty().setAmbient(1),v.renderer().contextRenderer().addActor(f)},this._init=function(){x.call(v,t),v.renderer().contextRenderer().setLayer(0),v._createPipeline()},this._build=function(){var t,n,i,r,o,a,s=v.data().length,u=new Array(3*s),c=v.data(),d=v.position(),h=v.style.get("radius"),f=v.style.get("fill"),m=v.style.get("fillColor"),x=v.style.get("fillOpacity"),_=v.layer().map().unitsPerPixel(v.layer().map().zoom());for(y&&y.length===s||(y=new Float32Array(s)),g&&g.length===4*s||(g=new Uint8Array(4*s)),t=n=i=0;t<s;t+=1,n+=3,i+=4)r=d(c[t],t),u[n]=r.x,u[n+1]=r.y,u[n+2]=r.z||0,a=a||u[n+2],y[t]=h(c[t],t)*_*2,o=m(c[t],t),g[i]=255*o.r,g[i+1]=255*o.g,g[i+2]=255*o.b,g[i+3]=f(c[t],t)?255*x(c[t],t):0;if(u=e.transformCoordinates(v.gcs(),v.layer().map().gcs(),u,3),!a&&v.gcs()!==v.layer().map().gcs())for(t=n=0;t<s;t+=1,n+=3)u[n+2]=0;p.getPoints().setData(u,3),p.getPointData().addArray(l.newInstance({name:"color",values:g,numberOfComponents:4})),p.getPointData().addArray(l.newInstance({name:"diam",values:y})),v.buildTime().modified()},this._update=function(){if(b.call(v),v.dataTime().getMTime()>=v.buildTime().getMTime()||v.updateTime().getMTime()<v.getMTime())v._build();else{var t=v.data(),e=v.style.get("radius"),n=v.layer().map().unitsPerPixel(v.layer().map().zoom()),i=p.getPointData().getArray("diam"),r=i.getData().map(function(i,r){return e(t[r],r)*n*2});i.setData(r),p.modified()}v.updateTime().modified()},this._exit=function(){v.renderer().contextRenderer().removeActor(f),_()},v._init(),this};i(a,o);var s={};s[o.capabilities.stroke]=!1,r("vtkjs","point",a,s),t.exports=a},5398:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7761),a=n(6409),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);o.call(this,t),n(5895).call(this);var e,i=this._exit,r=this;return this.pointSearch=function(t,n){if(e&&r.m_info){var i=e.pointSearch(t,n);if(1===i.index.length&&i.extra&&i.extra[i.index[0]].basis){var o,a,s,l=i.extra[i.index[0]].basis;if(o=Math.floor(l.x*r.m_info.width),a=Math.floor(l.y*r.m_info.height),o>=0&&o<r.m_info.width&&a>=0&&a<r.m_info.height)return i={index:[s=r.m_info.indices[a*r.m_info.width+o]],found:[r.data()[s]]}}}return{index:[],found:[]}},this._preparePixelmap=function(){var t,e,n;if(s.isReadyImage(r.m_srcImage)){for(r.m_info={width:r.m_srcImage.naturalWidth,height:r.m_srcImage.naturalHeight,canvas:document.createElement("canvas")},r.m_info.canvas.width=r.m_info.width,r.m_info.canvas.height=r.m_info.height,r.m_info.context=r.m_info.canvas.getContext("2d"),r.m_info.context.drawImage(r.m_srcImage,0,0),r.m_info.imageData=r.m_info.context.getImageData(0,0,r.m_info.canvas.width,r.m_info.canvas.height),n=r.m_info.imageData.data,r.m_info.indices=new Array(n.length/4),r.m_info.area=n.length/4,r.m_info.mappedColors={},t=0;t<n.length;t+=4)e=n[t]+(n[t+1]<<8)+(n[t+2]<<16),r.m_info.indices[t/4]=e,r.m_info.mappedColors[e]||(r.m_info.mappedColors[e]={first:t/4}),r.m_info.mappedColors[e].last=t/4;return r.m_info}},this._computePixelmap=function(){var t,n,i,o,s,l,u,c,d,h,f=r.data()||[],p=r.style.get("color"),m=-1;if(!r.m_info){if(r.indexModified(void 0,"clear"),!r._preparePixelmap())return;h=!0}for(n in r.indexModified(void 0,"clear"),u=r.m_info.mappedColors,c=r.m_info.area,u)u.hasOwnProperty(n)&&(o=[255*((o=p(f[n],+n)||{}).r||0),255*(o.g||0),255*(o.b||0),void 0===o.a?255:255*o.a],u[n].update=!u[n].color||u[n].color[0]!==o[0]||u[n].color[1]!==o[1]||u[n].color[2]!==o[2]||u[n].color[3]!==o[3],u[n].update&&(u[n].color=o,c=Math.min(u[n].first,c),m=Math.max(u[n].last,m)));if(!(c>=m)){for(s=r.m_info.imageData.data,l=r.m_info.indices,t=c;t<=m;t+=1)(n=l[t])!==i&&(i=n,o=u[n].color,d=u[n].update),d&&(s[4*t]=o[0],s[4*t+1]=o[1],s[4*t+2]=o[2],s[4*t+3]=o[3]);r.m_info.context.putImageData(r.m_info.imageData,0,0,0,Math.floor(c/r.m_info.width),r.m_info.width,Math.ceil((m+1)/r.m_info.width)),e||(e=r.layer().createFeature("quad",{selectionAPI:!1,gcs:r.gcs(),visible:r.visible(void 0,!0)}),r.dependentFeatures([e]),e.style({image:r.m_info.canvas,position:r.style.get("position")}).data([{}]).draw()),h&&r.geoTrigger(a.pixelmap.prepared,{pixelmap:r})}},this._exit=function(){return e&&r.layer()&&(r.layer().deleteFeature(e),e=null,r.dependentFeatures([])),i(),r},this._init(t),this};i(l,o),r("canvas","pixelmap",l),t.exports=l},5402:function(t,e,n){var i=n(4626),r=n(1338),o=function(t){"use strict";if(!(this instanceof o))return new o;r.call(this,t);var e=this,n=null,i=[],a=this._exit,s=this.geoTrigger,l=this.addPromise,u=this.removePromise;return this.addPromise=function(t){return n&&n.addPromise(t),l(t),e},this.removePromise=function(t){return n&&n.removePromise(t),u(t),e},this.parent=function(t){return void 0===t?n:(n=t,e)},this.addChild=function(t){return Array.isArray(t)?(t.forEach(e.addChild),e):(t.parent(e),i.push(t),e)},this.removeChild=function(t){return Array.isArray(t)?(t.forEach(e.removeChild),e):(i=i.filter(function(e){return e!==t}),e)},this.children=function(){return i.slice()},this.draw=function(t){return e.children().forEach(function(e){e.draw(t)}),e},this.geoTrigger=function(t,r,o){var a;return a=(r=r||{}).geo||{},r.geo=a,a.stopPropagation?e:!o&&n&&a._triggeredBy!==n?(a._triggeredBy=e,n.geoTrigger(t,r),e):(s.call(e,t,r),a.stopPropagation||i.forEach(function(n){n.geoTrigger&&(a._triggeredBy=e,n.geoTrigger(t,r))}),e)},this._exit=function(){i=[],n=null,a()},this};i(o,r),t.exports=o},5405:function(t){t.exports=function(t,e,n){var i,r,o,a=n[0],s=n[1],l=n[2],u=Math.sqrt(a*a+s*s+l*l);if(Math.abs(u)<1e-6)return null;return a*=u=1/u,s*=u,l*=u,i=Math.sin(e),r=Math.cos(e),o=1-r,t[0]=a*a*o+r,t[1]=s*a*o+l*i,t[2]=l*a*o-s*i,t[3]=0,t[4]=a*s*o-l*i,t[5]=s*s*o+r,t[6]=l*s*o+a*i,t[7]=0,t[8]=a*l*o+s*i,t[9]=s*l*o-a*i,t[10]=l*l*o+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},5407:function(t,e,n){var i=n(5616),r=n(4626),o=n(1098).registerFeature,a=n(7541),s=n(7945),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},a.call(this,t);var e=n(1611),r=n(5325),o=n(642),u=n(4084),c=n(2709),d=n(4317),h=n(2682),f=n(8208),p=n(6979);u.call(this);var m,g,y=this,v=this._exit,x=null,_=null,b=null,w=null,M=void 0!==t.dynamicDraw&&t.dynamicDraw,A=this._init,E=this._update,T=this.updateStyleFromArray;function S(t){var e,n,i,l,u,c,d,h,f,p,v,b,w,M,A,E,T,C,k,P,O,L,R,I,F,D,G,j,N,B,z,V,U,q,H,W,X=y.data().length,K=y._pointPolygon(0,0,1,1),Q=new Array(3*X),Z=y.verticesPerFeature(),Y=y.data(),J=0,$=_.geometryData();if(u=y.position(),p=y.style.get("radius"),w=y.style.get("stroke"),E=y.style.get("strokeWidth"),k=y.style.get("strokeOpacity"),L=y.style.get("strokeColor"),F=y.style.get("fill"),j=y.style.get("fillOpacity"),z=y.style.get("fillColor"),!t){for(e=W=0;e<X;e+=1,W+=3)l=u(Y[e],e),Q[W]=l.x,Q[W+1]=l.y,Q[W+2]=0;if(Q=r.transformCoordinates(y.gcs(),y.layer().map().gcs(),Q,3),(g=new Float32Array(y.style.get("origin")(Q)))[0]||g[1]||g[2])for(e=W=0;e<X;e+=1,W+=3)Q[W]-=g[0],Q[W+1]-=g[1],Q[W+2]-=g[2];m.setOrigin(g),i=o.getGeomBuffer($,"pos",Z*X*3),c=o.getGeomBuffer($,"unit",Z*X*2),(d=$.primitive(0).indices())instanceof Uint16Array&&d.length===Z*X||(d=new Uint16Array(Z*X),$.primitive(0).setIndices(d))}for(h=o.getGeomBuffer($,"radius",Z*X),v=o.getGeomBuffer($,"stroke",Z*X),M=o.getGeomBuffer($,"strokeWidth",Z*X),T=o.getGeomBuffer($,"strokeOpacity",Z*X),P=o.getGeomBuffer($,"strokeColor",Z*X*3),R=o.getGeomBuffer($,"fill",Z*X),D=o.getGeomBuffer($,"fillOpacity",Z*X),N=o.getGeomBuffer($,"fillColor",Z*X*3),e=U=q=H=W=0;e<X;e+=1,W+=3){if(V=Y[e],!t&&y._primitiveShape!==a.primitiveShapes.sprite)for(n=0;n<K.length;n+=1,H+=1)c[H]=K[n];for(f=p(V,e),b=w(V,e)?1:0,A=E(V,e),C=k(V,e),O=L(V,e),I=F(V,e)?1:0,G=j(V,e),B=z(V,e),y._primitiveShapeAuto&&(I&&G||b&&C)&&f+(b&&C?A:0)>J&&(J=f+(b&&C?A:0)),n=0;n<Z;n+=1,U+=1,q+=3)t||(i[q]=Q[W],i[q+1]=Q[W+1],i[q+2]=Q[W+2]),h[U]=f,v[U]=b,M[U]=A,T[U]=C,P[q]=O.r,P[q+1]=O.g,P[q+2]=O.b,R[U]=I,D[U]=G,N[q]=B.r,N[q+1]=B.g,N[q+2]=B.b}if(y._primitiveShapeAuto&&(y._primitiveShape===a.primitiveShapes.sprite&&J>s._maxPointSize||y._primitiveShape!==a.primitiveShapes.sprite&&J<=s._maxPointSize))return y._primitiveShape=J>s._maxPointSize?a.primitiveShapes.triangle:a.primitiveShapes.sprite,y.renderer().contextRenderer().removeActor(x),x=null,y._init(!0),void S();t?(_.updateSourceBuffer("radius"),_.updateSourceBuffer("stroke"),_.updateSourceBuffer("strokeWidth"),_.updateSourceBuffer("strokeColor"),_.updateSourceBuffer("strokeOpacity"),_.updateSourceBuffer("fill"),_.updateSourceBuffer("fillColor"),_.updateSourceBuffer("fillOpacity")):($.boundsDirty(!0),_.modified(),_.boundsDirtyTimestamp().modified())}return c(y,t),this.actors=function(){return x?[x]:[]},this.updateStyleFromArray=function(t,e,n){var r,o,a={fill:"bool",fillColor:3,fillOpacity:1,radius:1,stroke:"bool",strokeColor:3,strokeOpacity:1,strokeWidth:1};if("string"==typeof t){var s={};s[t]=e,t=s}return i.each(t,function(t,e){var n,i,s,l,u,c,d,h,f;if(y.visible()&&x&&a[t]&&!r&&!y.clustering())if(f="bool"===a[t]?1:a[t],l=y.data().length,s=(i=x.mapper()).getSourceBuffer(t),n=y.verticesPerFeature(),s&&l&&l*n*f===s.length){switch(a[t]){case 1:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=1)s[h]=u;break;case 3:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=3)s[h]=u.r,s[h+1]=u.g,s[h+2]=u.b;break;case"bool":for(c=0,h=0;c<l;c+=1)for(u=e[c]?1:0,d=0;d<n;d+=1,h+=1)s[h]=u}i.updateSourceBuffer(t),o=!0}else r=!0;else r=!0;var p=y.modified;r||(y.modified=function(){}),T(t,e,!1),y.modified=p}),n&&(y.visible()&&r?y.draw():o&&y.renderer()._render()),y},this._init=function(n){var i,r,o=e.shaderProgram(),s=((r=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(y._primitiveShape===a.primitiveShapes.sprite?p:f),r),l=function(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(y._primitiveShape===a.primitiveShapes.sprite?h:d),t}(),u=e.vertexAttribute("pos"),c=e.vertexAttribute("unit"),v=e.vertexAttribute("radius"),E=e.vertexAttribute("strokeWidth"),T=e.vertexAttribute("fillColor"),S=e.vertexAttribute("fill"),C=e.vertexAttribute("strokeColor"),k=e.vertexAttribute("stroke"),P=e.vertexAttribute("fillOpacity"),O=e.vertexAttribute("strokeOpacity"),L=new e.projectionUniform("projectionMatrix"),R=e.material(),I=e.blend(),F=e.geometryData(),D=e.sourceDataP3fv({name:"pos"}),G=e.sourceDataAnyfv(2,e.vertexAttributeKeysIndexed.One,{name:"unit"}),j=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Two,{name:"radius"}),N=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"strokeWidth"}),B=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Four,{name:"fillColor"}),z=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Five,{name:"fill"}),V=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Six,{name:"strokeColor"}),U=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Seven,{name:"stroke"}),q=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Eight,{name:"fillOpacity"}),H=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Nine,{name:"strokeOpacity"});m=new e.modelViewOriginUniform("modelViewMatrix",g),(i=y._primitiveShape===a.primitiveShapes.sprite?new e.points:new e.triangles).setIndices(new Uint16Array),b=new e.floatUniform("pixelWidth",2/y.renderer().width()),w=new e.floatUniform("aspect",y.renderer().width()/y.renderer().height()),n||A.call(y,t),_=e.mapper({dynamicDraw:M}),o.addVertexAttribute(u,e.vertexAttributeKeys.Position),y._primitiveShape!==a.primitiveShapes.sprite&&o.addVertexAttribute(c,e.vertexAttributeKeysIndexed.One),o.addVertexAttribute(v,e.vertexAttributeKeysIndexed.Two),o.addVertexAttribute(E,e.vertexAttributeKeysIndexed.Three),o.addVertexAttribute(T,e.vertexAttributeKeysIndexed.Four),o.addVertexAttribute(S,e.vertexAttributeKeysIndexed.Five),o.addVertexAttribute(C,e.vertexAttributeKeysIndexed.Six),o.addVertexAttribute(k,e.vertexAttributeKeysIndexed.Seven),o.addVertexAttribute(P,e.vertexAttributeKeysIndexed.Eight),o.addVertexAttribute(O,e.vertexAttributeKeysIndexed.Nine),o.addUniform(b),o.addUniform(w),o.addUniform(m),o.addUniform(L),o.addShader(l),o.addShader(s),R.addAttribute(o),R.addAttribute(I),(x=e.actor()).setMaterial(R),x.setMapper(_),F.addSource(D),F.addSource(G),F.addSource(j),F.addSource(N),F.addSource(B),F.addSource(z),F.addSource(V),F.addSource(U),F.addSource(q),F.addSource(H),F.addPrimitive(i),F.computeBounds=function(){F.setBounds(0,0,0,0,0,0)},_.setGeometryData(F)},this._build=function(){return S(y.dataTime().timestamp()<y.buildTime().timestamp()),y.renderer().contextRenderer().hasActor(x)||y.renderer().contextRenderer().addActor(x),y.buildTime().modified(),y},this._update=function(){return E.call(y),(y.dataTime().timestamp()>=y.buildTime().timestamp()||y.updateTime().timestamp()<y.timestamp())&&y._build(),b.set(2/y.renderer().width()),w.set(y.renderer().width()/y.renderer().height()),x.setVisible(y.visible()),x.material().setBinNumber(y.bin()),y.updateTime().modified(),y},this._exit=function(){y.renderer().contextRenderer().removeActor(x),x=null,v()},y._init(),this};r(l,a);var u={};u[a.capabilities.stroke]=!0,o("webgl","point",l,u),t.exports=l},5476:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+o*o)}},5493:function(t){t.exports=function(t,e,n,i){var r=n[0],o=n[1],a=e[0]-r,s=e[1]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=r+a*u-s*l,t[1]=o+a*l+s*u,t[2]=e[2],t}},5518:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return c},init:function(){return u},inverse:function(){return d},names:function(){return h}});var i=n(6194),r=n(3712),o=n(112),a=n(6269),s=n(7e3),l=n(9393);function u(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=(0,i.A)(this.es),this.ml0=(0,r.A)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function c(t){var e,n,i,o=t.x,l=t.y,u=(0,a.A)(o-this.long0),c=Math.sin(l),d=Math.cos(l);if(this.es){var h=d*u,f=Math.pow(h,2),p=this.ep2*Math.pow(d,2),m=Math.pow(p,2),g=Math.abs(d)>s.H0?Math.tan(l):0,y=Math.pow(g,2),v=Math.pow(y,2);e=1-this.es*Math.pow(c,2),h/=Math.sqrt(e);var x=(0,r.A)(l,c,d,this.en);n=this.a*(this.k0*h*(1+f/6*(1-y+p+f/20*(5-18*y+v+14*p-58*y*p+f/42*(61+179*v-v*y-479*y)))))+this.x0,i=this.a*(this.k0*(x-this.ml0+c*u*h/2*(1+f/12*(5-y+9*p+4*m+f/30*(61+v-58*y+270*p-330*y*p+f/56*(1385+543*v-v*y-3111*y))))))+this.y0}else{var _=d*Math.sin(u);if(Math.abs(Math.abs(_)-1)<s.H0)return 93;if(n=.5*this.a*this.k0*Math.log((1+_)/(1-_))+this.x0,i=d*Math.cos(u)/Math.sqrt(1-Math.pow(_,2)),(_=Math.abs(i))>=1){if(_-1>s.H0)return 93;i=0}else i=Math.acos(i);l<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t}function d(t){var e,n,i,r,u=(t.x-this.x0)*(1/this.a),c=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+c/this.k0,n=(0,o.A)(e,this.es,this.en),Math.abs(n)<s.sK){var d=Math.sin(n),h=Math.cos(n),f=Math.abs(h)>s.H0?Math.tan(n):0,p=this.ep2*Math.pow(h,2),m=Math.pow(p,2),g=Math.pow(f,2),y=Math.pow(g,2);e=1-this.es*Math.pow(d,2);var v=u*Math.sqrt(e)/this.k0,x=Math.pow(v,2);i=n-(e*=f)*x/(1-this.es)*.5*(1-x/12*(5+3*g-9*p*g+p-4*m-x/30*(61+90*g-252*p*g+45*y+46*p-x/56*(1385+3633*g+4095*y+1574*y*g)))),r=(0,a.A)(this.long0+v*(1-x/6*(1+2*g+p-x/20*(5+28*g+24*y+8*p*g+6*p-x/42*(61+662*g+1320*y+720*y*g))))/h)}else i=s.sK*(0,l.A)(c),r=0;else{var _=Math.exp(u/this.k0),b=.5*(_-1/_),w=this.lat0+c/this.k0,M=Math.cos(w);e=Math.sqrt((1-Math.pow(M,2))/(1+Math.pow(b,2))),i=Math.asin(e),c<0&&(i=-i),r=0===b&&0===M?0:(0,a.A)(Math.atan2(b,M)+this.long0)}return t.x=r,t.y=i,t}var h=["Fast_Transverse_Mercator","Fast Transverse Mercator"];e.default={init:u,forward:c,inverse:d,names:h}},5578:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);o.call(this,t),n(5895).call(this);var e,i=n(5616),r=this,l=this._exit,u=this._init,c=this._update;return this._build=function(){r.position()&&((e=r._generateQuads()).imgQuads&&e.imgQuads.sort(function(t,e){return t.pos[2]-e.pos[2]}),r.buildTime().modified())},this._checkQuadUpdate=function(t,e){r.layer().map().scheduleAnimationFrame(r._checkIfChanged)},this._checkIfChanged=function(){if(e&&e.vidQuads&&e.vidQuads.length){var t=!1,n=!1;i.each(e.vidQuads,function(e,i){i.video&&void 0!==i.video.HAVE_CURRENT_DATA&&(!i.video.seeking&&i.video.readyState>=i.video.HAVE_CURRENT_DATA&&(t=!0),i.video.paused&&!i.video.seeking||(n=!0))}),t&&r.renderer()&&r.renderer()._render(),n&&r.layer().map().scheduleAnimationFrame(r._checkIfChanged)}},this._renderColorQuads=function(t,n){if(e.clrQuads&&e.clrQuads.length){var r=t.globalAlpha,o=r;i.each(e.clrQuads,function(e,i){var r=n.gcsToDisplay({x:i.pos[0],y:i.pos[1]},null),s=n.gcsToDisplay({x:i.pos[3],y:i.pos[4]},null),l=n.gcsToDisplay({x:i.pos[6],y:i.pos[7]},null),u=n.gcsToDisplay({x:i.pos[9],y:i.pos[10]},null);i.opacity!==o&&(o=i.opacity,t.globalAlpha=o),t.fillStyle=a.convertColorToHex(i.color,!0),t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(s.x,s.y),t.lineTo(u.x,u.y),t.lineTo(l.x,l.y),t.closePath(),t.fill()}),o!==r&&(t.globalAlpha=r)}},this._renderImageAndVideoQuads=function(t,n){if(e.imgQuads&&e.imgQuads.length||e.vidQuads&&e.vidQuads.length){var o=t.globalAlpha,s=o,l=r.nearestPixel();if(void 0!==l){if(!0!==l&&a.isNonNullFinite(l))l=r.layer().map().zoom()>=l;t.imageSmoothingEnabled=!l}i.each([e.imgQuads,e.vidQuads],function(e,r){r&&i.each(r,function(e,i){var r,o,a;if(i.image)o=(r=i.image).width,a=r.height;else if(i.video&&(o=(r=i.video).videoWidth,a=r.videoHeight,r.seeking))return;if(r&&o&&a&&!(i.opacity<=0)){var l=n.gcsToDisplay({x:i.pos[0],y:i.pos[1]},null),u=n.gcsToDisplay({x:i.pos[6],y:i.pos[7]},null),c=n.gcsToDisplay({x:i.pos[9],y:i.pos[10]},null),d=Math.min(o,i.crop&&i.crop.x||o),h=Math.min(a,i.crop&&i.crop.y||a);if(t.setTransform((c.x-u.x)/d,(c.y-u.y)/d,(l.x-u.x)/h,(l.y-u.y)/h,u.x,u.y),i.opacity!==s&&(s=i.opacity,t.globalAlpha=s),i.crop){var f=Math.max(0,i.crop.left||0),p=Math.max(0,i.crop.top||0),m=Math.min(o,i.crop.right||o),g=Math.min(a,i.crop.bottom||a);o&&a&&d>0&&h>0&&m>f&&g>p&&t.drawImage(r,f,p,m-f,g-p,0,0,d,h)}else t.drawImage(r,0,0)}})}),s!==o&&(t.globalAlpha=o),t.setTransform(1,0,0,1,0,0),t.imageSmoothingEnabled=!0}},this._delayRender=function(){var t=!1;return e&&e.vidQuads&&e.vidQuads.length&&i.each(e.vidQuads,function(e,n){n.video&&void 0!==n.video.HAVE_CURRENT_DATA&&(t|=n.video.seeking&&n.delayRenderWhenSeeking)}),t},this._renderOnCanvas=function(t,n){e&&(r._renderImageAndVideoQuads(t,n),r._renderColorQuads(t,n))},this._update=function(){c.call(r),(r.buildTime().timestamp()<=r.dataTime().timestamp()||r.updateTime().timestamp()<r.timestamp())&&r._build(),r.updateTime().modified(),r.layer().map().scheduleAnimationFrame(r._checkIfChanged)},this._init=function(){u.call(r,t)},this._exit=function(){l.call(r)},r._init(t),this};i(s,o);var l={};l[o.capabilities.color]=!0,l[o.capabilities.image]=!0,l[o.capabilities.imageCrop]=!0,l[o.capabilities.imageFixedScale]=!0,l[o.capabilities.imageFull]=!1,l[o.capabilities.canvas]=!0,l[o.capabilities.video]=!0,l[o.capabilities.texture]=!1,r("canvas","quad",s,l),t.exports=s},5616:function(t,e){var n;
31
+ var i=n(5616),r=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;i.htmlPrefilter=function(t){return t.replace(r,"<$1></$2>")},n(7605),t.exports=Object.assign({annotationLayer:n(2075),camera:n(3578),choroplethFeature:n(3561),contourFeature:n(6761),domRenderer:n(9726),event:n(6409),feature:n(1275),featureLayer:n(6498),fetchQueue:n(5938),fileReader:n(703),geo_action:n(8695),graphFeature:n(3187),heatmapFeature:n(9163),imageTile:n(4912),isolineFeature:n(2586),geojsonReader:n(5173),gridFeature:n(2499),layer:n(5156),lineFeature:n(9281),map:n(6211),mapInteractor:n(7908),markerFeature:n(2225),meshFeature:n(6124),object:n(1338),osmLayer:n(4880),pathFeature:n(2266),pointFeature:n(7541),polygonFeature:n(6645),quadFeature:n(3842),pixelmapFeature:n(7761),pixelmapLayer:n(534),renderer:n(2274),sceneObject:n(5402),textFeature:n(6546),tile:n(5289),tileCache:n(9123),tileLayer:n(9264),timestamp:n(77),trackFeature:n(338),transform:n(5325),typedef:n(3170),vectorFeature:n(6858),inherit:n(4626),version:n(4081),sha:n(9079),annotation:n(4655),util:n(642),jQuery:i,canvas:n(8074),svg:n(6488),vtkjs:n(394),webgl:n(8635),gui:n(4812),vgl:n(1611)},n(1098)),window&&!window.$&&(window.$=i),window&&!window.jQuery&&(window.jQuery=i),window&&!window.geojsMap&&(window.geojsMap=function(){var t=i(".geojs-map").map(function(t,e){return i(e).data("data-geojs-map")});return 0===t.length?void 0:1===t.length?t[0]:t})},2266:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=this,n=this._init;return this.featureType="path",this.position=function(t){return void 0===t?e.style("position"):(t!==e.style("position")&&(e.style("position",t),e.dataTime().modified(),e.modified()),e)},this._init=function(t){n.call(e,t);var i=Object.assign({},{strokeWidth:1,strokeColor:{r:1,g:1,b:1},position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t}},void 0===t.style?{}:t.style);return void 0!==t.position&&(i.position=t.position),e.style(i),i.position&&e.position(i.position),e.dataTime().modified(),e},this._init(t),this};i(o,r),t.exports=o},2274:function(t,e,n){var i=n(4626),r=n(1338),o=function(t){"use strict";if(!(this instanceof o))return new o(t);r.call(this);var e=this,n=0,i=0,a=void 0===(t=t||{}).layer?null:t.layer,s=void 0===t.canvas?null:t.canvas,l=!1;return this.layer=function(){return a},this.canvas=function(t){return void 0===t?s:(s=t,e.modified(),e)},this.map=function(){return a?a.map():null},this.initialized=function(t){return void 0===t?l:(l=t,e)},this.api=function(){throw new Error("Should be implemented by derived classes")},this.width=function(){return n},this.height=function(){return i},this._setWidthHeight=function(t,r){return n=t,i=r,e},this._init=function(){return e},this._resize=function(t,n,i,r){return e._setWidthHeight(i,r),e},this._render=function(){return e},this};i(o,r),t.exports=o},2308:function(t,e,n){"use strict";function i(){}function r(t){return t}n.r(e),n.d(e,{forward:function(){return r},init:function(){return i},inverse:function(){return r},names:function(){return o}});var o=["longlat","identity"];e.default={init:i,forward:r,inverse:r,names:o}},2311:function(t){t.exports=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}},2337:function(t){t.exports=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}},2340:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}},2493:function(t,e,n){var i=n(4626),r=n(1098).registerRenderer,o=n(2274),a=function(t){"use strict";var e=a.d3,i=n(5005),r=n(642),s=n(6409),l=n(4765);if(!(this instanceof a))return new a(t);o.call(this,t);var u=this._exit;i.call(this,t),t=t||{};var c=this,d=null,h={},f=null,p=null,m=1,g={dx:0,dy:0,rx:0,ry:0,rotation:0},y={},v={},x=null,_=null;function b(t){return t?x.select(".group-"+t):x.select(".group-"+c._svgid())}function w(){var t=c.layer().map(),e=t.size().width,n=t.size().height;if(!e||!n)throw new Error("Map layer has size 0");c._setWidthHeight(e,n),p=Math.pow(e*e+n*n,.5),f={upperLeft:t.displayToGcs({x:0,y:0},null),lowerRight:t.displayToGcs({x:e,y:n},null),center:t.displayToGcs({x:e/2,y:n/2},null)}}return this._convertColor=function(t,n){return t=r.ensureFunction(t),n=n||function(){return!0},function(){var i="none";return n.apply(c,arguments)&&(i=t.apply(c,arguments)).hasOwnProperty("r")&&i.hasOwnProperty("g")&&i.hasOwnProperty("b")&&(i=e.rgb(255*i.r,255*i.g,255*i.b)),i}},this._convertScale=function(t){return t=r.ensureFunction(t),function(){return t.apply(c,arguments)/m}},this._setTransform=function(){if(f||w(),d){var t,e,n,i,r,o,a=c.layer().map(),s=a.gcsToDisplay(f.upperLeft,null),l=a.gcsToDisplay(f.lowerRight,null),u=a.gcsToDisplay(f.center,null),h=b();n=Math.sqrt(Math.pow(l.y-s.y,2)+Math.pow(l.x-s.x,2))/p,i=a.rotation(),r=-c.width()/2,o=-c.height()/2,t=n*r+u.x,e=n*o+u.y,i||(t=Math.round(t),e=Math.round(e));var y="matrix("+[n,0,0,n,t,e].join()+")";i&&(y+=" rotate("+[180*i/Math.PI,-r,-o].join()+")"),h.attr("transform",y),m=n,g.dx=t,g.dy=e,g.rx=r,g.ry=o,g.rotation=i}},this.baseToLocal=function(t){if(t={x:(t.x-g.dx)/m,y:(t.y-g.dy)/m},g.rotation){var e=Math.sin(-g.rotation),n=Math.cos(-g.rotation),i=t.x+g.rx,r=t.y+g.ry;t={x:i*n-r*e-g.rx,y:i*e+r*n-g.ry}}return t},this.localToBase=function(t){if(g.rotation){var e=Math.sin(g.rotation),n=Math.cos(g.rotation),i=t.x+g.rx,r=t.y+g.ry;t={x:i*n-r*e-g.rx,y:i*e+r*n-g.ry}}return t={x:t.x*m+g.dx,y:t.y*m+g.dy}},this._init=function(t){if(!c.canvas()){var n;t.widget=t.widget||!1,(x="d3Parent"in t?e.select(t.d3Parent).append("svg"):e.select(c.layer().node().get(0)).append("svg")).attr("display","block");var i=(_=x.append("defs")).append("filter").attr("id","geo-highlight").attr("x","-100%").attr("y","-100%").attr("width","300%").attr("height","300%");i.append("feMorphology").attr("operator","dilate").attr("radius",2).attr("in","SourceAlpha").attr("result","dilateOut"),i.append("feGaussianBlur").attr("stdDeviation",5).attr("in","dilateOut").attr("result","blurOut"),i.append("feColorMatrix").attr("type","matrix").attr("values","-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0").attr("in","blurOut").attr("result","invertOut"),i.append("feBlend").attr("in","SourceGraphic").attr("in2","invertOut").attr("mode","normal"),t.widget||(n=t.canvas||x.append("g")),(i=_.append("filter").attr("id","geo-blur").attr("x","-100%").attr("y","-100%").attr("width","300%").attr("height","300%")).append("feGaussianBlur").attr("stdDeviation",20).attr("in","SourceGraphic"),d=c.layer().sticky(),x.attr("class",c._svgid()),x.attr("width",c.layer().node().width()),x.attr("height",c.layer().node().height()),t.widget?c.canvas(x):(n.attr("class","group-"+c._svgid()),c.canvas(n))}return c._setTransform(),c},this.api=function(){return a.apiname},this.scaleFactor=function(){return m},this._resize=function(t,e,n,i){return f||w(),x.attr("width",n),x.attr("height",i),c._setTransform(),c._setWidthHeight(n,i),c.layer().geoTrigger(l,{scale:m},!0),c},this._exit=function(){h={},c.canvas().remove(),x.remove(),x=void 0,_.remove(),_=void 0,y={},v={},u()},this._definitions=function(){return _},this._drawFeatures=function(t){return h[t.id]={data:t.data,index:t.dataIndex,style:t.style,visible:t.visible,attributes:t.attributes,classes:t.classes,append:t.append,onlyRenderNew:t.onlyRenderNew,sortByZ:t.sortByZ,parentId:t.parentId},c.__render(t.id,t.parentId)},this.__render=function(t,e){var n;if(void 0===t){for(n in h)h.hasOwnProperty(n)&&c.__render(n);return c}return e?c._renderFeature(t,e):(y[t]=!0,c.layer().map().scheduleAnimationFrame(c._renderFrame)),c},this._scheduleUpdate=function(){c.layer().map().scheduleAnimationFrame(c._renderFrame)},this._renderFrame=function(){var t;for(t in v)c.select(t).remove(),_.selectAll("."+t).remove();v={};var e=y;for(t in y={},e)e.hasOwnProperty(t)&&c._renderFeature(t);for(t in h)h.hasOwnProperty(t)&&void 0===e[t]&&c.select(t).attr("visibility",!h[t].visible||h[t].visible()?"visible":"hidden")},this._renderFeature=function(t,e){if(!h[t])return c;c.select(t).remove();var n,i,r=h[t].data,o=h[t].index,a=h[t].style,s=h[t].visible,l=h[t].attributes,u=h[t].classes,d=h[t].append,f=c.select(t,e).data(r,o);return n=f.enter().append(d),f.exit().remove(),function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}(i=n,l),i.attr("class",u.concat([t]).join(" ")),function(t,e){var n,i,r;function o(){return e.fill.apply(c,arguments)?null:"none"}function a(){return e.stroke.apply(c,arguments)?null:"none"}for(n in e)e.hasOwnProperty(n)&&(r=null,i=null,"strokeColor"===n?(i="stroke",r=c._convertColor(e[n],e.stroke)):"stroke"===n&&e[n]&&!e.hasOwnProperty("strokeColor")?(i="stroke",r=a):"strokeWidth"===n?(i="stroke-width",r=c._convertScale(e[n])):"strokeOpacity"===n?(i="stroke-opacity",r=e[n]):"fillColor"===n?(i="fill",r=c._convertColor(e[n],e.fill)):"fill"!==n||e.hasOwnProperty("fillColor")?"fillOpacity"===n?(i="fill-opacity",r=e[n]):"lineCap"===n?(i="stroke-linecap",r=e[n]):"lineJoin"===n?(i="stroke-linejoin",r=e[n]):"miterLimit"===n&&(i="stroke-miterlimit",r=e[n]):(i="fill",r=o),i&&t.style(i,r))}(i,a),s&&i.attr("visibility",s()?"visible":"hidden"),n.size()&&h[t].sortByZ&&f.sort(function(t,e){return(t.zIndex||0)-(e.zIndex||0)}),c},this.select=function(t,e){return b(e).selectAll("."+t)},this._removeFeature=function(t){return v[t]=!0,c.layer().map().scheduleAnimationFrame(c._renderFrame),delete h[t],y[t]&&delete y[t],c},this.draw=function(){},this.layer().geoOn(s.pan,c._setTransform),this.layer().geoOn(s.rotate,c._setTransform),this.layer().geoOn(s.zoom,function(){c._setTransform(),c.__render(),c.layer().geoTrigger(l,{scale:m},!0)}),this.layer().geoOn(s.resize,function(t){c._resize(t.x,t.y,t.width,t.height)}),this._init(t),this};a.apiname="svg",i(a,o),r("svg",a),r("d3",a),a.supported=function(){delete a.d3;try{a.d3=n(3893),a.d3&&a.d3.rgb||(a.d3=void 0)}catch(t){}return void 0!==a.d3},a.fallback=function(){return null},a.supported(),t.exports=a},2499:function(t,e,n){var i=n(4626),r=n(6124),o=function(t){"use strict";if(!(this instanceof o))return new o(t);var e=n(642),i=n(5905);t=t||{},r.call(this,t);var a=this,s=this._init;return this._createGrids=function(){return i.createColoredMesh(a,!0)},this.grid=a.mesh,this._init=function(t){s.call(a,t);var n=Object.assign({},{opacity:1,value:function(t,n){return e.isNonNullFinite(t)?t:a.position()(t,n).z},position:function(t){return t||{x:0,y:0}},origin:function(t){return t.length>=3?[t[0],t[1],0]:[0,0,0]}},void 0===t.style?{}:t.style);a.style(n),a.grid(Object.assign({},{minColor:"black",minOpacity:0,maxColor:"black",maxOpacity:0,colorRange:[{r:.07514311,g:.468049805,b:1},{r:.468487184,g:.588057293,b:1},{r:.656658579,g:.707001303,b:1},{r:.821573924,g:.837809045,b:1},{r:.943467973,g:.943498599,b:.943398095},{r:1,g:.788626485,b:.750707739},{r:1,g:.6289553,b:.568237474},{r:1,g:.472800903,b:.404551679},{r:.916482116,g:.236630659,b:.209939162}]},t.mesh||{},t.grid||{})),(t.mesh||t.grid)&&a.dataTime().modified()},this._init(t),this};i(o,r),t.exports=o},2508:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*o-l*r,d=u*r+l*i-a*o,h=u*o+a*r-s*i,f=-a*i-s*r-l*o;return t[0]=c*u+f*-a+d*-l-h*-s,t[1]=d*u+f*-s+h*-a-c*-l,t[2]=h*u+f*-l+c*-s-d*-a,t[3]=e[3],t}},2513:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return d}});var i=n(7e3),r={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},o={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function a(){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||"Quadrilateralized Spherical Cube",this.lat0>=i.sK-i.Vj/2?this.face=r.TOP:this.lat0<=-(i.sK-i.Vj/2)?this.face=r.BOTTOM:Math.abs(this.long0)<=i.Vj?this.face=r.FRONT:Math.abs(this.long0)<=i.sK+i.Vj?this.face=this.long0>0?r.RIGHT:r.LEFT:this.face=r.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function s(t){var e,n,a,s,l,d,h={x:0,y:0},f={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===r.TOP)s=i.sK-e,n>=i.Vj&&n<=i.sK+i.Vj?(f.value=o.AREA_0,a=n-i.sK):n>i.sK+i.Vj||n<=-(i.sK+i.Vj)?(f.value=o.AREA_1,a=n>0?n-i.DF:n+i.DF):n>-(i.sK+i.Vj)&&n<=-i.Vj?(f.value=o.AREA_2,a=n+i.sK):(f.value=o.AREA_3,a=n);else if(this.face===r.BOTTOM)s=i.sK+e,n>=i.Vj&&n<=i.sK+i.Vj?(f.value=o.AREA_0,a=-n+i.sK):n<i.Vj&&n>=-i.Vj?(f.value=o.AREA_1,a=-n):n<-i.Vj&&n>=-(i.sK+i.Vj)?(f.value=o.AREA_2,a=-n-i.sK):(f.value=o.AREA_3,a=n>0?-n+i.DF:-n-i.DF);else{var p,m,g,y,v,x;this.face===r.RIGHT?n=c(n,+i.sK):this.face===r.BACK?n=c(n,+i.DF):this.face===r.LEFT&&(n=c(n,-i.sK)),y=Math.sin(e),v=Math.cos(e),x=Math.sin(n),p=v*Math.cos(n),m=v*x,g=y,this.face===r.FRONT?a=u(s=Math.acos(p),g,m,f):this.face===r.RIGHT?a=u(s=Math.acos(m),g,-p,f):this.face===r.BACK?a=u(s=Math.acos(-p),g,-m,f):this.face===r.LEFT?a=u(s=Math.acos(-m),g,p,f):(s=a=0,f.value=o.AREA_0)}return d=Math.atan(12/i.DF*(a+Math.acos(Math.sin(a)*Math.cos(i.Vj))-i.sK)),l=Math.sqrt((1-Math.cos(s))/(Math.cos(d)*Math.cos(d))/(1-Math.cos(Math.atan(1/Math.cos(a))))),f.value===o.AREA_1?d+=i.sK:f.value===o.AREA_2?d+=i.DF:f.value===o.AREA_3&&(d+=1.5*i.DF),h.x=l*Math.cos(d),h.y=l*Math.sin(d),h.x=h.x*this.a+this.x0,h.y=h.y*this.a+this.y0,t.x=h.x,t.y=h.y,t}function l(t){var e,n,a,s,l,u,d,h,f,p,m,g,y={lam:0,phi:0},v={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?v.value=o.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(v.value=o.AREA_1,e-=i.sK):t.x<0&&-t.x>=Math.abs(t.y)?(v.value=o.AREA_2,e=e<0?e+i.DF:e-i.DF):(v.value=o.AREA_3,e+=i.sK),f=i.DF/12*Math.tan(e),l=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),u=Math.atan(l),(d=1-(a=Math.cos(e))*a*(s=Math.tan(n))*s*(1-Math.cos(Math.atan(1/Math.cos(u)))))<-1?d=-1:d>1&&(d=1),this.face===r.TOP)h=Math.acos(d),y.phi=i.sK-h,v.value===o.AREA_0?y.lam=u+i.sK:v.value===o.AREA_1?y.lam=u<0?u+i.DF:u-i.DF:v.value===o.AREA_2?y.lam=u-i.sK:y.lam=u;else if(this.face===r.BOTTOM)h=Math.acos(d),y.phi=h-i.sK,v.value===o.AREA_0?y.lam=-u+i.sK:v.value===o.AREA_1?y.lam=-u:v.value===o.AREA_2?y.lam=-u-i.sK:y.lam=u<0?-u-i.DF:-u+i.DF;else{var x,_,b;f=(x=d)*x,_=(f+=(b=f>=1?0:Math.sqrt(1-f)*Math.sin(u))*b)>=1?0:Math.sqrt(1-f),v.value===o.AREA_1?(f=_,_=-b,b=f):v.value===o.AREA_2?(_=-_,b=-b):v.value===o.AREA_3&&(f=_,_=b,b=-f),this.face===r.RIGHT?(f=x,x=-_,_=f):this.face===r.BACK?(x=-x,_=-_):this.face===r.LEFT&&(f=x,x=_,_=-f),y.phi=Math.acos(-b)-i.sK,y.lam=Math.atan2(_,x),this.face===r.RIGHT?y.lam=c(y.lam,-i.sK):this.face===r.BACK?y.lam=c(y.lam,-i.DF):this.face===r.LEFT&&(y.lam=c(y.lam,+i.sK))}0!==this.es&&(p=y.phi<0?1:0,m=Math.tan(y.phi),g=this.b/Math.sqrt(m*m+this.one_minus_f_squared),y.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),p&&(y.phi=-y.phi));return y.lam+=this.long0,t.x=y.lam,t.y=y.phi,t}function u(t,e,n,r){var a;return t<i.H0?(r.value=o.AREA_0,a=0):(a=Math.atan2(e,n),Math.abs(a)<=i.Vj?r.value=o.AREA_0:a>i.Vj&&a<=i.sK+i.Vj?(r.value=o.AREA_1,a-=i.sK):a>i.sK+i.Vj||a<=-(i.sK+i.Vj)?(r.value=o.AREA_2,a=a>=0?a-i.DF:a+i.DF):(r.value=o.AREA_3,a+=i.sK)),a}function c(t,e){var n=t+e;return n<-i.DF?n+=i.JM:n>+i.DF&&(n-=i.JM),n}var d=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];e.default={init:a,forward:s,inverse:l,names:d}},2586:function(t,e,n){var i=n(4626),r=n(6124),o=n(1098),a=n(642),s={17:[{l0:1,h0:2,l1:0,h1:2}],18:[{l0:0,h0:1,l1:2,h1:1}],20:[{l0:2,h0:0,l1:1,h1:0}],22:[{l0:2,h0:0,l1:2,h1:1}],21:[{l0:1,h0:2,l1:1,h1:0}],19:[{l0:0,h0:1,l1:0,h1:2}],1:[{l0:2,h0:3,l1:1,h1:3}],2:[{l0:0,h0:2,l1:3,h1:2}],4:[{l0:3,h0:1,l1:0,h1:1}],8:[{l0:1,h0:0,l1:2,h1:0}],14:[{l0:3,h0:1,l1:3,h1:2}],13:[{l0:2,h0:3,l1:2,h1:0}],11:[{l0:1,h0:0,l1:1,h1:3}],7:[{l0:0,h0:2,l1:0,h1:1}],3:[{l0:0,h0:2,l1:1,h1:3}],10:[{l0:1,h0:0,l1:3,h1:2}],12:[{l0:3,h0:1,l1:2,h1:0}],5:[{l0:2,h0:3,l1:0,h1:1}],6:[{l0:0,h0:2,l1:0,h1:1},{l0:3,h0:1,l1:3,h1:2}],9:[{l0:1,h0:0,l1:1,h1:3},{l0:2,h0:3,l1:2,h1:0}]},l=function(t){"use strict";if(!(this instanceof l))return new l(t);var e=n(5325),i=n(6409),u=n(6546);t=t||{},r.call(this,t);var c,d,h,f,p,m=this,g=this.draw,y=this._exit,v=this._init,x=this.modified,_=this._update;return this.featureType="isoline",this.contour=m.mesh,this.isoline=m.mesh,this._createIsolines=function(){var t,e=m.style.get("value"),n=void 0!==m.style("used")?m.style.get("used"):function(t,n){return a.isNonNullFinite(e(t,n))},i=!1,r=[],o=m._createMesh({used:n,value:e});return(t=m._getValueList(o)).length?(t.forEach(function(t){var e=m._isolinesForValue(o,t);e.length&&(r=r.concat(e),i=i||!!t.label)}),{lines:r,mesh:o,values:t,hasLabels:i}):{}},this._getValueList=function(t){var e,n,i,r,o,s,l,u=m.isoline,c=u.get("values")(t),d=u.get("spacing")(t),h=u.get("count")(t),f=u.get("autofit")(t),p=u.get("levels")(t);if(!t.numVertices||!t.numElements)return[];if(e=a.getMinMaxValues(t.value,u.get("min")(t),u.get("max")(t),!0),t.minValue=e.min,t.maxValue=e.max,(n=t.maxValue-t.minValue)<=0)return[];if(Array.isArray(c))c=(c=c.map(function(t,e){return{value:void 0!==t.value?t.value:t,position:e,level:t.level}})).filter(function(e){return e.value>=t.minValue&&e.value<=t.maxValue});else if(d||f)for(d||(i=n/(2*h/3),o=Math.floor(Math.log10(i)),s=Math.max(0,-o),d=(i=(i/=r=Math.pow(10,o))>=5?5:i>=2?2:1)*r),c=[],l=Math.ceil(t.minValue/d);l<=Math.floor(t.maxValue/d);l+=1)c.push({value:l*d,position:l,fixedDigits:s});else for(c=Array(h),l=0;l<h;l+=1)c[l]={value:t.minValue+n*(l+1)/(h+1),position:l+1};return p.length&&c.forEach(function(t,e){if(void 0===t.level){t.level=0;for(var n=0,i=p[0];n<p.length&&!(t.position%i);i*=p[n+=1])t.level=n+1}if(u.get("label")(t,t.position)){var r=u.get("labelText")(t,t.position);void 0===r&&(r=void 0!==t.fixedDigits?""+parseFloat(t.value.toFixed(t.fixedDigits)):""+t.value),r&&(t.label=r)}}),c},this._addSegment=function(t,e,n){var i,r,o,a,s,l,u=[e,n],c=t.length;for(t.push(u),r=0;r<2;r+=1){for(i=c-1;i>=0;i-=1){if(a=(o=t[i])[0],s=o[o.length-1],n[0]===a[0]&&n[1]===a[1])l=u.concat(o.slice(1));else{if(e[0]!==s[0]||e[1]!==s[1])continue;l=o.concat(u.slice(1))}t.splice(c,1),t[i]=u=l,c=i,e=u[0],n=u[u.length-1];break}if(i<0)break}return t},this._chainVertex=function(t,e,n){var i=n[0],r=n[1],o=3*i,a=3*r,s=(e.value-t.value[i])/(t.value[r]-t.value[i]),l=1-s;return{x:t.pos[o]*l+t.pos[a]*s,y:t.pos[o+1]*l+t.pos[a+1]*s,z:t.pos[o+2]*l+t.pos[a+2]*s}},this._isolinesForValue=function(t,e){var n,i,r,o,a=e.value,l=Array(t.value.length),u=[];for(n=l.length-1;n>=0;n-=1)l[n]=t.value[n]<=a?0:1;var c=t.verticesPerElement,d="square"===t.shape,h=t.elements,f=h.length;for(i=0;i<f;i+=c){if(d){if(0===(r=8*l[h[i]]+4*l[h[i+1]]+2*l[h[i+2]]+l[h[i+3]])||15===r)continue}else if(16===(r=16+4*l[h[i]]+2*l[h[i+1]]+l[h[i+2]])||23===r)continue;s[r].forEach(function(t){u=m._addSegment(u,[h[i+t.l0],h[i+t.h0]],[h[i+t.l1],h[i+t.h1]])})}return o=u.map(function(n){var i=[];return n.forEach(function(n){var r=m._chainVertex(t,e,n);i.length&&r.x===i[i.length-1].x&&r.y===i[i.length-1].y||i.push(r)}),i.closed=i[0].x===i[i.length-1].x&&i[0].y===i[i.length-1].y,i.value=e.value,i.level=e.level,i.position=e.position,i.label=e.label,i}).filter(function(t){return t.length>1}),o},this.modified=function(){var t=x();return h&&h.modified(),p&&p.modified(),t},this.labelPositions=function(){if(m.dataTime().timestamp()>=m.buildTime().timestamp()&&m._build(),d=null,!p)return m;if(!(c&&c.hasLabels&&c.lines&&c.lines.length))return p.data([]),m;var t=m.isoline,n=t.get("labelSpacing"),i=t.get("labelOffset"),r=t.get("labelViewport")(c.mesh),o=m.gcs(),s=m.layer().map(),l=s.gcs(),u=s.rotation(),h=s.size(),f=[],g=0;return c.lines.forEach(function(t,c){if(t.label){var d,p,m,y,v,x,_,b,w,M,A,E=n(t.value,t.value.position),T=i(t.value,t.value.position)||0,S=s.gcsToDisplay(t,o),C=0;if(!(E<=0||isNaN(E))&&(g=Math.max(E,g),T=T+.5-Math.floor(T+.5),d=S.map(function(e,n){if(!t.closed&&n+1===S.length)return 0;var i=Math.sqrt(a.distance2dSquared(e,S[n+1<S.length?n+1:0]));return C+=i,i}),p=Math.floor(C/E)))for(A=e.transformCoordinates(o,l,t),y=(m=C/p)*T,v=0,x=0;x<S.length;x+=1){for(;v+d[x]>=y;)_=x+1===S.length?0:x+1,w=1-(b=(y-v)/d[x]),y+=m,r>0&&((M={x:S[x].x*w+S[_].x*b,y:S[x].y*w+S[_].y*b}).x<-r||M.x>h.width+r||M.y<-r||M.y>h.height+r)||f.push({x:A[x].x*w+A[_].x*b,y:A[x].y*w+A[_].y*b,z:A[x].z*w+A[_].z*b,line:t,rotation:Math.atan2(S[x].y-S[_].y,S[x].x-S[_].x)-u});v+=d[x]}}}),p.gcs(l),p.data(f),p.style("renderThreshold",2*g),d={zoom:s.zoom(),center:s.center(),rotation:u,size:h,labelViewport:r,maxSpacing:g,labelAutoUpdate:t.get("labelAutoUpdate")(c.mesh)},m},this.lastLabelPositions=function(){return Object.assign({},d)},this._updateLabelPositions=function(){var t=d;if(!t||!t.labelAutoUpdate)return m;var e=m.layer().map(),n=e.zoom(),i=e.size(),r=!!(Math.abs(n-t.zoom)>=2);if(!r&&t.labelViewport>0){var o=Math.sqrt(a.distance2dSquared(e.gcsToDisplay(e.center()),e.gcsToDisplay(t.center)))*Math.pow(2,t.zoom-n),s=t.labelViewport/2-2*t.maxSpacing-Math.max(i.width-t.size.width,i.height-t.size.height,0);r=r||o>=s}return r&&m.labelPositions().draw(),m},this._build=function(){if((c=m._createIsolines())&&c.lines&&c.lines.length){h||(h=m.layer().createFeature("line",{selectionAPI:!1,gcs:m.gcs(),visible:m.visible(void 0,!0),style:{closed:function(t){return t.closed}}}),m.dependentFeatures([h]));var t=m.style();if(h.data(c.lines).style({antialiasing:t.antialiasing,lineCap:t.lineCap,lineJoin:t.lineJoin,miterLimit:t.miterLimit,strokeWidth:t.strokeWidth,strokeStyle:t.strokeStyle,strokeColor:t.strokeColor,strokeOffset:t.strokeOffset,strokeOpacity:t.strokeOpacity}),c.hasLabels){if(!p){if(!(o.registries.features[m.layer().rendererName()]||{}).text){var e=o.rendererForFeatures(["text"]);f=o.createLayer("feature",m.layer().map(),{renderer:e}),m.layer().addChild(f),m.layer().node().append(f.node())}p=(f||m.layer()).createFeature("text",{selectionAPI:!1,gcs:m.gcs(),visible:m.visible(void 0,!0),style:{text:function(t){return t.line.label}}}).geoOn(i.pan,m._updateLabelPositions)}u.usedStyles.forEach(function(e){"visible"!==e&&p.style(e,t[e])}),m.dependentFeatures([h,p])}}else h&&h.data([]);return m.buildTime().modified(),m.labelPositions(),m},this._update=function(){return _.call(m),(m.dataTime().timestamp()>=m.buildTime().timestamp()||m.updateTime().timestamp()<=m.timestamp())&&m._build(),m.updateTime().modified(),m},this.draw=function(){var t=g();return h&&h.draw(),p&&p.draw(),t},this._exit=function(){p&&((f||m.layer())&&(f||m.layer()).deleteFeature(p),f&&m.layer()&&m.layer().removeChild(f)),h&&m.layer()&&m.layer().deleteFeature(h),p=null,f=null,h=null,m.dependentFeatures([]),y()},this._init=function(t){t=t||{},v.call(m,t);var e=Object.assign({},{opacity:1,value:function(t,e){return m.position()(t,e).z},rotateWithMap:!0,rotation:l.rotationFunction(),strokeWidth:function(t,e,n,i){return n.level+.5},strokeColor:{r:0,g:0,b:0},textStrokeColor:{r:1,g:1,b:1,a:.75},textStrokeWidth:2,fontSize:"12px"},void 0===t.style?{}:t.style);m.style(e),m.isoline(Object.assign({},{count:15,autofit:!0,levels:[5,5],label:function(t){return t.level>=1},labelSpacing:200,labelViewport:1e4,labelAutoUpdate:!0},t.mesh||{},t.contour||{},t.isoline||{})),(t.mesh||t.contour||t.isoline)&&m.dataTime().modified()},this};l.rotationFunction=function(t,e){var n={higher:function(t){return t.rotation},lower:function(t){return t.rotation+Math.PI},map:function(t){var e=t.rotation,n=a.wrapAngle(e,!0);return(n>Math.PI/2||n<-Math.PI/2)&&(e+=Math.PI),e},screen:function(t){var n=t.rotation,i=a.wrapAngle(n+e.rotation(),!0);return(i>Math.PI/2||i<-Math.PI/2)&&(n+=Math.PI),n}};return n[t]||n.higher},i(l,r),t.exports=l},2602:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7541),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5005),i=n(77);t=t||{},o.call(this,t),e.call(this);var r=this,s=this._init,l=this._update,u=i(),c={};return this._init=function(t){return s.call(r,t),r},this._build=function(){var t=r.data(),e=r.style.get(),n=r.renderer(),i=r.position();return l.call(r),t||(t=[]),c.id=r._svgid(),c.data=t,c.append="circle",c.attributes={r:n._convertScale(e.radius),cx:function(t){return r.featureGcsToDisplay(i(t)).x},cy:function(t){return r.featureGcsToDisplay(i(t)).y}},c.style=e,c.classes=["svgPointFeature"],c.visible=r.visible,r.renderer()._drawFeatures(c),u.modified(),r.updateTime().modified(),r},this._update=function(){return l.call(r),r.timestamp()>=u.timestamp()&&r._build(),r},this._init(t),this};i(a,o);var s={};s[o.capabilities.stroke]=!0,r("svg","point",a,s),t.exports=a},2612:function(t,e,n){var i=n(4626),r=n(1098).registerAnnotation,o=n(9281),a=n(642),s=n(6978).annotation,l=n(6978).state,u=n(6978).continuousVerticesActions,c=n(6978).continuousVerticesProcessAction,d=function(t){"use strict";if(!(this instanceof d))return new d(t);(t=a.deepMerge({},this.constructor.defaults,{style:{line:function(t){return Array(e.options("vertices").length).fill(t)},position:function(t,n){return e.options("vertices")[n]}},createStyle:{line:function(t){return Array(e.options("vertices").length).fill(t)},position:function(t,n){return e.options("vertices")[n]}}},t)).vertices=t.vertices||t.coordinates||[],delete t.coordinates,s.call(this,"line",t);var e=this,n=this.actions,i=this.processEditAction;this.features=function(){var t,n=e.options(),i=e.state();if(i===l.create)t=[{line:{line:n.vertices,style:e.styleForState(i)}}];else t=[{line:{line:n.vertices,style:e.styleForState(i)}}],i===l.edit&&e._addEditHandles(t,n.vertices,void 0,!e.style("closed"));return t},this._coordinates=function(t){return t&&e.options("vertices",t),e.options("vertices")},this.mouseMove=function(t){if(e.state()===l.create){var n=e.options("vertices");return n.length?(n[n.length-1]=t.mapgcs,!0):void 0}},this.mouseClick=function(t){var n=e.layer();if(e.state()===l.create&&n){var i,r=!!t.buttonsDown.right;if(t.buttonsDown.left||t.buttonsDown.right){var o=e.options("vertices");if(!t.buttonsDown.right||o.length)return t.handled=!0,t.buttonsDown.left&&(o.length?o.length>=2&&n.displayDistance(o[o.length-2],null,t.map,"display")<=n.options("adjacentPointProximity")?(i=!0,e._lastClick&&t.time-e._lastClick<n.options("dblClickTime")&&(r=!0)):o.length>=2&&n.displayDistance(o[0],null,t.map,"display")<=n.options("finalPointProximity")?r="close":o[o.length-1]=t.mapgcs:o.push(t.mapgcs),r||i||o.push(t.mapgcs),e._lastClick=t.time,e._lastClickVertexCount=o.length),r?o.length<3?"remove":(o.pop(),e.options("style").closed="close"===r,e.state(l.done),"done"):!i}}},this.actions=function(t){return u(e,n,t,"line",arguments)},this.processAction=function(t){return c(e,t,"line")},this._geojsonCoordinates=function(t){var n=e.coordinates(t);if(n&&!(n.length<2)&&e.state()!==l.create){for(var i=[],r=0;r<n.length;r+=1)i.push([n[r].x,n[r].y]);return i}},this._geojsonGeometryType=function(){return"LineString"},this._geojsonStyles=function(){return["closed","lineCap","lineJoin","strokeColor","strokeOffset","strokeOpacity","strokeWidth"]},this.processEditAction=function(t){return"vertex"===e._editHandle.handle.type?e._processEditActionVertex(t,!0):i.apply(e,arguments)},this.mouseClickEdit=function(t){var n,i=e.layer(),r=e._editHandle;if(e.state()===l.edit&&i&&t.buttonsDown.left&&r&&r.handle.selected&&"edge"===r.handle.type&&e.options("style").closed&&(t.handled=!0,e._lastClick&&t.time-e._lastClick<i.options("dblClickTime")&&(n=!0),e._lastClick=t.time,n)){var o=r.handle.index,a=e._coordinates(),s=a.slice(o+1).concat(a.slice(0,o+1));return e._coordinates(s),e.options("style").closed=!1,r.handle.index=void 0,!0}}};i(d,s),d.defaults=Object.assign({},s.defaults,{style:{strokeColor:{r:0,g:0,b:0},strokeOpacity:1,strokeWidth:3,closed:!1,lineCap:"butt",lineJoin:"miter"},highlightStyle:{strokeWidth:5},createStyle:{strokeColor:{r:0,g:0,b:1},strokeOpacity:1,strokeWidth:3,closed:!1,lineCap:"butt",lineJoin:"miter"}});var h={};h[o.capabilities.basic]=[l.create],r("line",d,h),t.exports=d},2649:function(t){t.exports=function(t,e,n,i,r){var o=1/Math.tan(e/2),a=1/(i-r);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(r+i)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*r*i*a,t[15]=0,t}},2664:function(t){t.exports=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=o,t[11]=e[14],t[12]=r,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},2678:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r}},2682:function(t){t.exports="/* pointFeature sprite fragment shader */\n\n/* pointFeature common fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float radiusVar;\nvarying float strokeWidthVar;\n\nvoid pointFeatureFragment(float rad) {\n vec4 strokeColor, fillColor;\n float endStep;\n // No stroke or fill implies nothing to draw\n if (rad > 1.0)\n discard;\n // If there is no stroke, the fill region should transition to nothing\n if (strokeColorVar.a == 0.0) {\n strokeColor = vec4(fillColorVar.rgb, 0.0);\n endStep = 1.0;\n } else {\n strokeColor = strokeColorVar;\n endStep = radiusVar / (radiusVar + strokeWidthVar);\n }\n // Likewise, if there is no fill, the stroke should transition to nothing\n if (fillColorVar.a == 0.0)\n fillColor = vec4(strokeColor.rgb, 0.0);\n else\n fillColor = fillColorVar;\n // Distance to antialias over. First number is in pixels\n float antialiasDist = 1.5 / (radiusVar + strokeWidthVar);\n if (rad < endStep) {\n float step = smoothstep(max(0.0, endStep - antialiasDist), endStep, rad);\n vec4 color = mix(fillColor, strokeColor, step);\n float step2 = smoothstep(max(0.0, 1.0 - antialiasDist), 1.0, rad);\n gl_FragColor = mix(color, vec4(color.rgb, 0.0), step2);\n } else {\n float step = smoothstep(max(0.0, 1.0 - antialiasDist), 1.0, rad);\n gl_FragColor = mix(strokeColor, vec4(strokeColor.rgb, 0.0), step);\n }\n}\n\n\n// the square/triangle shader defines unitVar\n\nvoid main () {\n // No stroke or fill implies nothing to draw\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0)\n discard;\n float rad = 2.0 * length(gl_PointCoord - vec2(0.5)); // distinct for sprite\n pointFeatureFragment(rad);\n}\n"},2709:function(t,e,n){var i=n(7541);t.exports=function(t,e){e=e||{},t._primitiveShapeAuto=!0,t._primitiveShape=i.primitiveShapes.auto,void 0!==i.primitiveShapes[e.primitiveShape]&&(t._primitiveShape=e.primitiveShape),t._primitiveShapeAuto=t._primitiveShape===i.primitiveShapes.auto,t._primitiveShapeAuto&&(t._primitiveShape=i.primitiveShapes.sprite,t._primitiveShapeAuto=!0),t._pointPolygon=function(e,n,r,o){var a;switch(t._primitiveShape){case i.primitiveShapes.triangle:a=[e,n-2*o,e-r*Math.sqrt(3),n+o,e+r*Math.sqrt(3),n+o];break;case i.primitiveShapes.square:a=[e-r,n+o,e-r,n-o,e+r,n+o,e-r,n-o,e+r,n-o,e+r,n+o];break;default:a=[e,n]}return a},t.verticesPerFeature=function(){return t._pointPolygon(0,0,1,1).length/2},t.primitiveShape=function(e,n){if(void 0===e)return n||!t._primitiveShapeAuto?t._primitiveShape:i.primitiveShapes.auto;if(void 0!==i.primitiveShapes[e]){var r=!1;e===i.primitiveShapes.auto?(r=!t._primitiveShapeAuto,t._primitiveShapeAuto=!0):(r=t._primitiveShapeAuto||t._primitiveShape!==e,t._primitiveShapeAuto=!1,t._primitiveShape=e),r&&(t.renderer().contextRenderer().removeActor(t.actors()[0]),t._init(!0),t.dataTime().modified())}return t}}},2710:function(t){t.exports=function(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t[3]=s+i*(n[3]-s),t}},2775:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}},2778:function(t,e,n){t.exports=function(t){"use strict";t=t||{};var e=n(1611),i=n(5325),r=n(642),o=n(428),a=n(4993);n(4084).call(this);var s,l,u=this,c=this._exit,d=null,h=null,f=null,p=null,m=null,g=null,y=null,v=null,x=void 0!==t.dynamicDraw&&t.dynamicDraw,_=this._init,b=this._update;function w(){var t=new e.shader(e.GL.VERTEX_SHADER);return t.setShaderSource(a),t}function M(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(o),t}return this.createGLMeshColored=function(t){var e,n,o,a,c,d,f,x,_,b=t.elements.length,w=[],M=h.geometryData();for(m.set([t.minColor.r,t.minColor.g,t.minColor.b,t.minColor.a]),g.set([t.maxColor.r,t.maxColor.g,t.maxColor.b,t.maxColor.a]),y.set(t.colorMap.length),v.set(t.stepped),e=-1;e<t.colorMap.length+1;e+=1)o=Math.max(0,Math.min(t.colorMap.length-1,e)),w.push(255*t.colorMap[o].r),w.push(255*t.colorMap[o].g),w.push(255*t.colorMap[o].b),w.push(255*t.colorMap[o].a);if(p.setColorTable(w),t.pos=i.transformCoordinates(u.gcs(),u.layer().map().gcs(),t.pos,3),(s=new Float32Array(u.style.get("origin")(t.pos)))[0]||s[1]||s[2])for(e=0;e<t.pos.length;e+=3)t.pos[e]-=s[0],t.pos[e+1]-=s[1],t.pos[e+2]-=s[2];for(l.setOrigin(s),d=r.getGeomBuffer(M,"pos",3*b),f=r.getGeomBuffer(M,"opacity",b),x=r.getGeomBuffer(M,"value",b),e=n=0;e<b;e+=1,n+=3)a=3*(o=t.elements[e]),d[n]=t.pos[a],d[n+1]=t.pos[a+1],d[n+2]=t.pos[a+2],c=t.elementValues?Math.floor(e/3):o,f[e]=t.opacity[c],x[e]=t.value[c];(_=M.primitive(0).indices())instanceof Uint16Array&&_.length===b||(_=new Uint16Array(b),M.primitive(0).setIndices(_)),M.boundsDirty(!0),h.modified(),h.boundsDirtyTimestamp().modified()},this._init=function(t){var n=e.blend(),i=e.shaderProgram(),r=e.material(),o=e.lookupTable(),a=e.geometryData(),s=new e.projectionUniform("projectionMatrix"),c=new e.uniform(e.GL.INT,"sampler2d"),b=w(),A=M(),E=e.vertexAttribute("pos"),T=e.vertexAttribute("value"),S=e.vertexAttribute("opacity"),C=e.sourceDataP3fv({name:"pos"}),k=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.One,{name:"value"}),P=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Two,{name:"opacity"}),O=new e.triangles;l=new e.modelViewOriginUniform("modelViewMatrix"),_.call(u,t),h=e.mapper({dynamicDraw:x}),i.addVertexAttribute(E,e.vertexAttributeKeys.Position),i.addVertexAttribute(T,e.vertexAttributeKeysIndexed.One),i.addVertexAttribute(S,e.vertexAttributeKeysIndexed.Two),i.addUniform(l),i.addUniform(s),m=new e.uniform(e.GL.FLOAT_VEC4,"minColor"),i.addUniform(m),g=new e.uniform(e.GL.FLOAT_VEC4,"maxColor"),i.addUniform(g),y=new e.uniform(e.GL.FLOAT,"steps"),i.addUniform(y),v=new e.uniform(e.GL.BOOL,"stepped"),i.addUniform(v),i.addShader(A),i.addShader(b),i.addUniform(c),o.setTextureUnit(7),c.set(7),(f=r).addAttribute(i),f.addAttribute(n),p=o,f.addAttribute(p),(d=e.actor()).setMaterial(f),d.setMapper(h),a.addSource(C),a.addSource(k),a.addSource(P),a.addPrimitive(O),a.computeBounds=function(){a.setBounds(0,0,0,0,0,0)},h.setGeometryData(a)},this.actors=function(){return d?[d]:[]},this._update=function(){b.call(u),(u.dataTime().timestamp()>=u.buildTime().timestamp()||u.updateTime().timestamp()<=u.timestamp())&&u._build(),d.setVisible(u.visible()),d.material().setBinNumber(u.bin()),u.updateTime().modified()},this._exit=function(){u.renderer().contextRenderer().removeActor(d),c()},this}},2869:function(t){t.exports=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t}},2889:function(t,e,n){"use strict";function i(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)}n.d(e,{A:function(){return i}})},2894:function(t,e,n){var i=n(5616),r=n(4626),o=n(7854),a=n(1098).registerWidget;n(615);var s=function(t){"use strict";if(!(this instanceof s))return new s(t);o.call(this,t);var e=n(6409),r=n(5325),a=n(642),l=n(2493).d3,u=this,c=this._exit,d=Object.assign({},{scale:1,maxWidth:200,maxHeight:"left"===t.orientation||"right"===t.orientation?200:20,orientation:"bottom",strokeWidth:2,tickLength:10,units:"si",distance:function(t,e,n){return"+proj=longlat +axis=enu"===n?Math.sqrt(a.distance2dSquared(t,e)):r.sphericalDistance(t,e,n)}},t);this._init=function(){return u._createCanvas(),u._appendCanvasToParent(),u.reposition(),l.select(u.canvas()).attr("width",d.maxWidth).attr("height",d.maxHeight),u.geoOn(e.pan,u._update),u._render(),u},this._exit=function(){u.geoOff(e.pan,u._update),c()},this._vertical=function(){return"left"===d.orientation||"right"===d.orientation},this._scaleValue=function(t,e,n){var i,r,o,a=[{multiple:1,digits:1},{multiple:1.5,digits:2},{multiple:2,digits:1},{multiple:3,digits:1},{multiple:5,digits:1},{multiple:8,digits:1}],l=(n=s.unitsTable[n]||n||s.unitsTable[d.units]||d.units)[0];return n.forEach(function(e){t>=e.scale*(e.minimum||1)&&(l=e)}),r=Math.floor(Math.log(t/l.scale)/Math.log(l.basis||10)),(a=l.multiples||a).forEach(function(e){var n=l.scale*e.multiple*Math.pow(10,r);n<=t&&(i=e,o=n)}),{html:(i.multiple*Math.pow(10,r)).toFixed(Math.max(0,-r+i.digits-1))+" "+l.unit,value:o,pixels:o/t*e,power:r,multiple:i,unitRecord:l,originalValue:t,originalPixels:e}},this._render=function(){var t,e,n,r,o,a,s=l.select(u.canvas()),c=u.layer().map(),h=d.maxWidth,f=d.maxHeight,p=d.strokeWidth,m=.5*p,g=d.tickLength,y=u._vertical();if(t=(y?d.maxHeight:d.maxWidth)-p,n={x:(e={x:(e=i(s.node()).offset()).left+("left"===d.orientation?h-m:m),y:e.top+("top"===d.orientation?f-m:m)}).x+(y?0:t),y:e.y+(y?t:0)},(r=d.distance(c.displayToGcs(e,null),c.displayToGcs(n,null),c.gcs())*d.scale)<=0||!isFinite(r))console.warn("The distance calculated for the scale is invalid: "+r);else{switch(o=u._scaleValue(r,t),y?f=o.pixels+p:h=o.pixels+p,s.attr("width",h).attr("height",f),s.select("polyline").empty()&&s.append("polyline").classed("geojs-scale-widget-bar",!0).attr("fill","none").attr("stroke-width",p),s.select("text").empty()&&s.append("text").classed("geojs-scale-widget-text",!0),d.orientation){case"bottom":a=[[m,g],[m,m],[h-m,m],[h-m,g]],s.select("text").attr("x",h/2).attr("y",2*p).attr("text-anchor","middle").attr("dominant-baseline","hanging");break;case"top":a=[[m,f-g],[m,f-m],[h-m,f-m],[h-m,f-g]],s.select("text").attr("x",h/2).attr("y",f-2*p).attr("text-anchor","middle").attr("dominant-baseline","alphabetic");break;case"left":a=[[h-g,m],[h-m,m],[h-m,f-m],[h-g,f-m]],s.select("text").attr("x",h-2*p).attr("y",f/2).attr("text-anchor","end").attr("dominant-baseline","middle");break;case"right":a=[[g,m],[m,m],[m,f-m],[g,f-m]],s.select("text").attr("x",2*p).attr("y",f/2).attr("text-anchor","start").attr("dominant-baseline","middle")}s.select("polyline").attr("points",a.map(function(t){return t.join(",")}).join(" ")),s.select("text").html(o.html)}},this._update=function(){u._render()},this.options=function(t,e){if(void 0===t){var n=Object.assign({},d);return n.position=u.position(void 0,!0),n}return"string"==typeof t&&void 0===e?"position"===t?u.position(void 0,!0):d[t]:(void 0===e?d=a.deepMerge(d,t):d[t]=e,(t.position||"position"===t)&&u.position(t.position||e),u._render(),u)}};r(s,o),s.unitsTable={si:[{unit:"nm",scale:1e-9},{unit:"μm",scale:1e-6},{unit:"mm",scale:.001},{unit:"m",scale:1},{unit:"km",scale:1e3}],miles:[{unit:"in",scale:.0254},{unit:"in",scale:.0254,basis:12,multiples:[{multiple:1,digits:1},{multiple:1.5,digits:2},{multiple:2,digits:1},{multiple:3,digits:1},{multiple:6,digits:1},{multiple:9,digits:1}]},{unit:"ft",scale:.3048},{unit:"mi",scale:1609.344}],decmiles:[{unit:"mi",scale:1609.344}]},s.areaUnitsTable={si:[{unit:"nm²",scale:1e-18},{unit:"μm²",scale:1e-12},{unit:"mm²",scale:1e-6},{unit:"m²",scale:1},{unit:"km²",scale:1e6}],hectares:[{unit:"ha",scale:1e4}],decmiles:[{unit:"mi²",scale:2589988.110336}],miles:[{unit:"in²",scale:64516e-8},{unit:"ft²",scale:.09290304},{unit:"mi²",scale:2589988.110336}],acres:[{unit:"pl",scale:25.29285264},{unit:"rd",scale:1011.7141056},{unit:"ac",scale:4046.8564224}]},s.formatUnit=function(t,e,n,i){if(null!=t){if(!Array.isArray(e)){if(!(n=n||s.unitsTable)||!n[e||"si"])return;e=n[e||"si"]}var r;for(r=0;r<e.length-1&&!(t<e[r+1].scale);r+=1);if(t/=(e=e[r]).scale,!((i=Math.max(0,-Math.ceil(Math.log10(t))+(void 0===i||i<0?3:i)))>10)){var o=t.toFixed(i);if(i){for(;"0"===o.substr(o.length-1);)o=o.substr(0,o.length-1);"."===o.substr(o.length-1)&&(o=o.substr(0,o.length-1))}return o+" "+e.unit}}},a("dom","scale",s),t.exports=s},2924:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u},dependsOn:function(){return a},init:function(){return s},names:function(){return l}});var i=n(6269);var r=n(3426),o=n(7e3),a="etmerc";function s(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*((0,i.A)(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*o.zq,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,r.default.init.apply(this),this.forward=r.default.forward,this.inverse=r.default.inverse}var l=["Universal Transverse Mercator System","utm"],u={init:s,names:l,dependsOn:a}},2926:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},2954:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5895);t=t||{},o.call(this,t),e.call(this);var i=this;return this._renderOnCanvas=function(t,e){var n,r,o,a,s,l=i.data(),u=i.position(),c=i.line(),d=i.style.get("strokeWidth"),h=i.style.get("strokeColor"),f=i.style.get("strokeOpacity"),p=i.style.get("lineCap"),m=i.style.get("lineJoin"),g=i.style.get("miterLimit")(l),y=i.style.get("closed"),v={},x={};l.forEach(function(e,l){if(!((r=c(e,l)).length<2)){for(x.closed=y(e,l),x.width=d(r[0],0,e,l),x.color=h(r[0],0,e,l),x.opacity=f(r[0],0,e,l),x.linecap=p(r[0],0,e,l),x.linejoin=m(r[0],0,e,l),x.strokeStyle="rgba("+255*x.color.g+", "+255*x.color.g+", "+255*x.color.b+", "+(void 0!==x.opacity?x.opacity:1)+")",v.strokeStyle===x.strokeStyle&&v.width===x.width&&v.linecap===x.linecap&&v.linejoin===x.linejoin&&v.miterlimit===x.miterlimit||(void 0!==v.strokeStyle&&t.stroke(),t.beginPath(),t.strokeStyle=x.strokeStyle,t.lineWidth=x.width,t.lineCap=x.linecap,t.lineJoin=x.linejoin,t.miterLimit=g),s=0;s<r.length;s+=1)o=i.featureGcsToDisplay(u(r[s],s,e,l)),s?t.lineTo(o.x,o.y):(a=o,t.moveTo(o.x,o.y));x.closed&&t.lineTo(a.x,a.y),n=v,v=x,x=n}}),void 0!==v.strokeStyle&&t.stroke()},this._init(t),this};i(a,o);var s={};s[o.capabilities.basic]=!0,s[o.capabilities.multicolor]=!1,r("canvas","line",a,s),t.exports=a},2971:function(t,e,n){var i=n(698),r=n(4626);i.node=function(){"use strict";if(!(this instanceof i.node))return new i.node;i.boundingObject.call(this);var t=null,e=null,n=!0;return this.material=function(){return e},this.setMaterial=function(t){return t!==e&&(e=t,this.modified(),!0)},this.visible=function(){return n},this.setVisible=function(t){return t!==n&&(n=t,this.modified(),!0)},this.parent=function(){return t},this.setParent=function(e){return e!==t&&(null!==t&&t.removeChild(this),t=e,this.modified(),!0)},this.boundsModified=function(){this.boundsDirtyTimestamp().modified(),null!==t&&t.boundsModified()},this},r(i.node,i.boundingObject)},3019:function(t,e,n){var i=n(7854),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e,r,o,s,l,u,c,d=n(2493).d3,h=n(6409),f=this,p=this._exit,m=t.width||20,g=t.height||160,y=t.width?.5*t.width:10;function v(t,e,n,i,r){var o=e.append("g"),a=r/1024;return o.append("g").append("g").attr("transform","translate("+n+","+i+") scale("+a+") translate(-512,-512)").append("path").attr("d",t).attr("class","geo-glyphicon"),o}c={white:"#f4f4f4",black:"#505050"},this.size=function(){return{width:m,height:g}},this._init=function(){f._createCanvas(),f._appendCanvasToParent(),f.reposition();var t=d.select(f.canvas()),n=f.layer().map();function i(e,i){var o=r.invert(d.pointer(event,t.node())[1]),a=n.zoomRange();o=(1-o)*(a.max-a.min)+a.min,i?n.transition({zoom:o,ease:d.easeCubicInOut,duration:500,done:f._update()}):(n.zoom(o),f._update()),e.stopPropagation()}function a(){d.select(this).attr("filter",null),u.selectAll("circle,rect,path").transition().duration(100).style("fill",function(t){return c[t.fill]||null}).style("stroke",function(t){return c[t.stroke]||null})}return t.attr("width",m).attr("height",g),e=d.scaleLinear().domain([-4,4]).range([0,m]),r=d.scaleLinear().domain([0,1]).range([1.5*m,g-1.5*m]),t=t.append("g").classed("geo-ui-slider",!0),u=t,(o=t.append("g")).append("circle").datum({fill:"white",stroke:null}).classed("geo-zoom-in",!0).attr("cx",e(0)).attr("cy",r(0)-m+2).attr("r",(m-2)/2).style("cursor","pointer").on("click",function(){var t=n.zoom();n.transition({zoom:t+1,ease:d.easeCubicInOut,duration:500})}).on("mousedown",function(t){t.stopPropagation()}),v("M512 81.92c-237.568 0-430.080 192.614-430.080 430.080 0 237.568 192.563 430.080 430.080 430.080s430.080-192.563 430.080-430.080c0-237.517-192.563-430.080-430.080-430.080zM564.326 564.326v206.182h-104.653v-206.182h-206.234v-104.653h206.182v-206.234h104.704v206.182h206.182v104.704h-206.182z",o,e(0),r(0)-m+2,m+4).style("cursor","pointer").style("pointer-events","none").select("path").datum({fill:"black",stroke:null}),(s=t.append("g")).append("circle").datum({fill:"white",stroke:null}).classed("geo-zoom-out",!0).attr("cx",e(0)).attr("cy",r(1)+m-2).attr("r",(m-2)/2).style("cursor","pointer").on("click",function(){var t=n.zoom();n.transition({zoom:t-1,ease:d.easeCubicInOut,duration:500})}).on("mousedown",function(t){t.stopPropagation()}),v("M512 81.92c-237.568 0-430.080 192.614-430.080 430.080 0 237.568 192.563 430.080 430.080 430.080s430.080-192.563 430.080-430.080c0-237.517-192.563-430.080-430.080-430.080zM770.56 459.674v104.704h-517.12v-104.704h517.12z",s,e(0),r(1)+m-2,m+4).style("cursor","pointer").style("pointer-events","none").select("path").datum({fill:"black",stroke:null}),t.append("rect").datum({fill:"white",stroke:"black"}).classed("geo-zoom-track",!0).attr("x",e(0)-m/6).attr("y",r(0)).attr("rx",m/10).attr("ry",m/10).attr("width",m/3).attr("height",g-3*m).style("cursor","pointer").on("click",function(t){i(t,!0)}),l=t.append("rect").datum({fill:"black",stroke:null}).classed("geo-zoom-nub",!0).attr("x",e(-4)).attr("y",r(.5)-y/2).attr("rx",3).attr("ry",3).attr("width",m).attr("height",y).style("cursor","pointer").on("mousedown",function(t){d.select(document).on("mousemove.geo.slider",function(){i(t)}),d.select(document).on("mouseup.geo.slider",function(){i(t),d.select(document).on(".geo.slider",null)}),t.stopPropagation()}),u.selectAll("*").on("mouseover",function(){d.select(this).attr("filter","url(#geo-highlight)"),u.selectAll("rect,path,circle").transition().duration(100).style("fill",function(t){return t.fill||null}).style("stroke",function(t){return t.stroke||null})}).on("mouseout",a),f.geoOn(h.zoom,f._update),a(),f._update(),f},this._exit=function(){f.geoOff(h.zoom,f._update),u.remove(),p()},this._update=function(t){var e=f.layer().map(),n=e.zoomRange(),i=e.zoom(),o=d.scaleLinear();i=(t=t||{}).value||i,o.domain([n.min,n.max]).range([1,0]).clamp(!0),l.attr("y",r(o(i))-y/2)}};r(a,i),o("dom","slider",a),t.exports=a},3021:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},3071:function(t){t.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},3074:function(t,e,n){var i=n(4092);t.exports=function(t,e,n){function r(t,e){return{id:n?n.segmentId():-1,start:t,end:e,myFill:{above:null,below:null},otherFill:null}}function o(t,e,i){return{id:n?n.segmentId():-1,start:t,end:e,myFill:{above:i.myFill.above,below:i.myFill.below},otherFill:null}}var a=i.create();function s(t,n){a.insertBefore(t,function(i){return function(t,n,i,r,o,a){var s=e.pointsCompare(n,o);return 0!==s?s:e.pointsSame(i,a)?0:t!==r?t?1:-1:e.pointAboveOrOnLine(i,r?o:a,r?a:o)?1:-1}(t.isStart,t.pt,n,i.isStart,i.pt,i.other.pt)<0})}function l(t,e){var n=function(t,e){var n=i.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return s(n,t.end),n}(t,e);return function(t,e,n){var r=i.node({isStart:!1,pt:e.end,seg:e,primary:n,other:t,status:null});t.other=r,s(r,t.pt)}(n,t,e),n}function u(t,e){var i=o(e,t.seg.end,t.seg);return function(t,e){n&&n.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,s(t.other,t.pt)}(t,e),l(i,t.primary)}function c(r,o){var s=i.create();function l(t){return s.findTransition(function(n){var i,r,o,a,s,l;return(i=t,r=n.ev,o=i.seg.start,a=i.seg.end,s=r.seg.start,l=r.seg.end,e.pointsCollinear(o,s,l)?e.pointsCollinear(a,s,l)||e.pointAboveOrOnLine(a,s,l)?1:-1:e.pointAboveOrOnLine(o,s,l)?1:-1)>0})}function c(t,i){var r=t.seg,o=i.seg,a=r.start,s=r.end,l=o.start,c=o.end;n&&n.checkIntersection(r,o);var d=e.linesIntersect(a,s,l,c);if(!1===d){if(!e.pointsCollinear(a,s,l))return!1;if(e.pointsSame(a,c)||e.pointsSame(s,l))return!1;var h=e.pointsSame(a,l),f=e.pointsSame(s,c);if(h&&f)return i;var p=!h&&e.pointBetween(a,l,c),m=!f&&e.pointBetween(s,l,c);if(h)return m?u(i,s):u(t,c),i;p&&(f||(m?u(i,s):u(t,c)),u(i,a))}else 0===d.alongA&&(-1===d.alongB?u(t,l):0===d.alongB?u(t,d.pt):1===d.alongB&&u(t,c)),0===d.alongB&&(-1===d.alongA?u(i,a):0===d.alongA?u(i,d.pt):1===d.alongA&&u(i,s));return!1}for(var d=[];!a.isEmpty();){var h=a.getHead();if(n&&n.vert(h.pt[0]),h.isStart){n&&n.segmentNew(h.seg,h.primary);var f=l(h),p=f.before?f.before.ev:null,m=f.after?f.after.ev:null;function g(){if(p){var t=c(h,p);if(t)return t}return!!m&&c(h,m)}n&&n.tempStatus(h.seg,!!p&&p.seg,!!m&&m.seg);var y,v=g();if(v){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&&(v.seg.myFill.above=!v.seg.myFill.above);else v.seg.otherFill=h.seg.myFill;n&&n.segmentUpdate(v.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){n&&n.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=m?m.seg.myFill.above:r,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)y=m?h.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:h.primary?o:r,h.seg.otherFill={above:y,below:y};n&&n.status(h.seg,!!p&&p.seg,!!m&&m.seg),h.other.status=f.insert(i.node({ev:h}))}else{var _=h.status;if(null===_)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(_.prev)&&s.exists(_.next)&&c(_.prev.ev,_.next.ev),n&&n.statusRemove(_.ev.seg),_.remove(),!h.primary){var b=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=b}d.push(h.seg)}a.getHead().remove()}return n&&n.done(),d}return t?{addRegion:function(t){for(var n,i=t[t.length-1],o=0;o<t.length;o++){n=i,i=t[o];var a=e.pointsCompare(n,i);0!==a&&l(r(a<0?n:i,a<0?i:n),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,n,i){return t.forEach(function(t){l(o(t.start,t.end,t),!0)}),n.forEach(function(t){l(o(t.start,t.end,t),!1)}),c(e,i)}}}},3084:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return d},init:function(){return c},inverse:function(){return h},names:function(){return f},ssfn_:function(){return u}});var i=n(7e3),r=n(9393),o=n(7072),a=n(851),s=n(6157),l=n(6269);function u(t,e,n){return e*=n,Math.tan(.5*(i.sK+t))*Math.pow((1-e)/(1+e),.5*n)}function c(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,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)<=i.H0&&(this.k0=.5*(1+(0,r.A)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=i.H0&&(this.lat0>0?this.con=1:this.con=-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)<=i.H0&&Math.abs(Math.cos(this.lat_ts))>i.H0&&(this.k0=.5*this.cons*(0,o.A)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/(0,a.A)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=(0,o.A)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(u(this.lat0,this.sinlat0,this.e))-i.sK,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function d(t){var e,n,r,o,s,c,d=t.x,h=t.y,f=Math.sin(h),p=Math.cos(h),m=(0,l.A)(d-this.long0);return Math.abs(Math.abs(d-this.long0)-Math.PI)<=i.H0&&Math.abs(h+this.lat0)<=i.H0?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*f+this.coslat0*p*Math.cos(m)),t.x=this.a*e*p*Math.sin(m)+this.x0,t.y=this.a*e*(this.coslat0*f-this.sinlat0*p*Math.cos(m))+this.y0,t):(n=2*Math.atan(u(h,f,this.e))-i.sK,o=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=i.H0?(s=(0,a.A)(this.e,h*this.con,this.con*f),c=2*this.a*this.k0*s/this.cons,t.x=this.x0+c*Math.sin(d-this.long0),t.y=this.y0-this.con*c*Math.cos(d-this.long0),t):(Math.abs(this.sinlat0)<i.H0?(e=2*this.a*this.k0/(1+o*Math.cos(m)),t.y=e*r):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*o*Math.cos(m))),t.y=e*(this.cosX0*r-this.sinX0*o*Math.cos(m))+this.y0),t.x=e*o*Math.sin(m)+this.x0,t))}function h(t){var e,n,r,o,a;t.x-=this.x0,t.y-=this.y0;var u=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var c=2*Math.atan(u/(2*this.a*this.k0));return e=this.long0,n=this.lat0,u<=i.H0?(t.x=e,t.y=n,t):(n=Math.asin(Math.cos(c)*this.sinlat0+t.y*Math.sin(c)*this.coslat0/u),e=Math.abs(this.coslat0)<i.H0?this.lat0>0?(0,l.A)(this.long0+Math.atan2(t.x,-1*t.y)):(0,l.A)(this.long0+Math.atan2(t.x,t.y)):(0,l.A)(this.long0+Math.atan2(t.x*Math.sin(c),u*this.coslat0*Math.cos(c)-t.y*this.sinlat0*Math.sin(c))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=i.H0){if(u<=i.H0)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,r=u*this.cons/(2*this.a*this.k0),n=this.con*(0,s.A)(this.e,r),e=this.con*(0,l.A)(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else o=2*Math.atan(u*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,u<=i.H0?a=this.X0:(a=Math.asin(Math.cos(o)*this.sinX0+t.y*Math.sin(o)*this.cosX0/u),e=(0,l.A)(this.long0+Math.atan2(t.x*Math.sin(o),u*this.cosX0*Math.cos(o)-t.y*this.sinX0*Math.sin(o)))),n=-1*(0,s.A)(this.e,Math.tan(.5*(i.sK+a)));return t.x=e,t.y=n,t}var f=["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"];e.default={init:c,forward:d,inverse:h,names:f,ssfn_:u}},3095:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},3108:function(t,e,n){t.exports=n(2340)},3158:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KPHBhdGggZD0iTTAsMTFsMTEsMGwwLC0xMWwyLDBsMCwxMWwxMSwwbDAsMmwtMTEsMGwwLDExbC0yLDBsMCwtMTFsLTExLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+CjxwYXRoIGQ9Ik0yNCwzMmwwLC00YTQsNCwwLDAsMSw4LDBsMCw0bC0yLDBsMCwtNGEyLDIsMCwwLDAsLTQsMGwwLDR6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+Cjwvc3ZnPgo="},3170:function(t){t.exports={}},3187:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=n(642),i=n(1098),a=this,s=this.draw,l=this.style,u=null,c=null,d=function(t){return t.children},h=[],f=this._init,p=this._exit;return this.featureType="graph",this._init=function(t){f.call(a,t);var n=e.deepMerge({},{nodes:{radius:5,fill:!0,fillColor:{r:1,g:0,b:0},strokeColor:{r:0,g:0,b:0}},links:{strokeColor:{r:0,g:0,b:0}},linkType:"path"},void 0===t.style?{}:t.style);return a.style(n),a.nodes(e.identityFunction),a},this._build=function(){a.children().forEach(function(t){t._build()})},this._update=function(){a.children().forEach(function(t){t._update()})},this._exit=function(){return a.data([]),h.forEach(function(t){t._exit(),a.removeChild(t)}),h=[],c._exit(),a.removeChild(c),p(),a},this.style=function(t,e){var n=l.call(a,t,e);return n!==a?n:(c.style(t.nodes),h.forEach(function(e){e.style(t.links)}),a)},this.style.get=l.get,this.links=function(t){return void 0===t?d:(d=e.ensureFunction(t),a)},this.nodes=function(t){return void 0===t?u:(u=t,a.modified(),a)},this.nodeFeature=function(){return c},this.linkFeatures=function(){return h},this.draw=function(){var t,e=a.layer(),n=a.data(),r=0;return t=a.style(),c.data(n),c.style(t.nodes),n.forEach(function(n){(n.children||[]).forEach(function(o){var s;r+=1,h.length<r&&(s=i.createFeature(t.linkType,e,e.renderer()).style(t.links),a.addChild(s),h.push(s)),h[r-1].data([n,o])})}),h.splice(r,h.length-r).forEach(function(t){t._exit(),a.removeChild(t)}),s(),a},c=i.createFeature("point",this.layer(),this.layer().renderer()),a.addChild(c),t.nodes&&this.nodes(t.nodes),this._init(t),this};i(o,r),t.exports=o},3197:function(t){t.exports=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}},3245:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return p},init:function(){return f},inverse:function(){return m},names:function(){return g}});var i=n(1417),r=n(1341),o=n(7954),a=n(3611),s=n(4280),l=n(2889),u=n(6269),c=n(6165),d=n(364),h=n(7e3);function f(){this.sphere||(this.e0=(0,r.A)(this.es),this.e1=(0,o.A)(this.es),this.e2=(0,a.A)(this.es),this.e3=(0,s.A)(this.es),this.ml0=this.a*(0,i.A)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function p(t){var e,n,r=t.x,o=t.y;if(r=(0,u.A)(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(o)*Math.sin(r)),n=this.a*(Math.atan2(Math.tan(o),Math.cos(r))-this.lat0);else{var a=Math.sin(o),s=Math.cos(o),c=(0,l.A)(this.a,this.e,a),d=Math.tan(o)*Math.tan(o),h=r*Math.cos(o),f=h*h,p=this.es*s*s/(1-this.es);e=c*h*(1-f*d*(1/6-(8-d+8*p)*f/120)),n=this.a*(0,i.A)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+c*a/s*f*(.5+(5-d+6*p)*f/24)}return t.x=e+this.x0,t.y=n+this.y0,t}function m(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=(0,d.A)(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-h.sK)<=h.H0)return t.x=this.long0,t.y=h.sK,r<0&&(t.y*=-1),t;var f=(0,l.A)(this.a,this.e,Math.sin(s)),p=f*f*f/this.a/this.a*(1-this.es),m=Math.pow(Math.tan(s),2),g=i*this.a/f,y=g*g;e=s-f*Math.tan(s)/p*g*g*(.5-(1+3*m)*g*g/24),n=g*(1-y*(m/3+(1+3*m)*m*y/15))/Math.cos(s)}return t.x=(0,u.A)(n+this.long0),t.y=(0,c.A)(e),t}var g=["Cassini","Cassini_Soldner","cass"];e.default={init:f,forward:p,inverse:m,names:g}},3260:function(t){t.exports="/* quadFeature Color vertex shader */\n\nattribute vec3 vertexPosition;\nuniform float zOffset;\nuniform vec3 vertexColor;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying mediump vec3 iVertexColor;\n\nvoid main(void) {\n gl_Position = projectionMatrix * modelViewMatrix * vec4(vertexPosition, 1.0);\n gl_Position.z += zOffset;\n iVertexColor = vertexColor;\n}\n"},3277:function(t){t.exports=function(t,e,n,i,r,o,a){var s=1/(n-e),l=1/(r-i),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t}},3310:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=i+i,l=r+r,u=o+o,c=i*s,d=i*l,h=i*u,f=r*l,p=r*u,m=o*u,g=a*s,y=a*l,v=a*u;return t[0]=1-(f+m),t[1]=d+v,t[2]=h-y,t[3]=0,t[4]=d-v,t[5]=1-(c+m),t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-(c+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}},3346:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},3356:function(t,e,n){"use strict";n.d(e,{Fs:function(){return l},OI:function(){return r},Rw:function(){return a},jX:function(){return o},mj:function(){return s}});var i=n(7e3);function r(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(t.datum_type===i.a8?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==i.Y$||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function o(t,e,n){var r,o,a,s,l=t.x,u=t.y,c=t.z?t.z:0;if(u<-i.sK&&u>-1.001*i.sK)u=-i.sK;else if(u>i.sK&&u<1.001*i.sK)u=i.sK;else{if(u<-i.sK)return{x:-1/0,y:-1/0,z:t.z};if(u>i.sK)return{x:1/0,y:1/0,z:t.z}}return l>Math.PI&&(l-=2*Math.PI),o=Math.sin(u),s=Math.cos(u),a=o*o,{x:((r=n/Math.sqrt(1-e*a))+c)*s*Math.cos(l),y:(r+c)*s*Math.sin(l),z:(r*(1-e)+c)*o}}function a(t,e,n,r){var o,a,s,l,u,c,d,h,f,p,m,g,y,v,x,_=1e-12,b=t.x,w=t.y,M=t.z?t.z:0;if(o=Math.sqrt(b*b+w*w),a=Math.sqrt(b*b+w*w+M*M),o/n<_){if(v=0,a/n<_)return i.sK,x=-r,{x:t.x,y:t.y,z:t.z}}else v=Math.atan2(w,b);s=M/a,h=(l=o/a)*(1-e)*(u=1/Math.sqrt(1-e*(2-e)*l*l)),f=s*u,y=0;do{y++,c=e*(d=n/Math.sqrt(1-e*f*f))/(d+(x=o*h+M*f-d*(1-e*f*f))),g=(m=s*(u=1/Math.sqrt(1-c*(2-c)*l*l)))*h-(p=l*(1-c)*u)*f,h=p,f=m}while(g*g>1e-24&&y<30);return{x:v,y:Math.atan(m/Math.abs(p)),z:x}}function s(t,e,n){if(e===i.a8)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(e===i.Y$){var r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6];return{x:c*(t.x-u*t.y+l*t.z)+r,y:c*(u*t.x+t.y-s*t.z)+o,z:c*(-l*t.x+s*t.y+t.z)+a}}}function l(t,e,n){if(e===i.a8)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(e===i.Y$){var r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6],d=(t.x-r)/c,h=(t.y-o)/c,f=(t.z-a)/c;return{x:d+u*h-l*f,y:-u*d+h+s*f,z:l*d-s*h+f}}}},3369:function(t){t.exports=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],c=e[8];return t[0]=a*c-s*u,t[1]=r*u-i*c,t[2]=i*s-r*a,t[3]=s*l-o*c,t[4]=n*c-r*l,t[5]=r*o-n*s,t[6]=o*u-a*l,t[7]=i*l-n*u,t[8]=n*a-i*o,t}},3403:function(t,e,n){var i=n(5616),r=n(4626),o=n(1098).registerFeature,a=n(2225),s=n(7945),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},a.call(this,t);var e=n(1611),r=n(5325),o=n(642),u=n(4084),c=n(2709),d=n(6409),h=n(9923),f=n(3724),p=n(1202),m=n(7665);u.call(this);var g,y,v=this,x=this._exit,_=null,b=null,w={},M=this._init,A=this._update,E=this.updateStyleFromArray;function T(t){return t.length?((void 0===t[0]?0:Math.floor(250*Math.abs(t[0]))+1)+252*(void 0===t[1]?0:Math.floor(250*Math.abs(t[1]))+1)+252*(void 0===t[2]?0:Math.floor(250*Math.abs(t[2]))+1)*252)*(t[3]?-1:1):void 0===t?0:Math.floor(250*Math.abs(t))+1}function S(t){var e,n,i,l,u,c,d,h,f,p,m,x,w=v.data().length,M=v._pointPolygon(0,0,1,1),A=new Array(3*w),E={},C={},k={},P={},O={radius:1,fillColor:3,fillOpacity:1,strokeColor:3,strokeOpacity:1,strokeOffset:0,strokeWidth:1,symbol:1,symbolValue:1,rotation:1,scaleWithZoom:0,rotateWithMap:0,radiusIncludesStroke:0},L=v.verticesPerFeature(),R=v.data(),I=b.geometryData();for(var F in u=v.position(),O)k[F]=v.style.get(F),o.isFunction(v.style(F))||(P[F]=k[F]()),O[F]&&(E[F]=o.getGeomBuffer(I,F,L*w*O[F]));if(!t){for(e=x=0;e<w;e+=1,x+=3)l=u(R[e],e),A[x]=l.x,A[x+1]=l.y,A[x+2]=0;if(A=r.transformCoordinates(v.gcs(),v.layer().map().gcs(),A,3),(y=new Float32Array(v.style.get("origin")(A)))[0]||y[1]||y[2])for(e=x=0;e<w;e+=1,x+=3)A[x]-=y[0],A[x+1]-=y[1],A[x+2]-=y[2];g.setOrigin(y),i=o.getGeomBuffer(I,"pos",L*w*3),v._primitiveShape!==a.primitiveShapes.sprite&&(d=o.getGeomBuffer(I,"unit",L*w*2)),(c=I.primitive(0).indices())instanceof Uint16Array&&c.length===L*w||(c=new Uint16Array(L*w),I.primitive(0).setIndices(c))}for(e=f=p=m=x=0;e<w;e+=1,x+=3){if(h=R[e],!t&&v._primitiveShape!==a.primitiveShapes.sprite)for(n=0;n<M.length;n+=1,m+=1)d[m]=M[n];for(var D in O)C[D]=void 0===P[D]?k[D](h,e):P[D];for(C.scaleWithZoom=a.scaleMode[C.scaleWithZoom]||(C.scaleWithZoom>=1&&C.scaleWithZoom<=3?C.scaleWithZoom:0),C.symbolComputed=C.scaleWithZoom+(C.rotateWithMap?4:0)+16*(Math.sign(void 0!==C.radiusIncludesStroke&&C.radiusIncludesStroke?C.strokeOffset:1)+1)+64*C.symbol,C.symbolValue&&C.symbol>=a.symbols.arrow&&C.symbol<a.symbols.arrow+a.symbols.arrowMax&&(C.symbolValue=T(C.symbolValue)),n=0;n<L;n+=1,f+=1,p+=3)t||(i[p]=A[x],i[p+1]=A[x+1],i[p+2]=A[x+2]),E.radius[f]=C.radius,E.fillColor[p]=C.fillColor.r,E.fillColor[p+1]=C.fillColor.g,E.fillColor[p+2]=C.fillColor.b,E.fillOpacity[f]=C.fillOpacity,E.strokeColor[p]=C.strokeColor.r,E.strokeColor[p+1]=C.strokeColor.g,E.strokeColor[p+2]=C.strokeColor.b,E.strokeOpacity[f]=C.strokeOpacity,E.strokeWidth[f]=C.strokeWidth,E.symbol[f]=C.symbolComputed,E.symbolValue[f]=C.symbolValue,E.rotation[f]=C.rotation}if(v._primitiveShapeAuto){var G=v._approximateMaxRadius(v.renderer().map().zoom());if(v._primitiveShape===a.primitiveShapes.sprite&&G>s._maxPointSize||v._primitiveShape!==a.primitiveShapes.sprite&&G<=s._maxPointSize)return v._primitiveShape=G>s._maxPointSize?a.primitiveShapes.triangle:a.primitiveShapes.sprite,v.renderer().contextRenderer().removeActor(_),_=null,v._init(!0),void S()}t?Object.keys(E).forEach(function(t){return b.updateSourceBuffer(t)}):(I.boundsDirty(!0),b.modified(),b.boundsDirtyTimestamp().modified())}return c(v,t),this.actors=function(){return _?[_]:[]},this.updateStyleFromArray=function(t,e,n){var r,o,a={radius:1,fillColor:3,fillOpacity:1,strokeColor:3,strokeOpacity:1,strokeWidth:1,symbolComputed:1,symbolValueComputed:1,rotation:1};if("string"==typeof t){var s={};s[t]=e,t=s}return i.each(t,function(t,e){var n,i,s,l,u,c,d,h,f,p="symbolComputed"===t?"symbol":"symbolValueComputed"===t?"symbolValue":t;if(v.visible()&&_&&a[t]&&!r&&!v.clustering())if(f=a[t],l=v.data().length,s=(i=_.mapper()).getSourceBuffer(p),n=v.verticesPerFeature(),s&&l&&l*n*f===s.length){switch(a[t]){case 1:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=1)s[h]=u;break;case 3:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=3)s[h]=u.r,s[h+1]=u.g,s[h+2]=u.b}i.updateSourceBuffer(p),o=!0}else r=!0;else r=!0;var m=v.modified;r||t!==p||(v.modified=function(){}),E(t,e,!1),v.modified=m}),n&&(v.visible()&&r?v.draw():o&&v.renderer()._render()),v},this._handleZoom=function(t){v._primitiveShapeAuto&&v._primitiveShape===a.primitiveShapes.sprite&&2*v._approximateMaxRadius(t)>s._maxPointSize&&(v._primitiveShape=a.primitiveShapes.triangle,v.renderer().contextRenderer().removeActor(v.actors()[0]),v._init(!0),v.dataTime().modified(),v.draw())},this._init=function(n){var i,r,o=e.shaderProgram(),s=((r=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(v._primitiveShape===a.primitiveShapes.sprite?m:p),r),l=function(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(v._primitiveShape===a.primitiveShapes.sprite?f:h),t}(),u=e.material(),c=e.blend(),x=e.geometryData(),A=e.sourceDataP3fv({name:"pos"}),E={fillColor:3,fillOpacity:1,radius:1,rotation:1,strokeColor:3,strokeOpacity:1,strokeWidth:1,symbol:1,symbolValue:1},T={pixelWidth:e.GL.FLOAT,aspect:e.GL.FLOAT,zoom:e.GL.FLOAT,rotationUniform:e.GL.FLOAT},S=new e.projectionUniform("projectionMatrix");g=new e.modelViewOriginUniform("modelViewMatrix",y),v._primitiveShape===a.primitiveShapes.sprite?i=new e.points:(i=new e.triangles,E.unit=2),i.setIndices(new Uint16Array),n||M.call(v,t),b=e.mapper(),o.addVertexAttribute(e.vertexAttribute("pos"),e.vertexAttributeKeys.Position),x.addSource(A),Object.keys(E).forEach(function(t,n){o.addVertexAttribute(e.vertexAttribute(t),n+1),x.addSource(e.sourceDataAnyfv(E[t],n+1,{name:t}))}),w={},Object.keys(T).forEach(function(t){w[t]=new e.uniform(T[t],t),o.addUniform(w[t])}),o.addUniform(g),o.addUniform(S),o.addShader(l),o.addShader(s),u.addAttribute(o),u.addAttribute(c),(_=e.actor()).setMaterial(u),_.setMapper(b),x.addPrimitive(i),x.computeBounds=function(){x.setBounds(0,0,0,0,0,0)},b.setGeometryData(x),n||v.geoOn(d.zoom,function(t){v._handleZoom(t.zoomLevel)})},this._build=function(){return S(v.dataTime().timestamp()<v.buildTime().timestamp()),v.renderer().contextRenderer().hasActor(_)||v.renderer().contextRenderer().addActor(_),v.buildTime().modified(),v},this._update=function(){return A.call(v),(v.dataTime().timestamp()>=v.buildTime().timestamp()||v.updateTime().timestamp()<v.timestamp())&&v._build(),w.pixelWidth.set(2/v.renderer().width()),w.aspect.set(v.renderer().width()/v.renderer().height()),w.zoom.set(v.renderer().map().zoom()),w.rotationUniform.set(v.renderer().map().rotation()),_.setVisible(v.visible()),_.material().setBinNumber(v.bin()),v.updateTime().modified(),v},this._exit=function(){v.renderer().contextRenderer().removeActor(_),_=null,w={},x()},v._init(),this};r(l,a);o("webgl","marker",l,{}),t.exports=l},3426:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m},forward:function(){return h},init:function(){return d},inverse:function(){return f},names:function(){return p}});var i=n(5518),r=n(7897),o=n(4424);function a(t){var e=Math.abs(t);return e=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}(e*(1+e/((0,o.A)(1,e)+1))),t<0?-e:e}function s(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return e+n*Math.sin(2*e)}var l=n(6449);function u(t,e,n){for(var i,o,a=Math.sin(e),s=Math.cos(e),u=(0,r.A)(n),c=(0,l.A)(n),d=2*s*c,h=-2*a*u,f=t.length-1,p=t[f],m=0,g=0,y=0;--f>=0;)i=g,o=m,p=d*(g=p)-i-h*(m=y)+t[f],y=h*g-o+d*m;return[(d=a*c)*p-(h=s*u)*y,d*y+h*p]}var c=n(6269);function d(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(i.default.init.apply(this),this.forward=i.default.forward,this.inverse=i.default.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=s(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return Math.sin(e)*n}(this.gtu,2*r))}function h(t){var e=(0,c.A)(t.x-this.long0),n=t.y;n=s(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),l=Math.sin(e),d=Math.cos(e);n=Math.atan2(i,d*r),e=Math.atan2(l*r,(0,o.A)(i,r*d)),e=a(Math.tan(e));var h,f,p=u(this.gtu,2*n,2*e);return n+=p[0],e+=p[1],Math.abs(e)<=2.623395162778?(h=this.a*(this.Qn*e)+this.x0,f=this.a*(this.Qn*n+this.Zb)+this.y0):(h=1/0,f=1/0),t.x=h,t.y=f,t}function f(t){var e,n,i=(t.x-this.x0)*(1/this.a),a=(t.y-this.y0)*(1/this.a);if(a=(a-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var l=u(this.utg,2*a,2*i);a+=l[0],i+=l[1],i=Math.atan((0,r.A)(i));var d=Math.sin(a),h=Math.cos(a),f=Math.sin(i),p=Math.cos(i);a=Math.atan2(d*p,(0,o.A)(f,p*h)),i=Math.atan2(f,p*h),e=(0,c.A)(i+this.long0),n=s(this.cgb,a)}else e=1/0,n=1/0;return t.x=e,t.y=n,t}var p=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"],m={init:d,forward:h,inverse:f,names:p}},3471:function(t,e,n){var i=n(698),r=n(4626),o=n(3503);i.uniform=function(t,e){"use strict";if(!(this instanceof i.uniform))return new i.uniform(t,e);this.getTypeNumberOfComponents=function(t){switch(t){case i.GL.FLOAT:case i.GL.INT:case i.GL.BOOL:return 1;case i.GL.FLOAT_VEC2:case i.GL.INT_VEC2:case i.GL.BOOL_VEC2:return 2;case i.GL.FLOAT_VEC3:case i.GL.INT_VEC3:case i.GL.BOOL_VEC3:return 3;case i.GL.FLOAT_VEC4:case i.GL.INT_VEC4:case i.GL.BOOL_VEC4:return 4;case i.GL.FLOAT_MAT3:return 9;case i.GL.FLOAT_MAT4:return 16;default:return 0}};var n=t,r=e,o=new Array(this.getTypeNumberOfComponents(n)).fill(0);return this.name=function(){return r},this.set=function(t){var e=0,n=o.length;if(1!==n)for(e=0;e<n;e+=1)o[e]=t[e];else o[0]=t},this.callGL=function(t,e){switch(n){case i.GL.BOOL:case i.GL.INT:t.m_context.uniform1iv(e,o);break;case i.GL.FLOAT:t.m_context.uniform1fv(e,o);break;case i.GL.BOOL_VEC2:case i.GL.INT_VEC2:t.m_context.uniform2iv(e,o);break;case i.GL.FLOAT_VEC2:t.m_context.uniform2fv(e,o);break;case i.GL.BOOL_VEC3:case i.GL.INT_VEC3:t.m_context.uniform3iv(e,o);break;case i.GL.FLOAT_VEC3:t.m_context.uniform3fv(e,o);break;case i.GL.BOOL_VEC4:case i.GL.INT_VEC4:t.m_context.uniform4iv(e,o);break;case i.GL.FLOAT_VEC4:t.m_context.uniform4fv(e,o);break;case i.GL.FLOAT_MAT3:t.m_context.uniformMatrix3fv(e,i.GL.FALSE,o);break;case i.GL.FLOAT_MAT4:t.m_context.uniformMatrix4fv(e,i.GL.FALSE,o)}},this.update=function(t,e){},this},i.modelViewOriginUniform=function(t,e){"use strict";if(!(this instanceof i.modelViewOriginUniform))return new i.modelViewOriginUniform(t,e);t||(t="modelViewMatrix");var n=[(e=e||[0,0,0])[0],e[1],e[2]||0];return i.uniform.call(this,i.GL.FLOAT_MAT4,t),this.set(o.create()),this.setOrigin=function(t){n=[(t=t||[0,0,0])[0],t[1],t[2]||0]},this.update=function(t,e){var i=t.m_modelViewMatrix;if(t.m_modelViewAlignment){var r=t.m_modelViewAlignment;(i=i.slice?i.slice():Array.prototype.slice.call(i))[12]=Math.round(i[12]/r.roundx)*r.roundx+r.dx,i[13]=Math.round(i[13]/r.roundy)*r.roundy+r.dy}i=o.translate(o.create(),i,n),this.set(i)},this},r(i.modelViewOriginUniform,i.uniform),i.projectionUniform=function(t){"use strict";return this instanceof i.projectionUniform?(t||(t="projectionMatrix"),i.uniform.call(this,i.GL.FLOAT_MAT4,t),this.set(o.create()),this.update=function(t,e){this.set(t.m_projectionMatrix)},this):new i.projectionUniform(t)},r(i.projectionUniform,i.uniform),i.floatUniform=function(t,e){"use strict";if(!(this instanceof i.floatUniform))return new i.floatUniform(t,e);t||(t="floatUniform"),e=void 0===e?1:e,i.uniform.call(this,i.GL.FLOAT,t),this.set(e)},r(i.floatUniform,i.uniform)},3497:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},3503:function(t,e,n){t.exports={create:n(3783),clone:n(1130),copy:n(74),identity:n(257),transpose:n(2664),invert:n(6583),adjoint:n(5200),determinant:n(8844),multiply:n(9899),translate:n(573),scale:n(177),rotate:n(648),rotateX:n(5618),rotateY:n(5345),rotateZ:n(5208),fromRotation:n(5405),fromRotationTranslation:n(3310),fromScaling:n(1826),fromTranslation:n(4692),fromXRotation:n(1349),fromYRotation:n(8034),fromZRotation:n(1655),fromQuat:n(5936),frustum:n(3277),perspective:n(2649),perspectiveFromFieldOfView:n(7733),ortho:n(2337),lookAt:n(8541),str:n(6600)}},3556:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.boundingObject=function(){"use strict";if(!(this instanceof i.boundingObject))return new i.boundingObject;i.object.call(this);var t=[0,0,0,0,0,0],e=o(),n=o();return e.modified(),n.modified(),this.bounds=function(){return t},this.hasValidBounds=function(t){return t[0]!==Number.MAX_VALUE&&t[1]!==-Number.MAX_VALUE&&t[2]!==Number.MAX_VALUE&&t[3]!==-Number.MAX_VALUE&&t[4]!==Number.MAX_VALUE&&t[5]!==-Number.MAX_VALUE},this.setBounds=function(n,i,r,o,a,s){if(this.hasValidBounds([n,i,r,o,a,s]))return t[0]=n,t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=s,this.modified(),e.modified(),!0},this.resetBounds=function(){t[0]=Number.MAX_VALUE,t[1]=-Number.MAX_VALUE,t[2]=Number.MAX_VALUE,t[3]=-Number.MAX_VALUE,t[4]=Number.MAX_VALUE,t[5]=-Number.MAX_VALUE,this.modified()},this.computeBounds=function(){},this.computeBoundsTimestamp=function(){return e},this.boundsDirtyTimestamp=function(){return n},this.resetBounds(),this},i.boundingObject.ReferenceFrame={Relative:0,Absolute:1},r(i.boundingObject,i.object)},3559:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3561),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=this,n=null,i=this._exit,r=this.draw,s=this._update;return this.draw=function(){if(e._update(),n)for(var t=0;t<n.length;t+=1)n[t].draw();return r(),e},this._build=function(){return e.buildTime().modified(),n=e.createChoropleth()},this._update=function(){s.call(e),(e.dataTime().timestamp()>=e.buildTime().timestamp()||e.updateTime().timestamp()<=e.timestamp())&&(e._wipePolygons(),e._build()),e.updateTime().modified()},this._wipePolygons=function(){n&&n.map(function(t){return t._exit()}),n=null},this._exit=function(){e._wipePolygons(),i()},this._init(t),this};i(a,o),r("webgl","choropleth",a),t.exports=a},3561:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=n(642).ensureFunction;delete t.layer,delete t.renderer;var i=n(2493).d3,a=this,s=this._init,l=Object.assign({},{colorRange:[{r:.07514311,g:.468049805,b:1},{r:.468487184,g:.588057293,b:1},{r:.656658579,g:.707001303,b:1},{r:.821573924,g:.837809045,b:1},{r:.943467973,g:.943498599,b:.943398095},{r:1,g:.788626485,b:.750707739},{r:1,g:.6289553,b:.568237474},{r:1,g:.472800903,b:.404551679},{r:.916482116,g:.236630659,b:.209939162}],scale:i.scaleQuantize(),geoId:function(t){return t.properties.GEO_ID},scalarId:function(t){return t.id},scalarValue:function(t){return t.value}},t);return this.featureType="choropleth",this.scalar=function(t,e){var n,r;return void 0===t?a.choropleth.get("scalar")()||[]:(n=a.choropleth.get("scalarId"),r=a.choropleth.get("scalarValue"),l.scalar=t,l.scalarAggregator=e||i.mean,l.scalar._dictionary=t.reduce(function(t,e){var i,o;return i=n(e),o=r(e),t[i]=t[i]?t[i].push(o):[o],t},{}),a.dataTime().modified(),a)},this.choropleth=function(t,e){var n;return void 0===t?l:"string"==typeof t&&void 0===e?l[t]:(void 0===e?(n=Object.assign({},l,t),l=n):l[t]=e,a.modified(),a)},this.choropleth.get=function(t){var n,i={};if(void 0===t){for(n in l)l.hasOwnProperty(n)&&(i[n]=a.choropleth.get(n));return i}return e(l[t])},this._featureToPolygons=function(t,e){var n=a.layer().createFeature("polygon",{});return"Polygon"===t.geometry.type?n.data([{type:"Polygon",coordinates:t.geometry.coordinates}]):"MultiPolygon"===t.geometry.type&&n.data(t.geometry.coordinates.map(function(t){return{type:"Polygon",coordinates:t}})),n.polygon(function(t){return{outer:t.coordinates[0],inner:t.coordinates[1]}}).position(function(t){return{x:t[0],y:t[1]}}).style({fillColor:e}),n},this._generateScale=function(t){var e=i.extent(a.scalar(),t||void 0);return a.choropleth().scale.domain(e).range(a.choropleth().colorRange),a},this.createChoropleth=function(){var t=a.choropleth,e=a.data(),n=a.scalar(),i=t.get("scalarValue"),r=t.get("geoId");return a._generateScale(i),e.map(function(e){var i=r(e),o=n._dictionary[i],s=t().scalarAggregator(o),l=a.choropleth().scale(s);return a._featureToPolygons(e,l)})},this._init=function(t){return s.call(a,t),l&&a.dataTime().modified(),a},this._init(t),this};i(o,r),t.exports=o},3578:function(t,e,n){var i=n(4626),r=n(1338),o=n(642),a=n(3638),s=n(1982),l=n(3503),u=n(4663),c=function(t){if(!(this instanceof c))return new c(t);var e=n(6409);return t=t||{},r.call(this,t),this._view=o.mat4AsArray(),this._proj=o.mat4AsArray(),this._projection=null,this._transform=o.mat4AsArray(),this._inverse=o.mat4AsArray(),this._bounds=null,this._display=null,this._world=null,this._viewport={width:1,height:1},this._createProj=function(){var t="perspective"===this._projection?l.frustum:l.ortho,e=this._clipbounds[this._projection];t(this._proj,e.left,e.right,e.bottom,e.top,e.near,e.far)},this._update=function(){this._bounds=null,this._display=null,this._world=null,this._transform=l.multiply(o.mat4AsArray(),this._proj,this._view),l.invert(this._inverse,this._transform),this.geoTrigger(e.camera.view,{camera:this})},Object.defineProperty(this,"view",{get:function(){return this._view},set:function(t){l.copy(this._view,t),this._update()},configurable:!0}),Object.defineProperty(this,"bounds",{get:function(){return null===this._bounds&&(this._bounds=this._getBounds()),this._bounds},set:function(t){this._setBounds(t),this._update()}}),Object.defineProperty(this,"clipbounds",{get:function(){return this._clipbounds[this._projection]},set:function(t){var e=this._clipbounds[this._projection];if((t={left:void 0===t.left?e.left:t.left,right:void 0===t.right?e.right:t.right,top:void 0===t.top?e.top:t.top,bottom:void 0===t.bottom?e.bottom:t.bottom,near:void 0===t.near?e.near:t.near,far:void 0===t.far?e.far:t.far}).left===t.right)throw new Error("Left and right values must be different");if(t.top===t.bottom)throw new Error("Top and bottom values must be different");if(t.near===t.far)throw new Error("Near and far values must be different");this._clipbounds[this._projection]=t,this._createProj(),this._update()}}),Object.defineProperty(this,"display",{get:function(){if(null===this._display){var t=this._clipbounds[this._projection],e=o.mat4AsArray();l.translate(e,e,[this.viewport.width/2,this.viewport.height/2,0]),l.scale(e,e,[this.viewport.width/(t.right-t.left),this.viewport.height/(t.bottom-t.top),1]),l.translate(e,e,[-(t.left+t.right)/2,-(t.top+t.bottom)/2,0]),l.multiply(e,e,this._transform),this._display=e}return this._display}}),Object.defineProperty(this,"world",{get:function(){return null===this._world&&(this._world=l.invert(o.mat4AsArray(),this.display)),this._world}}),Object.defineProperty(this,"projection",{get:function(){return this._projection},set:function(t){if(!this.constructor.projection[t])throw new Error("Unsupported projection type: "+t);t!==this._projection&&(this._projection=t,this._createProj(),this._update(),this.geoTrigger(e.camera.projection,{camera:this,projection:t}))}}),Object.defineProperty(this,"projectionMatrix",{get:function(){return this._proj}}),Object.defineProperty(this,"transform",{get:function(){return this._transform}}),Object.defineProperty(this,"inverse",{get:function(){return this._inverse}}),Object.defineProperty(this,"viewport",{get:function(){return{width:this._viewport.width,height:this._viewport.height,left:this._viewport.left,top:this._viewport.top}},set:function(t){if(!(t.width>0&&t.height>0))throw new Error("Invalid viewport dimensions");t.width===this._viewport.width&&t.height===this._viewport.height||(this._viewport.width&&this._viewport.height&&(this._scale([this._viewport.width/t.width,this._viewport.height/t.height,1]),this._translate([(t.width-this._viewport.width)/2,(t.height-this._viewport.height)/2,0])),this._viewport={width:t.width,height:t.height,left:t.left,top:t.top},this._update(),this.geoTrigger(e.camera.viewport,{camera:this,viewport:this.viewport}))}}),this._resetView=function(){return l.identity(this._view),this},this._translate=function(t){return l.translate(this._view,this._view,t),this},this._scale=function(t){return l.scale(this._view,this._view,t),this},this._worldToClip4=function(t){return u.transformMat4(t,t,this._transform)},this._clipToWorld4=function(t){return u.transformMat4(t,t,this._inverse)},this.applyProjection=function(t){var e;return"perspective"===this._projection?(e=1/(t[3]||1),t[0]=e*t[0],t[1]=e*t[1],t[2]=e*t[2],t[3]=e):t[3]=1,t},this.unapplyProjection=function(t){var e;return"perspective"===this._projection?(e=t[3]||1,t[0]=e*t[0],t[1]=e*t[1],t[2]=e*t[2],t[3]=e):t[3]=1,t},this.worldToDisplay4=function(t){return t=[t[0],t[1],t[2]||0,t[3]||1],(t=u.transformMat4(t,t,this.display))[3]&&1!==t[3]&&(t=[t[0]/t[3],t[1]/t[3],t[2]/t[3],1]),t},this.displayToWorld4=function(t){return t=[t[0],t[1],t[2]||0,t[3]||1],(t=u.transformMat4(t,t,this.world))[3]&&1!==t[3]&&(t=[t[0]/t[3],t[1]/t[3],t[2]/t[3],1]),t},this.worldToDisplay=function(t){var e=this._clipbounds[this._projection];return{x:(t=this.worldToDisplay4([t.x,t.y,-e.near]))[0],y:t[1]}},this.displayToWorld=function(t){return{x:(t=this.displayToWorld4([t.x,t.y,-1]))[0],y:t[1]}},this._getBounds=function(){var t,e,n,i,r={};return t=this.displayToWorld({x:0,y:0}),e=this.displayToWorld({x:this._viewport.width,y:0}),n=this.displayToWorld({x:0,y:this._viewport.height}),i=this.displayToWorld({x:this._viewport.width,y:this._viewport.height}),r.left=Math.min(t.x,e.x,n.x,i.x),r.bottom=Math.min(t.y,e.y,n.y,i.y),r.right=Math.max(t.x,e.x,n.x,i.x),r.top=Math.max(t.y,e.y,n.y,i.y),r},this._setBounds=function(t){var e={width:t.right-t.left,height:t.top-t.bottom},n={x:(t.left+t.right)/2,y:(t.bottom+t.top)/2};return this._viewFromCenterSizeRotation(n,e,0),this},this._viewFromCenterSizeRotation=function(t,e,n){var i,r,a,s=o.vec3AsArray(),l=o.vec3AsArray();return this._resetView(),(r=Math.abs(e.width))/(a=Math.abs(e.height))>=(i=this._viewport.width/this._viewport.height)?(a=r/i,l[0]=2/r,l[1]=2/a):(r=a*i,l[0]=2/r,l[1]=2/a),l[2]=1,this._scale(l),n&&this._rotate(n),s[0]=-t.x,s[1]=-t.y,s[2]=0,this._translate(s),this},this.viewFromCenterSizeRotation=function(t,e,n){return this._viewFromCenterSizeRotation(t,e,n),this._update(),this},this.pan=function(t){return t.x||t.y||t.z?(this._translate([t.x,t.y,t.z||0]),this._update(),this):this},this.zoom=function(t){return 1===t||(l.scale(this._view,this._view,[t,t,t]),this._update()),this},this._rotate=function(t,e,n){if(!t)return this;n=n||[0,0,-1],e?void 0!==e.x&&(e=[e.x||0,e.y||0,e.z||0]):e=[0,0,0];var i=[-e[0],-e[1],-e[2]];return l.translate(this._view,this._view,e),l.rotate(this._view,this._view,t,n),l.translate(this._view,this._view,i),this},this.css=function(t){var e;switch((t||"").toLowerCase()){case"display":case"":e=this.display;break;case"world":e=this.world;break;default:throw new Error("Unknown transform "+t)}return c.css(e)},this.ppMatrix=function(t,e){var n=t;function i(t){var i=n[t],r=i.toExponential(e);return i>=0&&(r=" "+r),r}return e=e||2,[[i(0),i(4),i(8),i(12)].join(" "),[i(1),i(5),i(9),i(13)].join(" "),[i(2),i(6),i(10),i(14)].join(" "),[i(3),i(7),i(11),i(15)].join(" ")].join("\n")},this.toString=function(){return this.ppMatrix(this._transform)},this.debug=function(){return["bounds",JSON.stringify(this.bounds),"view:",this.ppMatrix(this._view),"projection:",this.ppMatrix(this._proj),"transform:",this.ppMatrix(this._transform)].join("\n")},this.valueOf=function(){return this._transform},this._clipbounds=this.constructor.clipbounds,this._resetView(),this.projection=t.projection||"parallel",t.viewport&&(this.viewport=t.viewport),this._update(),this};c.projection={perspective:!0,parallel:!0},c.clipbounds={perspective:{left:-1,right:1,top:1,bottom:-1,far:2e3,near:.01},parallel:{left:-1,right:1,top:1,bottom:-1,far:-1,near:1}},c.css=function(t){return"matrix3d("+t.map(function(t){return(t=(+t).toPrecision(15)).indexOf("e")>=0?t=(+t).toString():t.indexOf(".")>=0&&(t=t.replace(/(\.|)0+$/,"")),t}).join(",")+")"},c.vec3=s,c.mat3=a,c.vec4=u,c.mat4=l,i(c,r),t.exports=c},3611:function(t,e,n){"use strict";function i(t){return.05859375*t*t*(1+.75*t)}n.d(e,{A:function(){return i}})},3638:function(t,e,n){t.exports={adjoint:n(3369),clone:n(5723),copy:n(817),create:n(6396),determinant:n(9133),frob:n(7053),fromMat2:n(7068),fromMat4:n(5018),fromQuat:n(3955),identity:n(6658),invert:n(6028),multiply:n(4980),normalFromMat4:n(8093),rotate:n(8163),scale:n(2311),str:n(6321),translate:n(5068),transpose:n(6333)}},3656:function(t,e,n){var i=n(4626),r=n(1098).registerAnnotation,o=n(2225),a=n(642),s=n(6978).state,l=n(4019),u=function(t,e){"use strict";if(!(this instanceof u))return new u(t,e);t=a.deepMerge({},this.constructor.defaults,t),l.call(this,t,e||"ellipse");var n=this;this.features=function(){var t,e=n.options(),i=n.state();if(t=[],e.corners&&e.corners.length>=4){var r=n.styleForState(i),a=Math.pow(Math.pow(e.corners[0].x-e.corners[1].x,2)+Math.pow(e.corners[0].y-e.corners[1].y,2),.5),l=Math.pow(Math.pow(e.corners[0].x-e.corners[3].x,2)+Math.pow(e.corners[0].y-e.corners[3].y,2),.5),u=Math.max(a,l)/2/n.layer().map().unitsPerPixel(0),c=a?l/a:1e20,d=-Math.atan2(e.corners[1].y-e.corners[0].y,e.corners[1].x-e.corners[0].x);t=[{marker:{x:(e.corners[0].x+e.corners[1].x+e.corners[2].x+e.corners[3].x)/4,y:(e.corners[0].y+e.corners[1].y+e.corners[2].y+e.corners[3].y)/4,style:Object.assign({},r,{radius:u,symbolValue:c,rotation:d,strokeOffset:0,radiusIncludesStroke:!1,scaleWithZoom:o.scaleMode.fill,rotateWithMap:!0,strokeOpacity:!1===r.stroke?0:r.strokeOpacity,fillOpacity:!1===r.fill?0:r.fillOpacity})}}]}return i===s.edit&&n._addEditHandles(t,e.corners),t},this.toPolygonList=function(t){var e=n._coordinates();if(e.length<3)return[];var i=t&&t.tolerance||0;if(!i){var r=n.layer().map();i=t&&t.pixelTolerance?r.unitsPerPixel(r.zoom())*t.pixelTolerance:.1*r.unitsPerPixel(r.zoomRange().max)}for(var o=Math.pow(Math.pow(e[0].x-e[1].x,2)+Math.pow(e[0].y-e[1].y,2),.5),a=Math.pow(Math.pow(e[0].x-e[3].x,2)+Math.pow(e[0].y-e[3].y,2),.5),s=(e[0].x+e[2].x)/2,l=(e[0].y+e[2].y)/2,u=Math.max(o,a)/2,c=-Math.atan2(e[1].y-e[0].y,e[1].x-e[0].x),d=Math.max(12,Math.ceil(Math.PI/Math.acos((u-i)/(u+i)))),h=o/2*(1+(1-Math.cos(Math.PI/d))/2),f=a/2*(1+(1-Math.cos(Math.PI/d))/2),p=[],m=Math.cos(c),g=Math.sin(c),y=0;y<d;y+=1){var v=2*Math.PI*y/d,x=Math.cos(v),_=Math.sin(v),b=s+h*m*x-f*g*_,w=l+h*g*x+f*m*_;p.push([b,w])}return[[p]]}};i(u,l),u.defaults=Object.assign({},l.defaults,{});var c={};c[o.capabilities.feature]=!0,r("ellipse",u,c),t.exports=u},3712:function(t,e,n){"use strict";function i(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))}n.d(e,{A:function(){return i}})},3724:function(t){t.exports="/* markerFeature sprite fragment shader */\n\n/* markerFeature common fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying float radiusVar;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float strokeWidthVar;\nvarying float symbolVar; /* contains some bit fields */\nvarying float symbolValueVar;\nvarying float rotationVar;\n// the square/triangle shader defines unitVar\nconst int symbolEllipse = 0;\nconst int symbolFlowerBase = 1;\nconst int symbolFlowerMax = 16;\nconst int symbolTriangle = 16;\nconst int symbolStarBase = 17;\nconst int symbolStarMax = 16;\nconst int symbolRectangle = 32;\nconst int symbolCrossBase = 33;\nconst int symbolCrossMax = 16;\nconst int symbolOval = 48;\nconst int symbolJackBase = 49;\nconst int symbolJackMax = 16;\nconst int symbolDrop = 64;\nconst int symbolDropBase = 65;\nconst int symbolDropMax = 16;\nconst int symbolArrow = 80;\nconst int symbolArrowBase = 81;\nconst int symbolArrowMax = 16;\n// Distance to antialias in pixels\nconst float antialiasDist = 1.5;\n\n/* Compute the distance from a point to an arrow defined by the radiusVar and a\n * packed value containing\n * headWidth: ratio to radius (0, 1]\n * headLength: ratio to diameter (0, 1]\n * stemWidth: ratio to headWidth [0, 1]\n * sweep: boolean\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float packed: the packed value.\n * Exit: float dist: the distance to the drop in pixels. Negative is inside.\n */\nfloat distanceToArrow(vec2 pos, float value) {\n bool sweep = value < 0.0;\n value = abs(value);\n float pack0 = (mod(value, 252.0) - 1.0) / 250.0;\n value = floor(value / 252.0);\n float pack1 = (mod(value, 252.0) - 1.0) / 250.0;\n value = floor(value / 252.0);\n float pack2 = (mod(value, 252.0) - 1.0) / 250.0;\n\n float headWidth = (pack0 > 0.0 ? pack0 : 2.0 / 3.0);\n float headEnd = 1.0 - 2.0 * (pack1 > 0.0 ? pack1 : 1.0 / 2.0);\n float stemWidth = headWidth * (pack2 >= 0.0 ? pack2 : 1.0 / 3.0);\n if (length(vec2(headWidth, headEnd)) > 1.0) {\n vec2 scaledHead = normalize(vec2(headWidth, headEnd));\n headWidth = scaledHead.x;\n headEnd = scaledHead.y;\n }\n float stemEnd = -cos(asin(stemWidth));\n\n headWidth *= radiusVar;\n headEnd *= radiusVar;\n stemWidth *= radiusVar;\n stemEnd *= radiusVar;\n pos.y = abs(pos.y);\n float stemDist = pos.y - stemWidth;\n float stemEndDist = stemEnd - pos.x;\n float B = (radiusVar - headEnd) / headWidth;\n float headDist = (pos.x + B * pos.y - radiusVar) / sqrt(1.0 + B * B);\n float headEndDist;\n if (sweep) {\n B = (radiusVar - headEnd) / 3.0 / headWidth;\n headEndDist = -(pos.x + B * pos.y - (radiusVar + headEnd * 2.0) / 3.0) / sqrt(1.0 + B * B);\n } else {\n headEndDist = headEnd - pos.x;\n }\n headEndDist = min(headEndDist, stemDist);\n return max(max(headDist, headEndDist), stemEndDist);\n}\n\n/* Compute the distance from a point to a drop defined by the radiusVar (the\n * semimajor axis) and ratio (between the minor and major radii).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the drop in pixels. Negative is inside.\n */\nfloat distanceToDrop(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0 || ratio >= 1.0) {\n ratio = 1.0;\n }\n float r = radiusVar * ratio;\n float cx = radiusVar - r;\n float rad = distance(pos.xy, vec2(cx, 0.0)) - r;\n if (ratio < 0.5) {\n float x = radiusVar - r - r * r / cx;\n float y = sqrt(r * r - (cx - x) * (cx - x));\n float Bt = (cx - x) / y;\n if ((pos.x + Bt * abs(pos.y) - cx) / sqrt(1.0 + Bt * Bt) < 0.0) {\n float B = -x / y;\n return -(pos.x + B * abs(pos.y)) / sqrt(1.0 + B * B);\n }\n }\n return rad;\n}\n\n/* Compute the distance from a point to the ellipse defined by the radiusVar\n * (the semimajor axis) and ratio (between the minor and major axes).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the ellipse in pixels. Negative is\n * inside.\n */\nfloat distanceToEllipse(vec2 pos, float ratio) {\n // a and b are the semi-major and semi-minor axes\n // ratio is the between the minor and major axes. If > 1, swap these and\n // rotate 90 degrees.\n if (ratio == 0.0) {\n ratio = 1.0;\n }\n float a = radiusVar, b = abs(radiusVar * ratio);\n if (b > a) {\n pos = vec2(pos.y, -pos.x);\n b = abs(radiusVar / ratio);\n }\n float a2 = a * a, b2 = b * b;\n // compute the distance to the ellipse. See this discussion:\n // https://stackoverflow.com/questions/22959698\n float f = sqrt(a2 - b2),\n // this value will be positive if outside and negative if inside. If\n // we used it directly, the stroke would be too thick along the long\n // edges of the ellipse\n d = (distance(pos, vec2(f, 0.0)) + distance(pos, vec2(-f, 0.0))) * 0.5 - a;\n // if we are outside of the ellipse, accuracy is not important, so return\n // early.\n if (d >= 0.0) {\n return d;\n }\n // work in one quadrant\n pos = abs(pos);\n // t (the angle from center) could start as `atan(pos.y, pos.x)`, but this\n // results in a slower solution near narrow ends\n float t = 0.7;\n float cost = cos(t), sint = sin(t), x = a * cost, y = b * sint;\n vec2 lastxy;\n for (int iter = 0; iter < 10; iter += 1) {\n lastxy = vec2(x, y);\n float ex = (a2 - b2) * pow(cost, 3.0) / a,\n ey = (b2 - a2) * pow(sint, 3.0) / b;\n vec2 r = vec2(x - ex, y - ey),\n q = vec2(pos.x - ex, pos.y - ey);\n float lenr = length(r);\n t += lenr * asin((r.x * q.y - r.y * q.x) / lenr / length(q)) / sqrt(a2 + b2 - x * x - y * y);\n t = clamp(t, 0.0, acos(0.0));\n cost = cos(t);\n sint = sin(t);\n x = a * cost;\n y = b * sint;\n if (distance(lastxy, vec2(x, y)) < 0.05) {\n break;\n }\n }\n return sign(d) * distance(pos, vec2(x, y));\n}\n\n/* Compute the distance from a point to an isosceles triangle.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: length of the base compared to the other sides.\n * Exit: float dist: the distance to the rectangle in pixels. Negative is\n * inside.\n */\nfloat distanceToIsoscelesTriangle(vec2 pos, float ratio) {\n ratio = clamp(abs(ratio), 0.0, 2.0);\n if (ratio == 0.0 || ratio == 2.0) {\n ratio = 1.0;\n }\n float s1, s2, x0, x1, y1;\n if (ratio < sqrt(2.0)) {\n s1 = radiusVar * sqrt(4.0 - ratio * ratio); // length of equal sides\n s2 = s1 * ratio;\n y1 = s2 / 2.0;\n x0 = radiusVar;\n x1 = x0 - sqrt(s1 * s1 - y1 * y1);\n } else {\n s2 = radiusVar * 2.0;\n s1 = s2 / ratio;\n y1 = s2 / 2.0;\n x0 = sqrt(s1 * s1 - y1 * y1);\n x1 = 0.0;\n }\n float B = (x0 - x1) / y1;\n return max(x1 - pos.x, (pos.x + B * abs(pos.y) - x0) / sqrt(1.0 + B * B));\n}\n\n/* Compute the distance from a point to an oval defined by the radiusVar (the\n * semimajor axis) and ratio (between the minor and major axes). Here an oval\n * is defined as two semicircles connected by straight line segments.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the oval in pixels. Negative is inside.\n */\nfloat distanceToOval(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0 || ratio >= 1.0) {\n ratio = 1.0;\n }\n float minor = radiusVar * ratio;\n float center = radiusVar - minor;\n pos = abs(pos);\n if (pos.x <= center) {\n return pos.y - minor;\n }\n return distance(pos, vec2(center, 0.0)) - minor;\n}\n\n/* Compute the distance from a point to a rectangle defined by the radiusVar\n * (the semidiagonal) and ratio (between the minor and major axes).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the rectangle in pixels. Negative is\n * inside.\n */\nfloat distanceToRectangle(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0) {\n ratio = 1.0;\n }\n vec2 wh = normalize(vec2(1.0, abs(ratio))) * radiusVar;\n vec2 dist = abs(pos) - wh;\n return max(dist.x, dist.y);\n}\n\n/* Based on a repetition value, return a position for rotational symmetry.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * int repetitions: number of repetitions on the cross.\n * Exit: float dist: a point in the primary position.\n */\nvec2 rotationalSymmetry(vec2 pos, int repetitions) {\n float pi = acos(-1.0);\n float limit = pi / float(repetitions);\n float ang = atan(pos.y, pos.x);\n ang = mod(ang + pi * 2.0, limit * 2.0);\n if (ang > limit) {\n ang -= limit * 2.0;\n }\n return vec2(cos(ang), sin(ang)) * length(pos);\n}\n\nvoid markerFeatureFragment(vec2 pos) {\n // rad is a value in pixels from the edge of the symbol where negative is\n // inside the shape\n float rad = length(pos.xy) - radiusVar;\n // never allow points outside of the main radius\n if (rad > 0.0) {\n discard;\n return;\n }\n // apply clockwise rotation\n if (rotationVar != 0.0) {\n float cosr = cos(rotationVar), sinr = sin(rotationVar);\n pos = vec2(pos.x * cosr + pos.y * sinr, -pos.x * sinr + pos.y * cosr);\n }\n\n int symbol = int(floor(symbolVar / 64.0));\n bool isimage = bool(mod(floor(symbolVar / 8.0), 2.0));\n vec4 fillColor, strokeColor;\n float endStep;\n\n float ratio = symbolValueVar;\n // When ratio is 0, it usually gets changed to 1; some shapes could have\n // better defaults\n /* Symbol shapes */\n if (symbol == symbolTriangle) {\n rad = distanceToIsoscelesTriangle(pos, ratio);\n } else if (symbol == symbolRectangle) {\n rad = distanceToRectangle(pos, ratio);\n } else if (symbol == symbolOval) {\n rad = distanceToOval(pos, ratio);\n } else if (symbol == symbolDrop) {\n rad = distanceToDrop(pos, ratio);\n } else if (symbol == symbolArrow) {\n rad = distanceToArrow(pos, ratio);\n } else if (symbol >= symbolCrossBase && symbol <= symbolCrossBase + symbolCrossMax - 2) {\n rad = distanceToRectangle(rotationalSymmetry(pos, symbol - symbolCrossBase + 2), ratio);\n } else if (symbol >= symbolFlowerBase && symbol <= symbolFlowerBase + symbolFlowerMax - 2) {\n rad = distanceToEllipse(rotationalSymmetry(pos, symbol - symbolFlowerBase + 2), ratio);\n } else if (symbol >= symbolStarBase && symbol <= symbolStarBase + symbolStarMax - 2) {\n rad = distanceToIsoscelesTriangle(rotationalSymmetry(pos, symbol - symbolStarBase + 2), ratio);\n } else if (symbol >= symbolJackBase && symbol <= symbolJackBase + symbolJackMax - 2) {\n rad = distanceToOval(rotationalSymmetry(pos, symbol - symbolJackBase + 2), ratio);\n } else if (symbol >= symbolDropBase && symbol <= symbolDropBase + symbolDropMax - 2) {\n rad = distanceToDrop(rotationalSymmetry(pos, symbol - symbolDropBase + 2), ratio);\n } else if (symbol >= symbolArrowBase && symbol <= symbolArrowBase + symbolArrowMax - 2) {\n rad = distanceToArrow(rotationalSymmetry(pos, symbol - symbolArrowBase + 2), ratio);\n } else { // default - circle or ellipse; a value of 0 or 1 is a circle\n if (ratio != 0.0 && ratio != 1.0) {\n rad = distanceToEllipse(pos, ratio);\n }\n }\n\n if (rad >= 0.0) {\n discard;\n return;\n }\n // If there is no stroke, the fill region should transition to nothing\n if (strokeColorVar.a == 0.0 || strokeWidthVar <= 0.0) {\n strokeColor = vec4(fillColorVar.rgb, 0.0);\n endStep = 0.0;\n } else {\n strokeColor = strokeColorVar;\n endStep = -strokeWidthVar;\n }\n // Likewise, if there is no fill, the stroke should transition to nothing\n if (fillColorVar.a == 0.0) {\n fillColor = vec4(strokeColorVar.rgb, 0.0);\n } else {\n fillColor = fillColorVar;\n }\n if (rad <= endStep) {\n float step = smoothstep(endStep - antialiasDist, endStep, rad);\n vec4 color = mix(fillColor, strokeColor, step);\n float step2 = smoothstep(-antialiasDist, 0.0, rad);\n gl_FragColor = mix(color, vec4(color.rgb, 0.0), step2);\n } else {\n float step = smoothstep(-antialiasDist, 0.0, rad);\n gl_FragColor = mix(strokeColor, vec4(strokeColor.rgb, 0.0), step);\n }\n}\n\n\n// the square/triangle shader defines unitVar\n\nvoid main(void) {\n // No stroke or fill implies nothing to draw\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0)\n discard;\n // for sprites, convert the position to [-radius,radius],[-radius,radius]\n vec2 pos = (gl_PointCoord.xy - 0.5) * 2.0 * radiusVar;\n markerFeatureFragment(pos);\n}\n"},3783:function(t){t.exports=function(){var t=new Float32Array(16);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}},3832:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3187),a=function(t){"use strict";var e=this;return this instanceof a?(o.call(this,t),this.select=function(){var t=e.renderer(),n={},i=e.nodeFeature(),r=e.linkFeatures();return n.nodes=t.select(i._svgid()),n.links=r.map(function(e){return t.select(e._svgid())}),n},this):new a(t)};i(a,o),r("svg","graph",a),t.exports=a},3842:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=function(t){"use strict";var e=n(5325),r=n(642);if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var s,l,u=this,c=this._init,d=t.nearestPixel,h=0,f=[],p=[];return this.featureType="quad",this._objectListStart=function(t){i.each(t,function(t,e){e.used=!1})},this._objectListGet=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].entry===e)return t[n].used=!0,t[n].value},this._objectListAdd=function(t,e,n){t.push({entry:e,value:n,used:!0})},this._objectListEnd=function(t){for(var e=t.length-1;e>=0;e-=1)t[e].used||t.splice(e,1)},this.pointSearch=function(t,n){var o,a,s=[],c=[],d={},h=[{},{},{},{}],f=[{},{},{},{}],p=[0,1,2,0],m=[1,2,3,1],g=u.data(),y=u.layer().map();return n=null===n?y.gcs():void 0===n?y.ingcs():n,t=e.transformCoordinates(n,y.gcs(),t),l||u._generateQuads(),i.each([l.clrQuads,l.imgQuads,l.vidQuads],function(e,n){n.forEach(function(e,n){for(o=0;o<p.length;o+=1)h[o].x=e.pos[3*p[o]],h[o].y=e.pos[3*p[o]+1],h[o].z=e.pos[3*p[o]+2],f[o].x=e.pos[3*m[o]],f[o].y=e.pos[3*m[o]+1],f[o].z=e.pos[3*m[o]+2];if((r.pointInPolygon(t,h)||r.pointInPolygon(t,f))&&(c.push(e.idx),s.push(g[e.idx]),!(a=r.pointToTriangleBasis2d(t,h[0],h[1],h[2]))||a.x+a.y>1?(a=r.pointToTriangleBasis2d(t,f[2],f[1],f[0]))&&(a.x=1-a.x):a.y=1-a.y,a)){if(e.crop&&void 0!==e.crop.x&&void 0!==e.crop.y&&(a.x>=e.crop.x||a.y>=e.crop.y))return c.pop(),void s.pop();d[e.idx]={basis:a,_quad:e}}})}),{index:c,found:s,extra:d}},this.position=function(t){return void 0===t?u.style("position"):(u.style("position",r.ensureFunction(t)),u.dataTime().modified(),u.modified(),u)},this._positionToQuad=function(t,n,r,o){var a=t.call(u,r,o);if(a.ll&&a.ur||a.ul&&a.lr){var s=u.gcs(),l=u.layer().map().gcs(),c={};return i.each(["ll","lr","ul","ur"],function(t,i){void 0!==a[i]&&(c[i]={},void 0===a[i].x?c[i]=[a[i][0],a[i][1],a[i][2]]:c[i]=[a[i].x,a[i].y,a[i].z],void 0===c[i][2]&&(c[i][2]=n.call(u,r,o)),s!==l&&!1!==s&&(c[i]=e.transformCoordinates(s,l,c[i])))}),c.ll=c.ll||[c.ul[0],c.lr[1],(c.ul[2]+c.lr[2])/2],c.lr=c.lr||[c.ur[0],c.ll[1],(c.ur[2]+c.ll[2])/2],c.ur=c.ur||[c.lr[0],c.ul[1],(c.lr[2]+c.ul[2])/2],c.ul=c.ul||[c.ll[0],c.ur[1],(c.ll[2]+c.ur[2])/2],c}},this._checkQuadUpdate=function(t,e){},this._generateQuads=function(){var t,e,n=u.position(),o=u.style.get("image"),a=u.style.get("video"),c=u.style.get("delayRenderWhenSeeking"),d=u.style.get("color"),m=u.style.get("depth"),g=u.style.get("opacity"),y=u.style.get("drawOnAsyncResourceLoaded"),v=u.style.get("previewColor"),x=u.style.get("previewImage"),_=u.data(),b=[],w=[],M=[],A=[0,0,0];return u._objectListStart(f),u._objectListStart(p),i.each(_,function(l,_){if(_._cachedQuad)return e=_._cachedQuad.diag2,(void 0===t||_._cachedQuad.diag2&&_._cachedQuad.diag2<t)&&(A=_._cachedQuad.ll,t=_._cachedQuad.diag2),_._cachedQuad.clrquad&&b.push(_._cachedQuad.clrquad),_._cachedQuad.imgquad&&(_._cachedQuad.imageEntry&&u._objectListGet(f,_._cachedQuad.imageEntry),w.push(_._cachedQuad.imgquad)),void(_._cachedQuad.vidquad&&(_._cachedQuad.videoEntry&&u._objectListGet(p,_._cachedQuad.videoEntry),M.push(_._cachedQuad.vidquad)));var E,T,S,C,k,P,O,L,R,I,F,D,G={};if(O=u._positionToQuad(n,m,_,l),I=g.call(u,_,l),void 0!==O&&I&&!(I<0)){if(e=Math.pow(O.ll[0]-O.ur[0],2)+Math.pow(O.ll[1]-O.ur[1],2)+Math.pow(O.ll[2]-O.ur[0],2)+Math.pow(O.lr[0]-O.ur[0],2)+Math.pow(O.lr[1]-O.ur[1],2)+Math.pow(O.lr[2]-O.ur[0],2),G.diag2=e,G.ll=O.ll,(void 0===t||e&&e<t)&&(A=O.ll,t=e),O=[O.ll[0],O.ll[1],O.ll[2],O.lr[0],O.lr[1],O.lr[2],O.ul[0],O.ul[1],O.ul[2],O.ur[0],O.ur[1],O.ur[2]],E={idx:l,pos:O,opacity:I,zOffset:_.zOffset},_.reference&&(E.reference=_.reference),_.crop&&(E.crop=_.crop),R=(L=o.call(u,_,l))?null:a.call(u,_,l),_.texture&&_.texture.data&&_.texture.width&&_.texture.height){var j={width:_.texture.width,height:_.texture.height,type:_.texture.type||"RGBA",data:_.texture.data};E.imageTexture=j,w.push(E),G.imgquad=E}else if(L){if(G.imageEntry=L,void 0===(T=u._objectListGet(f,L))&&(L instanceof Image||L instanceof HTMLCanvasElement?T=L:(T=new Image).src=L,u._objectListAdd(f,L,T)),r.isReadyImage(T)||T instanceof HTMLCanvasElement)E.image=T;else if(F=void 0,(D=x.call(u,_,l))&&r.isReadyImage(D)?E.image=D:(F=v.call(u,_,l),E.color=r.convertColor(F),E.color&&void 0!==E.color.r&&void 0!==E.color.g&&void 0!==E.color.b?(b.push(E),G.clrquad=E):F=void 0),y.call(u,_,l))P=r.isReadyImage(T,!0)?null:i.Deferred(),C=T.onload,T.onload=function(){if(void 0!==F&&(b.includes(E)&&b.splice(b.indexOf(E),1),delete G.clrquad),E.image=T,u.dataTime().modified(),u.modified(),u._update(),u.layer().draw(),P&&P.resolve(),C)return C.apply(u,arguments)},k=T.onerror,T.onerror=function(){if(P&&P.reject(),k)return k.apply(u,arguments)},P&&u.layer().addPromise(P.promise());else if(void 0===F&&!E.image)return;w.push(E),G.imgquad=E}else if(R){if(G.videoEntry=R,void 0===(S=u._objectListGet(p,R))&&(R instanceof HTMLVideoElement?S=R:(S=document.createElement("video")).src=R,u._objectListAdd(p,R,S),i(S).off(".geojsvideo").on("seeking.geojsvideo canplay.geojsvideo pause.geojsvideo playing.geojsvideo",function(t){u._checkQuadUpdate(E,t)})),E.delayRenderWhenSeeking=c.call(u,_,l),void 0===E.delayRenderWhenSeeking&&(E.delayRenderWhenSeeking=!0),r.isReadyVideo(S))E.video=S;else if(F=v.call(u,_,l),E.color=r.convertColor(F),E.color&&void 0!==E.color.r&&void 0!==E.color.g&&void 0!==E.color.b?(b.push(E),G.clrquad=E):F=void 0,y.call(u,_,l))P=r.isReadyVideo(S,!0)?null:i.Deferred(),C=S.onloadeddata,S.onloadeddata=function(){if(void 0!==F&&(b.includes(E)&&b.splice(b.indexOf(E),1),delete G.clrquad),E.video=S,u.dataTime().modified(),u.modified(),u._update(),u.layer().draw(),P&&P.resolve(),C)return C.apply(u,arguments)},k=S.onerror,S.onerror=function(){if(P&&P.reject(),k)return k.apply(u,arguments)},P&&u.layer().addPromise(P.promise());else if(void 0===F&&!E.video)return;M.push(E),G.vidquad=E}else{if(E.color=r.convertColor(d.call(u,_,l)),!E.color||void 0===E.color.r||void 0===E.color.g||void 0===E.color.b)return;b.push(E),G.clrquad=E}G.clrquad&&(h+=1,G.clrquad.quadId=h),G.imgquad&&(h+=1,G.imgquad.quadId=h),G.vidquad&&(h+=1,G.vidquad.quadId=h),!1!==s&&(_._cachedQuad=G)}}),u._objectListEnd(f),u._objectListEnd(p),l={clrQuads:b,imgQuads:w,vidQuads:M,origin:new Float32Array(A)}},this.cacheUpdate=function(t){return null==t?i.each(u.data(),function(t,e){e._cachedQuad&&delete e._cachedQuad}):(isFinite(t)&&(t=u.data()[t]),t._cachedQuad&&delete t._cachedQuad),u.modified(),u},this.video=function(t){var e,n;return isFinite(t)&&(t=u.data()[t]),t._cachedQuad?e=(t._cachedQuad.vidquad||{}).video:(l||u._generateQuads(),(n=u.data().indexOf(t))>=0&&(e=u._objectListGet(p,u.style.get("video")(t,n)))),e instanceof HTMLVideoElement?e:null},this.nearestPixel=function(t){return void 0===t?d:(d=t,u.modified(),u)},this._init=function(t){t=t||{},c.call(u,t),s=!1!==t.cacheQuads;var e=Object.assign({},{color:{r:1,g:1,b:1},opacity:1,depth:0,drawOnAsyncResourceLoaded:!0,previewColor:null,previewImage:null,image:function(t){return t.image},video:function(t){return t.video},position:r.identityFunction},void 0===t.style?{}:t.style);void 0!==t.position&&(e.position=r.ensureFunction(t.position)),u.style(e),u.dataTime().modified()},u};a.create=function(t,e){"use strict";return(e=e||{}).type="quad",o.create(t,e)},a.capabilities={color:"quad.color",image:"quad.image",imageCrop:"quad.imageCrop",imageFixedScale:"quad.imageFixedScale",imageFull:"quad.imageFull",canvas:"quad.canvas",video:"quad.video",texture:"quad.texture"},r(a,o),t.exports=a},3893:function(t){"use strict";if(void 0===e){var n=new Error("Cannot find module 'd3'");throw n.code="MODULE_NOT_FOUND",n}t.exports=e},3925:function(t){t.exports="/* pixelmapFeature fragment shader */\n\nvarying highp vec2 iTextureCoord;\nuniform sampler2D sampler2d;\nuniform sampler2D lutSampler;\nuniform int lutWidth;\nuniform int lutHeight;\nuniform mediump float opacity;\nuniform highp vec2 crop;\n\nvoid main(void) {\n if ((crop.s < 1.0 && iTextureCoord.s > crop.s) || (crop.t < 1.0 && 1.0 - iTextureCoord.t > crop.t)) {\n discard;\n }\n // to add anti-aliasing, we would need to know the current pixel size\n // (probably computed in the vertex shader) and then sample the base image at\n // multiple points, then average the output color.\n highp vec4 lutValue = texture2D(sampler2d, iTextureCoord);\n highp vec2 lutCoord;\n lutCoord.s = (\n mod(\n // add 0.5 to handle float imprecision\n floor(lutValue.r * 255.0 + 0.5) +\n floor(lutValue.g * 255.0 + 0.5) * 256.0,\n float(lutWidth)\n // center in pixel\n ) + 0.5) / float(lutWidth);\n // Our image is top-down, so invert the coordinate\n lutCoord.t = 1.0 - (\n floor(\n (\n // add 0.5 to handle float imprecision\n floor(lutValue.r * 255.0 + 0.5) +\n floor(lutValue.g * 255.0 + 0.5) * 256.0 +\n floor(lutValue.b * 255.0 + 0.5) * 256.0 * 256.0\n // We may want an option to use the alpha channel to allow more indices\n ) / float(lutWidth)\n // center in pixel\n ) + 0.5) / float(lutHeight);\n if (lutCoord.t < 0.0) {\n discard;\n }\n mediump vec4 color = texture2D(lutSampler, lutCoord);\n\n color.a *= opacity;\n gl_FragColor = color;\n}\n"},3926:function(t){t.exports=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}},3955:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,u=n*a,c=i*a,d=i*s,h=r*a,f=r*s,p=r*l,m=o*a,g=o*s,y=o*l;return t[0]=1-d-p,t[3]=c-y,t[6]=h+g,t[1]=c+y,t[4]=1-u-p,t[7]=f-m,t[2]=h-g,t[5]=f+m,t[8]=1-u-d,t}},4001:function(t,e,n){t.exports=n(9852)},4019:function(t,e,n){var i=n(4626),r=n(6409),o=n(8695),a=n(1098).registerAnnotation,s=n(6645),l=n(642),u=n(6978).annotation,c=n(6978).state,d=n(6978).annotationActionOwner,h=function(t,e){"use strict";if(!(this instanceof h))return new h(t,e);(t=l.deepMerge({},this.constructor.defaults,t)).corners=t.corners||t.coordinates||[],delete t.coordinates,u.call(this,e||"rectangle",t);var n=this,i=this.actions,a=this.processEditAction;this.actions=function(t){return t||(t=n.state()),t===c.create?[{action:o.annotation_rectangle,name:"rectangle create",owner:d,input:"left",selectionRectangle:!0,selectionConstraint:this._selectionConstraint}]:i.apply(n,arguments)},this.processAction=function(t){var e=n.layer();if(n.state()===c.create&&e&&t.event===r.actionselection&&t.state.action===o.annotation_rectangle){var i=e.map(),a=[i.displayToGcs({x:t.lowerLeft.x,y:t.lowerLeft.y},null),i.displayToGcs({x:t.lowerLeft.x,y:t.upperRight.y},null),i.displayToGcs({x:t.upperRight.x,y:t.upperRight.y},null),i.displayToGcs({x:t.upperRight.x,y:t.lowerLeft.y},null)];return this._selectionConstraint&&t.mouse&&t.state.origin&&this._selectionConstraint(t.mouse.mapgcs,t.state.origin.mapgcs,a),e.displayDistance(a[0],null,a[1],null)*e.displayDistance(a[0],null,a[3],null)<.01?"remove":(n.options("corners",a),n.state(c.done),"done")}},this.features=function(){var t,e=n.options(),i=n.state();return t=[],e.corners&&e.corners.length>=4&&(t=[{polygon:{polygon:e.corners,style:n.styleForState(i)}}]),i===c.edit&&n._addEditHandles(t,e.corners),t},this.toPolygonList=function(t){return n._coordinates().length<3?[]:[[n._coordinates().map(function(t){return[t.x,t.y]})]]},this._coordinates=function(t){return t&&t.length>=4&&n.options("corners",t.slice(0,4)),n.options("corners")},this._coordinateOption="corners",this._geojsonCoordinates=function(t){var e=n.coordinates(t);if(e&&n.state()!==c.create&&!(e.length<4)){for(var i=[],r=0;r<4;r+=1)i.push([e[r].x,e[r].y]);return i.push([e[0].x,e[0].y]),[i]}},this._geojsonGeometryType=function(){return"Polygon"},this._geojsonStyles=function(){return["fill","fillColor","fillOpacity","lineCap","lineJoin","stroke","strokeColor","strokeOffset","strokeOpacity","strokeWidth"]},this._setCornersFromMouse=function(t,e){var i=n.layer().map(),r=i.gcsToDisplay({x:t[0].x,y:t[0].y},null),o=i.gcsToDisplay(e.mapgcs,null),a={x:o.x,y:r.y},s={x:r.x,y:o.y};t[2]=Object.assign({},e.mapgcs),t[1]=i.displayToGcs(a,null),t[3]=i.displayToGcs(s,null),this._selectionConstraint&&this._selectionConstraint(e.mapgcs,t[0],t)},this.mouseMove=function(t){if(n.state()===c.create){var e=n.options("corners");return e.length?(n._setCornersFromMouse(e,t),!0):void 0}},this.mouseClick=function(t){var e=n.layer();if(n.state()===c.create&&e&&(t.buttonsDown.left||t.buttonsDown.right)){var i=n.options("corners");if(!t.buttonsDown.right||i.length)return t.handled=!0,i.length?(n._setCornersFromMouse(i,t),e.displayDistance(i[0],null,i[1],null)*e.displayDistance(i[0],null,i[3],null)<.01?"remove":(n.state(c.done),"done")):t.buttonsDown.left?(i.push(Object.assign({},t.mapgcs)),i.push(Object.assign({},t.mapgcs)),i.push(Object.assign({},t.mapgcs)),i.push(Object.assign({},t.mapgcs)),!0):void 0}},this.processEditAction=function(t){var e,i,r,o,s,l=n._editHandle.startCoordinates,u={x:t.mouse.mapgcs.x-t.state.origin.mapgcs.x,y:t.mouse.mapgcs.y-t.state.origin.mapgcs.y},c=n._editHandle.handle.type,d=n._editHandle.handle.index,h=[Math.atan2(l[1].y-l[0].y,l[1].x-l[0].x),Math.atan2(l[2].y-l[1].y,l[2].x-l[1].x),Math.atan2(l[3].y-l[2].y,l[3].x-l[2].x),Math.atan2(l[0].y-l[3].y,l[0].x-l[3].x)];switch(h[0]||h[1]||h[2]||h[3]||(h[1]=Math.PI/2,h[2]=Math.PI,h[3]=-Math.PI/2),h[0]||h[2]||(h[0]=h[1]-Math.PI/2,h[2]=h[1]+Math.PI/2),h[1]||h[3]||(h[1]=h[2]-Math.PI/2,h[3]=h[2]+Math.PI/2),c){case"vertex":return e=l.map(function(t){return{x:t.x,y:t.y}}),o=h[(d+1)%4],i={x:(u.x*Math.cos(o)+u.y*Math.sin(o))*Math.cos(o),y:(u.y*Math.sin(o)+u.x*Math.cos(o))*Math.sin(o)},s=h[d],r={x:(u.x*Math.cos(s)+u.y*Math.sin(s))*Math.cos(s),y:(u.y*Math.sin(s)+u.x*Math.cos(s))*Math.sin(s)},e[d].x+=u.x,e[d].y+=u.y,e[(d+1)%4].x+=i.x,e[(d+1)%4].y+=i.y,e[(d+3)%4].x+=r.x,e[(d+3)%4].y+=r.y,this._selectionConstraint&&(e=this._selectionConstraint(t.mouse.mapgcs,t.state.origin.mapgcs,e,"vertex",h,d).corners),n.options("corners",e),!0;case"edge":return e=l.map(function(t){return{x:t.x,y:t.y}}),o=h[(d+1)%4],u={x:(u.x*Math.cos(o)+u.y*Math.sin(o))*Math.cos(o),y:(u.y*Math.sin(o)+u.x*Math.cos(o))*Math.sin(o)},e[d].x+=u.x,e[d].y+=u.y,e[(d+1)%4].x+=u.x,e[(d+1)%4].y+=u.y,this._selectionConstraint&&(e=this._selectionConstraint(t.mouse.mapgcs,t.state.origin.mapgcs,e,"edge",h,d).corners),n.options("corners",e),!0}return a.apply(n,arguments)}};i(h,u),h.defaults=Object.assign({},u.defaults,{style:{fill:!0,fillColor:{r:0,g:1,b:0},fillOpacity:.25,polygon:function(t){return t.polygon},stroke:!0,strokeColor:{r:0,g:0,b:0},strokeOpacity:1,strokeWidth:3,uniformPolygon:!0},highlightStyle:{fillColor:{r:0,g:1,b:1},fillOpacity:.5,strokeWidth:5},createStyle:{fillColor:{r:.3,g:.3,b:.3},fillOpacity:.25,strokeColor:{r:0,g:0,b:1}},allowBooleanOperations:!0});var f={};f[s.capabilities.feature]=!0,a("rectangle",h,f),t.exports=h},4025:function(t,e,n){"use strict";function i(t,e){return Math.pow((1-t)/(1+t),e)}n.r(e),n.d(e,{default:function(){return c},forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var r=n(7e3),o=20;function a(){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+r.Vj)/(Math.pow(Math.tan(.5*this.lat0+r.Vj),this.C)*i(this.e*t,this.ratexp))}function s(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+r.Vj),this.C)*i(this.e*Math.sin(n),this.ratexp))-r.sK,t.x=this.C*e,t}function l(t){for(var e=t.x/this.C,n=t.y,a=Math.pow(Math.tan(.5*n+r.Vj)/this.K,1/this.C),s=o;s>0&&(n=2*Math.atan(a*i(this.e*Math.sin(t.y),-.5*this.e))-r.sK,!(Math.abs(n-t.y)<1e-14));--s)t.y=n;return s?(t.x=e,t.y=n,t):null}var u=["gauss"],c={init:a,forward:s,inverse:l,names:u}},4061:function(t,e,n){var i=function(){"use strict";var t,e=this,n=this._init,i=this._exit,r=this._update,o=0,a=[];this._drawTile=function(n){if(t){var i=e._tileBounds(n),r=n.index.level||0,s=e._tileOffset(r),l={};l.ul=e.fromLocal(e.fromLevel({x:i.left-s.x,y:i.top-s.y},r),0),l.ll=e.fromLocal(e.fromLevel({x:i.left-s.x,y:i.bottom-s.y},r),0),l.ur=e.fromLocal(e.fromLevel({x:i.right-s.x,y:i.top-s.y},r),0),l.lr=e.fromLocal(e.fromLevel({x:i.right-s.x,y:i.bottom-s.y},r),0),l.ul.z=l.ll.z=l.ur.z=l.lr.z=r,o+=1,l.id=o,n.quadId=l.id,l.image=n.image,l.reference=n.toString(),a.push(l),t.data(a),t._update(),e.draw()}},this._remove=function(n){if(void 0!==n.quadId&&t){for(var i=0;i<a.length;i+=1)if(a[i].id===n.quadId){a.splice(i,1);break}t.data(a),t._update(),e.draw()}},this._update=function(n){return r.call(e,n),e._addBaseQuadToTiles(t,a),e},this._exit=function(){e.deleteFeature(t),t=null,a=[],i.apply(e,arguments)},this._init=function(){n.apply(e,arguments),(t=e.createFeature("quad",{previewColor:e._options.previewColor,previewImage:e._options.previewImage})).geoTrigger=void 0,t.gcs(e._options.gcs||e.map().gcs()),t.data(a),t._update()},this._getSubLayer=function(){},this._updateSubLayers=void 0};(0,n(1098).registerLayerAdjustment)("svg","tile",i),t.exports=i},4081:function(t){t.exports="1.15.3"},4084:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw;if(this.draw=function(){return e.ready&&(e._update({mayDelay:!0}),e.renderer()._render(),r()),e},this.bin){var o=this.bin;this.bin=function(t,n){if(void 0===t&&!n&&null===o(void 0,!0)){var i=e.layer&&e.layer(),r=i&&i.map&&i.map(),a=(r&&r.listSceneObjects()||[]).indexOf(e);if(a>=0)return a}return o.apply(e,arguments)}}return this};t.exports=i},4087:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5616),i=n(2493).d3,r=n(5005);o.call(this,t),r.call(this);var s,l=this,u=this._exit,c=this._init,d=this._update;return this._build=function(){if(this.position()){var t=l.renderer(),n=t.layer().map();s=l._generateQuads();var r=[];e.each(s.clrQuads,function(t,e){r.push({type:"clr",quad:e,zIndex:e.pos[2]})}),e.each(s.imgQuads,function(t,e){e.image&&r.push({type:"img",quad:e,zIndex:e.pos[2]})});var o={id:l._svgid(),data:r,dataIndex:function(t){return t.quad.quadId},append:function(t){var e=this.namespaceURI,n="clr"===t.type?"polygon":"image";return e?document.createElementNS(e,n):document.createElement(n)},attributes:{fill:function(t){if("clr"===t.type)return i.rgb(255*t.quad.color.r,255*t.quad.color.g,255*t.quad.color.b);1!==t.quad.opacity&&i.select(this).style("opacity",t.quad.opacity)},height:function(t){return"clr"===t.type?void 0:1},points:function(e){if("clr"===e.type&&!e.points){var i,r=[];for(i=0;i<e.quad.pos.length;i+=3){var o={x:e.quad.pos[i],y:e.quad.pos[i+1],z:e.quad.pos[i+2]};o=n.gcsToDisplay(o,null),o=t.baseToLocal(o),r.push(o.x+","+o.y)}e.points=r[0]+" "+r[1]+" "+r[3]+" "+r[2]}return"clr"===e.type?e.points:void 0},preserveAspectRatio:function(t){return"clr"===t.type?void 0:"none"},reference:function(t){return t.quad.reference},stroke:!1,transform:function(e){if("img"===e.type&&e.quad.image&&!e.svgTransform){var i,r,o,a,s=[],l=-1,u=e.quad.image.width,c=e.quad.image.height;for(o=0;o<e.quad.pos.length;o+=3){var d={x:e.quad.pos[o],y:e.quad.pos[o+1],z:e.quad.pos[o+2]};d=n.gcsToDisplay(d,null),d=t.baseToLocal(d),s.push(d)}for(o=0;o<4;o+=1)(i=Math.abs(s[(o+1)%4].x*(s[(o+2)%4].y-s[(o+3)%4].y)+s[(o+2)%4].x*(s[(o+3)%4].y-s[(o+1)%4].y)+s[(o+3)%4].x*(s[(o+1)%4].y-s[(o+2)%4].y))/2)>l&&(l=i,r=o);e.svgTransform=[3===r||2===r?s[1].x-s[0].x:s[3].x-s[2].x,3===r||2===r?s[1].y-s[0].y:s[3].y-s[2].y,0===r||2===r?s[1].x-s[3].x:s[0].x-s[2].x,0===r||2===r?s[1].y-s[3].y:s[0].y-s[2].y,2===r?s[3].x+s[0].x-s[1].x:s[2].x,2===r?s[3].y+s[0].y-s[1].y:s[2].y],Math.abs(e.svgTransform[1]/u)<1e-6&&Math.abs(e.svgTransform[2]/c)<1e-6&&(a=e.svgTransform[0]/u,e.svgTransform[4]=Math.round(e.svgTransform[4]/a)*a,a=e.svgTransform[3]/c,e.svgTransform[5]=Math.round(e.svgTransform[5]/a)*a)}return"img"===e.type&&e.quad.image?"matrix("+e.svgTransform.join(" ")+")":void 0},width:function(t){return"clr"===t.type?void 0:1},x:function(t){return"clr"===t.type?void 0:0},"xlink:href":function(t){return"clr"!==t.type&&t.quad.image?t.quad.image.src:void 0},y:function(t){return"clr"===t.type?void 0:0}},style:{fillOpacity:function(t){return"clr"===t.type?t.quad.opacity:void 0}},onlyRenderNew:!this.style("previewColor")&&!this.style("previewImage"),sortByZ:!0,visible:l.visible,classes:["svgQuadFeature"]};t._drawFeatures(o),l.buildTime().modified()}},this._update=function(){return d.call(l),(l.buildTime().timestamp()<=l.dataTime().timestamp()||l.buildTime().timestamp()<l.timestamp())&&l._build(),l},this._init=function(){c.call(l,t)},this._exit=function(){u.call(l)},l._init(t),this};i(a,o);var s={};s[o.capabilities.color]=!0,s[o.capabilities.image]=!0,s[o.capabilities.imageCrop]=!1,s[o.capabilities.imageFixedScale]=!1,s[o.capabilities.imageFull]=!1,s[o.capabilities.canvas]=!1,s[o.capabilities.video]=!1,r("svg","quad",a,s),t.exports=a},4092:function(t){t.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&&e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,n){for(var i=t.root,r=t.root.next;null!==r;){if(n(r))return e.prev=r.prev,e.next=r,r.prev.next=e,void(r.prev=e);i=r,r=r.next}i.next=e,e.prev=i,e.next=null},findTransition:function(e){for(var n=t.root,i=t.root.next;null!==i&&!e(i);)n=i,i=i.next;return{before:n===t.root?null:n,after:i,insert:function(t){return t.prev=n,t.next=i,n.next=t,null!==i&&(i.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&&(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},4231:function(t,e,n){var i=n(4626),r=n(1098).registerLayer,o=n(5156),a=function(t){"use strict";var e=n(1098).createWidget;if(t.renderer="dom",t.sticky=!1,!(this instanceof a))return new a(t);o.call(this,t);var i=this,r=this._exit;this.createWidget=function(t,n){var r=e(t,i,n);return n&&"parent"in n||i.addChild(r),r._init(n),i.modified(),r},this.deleteWidget=function(t){return t._exit(),i.removeChild(t),i.modified(),i},this._exit=function(){i.children().forEach(function(t){i.deleteWidget(t)}),r()}};i(a,o),r("ui",a),t.exports=a},4279:function(t,e,n){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,{default:function(){return u}});var l=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],u=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float64Array,r=arguments.length>3?arguments[3]:void 0;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),isNaN(e)||e<0)throw new Error("Unpexpected numItems value: ".concat(e,"."));this.numItems=+e,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;var o=l.indexOf(this.ArrayType),a=2*e*this.ArrayType.BYTES_PER_ELEMENT,s=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-s%8)%8;if(o<0)throw new Error("Unexpected typed array class: ".concat(i,"."));r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+u,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+a+s+u),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+u,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=e)}return e=t,i=[{key:"from",value:function(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var n=r(new Uint8Array(e,0,2),2),i=n[0],o=n[1];if(219!==i)throw new Error("Data does not appear to be in a KDBush format.");var a=o>>4;if(1!==a)throw new Error("Got v".concat(a," data when expected v").concat(1,"."));var s=l[15&o];if(!s)throw new Error("Unrecognized array type.");var u=r(new Uint16Array(e,2,1),1)[0];return new t(r(new Uint32Array(e,4,1),1)[0],u,s,e)}}],(n=[{key:"add",value:function(t,e){var n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=e,n}},{key:"finish",value:function(){var t=this._pos>>1;if(t!==this.numItems)throw new Error("Added ".concat(t," items when expected ").concat(this.numItems,"."));return c(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}},{key:"range",value:function(t,e,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var r=this.ids,o=this.coords,a=this.nodeSize,s=[0,r.length-1,0],l=[];s.length;){var u=s.pop()||0,c=s.pop()||0,d=s.pop()||0;if(c-d<=a)for(var h=d;h<=c;h++){var f=o[2*h],p=o[2*h+1];f>=t&&f<=n&&p>=e&&p<=i&&l.push(r[h])}else{var m=d+c>>1,g=o[2*m],y=o[2*m+1];g>=t&&g<=n&&y>=e&&y<=i&&l.push(r[m]),(0===u?t<=g:e<=y)&&(s.push(d),s.push(m-1),s.push(1-u)),(0===u?n>=g:i>=y)&&(s.push(m+1),s.push(c),s.push(1-u))}}return l}},{key:"within",value:function(t,e,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var i=this.ids,r=this.coords,o=this.nodeSize,a=[0,i.length-1,0],s=[],l=n*n;a.length;){var u=a.pop()||0,c=a.pop()||0,d=a.pop()||0;if(c-d<=o)for(var h=d;h<=c;h++)p(r[2*h],r[2*h+1],t,e)<=l&&s.push(i[h]);else{var f=d+c>>1,m=r[2*f],g=r[2*f+1];p(m,g,t,e)<=l&&s.push(i[f]),(0===u?t-n<=m:e-n<=g)&&(a.push(d),a.push(f-1),a.push(1-u)),(0===u?t+n>=m:e+n>=g)&&(a.push(f+1),a.push(c),a.push(1-u))}}return s}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i}();function c(t,e,n,i,r,o){if(!(r-i<=n)){var a=i+r>>1;d(t,e,a,i,r,o),c(t,e,n,i,a-1,1-o),c(t,e,n,a+1,r,1-o)}}function d(t,e,n,i,r,o){for(;r>i;){if(r-i>600){var a=r-i+1,s=n-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);d(t,e,n,Math.max(i,Math.floor(n-s*u/a+c)),Math.min(r,Math.floor(n+(a-s)*u/a+c)),o)}var f=e[2*n+o],p=i,m=r;for(h(t,e,i,n),e[2*r+o]>f&&h(t,e,i,r);p<m;){for(h(t,e,p,m),p++,m--;e[2*p+o]<f;)p++;for(;e[2*m+o]>f;)m--}e[2*i+o]===f?h(t,e,i,m):h(t,e,++m,r),m<=n&&(i=m+1),n<=m&&(r=m-1)}}function h(t,e,n,i){f(t,n,i),f(e,2*n,2*i),f(e,2*n+1,2*i+1)}function f(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function p(t,e,n,i){var r=t-n,o=e-i;return r*r+o*o}},4280:function(t,e,n){"use strict";function i(t){return t*t*t*(35/3072)}n.d(e,{A:function(){return i}})},4317:function(t){t.exports="/* pointFeature square/triangle fragment shader */\n\n/* pointFeature common fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float radiusVar;\nvarying float strokeWidthVar;\n\nvoid pointFeatureFragment(float rad) {\n vec4 strokeColor, fillColor;\n float endStep;\n // No stroke or fill implies nothing to draw\n if (rad > 1.0)\n discard;\n // If there is no stroke, the fill region should transition to nothing\n if (strokeColorVar.a == 0.0) {\n strokeColor = vec4(fillColorVar.rgb, 0.0);\n endStep = 1.0;\n } else {\n strokeColor = strokeColorVar;\n endStep = radiusVar / (radiusVar + strokeWidthVar);\n }\n // Likewise, if there is no fill, the stroke should transition to nothing\n if (fillColorVar.a == 0.0)\n fillColor = vec4(strokeColor.rgb, 0.0);\n else\n fillColor = fillColorVar;\n // Distance to antialias over. First number is in pixels\n float antialiasDist = 1.5 / (radiusVar + strokeWidthVar);\n if (rad < endStep) {\n float step = smoothstep(max(0.0, endStep - antialiasDist), endStep, rad);\n vec4 color = mix(fillColor, strokeColor, step);\n float step2 = smoothstep(max(0.0, 1.0 - antialiasDist), 1.0, rad);\n gl_FragColor = mix(color, vec4(color.rgb, 0.0), step2);\n } else {\n float step = smoothstep(max(0.0, 1.0 - antialiasDist), 1.0, rad);\n gl_FragColor = mix(strokeColor, vec4(strokeColor.rgb, 0.0), step);\n }\n}\n\n\nvarying vec3 unitVar; // distinct for square/triangle\n\nvoid main () {\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0)\n discard;\n float rad = length(unitVar.xy); // distinct for square/triangle\n pointFeatureFragment(rad);\n}\n"},4370:function(t){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}},4424:function(t,e,n){"use strict";function i(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}n.d(e,{A:function(){return i}})},4436:function(t){"use strict";if(void 0===n){var e=new Error("Cannot find module 'vtk.js'");throw e.code="MODULE_NOT_FOUND",e}t.exports=n},4547:function(t){t.exports="/* polygonFeature fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying vec4 fillColorVar;\n\nvoid main () {\n gl_FragColor = fillColorVar;\n}\n"},4580:function(t,e,n){var i=n(698),r=n(4626),o=n(77),a=n(1982),s=n(4663),l=n(3503);i.camera=function(t){"use strict";if(!(this instanceof i.camera))return new i.camera(t);i.groupNode.call(this),t=t||{};var e=30*Math.PI/180,n=s.fromValues(0,0,1,1),r=s.fromValues(0,0,0,1),u=s.fromValues(0,1,0,0),c=1,d=s.fromValues(0,0,-1,0),h=l.create(),f=l.create(),p=o(),m=o(),g=-1,y=1,v=1,x=-1,_={zoom:1,tilesize:256},b=!1,w=[0,0,0,0],M=i.GL.COLOR_BUFFER_BIT|i.GL.DEPTH_BUFFER_BIT;return void 0!==t.parallelProjection&&(b=!!t.parallelProjection),this.setViewAspect=function(t){c=t,this.modified()},this.parallelExtents=function(){return _},this.setParallelExtents=function(t){var e,n,i=["width","height","zoom","tilesize"],r=!1;for(e=0;e<i.length;e+=1)void 0!==t[n=i[e]]&&t[n]!==_[n]&&(_[n]=t[n],r=!0);if(r&&_.width&&_.height&&void 0!==_.zoom&&_.tilesize){var o=this.unitsPerPixel(_.zoom,_.tilesize);y=o*_.width/2,g=-y,v=o*_.height/2,x=-v,this.modified()}},this.unitsPerPixel=function(t,e){return e=e||256,360*Math.pow(2,-t)/e},this.viewMatrix=function(){return this.computeViewMatrix()},this.setViewMatrix=function(t,e){e?h=t.slice():l.copy(h,t),p.modified()},this.projectionMatrix=function(){return this.computeProjectionMatrix()},this.setProjectionMatrix=function(t){l.copy(f,t),m.modified()},this.clearMask=function(){return M},this.clearColor=function(){return w},this.clearDepth=function(){return 1},this.computeDirectionOfProjection=function(){a.subtract(d,r,n),a.normalize(d,d),this.modified()},this.computeViewMatrix=function(){return p.getMTime()<this.getMTime()&&(l.lookAt(h,n,r,u),p.modified()),h},this.computeProjectionMatrix=function(){return m.getMTime()<this.getMTime()&&(b?l.ortho(f,g,y,x,v,.01,1e4):l.perspective(f,e,c,.01,1e4),m.modified()),f},this.computeDirectionOfProjection(),this},r(i.camera,i.groupNode)},4622:function(t){t.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},4626:function(t){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},4655:function(t,e,n){var i=n(6978);t.exports={state:i.state,actionOwner:i.actionOwner,annotation:i.annotation,_editHandleFeatureLevel:i._editHandleFeatureLevel,defaultEditHandleStyle:i.defaultEditHandleStyle,constrainAspectRatio:i.constrainAspectRatio,baseAnnotation:i,circleAnnotation:n(9894),ellipseAnnotation:n(3656),lineAnnotation:n(2612),pointAnnotation:n(400),polygonAnnotation:n(1920),rectangleAnnotation:n(4019),squareAnnotation:n(5229)}},4663:function(t,e,n){t.exports={create:n(3071),clone:n(7682),fromValues:n(8741),copy:n(9298),set:n(6675),add:n(2108),subtract:n(6919),multiply:n(9363),divide:n(1350),min:n(9271),max:n(2045),scale:n(7705),scaleAndAdd:n(2869),distance:n(5476),squaredDistance:n(6733),length:n(7159),squaredLength:n(2678),negate:n(6977),inverse:n(3095),normalize:n(8308),dot:n(216),lerp:n(2710),random:n(9960),transformMat4:n(8773),transformQuat:n(2508)}},4692:function(t){t.exports=function(t,e){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]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},4765:function(t){t.exports="geo_svg_rescale"},4812:function(t,e,n){t.exports={colorLegendWidget:n(5734),domWidget:n(8524),legendWidget:n(9443),scaleWidget:n(2894),sliderWidget:n(3019),svgWidget:n(7854),uiLayer:n(4231),widget:n(8738)}},4831:function(t,e,n){var i=n(698);i.event={},i.event.keyPress="vgl.event.keyPress",i.event.mousePress="vgl.event.mousePress",i.event.mouseRelease="vgl.event.mouseRelease",i.event.contextMenu="vgl.event.contextMenu",i.event.configure="vgl.event.configure",i.event.enable="vgl.event.enable",i.event.mouseWheel="vgl.event.mouseWheel",i.event.keyRelease="vgl.event.keyRelease",i.event.middleButtonPress="vgl.event.middleButtonPress",i.event.startInteraction="vgl.event.startInteraction",i.event.enter="vgl.event.enter",i.event.rightButtonPress="vgl.event.rightButtonPress",i.event.middleButtonRelease="vgl.event.middleButtonRelease",i.event.char="vgl.event.char",i.event.disable="vgl.event.disable",i.event.endInteraction="vgl.event.endInteraction",i.event.mouseMove="vgl.event.mouseMove",i.event.mouseOut="vgl.event.mouseOut",i.event.expose="vgl.event.expose",i.event.timer="vgl.event.timer",i.event.leftButtonPress="vgl.event.leftButtonPress",i.event.leave="vgl.event.leave",i.event.rightButtonRelease="vgl.event.rightButtonRelease",i.event.leftButtonRelease="vgl.event.leftButtonRelease",i.event.click="vgl.event.click",i.event.dblClick="vgl.event.dblClick"},4880:function(t,e,n){var i=n(4626),r=n(9264),o=n(1098),a=n(3842),s=n(642),l=function(t){var e=n(4912);if(!(this instanceof l))return new l(t);void 0!==(t=t||{}).mapOpacity&&void 0===t.opacity&&((t=Object.assign({},t)).opacity=t.mapOpacity),t=s.deepMerge({},this.constructor.defaults,l.tileSources[this.constructor.defaults.source]||{},l.tileSources[t.source]||{},{name:""},t),r.call(this,t);var i=this;this.mapOpacity=this.opacity,this._getTile=function(t,n){var r=n||t;return e({index:t,size:{x:i._options.tileWidth,y:i._options.tileHeight},queue:i._queue,overlap:i._options.tileOverlap,scale:i._options.tileScale,url:i._options.url.call(i,r.x,r.y,Math.max(r.level||0,Math.min(0,i._options.minLevel||0)),i._options.subdomains),crossDomain:i._options.crossDomain})},this.source=function(t){if(void 0!==t)return l.tileSources[t]&&(i.url(l.tileSources[t].url),i.subdomains(l.tileSources[t].subdomains||"abc"),i.attribution(l.tileSources[t].attribution||""),i._options.maxLevel=l.tileSources[t].maxLevel||18,i._options.minLevel=l.tileSources[t].minLevel||0),i;for(var e in l.tileSources)if(l.tileSources[e].url===i.url())return e}};l.defaults=Object.assign({},r.defaults,{tileOffset:function(t){var e=256*Math.pow(2,t-1);return{x:e,y:e}},url:"",source:"osm"});var u='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',c='<a href="https://carto.com"> Carto</a> Contributors <a href="https://www.openstreetmap.org/"> OpenStreetMap</a>';l.tileSources={"dark-matter-with-labels":{url:" https://{s}.basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}.png",attribution:c,name:"Carto Dark Matter With Labels",minLevel:0,maxLevel:18},"dark-matter-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/dark_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Dark Matter Without Labels",minLevel:0,maxLevel:18},"nationalmap-relief":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Shaded Relief",minLevel:0,maxLevel:16},"nationalmap-satellite":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Satellite",minLevel:0,maxLevel:16},"nationalmap-satellite-topo":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Satellite and Topo",minLevel:0,maxLevel:16},"nationalmap-topo":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Topo",minLevel:0,maxLevel:16},osm:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'Tile data &copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',name:"OpenStreetMap",subdomains:"abc",minLevel:0,maxLevel:19},"positron-with-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}.png",attribution:c,name:"Carto Positron With Labels",minLevel:0,maxLevel:18},"positron-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/light_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Positron Without Labels",minLevel:0,maxLevel:18},"stamen-terrain":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png",attribution:u,name:"Stamen Terrain",subdomains:"abcd",minLevel:0,maxLevel:14},"stamen-terrain-background":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain-background/{z}/{x}/{y}.png",attribution:u,name:"Stamen Terrain Background",subdomains:"abcd",minLevel:0,maxLevel:14},"stamen-toner":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",attribution:u,name:"Stamen Toner",subdomains:"abcd",minLevel:0,maxLevel:20},"stamen-toner-lite":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png",attribution:u,name:"Stamen Toner Lite",subdomains:"abcd",minLevel:0,maxLevel:20},"voyager-with-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager_labels_under/{z}/{x}/{y}.png",attribution:c,name:"Carto Voyager With Labels",minLevel:0,maxLevel:18},"voyager-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Voyager Without Labels",minLevel:0,maxLevel:18}},i(l,r),o.registerLayer("osm",l,[a.capabilities.image]),t.exports=l},4894:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return u},init:function(){return l},inverse:function(){return c},names:function(){return h},phi1z:function(){return d}});var i=n(7072),r=n(5964),o=n(6269),a=n(8597),s=n(7e3);function l(){Math.abs(this.lat1+this.lat2)<s.H0||(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=(0,i.A)(this.e3,this.sin_po,this.cos_po),this.qs1=(0,r.A)(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=(0,i.A)(this.e3,this.sin_po,this.cos_po),this.qs2=(0,r.A)(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=(0,r.A)(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>s.H0?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=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)}function u(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=(0,r.A)(this.e3,this.sin_phi),a=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,s=this.ns0*(0,o.A)(e-this.long0),l=a*Math.sin(s)+this.x0,u=this.rh-a*Math.cos(s)+this.y0;return t.x=l,t.y=u,t}function c(t){var e,n,i,r,a,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,s=this.phi1z(this.e3,n)),a=(0,o.A)(r/this.ns0+this.long0),t.x=a,t.y=s,t}function d(t,e){var n,i,r,o,l=(0,a.A)(.5*e);if(t<s.H0)return l;for(var u=t*t,c=1;c<=25;c++)if(l+=o=.5*(r=1-(i=t*(n=Math.sin(l)))*i)*r/Math.cos(l)*(e/(1-u)-n/r+.5/t*Math.log((1-i)/(1+i))),Math.abs(o)<=1e-7)return l;return null}var h=["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"];e.default={init:l,forward:u,inverse:c,names:h,phi1z:d}},4912:function(t,e,n){var i=n(4626),r=n(5289),o=function(t){if(!(this instanceof o))return new o(t);var e=n(5616);return t.size=t.size||{x:256,y:256},this._image=null,this._cors=t.crossDomain||null===t.crossDomain?t.crossDomain:"anonymous",r.call(this,t),Object.defineProperty(this,"image",{get:function(){return this._image}}),this.fetch=function(){var t;return this._image||(this._image=new Image(this.right-this.left,this.bottom-this.top),this._cors&&this._url.indexOf(":")>=0&&this._url.indexOf("/")===this._url.indexOf(":")+1&&(this._image.crossOrigin=this._cors),t=e.Deferred(),this._image.onload=t.resolve,this._image.onerror=t.reject,this._image.src=this._url,t.done(function(){this._fetched=!0}.bind(this)).promise(this)),this},this.fadeIn=function(t){var n=this.fetch(),i=e.Deferred();return e(this._image).css("display","none"),n.done(function(){e(this._image).fadeIn(t,function(){i.resolve()})}.bind(this)),i.promise(this)},this};i(o,r),t.exports=o},4933:function(t,e,n){var i=n(698);i.vertexAttributeKeys={Position:0,Normal:1,TextureCoordinate:2,Color:3,Scalar:4,CountAttributeIndex:5},i.vertexAttributeKeysIndexed={Zero:0,One:1,Two:2,Three:3,Four:4,Five:5,Six:6,Seven:7,Eight:8,Nine:9},i.vertexAttribute=function(t){"use strict";if(!(this instanceof i.vertexAttribute))return new i.vertexAttribute(t);var e=t;this.name=function(){return e},this.bindVertexData=function(t,n){var i=t.m_mapper.geometryData().sourceData(n),r=t.m_material.shaderProgram();t.m_context.vertexAttribPointer(r.attributeLocation(e),i.attributeNumberOfComponents(n),i.attributeDataType(n),i.normalized(n),i.attributeStride(n),i.attributeOffset(n)),t.m_context.enableVertexAttribArray(r.attributeLocation(e))},this.undoBindVertexData=function(t,n){var i=t.m_material.shaderProgram();t.m_context.disableVertexAttribArray(i.attributeLocation(e))}}},4942:function(t){"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),o="/*# ".concat(r," */");return[e].concat([o]).join("\n")}return[e].join("\n")}},4970:function(t,e,n){var i=n(698),r=n(4626);i.material=function(){"use strict";if(!(this instanceof i.material))return new i.material;i.graphicsObject.call(this);var t=this,e=new i.shaderProgram,n=100,r={},o={};return this.binNumber=function(){return n},this.setBinNumber=function(e){n=e,t.modified()},this.exists=function(t){return t.type()===i.materialAttributeType.Texture?r.hasOwnProperty(t.textureUnit()):o.hasOwnProperty(t.type())},this.addAttribute=function(n){return!t.exists(n)&&(n.type()===i.materialAttributeType.Texture?(r[n.textureUnit()]=n,t.modified(),!0):(n.type()===i.materialAttributeType.ShaderProgram&&(e=n),o[n.type()]=n,t.modified(),!0))},this.shaderProgram=function(){return e},this._cleanup=function(n){for(var i in o)o.hasOwnProperty(i)&&o[i]._cleanup(n);for(i in r)r.hasOwnProperty(i)&&r[i]._cleanup(n);e._cleanup(n),t.modified()},this.bind=function(t){var n=null;for(n in e.bind(t),o)o.hasOwnProperty(n)&&o[n]!==e&&o[n].bind(t);for(n in r)r.hasOwnProperty(n)&&r[n].bind(t)},this.undoBind=function(t){var e=null;for(e in o)o.hasOwnProperty(e)&&o[e].undoBind(t);for(e in r)r.hasOwnProperty(e)&&r[e].undoBind(t)},this.bindVertexData=function(t,e){var n=null;for(n in o)o.hasOwnProperty(n)&&o[n].bindVertexData(t,e)},this.undoBindVertexData=function(t,e){var n=null;for(n in o)o.hasOwnProperty(n)&&o[n].undoBindVertexData(t,e)},t},i.material.RenderBin={Base:0,Default:100,Opaque:100,Transparent:1e3,Overlay:1e4},r(i.material,i.graphicsObject)},4980:function(t){t.exports=function(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],c=e[7],d=e[8],h=n[0],f=n[1],p=n[2],m=n[3],g=n[4],y=n[5],v=n[6],x=n[7],_=n[8];return t[0]=h*i+f*a+p*u,t[1]=h*r+f*s+p*c,t[2]=h*o+f*l+p*d,t[3]=m*i+g*a+y*u,t[4]=m*r+g*s+y*c,t[5]=m*o+g*l+y*d,t[6]=v*i+x*a+_*u,t[7]=v*r+x*s+_*c,t[8]=v*o+x*l+_*d,t}},4993:function(t){t.exports="/* contourFeature vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute float value;\nattribute float opacity;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying float valueVar;\nvarying float opacityVar;\n\nvoid main(void)\n{\n /* Don't use z values */\n vec4 scrPos = projectionMatrix * modelViewMatrix * vec4(pos.xy, 0, 1);\n if (scrPos.w != 0.0) {\n scrPos = scrPos / scrPos.w;\n }\n valueVar = value;\n opacityVar = opacity;\n gl_Position = scrPos;\n}\n"},4997:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=s*o-l*r,d=l*i-a*o,h=a*r-s*i;return c*=2,d*=2,h*=2,t[0]=i+u*c+s*h-l*d,t[1]=r+u*d+l*c-a*h,t[2]=o+u*h+a*d-s*c,t}},5005:function(t,e,n){var i=function(t){"use strict";var e=n(1338),r=n(7376);if(!(this instanceof e))return new i(t);var o="svg-"+r(),a=this._exit,s=this,l=this.visible,u=this.draw;return this._svgid=function(){return o},this.select=function(){return s.renderer().select(s._svgid())},this.draw=function(){return s.ready&&(s._update(),u()),s},this._exit=function(){s.renderer()._removeFeature(s._svgid()),a()},this.visible=function(t,e){return void 0!==t&&t!==l(void 0,!0)&&s.renderer()&&s.renderer()._scheduleUpdate(),l(t,e)},this};t.exports=i},5018:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}},5055:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}},5068:function(t){t.exports=function(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],c=e[7],d=e[8],h=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=h*i+f*a+u,t[7]=h*r+f*s+c,t[8]=h*o+f*l+d,t}},5106:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var i=n(6269),r=n(8597),o=n(7e3);function a(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function s(t){var e,n,r,a,s,l,u,c=t.x,d=t.y;return r=(0,i.A)(c-this.long0),e=Math.sin(d),n=Math.cos(d),a=Math.cos(r),(s=this.sin_p14*e+this.cos_p14*n*a)>0||Math.abs(s)<=o.H0?(l=this.x0+1*this.a*n*Math.sin(r)/s,u=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*a)/s):(l=this.x0+this.infinity_dist*n*Math.sin(r),u=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*a)),t.x=l,t.y=u,t}function l(t){var e,n,o,a,s,l;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,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(a=Math.atan2(e,this.rc),n=Math.sin(a),o=Math.cos(a),l=(0,r.A)(o*this.sin_p14+t.y*n*this.cos_p14/e),s=Math.atan2(t.x*n,e*this.cos_p14*o-t.y*this.sin_p14*n),s=(0,i.A)(this.long0+s)):(l=this.phic0,s=0),t.x=s,t.y=l,t}var u=["gnom"];e.default={init:a,forward:s,inverse:l,names:u}},5140:function(t,e,n){t.exports=n(5055)},5156:function(t,e,n){var i=n(4626),r=n(5402),o=n(1275),a=n(1098).checkRenderer,s=n(1098).rendererForFeatures,l=n(1098).rendererForAnnotations,u=function(t){"use strict";if(!(this instanceof u))return new u(t);t=t||{},r.call(this,t);var e,i=n(5616),o=n(77),c=n(2274),d=n(1098).createRenderer,h=n(1098).adjustLayerForRenderer,f=n(6409),p=this,m=this._exit,g=void 0===t.id?u.newLayerId():t.id,y=void 0===t.name?"":t.name,v=void 0===t.map?null:t.map,x=null,_=void 0===t.canvas?null:t.canvas,b=t.renderer instanceof c?t.renderer:null,w=!1,M=void 0!==t.renderer?t.renderer instanceof c?t.renderer.api():t.renderer:t.annotations?l(t.annotations):s(t.features),A=void 0===t.autoshareRenderer||t.autoshareRenderer,E=o(),T=o(),S=void 0===t.sticky||t.sticky,C=void 0===t.active||t.active,k=void 0===t.opacity?1:t.opacity,P=t.attribution||null,O=void 0===t.visible||t.visible,L=void 0===t.selectionAPI||t.selectionAPI;if(M=a(M),!v)throw new Error("Layers must be initialized on a map.");function R(){return(p.parent()||p.map()).children().filter(function(t){return t instanceof u})}if(this.rendererName=function(){return M},this.autoshareRenderer=function(){return A},this.zIndex=function(t,n){return void 0===t?e:(n||R().reverse().forEach(function(e){e!==p&&e.zIndex()===t&&e.zIndex(t+1)}),t!==e&&(e=t,x.css("z-index",e),p.geoTrigger(f.layerMove,{layer:p})),p)},this.moveUp=function(t){var e,n,i,r,o=null;for(void 0===t&&(t=1),r=1,t<0&&(r=-1,t=-t),e=R().sort(function(t,e){return r*(t.zIndex()-e.zIndex())}),n=0;n<e.length;n+=1)if(null===o)e[n]===p&&(o=n);else{if(!(n-o<=t))break;i=p.zIndex(),p.zIndex(e[n].zIndex(),!0),e[n].zIndex(i,!0)}return p},this.moveDown=function(t){return void 0===t&&(t=1),p.moveUp(-t)},this.moveToTop=function(){return p.moveUp(R().length-1)},this.moveToBottom=function(){return p.moveDown(R().length-1)},this.sticky=function(){return S},this.active=function(t){return void 0===t?C:(C!==t&&(C=t,x.toggleClass("active",C)),p)},this.node=function(){return x},this.id=function(t){return void 0===t?g:(g=null===t?u.newLayerId():t,p.modified(),p)},this.name=function(t){return void 0===t?y:(y=t,x.attr("id",y),p.modified(),p)},this.map=function(){return v},this.renderer=function(){return b},this._renderer=function(t){return void 0===t?b:(b=t,p)},this.canvas=function(){return _},this._canvas=function(t){return void 0===t?_:(_=t,p)},this.dataTime=function(){return E},this.updateTime=function(){return T},this.initialized=function(t){return void 0!==t?(w=t,p):w},this.toLocal=function(t){return t},this.fromLocal=function(t){return t},this.attribution=function(t){return void 0!==t?(P=t,p.map().updateAttribution(),p):P},this.visible=function(t){return void 0===t?O:(O!==t&&(O=t,x.toggleClass("hidden",!O),p.modified()),p)},this.selectionAPI=function(t){return void 0===t?L:(L!==t&&(L=t),p)},this._init=function(e){if(w)return p;v.node().append(x);var n=Object.assign({},t);return delete n.map,b?p._canvas(b.canvas()):null===M?(p._renderer(null),p._canvas(x)):_?p._renderer(d(M,p,_,n)):(p._renderer(d(M,p,void 0,n)),p._canvas(b.canvas())),x.toggleClass("active",p.active()),w=!0,e||(p.geoOn(f.resize,function(t){p._update({event:t})}),p.geoOn(f.pan,function(t){p._update({event:t})}),p.geoOn(f.rotate,function(t){p._update({event:t})}),p.geoOn(f.zoom,function(t){p._update({event:t})})),p},this._exit=function(){p.geoOff(),b&&b._exit(),x.off(),x.remove(),t={},p._canvas(null),p._renderer(null),m()},this._update=function(t){return p},this.width=function(){return p.map().size().width},this.height=function(){return p.map().size().height},this.opacity=function(t){return void 0!==t?(k=t,x.css("opacity",k),p):k},(x=i(document.createElement("div"))).addClass("geojs-layer"),x.attr("renderer",M),y&&x.attr("id",y),p.opacity(k),p.visible(O),void 0===t.zIndex){var I=-1;R().forEach(function(t){void 0!==t.zIndex()&&(I=Math.max(I,t.zIndex()))}),t.zIndex=I+1}return p.zIndex(t.zIndex),h("all",p),p};u.newLayerId=function(){"use strict";var t=1;return function(){var e=t;return t+=1,e}}(),u.create=function(t,e){"use strict";if((e=e||{}).type=e.type||"feature",e.renderer=void 0===e.renderer?"webgl":e.renderer,e.renderer=a(e.renderer),!e.renderer)return console.warn("Invalid renderer"),null;var n=t.createLayer(e.type,e);return n?(e.features&&e.features.forEach(function(t){t.data=t.data||e.data,t.feature=o.create(n,t)}),n):(console.warn("Unable to create a layer"),null)},i(u,r),t.exports=u},5173:function(t,e,n){function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(4626),l=n(1098).registerFileReader,u=n(703),c=function(t){"use strict";if(!(this instanceof c))return new c(t);var e=n(5616),i=n(642).convertColor,r=n(2225),s=n(5325),l=this,d=o(o({},t),{},{pointStyle:o({fill:!0,fillColor:"#ff7800",fillOpacity:.8,stroke:!0,strokeColor:"#000",strokeWidth:1,strokeOpacity:1,radius:8},t.pointStyle),lineStyle:o({strokeColor:"#ff7800",strokeWidth:4,strokeOpacity:.5,strokeOffset:0,lineCap:"butt",lineJoin:"miter",uniformLine:!0,closed:!1},t.lineStyle),polygonStyle:o({fill:!0,fillColor:"#b0de5c",fillOpacity:.8,stroke:!0,strokeColor:"#999999",strokeWidth:2,strokeOpacity:1,uniformPolygon:!0},t.polygonStyle)});u.call(this,d),this.canRead=function(t){if(t instanceof File||t instanceof Blob)return!!("application/json"===t.type||t.name&&t.name.match(/\.json$/));if("string"==typeof t){try{JSON.parse(t)}catch(t){return!1}return!0}try{if(Array.isArray(l._featureArray(t)))return!0}catch(t){}return!1},this._readObject=function(t,n,i){var r;function o(t){try{r=JSON.parse(t),n(r)}catch(i){r||e.ajax({type:"GET",url:t,dataType:"text"}).done(function(t){try{r=JSON.parse(t),n(r)}catch(t){r||n(!1)}}).fail(function(){n(!1)})}}t instanceof File||t instanceof Blob?l._getString(t,o,i):"string"==typeof t?o(t):n(t)},this._featureArray=function(t){var e,n=[];switch(t.type){case"FeatureCollection":e=t.features;break;case"Feature":e=[t];break;case"GeometryCollection":e=t.geometries.map(function(t){return{type:"Feature",geometry:t,properties:{}}});break;case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":e=[{type:"Feature",geometry:t,properties:{}}];break;default:throw new Error("Invalid json type")}return e.forEach(function(t){Array.prototype.push.apply(n,l._feature(t))}),n=n.filter(function(t){return t.geometry&&t.geometry.coordinates&&t.geometry.coordinates.length})},this._feature=function(t){if("Feature"!==t.type)throw new Error("Invalid feature object");switch(t.geometry.type){case"Point":case"LineString":case"Polygon":return[t];case"MultiPoint":case"MultiLineString":case"MultiPolygon":return t.geometry.coordinates.map(function(e){return{type:"Feature",geometry:{type:t.geometry.type.replace("Multi",""),coordinates:e},properties:t.properties}});default:throw new Error("Invalid geometry type")}},this._position=function(t){return{x:t[0],y:t[1],z:t[2]||0}},this._style=function(t,e){var n=t.toLowerCase().match(/color$/);return n&&(e=i(e)),function(r,o,a,s){var l;return void 0!==(l=void 0!==a&&a.properties?a.properties:r.properties)&&l.hasOwnProperty(t)?n?i(l[t]):l[t]:e}},this.read=function(t,e,n){var i=new Promise(function(i,u){function c(t){return"Polygon"===t.geometry.type&&1===t.geometry.coordinates.length&&5===t.geometry.coordinates[0].length&&("ellipse"===(t.properties||{}).annotationType||"circle"===(t.properties||{}).annotationType)}l._readObject(t,function(t){if(!1===t)return e&&e(t),void u(new Error("Failed to parse GeoJSON"));var n,h,f=[];try{n=l._featureArray(t)}catch(t){return void u(t)}var p=n.filter(function(t){return"Point"===t.geometry.type});p.length&&(h=l.layer().createFeature("point"))&&(h.data(p).position(function(t){return l._position(t.geometry.coordinates)}).style([{}].concat(Object.keys(d.pointStyle)).reduce(function(t,e){return o(a({},e,p.some(function(t){return t.properties&&void 0!==t.properties[e]})?l._style(e,d.pointStyle[e]):d.pointStyle[e]),t)})),f.push(h));var m=n.filter(function(t){return"LineString"===t.geometry.type});m.length&&(h=l.layer().createFeature("line"))&&(h.data(m).line(function(t){return t.geometry.coordinates}).position(l._position).style([{}].concat(Object.keys(d.lineStyle)).reduce(function(t,e){return o(a({},e,m.some(function(t){return t.properties&&void 0!==t.properties[e]})?l._style(e,d.lineStyle[e]):d.lineStyle[e]),t)})),f.push(h));var g=n.filter(function(t){return"Polygon"===t.geometry.type&&!c(t)});g.length&&(h=l.layer().createFeature("polygon"))&&(h.data(g).polygon(function(t,e){return{outer:t.geometry.coordinates[0],inner:t.geometry.coordinates.slice(1)}}).position(l._position).style([{}].concat(Object.keys(d.polygonStyle)).reduce(function(t,e){return o(a({},e,g.some(function(t){return t.properties&&void 0!==t.properties[e]})?l._style(e,d.polygonStyle[e]):d.polygonStyle[e]),t)})),f.push(h));var y=n.filter(c);y.length&&(h=l.layer().createFeature("marker"))&&(y.forEach(function(t){var e=l.layer().map(),n=s.transformCoordinates(e.ingcs(),e.gcs(),t.geometry.coordinates[0]),i=Math.pow(Math.pow(n[0][0]-n[1][0],2)+Math.pow(n[0][1]-n[1][1],2),.5),r=Math.pow(Math.pow(n[0][0]-n[3][0],2)+Math.pow(n[0][1]-n[3][1],2),.5),o=Math.max(i,r)/2/e.unitsPerPixel(0),a=i?r/i:1e20,u=-Math.atan2(n[1][1]-n[0][1],n[1][0]-n[0][0]),c=s.transformCoordinates(e.gcs(),e.ingcs(),{x:(n[0][0]+n[1][0]+n[2][0]+n[3][0])/4,y:(n[0][1]+n[1][1]+n[2][1]+n[3][1])/4});t._props={pos:c,radius:o,aspect:a,rotation:u}}),h.data(y).position(function(t){return t._props.pos}).style([{}].concat(Object.keys(d.polygonStyle)).reduce(function(t,e){return o(a(a(a(a(a(a(a(a({},e,y.some(function(t){return t.properties&&void 0!==t.properties[e]})?l._style(e,d.polygonStyle[e]):d.polygonStyle[e]),"radius",function(t){return t._props.radius}),"radiusIncludesStroke",!1),"symbolValue",function(t){return t._props.aspect}),"rotation",function(t){return t._props.rotation}),"strokeOffset",0),"rotateWithMap",!0),"scaleWithZoom",r.scaleMode.fill),t)})),f.push(h)),e&&e(f),i(f)},n)});return l.addPromise(i),i}};s(c,u),l("geojsonReader",c),l("jsonReader",c),t.exports=c},5200:function(t){t.exports=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],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15];return t[0]=s*(h*y-f*g)-d*(l*y-u*g)+m*(l*f-u*h),t[1]=-(i*(h*y-f*g)-d*(r*y-o*g)+m*(r*f-o*h)),t[2]=i*(l*y-u*g)-s*(r*y-o*g)+m*(r*u-o*l),t[3]=-(i*(l*f-u*h)-s*(r*f-o*h)+d*(r*u-o*l)),t[4]=-(a*(h*y-f*g)-c*(l*y-u*g)+p*(l*f-u*h)),t[5]=n*(h*y-f*g)-c*(r*y-o*g)+p*(r*f-o*h),t[6]=-(n*(l*y-u*g)-a*(r*y-o*g)+p*(r*u-o*l)),t[7]=n*(l*f-u*h)-a*(r*f-o*h)+c*(r*u-o*l),t[8]=a*(d*y-f*m)-c*(s*y-u*m)+p*(s*f-u*d),t[9]=-(n*(d*y-f*m)-c*(i*y-o*m)+p*(i*f-o*d)),t[10]=n*(s*y-u*m)-a*(i*y-o*m)+p*(i*u-o*s),t[11]=-(n*(s*f-u*d)-a*(i*f-o*d)+c*(i*u-o*s)),t[12]=-(a*(d*g-h*m)-c*(s*g-l*m)+p*(s*h-l*d)),t[13]=n*(d*g-h*m)-c*(i*g-r*m)+p*(i*h-r*d),t[14]=-(n*(s*g-l*m)-a*(i*g-r*m)+p*(i*l-r*s)),t[15]=n*(s*h-l*d)-a*(i*h-r*d)+c*(i*l-r*s),t}},5208:function(t){t.exports=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],c=e[5],d=e[6],h=e[7];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]);return t[0]=o*r+u*i,t[1]=a*r+c*i,t[2]=s*r+d*i,t[3]=l*r+h*i,t[4]=u*r-o*i,t[5]=c*r-a*i,t[6]=d*r-s*i,t[7]=h*r-l*i,t}},5229:function(t,e,n){var i=n(4626),r=n(1098).registerAnnotation,o=n(6645),a=n(642),s=n(4019),l=function(t,e){"use strict";if(!(this instanceof l))return new l(t,e);t=a.deepMerge({},this.constructor.defaults,t,{constraint:1}),s.call(this,t,e||"square")};i(l,s),l.defaults=Object.assign({},s.defaults,{});var u={};u[o.capabilities.feature]=!0,r("square",l,u),t.exports=l},5245:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KPHBhdGggZD0iTTAsMTFsMTEsMGwwLC0xMWwyLDBsMCwxMWwxMSwwbDAsMmwtMTEsMGwwLDExbC0yLDBsMCwtMTFsLTExLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+CjxwYXRoIGQ9Ik0yNCwyN2w4LDBsMCwybC04LDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+Cjwvc3ZnPgo="},5289:function(t,e,n){var i=n(5616),r=function(t){if(!(this instanceof r))return new r(t);this._index=t.index,this._size=t.size,this._overlap=t.overlap||{x:0,y:0},this._wrap=t.wrap||{x:1,y:1},this._url=t.url,this._fetched=!1,this._queue=t.queue||null,Object.defineProperty(this,"index",{get:function(){return this._index}}),Object.defineProperty(this,"size",{get:function(){return this._size}}),Object.defineProperty(this,"overlap",{get:function(){return this._overlap}}),this.fetch=function(){return this._fetched||i.get(this._url).done(function(){this._fetched=!0}.bind(this)).promise(this),this},this.fetched=function(){return this._fetched},this.then=function(t,e){return this.fetched()||!this._queue||!this._queue.add||this.state&&"pending"!==this.state()?this.fetch():this._queue.add(this,this.fetch),this.done&&this.fail?this.done(t).fail(e):this.then(t,e),this},this.catch=function(t){return this.then(void 0,t),this},this.toString=function(){return[this._index.level||0,this._index.y,this._index.x,this._index.reference||0].join("_")},this.bounds=function(t,e){var n,i,r,o;return i=(n=this.size.x*(this.index.x-t.x)-this.overlap.x-e.x)+this.size.x+2*this.overlap.x,r=(o=this.size.y*(this.index.y-t.y)-this.overlap.y-e.y)+this.size.y+2*this.overlap.y,this.overlap.x&&this.index.x===t.x&&(n+=this.overlap.x),this.overlap.y&&this.index.y===t.y&&(o+=this.overlap.y),{left:n,right:i,bottom:r,top:o}},Object.defineProperty(this,"bottom",{get:function(){return this.size.y*(this.index.y+1)+this.overlap.y}}),Object.defineProperty(this,"top",{get:function(){return this.size.y*this.index.y-(this.index.y?this.overlap.y:0)}}),Object.defineProperty(this,"left",{get:function(){return this.size.x*this.index.x-(this.index.x?this.overlap.x:0)}}),Object.defineProperty(this,"right",{get:function(){return this.size.x*(this.index.x+1)+this.overlap.x}}),this.fadeIn=function(t){return i.noop(t),this}};t.exports=r},5290:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o)()(r());a.push([t.id,".geojs-scale-widget-bar{stroke:#000}.geojs-scale-widget-text{font-weight:bold;font-size:16px;font-family:serif}","",{version:3,sources:["webpack://./ui/scaleWidget.styl"],names:[],mappings:"AAAA,wBACE,WAAO,CACT,yBACE,gBAAY,CACZ,cAAU,CACV,iBAAY",sourcesContent:[".geojs-scale-widget-bar\n stroke black\n.geojs-scale-widget-text\n font-weight bold\n font-size 16px\n font-family serif\n"],sourceRoot:""}]),e.A=a},5292:function(t){"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],u=i.base?l[0]+i.base:l[0],c=o[u]||0,d="".concat(u," ").concat(c);o[u]=c+1;var h=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)e[h].references++,e[h].updater(f);else{var p=r(f,i);i.byIndex=s,e.splice(s,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}function r(t,e){var n=e.domAPI(e);n.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var o=i(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var l=i(t,r),u=0;u<o.length;u++){var c=n(o[u]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},5325:function(t,e,n){var i=n(6298),r=n(1982),o=n(3503),a=n(642);i=i.__esModule?i.default:i;var s=n(9689);s.keys().forEach(function(t){i.Proj.projections.add(s(t))});var l={},u=/^(.* |)\+axis=e(n|s)u(| .*)$/,c=/(^|\s)\+(s[1-3][1-3]|[xyz]off)=\S/,d=function(t){"use strict";if(!(this instanceof d))return(t=t||{}).source in l||(Object.keys(l).length>=10&&(l={}),l[t.source]={}),t.target in l[t.source]||(Object.keys(l[t.source]).length>=10&&(l[t.source]={}),l[t.source][t.target]=new d(t)),l[t.source][t.target];var e,n,s,u,h,f,p,m=this,g={s11:0,s12:4,s13:8,xoff:12,s21:1,s22:5,s23:9,yoff:13,s31:2,s32:6,s33:10,zoff:14};function y(t){if(!c.exec(t))return{proj:t};var e,n,i=a.mat4AsArray(),r=[];return t.split(/(\s+)/).forEach(function(t){var e=/^\+(s[1-3][1-3]|[xyz]off)=(.*)$/.exec(t);e?i[g[e[1]]]=parseFloat(e[2]):r.push(t)}),n={proj:r.join(" "),orig:t},(e=o.invert(a.mat4AsArray(),i))?(n.matrix=i,n.inverse=e):console.warn("Affine transform is not invertable and will not be used: "+t),n}function v(){var t=y(m.source()),n=y(m.target()),r=t.proj,o=n.proj;u=t.matrix,h=t.inverse,f=n.matrix,p=n.inverse,e=new i(r,o)}this.source=function(t){return void 0===t?n||"EPSG:4326":(n=t,v(),m)},this.target=function(t){return void 0===t?s||"EPSG:3857":(s=t,v(),m)},this._forward=function(t){if(u){var n=r.transformMat4(a.vec3AsArray(),[t.x,t.y,t.z||0],h);t={x:n[0],y:n[1],z:n[2]}}var i=e.forward(t,!0);if(i.z=t.z||0,f){var o=r.transformMat4(a.vec3AsArray(),[i.x,i.y,i.z],f);i={x:o[0],y:o[1],z:o[2]}}return i},this._inverse=function(t){if(f){var n=r.transformMat4(a.vec3AsArray(),[t.x,t.y,t.z||0],p);t={x:n[0],y:n[1],z:n[2]}}var i=e.inverse(t,!0);if(i.z=t.z||0,u){var o=r.transformMat4(a.vec3AsArray(),[i.x,i.y,i.z],u);i={x:o[0],y:o[1],z:o[2]}}return i},this.forward=function(t){return Array.isArray(t)?t.map(m._forward):m._forward(t)},this.inverse=function(t){return Array.isArray(t)?t.map(m._inverse):m._inverse(t)},t=t||{};try{this.source(t.source)}catch(e){console.error("Can't use transform source: "+t.source),this.source("EPSG:4326")}try{this.target(t.target)}catch(e){console.error("Can't use transform target: "+t.target),this.target("EPSG:3857")}return this};d.defs=i.defs,d.lookup=function(t){var e,r,o=n(5616),a=o.Deferred();return i.defs.hasOwnProperty(t)?a.resolve(i.defs[t]):2!==(r=t.split(":")).length||"EPSG"!==r[0].toUpperCase()?a.reject("Invalid projection code").promise():(e=r[1],o.ajax({url:"https://epsg.io/"+encodeURIComponent(e)+".proj4"}).done(function(e){var n=(e.results||[])[0];return n?(i.defs(t,n),o.when(i.defs[t])):a.reject(e).promise()}))},d.transformCoordinates=function(t,e,n,i){"use strict";if(t===e||Array.isArray(n)&&!n.length)return n;if(Array.isArray(n)&&n.length>=3&&3===i&&!a.isObject(n[0])&&!c.test(t)&&!c.test(e))return d.transformCoordinatesFlatArray3(t,e,n);if(Array.isArray(n)&&n.length&&a.isObject(n[0])&&"x"in n[0]&&"y"in n[0]){var r=t.match(u),o=e.match(u);if(r&&o&&r[1]===o[1]&&r[3]===o[3])return"z"in n[0]?n.map(function(t){return{x:+t.x,y:-t.y,z:+t.z||0}}):n.map(function(t){return{x:+t.x,y:-t.y}})}var s,l=d({source:t,target:e});return a.isObject(n)&&"x"in n&&"y"in n?(s=l.forward({x:+n.x,y:+n.y,z:+n.z||0},!0),"z"in n?s:{x:s.x,y:s.y}):Array.isArray(n)&&1===n.length&&a.isObject(n[0])&&"x"in n[0]&&"y"in n[0]?(s=l.forward({x:+n[0].x,y:+n[0].y,z:+n[0].z||0},!0),"z"in n[0]?[s]:[{x:s.x,y:s.y}]):d.transformCoordinatesArray(l,n,i)},d.transformCoordinatesArray=function(t,e,n){var i,r,o,s,l,u,c,d,h,f={};function p(){if(Array.isArray(e[0]))if(2===e[0].length)s=function(t){return+e[t][0]},l=function(t){return+e[t][1]},c=function(t,e,n){d[t]=[e,n]};else{if(3!==e[0].length)throw new Error("Invalid coordinates. Requires two or three components per array");s=function(t){return+e[t][0]},l=function(t){return+e[t][1]},u=function(t){return+e[t][2]},c=function(t,e,n,i){d[t]=[e,n,i]}}else if(2===e.length)o=2,s=function(t){return+e[t*o]},l=function(t){return+e[t*o+1]},c=function(t,e,n){d[t]=e,d[t+1]=n};else if(3===e.length)o=3,s=function(t){return+e[t*o]},l=function(t){return+e[t*o+1]},u=function(t){return+e[t*o+2]},c=function(t,e,n,i){d[t]=e,d[t+1]=n,d[t+2]=i};else{if(!n)throw new Error("Invalid coordinates");if(2!==n&&3!==n)throw new Error("Number of components should be two or three");o=n,s=function(t){return+e[t]},l=function(t){return+e[t+1]},2===n?c=function(t,e,n){d[t]=e,d[t+1]=n}:(u=function(t){return+e[t+2]},c=function(t,e,n,i){d[t]=e,d[t+1]=n,d[t+2]=i})}}if(u=function(){return 0},!Array.isArray(e))throw new Error("Coordinates are not valid");if((d=[]).length=e.length,r=e.length,!e.length)return d;for(Array.isArray(e[0])||a.isObject(e[0])?(o=1,Array.isArray(e[0])?p():a.isObject(e[0])&&function(){if(!(e[0]&&"x"in e[0]&&"y"in e[0]))throw new Error("Invalid coordinates");s=function(t){return+e[t].x},l=function(t){return+e[t].y},"z"in e[0]?(u=function(t){return+e[t].z},c=function(t,e,n,r){d[i]={x:e,y:n,z:r}}):c=function(t,e,n){d[t]={x:e,y:n}}}()):p(),i=0;i<r;i+=o)f.x=s(i),f.y=l(i),f.z=u(i),h=t.forward(f,!0),c(i,h.x,h.y,h.z);return d},d.transformCoordinatesFlatArray3=function(t,e,n){"use strict";var r,o=t.match(u),a=e.match(u);if(o&&a&&o[1]===a[1]&&o[3]===a[3]){for(r=n.length-3+1;r>=0;r-=3)n[r]*=-1;return n}var s,l=i.Proj(t),c=i.Proj(e),d={},h=new i(l,c);for(r=n.length-3;r>=0;r-=3)d.x=+n[r],d.y=+n[r+1],d.z=+(n[r+2]||0),s=h.forward(d,!0),n[r]=s.x,n[r+1]=s.y,n[r+2]=void 0===s.z?d.z:s.z;return n},d.affineForward=function(t,e){"use strict";var n,i=t.origin,r=t.scale||{x:1,y:1,z:1};for(n=0;n<e.length;n+=1)e[n].x=(e[n].x-i.x)*r.x,e[n].y=(e[n].y-i.y)*r.y,e[n].z=((e[n].z||0)-(i.z||0))*r.z;return e},d.affineInverse=function(t,e){"use strict";var n,i=t.origin,r=t.scale||{x:1,y:1,z:1};for(n=0;n<e.length;n+=1)e[n].x=e[n].x/r.x+i.x,e[n].y=e[n].y/r.y+i.y,e[n].z=(e[n].z||0)/r.z+(i.z||0);return e},d.sphericalDistance=function(t,e,n,r,o){if(r=r||"EPSG:4326",o=o||i.WGS84,(n=n||r)!==r){var a=d.transformCoordinates(n,r,[t,e]);t=a[0],e=a[1]}var s=t.y*Math.PI/180,l=e.y*Math.PI/180,u=(e.x-t.x)*Math.PI/180,c=Math.sin(s),h=Math.cos(s),f=Math.sin(l),p=Math.cos(l),m=Math.atan2(Math.pow(Math.pow(p*Math.sin(u),2)+Math.pow(h*f-c*p*Math.cos(u),2),.5),c*f+h*p*Math.cos(u));return o.a*m},d.vincentyDistance=function(t,e,n,r,o,a){if(r=r||"EPSG:4326",o=o||i.WGS84,a=a||100,(n=n||r)!==r){var s=d.transformCoordinates(n,r,[t,e]);t=s[0],e=s[1]}var l,u,c,h,f,p,m,g,y,v,x=o.a,_=o.b||o.a*(1-(o.f||1/o.rf)),b=o.f||(o.rf?1/o.rf:1-_/x),w=t.y*Math.PI/180,M=e.y*Math.PI/180,A=((e.x-t.x)%360+360)%360*Math.PI/180,E=Math.atan((1-b)*Math.tan(w)),T=Math.atan((1-b)*Math.tan(M)),S=Math.sin(E),C=Math.cos(E),k=Math.sin(T),P=Math.cos(T),O=A,L=A+2*Math.PI;if(w===M&&!A)return{distance:0,alpha1:0,alpha2:0};for(v=a;v>0&&Math.abs(O-L)>1e-12;v-=1)l=Math.pow(Math.pow(P*Math.sin(O),2)+Math.pow(C*k-S*P*Math.cos(O),2),.5),u=S*k+C*P*Math.cos(O),c=Math.atan2(l,u),h=C*P*Math.sin(O)/l,L=O,O=A+(1-(m=b/16*(f=1-Math.pow(h,2))*(4+b*(4-3*f))))*b*h*(c+m*l*((p=u-(f?2*S*k/f:0))+m*u*(2*Math.pow(p,2)-1)));return v?{distance:_*(1+(g=f*(x*x-_*_)/(_*_))/16384*(4096+g*(g*(320-175*g)-768)))*(c-(y=g/1024*(256+g*(g*(74-47*g)-128)))*l*(p+y/4*(u*(2*Math.pow(p,2)-1)-y/6*p*(4*l*l-3)*(4*Math.pow(p,2)-3)))),alpha1:Math.atan2(P*Math.sin(O),C*k-S*P*Math.cos(O)),alpha2:Math.atan2(C*Math.sin(O),-S*P+C*k*Math.cos(O))}:void 0},d.onlyInvertedY=function(t,e){var n=t.match(u),i=e.match(u);return n&&i&&n[1]===i[1]&&n[3]===i[3]},d.proj4=i,t.exports=d},5345:function(t){t.exports=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[8],c=e[9],d=e[10],h=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*r-u*i,t[1]=a*r-c*i,t[2]=s*r-d*i,t[3]=l*r-h*i,t[8]=o*i+u*r,t[9]=a*i+c*r,t[10]=s*i+d*r,t[11]=l*i+h*r,t}},5380:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7541),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(5325),i=n(7015),r=n(9897).vtkjs,s=r.Rendering.Core.vtkActor,l=r.Common.Core.vtkDataArray,u=r.Rendering.Core.vtkGlyph3DMapper,c=r.Rendering.Core.vtkMapper,d=r.Common.DataModel.vtkPointSet,h=r.Filters.Sources.vtkSphereSource;i.call(this);var f,p,m,g,y,v=this,x=this._init,_=this._exit,b=this._update;return this._createPipeline=function(){p=d.newInstance(),(m=h.newInstance()).setThetaResolution(30),m.setPhiResolution(30);var t=u.newInstance({orient:!1,colorByArrayName:"color",scalarMode:c.ScalarMode.USE_POINT_FIELD_DATA,colorMode:c.ColorMode.DIRECT_SCALARS,scaling:!0,scaleArray:"diam",scaleMode:u.ScaleModes.SCALE_BY_MAGNITUDE});t.setInputData(p,0),t.setInputConnection(m.getOutputPort(),1),(f=s.newInstance()).setMapper(t),f.getProperty().setAmbient(1),v.renderer().contextRenderer().addActor(f)},this._init=function(){x.call(v,t),v.renderer().contextRenderer().setLayer(0),v._createPipeline()},this._build=function(){var t,n,i,r,o,a,s=v.data().length,u=new Array(3*s),c=v.data(),d=v.position(),h=v.style.get("radius"),f=v.style.get("fill"),m=v.style.get("fillColor"),x=v.style.get("fillOpacity"),_=v.layer().map().unitsPerPixel(v.layer().map().zoom());for(y&&y.length===s||(y=new Float32Array(s)),g&&g.length===4*s||(g=new Uint8Array(4*s)),t=n=i=0;t<s;t+=1,n+=3,i+=4)r=d(c[t],t),u[n]=r.x,u[n+1]=r.y,u[n+2]=r.z||0,a=a||u[n+2],y[t]=h(c[t],t)*_*2,o=m(c[t],t),g[i]=255*o.r,g[i+1]=255*o.g,g[i+2]=255*o.b,g[i+3]=f(c[t],t)?255*x(c[t],t):0;if(u=e.transformCoordinates(v.gcs(),v.layer().map().gcs(),u,3),!a&&v.gcs()!==v.layer().map().gcs())for(t=n=0;t<s;t+=1,n+=3)u[n+2]=0;p.getPoints().setData(u,3),p.getPointData().addArray(l.newInstance({name:"color",values:g,numberOfComponents:4})),p.getPointData().addArray(l.newInstance({name:"diam",values:y})),v.buildTime().modified()},this._update=function(){if(b.call(v),v.dataTime().getMTime()>=v.buildTime().getMTime()||v.updateTime().getMTime()<v.getMTime())v._build();else{var t=v.data(),e=v.style.get("radius"),n=v.layer().map().unitsPerPixel(v.layer().map().zoom()),i=p.getPointData().getArray("diam"),r=i.getData().map(function(i,r){return e(t[r],r)*n*2});i.setData(r),p.modified()}v.updateTime().modified()},this._exit=function(){v.renderer().contextRenderer().removeActor(f),_()},v._init(),this};i(a,o);var s={};s[o.capabilities.stroke]=!1,r("vtkjs","point",a,s),t.exports=a},5398:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7761),a=n(6409),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);o.call(this,t),n(5895).call(this);var e,i=this._exit,r=this;return this.pointSearch=function(t,n){if(e&&r.m_info){var i=e.pointSearch(t,n);if(1===i.index.length&&i.extra&&i.extra[i.index[0]].basis){var o,a,s,l=i.extra[i.index[0]].basis;if(o=Math.floor(l.x*r.m_info.width),a=Math.floor(l.y*r.m_info.height),o>=0&&o<r.m_info.width&&a>=0&&a<r.m_info.height)return i={index:[s=r.m_info.indices[a*r.m_info.width+o]],found:[r.data()[s]]}}}return{index:[],found:[]}},this._preparePixelmap=function(){var t,e,n;if(s.isReadyImage(r.m_srcImage)){for(r.m_info={width:r.m_srcImage.naturalWidth,height:r.m_srcImage.naturalHeight,canvas:document.createElement("canvas")},r.m_info.canvas.width=r.m_info.width,r.m_info.canvas.height=r.m_info.height,r.m_info.context=r.m_info.canvas.getContext("2d"),r.m_info.context.drawImage(r.m_srcImage,0,0),r.m_info.imageData=r.m_info.context.getImageData(0,0,r.m_info.canvas.width,r.m_info.canvas.height),n=r.m_info.imageData.data,r.m_info.indices=new Array(n.length/4),r.m_info.area=n.length/4,r.m_info.mappedColors={},t=0;t<n.length;t+=4)e=n[t]+(n[t+1]<<8)+(n[t+2]<<16),r.m_info.indices[t/4]=e,r.m_info.mappedColors[e]||(r.m_info.mappedColors[e]={first:t/4}),r.m_info.mappedColors[e].last=t/4;return r.m_info}},this._computePixelmap=function(){var t,n,i,o,s,l,u,c,d,h,f=r.data()||[],p=r.style.get("color"),m=-1;if(!r.m_info){if(r.indexModified(void 0,"clear"),!r._preparePixelmap())return;h=!0}for(n in r.indexModified(void 0,"clear"),u=r.m_info.mappedColors,c=r.m_info.area,u)u.hasOwnProperty(n)&&(o=[255*((o=p(f[n],+n)||{}).r||0),255*(o.g||0),255*(o.b||0),void 0===o.a?255:255*o.a],u[n].update=!u[n].color||u[n].color[0]!==o[0]||u[n].color[1]!==o[1]||u[n].color[2]!==o[2]||u[n].color[3]!==o[3],u[n].update&&(u[n].color=o,c=Math.min(u[n].first,c),m=Math.max(u[n].last,m)));if(!(c>=m)){for(s=r.m_info.imageData.data,l=r.m_info.indices,t=c;t<=m;t+=1)(n=l[t])!==i&&(i=n,o=u[n].color,d=u[n].update),d&&(s[4*t]=o[0],s[4*t+1]=o[1],s[4*t+2]=o[2],s[4*t+3]=o[3]);r.m_info.context.putImageData(r.m_info.imageData,0,0,0,Math.floor(c/r.m_info.width),r.m_info.width,Math.ceil((m+1)/r.m_info.width)),e||(e=r.layer().createFeature("quad",{selectionAPI:!1,gcs:r.gcs(),visible:r.visible(void 0,!0)}),r.dependentFeatures([e]),e.style({image:r.m_info.canvas,position:r.style.get("position")}).data([{}]).draw()),h&&r.geoTrigger(a.pixelmap.prepared,{pixelmap:r})}},this._exit=function(){return e&&r.layer()&&(r.layer().deleteFeature(e),e=null,r.dependentFeatures([])),i(),r},this._init(t),this};i(l,o),r("canvas","pixelmap",l),t.exports=l},5402:function(t,e,n){var i=n(4626),r=n(1338),o=function(t){"use strict";if(!(this instanceof o))return new o;r.call(this,t);var e=this,n=null,i=[],a=this._exit,s=this.geoTrigger,l=this.addPromise,u=this.removePromise;return this.addPromise=function(t){return n&&n.addPromise(t),l(t),e},this.removePromise=function(t){return n&&n.removePromise(t),u(t),e},this.parent=function(t){return void 0===t?n:(n=t,e)},this.addChild=function(t){return Array.isArray(t)?(t.forEach(e.addChild),e):(t.parent(e),i.push(t),e)},this.removeChild=function(t){return Array.isArray(t)?(t.forEach(e.removeChild),e):(i=i.filter(function(e){return e!==t}),e)},this.children=function(){return i.slice()},this.draw=function(t){return e.children().forEach(function(e){e.draw(t)}),e},this.geoTrigger=function(t,r,o){var a;return a=(r=r||{}).geo||{},r.geo=a,a.stopPropagation?e:!o&&n&&a._triggeredBy!==n?(a._triggeredBy=e,n.geoTrigger(t,r),e):(s.call(e,t,r),a.stopPropagation||i.forEach(function(n){n.geoTrigger&&(a._triggeredBy=e,n.geoTrigger(t,r))}),e)},this._exit=function(){i=[],n=null,a()},this};i(o,r),t.exports=o},5405:function(t){t.exports=function(t,e,n){var i,r,o,a=n[0],s=n[1],l=n[2],u=Math.sqrt(a*a+s*s+l*l);if(Math.abs(u)<1e-6)return null;return a*=u=1/u,s*=u,l*=u,i=Math.sin(e),r=Math.cos(e),o=1-r,t[0]=a*a*o+r,t[1]=s*a*o+l*i,t[2]=l*a*o-s*i,t[3]=0,t[4]=a*s*o-l*i,t[5]=s*s*o+r,t[6]=l*s*o+a*i,t[7]=0,t[8]=a*l*o+s*i,t[9]=s*l*o-a*i,t[10]=l*l*o+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},5407:function(t,e,n){var i=n(5616),r=n(4626),o=n(1098).registerFeature,a=n(7541),s=n(7945),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},a.call(this,t);var e=n(1611),r=n(5325),o=n(642),u=n(4084),c=n(2709),d=n(4317),h=n(2682),f=n(8208),p=n(6979);u.call(this);var m,g,y=this,v=this._exit,x=null,_=null,b=null,w=null,M=void 0!==t.dynamicDraw&&t.dynamicDraw,A=this._init,E=this._update,T=this.updateStyleFromArray;function S(t){var e,n,i,l,u,c,d,h,f,p,v,b,w,M,A,E,T,C,k,P,O,L,R,I,F,D,G,j,N,B,z,V,U,q,H,W,X=y.data().length,K=y._pointPolygon(0,0,1,1),Q=new Array(3*X),Z=y.verticesPerFeature(),Y=y.data(),J=0,$=_.geometryData();if(u=y.position(),p=y.style.get("radius"),w=y.style.get("stroke"),E=y.style.get("strokeWidth"),k=y.style.get("strokeOpacity"),L=y.style.get("strokeColor"),F=y.style.get("fill"),j=y.style.get("fillOpacity"),z=y.style.get("fillColor"),!t){for(e=W=0;e<X;e+=1,W+=3)l=u(Y[e],e),Q[W]=l.x,Q[W+1]=l.y,Q[W+2]=0;if(Q=r.transformCoordinates(y.gcs(),y.layer().map().gcs(),Q,3),(g=new Float32Array(y.style.get("origin")(Q)))[0]||g[1]||g[2])for(e=W=0;e<X;e+=1,W+=3)Q[W]-=g[0],Q[W+1]-=g[1],Q[W+2]-=g[2];m.setOrigin(g),i=o.getGeomBuffer($,"pos",Z*X*3),c=o.getGeomBuffer($,"unit",Z*X*2),(d=$.primitive(0).indices())instanceof Uint16Array&&d.length===Z*X||(d=new Uint16Array(Z*X),$.primitive(0).setIndices(d))}for(h=o.getGeomBuffer($,"radius",Z*X),v=o.getGeomBuffer($,"stroke",Z*X),M=o.getGeomBuffer($,"strokeWidth",Z*X),T=o.getGeomBuffer($,"strokeOpacity",Z*X),P=o.getGeomBuffer($,"strokeColor",Z*X*3),R=o.getGeomBuffer($,"fill",Z*X),D=o.getGeomBuffer($,"fillOpacity",Z*X),N=o.getGeomBuffer($,"fillColor",Z*X*3),e=U=q=H=W=0;e<X;e+=1,W+=3){if(V=Y[e],!t&&y._primitiveShape!==a.primitiveShapes.sprite)for(n=0;n<K.length;n+=1,H+=1)c[H]=K[n];for(f=p(V,e),b=w(V,e)?1:0,A=E(V,e),C=k(V,e),O=L(V,e),I=F(V,e)?1:0,G=j(V,e),B=z(V,e),y._primitiveShapeAuto&&(I&&G||b&&C)&&f+(b&&C?A:0)>J&&(J=f+(b&&C?A:0)),n=0;n<Z;n+=1,U+=1,q+=3)t||(i[q]=Q[W],i[q+1]=Q[W+1],i[q+2]=Q[W+2]),h[U]=f,v[U]=b,M[U]=A,T[U]=C,P[q]=O.r,P[q+1]=O.g,P[q+2]=O.b,R[U]=I,D[U]=G,N[q]=B.r,N[q+1]=B.g,N[q+2]=B.b}if(y._primitiveShapeAuto&&(y._primitiveShape===a.primitiveShapes.sprite&&J>s._maxPointSize||y._primitiveShape!==a.primitiveShapes.sprite&&J<=s._maxPointSize))return y._primitiveShape=J>s._maxPointSize?a.primitiveShapes.triangle:a.primitiveShapes.sprite,y.renderer().contextRenderer().removeActor(x),x=null,y._init(!0),void S();t?(_.updateSourceBuffer("radius"),_.updateSourceBuffer("stroke"),_.updateSourceBuffer("strokeWidth"),_.updateSourceBuffer("strokeColor"),_.updateSourceBuffer("strokeOpacity"),_.updateSourceBuffer("fill"),_.updateSourceBuffer("fillColor"),_.updateSourceBuffer("fillOpacity")):($.boundsDirty(!0),_.modified(),_.boundsDirtyTimestamp().modified())}return c(y,t),this.actors=function(){return x?[x]:[]},this.updateStyleFromArray=function(t,e,n){var r,o,a={fill:"bool",fillColor:3,fillOpacity:1,radius:1,stroke:"bool",strokeColor:3,strokeOpacity:1,strokeWidth:1};if("string"==typeof t){var s={};s[t]=e,t=s}return i.each(t,function(t,e){var n,i,s,l,u,c,d,h,f;if(y.visible()&&x&&a[t]&&!r&&!y.clustering())if(f="bool"===a[t]?1:a[t],l=y.data().length,s=(i=x.mapper()).getSourceBuffer(t),n=y.verticesPerFeature(),s&&l&&l*n*f===s.length){switch(a[t]){case 1:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=1)s[h]=u;break;case 3:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=3)s[h]=u.r,s[h+1]=u.g,s[h+2]=u.b;break;case"bool":for(c=0,h=0;c<l;c+=1)for(u=e[c]?1:0,d=0;d<n;d+=1,h+=1)s[h]=u}i.updateSourceBuffer(t),o=!0}else r=!0;else r=!0;var p=y.modified;r||(y.modified=function(){}),T(t,e,!1),y.modified=p}),n&&(y.visible()&&r?y.draw():o&&y.renderer()._render()),y},this._init=function(n){var i,r,o=e.shaderProgram(),s=((r=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(y._primitiveShape===a.primitiveShapes.sprite?p:f),r),l=function(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(y._primitiveShape===a.primitiveShapes.sprite?h:d),t}(),u=e.vertexAttribute("pos"),c=e.vertexAttribute("unit"),v=e.vertexAttribute("radius"),E=e.vertexAttribute("strokeWidth"),T=e.vertexAttribute("fillColor"),S=e.vertexAttribute("fill"),C=e.vertexAttribute("strokeColor"),k=e.vertexAttribute("stroke"),P=e.vertexAttribute("fillOpacity"),O=e.vertexAttribute("strokeOpacity"),L=new e.projectionUniform("projectionMatrix"),R=e.material(),I=e.blend(),F=e.geometryData(),D=e.sourceDataP3fv({name:"pos"}),G=e.sourceDataAnyfv(2,e.vertexAttributeKeysIndexed.One,{name:"unit"}),j=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Two,{name:"radius"}),N=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"strokeWidth"}),B=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Four,{name:"fillColor"}),z=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Five,{name:"fill"}),V=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Six,{name:"strokeColor"}),U=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Seven,{name:"stroke"}),q=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Eight,{name:"fillOpacity"}),H=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Nine,{name:"strokeOpacity"});m=new e.modelViewOriginUniform("modelViewMatrix",g),(i=y._primitiveShape===a.primitiveShapes.sprite?new e.points:new e.triangles).setIndices(new Uint16Array),b=new e.floatUniform("pixelWidth",2/y.renderer().width()),w=new e.floatUniform("aspect",y.renderer().width()/y.renderer().height()),n||A.call(y,t),_=e.mapper({dynamicDraw:M}),o.addVertexAttribute(u,e.vertexAttributeKeys.Position),y._primitiveShape!==a.primitiveShapes.sprite&&o.addVertexAttribute(c,e.vertexAttributeKeysIndexed.One),o.addVertexAttribute(v,e.vertexAttributeKeysIndexed.Two),o.addVertexAttribute(E,e.vertexAttributeKeysIndexed.Three),o.addVertexAttribute(T,e.vertexAttributeKeysIndexed.Four),o.addVertexAttribute(S,e.vertexAttributeKeysIndexed.Five),o.addVertexAttribute(C,e.vertexAttributeKeysIndexed.Six),o.addVertexAttribute(k,e.vertexAttributeKeysIndexed.Seven),o.addVertexAttribute(P,e.vertexAttributeKeysIndexed.Eight),o.addVertexAttribute(O,e.vertexAttributeKeysIndexed.Nine),o.addUniform(b),o.addUniform(w),o.addUniform(m),o.addUniform(L),o.addShader(l),o.addShader(s),R.addAttribute(o),R.addAttribute(I),(x=e.actor()).setMaterial(R),x.setMapper(_),F.addSource(D),F.addSource(G),F.addSource(j),F.addSource(N),F.addSource(B),F.addSource(z),F.addSource(V),F.addSource(U),F.addSource(q),F.addSource(H),F.addPrimitive(i),F.computeBounds=function(){F.setBounds(0,0,0,0,0,0)},_.setGeometryData(F)},this._build=function(){return S(y.dataTime().timestamp()<y.buildTime().timestamp()),y.renderer().contextRenderer().hasActor(x)||y.renderer().contextRenderer().addActor(x),y.buildTime().modified(),y},this._update=function(){return E.call(y),(y.dataTime().timestamp()>=y.buildTime().timestamp()||y.updateTime().timestamp()<y.timestamp())&&y._build(),b.set(2/y.renderer().width()),w.set(y.renderer().width()/y.renderer().height()),x.setVisible(y.visible()),x.material().setBinNumber(y.bin()),y.updateTime().modified(),y},this._exit=function(){y.renderer().contextRenderer().removeActor(x),x=null,v()},y._init(),this};r(l,a);var u={};u[a.capabilities.stroke]=!0,o("webgl","point",l,u),t.exports=l},5476:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+o*o)}},5493:function(t){t.exports=function(t,e,n,i){var r=n[0],o=n[1],a=e[0]-r,s=e[1]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=r+a*u-s*l,t[1]=o+a*l+s*u,t[2]=e[2],t}},5518:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return c},init:function(){return u},inverse:function(){return d},names:function(){return h}});var i=n(6194),r=n(3712),o=n(112),a=n(6269),s=n(7e3),l=n(9393);function u(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=(0,i.A)(this.es),this.ml0=(0,r.A)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function c(t){var e,n,i,o=t.x,l=t.y,u=(0,a.A)(o-this.long0),c=Math.sin(l),d=Math.cos(l);if(this.es){var h=d*u,f=Math.pow(h,2),p=this.ep2*Math.pow(d,2),m=Math.pow(p,2),g=Math.abs(d)>s.H0?Math.tan(l):0,y=Math.pow(g,2),v=Math.pow(y,2);e=1-this.es*Math.pow(c,2),h/=Math.sqrt(e);var x=(0,r.A)(l,c,d,this.en);n=this.a*(this.k0*h*(1+f/6*(1-y+p+f/20*(5-18*y+v+14*p-58*y*p+f/42*(61+179*v-v*y-479*y)))))+this.x0,i=this.a*(this.k0*(x-this.ml0+c*u*h/2*(1+f/12*(5-y+9*p+4*m+f/30*(61+v-58*y+270*p-330*y*p+f/56*(1385+543*v-v*y-3111*y))))))+this.y0}else{var _=d*Math.sin(u);if(Math.abs(Math.abs(_)-1)<s.H0)return 93;if(n=.5*this.a*this.k0*Math.log((1+_)/(1-_))+this.x0,i=d*Math.cos(u)/Math.sqrt(1-Math.pow(_,2)),(_=Math.abs(i))>=1){if(_-1>s.H0)return 93;i=0}else i=Math.acos(i);l<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t}function d(t){var e,n,i,r,u=(t.x-this.x0)*(1/this.a),c=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+c/this.k0,n=(0,o.A)(e,this.es,this.en),Math.abs(n)<s.sK){var d=Math.sin(n),h=Math.cos(n),f=Math.abs(h)>s.H0?Math.tan(n):0,p=this.ep2*Math.pow(h,2),m=Math.pow(p,2),g=Math.pow(f,2),y=Math.pow(g,2);e=1-this.es*Math.pow(d,2);var v=u*Math.sqrt(e)/this.k0,x=Math.pow(v,2);i=n-(e*=f)*x/(1-this.es)*.5*(1-x/12*(5+3*g-9*p*g+p-4*m-x/30*(61+90*g-252*p*g+45*y+46*p-x/56*(1385+3633*g+4095*y+1574*y*g)))),r=(0,a.A)(this.long0+v*(1-x/6*(1+2*g+p-x/20*(5+28*g+24*y+8*p*g+6*p-x/42*(61+662*g+1320*y+720*y*g))))/h)}else i=s.sK*(0,l.A)(c),r=0;else{var _=Math.exp(u/this.k0),b=.5*(_-1/_),w=this.lat0+c/this.k0,M=Math.cos(w);e=Math.sqrt((1-Math.pow(M,2))/(1+Math.pow(b,2))),i=Math.asin(e),c<0&&(i=-i),r=0===b&&0===M?0:(0,a.A)(Math.atan2(b,M)+this.long0)}return t.x=r,t.y=i,t}var h=["Fast_Transverse_Mercator","Fast Transverse Mercator"];e.default={init:u,forward:c,inverse:d,names:h}},5578:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);o.call(this,t),n(5895).call(this);var e,i=n(5616),r=this,l=this._exit,u=this._init,c=this._update;return this._build=function(){r.position()&&((e=r._generateQuads()).imgQuads&&e.imgQuads.sort(function(t,e){return t.pos[2]-e.pos[2]}),r.buildTime().modified())},this._checkQuadUpdate=function(t,e){r.layer().map().scheduleAnimationFrame(r._checkIfChanged)},this._checkIfChanged=function(){if(e&&e.vidQuads&&e.vidQuads.length){var t=!1,n=!1;i.each(e.vidQuads,function(e,i){i.video&&void 0!==i.video.HAVE_CURRENT_DATA&&(!i.video.seeking&&i.video.readyState>=i.video.HAVE_CURRENT_DATA&&(t=!0),i.video.paused&&!i.video.seeking||(n=!0))}),t&&r.renderer()&&r.renderer()._render(),n&&r.layer().map().scheduleAnimationFrame(r._checkIfChanged)}},this._renderColorQuads=function(t,n){if(e.clrQuads&&e.clrQuads.length){var r=t.globalAlpha,o=r;i.each(e.clrQuads,function(e,i){var r=n.gcsToDisplay({x:i.pos[0],y:i.pos[1]},null),s=n.gcsToDisplay({x:i.pos[3],y:i.pos[4]},null),l=n.gcsToDisplay({x:i.pos[6],y:i.pos[7]},null),u=n.gcsToDisplay({x:i.pos[9],y:i.pos[10]},null);i.opacity!==o&&(o=i.opacity,t.globalAlpha=o),t.fillStyle=a.convertColorToHex(i.color,!0),t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(s.x,s.y),t.lineTo(u.x,u.y),t.lineTo(l.x,l.y),t.closePath(),t.fill()}),o!==r&&(t.globalAlpha=r)}},this._renderImageAndVideoQuads=function(t,n){if(e.imgQuads&&e.imgQuads.length||e.vidQuads&&e.vidQuads.length){var o=t.globalAlpha,s=o,l=r.nearestPixel();if(void 0!==l){if(!0!==l&&a.isNonNullFinite(l))l=r.layer().map().zoom()>=l;t.imageSmoothingEnabled=!l}i.each([e.imgQuads,e.vidQuads],function(e,r){r&&i.each(r,function(e,i){var r,o,a;if(i.image)o=(r=i.image).width,a=r.height;else if(i.video&&(o=(r=i.video).videoWidth,a=r.videoHeight,r.seeking))return;if(r&&o&&a&&!(i.opacity<=0)){var l=n.gcsToDisplay({x:i.pos[0],y:i.pos[1]},null),u=n.gcsToDisplay({x:i.pos[6],y:i.pos[7]},null),c=n.gcsToDisplay({x:i.pos[9],y:i.pos[10]},null),d=Math.min(o,i.crop&&i.crop.x||o),h=Math.min(a,i.crop&&i.crop.y||a);if(t.setTransform((c.x-u.x)/d,(c.y-u.y)/d,(l.x-u.x)/h,(l.y-u.y)/h,u.x,u.y),i.opacity!==s&&(s=i.opacity,t.globalAlpha=s),i.crop){var f=Math.max(0,i.crop.left||0),p=Math.max(0,i.crop.top||0),m=Math.min(o,i.crop.right||o),g=Math.min(a,i.crop.bottom||a);o&&a&&d>0&&h>0&&m>f&&g>p&&t.drawImage(r,f,p,m-f,g-p,0,0,d,h)}else t.drawImage(r,0,0)}})}),s!==o&&(t.globalAlpha=o),t.setTransform(1,0,0,1,0,0),t.imageSmoothingEnabled=!0}},this._delayRender=function(){var t=!1;return e&&e.vidQuads&&e.vidQuads.length&&i.each(e.vidQuads,function(e,n){n.video&&void 0!==n.video.HAVE_CURRENT_DATA&&(t|=n.video.seeking&&n.delayRenderWhenSeeking)}),t},this._renderOnCanvas=function(t,n){e&&(r._renderImageAndVideoQuads(t,n),r._renderColorQuads(t,n))},this._update=function(){c.call(r),(r.buildTime().timestamp()<=r.dataTime().timestamp()||r.updateTime().timestamp()<r.timestamp())&&r._build(),r.updateTime().modified(),r.layer().map().scheduleAnimationFrame(r._checkIfChanged)},this._init=function(){u.call(r,t)},this._exit=function(){l.call(r)},r._init(t),this};i(s,o);var l={};l[o.capabilities.color]=!0,l[o.capabilities.image]=!0,l[o.capabilities.imageCrop]=!0,l[o.capabilities.imageFixedScale]=!0,l[o.capabilities.imageFull]=!1,l[o.capabilities.canvas]=!0,l[o.capabilities.video]=!0,l[o.capabilities.texture]=!1,r("canvas","quad",s,l),t.exports=s},5616:function(t,e){var n;
32
32
  /*!
33
33
  * jQuery JavaScript Library v3.7.1
34
34
  * https://jquery.com/
@@ -38,11 +38,11 @@ var i=n(5616),r=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^/\0
38
38
  * https://jquery.org/license
39
39
  *
40
40
  * Date: 2023-08-28T13:37Z
41
- */!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},u=o.push,c=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},x=i.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var i,r,o=(n=n||x).createElement("script");if(o.text=t,e)for(i in _)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var M="3.7.1",A=/HTML$/i,E=function(t,e){return new E.fn.init(t,e)};function T(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function S(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}E.fn=E.prototype={jquery:M,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(t){return this.pushStack(E.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(u&&i&&(E.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||E.isPlainObject(n)?n:{},r=!1,a[e]=E.extend(u,o,i)):void 0!==i&&(a[e]=i));return a},E.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=a(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&p.call(n)===m)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){b(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(T(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=E.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(T(Object(t))?E.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!A.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(T(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){d["[object "+e+"]"]=e.toLowerCase()});var C=o.pop,k=o.sort,P=o.splice,O="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");E.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var R=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}E.escapeSelector=function(t){return(t+"").replace(R,I)};var F=x,D=u;!function(){var t,e,n,r,a,l,u,d,h,p,m=D,y=E.expando,v=0,x=0,_=tt(),b=tt(),w=tt(),M=tt(),A=function(t,e){return t===e&&(a=!0),0},T="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+O+"*("+R+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+O+"*\\]",G=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",j=new RegExp(O+"+","g"),N=new RegExp("^"+O+"*,"+O+"*"),B=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),z=new RegExp(O+"|>"),V=new RegExp(G),U=new RegExp("^"+R+"$"),q={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+T+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Z=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Y=function(){lt()},J=ht(function(t){return!0===t.disabled&&S(t,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(o=s.call(F.childNodes),F.childNodes),o[F.childNodes.length].nodeType}catch(t){m={apply:function(t,e){D.apply(t,s.call(e))},call:function(t){D.apply(t,s.call(arguments,1))}}}function $(t,e,n,i){var r,o,a,s,u,c,f,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!i&&(lt(e),e=e||l,d)){if(11!==v&&(u=X.exec(t)))if(r=u[1]){if(9===v){if(!(a=e.getElementById(r)))return n;if(a.id===r)return m.call(n,a),n}else if(p&&(a=p.getElementById(r))&&$.contains(e,a)&&a.id===r)return m.call(n,a),n}else{if(u[2])return m.apply(n,e.getElementsByTagName(t)),n;if((r=u[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(r)),n}if(!(M[t+" "]||h&&h.test(t))){if(f=t,p=e,1===v&&(z.test(t)||B.test(t))){for((p=K.test(t)&&st(e.parentNode)||e)==e&&g.scope||((s=e.getAttribute("id"))?s=E.escapeSelector(s):e.setAttribute("id",s=y)),o=(c=ct(t)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+dt(c[o]);f=c.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){M(t,!0)}finally{s===y&&e.removeAttribute("id")}}}return vt(t.replace(L,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[y]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return S(e,"input")&&e.type===t}}function rt(t){return function(e){return(S(e,"input")||S(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et(function(e){return e=+e,et(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:F;return i!=l&&9===i.nodeType&&i.documentElement?(u=(l=i).documentElement,d=!E.isXMLDoc(l),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&F!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Y),g.getById=nt(function(t){return u.appendChild(t).id=E.expando,!l.getElementsByName||!l.getElementsByName(E.expando).length}),g.disconnectedMatch=nt(function(t){return p.call(t,"*")}),g.scope=nt(function(){return l.querySelectorAll(":scope")}),g.cssHas=nt(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),g.getById?(e.filter.ID=function(t){var e=t.replace(Q,Z);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Q,Z);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],nt(function(t){var e;u.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+O+"*(?:value|"+T+")"),t.querySelectorAll("[id~="+y+"-]").length||h.push("~="),t.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")}),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),A=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==F&&$.contains(F,t)?-1:e===l||e.ownerDocument==F&&$.contains(F,e)?1:r?c.call(r,t)-c.call(r,e):0:4&n?-1:1)},l):l}for(t in $.matches=function(t,e){return $(t,null,null,e)},$.matchesSelector=function(t,e){if(lt(t),d&&!M[e+" "]&&(!h||!h.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){M(e,!0)}return $(e,l,null,[t]).length>0},$.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),E.contains(t,e)},$.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],r=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!d):void 0;return void 0!==r?r:t.getAttribute(n)},$.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},E.uniqueSort=function(t){var e,n=[],i=0,o=0;if(a=!g.sortStable,r=!g.sortStable&&s.call(t,0),k.call(t,A),a){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)P.call(t,n[i],1)}return r=null,t},E.fn.uniqueSort=function(){return this.pushStack(E.uniqueSort(s.apply(this)))},e=E.expr={cacheLength:50,createPseudo:et,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,Z),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,Z),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||$.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&$.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&V.test(n)&&(e=ct(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Q,Z).toLowerCase();return"*"===t?function(){return!0}:function(t){return S(t,e)}},CLASS:function(t){var e=_[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&_(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=$.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(j," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),x=!l&&!s,_=!1;if(m){if(o){for(;p;){for(d=e;d=d[p];)if(s?S(d,g):1===d.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&x){for(_=(h=(u=(c=m[y]||(m[y]={}))[t]||[])[0]===v&&u[1])&&u[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(_=h=0)||f.pop();)if(1===d.nodeType&&++_&&d===e){c[t]=[v,h,_];break}}else if(x&&(_=h=(u=(c=e[y]||(e[y]={}))[t]||[])[0]===v&&u[1]),!1===_)for(;(d=++h&&d&&d[p]||(_=h=0)||f.pop())&&(!(s?S(d,g):1===d.nodeType)||!++_||(x&&((c=d[y]||(d[y]={}))[t]=[v,_]),d!==e)););return(_-=r)===i||_%i===0&&_/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||$.error("unsupported pseudo: "+t);return r[y]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var i,o=r(t,n),a=o.length;a--;)t[i=c.call(t,o[a])]=!(e[i]=o[a])}):function(t){return r(t,0,i)}):r}},pseudos:{not:et(function(t){var e=[],n=[],i=yt(t.replace(L,"$1"));return i[y]?et(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return $(t,e).length>0}}),contains:et(function(t){return t=t.replace(Q,Z),function(e){return(e.textContent||E.text(e)).indexOf(t)>-1}}),lang:et(function(t){return U.test(t||"")||$.error("unsupported lang: "+t),t=t.replace(Q,Z).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return S(t,"input")&&!!t.checked||S(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return W.test(t.nodeName)},input:function(t){return H.test(t.nodeName)},button:function(t){return S(t,"input")&&"button"===t.type||S(t,"button")},text:function(t){var e;return S(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at(function(){return[0]}),last:at(function(t,e){return[e-1]}),eq:at(function(t,e,n){return[n<0?n+e:n]}),even:at(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:at(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:at(function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:at(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ut(){}function ct(t,n){var i,r,o,a,s,l,u,c=b[t+" "];if(c)return n?0:c.slice(0);for(s=t,l=[],u=e.preFilter;s;){for(a in i&&!(r=N.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=B.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(L," ")}),s=s.slice(i.length)),e.filter)!(r=q[a].exec(s))||u[a]&&!(r=u[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?$.error(t):b(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=x++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var u,c,d=[v,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(c=e[y]||(e[y]={}),r&&S(e,r))e=e[i]||e;else{if((u=c[o])&&u[0]===v&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=t(e,n,l))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function mt(t,e,n,i,r,o){return i&&!i[y]&&(i=mt(i)),r&&!r[y]&&(r=mt(r,o)),et(function(o,a,s,l){var u,d,h,f,p=[],g=[],y=a.length,v=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)$(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),x=!t||!o&&e?v:pt(v,p,t,s,l);if(n?n(x,f=r||(o?t:y||i)?[]:a,s,l):f=x,i)for(u=pt(f,g),i(u,[],s,l),d=u.length;d--;)(h=u[d])&&(f[g[d]]=!(x[g[d]]=h));if(o){if(r||t){if(r){for(u=[],d=f.length;d--;)(h=f[d])&&u.push(x[d]=h);r(null,f=[],u,l)}for(d=f.length;d--;)(h=f[d])&&(u=r?c.call(o,h):p[d])>-1&&(o[u]=!(a[u]=h))}}else f=pt(f===a?f.splice(y,f.length):f),r?r(null,a,f,l):m.apply(a,f)})}function gt(t){for(var i,r,o,a=t.length,s=e.relative[t[0].type],l=s||e.relative[" "],u=s?1:0,d=ht(function(t){return t===i},l,!0),h=ht(function(t){return c.call(i,t)>-1},l,!0),f=[function(t,e,r){var o=!s&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,o}];u<a;u++)if(r=e.relative[t[u].type])f=[ht(ft(f),r)];else{if((r=e.filter[t[u].type].apply(null,t[u].matches))[y]){for(o=++u;o<a&&!e.relative[t[o].type];o++);return mt(u>1&&ft(f),u>1&&dt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(L,"$1"),r,u<o&&gt(t.slice(u,o)),o<a&&gt(t=t.slice(o)),o<a&&dt(t))}f.push(r)}return ft(f)}function yt(t,i){var r,o=[],a=[],s=w[t+" "];if(!s){for(i||(i=ct(t)),r=i.length;r--;)(s=gt(i[r]))[y]?o.push(s):a.push(s);s=w(t,function(t,i){var r=i.length>0,o=t.length>0,a=function(a,s,u,c,h){var f,p,g,y=0,x="0",_=a&&[],b=[],w=n,M=a||o&&e.find.TAG("*",h),A=v+=null==w?1:Math.random()||.1,T=M.length;for(h&&(n=s==l||s||h);x!==T&&null!=(f=M[x]);x++){if(o&&f){for(p=0,s||f.ownerDocument==l||(lt(f),u=!d);g=t[p++];)if(g(f,s||l,u)){m.call(c,f);break}h&&(v=A)}r&&((f=!g&&f)&&y--,a&&_.push(f))}if(y+=x,r&&x!==y){for(p=0;g=i[p++];)g(_,b,s,u);if(a){if(y>0)for(;x--;)_[x]||b[x]||(b[x]=C.call(c));b=pt(b)}m.apply(c,b),h&&!a&&b.length>0&&y+i.length>1&&E.uniqueSort(c)}return h&&(v=A,n=w),_};return r?et(a):a}(a,o)),s.selector=t}return s}function vt(t,n,i,r){var o,a,s,l,u,c="function"==typeof t&&t,h=!r&&ct(t=c.selector||t);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(Q,Z),n)||[])[0]))return i;c&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(o=q.needsContext.test(t)?0:a.length;o--&&(s=a[o],!e.relative[l=s.type]);)if((u=e.find[l])&&(r=u(s.matches[0].replace(Q,Z),K.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(o,1),!(t=r.length&&dt(a)))return m.apply(i,r),i;break}}return(c||yt(t,h))(r,n,!d,i,!n||K.test(t)&&st(n.parentNode)||n),i}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,g.sortStable=y.split("").sort(A).join("")===y,lt(),g.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))}),E.find=$,E.expr[":"]=E.expr.pseudos,E.unique=E.uniqueSort,$.compile=yt,$.select=vt,$.setDocument=lt,$.tokenize=ct,$.escape=E.escapeSelector,$.getText=E.text,$.isXML=E.isXMLDoc,$.selectors=E.expr,$.support=E.support,$.uniqueSort=E.uniqueSort}();var G=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&E(t).is(n))break;i.push(t)}return i},j=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},N=E.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return y(e)?E.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?E.grep(t,function(t){return t===e!==n}):"string"!=typeof e?E.grep(t,function(t){return c.call(e,t)>-1!==n}):E.filter(e,t,n)}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<i;e++)if(E.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)E.find(t,r[e],n);return i>1?E.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&N.test(t)?E(t):t||[],!1).length}});var V,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||V,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:x,!0)),B.test(i[1])&&E.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=x.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this)}).prototype=E.fn,V=E(x);var q=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function W(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&E(t);if(!N.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(E(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return G(t,"parentNode")},parentsUntil:function(t,e,n){return G(t,"parentNode",n)},next:function(t){return W(t,"nextSibling")},prev:function(t){return W(t,"previousSibling")},nextAll:function(t){return G(t,"nextSibling")},prevAll:function(t){return G(t,"previousSibling")},nextUntil:function(t,e,n){return G(t,"nextSibling",n)},prevUntil:function(t,e,n){return G(t,"previousSibling",n)},siblings:function(t){return j((t.parentNode||{}).firstChild,t)},children:function(t){return j(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(S(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},function(t,e){E.fn[t]=function(n,i){var r=E.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=E.filter(i,r)),this.length>1&&(H[t]||E.uniqueSort(r),q.test(t)&&r.reverse()),this.pushStack(r)}});var X=/[^\x20\t\r\n\f]+/g;function K(t){return t}function Q(t){throw t}function Z(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return E.each(t.match(X)||[],function(t,n){e[n]=!0}),e}(t):E.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){E.each(n,function(n,i){y(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==w(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return E.each(arguments,function(t,e){for(var n;(n=E.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?E.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},E.extend({Deferred:function(t){var e=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return E.Deferred(function(n){E.each(e,function(e,i){var r=y(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,l=arguments,u=function(){var i,u;if(!(t<o)){if((i=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,y(u)?r?u.call(i,a(o,e,K,r),a(o,e,Q,r)):(o++,u.call(i,a(o,e,K,r),a(o,e,Q,r),a(o,e,K,e.notifyWith))):(n!==K&&(s=void 0,l=[i]),(r||e.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(i){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(i,c.error),t+1>=o&&(n!==Q&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?c():(E.Deferred.getErrorHook?c.error=E.Deferred.getErrorHook():E.Deferred.getStackHook&&(c.error=E.Deferred.getStackHook()),i.setTimeout(c))}}return E.Deferred(function(i){e[0][3].add(a(0,i,y(r)?r:K,i.notifyWith)),e[1][3].add(a(0,i,y(t)?t:K)),e[2][3].add(a(0,i,y(n)?n:Q))}).promise()},promise:function(t){return null!=t?E.extend(t,r):r}},o={};return E.each(e,function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add(function(){n=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=s.call(arguments),o=E.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Z(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(r[n]&&r[n].then)))return o.then();for(;n--;)Z(r[n],a(n),o.reject);return o.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Y.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){i.setTimeout(function(){throw t})};var J=E.Deferred();function $(){x.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),E.ready()}E.fn.ready=function(t){return J.then(t).catch(function(t){E.readyException(t)}),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==t&&--E.readyWait>0||J.resolveWith(x,[E]))}}),E.ready.then=J.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?i.setTimeout(E.ready):(x.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var tt=function(t,e,n,i,r,o,a){var s=0,l=t.length,u=null==n;if("object"===w(n))for(s in r=!0,n)tt(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,y(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(E(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:u?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function at(){this.expando=E.expando+at.uid++}at.uid=1,at.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(X)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||E.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!E.isEmptyObject(e)}};var st=new at,lt=new at,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ct=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ct,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return lt.hasData(t)||st.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return st.access(t,e,n)},_removeData:function(t,e){st.remove(t,e)}}),E.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!st.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=rt(i.slice(5)),dt(o,i,r[i]));st.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){lt.set(this,t)}):tt(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=dt(o,t))?n:void 0;this.each(function(){lt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){lt.remove(this,t)})}}),E.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=st.get(t,e),n&&(!i||Array.isArray(n)?i=st.access(t,e,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,r=n.shift(),o=E._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){E.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:E.Callbacks("once memory").add(function(){st.remove(t,[e+"queue",n])})})}}),E.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?E.queue(this[0],t):void 0===e?this:this.each(function(){var n=E.queue(this,t,e);E._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&E.dequeue(this,t)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=E.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=x.documentElement,gt=function(t){return E.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&gt(t)&&"none"===E.css(t,"display")};function xt(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return E.css(t,e,"")},l=s(),u=n&&n[3]||(E.cssNumber[e]?"":"px"),c=t.nodeType&&(E.cssNumber[e]||"px"!==u&&+l)&&ft.exec(E.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)E.style(t,e,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,E.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var _t={};function bt(t){var e,n=t.ownerDocument,i=t.nodeName,r=_t[i];return r||(e=n.body.appendChild(n.createElement(i)),r=E.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),_t[i]=r,r)}function wt(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=st.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&vt(i)&&(r[o]=bt(i))):"none"!==n&&(r[o]="none",st.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}E.fn.extend({show:function(){return wt(this,!0)},hide:function(){return wt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){vt(this)?E(this).show():E(this).hide()})}});var Mt,At,Et=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,St=/^$|^module$|\/(?:java|ecma)script/i;Mt=x.createDocumentFragment().appendChild(x.createElement("div")),(At=x.createElement("input")).setAttribute("type","radio"),At.setAttribute("checked","checked"),At.setAttribute("name","t"),Mt.appendChild(At),g.checkClone=Mt.cloneNode(!0).cloneNode(!0).lastChild.checked,Mt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Mt.cloneNode(!0).lastChild.defaultValue,Mt.innerHTML="<option></option>",g.option=!!Mt.lastChild;var Ct={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function kt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&S(t,e)?E.merge([t],n):n}function Pt(t,e){for(var n=0,i=t.length;n<i;n++)st.set(t[n],"globalEval",!e||st.get(e[n],"globalEval"))}Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td,g.option||(Ct.optgroup=Ct.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Lt(t,e,n,i,r){for(var o,a,s,l,u,c,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===w(o))E.merge(h,o.nodeType?[o]:o);else if(Ot.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(Tt.exec(o)||["",""])[1].toLowerCase(),l=Ct[s]||Ct._default,a.innerHTML=l[1]+E.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;E.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&E.inArray(o,i)>-1)r&&r.push(o);else if(u=gt(o),a=kt(d.appendChild(o),"script"),u&&Pt(a),n)for(c=0;o=a[c++];)St.test(o.type||"")&&n.push(o);return d}var Rt=/^([^.]*)(?:\.(.+)|)/;function It(){return!0}function Ft(){return!1}function Dt(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)Dt(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ft;else if(!r)return t;return 1===o&&(a=r,r=function(t){return E().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=E.guid++)),t.each(function(){E.event.add(this,e,r,i,n)})}function Gt(t,e,n){n?(st.set(t,e,!1),E.event.add(t,e,{namespace:!1,handler:function(t){var n,i=st.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(E.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=s.call(arguments),st.set(this,e,i),this[e](),n=st.get(this,e),st.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(st.set(this,e,E.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=It)}})):void 0===st.get(t,e)&&E.event.add(t,e,It)}E.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g=st.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&E.find.matchesSelector(mt,r),n.guid||(n.guid=E.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(X)||[""]).length;u--;)f=m=(s=Rt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=E.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=E.event.special[f]||{},c=E.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),E.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g=st.hasData(t)&&st.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(X)||[""]).length;u--;)if(f=m=(s=Rt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=E.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||E.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)E.event.remove(t,f+e[u],n,i,!0);E.isEmptyObject(l)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),l=E.event.fix(t),u=(st.get(this,"events")||Object.create(null))[l.type]||[],c=E.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=E.event.handlers.call(this,l,u),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((E.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?E(r,this).index(u)>-1:E.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Et.test(e.type)&&e.click&&S(e,"input")&&Gt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Et.test(e.type)&&e.click&&S(e,"input")&&Gt(e,"click"),!0},_default:function(t){var e=t.target;return Et.test(e.type)&&e.click&&S(e,"input")&&st.get(e,"click")||S(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?It:Ft,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Ft,isPropagationStopped:Ft,isImmediatePropagationStopped:Ft,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=It,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=It,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=It,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(x.documentMode){var n=st.get(this,"handle"),i=E.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else E.event.simulate(e,t.target,E.event.fix(t))}E.event.special[t]={setup:function(){var i;if(Gt(this,t,!0),!x.documentMode)return!1;(i=st.get(this,e))||this.addEventListener(e,n),st.set(this,e,(i||0)+1)},trigger:function(){return Gt(this,t),!0},teardown:function(){var t;if(!x.documentMode)return!1;(t=st.get(this,e)-1)?st.set(this,e,t):(this.removeEventListener(e,n),st.remove(this,e))},_default:function(e){return st.get(e.target,t)},delegateType:e},E.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,o=st.get(r,e);o||(x.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),st.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,o=st.get(r,e)-1;o?st.set(r,e,o):(x.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),st.remove(r,e))}}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){E.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||E.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),E.fn.extend({on:function(t,e,n,i){return Dt(this,t,e,n,i)},one:function(t,e,n,i){return Dt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Ft),this.each(function(){E.event.remove(this,t,n,e)})}});var jt=/<script|<style|<link/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,Bt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return S(t,"table")&&S(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Vt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(st.hasData(t)&&(s=st.get(t).events))for(r in st.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)E.event.add(e,r,s[r][n]);lt.hasData(t)&&(o=lt.access(t),a=E.extend({},o),lt.set(e,a))}}function Ht(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Et.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Wt(t,e,n,i){e=l(e);var r,o,a,s,u,c,d=0,h=t.length,f=h-1,p=e[0],m=y(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&Nt.test(p))return t.each(function(r){var o=t.eq(r);m&&(e[0]=p.call(this,r,o.html())),Wt(o,e,n,i)});if(h&&(o=(r=Lt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=E.map(kt(r,"script"),Vt)).length;d<h;d++)u=r,d!==f&&(u=E.clone(u,!0,!0),s&&E.merge(a,kt(u,"script"))),n.call(t[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,E.map(a,Ut),d=0;d<s;d++)u=a[d],St.test(u.type||"")&&!st.access(u,"globalEval")&&E.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?E._evalUrl&&!u.noModule&&E._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):b(u.textContent.replace(Bt,""),u,c))}return t}function Xt(t,e,n){for(var i,r=e?E.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||E.cleanData(kt(i)),i.parentNode&&(n&&gt(i)&&Pt(kt(i,"script")),i.parentNode.removeChild(i));return t}E.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(a=kt(s),i=0,r=(o=kt(t)).length;i<r;i++)Ht(o[i],a[i]);if(e)if(n)for(o=o||kt(t),a=a||kt(s),i=0,r=o.length;i<r;i++)qt(o[i],a[i]);else qt(t,s);return(a=kt(s,"script")).length>0&&Pt(a,!l&&kt(t,"script")),s},cleanData:function(t){for(var e,n,i,r=E.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[st.expando]){if(e.events)for(i in e.events)r[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);n[st.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Wt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)})},prepend:function(){return Wt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(kt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return E.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!jt.test(t)&&!Ct[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(E.cleanData(kt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Wt(this,arguments,function(e){var n=this.parentNode;E.inArray(this,t)<0&&(E.cleanData(kt(this)),n&&n.replaceChild(e,this))},t)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){E.fn[t]=function(t){for(var n,i=[],r=E(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),E(r[a])[e](n),u.apply(i,n.get());return this.pushStack(i)}});var Kt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Qt=/^--/,Zt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Yt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Jt=new RegExp(pt.join("|"),"i");function $t(t,e,n){var i,r,o,a,s=Qt.test(e),l=t.style;return(n=n||Zt(t))&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(L,"$1")||void 0),""!==a||gt(t)||(a=E.style(t,e)),!g.pixelBoxStyles()&&Kt.test(a)&&Jt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(u).appendChild(c);var t=i.getComputedStyle(c);n="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),mt.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,u=x.createElement("div"),c=x.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,E.extend(g,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==s&&(t=x.createElement("table"),e=x.createElement("tr"),n=x.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),s}}))}();var ee=["Webkit","Moz","ms"],ne=x.createElement("div").style,ie={};function re(t){var e=E.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ue(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0,u=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=E.css(t,n+pt[a],!0,r)),i?("content"===n&&(l-=E.css(t,"padding"+pt[a],!0,r)),"margin"!==n&&(l-=E.css(t,"border"+pt[a]+"Width",!0,r))):(l+=E.css(t,"padding"+pt[a],!0,r),"padding"!==n?l+=E.css(t,"border"+pt[a]+"Width",!0,r):s+=E.css(t,"border"+pt[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l+u}function ce(t,e,n){var i=Zt(t),r=(!g.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,i),o=r,a=$t(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Kt.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&S(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===E.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ue(t,e,n||(r?"border":"content"),o,i,a)+"px"}function de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=rt(e),l=Qt.test(e),u=t.style;if(l||(e=re(s)),a=E.cssHooks[e]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];"string"===(o=typeof n)&&(r=ft.exec(n))&&r[1]&&(n=xt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(E.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,a,s=rt(e);return Qt.test(e)||(e=re(s)),(a=E.cssHooks[e]||E.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=$t(t,e,i)),"normal"===r&&e in se&&(r=se[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),E.each(["height","width"],function(t,e){E.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,i):Yt(t,ae,function(){return ce(t,e,i)})},set:function(t,n,i){var r,o=Zt(t),a=!g.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===E.css(t,"boxSizing",!1,o),l=i?ue(t,e,i,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ue(t,e,"border",!1,o)-.5)),l&&(r=ft.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=E.css(t,e)),le(0,n,l)}}}),E.cssHooks.marginLeft=te(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat($t(t,"marginLeft"))||t.getBoundingClientRect().left-Yt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(t,e){E.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+pt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(E.cssHooks[t+e].set=le)}),E.fn.extend({css:function(t,e){return tt(this,function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Zt(t),r=e.length;a<r;a++)o[e[a]]=E.css(t,e[a],!1,i);return o}return void 0!==n?E.style(t,e,n):E.css(t,e)},t,e,arguments.length>1)}}),E.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=de.prototype.init,E.fx.step={};var he,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===x.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ge):i.setTimeout(ge,E.fx.interval),E.fx.tick())}function ye(){return i.setTimeout(function(){he=void 0}),he=Date.now()}function ve(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=pt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function xe(t,e,n){for(var i,r=(_e.tweeners[e]||[]).concat(_e.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function _e(t,e,n){var i,r,o=0,a=_e.prefilters.length,s=E.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=he||ye(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(i);return s.notifyWith(t,[u,i,n]),i<1&&a?n:(a||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var i=E.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=E.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);o<a;o++)if(i=_e.prefilters[o].call(u,t,c,u.opts))return y(i.stop)&&(E._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return E.map(c,xe,u),y(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),E.fx.timer(E.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}E.Animation=E.extend(_e,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return xt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);for(var n,i=0,r=t.length;i<r;i++)n=t[i],_e.tweeners[n]=_e.tweeners[n]||[],_e.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,u,c,d="width"in e||"height"in e,h=this,f={},p=t.style,m=t.nodeType&&vt(t),g=st.get(t,"fxshow");for(i in n.queue||(null==(a=E._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,E.queue(t,"fx").length||a.empty.fire()})})),e)if(r=e[i],pe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||E.style(t,i)}if((l=!E.isEmptyObject(e))||!E.isEmptyObject(f))for(i in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=st.get(t,"display")),"none"===(c=E.css(t,"display"))&&(u?c=u:(wt([t],!0),u=t.style.display||u,c=E.css(t,"display"),wt([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===E.css(t,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=st.access(t,"fxshow",{display:u}),o&&(g.hidden=!m),m&&wt([t],!0),h.done(function(){for(i in m||wt([t]),st.remove(t,"fxshow"),f)E.style(t,i,f[i])})),l=xe(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?_e.prefilters.unshift(t):_e.prefilters.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=E.isEmptyObject(t),o=E.speed(e,n,i),a=function(){var e=_e(this,E.extend({},t),o);(r||st.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=E.timers,a=st.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&me.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||E.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=st.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=E.timers,a=i?i.length:0;for(n.finish=!0,E.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),E.each(["toggle","show","hide"],function(t,e){var n=E.fn[e];E.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,i,r)}}),E.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){E.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),he=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){fe||(fe=!0,ge())},E.fx.stop=function(){fe=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(t,e){return t=E.fx&&E.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}})},function(){var t=x.createElement("input"),e=x.createElement("select").appendChild(x.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=x.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var be,we=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return tt(this,E.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,e,n):(1===o&&E.isXMLDoc(t)||(r=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?be:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=E.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&S(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(X);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),be={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var n=we[e]||E.find.attr;we[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=we[a],we[a]=r,r=null!=n(t,e,i)?a:null,we[a]=o),r}});var Me=/^(?:input|select|textarea|button)$/i,Ae=/^(?:a|area)$/i;function Ee(t){return(t.match(X)||[]).join(" ")}function Te(t){return t.getAttribute&&t.getAttribute("class")||""}function Se(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}E.fn.extend({prop:function(t,e){return tt(this,E.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(e=E.propFix[e]||e,r=E.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):Me.test(t.nodeName)||Ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(E.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(t){var e,n,i,r,o,a;return y(t)?this.each(function(e){E(this).addClass(t.call(this,e,Te(this)))}):(e=Se(t)).length?this.each(function(){if(i=Te(this),n=1===this.nodeType&&" "+Ee(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=Ee(n),i!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,i,r,o,a;return y(t)?this.each(function(e){E(this).removeClass(t.call(this,e,Te(this)))}):arguments.length?(e=Se(t)).length?this.each(function(){if(i=Te(this),n=1===this.nodeType&&" "+Ee(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=Ee(n),i!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,a=typeof t,s="string"===a||Array.isArray(t);return y(t)?this.each(function(n){E(this).toggleClass(t.call(this,n,Te(this),e),e)}):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=Se(t),this.each(function(){if(s)for(o=E(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==a||((i=Te(this))&&st.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":st.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ee(Te(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;E.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,E(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=E.map(r,function(t){return null==t?"":t+""})),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=E.valHooks[r.type]||E.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ce,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:Ee(E.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(e=E(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=E.makeArray(e),a=r.length;a--;)((i=r[a]).selected=E.inArray(E.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=E.inArray(E(t).val(),e)>-1}},g.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ke=i.location,Pe={guid:Date.now()},Oe=/\?/;E.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,Re=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,e,n,r){var o,a,s,l,u,c,d,h,p=[n||x],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!Le.test(m+E.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[E.expando]?t:new E.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:E.makeArray(e,[t]),d=E.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!v(n)){for(l=d.delegateType||m,Le.test(l+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||x)&&p.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?l:d.bindType||m,(c=(st.get(a,"events")||Object.create(null))[t.type]&&st.get(a,"handle"))&&c.apply(a,e),(c=u&&a[u])&&c.apply&&ot(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),e)||!ot(n)||u&&y(n[m])&&!v(n)&&((s=n[u])&&(n[u]=null),E.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Re),n[m](),t.isPropagationStopped()&&h.removeEventListener(m,Re),E.event.triggered=void 0,s&&(n[u]=s)),t.result}},simulate:function(t,e,n){var i=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(i,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}});var Ie=/\[\]$/,Fe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ge=/^(?:input|select|textarea|keygen)/i;function je(t,e,n,i){var r;if(Array.isArray(e))E.each(e,function(e,r){n||Ie.test(t)?i(t,r):je(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==w(e))i(t,e);else for(r in e)je(t+"["+r+"]",e[r],n,i)}E.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){r(this.name,this.value)});else for(n in t)je(n,t[n],e,r);return i.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Ge.test(this.nodeName)&&!De.test(t)&&(this.checked||!Et.test(t))}).map(function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(t){return{name:e.name,value:t.replace(Fe,"\r\n")}}):{name:e.name,value:n.replace(Fe,"\r\n")}}).get()}});var Ne=/%20/g,Be=/#.*$/,ze=/([?&])_=[^&]*/,Ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,qe=/^\/\//,He={},We={},Xe="*/".concat("*"),Ke=x.createElement("a");function Qe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(X)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ze(t,e,n,i){var r={},o=t===We;function a(s){var l;return r[s]=!0,E.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Ye(t,e){var n,i,r=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&E.extend(!0,t,i),t}Ke.href=ke.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ye(Ye(t,E.ajaxSettings),e):Ye(E.ajaxSettings,t)},ajaxPrefilter:Qe(He),ajaxTransport:Qe(We),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,a,s,l,u,c,d,h,f=E.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?E(p):E.event,g=E.Deferred(),y=E.Callbacks("once memory"),v=f.statusCode||{},_={},b={},w="canceled",M={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Ve.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)M.always(t[M.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||w;return n&&n.abort(e),A(0,e),this}};if(g.promise(M),f.url=((t||f.url||ke.href)+"").replace(qe,ke.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){l=x.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ke.protocol+"//"+Ke.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),Ze(He,f,e,M),u)return M;for(d in(c=E.event&&f.global)&&0===E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ue.test(f.type),r=f.url.replace(Be,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ne,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Oe.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(ze,"$1"),h=(Oe.test(r)?"&":"?")+"_="+Pe.guid+++h),f.url=r+h),f.ifModified&&(E.lastModified[r]&&M.setRequestHeader("If-Modified-Since",E.lastModified[r]),E.etag[r]&&M.setRequestHeader("If-None-Match",E.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&M.setRequestHeader("Content-Type",f.contentType),M.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xe+"; q=0.01":""):f.accepts["*"]),f.headers)M.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,M,f)||u))return M.abort();if(w="abort",y.add(f.complete),M.done(f.success),M.fail(f.error),n=Ze(We,f,e,M)){if(M.readyState=1,c&&m.trigger("ajaxSend",[M,f]),u)return M;f.async&&f.timeout>0&&(s=i.setTimeout(function(){M.abort("timeout")},f.timeout));try{u=!1,n.send(_,A)}catch(t){if(u)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,e,a,l){var d,h,x,_,b,w=e;u||(u=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",M.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,M,a)),!d&&E.inArray("script",f.dataTypes)>-1&&E.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),_=function(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,_,M,d),d?(f.ifModified&&((b=M.getResponseHeader("Last-Modified"))&&(E.lastModified[r]=b),(b=M.getResponseHeader("etag"))&&(E.etag[r]=b)),204===t||"HEAD"===f.type?w="nocontent":304===t?w="notmodified":(w=_.state,h=_.data,d=!(x=_.error))):(x=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(e||w)+"",d?g.resolveWith(p,[h,w,M]):g.rejectWith(p,[M,w,x]),M.statusCode(v),v=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[M,f,d?h:x]),y.fireWith(p,[M,w]),c&&(m.trigger("ajaxComplete",[M,f]),--E.active||E.event.trigger("ajaxStop")))}return M},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,e){E[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),E.ajax(E.extend({url:t,type:e,dataType:r,data:n,success:i},E.isPlainObject(t)&&t))}}),E.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){E(this).wrapInner(t.call(this,e))}):this.each(function(){var e=E(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){E(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},$e=E.ajaxSettings.xhr();g.cors=!!$e&&"withCredentials"in $e,g.ajax=$e=!!$e,E.ajaxTransport(function(t){var e,n;if(g.cors||$e&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Je[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),E.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=E("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),x.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||E.expando+"_"+Pe.guid++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",function(t,e,n){var r,o,a,s=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||E.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always(function(){void 0===o?E(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),a&&y(o)&&o(a[0]),a=o=void 0}),"script"}),g.createHTMLDocument=((tn=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((i=(e=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,e.head.appendChild(i)):e=x),o=!n&&[],(r=B.exec(t))?[e.createElement(r[1])]:(r=Lt([t],e,o),o&&o.length&&E(o).remove(),E.merge([],r.childNodes)));var i,r,o},E.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=Ee(t.slice(s)),t=t.slice(0,s)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&E.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u=E.css(t,"position"),c=E(t),d={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=E.css(t,"top"),l=E.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),y(e)&&(e=e.call(t,n,E.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):c.css(d)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===E.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),r.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-E.css(i,"marginTop",!0),left:e.left-r.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||mt})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;E.fn[t]=function(i){return tt(this,function(t,i,r){var o;if(v(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),E.each(["top","left"],function(t,e){E.cssHooks[e]=te(g.pixelPosition,function(t,n){if(n)return n=$t(t,e),Kt.test(n)?E(t).position()[e]+"px":n})}),E.each({Height:"height",Width:"width"},function(t,e){E.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){E.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return tt(this,function(e,n,r){var o;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?E.css(e,n,s):E.style(e,n,r,s)},e,a?r:void 0,a)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){E.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=s.call(arguments,2),r=function(){return t.apply(e||this,i.concat(s.call(arguments)))},r.guid=t.guid=t.guid||E.guid++,r},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=S,E.isFunction=y,E.isWindow=v,E.camelCase=rt,E.type=w,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return E}.apply(e,[]))||(t.exports=n);var on=i.jQuery,an=i.$;return E.noConflict=function(t){return i.$===E&&(i.$=an),t&&i.jQuery===E&&(i.jQuery=on),E},void 0===r&&(i.jQuery=i.$=E),E})},5618:function(t){t.exports=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],c=e[9],d=e[10],h=e[11];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]);return t[4]=o*r+u*i,t[5]=a*r+c*i,t[6]=s*r+d*i,t[7]=l*r+h*i,t[8]=u*r-o*i,t[9]=c*r-a*i,t[10]=d*r-s*i,t[11]=h*r-l*i,t}},5637:function(t,e,n){var i=n(1949),r=n(7715);r=r.__esModule?r.default:r;var o={maxCount:1e3,count:0,memo:{}};function a(t,e){return o.count+=1,o.count>=o.maxCount&&(o.memo={},o.count=0),o.memo[t]=e,e}var s={convertColor:function(t){if(null==t||void 0!==t.r&&void 0!==t.g&&void 0!==t.b)return t;if(void 0!==o.memo[t])return o.memo[t];var e,n=t;if("string"==typeof t){var i=t.toLowerCase();if(r.hasOwnProperty(i))t={r:r[i][0]/255,g:r[i][1]/255,b:r[i][2]/255};else if("#"===t.charAt(0))4===t.length||5===t.length?(5===t.length&&(e=parseInt(t.slice(4),16)/15),t=4352*(3840&(t=parseInt(t.slice(1,4),16)))+272*(240&t)+17*(15&t)):7!==t.length&&9!==t.length||(9===t.length&&(e=parseInt(t.slice(7),16)/255),t=parseInt(t.slice(1,7),16));else if("transparent"===i)e=t=0;else if(i.indexOf("(")>=0)for(var l=0;l<s.cssColorConversions.length;l+=1){var u=s.cssColorConversions[l].regex.exec(i);if(u)return a(n,t=s.cssColorConversions[l].process(i,u))}}return isFinite(t)&&(t={r:((16711680&t)>>16)/255,g:((65280&t)>>8)/255,b:(255&t)/255}),void 0!==e&&t&&void 0!==t.r&&(t.a=e),a(n,t)},convertColorAndOpacity:function(t,e,n){return(t=s.convertColor(t))&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b||(t=s.convertColor(n||{r:0,g:0,b:0})),t&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b||(t={r:0,g:0,b:0}),t={r:isFinite(t.r)&&t.r>=0?t.r<=1?+t.r:1:0,g:isFinite(t.g)&&t.g>=0?t.g<=1?+t.g:1:0,b:isFinite(t.b)&&t.b>=0?t.b<=1?+t.b:1:0,a:i.isNonNullFinite(t.a)&&t.a>=0&&t.a<1?+t.a:1},i.isNonNullFinite(e)&&e<1&&(t.a=e<=0?0:t.a*e),t},convertColorToHex:function(t,e){var n,i=s.convertColor(t);return n=i.r||i.g||i.b?"#"+((1<<24)+(Math.round(255*i.r)<<16)+(Math.round(255*i.g)<<8)+Math.round(255*i.b)).toString(16).slice(1):"#000000",void 0!==i.a&&e&&(i.a<1||"needed"!==e)&&(n+=(256+Math.round(255*i.a)).toString(16).slice(1)),n},convertColorToRGBA:function(t){var e=s.convertColor(t);return e||(e={r:0,g:0,b:0}),(!i.isNonNullFinite(e.a)||e.a>1)&&(e.a=1),"rgba("+Math.round(255*e.r)+", "+Math.round(255*e.g)+", "+Math.round(255*e.b)+", "+ +(+e.a).toFixed(5)+")"},cssAngleUnitsBase:{deg:360,grad:400,rad:2*Math.PI,turn:1},cssNumberRegex:"[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?"};s.cssColorConversions=[{name:"rgb",regex:new RegExp("^\\s*rgba?\\(\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*,?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*,?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*([/,]?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*)?\\)\\s*$"),process:function(t,e){return t={r:Math.min(1,Math.max(0,+e[1]/(e[2]?100:255))),g:Math.min(1,Math.max(0,+e[3]/(e[4]?100:255))),b:Math.min(1,Math.max(0,+e[5]/(e[6]?100:255)))},e[7]&&(t.a=Math.min(1,Math.max(0,+e[8]/(e[9]?100:1)))),t}},{name:"hsl",regex:new RegExp("^\\s*hsla?\\(\\s*("+s.cssNumberRegex+")\\s*(deg|grad|rad|turn)?\\s*,?\\s*("+s.cssNumberRegex+")\\s*%\\s*,?\\s*("+s.cssNumberRegex+")\\s*%\\s*([/,]?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*)?\\)\\s*$"),process:function(t,e){var n=function(t,e,n){return 6*(n-=Math.floor(n))<1?t+(e-t)*n*6:6*n<3?e:6*n<4?t+(e-t)*(2/3-n)*6:t},i=+e[1]/(s.cssAngleUnitsBase[e[2]]||360),r=Math.min(1,Math.max(0,+e[3]/100)),o=Math.min(1,Math.max(0,+e[4]/100)),a=o<=.5?o*(r+1):o+r-o*r,l=2*o-a;return t={r:n(l,a,i+1/3),g:n(l,a,i),b:n(l,a,i-1/3)},e[5]&&(t.a=Math.min(1,Math.max(0,+e[6]/(e[7]?100:1)))),t}}],t.exports=s},5647:function(t,e,n){function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var o=n(6820),a=n(6211),s=n(1949),l={"+":"union","|":"union",add:"union","-":"difference",sub:"difference",subtract:"difference",minus:"difference","*":"intersect","&":"intersect",mul:"intersect",multiply:"intersect",x:"xor","^":"xor"};function u(t,e,n){for(t="select"+t.charAt(0).toUpperCase()+t.slice(1),o.epsilon(e);n.length>1;){for(var i=[],r=Math.ceil(n.length/2),a=0;a<r;a+=1){var s=n[a];if(a+r<n.length){var l=n[a+r];try{s=o.combine(s,l)}catch(t){s=o.segments(o.polygon(s)),l=o.segments(o.polygon(l));for(var u=20;u>=6;u-=1){o.epsilon(Math.pow(.1,u));try{s=o.combine(s,l);break}catch(t){}}o.epsilon(e)}s.combined?(s.combined=s.combined.filter(function(t){return Math.abs(t.start[0]-t.end[0])>e||Math.abs(t.start[1]-t.end[1])>e}),s=o[t](s)):console.warn("Failed in polygon functions."),s.segments=s.segments.filter(function(t){return Math.abs(t.start[0]-t.end[0])>e||Math.abs(t.start[1]-t.end[1])>e})}i.push(s)}n=i}return n}function c(t,e,n){if(e=e||{},t.toPolygonList){if(e.style=t,!(t=t.toPolygonList(n)).length)return e.min=e.max=[0,0],e.epsilon=1e-10,t}else{if(e.style="",t.outer?(e.style="-outer",t=[[t.outer].concat(i(t.inner||[]))]):t.length&&t[0].outer&&(e.style="-outer-list",t=t.map(function(t){return[t.outer].concat(i(t.inner||[]))})),!t.length)return e.style="flat-listlist"+e.style,e.min=e.max=[0,0],e.epsilon=1e-10,t;void 0!==t[0].x?(e.style="object",t=[[t.map(function(t){return[t.x,t.y]})]]):void 0!==t[0][0].x?(e.style="object-list"+e.style,t=[t.map(function(t){return t.map(function(t){return[t.x,t.y]})})]):void 0===t[0][0][0]?(e.style="flat",t=[[t]]):void 0!==t[0][0][0].x?(e.style="object-listlist"+e.style,t=t.map(function(t){return t.map(function(t){return t.map(function(t){return[t.x,t.y]})})})):void 0===t[0][0][0][0]?(e.style="flat-list",t=[t]):e.style="flat-listlist"+e.style}return e.min=[t[0][0][0][0],t[0][0][0][1]],e.max=[t[0][0][0][0],t[0][0][0][1]],t.forEach(function(t){return t.forEach(function(t){return t.forEach(function(t){t[0]<e.min[0]&&(e.min[0]=t[0]),t[0]>e.max[0]&&(e.max[0]=t[0]),t[1]<e.min[1]&&(e.min[1]=t[1]),t[1]>e.max[1]&&(e.max[1]=t[1])})})}),e.epsilon=1e-10*Math.max(Math.max(e.max[0],e.max[1]),Math.max(Math.abs(e.min[0]),Math.abs(e.min[1]))),t}function d(t,e,n){return e.style.fromPolygonList?e.style.fromPolygonList(t,n):(e.style.includes("object")&&(t=t.map(function(t){return t.map(function(t){return t.map(function(t){return{x:t[0],y:t[1]}})})})),e.style.includes("outer")&&(t=[t.map(function(t){return{outer:t[0],inner:t.slice(1)}})]),e.style.endsWith("listlist")||(t=e.style.endsWith("list")?t[0]:t[0][0]),t)}function h(t,e,i,r){var h=n(5325);t=l[t]||t,e.poly1&&(e=(r=e).poly1,i=r.poly2);var f=(r=r||{}).ingcs||(r.map?r.map.ingcs():e.gcs?e.gcs():e.layer&&e.layer().gcs?e.layer().gcs():e.layer?e.layer().map().ingcs():e.map instanceof a?e.map().ingcs():void 0),p=r.ingcs||(r.map?r.map.ingcs():i.gcs?i.gcs():i.layer&&i.layer().gcs?i.layer().gcs():i.layer?i.layer().map().ingcs():i.map instanceof a?i.map().ingcs():f),m=r.gcs||(r.map?r.map.gcs():e.layer?e.layer().map().gcs():e.map instanceof a?e.map().gcs():void 0),g={},y={};e=c(e,g,r),i=c(i,y,r),g.epsilon=r.epsilon1||g.epsilon,y.epsilon=r.epsilon2||g.epsilon,f&&m&&f!==m&&(e=e.map(function(t){return t.map(function(t){return h.transformCoordinates(f,m,t)})})),p&&m&&p!==m&&(i=i.map(function(t){return t.map(function(t){return h.transformCoordinates(p,m,t)})}));var v=e.map(function(t){return o.segments({regions:t})}),x=i.map(function(t){return o.segments({regions:t})});v=u(r.innerOperation||"union",g.epsilon,v),x=u(r.innerOperation||"union",y.epsilon,x);var _=v;v[0]&&x[0]?(v[0].inverted=!1,x[0].inverted=!1,_=u(t,Math.max(g.epsilon,y.epsilon),[v[0],x[0]])):x[0]&&(_=x);var b,w,M=function(t){var e=[],n=[],i=[],r=[];t.forEach(function(t){return o.polygon(t).regions.forEach(function(t){var e=t.map(function(t){return{x:t[0],y:t[1]}});e.length<3||(r.push([]),n.forEach(function(t,i){s.pointInPolygon(e[0],t)?r[n.length].push(i):s.pointInPolygon(t[0],e)&&r[i].push(n.length)}),i.push(t),n.push(e))})});for(var a=Array(i.length),l=0;l<i.length;){for(var u=0;u<i.length;u+=1)void 0!==a[u]||r[u].length||(a[u]=e.length,e.push([i[u].reverse()]),l+=1);for(var c=0;c<i.length;c+=1)void 0===a[c]&&1===r[c].length&&void 0!==a[r[c][0]]&&(e[a[r[c][0]]].push(i[c]),a[c]=a[r[c][0]],l+=1);for(var d=0;d<i.length;d+=1)r[d]=r[d].filter(function(t){return void 0===a[t]})}return e.length?e:[[]]}(_);return r.correspond&&function(t,e,n,i){var r={},o=[];n.forEach(function(t,e){return t.forEach(function(t){return t.forEach(function(t){var n="_"+t[0]+"_"+t[1];r[n]?-1===r[n].indexOf(e)&&r[n].push(e):r[n]=[e],o.length<=e&&o.push(0),o[e]+=1})})}),["poly1","poly2"].forEach(function(a){var s="poly1"===a?t:e,l="poly1"===a?"exact1":"exact2";i[a]=Array(s.length),i[l]=Array(s.length),s.forEach(function(t,e){var s={},u=0;t.forEach(function(t){return t.forEach(function(t){var e="_"+t[0]+"_"+t[1];r[e]?r[e].forEach(function(t){s[t]=(s[t]||0)+1}):u+=1})}),Object.keys(s).forEach(function(r){s[r]!==o[+r]||u||t.length!==n[+r].length||(i[l][e]||(i[l][e]=[]),i[l][e].push(+r)),s[r]>=2&&(i[a][e]||(i[a][e]=[]),i[a][e].push(+r))})})})}(e,i,M,r.correspond),f&&m&&f!==m&&(M=M.map(function(t){return t.map(function(t){return h.transformCoordinates(m,f,t)})})),d(M,{style:r.style||(b=M,w=g.style,w.fromPolygonList?w:b.length>1?w.includes("outer")?w+(w.endsWith("list")?"":"-list"):w.endsWith("listlist")?w:w+(w.endsWith("list")?"list":"-listlist"):1===b.length&&b[0].length>1?w.includes("outer")||w.endsWith("list")?w:w+"-list":w)},r)}function f(t){return function(e,n,i){return h(t,e,n,i)}}t.exports={union:f("union"),intersect:f("intersect"),difference:f("difference"),xor:f("xor"),toPolygonList:c,fromPolygonList:d}},5685:function(t){t.exports="/* lineFeature fragment shader */\n\n#ifdef GL_ES\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n #endif\n#endif\nvarying vec4 strokeColorVar;\nvarying vec4 subpos;\nvarying vec4 info;\nvarying vec4 angles;\nuniform float antialiasing;\nuniform float miterLimit;\nuniform float fixedFlags;\n\nvoid main () {\n vec4 color = strokeColorVar;\n float opacity = 1.0;\n int nearMode = int(floor(info.x + 0.5));\n int farMode = int(floor(info.y + 0.5));\n float cosABC = angles.x;\n float sinABC = angles.y;\n float cosBCD = angles.z;\n float sinBCD = angles.w;\n // never render on the opposite side of a miter. This uses a bit of\n // slop, via pow(smoothstep()) instead of step(), since there are\n // precision issues in this calculation. This doesn't wholly solve\n // the precision issue; sometimes pixels are missed or double\n // rendered along the inside seam of a miter.\n if (nearMode >= 4) {\n float dist = cosABC * subpos.x - sinABC * subpos.y;\n opacity = min(opacity, pow(smoothstep(-0.02, 0.02, dist), 0.5));\n if (opacity == 0.0) {\n discard;\n }\n }\n if (farMode >= 4) {\n float dist = cosBCD * subpos.z - sinBCD * subpos.y;\n opacity = min(opacity, pow(smoothstep(-0.02, 0.02, dist), 0.5));\n if (opacity == 0.0) {\n discard;\n }\n }\n // butt or square cap\n if ((nearMode == 0 || nearMode == 1) && subpos.x < antialiasing) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.x + subpos.w * float(nearMode)));\n }\n if ((farMode == 0 || farMode == 1) && subpos.z < antialiasing) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.z + subpos.w * float(farMode)));\n }\n // round cap\n if (nearMode == 2 && subpos.x <= 0.0) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.w - sqrt(pow(subpos.x, 2.0) + pow(subpos.y - info.z * subpos.w, 2.0))));\n }\n if (farMode == 2 && subpos.z <= 0.0) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.w - sqrt(pow(subpos.z, 2.0) + pow(subpos.y - info.z * subpos.w, 2.0))));\n }\n // bevel and clip joins\n if ((nearMode == 5 || nearMode == 7) && subpos.x < antialiasing) {\n float dist = (sinABC * subpos.x + cosABC * subpos.y) * sign(sinABC);\n float w = subpos.w * (1.0 - info.z * sign(sinABC));\n float maxDist;\n if (nearMode == 5) maxDist = cosABC * w;\n else maxDist = miterLimit * w;\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, maxDist + dist));\n }\n if ((farMode == 5 || farMode == 7) && subpos.z < antialiasing) {\n float dist = (sinBCD * subpos.z + cosBCD * subpos.y) * sign(sinBCD);\n float w = subpos.w * (1.0 - info.z * sign(sinBCD));\n float maxDist;\n if (farMode == 5) maxDist = cosBCD * w;\n else maxDist = miterLimit * w;\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, maxDist + dist));\n }\n // round join\n if (nearMode == 6 && subpos.x <= 0.0) {\n float w = subpos.w * (1.0 - info.z * sign(sinABC));\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, w - sqrt(pow(subpos.x, 2.0) + pow(subpos.y, 2.0))));\n }\n if (farMode == 6 && subpos.z <= 0.0) {\n float w = subpos.w * (1.0 - info.z * sign(sinBCD));\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, w - sqrt(pow(subpos.z, 2.0) + pow(subpos.y, 2.0))));\n }\n // antialias along main edges\n if (antialiasing > 0.0) {\n if (subpos.y > subpos.w * (1.0 + info.z) - antialiasing) {\n opacity = min(opacity, smoothstep(antialiasing, -antialiasing, subpos.y - subpos.w * (1.0 + info.z)));\n }\n if (subpos.y < subpos.w * (-1.0 + info.z) + antialiasing) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.y - subpos.w * (-1.0 + info.z)));\n }\n }\n if (opacity == 0.0) {\n discard;\n }\n color.a *= opacity;\n gl_FragColor = color;\n}\n"},5696:function(t){t.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},5723:function(t){t.exports=function(t){var e=new Float32Array(9);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}},5734:function(t,e,n){var i=n(2493).d3,r=n(8524),o=n(4626),a=n(1098).registerWidget,s=n(642),l=n(7376);n(1159);var u=function(t){"use strict";if(!(this instanceof u))return new u(t);r.call(this,t);var e=this,n=[],o=t.width||300,a=t.ticks||6,d=this._init;return this._init=function(){d();var n=e.canvas();i.select(n).attr("class","color-legend-container"),e.popup=i.select(n).append("div").attr("class","color-legend-popup"),t.categories&&e.categories(t.categories)},this._draw=function(){if(i.select(e.canvas()).selectAll("div.geojs-color-legends").remove(),n.length){i.select(e.canvas()).style("display","block");var t=i.select(e.canvas()).append("div").attr("class","geojs-color-legends"),r=o;n.forEach(function(n,i){var o=t.append("div").attr("class","geojs-color-legend");o.append("div").attr("class","geojs-title").text(n.name);var a=o.append("svg").attr("class","svg").attr("width",r).attr("height","40px").attr("viewBox","-20 0 "+r+" 40");"discrete"===n.type?e._drawDiscrete(a,r-40,n):"continuous"===n.type&&e._drawContinous(a,r-40,n)})}else i.select(e.canvas()).style("display","none")},this.categories=function(t){return void 0===t?n:(n=e._prepareCategories(t),e._draw(),e)},this.addCategories=function(t){return n=n.concat(e._prepareCategories(t)),e._draw(),e},this.removeCategories=function(t){return n=n.filter(function(e){return-1===t.indexOf(e)}),e._draw(),e},this._prepareCategories=function(t){return t.forEach(function(t){t.color=t.colors.map(function(t){return s.convertColorToHex(t,!0)})}),t},this._drawDiscrete=function(t,n,r){function o(t){var e=Math.ceil(t.domain().length/a),n=t.domain().filter(function(t,n){return n%e===0});return i.axisBottom(t).tickFormat(i.format(".2s")).tickValues(n)}if(-1===["linear","log","sqrt","pow","quantile","ordinal"].indexOf(r.scale))throw new Error("unsupported scale");var l,u,d,h,f,p,m;if("ordinal"===r.scale){d=i.scaleOrdinal().domain(r.domain).range(r.colors),e._renderDiscreteColors(t,r.domain,d,n,function(t){return t}),h=i.scaleBand().domain(r.domain).rangeRound([0,n]);var g=Math.ceil(r.domain.length/a),y=r.domain.filter(function(t,e){return e%g===0});f=i.axisBottom(h).tickValues(y)}else if("quantile"===r.scale){l=[0,r.colors.length],p=s.range(0,r.colors.length-1),u=i.scaleQuantile().domain(r.domain).range(p),d=i.scaleQuantize().domain(l).range(r.colors),e._renderDiscreteColors(t,p,d,n,function(t){return u.invertExtent(t).join(" - ")});var v=[u.invertExtent(0)[0]];v=v.concat(p.map(function(t){return u.invertExtent(t)[1]})),f=o(h=i.scalePoint().domain(v).range([0,n]))}else if(-1!==["linear","log","sqrt","pow"].indexOf(r.scale)){l=[0,r.colors.length],u=i["scale"+r.scale.charAt(0).toUpperCase()+r.scale.slice(1)]().domain(r.domain).range(l).nice(),d=i.scaleQuantize().domain(l).range(r.colors),p=s.range(0,r.colors.length-1);var x=Math.max.apply(null,r.domain.map(function(t){return c(t)}));e._renderDiscreteColors(t,p,d,n,function(t){return e._popupFormatter(u.invert(t),x)+" - "+e._popupFormatter(u.invert(t+1),x)}),(m=p.slice()).push(r.colors.length),f=o(h=i.scalePoint().domain(m.map(function(t){return u.invert(t)})).range([0,n]))}r.endAxisLabelOnly&&f.tickValues([h.domain()[0],h.domain()[h.domain().length-1]]),e._renderAxis(t,f)},this._renderDiscreteColors=function(t,n,i,r,o){t.selectAll("rect").data(n).enter().append("rect").attr("width",r/n.length).attr("height","20px").attr("fill",function(t){return i(t)}).attr("transform",function(t,e){return"translate("+e*r/n.length+" ,0)"}).on("mousemove",function(t,n){e._showPopup(t,o(n))}).on("mouseout",e._hidePopup)},this._drawContinous=function(t,n,r){var o,s,u;if(-1===["linear","log","sqrt","pow"].indexOf(r.scale))throw new Error("unsupported scale");var d=[0];for(u=1;u<r.domain.length-1;u++)d.push(n/(r.domain.length-1)*u);d.push(n),o=i["scale"+r.scale.charAt(0).toUpperCase()+r.scale.slice(1)]().domain(r.domain).range(d).nice(),"log"===r.scale&&r.base&&o.base(r.base),"pow"===r.scale&&r.exponent&&o.exponent(r.exponent);var h=l(),f=Math.max.apply(null,r.domain.map(function(t){return c(t)})),p=t.append("defs").append("linearGradient").attr("id","gradient"+h);for(p.append("stop").attr("offset","0%").attr("stop-color",r.colors[0]),u=1;u<r.colors.length-1;u++)p.append("stop").attr("offset",(100/(r.colors.length-1)*u).toFixed(6)+"%").attr("stop-color",r.colors[u]);p.append("stop").attr("offset","100%").attr("stop-color",r.colors[r.colors.length-1]),t.append("rect").attr("fill","url(#gradient"+h+")").attr("width",n).attr("height","20px").on("mousemove",function(t){var n=o.invert(i.pointer(t)[0]),r=e._popupFormatter(n,f);e._showPopup(t,r)}).on("mouseout",e._hidePopup),s=i.axisBottom(o).ticks(a,".2s"),r.endAxisLabelOnly&&s.tickValues([r.domain[0],r.domain[r.domain.length-1]]),e._renderAxis(t,s)},this._renderAxis=function(t,e){t.append("g").attr("class","axis x").attr("transform","translate(0, 20)").call(e)},this._popupFormatter=function(t,e){return t=parseFloat(t.toFixed(8)),e=Math.min(e,c(t)),e=Math.min(e,Math.max(3,7-Math.trunc(t).toString().length)),i.format("."+e+"f")(t)},this.width=function(t){return void 0===t?o:(t!==o&&(o=t,e._prepareCategories(n),e._draw()),e)},this.ticks=function(t){return void 0===t?a:(t!==a&&(a=t,e._prepareCategories(n),e._draw()),e)},this._showPopup=function(t,n){var r=i.pointer(t,e.canvas());e.popup.text(n);var o=e.canvas().clientWidth,a=e.popup.node().clientWidth;e.popup.style("left",r[0]-(r[0]+a-o>-10?a:0)+"px").style("top",r[1]-22+"px").transition().duration(200).style("opacity",1)},this._hidePopup=function(){e.popup.transition().duration(200).style("opacity",0)},this};function c(t){if(!isFinite(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;){if(!isFinite(t*e))return 0;e*=10,n++}return n}o(u,r),a("dom","colorLegend",u),t.exports=u},5747:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6858),a={arrow:{attrs:{class:"geo-vector-arrow geo-vector-marker",viewBox:"0 0 10 10",refX:1,refY:5,markerHeight:5,markerWidth:5,orient:"auto"},path:"M 0 0 L 10 5 L 0 10 z"},point:{attrs:{class:"geo-vector-point geo-vector-marker",viewBox:"0 0 12 12",refX:6,refY:6,markerHeight:8,markerWidth:8,orient:"auto"},path:"M 6 3 A 3 3 0 1 1 5.99999 3 Z"},bar:{attrs:{class:"geo-vector-bar geo-vector-marker",viewBox:"0 0 10 10",refX:0,refY:5,markerHeight:6,markerWidth:6,orient:"auto"},path:"M 0 0 L 2 0 L 2 10 L 0 10 z"},wedge:{attrs:{class:"geo-vector-wedge geo-vector-marker",viewBox:"0 0 10 10",refX:10,refY:5,markerHeight:5,markerWidth:5,orient:"auto"},path:"M 0 0 L 1 0 L 10 5 L 1 10 L 0 10 L 9 5 L 0 0"}},s=function(t){"use strict";if(!(this instanceof s))return new s(t);var e=n(5005),i=n(77),r=n(2493).d3;t=t||{},o.call(this,t),e.call(this);var l=this,u=this._exit,c=this._update,d=i(),h={};function f(t,e,n){return l._svgid()+"_marker_"+e+"_"+n}function p(t,e,n,i,o){var s=l.renderer()._definitions().selectAll("g.marker-group#"+l._svgid()).data(t.length?[1]:[]);s.enter().append("g").attr("id",l._svgid).attr("class","marker-group"),s.exit().remove();var u=t.reduce(function(t,e,n){var r=a[o(e,n)],s=a[i(e,n)];return r&&t.push({data:e,dataIndex:n,head:!0}),s&&t.push({data:e,dataIndex:n,head:!1}),t},[]),c=(s=l.renderer()._definitions().selectAll("g.marker-group#"+l._svgid())).selectAll("marker.geo-vector-marker").data(u),d=l.renderer();c.enter().append("marker").each(function(t){var e=r.select(this),n=t.head?a[o(t.data,t.dataIndex)]:a[i(t.data,t.dataIndex)];Object.keys(n.attrs).forEach(function(t){e.attr(t,n.attrs[t])})}).attr("id",function(t){return f(t.data,t.dataIndex,t.head?"head":"tail")}).style("stroke",function(t){return d._convertColor(e)(t.data,t.dataIndex)}).style("fill",function(t){return d._convertColor(e)(t.data,t.dataIndex)}).style("opacity",function(t){return n(t.data,t.dataIndex)}).append("path").attr("d",function(t){return t.head?a[o(t.data,t.dataIndex)].path:a[i(t.data,t.dataIndex)].path}),c.exit().remove()}return this._build=function(){var t,e=l.data(),n=l.style.get(),i=l.renderer(),r=l.origin(),o=l.delta(),a=l.style("scale"),s=0;function u(){return a/i.scaleFactor()}return c.call(l),e||(e=[]),t=e.map(function(t,e){var n=l.featureGcsToDisplay(r(t,e)),i=o(t,e);return s=Math.max(s,i.x*i.x+i.y*i.y),{x1:n.x,y1:n.y,dx:i.x,dy:-i.y}}),s=Math.sqrt(s),a||(a=75/(s||1)),h.id=l._svgid(),h.data=e,h.append="line",h.attributes={x1:function(e,n){return t[n].x1},y1:function(e,n){return t[n].y1},x2:function(e,n){return t[n].x1+u()*t[n].dx},y2:function(e,n){return t[n].y1+u()*t[n].dy},"marker-start":function(t,e){return"url(#"+f(0,e,"tail")+")"},"marker-end":function(t,e){return"url(#"+f(0,e,"head")+")"}},h.style={stroke:function(){return!0},strokeColor:n.strokeColor,strokeWidth:n.strokeWidth,strokeOpacity:n.strokeOpacity,originStyle:n.originStyle,endStyle:n.endStyle},h.classes=["svgVectorFeature"],h.visible=l.visible,p(e,n.strokeColor,n.strokeOpacity,n.originStyle,n.endStyle),l.renderer()._drawFeatures(h),d.modified(),l.updateTime().modified(),l},this._update=function(){return c.call(l),l.timestamp()>=d.timestamp()?l._build():p(h.data,h.style.strokeColor,h.style.strokeOpacity,h.style.originStyle,h.style.endStyle),l},this._exit=function(){u.call(l),h={},p([],null,null,null,null)},this._init(t),this};s.markerConfigs=a,i(s,o),r("svg","vector",s),t.exports=s},5763:function(t,e,n){var i=n(698),r=n(4626);i.renderWindow=function(t){"use strict";if(!(this instanceof i.renderWindow))return new i.renderWindow(t);i.graphicsObject.call(this);var e=this,n=0,r=0,o=400,a=400,s=t,l=null,u=[],c=null;return this.windowSize=function(){return[o,a]},this.windowPosition=function(){return[n,r]},this.renderers=function(){return u},this.activeRenderer=function(){return l},this.addRenderer=function(t){return!1===e.hasRenderer(t)&&(u.push(t),t.setRenderWindow(e),null===l&&(l=t),0!==t.layer()&&t.camera().setClearMask(i.GL.DepthBufferBit),e.modified(),!0)},this.hasRenderer=function(t){var e;for(e=0;e<u.length;e+=1)if(t===u[e])return!0;return!1},this.positionAndResize=function(t,i,s,l){var c;for(n=t,r=i,o=s,a=l,c=0;c<u.length;c+=1)u[c].positionAndResize(n,r,o,a);e.modified()},this._setup=function(t){c=null;try{var e;for(c=s.getContext("webgl")||s.getContext("experimental-webgl"),e=0;e<u.length;e+=1)(u[e].width()>o||0===u[e].width()||u[e].height()>a||0===u[e].height())&&u[e].resize(n,r,o,a);return!0}catch(t){}return c||console.warn("[ERROR] Unable to initialize WebGL. Your browser may not support it."),!1},this.context=function(){return c},this._cleanup=function(t){var n;for(n=0;n<u.length;n+=1)u[n]._cleanup(t);i.clearCachedShaders(t?t.m_context:null),e.modified()},this.render=function(){var t;for(u.sort(function(t,e){return t.layer()-e.layer()}),t=0;t<u.length;t+=1)u[t].render()},e},r(i.renderWindow,i.graphicsObject)},5794:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.shader=function(t){"use strict";if(!(this instanceof i.shader))return new i.shader(t);i.object.call(this);var e=[],n=t,r="";this._getContextEntry=function(t){var n,i,r=t.m_context;for(n=0;n<e.length;n+=1)if(e[n].context===r)return e[n];return i={context:r,compileTimestamp:o()},e.push(i),i},this.removeContext=function(t){var n,i=t.m_context;for(n=0;n<e.length;n+=1)if(e[n].context===i)return void e.splice(n,1)},this.shaderHandle=function(t){return this._getContextEntry(t).shaderHandle},this.setShaderSource=function(t){r=t,this.modified()},this.compile=function(t){var e=this._getContextEntry(t);return this.getMTime()<e.compileTimestamp.getMTime()?e.shaderHandle:(t.m_context.deleteShader(e.shaderHandle),e.shaderHandle=t.m_context.createShader(n),t.m_context.shaderSource(e.shaderHandle,r),t.m_context.compileShader(e.shaderHandle),t.m_context.getShaderParameter(e.shaderHandle,i.GL.COMPILE_STATUS)?(e.compileTimestamp.modified(),e.shaderHandle):(console.log("[ERROR] An error occurred compiling the shaders: "+t.m_context.getShaderInfoLog(e.shaderHandle)),console.log(r),t.m_context.deleteShader(e.shaderHandle),null))},this.attachShader=function(t,e){t.m_context.attachShader(e,this.shaderHandle(t))}},r(i.shader,i.object),function(){"use strict";var t=[];i.getCachedShader=function(e,n,r){for(var o=0;o<t.length;o+=1)if(t[o].type===e&&t[o].context===n&&t[o].source===r)return o&&t.splice(0,0,t.splice(o,1)[0]),t[0].shader;var a=new i.shader(e);return a.setShaderSource(r),t.unshift({type:e,context:n,source:r,shader:a}),t.length>=10&&t.splice(10,t.length-10),a},i.clearCachedShaders=function(e){for(var n=t.length-1;n>=0;n-=1)null!=e&&t[n].context!==e||t.splice(n,1)}}()},5795:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=0,s=1,l=3,u={butt:0,square:1,round:2},c={passthrough:3,miter:4,bevel:5,round:6,"miter-clip":7},d={normal:0,debug:1},h=function(t){"use strict";if(!(this instanceof h))return new h(t);t=t||{},o.call(this,t);var e=n(1611),i=n(5325),r=n(642),f=n(4084),p=n(5685),m=n(1388),g=n(9336);f.call(this);var y,v,x,_,b,w,M,A,E,T,S,C=this,k=this._exit,P=void 0!==t.dynamicDraw&&t.dynamicDraw,O=this._init,L=this._update;return this.featureVertices=function(){return[[0,"corner",-1,a],[0,"near",1,s],[1,"far",-1,l],[1,"corner",1,a],[1,"near",-1,s],[0,"far",1,l]]},this.verticesPerFeature=function(){return C.featureVertices().length},this._init=function(t){var n,i=e.shaderProgram(),r=((n=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(g),n),o=function(t){var n=new e.shader(e.GL.FRAGMENT_SHADER);return n.setShaderSource(t?m:p),n}(void 0!==((t||{}).style||{}).debug),a=e.vertexAttribute("pos"),s=e.vertexAttribute("prev"),l=e.vertexAttribute("next"),u=e.vertexAttribute("far"),c=e.vertexAttribute("flags"),d=e.vertexAttribute("strokeWidth"),h=e.vertexAttribute("strokeColor"),f=e.vertexAttribute("strokeOpacity"),E=new e.projectionUniform("projectionMatrix"),T=e.geometryData(),k=e.sourceDataP3fv({name:"pos"}),L=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Four,{name:"prev"}),R=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Five,{name:"next"}),I=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Six,{name:"far"}),F=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Seven,{name:"flags"}),D=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.One,{name:"strokeWidth"}),G=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Two,{name:"strokeColor"}),j=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"strokeOpacity"}),N=e.triangles();return S=new e.modelViewOriginUniform("modelViewMatrix"),_=new e.floatUniform("pixelWidth",1/C.renderer().width()),b=new e.floatUniform("aspect",C.renderer().width()/C.renderer().height()),w=new e.floatUniform("miterLimit",10),M=new e.floatUniform("antialiasing",0),A=new e.floatUniform("fixedFlags",0),O.call(C,t),x=e.material(),v=e.mapper({dynamicDraw:P}),i.addVertexAttribute(a,e.vertexAttributeKeys.Position),i.addVertexAttribute(d,e.vertexAttributeKeysIndexed.One),i.addVertexAttribute(h,e.vertexAttributeKeysIndexed.Two),i.addVertexAttribute(f,e.vertexAttributeKeysIndexed.Three),i.addVertexAttribute(s,e.vertexAttributeKeysIndexed.Four),i.addVertexAttribute(l,e.vertexAttributeKeysIndexed.Five),i.addVertexAttribute(u,e.vertexAttributeKeysIndexed.Six),i.addVertexAttribute(c,e.vertexAttributeKeysIndexed.Seven),i.addUniform(S),i.addUniform(E),i.addUniform(_),i.addUniform(b),i.addUniform(w),i.addUniform(M),i.addUniform(A),i.addShader(o),i.addShader(r),x.addAttribute(i),x.addAttribute(e.blend()),(y=e.actor()).setMaterial(x),y.setMapper(v),T.addSource(k),T.addSource(L),T.addSource(R),T.addSource(I),T.addSource(D),T.addSource(G),T.addSource(j),T.addSource(F),N.setIndices(new Uint16Array(1)),T.addPrimitive(N),T.computeBounds=function(){T.setBounds(0,0,0,0,0,0)},v.setGeometryData(T),C},this.actors=function(){return y?[y]:[]},this._build=function(){return function(t){var e,n,o,a,s,l,h,f,p,m,g,y,x,_,b,k,P,O,L,R,I,F,D,G,j,N,B,z,V,U,q,H,W,X,K,Q,Z,Y=C.data(),J=0,$=[{strokeOffset:0,posStrokeOffset:0,negStrokeOffset:0},{strokeOffset:0,posStrokeOffset:0,negStrokeOffset:0}],tt=$[1],et=C.gcs(),nt=C.layer().map().gcs(),it=C.line(),rt=C.style.get("strokeWidth"),ot=C.style.get("strokeColor"),at=C.style.get("strokeOpacity"),st=C.style.get("lineCap"),lt=C.style.get("lineJoin"),ut=C.style.get("strokeOffset"),ct=C.style.get("miterLimit")(Y),dt=C.style.get("antialiasing")(Y)||0,ht=C.style.get("uniformLine"),ft=C.featureVertices(),pt=ft.length,mt=d[C.style.get("debug")(Y)?"debug":"normal"]||0,gt=v.geometryData(),yt=C.style.get("closed"),vt=!0;if(Q=r.isFunction(C.style("closed"))?void 0:yt()||!1,R=r.isFunction(C.style("lineCap"))?void 0:u[st()||"butt"],I=r.isFunction(C.style("lineJoin"))?void 0:c[lt()||"miter"],O=r.isFunction(C.style("strokeColor"))?void 0:ot(),F=r.isFunction(C.style("strokeOffset"))?void 0:ut()||0,L=r.isFunction(C.style("strokeOpacity"))?void 0:at(),P=r.isFunction(C.style("strokeWidth"))?void 0:rt(),D=r.isFunction(C.style("uniformLine"))?void 0:ht(),void 0!==ct&&w.set(Math.max(1,Math.min(100,ct))),A.set(mt),M.set(dt),t)J=E.numSegments,Z=E.closed,m=E.lineItemList,p=J*pt,vt=R!==E.lineCapVal||void 0===R||I!==E.lineJoinVal||void 0===I||F!==E.strokeOffsetVal||void 0===F;else{var xt=[],_t=C.position();for(_t=_t===r.identityFunction?null:_t,m=new Array(Y.length),Z=new Array(Y.length),n=0;n<Y.length;n+=1)if(g=it(e=Y[n],n),m[n]=g,!(g.length<2)){for(J+=g.length-1,o=0;o<g.length;o+=1)x=_t?_t(g[o],o,e,n):g[o],xt.push(x.x),xt.push(x.y),xt.push(x.z||0),o||(b=x);g.length>2&&(void 0===Q?yt(e,n):Q)?x.x!==b.x||x.y!==b.y||x.z!==b.z?(J+=1,Z[n]=2):Z[n]=1:Z[n]=0}if(xt=i.transformCoordinates(et,nt,xt,3),(T=new Float32Array(C.style.get("origin")(xt)))[0]||T[1]||T[2])for(n=0;n<xt.length;n+=3)xt[n]-=T[0],xt[n+1]-=T[1],xt[n+2]-=T[2];S.setOrigin(T),p=J*pt,N=r.getGeomBuffer(gt,"pos",3*p),B=r.getGeomBuffer(gt,"prev",3*p),z=r.getGeomBuffer(gt,"next",3*p),V=r.getGeomBuffer(gt,"far",3*p),gt.primitive(0).numberOfIndices()!==p&&(gt.primitive(0).numberOfIndices=function(){return p}),E={numSegments:J,closed:Z,lineItemList:m,lineCapVal:R,lineJoinVal:I,strokeOffsetVal:F}}for(U=r.getGeomBuffer(gt,"flags",p),q=r.getGeomBuffer(gt,"strokeWidth",p),H=r.getGeomBuffer(gt,"strokeColor",3*p),W=r.getGeomBuffer(gt,"strokeOpacity",p),n=_=X=K=0;n<Y.length;n+=1)if(!((g=m[n]).length<2)){G=void 0===D?ht(g,n):D,e=Y[n],Q=Z[n],k=_,f=g.length+(2===Q?1:0);var bt=0;for(o=0;o<f;o+=1,_+=3)if(h=o,o===g.length&&(h=0,_-=3),y=g[h],o&&(tt=$[0],$[0]=$[1],$[1]=tt),t||(tt.pos=o===h?_:k,tt.prev=h?_-3:Q?k+3*(g.length-3+Q):_,tt.next=o+1<g.length?_+3:Q?o!==h?k+3:k+6-3*Q:_),G&&o>0?1===o&&(tt.strokeWidth=$[0].strokeWidth,tt.strokeColor=$[0].strokeColor,tt.strokeOpacity=$[0].strokeOpacity):(tt.strokeWidth=void 0===P?rt(y,h,e,n):P,tt.strokeColor=void 0===O?ot(y,h,e,n):O,tt.strokeOpacity=void 0===L?at(y,h,e,n):L),vt&&(0!==F&&(G&&o>0?1===o&&(tt.strokeOffset=$[0].strokeOffset):tt.strokeOffset=(void 0===F?ut(y,h,e,n):F)||0,tt.strokeOffset?(tt.posStrokeOffset=2047&Math.round(2048+1023*Math.min(1,Math.max(-1,tt.strokeOffset))),tt.negStrokeOffset=2047&Math.round(2048-1023*Math.min(1,Math.max(-1,tt.strokeOffset)))):tt.posStrokeOffset=tt.negStrokeOffset=0),Q||o&&o!==g.length-1?tt.flags=void 0===I?c[lt(y,h,e,n)]||c.miter:I:tt.flags=void 0===R?u[st(y,h,e,n)]||u.butt:R),o){if("drop"===G&&o>1&&xt[$[0].pos]===xt[$[1].pos]&&xt[$[0].pos+1]===xt[$[1].pos+1]){bt+=1;continue}for(a=0;a<pt;a+=1,X+=1,K+=3)"drop"===G&&$[0].strokeOpacity<=0&&$[1].strokeOpacity<=0?W[X]=-1:(s=$[j=ft[a][0]],l=$[1-j],t||(N[K]=xt[s.pos],N[K+1]=xt[s.pos+1],N[K+2]=0,B[K]=xt[j?s.next:s.prev],B[K+1]=xt[(j?s.next:s.prev)+1],B[K+2]=0,z[K]=xt[j?s.prev:s.next],z[K+1]=xt[(j?s.prev:s.next)+1],z[K+2]=0,V[K]=xt[j?l.prev:l.next],V[K+1]=xt[(j?l.prev:l.next)+1],V[K+2]=0),vt&&(U[X]=ft[a][3]+4*s.flags+32*l.flags+256*(j?s.posStrokeOffset:s.negStrokeOffset)),q[X]=s.strokeWidth,H[K]=s.strokeColor.r,H[K+1]=s.strokeColor.g,H[K+2]=s.strokeColor.b,s.strokeOpacity<=0&&l.strokeOpacity<=0||s.strokeWidth<=0&&l.strokeWidth<=0?W[X]=-1:W[X]=s.strokeOpacity)}if(bt)for(a=0;a<bt*pt;a+=1,X+=1,K+=3)W[X]=-1}t?(vt&&v.updateSourceBuffer("flags"),v.updateSourceBuffer("strokeWidth"),v.updateSourceBuffer("strokeOpacity"),v.updateSourceBuffer("strokeColor")):(v.modified(),gt.boundsDirty(!0),v.boundsDirtyTimestamp().modified())}(!!(C.dataTime().timestamp()<C.buildTime().timestamp()&&E)),C.renderer().contextRenderer().hasActor(y)||C.renderer().contextRenderer().addActor(y),C.buildTime().modified(),C},this._update=function(){return L.call(C),(C.dataTime().timestamp()>=C.buildTime().timestamp()||C.updateTime().timestamp()<=C.timestamp())&&C._build(),_.set(1/C.renderer().width()),b.set(C.renderer().width()/C.renderer().height()),y.setVisible(C.visible()),y.material().setBinNumber(C.bin()),C.updateTime().modified(),C},this._exit=function(){C.renderer().contextRenderer().removeActor(y),y=null,k()},this._init(t),this};i(h,o);var f={};f[o.capabilities.basic]=!0,f[o.capabilities.multicolor]=!0,r("webgl","line",h,f),t.exports=h},5796:function(t,e,n){var i=n(698),r=n(4626),o=n(3503);i.renderState=function(){"use strict";this.m_context=null,this.m_modelViewMatrix=o.create(),this.m_normalMatrix=o.create(),this.m_projectionMatrix=null,this.m_material=null,this.m_mapper=null},i.renderer=function(t){"use strict";if(!(this instanceof i.renderer))return new i.renderer(t);i.graphicsObject.call(this),t=t||{};var e=this;return e.m_renderWindow=null,e.m_contextChanged=!1,e.m_sceneRoot=new i.groupNode,e.m_camera=new i.camera(t),e.m_nearClippingPlaneTolerance=null,e.m_x=0,e.m_y=0,e.m_width=0,e.m_height=0,e.m_resizable=!0,e.m_resetScene=!0,e.m_layer=0,e.m_renderPasses=null,e.m_resetClippingRange=!0,e.m_depthBits=null,e.m_camera.addChild(e.m_sceneRoot),this.width=function(){return e.m_width},this.height=function(){return e.m_height},this.layer=function(){return e.m_layer},this.setLayer=function(t){e.m_layer=t,e.modified()},this.renderWindow=function(){return e.m_renderWindow},this.setRenderWindow=function(t){e.m_renderWindow!==t&&(e.m_renderWindow&&e.m_renderWindow.removeRenderer(this),e.m_renderWindow=t,e.m_contextChanged=!0,e.modified())},this.camera=function(){return e.m_camera},this.render=function(){var t,n,r,a=null,s=[],l=o.create(),u=null;if((n=new i.renderState).m_renderer=e,n.m_context=e.renderWindow().context(),e.m_depthBits&&!e.m_contextChanged||(e.m_depthBits=n.m_context.getParameter(i.GL.DEPTH_BITS)),n.m_contextChanged=e.m_contextChanged,e.m_renderPasses)for(t=0;t<e.m_renderPasses.length;t+=1){if(e.m_renderPasses[t].render(n))return void e.m_renderPasses[t].remove(n);e.m_renderPasses[t].remove(n)}for(n.m_context.enable(i.GL.DEPTH_TEST),n.m_context.depthFunc(i.GL.LEQUAL),e.m_camera.clearMask()&i.GL.COLOR_BUFFER_BIT&&(u=e.m_camera.clearColor(),n.m_context.clearColor(u[0],u[1],u[2],u[3])),e.m_camera.clearMask()&i.GL.DEPTH_BUFFER_BIT&&n.m_context.clearDepth(e.m_camera.clearDepth()),n.m_context.clear(e.m_camera.clearMask()),n.m_context.viewport(e.m_x,e.m_y,e.m_width,e.m_height),(r=e.m_sceneRoot.children()).length>0&&e.m_resetScene&&(e.m_resetScene=!1),t=0;t<r.length;t+=1)(a=r[t]).computeBounds(),a.visible()&&a.material().binNumber()>=0&&s.push([a.material().binNumber(),a]);for(s.sort(function(t,e){return t[0]-e[0]}),t=0;t<s.length;t+=1){if((a=s[t][1]).referenceFrame()===i.boundingObject.ReferenceFrame.Relative){var c=e.m_camera.viewMatrix();c instanceof Array&&(n.m_modelViewMatrix=new Array(16)),o.multiply(n.m_modelViewMatrix,c,a.matrix()),n.m_projectionMatrix=e.m_camera.projectionMatrix(),n.m_modelViewAlignment=e.m_camera.viewAlignment()}else n.m_modelViewMatrix=a.matrix(),n.m_modelViewAlignment=null,n.m_projectionMatrix=o.create(),o.ortho(n.m_projectionMatrix,0,e.m_width,0,e.m_height,-1,1);o.invert(l,n.m_modelViewMatrix),o.transpose(n.m_normalMatrix,l),n.m_material=a.material(),n.m_mapper=a.mapper(),n.m_material.bind(n),n.m_mapper.render(n),n.m_material.undoBind(n)}n.m_context.finish(),e.m_contextChanged=!1,e.m_lastRenderState=n},this.resize=function(t,n){t&&n&&e.positionAndResize(e.m_x,e.m_y,t,n)},this.positionAndResize=function(t,n,i,r){var o;if(t<0||n<0||i<=0||r<=0)console.log("[error] Invalid position and resize values",t,n,i,r);else if(e.m_resizable&&(e.m_width=i,e.m_height=r,e.m_camera.setViewAspect(i/r),e.m_camera.setParallelExtents({width:i,height:r}),e.modified()),e.m_renderPasses)for(o=0;o<e.m_renderPasses.length;o+=1)e.m_renderPasses[o].resize(i,r),e.m_renderPasses[o].renderer().positionAndResize(t,n,i,r)},this.addActor=function(t){return t instanceof i.actor&&(e.m_sceneRoot.addChild(t),e.modified(),!0)},this.hasActor=function(t){return e.m_sceneRoot.hasChild(t)},this.removeActor=function(t){return-1!==e.m_sceneRoot.children().indexOf(t)&&(e.m_lastRenderState&&(t.mapper()&&t.mapper()._cleanup(e.m_lastRenderState),t.material()&&t.material()._cleanup(e.m_lastRenderState)),t.modified(),e.m_sceneRoot.removeChild(t),e.modified(),!0)},this.setResetScene=function(t){e.m_resetScene!==t&&(e.m_resetScene=t,e.modified())},this._cleanup=function(t){for(var n=e.m_sceneRoot.children(),i=0;i<n.length;i+=1){var r=n[i];r.material()._cleanup(t),r.mapper()._cleanup(t)}e.m_sceneRoot.removeChildren(),e.modified()},e},r(i.renderer,i.graphicsObject)},5895:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw,o={};return this._renderOnCanvas=function(){},this._delayRender=function(){return!1},this._canvasProperty=function(t,n,i){return t&&n?(o[n]!==i&&(o[n]=i,t[n]=i),e):(o={},e)},this.draw=function(){return e.ready&&(e._update(),e.renderer()._render(),r()),e},this};t.exports=i},5904:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return o},init:function(){return r},inverse:function(){return a},names:function(){return s}});var i=n(3356);function r(){this.name="geocent"}function o(t){return(0,i.jX)(t,this.es,this.a)}function a(t){return(0,i.Rw)(t,this.es,this.a,this.b)}var s=["Geocentric","geocentric","geocent","Geocent"];e.default={init:r,forward:o,inverse:a,names:s}},5905:function(t,e,n){t.exports={createColoredMesh:function(t,e){var i,r,o,a,s,l=n(642),u=t.mesh,c=t.style.get("value"),d={used:void 0!==t.style("used")?t.style.get("used"):function(t,e){return l.isNonNullFinite(c(t,e))},opacity:t.style.get("opacity"),value:c},h=t._createMesh(e?{}:d,e?d:{});if(h.elementValues=!!e,!h.numVertices||!h.numElements)return h;var f=u.get("stepped")(h),p=u.get("opacityRange")(h),m=u.get("rangeValues")(h);if(h.stepped=!(void 0!==f&&!f),h.colorMap=[],h.minColor=Object.assign({a:u.get("minOpacity")(h)||0},l.convertColor(u.get("minColor")(h))),h.maxColor=Object.assign({a:u.get("maxOpacity")(h)||0},l.convertColor(u.get("maxColor")(h))),u.get("colorRange")(h).forEach(function(t,e){h.colorMap.push(Object.assign({a:p&&void 0!==p[e]?p[e]:1},l.convertColor(t)))}),i=l.getMinMaxValues(h.value,u.get("min")(h),u.get("max")(h)),h.minValue=i.min,h.maxValue=i.max,m&&h.colorMap&&(m.length===h.colorMap.length+1||!f&&m.length===h.colorMap.length)||(m=null),m)for(s=1;s<m.length;s+=1)if(m[s-1]>m[s]){m=null;break}for(m&&(h.minValue=m[0],h.maxValue=m[m.length-1]),(o=h.maxValue-h.minValue)||(h.colorMap=h.colorMap.slice(0,1),o=1,m=null),h.rangeValues=m,h.factor=(h.colorMap.length-(f?0:1))/o,a=0;a<h.value.length;a+=1)if(r=h.value[a],m&&r>=h.minValue&&r<=h.maxValue){for(s=1;s<m.length;s+=1)if(r<=m[s]){h.value[a]=s-1+(r-m[s-1])/(m[s]-m[s-1]);break}}else h.value[a]=(r-h.minValue)*h.factor;return h}}},5936:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,u=n*a,c=i*a,d=i*s,h=r*a,f=r*s,p=r*l,m=o*a,g=o*s,y=o*l;return t[0]=1-d-p,t[1]=c+y,t[2]=h-g,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=f+m,t[7]=0,t[8]=h+g,t[9]=f-m,t[10]=1-u-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},5938:function(t,e,n){var i=n(5616),r=function(t){if(!(this instanceof r))return new r(t);t=t||{},this._size=t.size||6,this._initialSize=t.initialSize||0,this._track=t.track||600,this._initialTrack=this._track,this._needed=t.needed||null,this._batch=!1;var e=this,n=1;return Object.defineProperty(this,"size",{get:function(){return e._size},set:function(t){e._size=t,e._initialSize>1&&t<e._initialSize&&(e._initialSize=t),e.next_item()}}),Object.defineProperty(this,"initialSize",{get:function(){return e._initialSize},set:function(t){e._initialSize=t,e.next_item()}}),Object.defineProperty(this,"track",{get:function(){return e._track},set:function(t){e._track=t}}),Object.defineProperty(this,"initialTrack",{get:function(){return e._initialTrack},set:function(t){e._initialTrack=t}}),Object.defineProperty(this,"length",{get:function(){return e._queue.length}}),Object.defineProperty(this,"processing",{get:function(){return e._processing}}),this.clear=function(){return e._queue=[],e._processing=0,e},this.add=function(t,n,r){if(t.__fetchQueue){var o=e._queue.indexOf(t);if(o>=0)return e._addToQueue(t,r,o),t}var a=i.Deferred(),s=i.Deferred();return a.done(function(){i.when(n.call(t)).always(s.resolve)}).fail(s.resolve),t.__fetchQueue=a,e._addToQueue(t,r),i.when(a,s).always(function(){e._processing>0&&(e._processing-=1),e._initialSize=0,e.next_item()}).promise(t),e.next_item(),t},this._addToQueue=function(t,n,i){var r=n?e._queue.length-1:0;if(t.__fetchQueue._batch=e._batch,!n&&e._batch)for(r=0;r<e._queue.length-(void 0===i?0:1)&&e._queue[r].__fetchQueue._batch===e._batch;r+=1);if(void 0===i)n?e._queue.push(t):r?e._queue.splice(r,0,t):e._queue.unshift(t);else if(i!==r){for(var o=i<r?1:-1,a=i;a!==r;a+=o)e._queue[a]=e._queue[a+o];e._queue[r]=t}},this.get=function(t){return e._queue.indexOf(t)},this.remove=function(t){var n=e._queue.indexOf(t);return n>=0&&(e._queue.splice(n,1),!0)},this.batch=function(t){return void 0===t?e._batch:(t?(e._batch=n,n+=1):e._batch=!1,e)},this.next_item=function(){if(!e._innextitem){if(e._innextitem=!0,e._queue.length>e._track&&e._needed)for(var t=e._queue.length-1;t>=0;t-=1)if(!e._needed(e._queue[t])){var n=e._queue.splice(t,1)[0];e._processing+=1,n.__fetchQueue.reject(),delete n.__fetchQueue}for(;e._processing<(e._initialSize||e._size)&&e._queue.length;){var i=e._queue.shift();if(i.__fetchQueue)e._processing+=1,!e._needed||e._needed(i)?i.__fetchQueue.resolve():i.__fetchQueue.reject(),delete i.__fetchQueue}e._innextitem=!1}},this.clear(),this};t.exports=r},5964:function(t,e,n){"use strict";function i(t,e){var n;return t>1e-7?(1-t*t)*(e/(1-(n=t*e)*n)-.5/t*Math.log((1-n)/(1+n))):2*e}n.d(e,{A:function(){return i}})},5966:function(t,e,n){function i(t,e,n){this._group=t,this._zoom=e,this._points=[],this._clusters=[],this._count=0,this._parent=null,this._coord=null;var i=this;(n||[]).forEach(function(t){i._add(t)})}function r(t){var e,r,o=n(7235);for(this._opts=Object.assign({maxZoom:18,radius:5},t),this._clusters={},this._points={},e=this._opts.maxZoom;e>=0;e-=1)r=this._opts.radius*Math.pow(2,-e),this._clusters[e]=new o(r),this._points[e]=new o(r);this._topClusterLevel=new i(this,-1)}i.prototype._add=function(t){var e=1;t instanceof i?(this._clusters.push(t),e=t._count):this._points.push(t),t._parent=this,this._increment(e)},i.prototype._increment=function(t){this._coord=null,this._count+=t,this._parent&&this._parent._increment(t)},i.prototype.count=function(){return this._count},i.prototype.each=function(t){var e;for(e=0;e<this._points.length;e+=1)t.call(this,this._points[e],this._zoom);for(e=0;e<this._clusters.length;e+=1)this._clusters[e].each.call(this._clusters[e],t)},i.prototype.coords=function(){if(this._coord)return this._coord;var t,e={x:0,y:0};for(t=0;t<this._points.length;t+=1)e.x+=this._points[t].x,e.y+=this._points[t].y;for(t=0;t<this._clusters.length;t+=1)e.x+=this._clusters[t].coords().x*this._clusters[t].count(),e.y+=this._clusters[t].coords().y*this._clusters[t].count();return this._coord={x:e.x/this.count(),y:e.y/this.count()},this._coord},r.prototype.addPoint=function(t){var e,n,r,o,a,s;for(e=this._opts.maxZoom;e>=0;e-=1){if(n=this._clusters[e].getNearObject(t))return void n._add(t);if(n=this._points[e].getNearObject(t)){if(r=n._parent)for(s=r._points.length-1;s>=0;s-=1)if(r._points[s]===n){r._points.splice(s,1),r._increment(-1);break}for(o=new i(this,e,[n,t]),this._clusters[e].addObject(o,o.coords()),a=o,s=e-1;s>r._zoom;s-=1)a=new i(this,s,[a]),this._clusters[s].addObject(a,a.coords());for(r._add(a),s=e;s>=0&&this._points[s].removeObject(n,n);s-=1);return}this._points[e].addObject(t,t)}this._topClusterLevel._add(t)},r.prototype.points=function(t){return t=Math.min(Math.max(Math.floor(t),0),this._opts.maxZoom-1),this._points[Math.floor(t)].contents()},r.prototype.clusters=function(t){return t=Math.min(Math.max(Math.floor(t),0),this._opts.maxZoom-1),this._clusters[Math.floor(t)].contents()},t.exports=r},6014:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return g},forward:function(){return f},init:function(){return h},inverse:function(){return p},names:function(){return m}});var i=n(6269),r=n(7e3),o=n(1417),a=n(1341),s=n(7954),l=n(3611),u=n(4280),c=n(8597),d=n(364);function h(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))}function f(t){var e,n,c,d,h,f,p,m,g,y,v,x=t.x,_=t.y,b=Math.sin(t.y),w=Math.cos(t.y),M=(0,i.A)(x-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=r.H0?(t.x=this.x0+this.a*(r.sK-_)*Math.sin(M),t.y=this.y0-this.a*(r.sK-_)*Math.cos(M),t):Math.abs(this.sin_p12+1)<=r.H0?(t.x=this.x0+this.a*(r.sK+_)*Math.sin(M),t.y=this.y0+this.a*(r.sK+_)*Math.cos(M),t):(g=this.sin_p12*b+this.cos_p12*w*Math.cos(M),m=(p=Math.acos(g))?p/Math.sin(p):1,t.x=this.x0+this.a*m*w*Math.sin(M),t.y=this.y0+this.a*m*(this.cos_p12*b-this.sin_p12*w*Math.cos(M)),t):(e=(0,a.A)(this.es),n=(0,s.A)(this.es),c=(0,l.A)(this.es),d=(0,u.A)(this.es),Math.abs(this.sin_p12-1)<=r.H0?(h=this.a*(0,o.A)(e,n,c,d,r.sK),f=this.a*(0,o.A)(e,n,c,d,_),t.x=this.x0+(h-f)*Math.sin(M),t.y=this.y0-(h-f)*Math.cos(M),t):Math.abs(this.sin_p12+1)<=r.H0?(h=this.a*(0,o.A)(e,n,c,d,r.sK),f=this.a*(0,o.A)(e,n,c,d,_),t.x=this.x0+(h+f)*Math.sin(M),t.y=this.y0+(h+f)*Math.cos(M),t):Math.abs(x)<r.H0&&Math.abs(_-this.lat0)<r.H0?(t.x=t.y=0,t):(v=(y=function(t,e,n,i,r,o){var a,s,l,u,c,d,h,f,p,m,g,y,v,x=i-e,_=Math.atan((1-o)*Math.tan(t)),b=Math.atan((1-o)*Math.tan(n)),w=Math.sin(_),M=Math.cos(_),A=Math.sin(b),E=Math.cos(b),T=x,S=100;do{if(s=Math.sin(T),l=Math.cos(T),0===(u=Math.sqrt(E*s*(E*s)+(M*A-w*E*l)*(M*A-w*E*l))))return{azi1:0,s12:0};c=w*A+M*E*l,a=T,T=x+(1-(m=o/16*(f=1-(h=M*E*s/u)*h)*(4+o*(4-3*f))))*o*h*((d=Math.atan2(u,c))+m*u*((p=0!==f?c-2*w*A/f:0)+m*c*(2*p*p-1)))}while(Math.abs(T-a)>1e-12&&--S>0);return 0===S?{azi1:NaN,s12:NaN}:(v=r*(1-o)*(1+(g=f*(r*r-r*(1-o)*(r*(1-o)))/(r*(1-o)*(r*(1-o))))/16384*(4096+g*(g*(320-175*g)-768)))*(d-(y=g/1024*(256+g*(g*(74-47*g)-128)))*u*(p+y/4*(c*(2*p*p-1)-y/6*p*(4*u*u-3)*(4*p*p-3)))),{azi1:Math.atan2(E*s,M*A-w*E*l),s12:v})}(this.lat0,this.long0,_,x,this.a,this.f)).azi1,t.x=y.s12*Math.sin(v),t.y=y.s12*Math.cos(v),t))}function p(t){var e,n,h,f,p,m,g,y,v,x,_,b,w,M,A,E;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*r.sK*this.a)return;return n=e/this.a,h=Math.sin(n),f=Math.cos(n),p=this.long0,Math.abs(e)<=r.H0?m=this.lat0:(m=(0,c.A)(f*this.sin_p12+t.y*h*this.cos_p12/e),g=Math.abs(this.lat0)-r.sK,p=Math.abs(g)<=r.H0?this.lat0>=0?(0,i.A)(this.long0+Math.atan2(t.x,-t.y)):(0,i.A)(this.long0-Math.atan2(-t.x,t.y)):(0,i.A)(this.long0+Math.atan2(t.x*h,e*this.cos_p12*f-t.y*this.sin_p12*h))),t.x=p,t.y=m,t}return y=(0,a.A)(this.es),v=(0,s.A)(this.es),x=(0,l.A)(this.es),_=(0,u.A)(this.es),Math.abs(this.sin_p12-1)<=r.H0?(w=(b=this.a*(0,o.A)(y,v,x,_,r.sK))-(e=Math.sqrt(t.x*t.x+t.y*t.y)),m=(0,d.A)(w/this.a,y,v,x,_),p=(0,i.A)(this.long0+Math.atan2(t.x,-1*t.y)),t.x=p,t.y=m,t):Math.abs(this.sin_p12+1)<=r.H0?(b=this.a*(0,o.A)(y,v,x,_,r.sK),w=(e=Math.sqrt(t.x*t.x+t.y*t.y))-b,m=(0,d.A)(w/this.a,y,v,x,_),p=(0,i.A)(this.long0+Math.atan2(t.x,t.y)),t.x=p,t.y=m,t):(M=Math.atan2(t.x,t.y),A=Math.sqrt(t.x*t.x+t.y*t.y),E=function(t,e,n,i,r,o){var a,s,l,u,c=Math.atan((1-o)*Math.tan(t)),d=Math.sin(c),h=Math.cos(c),f=Math.sin(n),p=Math.cos(n),m=Math.atan2(d,h*p),g=h*f,y=1-g*g,v=y*(r*r-r*(1-o)*(r*(1-o)))/(r*(1-o)*(r*(1-o))),x=1+v/16384*(4096+v*(v*(320-175*v)-768)),_=v/1024*(256+v*(v*(74-47*v)-128)),b=i/(r*(1-o)*x),w=100;do{s=Math.cos(2*m+b),a=b,b=i/(r*(1-o)*x)+_*(l=Math.sin(b))*(s+_/4*((u=Math.cos(b))*(2*s*s-1)-_/6*s*(4*l*l-3)*(4*s*s-3)))}while(Math.abs(b-a)>1e-12&&--w>0);if(0===w)return{lat2:NaN,lon2:NaN};var M=d*l-h*u*p,A=o/16*y*(4+o*(4-3*y));return{lat2:Math.atan2(d*u+h*l*p,(1-o)*Math.sqrt(g*g+M*M)),lon2:e+(Math.atan2(l*f,h*u-d*l*p)-(1-A)*o*g*(b+A*l*(s+A*u*(2*s*s-1))))}}(this.lat0,this.long0,M,A,this.a,this.f),t.x=E.lon2,t.y=E.lat2,t)}var m=["Azimuthal_Equidistant","aeqd"],g={init:h,forward:f,inverse:p,names:m}},6028:function(t){t.exports=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],c=e[8],d=c*a-s*u,h=-c*o+s*l,f=u*o-a*l,p=n*d+i*h+r*f;return p?(p=1/p,t[0]=d*p,t[1]=(-c*i+r*u)*p,t[2]=(s*i-r*a)*p,t[3]=h*p,t[4]=(c*n-r*l)*p,t[5]=(-s*n+r*o)*p,t[6]=f*p,t[7]=(-u*n+i*l)*p,t[8]=(a*n-i*o)*p,t):null}},6124:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);var e=n(642);t=t||{},r.call(this,t);var i=this,a=this._init,s={};return this.featureType="mesh",this.mesh=function(t,e){if(void 0===t)return s;if("string"==typeof t&&void 0===e)return s[t];if(void 0===e){var n=Object.assign({},{gridWidth:function(){return t.gridHeight?Math.floor(i.data().length/t.gridHeight):Math.floor(Math.sqrt(i.data().length))},gridHeight:function(){return t.gridWidth?Math.floor(i.data().length/t.gridWidth):Math.floor(Math.sqrt(i.data().length))}},s,t);s=n}else s[t]=e;return i.modified(),i},this.mesh.get=function(t){if(void 0===t){var n,r={};for(n in s)s.hasOwnProperty(n)&&(r[n]=i.mesh.get(n));return r}return e.ensureFunction(s[t])},this.position=function(t){return void 0===t?i.style("position"):(i.style("position",t),i.dataTime().modified(),i.modified(),i)},this._createMesh=function(t,e){t=t||{},e=e||{};var n,r,o,a,s,l,u,c,d,h,f,p,m,g,y,v,x=i.data(),_=i.position(),b=i.mesh.get("elements")(x),w=i.mesh.get("elementPacking")(x),M=i.mesh.get("gridWidth")(x),A=i.mesh.get("gridHeight")(x),E=i.mesh.get("wrapLongitude")(x),T=i.mesh.get("x0")(x),S=i.mesh.get("y0")(x),C=i.mesh.get("dx")(x),k=i.mesh.get("dy")(x),P=M,O={shape:"square",elements:[],elementIndex:[]};if(b){var L=b.length&&Array.isArray(b[0]);if("square"===w||"triangle"!==w&&(!L&&!(b.length%4)&&b.length%3||L&&4===b[0].length))if(O.shape="square",L)for(n=0;n<b.length;n+=1)O.elements.push(b[n][0]),O.elements.push(b[n][1]),O.elements.push(b[n][3]),O.elements.push(b[n][2]),O.elements.push(b[n][3]),O.elements.push(b[n][1]),O.elementIndex.push(n),O.elementIndex.push(n);else for(n=o=0;n<b.length-3;n+=4,o+=1)O.elements.push(b[n]),O.elements.push(b[n+1]),O.elements.push(b[n+3]),O.elements.push(b[n+2]),O.elements.push(b[n+3]),O.elements.push(b[n+1]),O.elementIndex.push(o),O.elementIndex.push(o);else if(O.shape="triangle",L)for(n=0;n<b.length;n+=1)O.elements.push(b[n][0]),O.elements.push(b[n][1]),O.elements.push(b[n][2]),O.elementIndex.push(n);else for(O.elements=b.slice(0,b.length-b.length%3),n=o=0;n<b.length-2;n+=3,o+=1)O.elementIndex.push(o);l=x.length,c=!0}else{if(Object.keys(t).length?M*A>x.length&&(A=Math.floor(x.length/M)):Object.keys(e).length&&(M-1)*(A-1)>x.length&&(A=Math.floor(x.length/(M-1))+1),E=!(void 0!==E&&!E),!(c=null==T||null==S||!C||!k)&&E&&(T<-180||T>180||T+C*(M-1)<-180||T+C*(M-1)>180)&&C>-180&&C<180&&C*(M-1)<360.0001){for(p=[],m=[],n=0;n<M;n+=1){for(y=T+n*C;y<-180;)y+=360;for(;y>180;)y-=360;n&&Math.abs(y-p[p.length-1])>180&&(y>p[p.length-1]?(p.push(y-360),p.push(p[p.length-2]+360),m.push(n),m.push(n+1)):(p.push(y+360),p.push(p[p.length-2]-360),m.push(n),m.push(n+1)),g=n),p.push(y),m.push(n)}if(M+=2,Math.abs(Math.abs(P*C)-360)<.01){for(M+=1,y=T+P*C;y<-180;)y+=360;for(;y>180;)y-=360;p.push(y),m.push(0)}}if(l=M*A,void 0!==g)for(O.index=new Array(l),n=0;n<l;n+=1)v=n-(o=Math.floor(n/M))*M,(v+=v>g?-2:0)>=P&&(v-=P),v+=o*P,O.index[n]=v;for(o=s=0;o<A-1;o+=1,s+=1)for(n=0;n<M-1;n+=1,s+=1)n!==g&&(O.elements.push(s),O.elements.push(s+1),O.elements.push(s+M),O.elements.push(s+M+1),O.elements.push(s+M),O.elements.push(s+1),O.elementIndex.push(o*(M-1)+(m?m[n]:n)),O.elementIndex.push(o*(M-1)+(m?m[n]:n)))}O.verticesPerElement="triangle"===O.shape?3:6;var R=O.verticesPerElement;if(e.used){var I=new Array(O.elementIndex[O.elementIndex.length-1]+1);for(n=0;n<I.length;n+=1)I[n]=e.used(x[n],n);for(n=0;n<O.elementIndex.length&&I[O.elementIndex[n]];n+=1);if(n<O.elementIndex.length){for(o=n;n<O.elementIndex.length;n+=1)if(I[O.elementIndex[n]]){for(O.elementIndex[o]=O.elementIndex[n],a=0;a<3;a+=1)O.elements[3*o+a]=O.elements[3*n+a];o+=1}O.elements.splice(3*o),O.elementIndex.splice(o)}}if(t.used){for(n=0;n<l&&(s=O.index?O.index[n]:n,t.used(x[s],s));n+=1);if(n!==l){u=n;var F=new Array(l);for(o=0;o<u;o+=1)F[o]=o;if(F[u]=-1,!O.index)for(O.index=new Array(x.length),o=0;o<x.length;o+=1)O.index[o]=o;for(n=u+1;n<l;n+=1)s=O.index[n],t.used(x[s],s)?(F[n]=u,O.index[u]=O.index[n],u+=1):F[n]=-1;for(O.index.splice(u),n=a=0;n<O.elements.length;n+=R){for(o=0;o<R&&!(F[O.elements[n+o]]<0);o+=1)O.elements[a+o]=F[O.elements[n+o]];o===R&&(O.elementIndex[Math.floor(a/3)]=O.elementIndex[Math.floor(n/3)],6===R&&(O.elementIndex[Math.floor(a/3)+1]=O.elementIndex[Math.floor(n/3)+1]),a+=R)}O.elements.splice(a),O.elementIndex.splice(Math.floor(a/3)),l=u}}if(e.used&&void 0===g){var D=new Array(l),G=O.index;for(O.index=[],n=0;n<O.elements.length;n+=1)void 0===D[a=O.elements[n]]&&(D[a]=O.index.length,O.index.push(G?G[a]:a)),O.elements[n]=D[a];l=O.index.length}for(h in O.pos=new Array(3*l),t)"used"!==h&&t.hasOwnProperty(h)&&(O[h]=new Array(l));for(n=r=0;n<l;n+=1,r+=3)for(h in d=x[s=O.index?O.index[n]:n],c?(f=_(d,s),O.pos[r]=f.x,O.pos[r+1]=f.y,O.pos[r+2]=f.z||0):(O.pos[r]=void 0===g?T+C*(s%M):p[n%M],O.pos[r+1]=S+k*Math.floor(s/M),O.pos[r+2]=0,f={x:O.pos[r],y:O.pos[r+1],z:O.pos[r+2]}),t)"used"!==h&&t.hasOwnProperty(h)&&(O[h][n]=t[h](d,s,f));for(h in e)if("used"!==h&&e.hasOwnProperty(h)){var j=e[h];for(O[h]=new Array(O.elementIndex.length),n=0;n<O.elementIndex.length;n+=1)d=x[s=O.elementIndex[n]],O[h][n]=j(d,s)}return O.numVertices=l,O.numElements=O.elements.length/O.verticesPerElement,O},this._init=function(t){a.call(i,t),t=t||{};var e=Object.assign({},{position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t}},t.style||{});i.mesh(t.mesh||{}),i.style(e)},this};i(o,r),t.exports=o},6145:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var i=n(6269),r=n(8597),o=n(7e3);function a(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function s(t){var e,n,r,a,s,l,u,c=t.x,d=t.y;return r=(0,i.A)(c-this.long0),e=Math.sin(d),n=Math.cos(d),a=Math.cos(r),((s=this.sin_p14*e+this.cos_p14*n*a)>0||Math.abs(s)<=o.H0)&&(l=1*this.a*n*Math.sin(r),u=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*a)),t.x=l,t.y=u,t}function l(t){var e,n,a,s,l,u,c;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),n=(0,r.A)(e/this.a),a=Math.sin(n),s=Math.cos(n),u=this.long0,Math.abs(e)<=o.H0?(c=this.lat0,t.x=u,t.y=c,t):(c=(0,r.A)(s*this.sin_p14+t.y*a*this.cos_p14/e),l=Math.abs(this.lat0)-o.sK,Math.abs(l)<=o.H0?(u=this.lat0>=0?(0,i.A)(this.long0+Math.atan2(t.x,-t.y)):(0,i.A)(this.long0-Math.atan2(-t.x,t.y)),t.x=u,t.y=c,t):(u=(0,i.A)(this.long0+Math.atan2(t.x*a,e*this.cos_p14*s-t.y*this.sin_p14*a)),t.x=u,t.y=c,t))}var u=["ortho"];e.default={init:a,forward:s,inverse:l,names:u}},6155:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return a},init:function(){return o},inverse:function(){return s},names:function(){return l}});var i=n(6269),r=n(7e3);function o(){}function a(t){for(var e=t.x,n=t.y,o=(0,i.A)(e-this.long0),a=n,s=Math.PI*Math.sin(n);;){var l=-(a+Math.sin(a)-s)/(1+Math.cos(a));if(a+=l,Math.abs(l)<r.H0)break}a/=2,Math.PI/2-Math.abs(n)<r.H0&&(o=0);var u=.900316316158*this.a*o*Math.cos(a)+this.x0,c=1.4142135623731*this.a*Math.sin(a)+this.y0;return t.x=u,t.y=c,t}function s(t){var e,n;t.x-=this.x0,t.y-=this.y0,n=t.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),e=Math.asin(n);var r=(0,i.A)(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var o=Math.asin(n);return t.x=r,t.y=o,t}var l=["Mollweide","moll"];e.default={init:o,forward:a,inverse:s,names:l}},6157:function(t,e,n){"use strict";n.d(e,{A:function(){return r}});var i=n(7e3);function r(t,e){for(var n,r,o=.5*t,a=i.sK-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(a),a+=r=i.sK-2*Math.atan(e*Math.pow((1-n)/(1+n),o))-a,Math.abs(r)<=1e-10)return a;return-9999}},6165:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var i=n(7e3),r=n(9393);function o(t){return Math.abs(t)<i.sK?t:t-(0,r.A)(t)*Math.PI}},6167:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return o},init:function(){return r},inverse:function(){return a},names:function(){return s}});var i=n(6269);function r(){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}function o(t){var e,n,r,o,a,s,l,u=t.x,c=t.y,d=(0,i.A)(u-this.long0);return e=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/e)-this.s45),r=-d*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),a=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(o)),s=this.n*a,l=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),t.y=l*Math.cos(s)/1,t.x=l*Math.sin(s)/1,this.czech||(t.y*=-1,t.x*=-1),t}function a(t){var e,n,i,r,o,a,s,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),r=Math.atan2(t.y,t.x)/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,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,a=e,s=0;var u=0;do{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(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(s=1),a=t.y,u+=1}while(0===s&&u<15);return u>=15?null:t}var s=["Krovak","krovak"];e.default={init:r,forward:o,inverse:a,names:s}},6194:function(t,e,n){"use strict";n.d(e,{A:function(){return m}});var i=1,r=.25,o=.046875,a=.01953125,s=.01068115234375,l=.75,u=.46875,c=.013020833333333334,d=.007120768229166667,h=.3645833333333333,f=.005696614583333333,p=.3076171875;function m(t){var e=[];e[0]=i-t*(r+t*(o+t*(a+t*s))),e[1]=t*(l-t*(o+t*(a+t*s)));var n=t*t;return e[2]=n*(u-t*(c+t*d)),n*=t,e[3]=n*(h-t*f),e[4]=n*t*p,e}},6211:function(t,e,n){var i=n(5616),r=n(4626),o=n(5402),a=function(t){"use strict";if(!(this instanceof a))return new a(t);if(void 0===(t=t||{}).node||null===t.node)return console.warn("map creation requires a node"),this;o.call(this,t);var e,r,s,l,u,c=n(3578),d=n(5325),h=n(642),f=n(1098),p=n(6409),m=n(7908),g=n(4231),y=this,v=this._exit,x=i(t.node),_=t.width||x.width()||512,b=t.height||x.height()||512,w=void 0===t.gcs?"EPSG:3857":t.gcs,M=void 0===t.ingcs?"EPSG:4326":t.ingcs,A={x:0,y:0},E=void 0===t.zoom?4:t.zoom,T=t.rotation?t.rotation:0,S=null,C=null,k={min:0,max:16,origMin:0},P=null,O=null,L=!!t.discreteZoom,R="function"==typeof t.allowRotation?t.allowRotation:void 0===t.allowRotation||!!t.allowRotation,I=t.maxBounds||{},F=t.camera||c(),D=t.animationQueue||[],G=void 0===t.autoResize||t.autoResize,j=t.autoshareRenderer,N=((I.left||0)+(I.right||0))/2,B=((I.bottom||0)+(I.top||0))/2;function z(){var t;void 0!==document.hidden?t="hidden":void 0!==document.msHidden?t="msHidden":void 0!==document.webkitHidden&&(t="webkitHidden"),y.geoTrigger(document[t]?p.hidden:p.unhidden)}function V(t){var e;void 0!==document.hidden?e="visibilitychange":void 0!==document.msHidden?e="msvisibilitychange":void 0!==document.webkitHidden&&(e="webkitvisibilitychange"),document.removeEventListener(e,z),!1!==t&&document.addEventListener(e,z)}function U(t,e){var n=t.zIndex(),i=e.zIndex();if(n!==i)return n-i;var r=t.node()[0],o=e.node()[0],a=r&&r.parentNode,s=o&&o.parentNode;if(a&&s&&a===s){var l=Array.from(a.children),u=l.indexOf(r),c=l.indexOf(o);if(u>=0&&c>=0)return u-c}return a?-1:s?1:0}function q(t,e,n,i,r){t.globalAlpha=e,r&&(t.globalCompositeOperation=r);var o=n.css("transform");o&&"matrix("===o.substr(0,7)?t.setTransform.apply(t,o.substr(7,o.length-8).split(",").map(parseFloat)):t.setTransform(1,0,0,1,0,0),t.drawImage(i,0,0),t.globalCompositeOperation="source-over"}function H(){for(var t=D.splice(0,D.length),e=1;e<t.length;e+=1)try{t[e].apply(y,arguments)}catch(t){console.error(t)}}function W(t,e,n){var i=e.width/2,r=e.height/2,o=Math.sin(n),a=Math.cos(n),s={},l={},u={},c={};return s.x=t.x+-i*a- -r*o,s.y=t.y+-i*o+-r*a,l.x=t.x+i*a- -r*o,l.y=t.y+i*o+-r*a,u.x=t.x+-i*a-r*o,u.y=t.y+-i*o+r*a,c.x=t.x+i*a-r*o,c.y=t.y+i*o+r*a,{left:Math.min(s.x,l.x,u.x,c.x),right:Math.max(s.x,l.x,u.x,c.x),bottom:Math.min(s.y,l.y,u.y,c.y),top:Math.max(s.y,l.y,u.y,c.y)}}function X(t,n){void 0===n&&(n=T),t=function(t,e){return e&&(t=W({x:(t.left+t.right)/2,y:(t.top+t.bottom)/2},{width:Math.abs(t.left-t.right),height:Math.abs(t.top-t.bottom)},e)),t}(t,n);var i=function(t){var e,n,i=t.right-t.left,r=t.top-t.bottom,o=Math.abs(i/r),a=_/b;return o>a?(e=1,n=o/a):(n=1,e=a/o),{x:e,y:n}}(t);return i.y>i.x?-Math.log2(Math.abs(t.right-t.left)*i.x/(_*e)):-Math.log2(Math.abs(t.top-t.bottom)*i.y/(b*e))}function K(){k.min=l?Math.max(k.origMin,X(I)):k.origMin}function Q(t,e,n){if(!R)return 0;if(e||"function"!=typeof R||(t=R(t)),!n){var i=2*Math.PI;t=t%i+(t>=0?0:i),Math.min(Math.abs(t),Math.abs(t-i))<1e-5&&(t=0)}return t}function Z(t,e,n,i){if(!r&&!s)return t;var o,a,l=I;if(e){l=Object.assign({},I);var u,c,d=Math.abs(t.right-t.left),h=Math.abs(t.top-t.bottom),f=Math.abs(Math.sin(e)),p=Math.abs(Math.cos(e));if(t.width&&t.height)u=t.width,c=t.height;else if(Math.abs(f-p)<5e-4)if(_&&b){var m=Math.abs(_/b),g=Math.pow(1+Math.pow(m,2),.5);c=(u=Math.max(d,h)/g)*m}else u=d*p,c=h*f;else u=(p*d-f*h)/(p*p-f*f),c=(p*h-f*d)/(p*p-f*f);var y=d-Math.max(p*u,f*c),v=h-Math.max(p*c,f*u);l.left-=y,l.right+=y,l.top+=v,l.bottom-=v}return i&&(l={left:l.left-(t.right-t.left)/2,right:l.right+(t.right-t.left)/2,top:l.top-(t.bottom-t.top)/2,bottom:l.bottom+(t.bottom-t.top)/2}),r&&(t.right-t.left>l.right-l.left?o=l.left-(t.right-t.left-(l.right-l.left))/2-t.left:t.left<l.left?o=l.left-t.left:t.right>l.right&&(o=l.right-t.right),o&&(!n||n.x*o>0)&&(n&&Math.abs(o)>Math.abs(n.x*n.unit)&&(o=Math.abs(n.x*n.unit)*o/Math.abs(o)),t={left:t.left+=o,right:t.right+=o,top:t.top,bottom:t.bottom})),s&&(t.top-t.bottom>l.top-l.bottom?a=l.bottom-(t.top-t.bottom-(l.top-l.bottom))/2-t.bottom:t.top>l.top?a=l.top-t.top:t.bottom<l.bottom&&(a=l.bottom-t.bottom),a&&(!n||-n.y*a>0)&&(n&&Math.abs(a)>Math.abs(n.y*n.unit)&&(a=Math.abs(n.y*n.unit)*a/Math.abs(a)),t={top:t.top+=a,bottom:t.bottom+=a,left:t.left,right:t.right})),t}function Y(t,e){if(F.rotation=e||0,t.width&&t.height&&e){var n=(t.left+t.right)/2,i=(t.top+t.bottom)/2;F.viewFromCenterSizeRotation({x:n,y:i},t,e)}else F.bounds=t;A={x:(F.bounds.left+F.bounds.right)/2,y:(F.bounds.top+F.bounds.bottom)/2}}function J(){y.size({width:x.width(),height:x.height()})}return I.left=d.transformCoordinates(I.gcs||M,w,{x:void 0!==I.left?I.left:-180,y:B}).x,I.right=d.transformCoordinates(I.gcs||M,w,{x:void 0!==I.right?I.right:180,y:B}).x,I.top=void 0!==I.top?d.transformCoordinates(I.gcs||M,w,{x:N,y:I.top}).y:I.right,I.bottom=void 0!==I.bottom?d.transformCoordinates(I.gcs||M,w,{x:N,y:I.bottom}).y:I.left,e=t.unitsPerPixel||(I.right-I.left)/256,F.viewport={width:_,height:b,left:x.offset().left,top:x.offset().top},t.center=h.normalizeCoordinates(t.center),r=void 0!==t.clampBoundsX&&t.clampBoundsX,s=void 0===t.clampBoundsY||t.clampBoundsY,l=void 0===t.clampZoom||t.clampZoom,this.unitsPerPixel=function(t,n){return t=t||0,n?(e=Math.pow(2,t)*n,y.draw(),y):Math.pow(2,-t)*e},this.animationQueue=function(t){if(void 0===t)return D;if(t!==D){if(D.length){t.length&&t[0]!==D[0]&&window.cancelAnimationFrame(D[0]);for(var e=t.length?1:0;e<D.length;e+=1)t.push(D[e])}D=t}return y},this.autoResize=function(t){return void 0===t?G:(t!==G&&(i(window).off("resize",J),(G=t)&&i(window).on("resize",J)),y)},this.clampBoundsX=function(t){return void 0===t?r:(t!==r&&(r=!!t,y.pan({x:0,y:0})),y)},this.clampBoundsY=function(t){return void 0===t?s:(t!==s&&(s=!!t,y.pan({x:0,y:0})),y)},this.clampZoom=function(t){return void 0===t?l:(t!==l&&(l=!!t,K(),y.zoom(E)),y)},this.allowRotation=function(t){return void 0===t?R:("function"!=typeof t&&(t=!!t),t!==R&&(R=t,y.rotation(T)),y)},this.origin=function(){return Object.assign({},u)},this.camera=function(){return F},this.gcs=function(t){if(void 0===t)return w;if(t!==w){var e=y.center(void 0,void 0);w=t,K();var n=y._fix_zoom(E);n!==E&&y.zoom(n),y.center(e,void 0)}return y},this.ingcs=function(t){return void 0===t?M:(M=t,y)},this.node=function(){return x},this.zoom=function(t,e,n,i,r){if(void 0===t)return E;var o,a,s=e&&(e.mapgcs||e.geo)&&e.map;if(s&&(i=!0),(t=y._fix_zoom(t,n))===E)return y;if(E=t,a=y.boundsFromZoomAndCenter(t,A,T,null,n,i),y.modified(),Y(a,T),o={zoomLevel:E,screenPosition:e?e.map:void 0},r&&"pan"!==r||y.geoTrigger(p.zoom,o),s){var l=y.gcsToDisplay(e.mapgcs||e.geo,e.mapgcs?null:void 0);y.pan({x:e.map.x-l.x,y:e.map.y-l.y},n,!0,r)}else y.pan({x:0,y:0},n,i,r);return y},this.zoomAndCenter=function(t,e,n,i,r,o){return this.zoom(t,void 0,i,r,o||"pan"),this.center(e,n,i,r,o),this},this.pan=function(t,e,n,i){var r={screenDelta:t};if(t.x||t.y){var o=y.unitsPerPixel(E),a=Math.sin(T),s=Math.cos(T);F.pan({x:(t.x*s- -t.y*a)*o,y:(t.x*a+-t.y*s)*o})}var l=F.bounds;if((l=Z(l,T,"limited"===n?{x:t.x,y:t.y,unit:o}:void 0,!0===n))!==F.bounds){var u=y.gcsToDisplay({x:F.bounds.left,y:F.bounds.top},null);Y(l=y.boundsFromZoomAndCenter(E,{x:(l.left+l.right)/2,y:(l.top+l.bottom)/2},T,null,e,!0),T);var c=y.gcsToDisplay({x:F.bounds.left,y:F.bounds.top},null);r.screenDelta.x+=c.x-u.x,r.screenDelta.y+=c.y-u.y}return A=F.displayToWorld({x:_/2,y:b/2}),i||y.geoTrigger(p.pan,r),y.modified(),y},this.rotation=function(t,e,n){if(void 0===t)return T;var i=e&&e.geo&&e.map;if((t=Q(t,n))===T)return y;T=t;var r=y.boundsFromZoomAndCenter(E,A,T,null,n,!0);y.modified(),Y(r,T);var o={rotation:T,screenPosition:e?e.map:void 0};if(y.geoTrigger(p.rotate,o),i){var a=y.gcsToDisplay(e.geo);y.pan({x:e.map.x-a.x,y:e.map.y-a.y},void 0,!0)}else y.pan({x:0,y:0},void 0,!0);return K(),y.zoom(E,void 0,n),y},this.center=function(t,e,n,i,r){var o;return void 0===t?o=Object.assign({},y.worldToGcs(A,e)):(o=y.gcsToWorld(t,e),Y(y.boundsFromZoomAndCenter(E,o,T,null,n,i),T),y.modified(),r||y.geoTrigger(p.pan,{screenDelta:{x:0,y:0}}),y)},this.createLayer=function(t,e){e=e||{},void 0!==y.autoshareRenderer()&&(e=Object.assign({autoshareRenderer:y.autoshareRenderer()},e));var n=f.createLayer(t,y,e);return n&&(y.addChild(n),y.children().forEach(function(t){t instanceof g&&t.moveToTop()}),n._update(),y.modified(),y.geoTrigger(p.layerAdd,{target:y,layer:n})),n},this.deleteLayer=function(t){return null!=t&&(t._exit(),y.removeChild(t),y.modified(),y.geoTrigger(p.layerRemove,{target:y,layer:t})),t},this.size=function(t){if(void 0===t)return{width:_,height:b};var e=y.center();_=t.width||_,b=t.height||b,K();var n=y._fix_zoom(E);return n!==E&&y.zoom(n),y.camera().viewport={width:_,height:b,left:x.offset().left,top:x.offset().top},y.center(e),y.geoTrigger(p.resize,{target:y,width:_,height:b}),y.modified(),y},this.rotatedSize=function(){if(!this.rotation())return{width:_,height:b};var t=W({x:0,y:0},{width:_,height:b},y.rotation());return{width:Math.abs(t.right-t.left),height:Math.abs(t.top-t.bottom)}},this.gcsToWorld=function(t,e){return Array.isArray(t)?t.map(function(t){return y.gcsToWorld(t,e)}):((e=null===e?w:void 0===e?M:e)!==w&&(t=d.transformCoordinates(e,w,t)),u.x||u.y||u.z?t=d.affineForward({origin:u},[t])[0]:"z"in t||(t={x:t.x,y:t.y,z:0}),t)},this.worldToGcs=function(t,e){return Array.isArray(t)?t.map(function(t){return y.worldToGcs(t,e)}):(u.x||u.y||u.z?t=d.affineInverse({origin:u},[t])[0]:"z"in t||(t={x:t.x,y:t.y,z:0}),(e=null===e?w:void 0===e?M:e)!==w&&(t=d.transformCoordinates(w,e,t)),t)},this.gcsToDisplay=function(t,e){return t=y.gcsToWorld(t,e),y.worldToDisplay(t)},this.worldToDisplay=function(t){return Array.isArray(t)?t.map(function(t){return F.worldToDisplay(t)}):F.worldToDisplay(t)},this.displayToGcs=function(t,e){return t=y.displayToWorld(t),y.worldToGcs(t,e)},this.displayToWorld=function(t){return Array.isArray(t)?t.map(function(t){return F.displayToWorld(t)}):F.displayToWorld(t)},this.draw=function(){var t,e=y.children();for(y.geoTrigger(p.draw,{target:y}),y._update(),t=0;t<e.length;t+=1)e[t].draw();return y.geoTrigger(p.drawEnd,{target:y}),y},this.fileReader=function(t,e){return void 0===t?S:("string"==typeof t?((e=e||{}).layer||(e.layer=y.createLayer("feature",Object.assign({},e))),e.renderer=e.layer.renderer().api(),S=f.createFileReader(t,e)):S=t,y)},this._init=function(t){if(null==x)throw new Error("Map require DIV node");return x.data("data-geojs-map")&&i.isFunction(x.data("data-geojs-map").exit)&&x.data("data-geojs-map").exit(),x.addClass("geojs-map"),x.data("data-geojs-map",y),V(),y},this._update=function(t){var e,n=y.children();for(e=0;e<n.length;e+=1)n[e]._update(t);return y},this.exit=function(){V(!1);var t,e=y.children();for(t=e.length-1;t>=0;t-=1)e[t]._exit(),y.removeChild(e[t]);y.interactor()&&(y.interactor().destroy(),y.interactor(null)),D=[],y.node().data("data-geojs-map",null),y.node().off(".geo"),y.node().empty(),i(window).off("resize",J),v()},this.interactor=function(t){return void 0===t?C:(C&&C!==t&&C.destroy(),(C=t)&&(x.attr("tabindex")||x.attr("tabindex",0),C.map(y)),y)},this.zoomRange=function(t,e){return void 0===t?Object.assign({},k):(void 0!==t.max&&(k.max=t.max),void 0!==t.min&&(k.min=k.origMin=t.min),K(),e||y.zoom(E),y)},this.transition=function(t,e,n){if(void 0===t)return P;if(P){var r=h.deepMerge({},P.end);return r.center&&w!==M&&(r.center=d.transformCoordinates(w,M,r.center)),O=Object.assign({},r||{},O||{},t),y}var o=y.unitsPerPixel(0);function a(t){return Math.pow(2,-(t+1))*o*b}var s={center:void 0,zoom:y.zoom(),rotation:y.rotation(),duration:1e3,ease:function(t){return t},interp:function(t,e){return function(n){var r=[];return i.each(t,function(i){r.push(function(t,e,n){return t+(e-t)*n}(t[i],e[i],n))}),r}},done:null,zCoord:!0};function l(e){var n=P.done,i=O;if(!0===P.cancel)return y.geoTrigger(p.transitioncancel,t),n&&n({cancel:!0,source:P.cancelSource,transition:P}),P=null,void(O&&(i=O,O=null,y.transition(i,void 0,e)));if(P.start.time||(P.start.time=e,P.end.time=e+t.duration),P.time=e-P.start.time,e>=P.end.time||i){if(!i){if(P.end.center){var r=E!==y._fix_zoom(P.end.zoom)||!1===t.endClamp;y.center(P.end.center,null,r,r)}y.zoom(P.end.zoom,P.zoomOrigin,!1===t.endClamp,!1===t.endClamp),y.rotation(Q(P.end.rotation))}return y.geoTrigger(p.transitionend,t),n&&n({next:!!i}),P=null,void(O&&(i=O,O=null,y.transition(i,void 0,e)))}var a=P.ease((e-P.start.time)/t.duration),s=P.interp(a);P.zCoord&&(s[2]=function(t){return-Math.log2(t/o/b)-1}(s[2])),y._fix_zoom(s[2],!0)===E?y.center({x:s[0],y:s[1]},null,!0,!0):(A=y.gcsToWorld({x:s[0],y:s[1]},null),y.zoom(s[2],P.zoomOrigin,!0,!0)),y.rotation(s[3],void 0,!0),y.scheduleAnimationFrame(l)}return t.center&&(e=null===e?w:void 0===e?M:e,(t=h.deepMerge({},t)).center=h.normalizeCoordinates(t.center),e!==w&&(t.center=d.transformCoordinates(e,w,t.center))),t=h.deepMerge({},s,t),(P={start:{center:y.center(void 0,null),zoom:y.zoom(),rotation:y.rotation()},end:{center:t.center,zoom:y._fix_zoom(t.zoom),rotation:Q(t.rotation,void 0,!0)},ease:t.ease,zCoord:t.zCoord,done:t.done,duration:t.duration,zoomOrigin:t.zoomOrigin,endClamp:t.endClamp}).interp=t.interp([P.start.center.x,P.start.center.y,t.zCoord?a(P.start.zoom):P.start.zoom,P.start.rotation],[P.end.center?P.end.center.x:P.start.center.x,P.end.center?P.end.center.y:P.start.center.y,t.zCoord?a(P.end.zoom):P.end.zoom,P.end.rotation]),y.geoTrigger(p.transitionstart,t),p.cancelNavigation?(P=null,y.geoTrigger(p.transitionend,t),y):(p.cancelAnimation?(t.duration=0,l(0)):n?l(n):y.scheduleAnimationFrame(l),y)},this.transitionCancel=function(t){return!(!P||!0===P.cancel&&!O)&&(P.cancel=!0,P.cancelSource=t||P.cancelSource||"",O=null,!0)},this.bounds=function(t,e){var n;if(e=null===e?w:void 0===e?M:e,void 0!==t){if(e!==w){var i=d.transformCoordinates(e,w,[{x:t.left,y:t.top},{x:t.right,y:t.bottom}]);t={left:i[0].x,top:i[0].y,right:i[1].x,bottom:i[1].y}}t=Z(t,T),n=y.zoomAndCenterFromBounds(t,T,null),y.zoom(n.zoom,void 0,void 0,void 0,"pan"),y.center(n.center,null)}return y.boundsFromZoomAndCenter(E,A,T,e,!0)},this.maxBounds=function(t,e){if(e=null===e?w:void 0===e?M:e,void 0===t)return{left:d.transformCoordinates(w,e,{x:I.left,y:0}).x,right:d.transformCoordinates(w,e,{x:I.right,y:0}).x,bottom:d.transformCoordinates(w,e,{x:0,y:I.bottom}).y,top:d.transformCoordinates(w,e,{x:0,y:I.top}).y};var n=((t.left||0)+(t.right||0))/2,i=((t.bottom||0)+(t.top||0))/2;return void 0!==t.left&&(I.left=d.transformCoordinates(e,w,{x:t.left,y:i}).x),void 0!==t.right&&(I.right=d.transformCoordinates(e,w,{x:t.right,y:i}).x),void 0!==t.bottom&&(I.bottom=d.transformCoordinates(e,w,{x:n,y:t.bottom}).y),void 0!==t.top&&(I.top=d.transformCoordinates(e,w,{x:n,y:t.top}).y),K(),y.zoom(E),y.pan({x:0,y:0}),y},this.corners=function(t){return[y.displayToGcs({x:0,y:0},t),y.displayToGcs({x:_,y:0},t),y.displayToGcs({x:_,y:b},t),y.displayToGcs({x:0,y:b},t)]},this.zoomAndCenterFromBounds=function(t,e,n){var i,r;if((n=null===n?w:void 0===n?M:n)!==w){var o=d.transformCoordinates(n,w,[{x:t.left,y:t.top},{x:t.right,y:t.bottom}]);t={left:o[0].x,top:o[0].y,right:o[1].x,bottom:o[1].y}}if(t.left>=t.right||t.bottom>=t.top)throw new Error("Invalid bounds provided");return r=y._fix_zoom(X(t,e)),i={x:((t=Z(t,e)).left+t.right)/2-u.x,y:(t.top+t.bottom)/2-u.y},n!==w&&(i=d.transformCoordinates(w,n,i)),{zoom:r,center:i}},this.boundsFromZoomAndCenter=function(t,e,n,i,r,o){var a,s,l,c,h,f;if(i=null===i?w:void 0===i?M:i,t=y._fix_zoom(t,r),f=y.unitsPerPixel(t),e=y.gcsToWorld(e,null),l=(a=_*f)/2,c=(s=b*f)/2,n?(e.x+=u.x,e.y+=u.y,(h=W(e,{width:a,height:s},n)).width=a,h.height=s,h=Z(h,n,void 0,o)):h=Z(h={left:e.x-l+u.x,right:e.x+l+u.x,bottom:e.y-c+u.y,top:e.y+c+u.y},0,void 0,o),i!==w){var p=d.transformCoordinates(w,i,[[h.left,h.top],[h.right,h.bottom]]);h={left:p[0][0],top:p[0][1],right:p[1][0],bottom:p[1][1]}}return h.width=a,h.height=s,h},this.discreteZoom=function(t){return void 0===t?L:(L!==(t=!!t)&&((L=t)&&y.zoom(Math.round(y.zoom())),y.interactor()&&y.interactor().options({discreteZoom:L})),y)},this.layers=this.children,this.sortedLayers=function(){return y.children().sort(U)},this.listSceneObjects=function(t){var e=[];return(t=t||y.sortedLayers()).forEach(function(t){if(e.indexOf(t)<0&&(e.push(t),t.children)){var n=t.children();n.length&&(e=e.concat(y.listSceneObjects(n)))}}),e},this.updateAttribution=function(){y.node().find(".geo-attribution").remove();var t=i("<div/>").addClass("geo-attribution").on("mousedown",function(t){t.stopPropagation()});return y.children().forEach(function(e){var n=e.attribution();n&&i("<span/>").addClass("geo-attribution-layer").html(n).appendTo(t)}),i("span",t).length&&t.appendTo(y.node()),y},this.screenshot=function(t,e,n,r){var o;if(!t||Array.isArray(t)||t.renderer||(e=e||t.type,n=n||t.encoderOptions,r=r||t,t=t.layers),(r=r||{}).wait){var a=Object.assign({},r,{wait:!1});o=i.Deferred();var s=function(){window.requestAnimationFrame(function(){o.resolve()})};return"idle"===r.wait?y.onIdle(s):s(),o.then(function(){return y.screenshot(t,e,n,a)})}o=i.when(),t?Array.isArray(t)||(t=[t]):(t=y.layers(),null!==r.attribution&&void 0!==r.attribution||(r.attribution=!0)),t=(t=t.filter(function(t){return y.layers().indexOf(t)>=0&&t.opacity()>0&&(!t.visible||t.visible())})).sort(U);var l=document.createElement("canvas");l.width=_,l.height=b;var u=l.getContext("2d");if(!1!==r.background&&null!==r.background){var c=r.background;void 0===r.background&&(u.fillStyle="white",u.fillRect(0,0,l.width,l.height),y.node().parents().get().reverse().forEach(function(t){(c=window.getComputedStyle(t).backgroundColor)&&"transparent"!==c&&(u.fillStyle=c,u.fillRect(0,0,l.width,l.height))}),c=window.getComputedStyle(y.node()[0]).backgroundColor),c&&"transparent"!==c&&(u.fillStyle=c,u.fillRect(0,0,l.width,l.height))}return t.forEach(function(t){var e=t.opacity();t.node().children("canvas").each(function(){var n=i(this);o=o.then(function(){t.renderer()&&"webgl"===t.renderer().api()&&t.renderer()._renderFrame(),q(u,e,n,n[0],t.node().css("mix-blend-mode"))})}),!t.node().children().not("canvas").length&&t.node().children().length||t.renderer()&&"webgl"===t.renderer().api()||(o=o.then(function(){return h.htmlToImage(t.node(),1).done(function(e){q(u,1,i([]),e,t.node().css("mix-blend-mode"))})}))}),r.attribution&&y.node().find(".geo-attribution").each(function(){var t=i(this);o=o.then(function(){return h.htmlToImage(t,1).done(function(t){q(u,1,i([]),t)})})}),r.html&&i(r.html).each(function(){var t=i(this);o=o.then(function(){return h.htmlToImage(t,1).done(function(e){q(u,1,i([]),e,t.css("mix-blend-mode"))})})}),o=o.then(function(){var t=l;if("canvas"!==e)try{l=l.toDataURL(e,n)}catch(t){console.warn("Failed to convert screenshot to output",t);var r=i.Deferred();return r.reject(),r}return y.geoTrigger(p.screenshot.ready,{canvas:t,screenshot:l}),l})},this.scheduleAnimationFrame=function(t,e){D.length||D.push(window.requestAnimationFrame(H));var n=D.indexOf(t,1);if(n>=0){if(!e)return;if(D.splice(n,1),"remove"===e)return}return D.push(t),D[0]},this._fix_zoom=function(t,e){return t=Math.round(1e6*t)/1e6,t=Math.max(Math.min(k.max,t),k.min),L&&!e&&(t=Math.round(t))<k.min&&(t=Math.ceil(k.min)),t},this.autoshareRenderer=function(t){return void 0===t?j:(j=null===t?void 0:t,y)},this._version=n(4081),this._geo=n(2257),this._init(t),this.node().on("dragover.geo",function(t){var e=t.originalEvent;y.fileReader()&&(e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy")}).on("drop.geo",function(t){var e,n,i=t.originalEvent,r=y.fileReader();function o(){y.draw()}if(r)for(i.stopPropagation(),i.preventDefault(),e=0;e<i.dataTransfer.files.length;e+=1)n=i.dataTransfer.files[e],r.canRead(n)&&r.read(n,o)}),u={x:0,y:0},this.zoomRange(t,!0),E=this._fix_zoom(E),T=Q(T),this.center(Object.assign({},t.center||A),void 0),null!==t.interactor&&this.interactor(t.interactor||m({discreteZoom:L})),G&&i(window).on("resize",J),y.geoOn([p.layerAdd,p.layerRemove],y.updateAttribution),this};a.create=function(t){"use strict";var e=a(t),i=n(5156);return e&&e.zoom?(t.data=t.data||[],t.layers=t.layers||[],t.layers.forEach(function(n){n.data=n.data||t.data,n.layer=i.create(e,n)}),e):(console.warn("Could not create map."),null)},r(a,o),t.exports=a},6238:function(t){t.exports="/* quadFeature Image vertex shader */\n\nattribute vec3 vertexPosition;\nattribute vec2 textureCoord;\nuniform float zOffset;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying highp vec2 iTextureCoord;\nuniform highp vec4 cropsource;\n\nvoid main(void) {\n gl_Position = projectionMatrix * modelViewMatrix * vec4(vertexPosition, 1.0);\n gl_Position.z += zOffset;\n if (cropsource.p > cropsource.s && cropsource.q > cropsource.t && (cropsource.p < 1.0 || cropsource.s > 0.0 || cropsource.q < 1.0 || cropsource.t > 0.0)) {\n iTextureCoord.s = textureCoord.s * (cropsource.p - cropsource.s) + cropsource.s;\n iTextureCoord.t = textureCoord.t * (cropsource.q - cropsource.t) + cropsource.t;\n } else {\n iTextureCoord = textureCoord;\n }\n}\n"},6269:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var i=n(7e3),r=n(9393);function o(t){return Math.abs(t)<=i.DF?t:t-(0,r.A)(t)*i.JM}},6298:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Xe}});var i=n(7e3),r={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},o=r,a={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},s=/[\s_\-\/\(\)]/g;function l(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),r=e.toLowerCase().replace(s,""),o=-1;++o<i.length;)if((n=i[o]).toLowerCase().replace(s,"")===r)return t[n]}function u(t){var e,n,r,s={},u=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),c={proj:"projName",datum:"datumCode",rf:function(t){s.rf=parseFloat(t)},lat_0:function(t){s.lat0=t*i.zq},lat_1:function(t){s.lat1=t*i.zq},lat_2:function(t){s.lat2=t*i.zq},lat_ts:function(t){s.lat_ts=t*i.zq},lon_0:function(t){s.long0=t*i.zq},lon_1:function(t){s.long1=t*i.zq},lon_2:function(t){s.long2=t*i.zq},alpha:function(t){s.alpha=parseFloat(t)*i.zq},gamma:function(t){s.rectified_grid_angle=parseFloat(t)*i.zq},lonc:function(t){s.longc=t*i.zq},x_0:function(t){s.x0=parseFloat(t)},y_0:function(t){s.y0=parseFloat(t)},k_0:function(t){s.k0=parseFloat(t)},k:function(t){s.k0=parseFloat(t)},a:function(t){s.a=parseFloat(t)},b:function(t){s.b=parseFloat(t)},r:function(t){s.a=s.b=parseFloat(t)},r_a:function(){s.R_A=!0},zone:function(t){s.zone=parseInt(t,10)},south:function(){s.utmSouth=!0},towgs84:function(t){s.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){s.to_meter=parseFloat(t)},units:function(t){s.units=t;var e=l(a,t);e&&(s.to_meter=e.to_meter)},from_greenwich:function(t){s.from_greenwich=t*i.zq},pm:function(t){var e=l(o,t);s.from_greenwich=(e||parseFloat(t))*i.zq},nadgrids:function(t){"@null"===t?s.datumCode="none":s.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))&&(s.axis=t)},approx:function(){s.approx=!0}};for(e in u)n=u[e],e in c?"function"==typeof(r=c[e])?r(n):s[r]=n:s[e]=n;return"string"==typeof s.datumCode&&"WGS84"!==s.datumCode&&(s.datumCode=s.datumCode.toLowerCase()),s}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var f=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},n=[{key:"getId",value:function(t){var e=t.find(function(t){return Array.isArray(t)&&"ID"===t[0]});return e&&e.length>=3?{authority:e[1],code:parseInt(e[2],10)}:null}},{key:"convertUnit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unit";if(!t||t.length<3)return{type:e,name:"unknown",conversion_factor:null};var n=t[1],i=parseFloat(t[2])||null,r=t.find(function(t){return Array.isArray(t)&&"ID"===t[0]});return{type:e,name:n,conversion_factor:i,id:r?{authority:r[1],code:parseInt(r[2],10)}:null}}},{key:"convertAxis",value:function(t){var e,n=t[1]||"Unknown",i=n.match(/^\((.)\)$/);if(i){var r=i[1].toUpperCase();if("E"===r)e="east";else if("N"===r)e="north";else{if("U"!==r)throw new Error("Unknown axis abbreviation: ".concat(r));e="up"}}else e=t[2]?t[2].toLowerCase():"unknown";var o=t.find(function(t){return Array.isArray(t)&&"ORDER"===t[0]}),a=o?parseInt(o[1],10):null,s=t.find(function(t){return Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0])});return{name:n,direction:e,unit:this.convertUnit(s),order:a}}},{key:"extractAxes",value:function(t){var e=this;return t.filter(function(t){return Array.isArray(t)&&"AXIS"===t[0]}).map(function(t){return e.convertAxis(t)}).sort(function(t,e){return(t.order||0)-(e.order||0)})}},{key:"convert",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t[0]){case"PROJCRS":n.type="ProjectedCRS",n.name=t[1],n.base_crs=t.find(function(t){return Array.isArray(t)&&"BASEGEOGCRS"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"BASEGEOGCRS"===t[0]})):null,n.conversion=t.find(function(t){return Array.isArray(t)&&"CONVERSION"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"CONVERSION"===t[0]})):null;var i=t.find(function(t){return Array.isArray(t)&&"CS"===t[0]});i&&(n.coordinate_system={type:i[1],axis:this.extractAxes(t)});var r=t.find(function(t){return Array.isArray(t)&&"LENGTHUNIT"===t[0]});if(r){var o=this.convertUnit(r);n.coordinate_system.unit=o}n.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":n.type="GeographicCRS",n.name=t[1];var a=t.find(function(t){return Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0])});if(a){var s=this.convert(a);"ENSEMBLE"===a[0]?n.datum_ensemble=s:n.datum=s;var l=t.find(function(t){return Array.isArray(t)&&"PRIMEM"===t[0]});l&&"Greenwich"!==l[1]&&(s.prime_meridian={name:l[1],longitude:parseFloat(l[2])})}n.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},n.id=this.getId(t);break;case"DATUM":n.type="GeodeticReferenceFrame",n.name=t[1],n.ellipsoid=t.find(function(t){return Array.isArray(t)&&"ELLIPSOID"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"ELLIPSOID"===t[0]})):null;break;case"ENSEMBLE":n.type="DatumEnsemble",n.name=t[1],n.members=t.filter(function(t){return Array.isArray(t)&&"MEMBER"===t[0]}).map(function(t){return{type:"DatumEnsembleMember",name:t[1],id:e.getId(t)}});var u=t.find(function(t){return Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]});u&&(n.accuracy=parseFloat(u[1]));var c=t.find(function(t){return Array.isArray(t)&&"ELLIPSOID"===t[0]});c&&(n.ellipsoid=this.convert(c)),n.id=this.getId(t);break;case"ELLIPSOID":n.type="Ellipsoid",n.name=t[1],n.semi_major_axis=parseFloat(t[2]),n.inverse_flattening=parseFloat(t[3]),t.find(function(t){return Array.isArray(t)&&"LENGTHUNIT"===t[0]})&&this.convert(t.find(function(t){return Array.isArray(t)&&"LENGTHUNIT"===t[0]}),n);break;case"CONVERSION":n.type="Conversion",n.name=t[1],n.method=t.find(function(t){return Array.isArray(t)&&"METHOD"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"METHOD"===t[0]})):null,n.parameters=t.filter(function(t){return Array.isArray(t)&&"PARAMETER"===t[0]}).map(function(t){return e.convert(t)});break;case"METHOD":n.type="Method",n.name=t[1],n.id=this.getId(t);break;case"PARAMETER":n.type="Parameter",n.name=t[1],n.value=parseFloat(t[2]),n.unit=this.convertUnit(t.find(function(t){return Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0])})),n.id=this.getId(t);break;case"BOUNDCRS":n.type="BoundCRS";var d=t.find(function(t){return Array.isArray(t)&&"SOURCECRS"===t[0]});if(d){var h=d.find(function(t){return Array.isArray(t)});n.source_crs=h?this.convert(h):null}var f=t.find(function(t){return Array.isArray(t)&&"TARGETCRS"===t[0]});if(f){var p=f.find(function(t){return Array.isArray(t)});n.target_crs=p?this.convert(p):null}var m=t.find(function(t){return Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]});n.transformation=m?this.convert(m):null;break;case"ABRIDGEDTRANSFORMATION":if(n.type="Transformation",n.name=t[1],n.method=t.find(function(t){return Array.isArray(t)&&"METHOD"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"METHOD"===t[0]})):null,n.parameters=t.filter(function(t){return Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])}).map(function(t){return"PARAMETER"===t[0]?e.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0}),7===n.parameters.length){var g=n.parameters[6];"Scale difference"===g.name&&(g.value=Math.round(1e12*(g.value-1))/1e6)}n.id=this.getId(t);break;case"AXIS":n.coordinate_system||(n.coordinate_system={type:"unspecified",axis:[]}),n.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":var y=this.convertUnit(t,"LinearUnit");n.coordinate_system&&n.coordinate_system.axis&&n.coordinate_system.axis.forEach(function(t){t.unit||(t.unit=y)}),y.conversion_factor&&1!==y.conversion_factor&&n.semi_major_axis&&(n.semi_major_axis={value:n.semi_major_axis,unit:y});break;default:n.keyword=t[0]}return n}}],(e=null)&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),p=f;function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function y(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=m(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}function v(t,e,n){return e=b(e),function(t,e){if(e&&("object"==m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,x()?Reflect.construct(e,n||[],b(t).constructor):e.apply(t,n))}function x(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(x=function(){return!!t})()}function _(){return _="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},_.apply(null,arguments)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}var M=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),n=e,r=[{key:"convert",value:function(t){var n,i,r,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(n=e,i="convert",r=this,a=_(b(1&(o=2)?n.prototype:n),i,r),2&o&&"function"==typeof a?function(t){return a.apply(r,t)}:a)([t,s]),s.coordinate_system&&"Cartesian"===s.coordinate_system.subtype&&delete s.coordinate_system,s.usage&&delete s.usage,s}}],(i=null)&&g(n.prototype,i),r&&g(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(p),A=M;function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function T(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,S(i.key),i)}}function S(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=E(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}function C(t,e,n){return e=O(e),function(t,e){if(e&&("object"==E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(k=function(){return!!t})()}function P(){return P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=O(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},P.apply(null,arguments)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function L(t,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},L(t,e)}var R=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),C(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&L(t,e)}(e,t),n=e,r=[{key:"convert",value:function(t){var n,i,r,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(n=e,i="convert",r=this,a=P(O(1&(o=2)?n.prototype:n),i,r),2&o&&"function"==typeof a?function(t){return a.apply(r,t)}:a)([t,s]);var l=t.find(function(t){return Array.isArray(t)&&"CS"===t[0]});l&&(s.coordinate_system={subtype:l[1],axis:this.extractAxes(t)});var u=t.find(function(t){return Array.isArray(t)&&"USAGE"===t[0]});if(u){var c=u.find(function(t){return Array.isArray(t)&&"SCOPE"===t[0]}),d=u.find(function(t){return Array.isArray(t)&&"AREA"===t[0]}),h=u.find(function(t){return Array.isArray(t)&&"BBOX"===t[0]});s.usage={},c&&(s.usage.scope=c[1]),d&&(s.usage.area=d[1]),h&&(s.usage.bbox=h.slice(1))}return s}}],(i=null)&&T(n.prototype,i),r&&T(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(p),I=R;function F(t){var e=function(t){return t.find(function(t){return Array.isArray(t)&&"USAGE"===t[0]})?"2019":(t.find(function(t){return Array.isArray(t)&&"CS"===t[0]})||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015")}(t);return("2019"===e?I:A).convert(t)}var D=function(t){var e=new U(t);return e.output()},G=1,j=/\s/,N=/[A-Za-z]/,B=/[A-Za-z84_]/,z=/[,\]]/,V=/[\d\.E\-\+]/;function U(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=G}function q(t,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var i=e?{}:t,r=n.reduce(function(t,e){return H(e,t),t},i);e&&(t[e]=r)}function H(t,e){if(Array.isArray(t)){var n=t.shift();if("PARAMETER"===n&&(n=t.shift()),1===t.length)return Array.isArray(t[0])?(e[n]={},void H(t[0],e[n])):void(e[n]=t[0]);if(t.length)if("TOWGS84"!==n){if("AXIS"===n)return n in e||(e[n]=[]),void e[n].push(t);var i;switch(Array.isArray(n)||(e[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[n]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&H(t[2],e[n]));case"SPHEROID":case"ELLIPSOID":return e[n]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&H(t[3],e[n]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void q(e,n,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],q(e,n,t),void(e[n].type=n);default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return H(t,e[n]);return q(e,n,t)}}else e[n]=t;else e[n]=!0}else e[t]=!0}U.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;j.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case G:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},U.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(z.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},U.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=G)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=G,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},U.prototype.number=function(t){if(!V.test(t)){if(z.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},U.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},U.prototype.keyword=function(t){if(B.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=G)}if(!z.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},U.prototype.neutral=function(t){if(N.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(V.test(t))return this.word=t,void(this.state=3);if(!z.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},U.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function W(t){return.017453292519943295*t}function X(t){var e=(t.projName||"").toLowerCase().replace(/_/g," ");t.long0||!t.longc||"albers conic equal area"!==e&&"lambert azimuthal equal area"!==e||(t.long0=t.longc),t.lat_ts||!t.lat1||"stereographic south pole"!==e&&"polar stereographic (variant b)"!==e?t.lat_ts||!t.lat0||"polar stereographic"!==e&&"polar stereographic (variant a)"!==e||(t.lat_ts=t.lat0,t.lat0=W(t.lat0>0?90:-90),delete t.lat1):(t.lat0=W(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function Q(t){var e={units:null,to_meter:void 0};return"string"==typeof t?(e.units=t.toLowerCase(),"metre"===e.units&&(e.units="meter"),"meter"===e.units&&(e.to_meter=1)):t&&t.name&&(e.units=t.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.to_meter=t.conversion_factor),e}function Z(t){return"object"===K(t)?t.value*t.unit.conversion_factor:t}function Y(t,e){t.ellipsoid.radius?(e.a=t.ellipsoid.radius,e.rf=0):(e.a=Z(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?e.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(e.rf=e.a/(e.a-Z(t.ellipsoid.semi_minor_axis))))}function J(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&"object"===K(t)?"BoundCRS"===t.type?(J(t.source_crs,e),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?e.nadgrids=t.transformation.parameters[0].value:e.datum_params=t.transformation.parameters.map(function(t){return t.value})),e):(Object.keys(t).forEach(function(n){var i=t[n];if(null!==i)switch(n){case"name":if(e.srsCode)break;e.name=i,e.srsCode=i;break;case"type":"GeographicCRS"===i?e.projName="longlat":"ProjectedCRS"===i&&t.conversion&&t.conversion.method&&(e.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":i.ellipsoid&&(e.ellps=i.ellipsoid.name,Y(i,e)),i.prime_meridian&&(e.from_greenwich=i.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=i.name,Y(i,e);break;case"prime_meridian":e.long0=(i.longitude||0)*Math.PI/180;break;case"coordinate_system":if(i.axis)if(e.axis=i.axis.map(function(t){var e=t.direction;if("east"===e)return"e";if("north"===e)return"n";if("west"===e)return"w";if("south"===e)return"s";throw new Error("Unknown axis direction: ".concat(e))}).join("")+"u",i.unit){var r=Q(i.unit),o=r.units,a=r.to_meter;e.units=o,e.to_meter=a}else if(i.axis[0]&&i.axis[0].unit){var s=Q(i.axis[0].unit),l=s.units,u=s.to_meter;e.units=l,e.to_meter=u}break;case"id":i.authority&&i.code&&(e.title=i.authority+":"+i.code);break;case"conversion":i.method&&i.method.name&&(e.projName=i.method.name),i.parameters&&i.parameters.forEach(function(t){var n=t.name.toLowerCase().replace(/\s+/g,"_"),i=t.value;t.unit&&t.unit.conversion_factor?e[n]=i*t.unit.conversion_factor:"degree"===t.unit?e[n]=i*Math.PI/180:e[n]=i});break;case"unit":i.name&&(e.units=i.name.toLowerCase(),"metre"===e.units&&(e.units="meter")),i.conversion_factor&&(e.to_meter=i.conversion_factor);break;case"base_crs":J(i,e),e.datumCode=i.id?i.id.authority+"_"+i.id.code:i.name}}),void 0!==e.latitude_of_false_origin&&(e.lat0=e.latitude_of_false_origin),void 0!==e.longitude_of_false_origin&&(e.long0=e.longitude_of_false_origin),void 0!==e.latitude_of_standard_parallel&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),void 0!==e.latitude_of_1st_standard_parallel&&(e.lat1=e.latitude_of_1st_standard_parallel),void 0!==e.latitude_of_2nd_standard_parallel&&(e.lat2=e.latitude_of_2nd_standard_parallel),void 0!==e.latitude_of_projection_centre&&(e.lat0=e.latitude_of_projection_centre),void 0!==e.longitude_of_projection_centre&&(e.longc=e.longitude_of_projection_centre),void 0!==e.easting_at_false_origin&&(e.x0=e.easting_at_false_origin),void 0!==e.northing_at_false_origin&&(e.y0=e.northing_at_false_origin),void 0!==e.latitude_of_natural_origin&&(e.lat0=e.latitude_of_natural_origin),void 0!==e.longitude_of_natural_origin&&(e.long0=e.longitude_of_natural_origin),void 0!==e.longitude_of_origin&&(e.long0=e.longitude_of_origin),void 0!==e.false_easting&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),void 0!==e.false_northing&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),void 0!==e.standard_parallel_1&&(e.lat1=e.standard_parallel_1),void 0!==e.standard_parallel_2&&(e.lat2=e.standard_parallel_2),void 0!==e.scale_factor_at_natural_origin&&(e.k0=e.scale_factor_at_natural_origin),void 0!==e.scale_factor_at_projection_centre&&(e.k0=e.scale_factor_at_projection_centre),void 0!==e.scale_factor_on_pseudo_standard_parallel&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),void 0!==e.azimuth&&(e.alpha=e.azimuth),void 0!==e.azimuth_at_projection_centre&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),X(e),e):t}function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}var tt=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function et(t){for(var e=Object.keys(t),n=0,i=e.length;n<i;++n){var r=e[n];-1!==tt.indexOf(r)&&nt(t[r]),"object"===$(t[r])&&et(t[r])}}function nt(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"===$(t.PROJECTION)?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var n="",i=0,r=t.AXIS.length;i<r;++i){var o=[t.AXIS[i][0].toLowerCase(),t.AXIS[i][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?n+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?n+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?n+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(n+="w")}2===n.length&&(n+="u"),3===n.length&&(t.axis=n)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var a=t.GEOGCS;function s(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(a=t),a&&(a.DATUM?t.datumCode=a.DATUM.name.toLowerCase():t.datumCode=a.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(t.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=a.DATUM.SPHEROID.a,t.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(t.datum_params=a.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=W(t.rectified_grid_angle));[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",W],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",W],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",W],["lat0","latitude_of_origin",W],["lat0","standard_parallel_1",W],["lat1","standard_parallel_1",W],["lat2","standard_parallel_2",W],["azimuth","Azimuth"],["alpha","azimuth",W],["srsCode","name"]].forEach(function(e){return n=t,r=(i=e)[0],o=i[1],void(!(r in n)&&o in n&&(n[r]=n[o],3===i.length&&(n[r]=i[2](n[r]))));var n,i,r,o}),X(t)}function it(t){if("object"===$(t))return J(t);var e=function(t){var e=t.toUpperCase();return e.includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1")}(t),n=D(t);if("WKT2"===e)return J(F(n));var i=n[0],r={};return H(n,r),et(r),r[i]}function rt(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?rt[t]=u(arguments[1]):rt[t]=it(arguments[1]):rt[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?rt.apply(e,t):rt(t)});if("string"==typeof t){if(t in rt)return rt[t]}else"EPSG"in t?rt["EPSG:"+t.EPSG]=t:"ESRI"in t?rt["ESRI:"+t.ESRI]=t:"IAU2000"in t?rt["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!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");for(var e=1;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");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"]}(rt);var ot=rt;function at(t){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(t)}var st=["3857","900913","3785","102113"];var lt=function(t){if(!function(t){return"string"==typeof t}(t))return"projName"in t?t:it(t);if(function(t){return t in ot}(t))return ot[t];if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"===at(t)&&!("srsCode"in t)}(t)){var e=it(t);if(function(t){var e=l(t,"authority");if(e){var n=l(e,"epsg");return n&&st.indexOf(n)>-1}}(e))return ot["EPSG:3857"];var n=function(t){var e=l(t,"extension");if(e)return l(e,"proj4")}(e);return n?u(n):e}return function(t){return"+"===t[0]}(t)?u(t):void 0};function ut(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}var ct=n(7272),dt={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},ht=dt.WGS84;var ft={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-8.393,0.749,-10.276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"374,150,588"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"}};for(var pt in ft){var mt=ft[pt];mt.datumName&&(ft[mt.datumName]=mt)}var gt=ft;var yt=function(t,e,n,r,o,a,s){var l={};return l.datum_type=void 0===t||"none"===t?i.A1:i.xK,e&&(l.datum_params=e.map(parseFloat),0===l.datum_params[0]&&0===l.datum_params[1]&&0===l.datum_params[2]||(l.datum_type=i.a8),l.datum_params.length>3&&(0===l.datum_params[3]&&0===l.datum_params[4]&&0===l.datum_params[5]&&0===l.datum_params[6]||(l.datum_type=i.Y$,l.datum_params[3]*=i._3,l.datum_params[4]*=i._3,l.datum_params[5]*=i._3,l.datum_params[6]=l.datum_params[6]/1e6+1))),s&&(l.datum_type=i.G9,l.grids=s),l.a=n,l.b=r,l.es=o,l.ep2=a,l};function vt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,u=Object.create(l.prototype);return xt(u,"_invoke",function(n,i,r){var o,s,l,u=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,s=0,l=t,h.n=n,a}};function f(n,i){for(s=n,l=i,e=0;!d&&u&&!r&&e<c.length;e++){var r,o=c[e],f=h.p,p=o[2];n>3?(r=p===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,h.v=i,h.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,h.n=p,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&f(c,p),s=c,l=p;(e=s<2?t:l)||!d;){o||(s?s<3?(s>1&&(h.n=-1),f(s,l)):h.n=l:h.v=l);try{if(u=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?l:n.call(i,h))!==a)break}catch(e){o=t,s=1,l=e}finally{u=1}}return{value:e,done:d}}}(n,r,o),!0),u}var a={};function s(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(xt(e={},i,function(){return this}),e),d=u.prototype=s.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,xt(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=u,xt(d,"constructor",u),xt(u,"constructor",l),l.displayName="GeneratorFunction",xt(u,r,"GeneratorFunction"),xt(d),xt(d,r,"Generator"),xt(d,i,function(){return this}),xt(d,"toString",function(){return"[object Generator]"}),(vt=function(){return{w:o,m:h}})()}function xt(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}xt=function(t,e,n,i){function o(e,n){xt(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},xt(t,e,n,i)}function _t(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var bt={};function wt(t,e){return Mt.apply(this,arguments)}function Mt(){var t;return t=vt().m(function t(e,n){var i,r,o,a,s,l,u,c,d,h,f,p,m,g,y,v,x,_;return vt().w(function(t){for(;;)switch(t.n){case 0:return i=[],t.n=1,n.getImageCount();case 1:r=t.v,o=r-1;case 2:if(!(o>=0)){t.n=6;break}return t.n=3,n.getImage(o);case 3:return a=t.v,t.n=4,a.readRasters();case 4:for(s=t.v,l=s,u=[a.getWidth(),a.getHeight()],c=a.getBoundingBox().map(Et),d=[a.fileDirectory.ModelPixelScale[0],a.fileDirectory.ModelPixelScale[1]].map(Et),h=c[0]+(u[0]-1)*d[0],f=c[3]-(u[1]-1)*d[1],p=l[0],m=l[1],g=[],y=u[1]-1;y>=0;y--)for(v=u[0]-1;v>=0;v--)x=y*u[0]+v,g.push([-Tt(m[x]),Tt(p[x])]);i.push({del:d,lim:u,ll:[-h,f],cvs:g});case 5:o--,t.n=2;break;case 6:return _={header:{nSubgrids:r},subgrids:i},bt[e]=_,t.a(2,_)}},t)}),Mt=function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function a(t){_t(o,i,r,a,s,"next",t)}function s(t){_t(o,i,r,a,s,"throw",t)}a(void 0)})},Mt.apply(this,arguments)}function At(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:bt[t]||null,isNull:!1}}function Et(t){return t*Math.PI/180}function Tt(t){return t/3600*Math.PI/180}function St(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function Ct(t){return t.map(function(t){return[Tt(t.longitudeShift),Tt(t.latitudeShift)]})}function kt(t,e,n){return{name:St(t,e+8,e+16).trim(),parent:St(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function Pt(t,e,n,i,r){var o=e+176,a=16;!1===r&&(a=8);for(var s=[],l=0;l<n.gridNodeCount;l++){var u={latitudeShift:t.getFloat32(o+l*a,i),longitudeShift:t.getFloat32(o+l*a+4,i)};!1!==r&&(u.latitudeAccuracy=t.getFloat32(o+l*a+8,i),u.longitudeAccuracy=t.getFloat32(o+l*a+12,i)),s.push(u)}return s}function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function Lt(t,e){if(!(this instanceof Lt))return new Lt(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,e=e||function(t){if(t)throw t};var n=lt(t);if("object"===Ot(n)){var r=Lt.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var o=l(gt,n.datumCode);o&&(n.datum_params=n.datum_params||(o.towgs84?o.towgs84.split(","):null),n.ellps=o.ellipse,n.datumName=o.datumName?o.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var a,s,u,c,d,h,f,p=function(t,e,n,r,o){if(!t){var a=l(dt,r);a||(a=ht),t=a.a,e=a.b,n=a.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<i.H0)&&(o=!0,e=t),{a:t,b:e,rf:n,sphere:o}}(n.a,n.b,n.rf,n.ellps,n.sphere),m=(a=p.a,s=p.b,p.rf,u=n.R_A,h=((c=a*a)-(d=s*s))/c,f=0,u?(c=(a*=1-h*(i.bA+h*(i.Q1+h*i.ej)))*a,h=0):f=Math.sqrt(h),{es:h,e:f,ep2:(c-d)/d}),g=function(t){return void 0===t?null:t.split(",").map(At)}(n.nadgrids),y=n.datum||yt(n.datumCode,n.datum_params,p.a,p.b,m.es,m.ep2,g);ut(this,n),ut(this,r),this.a=p.a,this.b=p.b,this.rf=p.rf,this.sphere=p.sphere,this.es=m.es,this.e=m.e,this.ep2=m.ep2,this.datum=y,"init"in this&&"function"==typeof this.init&&this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}Lt.projections=ct.Ay,Lt.projections.start();var Rt=Lt,It=n(3356),Ft=n(6269);function Dt(t){return t===i.a8||t===i.Y$}function Gt(t,e,n){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var r={x:-n.x,y:n.y},o={x:Number.NaN,y:Number.NaN},a=[];t:for(var s=0;s<t.grids.length;s++){var l=t.grids[s];if(a.push(l.name),l.isNull){o=r;break}if(null!==l.grid)for(var u=l.grid.subgrids,c=0,d=u.length;c<d;c++){var h=u[c],f=(Math.abs(h.del[1])+Math.abs(h.del[0]))/1e4,p=h.ll[0]-f,m=h.ll[1]-f,g=h.ll[0]+(h.lim[0]-1)*h.del[0]+f,y=h.ll[1]+(h.lim[1]-1)*h.del[1]+f;if(!(m>r.y||p>r.x||y<r.y||g<r.x)&&(o=jt(r,e,h),!isNaN(o.x)))break t}else if(l.mandatory)return console.log("Unable to find mandatory grid '"+l.name+"'"),-1}return isNaN(o.x)?(console.log("Failed to find a grid shift table for location '"+-r.x*i.dX+" "+r.y*i.dX+" tried: '"+a+"'"),-1):(n.x=-o.x,n.y=o.y,0)}function jt(t,e,n){var i={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return i;var r={x:t.x,y:t.y};r.x-=n.ll[0],r.y-=n.ll[1],r.x=(0,Ft.A)(r.x-Math.PI)+Math.PI;var o=Nt(r,n);if(e){if(isNaN(o.x))return i;o.x=r.x-o.x,o.y=r.y-o.y;var a,s,l=9;do{if(s=Nt(o,n),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:r.x-(s.x+o.x),y:r.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(l--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=(0,Ft.A)(o.x+n.ll[0]),i.y=o.y+n.ll[1]}else isNaN(o.x)||(i.x=t.x+o.x,i.y=t.y+o.y);return i}function Nt(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r=Math.floor(i.x),o=Math.floor(i.y),a=i.x-1*r,s=i.y-1*o,l={x:Number.NaN,y:Number.NaN};if(r<0||r>=e.lim[0])return l;if(o<0||o>=e.lim[1])return l;n=o*e.lim[0]+r;var u=e.cvs[n][0],c=e.cvs[n][1];n++;var d=e.cvs[n][0],h=e.cvs[n][1];n+=e.lim[0];var f=e.cvs[n][0],p=e.cvs[n][1];n--;var m=e.cvs[n][0],g=e.cvs[n][1],y=a*s,v=a*(1-s),x=(1-a)*(1-s),_=(1-a)*s;return l.x=x*u+v*d+_*m+y*f,l.y=x*c+v*h+_*g+y*p,l}function Bt(t,e,n){var i,r,o,a=n.x,s=n.y,l=n.z||0,u={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(i=a,r=-1!=="ew".indexOf(t.axis[o])?"x":"y"):1===o?(i=s,r=-1!=="ns".indexOf(t.axis[o])?"y":"x"):(i=l,r="z"),t.axis[o]){case"e":case"n":u[r]=i;break;case"w":case"s":u[r]=-i;break;case"u":void 0!==n[r]&&(u.z=i);break;case"d":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}function zt(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function Vt(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Ut(t,e,n,r){var o,a=void 0!==(n=Array.isArray(n)?zt(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(t){Vt(t.x),Vt(t.y)}(n),t.datum&&e.datum&&function(t,e){return(t.datum.datum_type===i.a8||t.datum.datum_type===i.Y$||t.datum.datum_type===i.G9)&&"WGS84"!==e.datumCode||(e.datum.datum_type===i.a8||e.datum.datum_type===i.Y$||e.datum.datum_type===i.G9)&&"WGS84"!==t.datumCode}(t,e)&&(n=Ut(t,o=new Rt("WGS84"),n,r),t=o),r&&"enu"!==t.axis&&(n=Bt(t,!1,n)),"longlat"===t.projName)n={x:n.x*i.zq,y:n.y*i.zq,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),!(n=t.inverse(n)))return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=function(t,e,n){if((0,It.OI)(t,e))return n;if(t.datum_type===i.A1||e.datum_type===i.A1)return n;var r=t.a,o=t.es;if(t.datum_type===i.G9){if(0!==Gt(t,!1,n))return;r=i.bv,o=i.gS}var a=e.a,s=e.b,l=e.es;if(e.datum_type===i.G9&&(a=i.bv,s=i.zp,l=i.gS),o===l&&r===a&&!Dt(t.datum_type)&&!Dt(e.datum_type))return n;if(n=(0,It.jX)(n,o,r),Dt(t.datum_type)&&(n=(0,It.mj)(n,t.datum_type,t.datum_params)),Dt(e.datum_type)&&(n=(0,It.Fs)(n,e.datum_type,e.datum_params)),n=(0,It.Rw)(n,l,a,s),e.datum_type===i.G9&&0!==Gt(e,!0,n))return;return n}(t.datum,e.datum,n),n)return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*i.dX,y:n.y*i.dX,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),r&&"enu"!==e.axis?Bt(e,!0,n):(n&&!a&&delete n.z,n)}function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}var Ht=Rt("WGS84");function Wt(t,e,n,i){var r,o,a;return Array.isArray(n)?(r=Ut(t,e,n,i)||{x:NaN,y:NaN},n.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name?"number"==typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(o=Ut(t,e,n,i),2===(a=Object.keys(n)).length||a.forEach(function(i){if(void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;o[i]=n[i]}),o)}function Xt(t){return t instanceof Rt?t:"object"===qt(t)&&"oProj"in t?t.oProj:Rt(t)}var Kt=function(t,e,n){var i,r,o,a=!1;return void 0===e?(r=Xt(t),i=Ht,a=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,r=Xt(t),i=Ht,a=!0),i||(i=Xt(t)),r||(r=Xt(e)),n?Wt(i,r,n):(o={forward:function(t,e){return Wt(i,r,t,e)},inverse:function(t,e){return Wt(r,i,t,e)}},a&&(o.oProj=r),o)},Qt="AJSAJS",Zt="AFAFAF",Yt=65,Jt=73,$t=79,te=86,ee=90,ne={forward:ie,inverse:function(t){var e=se(ce(t.toUpperCase()));if(e.lat&&e.lon)return[e.lon,e.lat,e.lon,e.lat];return[e.left,e.bottom,e.right,e.top]},toPoint:re};function ie(t,e){return e=e||5,function(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(f=t.easting,p=t.northing,m=t.zoneNumber,g=ue(m),y=Math.floor(f/1e5),v=Math.floor(p/1e5)%20,r=y,o=v,a=g,s=a-1,l=Qt.charCodeAt(s),u=Zt.charCodeAt(s),c=l+r-1,d=u+o,h=!1,c>ee&&(c=c-ee+Yt-1,h=!0),(c===Jt||l<Jt&&c>Jt||(c>Jt||l<Jt)&&h)&&c++,(c===$t||l<$t&&c>$t||(c>$t||l<$t)&&h)&&++c===Jt&&c++,c>ee&&(c=c-ee+Yt-1),d>te?(d=d-te+Yt-1,h=!0):h=!1,(d===Jt||u<Jt&&d>Jt||(d>Jt||u<Jt)&&h)&&d++,(d===$t||u<$t&&d>$t||(d>$t||u<$t)&&h)&&++d===Jt&&d++,d>te&&(d=d-te+Yt-1),String.fromCharCode(c)+String.fromCharCode(d))+n.substr(n.length-5,e)+i.substr(i.length-5,e);var r,o,a,s,l,u,c,d,h;var f,p,m,g,y,v}(function(t){var e,n,i,r,o,a,s,l,u=t.lat,c=t.lon,d=6378137,h=.00669438,f=.9996,p=oe(u),m=oe(c);l=Math.floor((c+180)/6)+1,180===c&&(l=60);u>=56&&u<64&&c>=3&&c<12&&(l=32);u>=72&&u<84&&(c>=0&&c<9?l=31:c>=9&&c<21?l=33:c>=21&&c<33?l=35:c>=33&&c<42&&(l=37));s=oe(6*(l-1)-180+3),e=h/(1-h),n=d/Math.sqrt(1-h*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)*(m-s),a=d*((1-h/4-3*h*h/64-5*h*h*h/256)*p-(3*h/8+3*h*h/32+45*h*h*h/1024)*Math.sin(2*p)+(15*h*h/256+45*h*h*h/1024)*Math.sin(4*p)-35*h*h*h/3072*Math.sin(6*p));var g=f*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,y=f*(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));u<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(g),zoneNumber:l,zoneLetter:le(u)}}({lat:t[1],lon:t[0]}),e)}function re(t){var e=se(ce(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function oe(t){return t*(Math.PI/180)}function ae(t){return t/Math.PI*180}function se(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var o,a,s,l,u,c,d,h,f,p=.9996,m=6378137,g=.00669438,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=n-5e5,x=e;i<"N"&&(x-=1e7),d=6*(r-1)-180+3,o=.006739496752268451,f=(h=x/p/6367449.145945056)+(3*y/2-27*y*y*y/32)*Math.sin(2*h)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*h)+151*y*y*y/96*Math.sin(6*h),a=m/Math.sqrt(1-g*Math.sin(f)*Math.sin(f)),s=Math.tan(f)*Math.tan(f),l=o*Math.cos(f)*Math.cos(f),u=.99330562*m/Math.pow(1-g*Math.sin(f)*Math.sin(f),1.5),c=v/(a*p);var _=f-a*Math.tan(f)/u*(c*c/2-(5+3*s+10*l-4*l*l-9*o)*c*c*c*c/24+(61+90*s+298*l+45*s*s-1.6983531815716497-3*l*l)*c*c*c*c*c*c/720);_=ae(_);var b,w=(c-(1+2*s+l)*c*c*c/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*c*c*c*c*c/120)/Math.cos(f);if(w=d+ae(w),t.accuracy){var M=se({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});b={top:M.lat,right:M.lon,bottom:_,left:w}}else b={lat:_,lon:w};return b}function le(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function ue(t){var e=t%6;return 0===e&&(e=6),e}function ce(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(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var s=t.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+t;i=t.substring(o,o+=2);for(var l=ue(a),u=function(t,e){var n=Qt.charCodeAt(e-1),i=1e5,r=!1;for(;n!==t.charCodeAt(0);){if(++n===Jt&&n++,n===$t&&n++,n>ee){if(r)throw"Bad character: "+t;n=Yt,r=!0}i+=1e5}return i}(i.charAt(0),l),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var n=Zt.charCodeAt(e-1),i=0,r=!1;for(;n!==t.charCodeAt(0);){if(++n===Jt&&n++,n===$t&&n++,n>te){if(r)throw"Bad character: "+t;n=Yt,r=!0}i+=1e5}return i}(i.charAt(1),l);c<de(s);)c+=2e6;var d=n-o;if(d%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 h,f,p,m=d/2,g=0,y=0;return m>0&&(h=1e5/Math.pow(10,m),f=t.substring(o,o+m),g=parseFloat(f)*h,p=t.substring(o+m),y=parseFloat(p)*h),{easting:g+u,northing:y+c,zoneLetter:s,zoneNumber:a,accuracy:h}}function de(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(e>=0)return e;throw"Invalid zone letter: "+t}function he(t){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(t)}function fe(t,e,n){if(!(this instanceof fe))return new fe(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"===he(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]),this.y=parseFloat(i[1]),this.z=parseFloat(i[2])||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}fe.fromMGRS=function(t){return new fe(re(t))},fe.prototype.toMGRS=function(t){return ie([this.x,this.y],t)};var pe=fe,me=n(5518),ge=n(3426),ye=n(2924),ve=n(6789),xe=n(3084),_e=n(9872),be=n(431),we=n(993),Me=n(6167),Ae=n(3245),Ee=n(8506),Te=n(4894),Se=n(5106),Ce=n(8104),ke=n(780),Pe=n(741),Oe=n(6731),Le=n(969),Re=n(1034),Ie=n(6155),Fe=n(7724),De=n(6671),Ge=n(6014),je=n(6145),Ne=n(2513),Be=n(8067),ze=n(5904),Ve=n(251),Ue=n(1017),qe=n(8197),He=n(9265);var We=Object.assign(Kt,{defaultDatum:"WGS84",Proj:Rt,WGS84:new Rt("WGS84"),Point:pe,toPoint:zt,defs:ot,nadgrid:function(t,e,n){return e instanceof ArrayBuffer?function(t,e,n){var i=!0;void 0!==n&&!1===n.includeErrorFields&&(i=!1);var r=new DataView(e),o=function(t){var e=t.getInt32(8,!1);if(11===e)return!1;e=t.getInt32(8,!0),11!==e&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(r),a=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:St(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(r,o),s=function(t,e,n,i){for(var r=176,o=[],a=0;a<e.nSubgrids;a++){var s=kt(t,r,n),l=Pt(t,r,s,n,i),u=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),c=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);o.push({ll:[Tt(s.lowerLongitude),Tt(s.lowerLatitude)],del:[Tt(s.longitudeInterval),Tt(s.latitudeInterval)],lim:[u,c],count:s.gridNodeCount,cvs:Ct(l)});var d=16;!1===i&&(d=8),r+=176+s.gridNodeCount*d}return o}(r,a,o,i),l={header:a,subgrids:s};return bt[t]=l,l}(t,e,n):{ready:wt(t,e)}},transform:Ut,mgrs:ne,version:"__VERSION__"});!function(t){t.Proj.projections.add(me.default),t.Proj.projections.add(ge.default),t.Proj.projections.add(ye.default),t.Proj.projections.add(ve.default),t.Proj.projections.add(xe.default),t.Proj.projections.add(_e.default),t.Proj.projections.add(be.default),t.Proj.projections.add(we.default),t.Proj.projections.add(Me.default),t.Proj.projections.add(Ae.default),t.Proj.projections.add(Ee.default),t.Proj.projections.add(Te.default),t.Proj.projections.add(Se.default),t.Proj.projections.add(Ce.default),t.Proj.projections.add(ke.default),t.Proj.projections.add(Pe.default),t.Proj.projections.add(Oe.default),t.Proj.projections.add(Le.default),t.Proj.projections.add(Re.default),t.Proj.projections.add(Ie.default),t.Proj.projections.add(Fe.default),t.Proj.projections.add(De.default),t.Proj.projections.add(Ge.default),t.Proj.projections.add(je.default),t.Proj.projections.add(Ne.default),t.Proj.projections.add(Be.default),t.Proj.projections.add(ze.default),t.Proj.projections.add(Ve.default),t.Proj.projections.add(Ue.default),t.Proj.projections.add(qe.default),t.Proj.projections.add(He.default)}(We);var Xe=We},6321:function(t){t.exports=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}},6333:function(t){t.exports=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}},6396:function(t){t.exports=function(){var t=new Float32Array(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},6409:function(t){var e={layerAdd:"geo_layerAdd",layerRemove:"geo_layerRemove",layerMove:"geo_layerMove",zoom:"geo_zoom",rotate:"geo_rotate",pan:"geo_pan",resize:"geo_resize",draw:"geo_draw",drawEnd:"geo_drawEnd",unhidden:"geo_unhidden",hidden:"geo_hidden",mousemove:"geo_mousemove",mouseclick:"geo_mouseclick",mouseup:"geo_mouseup",mousedown:"geo_mousedown",brush:"geo_brush",brushend:"geo_brushend",brushstart:"geo_brushstart",select:"geo_select",zoomselect:"geo_zoomselect",unzoomselect:"geo_unzoomselect",actiondown:"geo_actiondown",actionmove:"geo_actionmove",actionup:"geo_actionup",actionselection:"geo_actionselection",actionwheel:"geo_actionwheel",keyaction:"geo_keyaction",transitionstart:"geo_transitionstart",transitionend:"geo_transitionend",transitioncancel:"geo_transitioncancel",parallelprojection:"geo_parallelprojection",feature:{mousemove:"geo_feature_mousemove",mouseover:"geo_feature_mouseover",mouseover_order:"geo_feature_mouseover_order",mouseout:"geo_feature_mouseout",mouseon:"geo_feature_mouseon",mouseoff:"geo_feature_mouseoff",mouseclick:"geo_feature_mouseclick",mouseclick_order:"geo_feature_mouseclick_order",mousedown:"geo_feature_mousedown",mouseup:"geo_feature_mouseup",brushend:"geo_feature_brushend",brush:"geo_feature_brush"},pixelmap:{prepared:"geo_pixelmap_prepared"},screenshot:{ready:"geo_screenshot_ready"},camera:{}};e.camera.view="geo_camera_view",e.camera.projection="geo_camera_projection",e.camera.viewport="geo_camera_viewport",e.annotation={},e.annotation.add="geo_annotation_add",e.annotation.add_before="geo_annotation_add_before",e.annotation.update="geo_annotation_update",e.annotation.coordinates="geo_annotation_coordinates",e.annotation.select_edit_handle="geo_annotation_select_edit_handle",e.annotation.edit_action="geo_annotation_edit_action",e.annotation.remove="geo_annotation_remove",e.annotation.state="geo_annotation_state",e.annotation.mode="geo_annotation_mode",e.annotation.boolean="geo_annotation_boolean",e.annotation.cursor_click="geo_annotation_cursor_click",e.annotation.cursor_action="geo_annotation_cursor_action",t.exports=e},6449:function(t,e,n){"use strict";function i(t){var e=Math.exp(t);return e=(e+1/e)/2}n.d(e,{A:function(){return i}})},6488:function(t,e,n){n(6409).svg={rescale:n(4765)},t.exports={graphFeature:n(3832),lineFeature:n(9456),object:n(5005),pathFeature:n(9927),pointFeature:n(2602),quadFeature:n(4087),renderer:n(2493),tileLayer:n(4061),trackFeature:n(2037),uniqueID:n(7376),vectorFeature:n(5747)}},6498:function(t,e,n){var i=n(4626),r=n(5156),o=n(6409),a=n(1098),s=function(t){"use strict";if(!(this instanceof s))return new s(t);r.call(this,t);var e=this,n=[],i=this._init,l=this._exit,u=this._update,c=this.visible,d=this.selectionAPI,h=this.draw;return this.createFeature=function(t,n){var i=a.createFeature(t,e,e.renderer(),n);return i?e.addFeature(i):console.warn("Layer renderer ("+e.rendererName()+') does not support feature type "'+t+'"'),i},this.addFeature=function(t){return e.removeFeature(t),e.addChild(t),n.push(t),e.dataTime().modified(),e.modified(),e},this.removeFeature=function(t){var i;return(i=n.indexOf(t))>=0&&(n.splice(i,1),e.removeChild(t),e.dataTime().modified(),e.modified()),e},this.deleteFeature=function(t){return t&&(n.indexOf(t)>=0&&t._exit(),e.removeFeature(t)),e},this.features=function(t){if(void 0===t)return n.slice();var i,r=n.slice();for(i=0;i<r.length;i+=1)t.indexOf(r[i])<0&&n.indexOf(r[i])>=0&&e.deleteFeature(r[i]);for(i=0;i<t.length;i+=1)e.addFeature(t[i]);return e},this.gcsFeatures=function(t){var n,i;return void 0===t?(this.features().forEach(function(t){void 0===n?n=t.gcs():t.gcs()!==n&&(i=!0)}),i?void 0:n):(e.features().forEach(function(e){e.gcs()!==t&&e.gcs(t)}),e)},this._init=function(){return e.initialized()||(i.call(e,!0),e.geoOn(o.resize,function(t){e.renderer()?(e.renderer()._resize(t.x,t.y,t.width,t.height),e._update({event:t}),e.renderer()._render()):e._update({event:t})}),e.geoOn(o.pan,function(t){e._update({event:t}),e.renderer()&&e.renderer()._render()}),e.geoOn(o.rotate,function(t){e._update({event:t}),e.renderer()&&e.renderer()._render()}),e.geoOn(o.zoom,function(t){e._update({event:t}),e.renderer()&&e.renderer()._render()})),e},this._update=function(t){var i;if(!n.length)return e;if(u.call(e,t),e.dataTime().timestamp()>e.updateTime().timestamp())for(i=0;i<n.length;i+=1)n[i].renderer(e.renderer());for(i=0;i<n.length;i+=1)n[i]._update();return e.updateTime().modified(),e},this._exit=function(){e.clear(),l()},this.draw=function(){return e.visible()&&(h(),e.renderer()&&e.renderer()._render()),e},this.visible=function(t){if(void 0===t)return c();if(e.visible()!==t){c(t);var i,r=n.slice();for(i=0;i<r.length;i+=1)r[i].visible(r[i].visible(void 0,!0),!0);t&&e.draw()}return e},this.selectionAPI=function(t){if(void 0===t)return d();if(e.selectionAPI()!==t){d(t);var i,r=n.slice();for(i=0;i<r.length;i+=1)r[i].selectionAPI(r[i].selectionAPI(void 0,!0),!0)}return e},this.clear=function(){for(;n.length;)e.deleteFeature(n[0]);return e},e};i(s,r),a.registerLayer("feature",s),t.exports=s},6500:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h},forward:function(){return u},init:function(){return l},inverse:function(){return c},names:function(){return d}});var i=n(7e3);function r(t,e,n){if(Math.abs(e)>i.sK)return Number.NaN;if(e===i.sK)return Number.POSITIVE_INFINITY;if(e===-1*i.sK)return Number.NEGATIVE_INFINITY;var r=t*n;return Math.log(Math.tan((i.sK+e)/2))+t*Math.log((1-r)/(1+r))/2}var o=n(7897),a=n(6449);function s(t,e){return 2*Math.atan(t*Math.exp(e))-i.sK}function l(){var t=this.b/this.a;this.e=Math.sqrt(1-t*t),this.lc=this.long0,this.rs=Math.sqrt(1+this.e*this.e*Math.pow(Math.cos(this.lat0),4)/(1-this.e*this.e));var e=Math.sin(this.lat0),n=Math.asin(e/this.rs),i=Math.sin(n);this.cp=r(0,n,i)-this.rs*r(this.e,this.lat0,e),this.n2=this.k0*this.a*Math.sqrt(1-this.e*this.e)/(1-this.e*this.e*e*e),this.xs=this.x0,this.ys=this.y0-this.n2*n,this.title||(this.title="Gauss Schreiber transverse mercator")}function u(t){var e=t.x,n=t.y,i=this.rs*(e-this.lc),s=this.cp+this.rs*r(this.e,n,Math.sin(n)),l=Math.asin(Math.sin(i)/(0,a.A)(s)),u=r(0,l,Math.sin(l));return t.x=this.xs+this.n2*u,t.y=this.ys+this.n2*Math.atan((0,o.A)(s)/Math.cos(i)),t}function c(t){var e=t.x,n=t.y,i=Math.atan((0,o.A)((e-this.xs)/this.n2)/Math.cos((n-this.ys)/this.n2)),l=Math.asin(Math.sin((n-this.ys)/this.n2)/(0,a.A)((e-this.xs)/this.n2)),u=r(0,l,Math.sin(l));return t.x=this.lc+i/this.rs,t.y=function(t,e){var n=s(1,e),i=0,r=0;do{i=n,r=t*Math.sin(i),n=s(Math.exp(t*Math.log((1+r)/(1-r))/2),e)}while(Math.abs(n-i)>1e-12);return n}(this.e,(u-this.cp)/this.rs),t}var d=["gstmerg","gstmerc"],h={init:l,forward:u,inverse:c,names:d}},6517:function(t){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},6532:function(t){t.exports=1e-6},6546:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=this,n=this._init;return this.featureType="text",this.position=function(t){return void 0===t?e.style("position"):(t!==e.style("position")&&(e.style("position",t),e.dataTime().modified(),e.modified()),e)},this.text=function(t){return void 0===t?e.style("text"):(t!==e.style("text")&&(e.style("text",t),e.dataTime().modified(),e.modified()),e)},this._init=function(t){t=t||{},n.call(e,t);var i=Object.assign({},{font:"bold 16px sans-serif",textAlign:"center",textBaseline:"middle",color:{r:0,g:0,b:0},rotation:0,rotateWithMap:!1,textScaled:!1,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},text:function(t){return t.text}},void 0===t.style?{}:t.style);void 0!==t.position&&(i.position=t.position),void 0!==t.text&&(i.text=t.text),e.style(i),i.position&&e.position(i.position),i.text&&e.text(i.text),e.dataTime().modified()},this._init(t),e};o.usedStyles=["visible","font","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","lineHeight","fontFamily","textAlign","textBaseline","color","textOpacity","rotation","rotateWithMap","textScaled","offset","shadowColor","shadowOffset","shadowBlur","shadowRotate","textStrokeColor","textStrokeWidth"],o.create=function(t,e){"use strict";return(e=e||{}).type="text",r.create(t,e)},o.capabilities={feature:"text"},i(o,r),t.exports=o},6552:function(t,e,n){n(698).GL={ACTIVE_ATTRIBUTES:35721,ACTIVE_TEXTURE:34016,ACTIVE_UNIFORMS:35718,ALIASED_LINE_WIDTH_RANGE:33902,ALIASED_POINT_SIZE_RANGE:33901,ALPHA:6406,ALPHA_BITS:3413,ALWAYS:519,ARRAY_BUFFER:34962,ARRAY_BUFFER_BINDING:34964,ATTACHED_SHADERS:35717,BACK:1029,BLEND:3042,BLEND_COLOR:32773,BLEND_DST_ALPHA:32970,BLEND_DST_RGB:32968,BLEND_EQUATION:32777,BLEND_EQUATION_ALPHA:34877,BLEND_EQUATION_RGB:32777,BLEND_SRC_ALPHA:32971,BLEND_SRC_RGB:32969,BLUE_BITS:3412,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,BROWSER_DEFAULT_WEBGL:37444,BUFFER_SIZE:34660,BUFFER_USAGE:34661,BYTE:5120,CCW:2305,CLAMP_TO_EDGE:33071,COLOR_ATTACHMENT0:36064,COLOR_BUFFER_BIT:16384,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,COMPILE_STATUS:35713,COMPRESSED_TEXTURE_FORMATS:34467,CONSTANT_ALPHA:32771,CONSTANT_COLOR:32769,CONTEXT_LOST_WEBGL:37442,CULL_FACE:2884,CULL_FACE_MODE:2885,CURRENT_PROGRAM:35725,CURRENT_VERTEX_ATTRIB:34342,CW:2304,DECR:7683,DECR_WRAP:34056,DELETE_STATUS:35712,DEPTH_ATTACHMENT:36096,DEPTH_BITS:3414,DEPTH_BUFFER_BIT:256,DEPTH_CLEAR_VALUE:2931,DEPTH_COMPONENT:6402,DEPTH_COMPONENT16:33189,DEPTH_FUNC:2932,DEPTH_RANGE:2928,DEPTH_STENCIL:34041,DEPTH_STENCIL_ATTACHMENT:33306,DEPTH_TEST:2929,DEPTH_WRITEMASK:2930,DITHER:3024,DONT_CARE:4352,DST_ALPHA:772,DST_COLOR:774,DYNAMIC_DRAW:35048,ELEMENT_ARRAY_BUFFER:34963,ELEMENT_ARRAY_BUFFER_BINDING:34965,EQUAL:514,FASTEST:4353,FLOAT:5126,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,FRAGMENT_SHADER:35632,FRAMEBUFFER:36160,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_BINDING:36006,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_UNSUPPORTED:36061,FRONT:1028,FRONT_AND_BACK:1032,FRONT_FACE:2886,FUNC_ADD:32774,FUNC_REVERSE_SUBTRACT:32779,FUNC_SUBTRACT:32778,GENERATE_MIPMAP_HINT:33170,GEQUAL:518,GREATER:516,GREEN_BITS:3411,HIGH_FLOAT:36338,HIGH_INT:36341,INCR:7682,INCR_WRAP:34055,INT:5124,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,INVALID_ENUM:1280,INVALID_FRAMEBUFFER_OPERATION:1286,INVALID_OPERATION:1282,INVALID_VALUE:1281,INVERT:5386,KEEP:7680,LEQUAL:515,LESS:513,LINEAR:9729,LINEAR_MIPMAP_LINEAR:9987,LINEAR_MIPMAP_NEAREST:9985,LINES:1,LINE_LOOP:2,LINE_STRIP:3,LINE_WIDTH:2849,LINK_STATUS:35714,LOW_FLOAT:36336,LOW_INT:36339,LUMINANCE:6409,LUMINANCE_ALPHA:6410,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_CUBE_MAP_TEXTURE_SIZE:34076,MAX_FRAGMENT_UNIFORM_VECTORS:36349,MAX_RENDERBUFFER_SIZE:34024,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_TEXTURE_SIZE:3379,MAX_VARYING_VECTORS:36348,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VIEWPORT_DIMS:3386,MEDIUM_FLOAT:36337,MEDIUM_INT:36340,MIRRORED_REPEAT:33648,NEAREST:9728,NEAREST_MIPMAP_LINEAR:9986,NEAREST_MIPMAP_NEAREST:9984,NEVER:512,NICEST:4354,NONE:0,NOTEQUAL:517,NO_ERROR:0,ONE:1,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,OUT_OF_MEMORY:1285,PACK_ALIGNMENT:3333,POINTS:0,POLYGON_OFFSET_FACTOR:32824,POLYGON_OFFSET_FILL:32823,POLYGON_OFFSET_UNITS:10752,RED_BITS:3410,RENDERBUFFER:36161,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_BINDING:36007,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_STENCIL_SIZE:36181,RENDERBUFFER_WIDTH:36162,RENDERER:7937,REPEAT:10497,REPLACE:7681,RGB:6407,RGB565:36194,RGB5_A1:32855,RGBA:6408,RGBA4:32854,SAMPLER_2D:35678,SAMPLER_CUBE:35680,SAMPLES:32937,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_BUFFERS:32936,SAMPLE_COVERAGE:32928,SAMPLE_COVERAGE_INVERT:32939,SAMPLE_COVERAGE_VALUE:32938,SCISSOR_BOX:3088,SCISSOR_TEST:3089,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,SHORT:5122,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,STATIC_DRAW:35044,STENCIL_ATTACHMENT:36128,STENCIL_BACK_FAIL:34817,STENCIL_BACK_FUNC:34816,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,STENCIL_BITS:3415,STENCIL_BUFFER_BIT:1024,STENCIL_CLEAR_VALUE:2961,STENCIL_FAIL:2964,STENCIL_FUNC:2962,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_TEST:2960,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STREAM_DRAW:35040,SUBPIXEL_BITS:3408,TEXTURE:5890,TEXTURE0:33984,TEXTURE1:33985,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE2:33986,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE3:33987,TEXTURE30:34014,TEXTURE31:34015,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE_2D:3553,TEXTURE_BINDING_2D:32873,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP:34067,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,UNPACK_ALIGNMENT:3317,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNSIGNED_BYTE:5121,UNSIGNED_INT:5125,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,VALIDATE_STATUS:35715,VENDOR:7936,VERSION:7938,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_SHADER:35633,VIEWPORT:2978,ZERO:0}},6583:function(t){t.exports=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],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,b=i*l-r*s,w=i*u-o*s,M=r*u-o*l,A=c*m-d*p,E=c*g-h*p,T=c*y-f*p,S=d*g-h*m,C=d*y-f*m,k=h*y-f*g,P=v*k-x*C+_*S+b*T-w*E+M*A;if(!P)return null;return P=1/P,t[0]=(s*k-l*C+u*S)*P,t[1]=(r*C-i*k-o*S)*P,t[2]=(m*M-g*w+y*b)*P,t[3]=(h*w-d*M-f*b)*P,t[4]=(l*T-a*k-u*E)*P,t[5]=(n*k-r*T+o*E)*P,t[6]=(g*_-p*M-y*x)*P,t[7]=(c*M-h*_+f*x)*P,t[8]=(a*C-s*T+u*A)*P,t[9]=(i*T-n*C-o*A)*P,t[10]=(p*w-m*_+y*v)*P,t[11]=(d*_-c*w-f*v)*P,t[12]=(s*E-a*S-l*A)*P,t[13]=(n*S-i*E+r*A)*P,t[14]=(m*x-p*b-g*v)*P,t[15]=(c*b-d*x+h*v)*P,t}},6600:function(t){t.exports=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}},6645:function(t,e,n){var i=n(4626),r=n(1275),o=n(5325),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},r.call(this,t);var e,i=n(642),s=this,l=this._init,u=this._exit,c=this.data,d=this.draw,h=this.modified,f=this.style,p=[];function m(t,e,n){var i=s.gcs(),r=s.layer().map().gcs();return t=t||s.data(),e=e||s.style.get("position"),n=n||s.style.get("polygon"),t.map(function(t,a){var l=n(t,a);if(l){var u,c,d,h,f,p,m,g,y,v;for(h=l.outer||(Array.isArray(l)?l:[]),u=new Array(h.length),f=0;f<h.length;f+=1)u[f]=e.call(s,h[f],f,t,a),p=u[f].x,m=u[f].y,f?(p<d.min.x&&(d.min.x=p),m<d.min.y&&(d.min.y=m),p>d.max.x&&(d.max.x=p),m>d.max.y&&(d.max.y=m)):d={min:{x:p,y:m},max:{x:p,y:m}};for(c=(l.inner||[]).map(function(n){h=n||[];var i=new Array(h.length);for(f=0;f<h.length;f+=1)i[f]=e.call(s,h[f],f,t,a);return i}),g=o.transformCoordinates(i,r,u),y=c.map(function(t){return o.transformCoordinates(i,r,t)}),f=0;f<g.length;f+=1)p=g[f].x,m=g[f].y,f?(p<v.min.x&&(v.min.x=p),m<v.min.y&&(v.min.y=m),p>v.max.x&&(v.max.x=p),m>v.max.y&&(v.max.y=m)):v={min:{x:p,y:m},max:{x:p,y:m}};return{outer:u,inner:c,range:d,mapouter:g,mapinner:y,maprange:v}}})}function g(t){return i.isFunction(t)?function(e){return t(e[0],e[1],e[2],e[3])}:t}return this.featureType="polygon",this._subfeatureStyles={fillColor:!0,fillOpacity:!0,lineCap:!0,lineJoin:!0,strokeColor:!0,strokeOffset:!0,strokeOpacity:!0,strokeWidth:!0},this.data=function(t){var e=c(t);return void 0!==t&&(p=m(),s._checkForStroke()),e},this.polygonCoordinates=function(){return p},this.polygon=function(t){return void 0===t?s.style("polygon"):(s.style("polygon",t),s.dataTime().modified(),s.modified(),p=m(),s)},this.position=function(t){return void 0===t?s.style("position"):(s.style("position",t),s.dataTime().modified(),s.modified(),p=m(),s)},this.pointSearch=function(t,n){var r=[],a=[],l={},u=s.data(),c=s.layer().map();n=null===n?c.gcs():void 0===n?c.ingcs():n;var d=o.transformCoordinates(n,c.gcs(),t);(p.forEach(function(t,e){i.pointInPolygon(d,t.mapouter,t.mapinner,t.maprange)&&(a.push(e),l[e]=!0,r.push(u[e]))}),e)&&e.pointSearch(t).found.forEach(function(t){t.length&&4===t[0].length&&!l[t[0][3]]&&(a.push(t[0][3]),l[t[0][3]]=!0,r.push(u[t[0][3]]))});return{index:a,found:r}},this.polygonSearch=function(t,n,r){var a,l,u=s.data(),c=[],d=[],h={},f=t,m={},g=s.layer().map();if(r=null===r?g.gcs():void 0===r?g.ingcs():r,t.outer||(t={outer:t,inner:[]}),!u||!u.length||t.outer.length<3)return{found:d,index:c,extra:h};if((n=n||{}).partial=n.partial||!1,(t={outer:o.transformCoordinates(r,g.gcs(),t.outer),inner:(t.inner||[]).map(function(t){return o.transformCoordinates(r,g.gcs(),t)})}).outer.forEach(function(t){a||(a={x:t.x,y:t.y},l={x:t.x,y:t.y}),t.x<a.x&&(a.x=t.x),t.x>l.x&&(l.x=t.x),t.y<a.y&&(a.y=t.y),t.y>l.y&&(l.y=t.y)}),p.forEach(function(e,r){if(!(!e.mapouter.length||e.maprange&&(e.maprange.max.x<a.x||e.maprange.min.x>l.x||e.maprange.max.y<a.y||e.maprange.min.y>l.y))){for(var o,s,f=-1;f<e.mapinner.length&&!s;f+=1)for(var p=f<0?e.mapouter:e.mapinner[f],g=0,y=p.length,v=y-1;g<y;v=g,g+=1){var x=i.distanceToPolygon2d(p[g],t);if(x*i.distanceToPolygon2d(p[v],t)<0){s=!0;break}if(i.crossedLineSegmentPolygon2d(p[g],p[v],t)){s=!0;break}x>0&&(o=!0)}o||s||!i.pointInPolygon(t.outer[0],e.mapouter,e.mapinner,e.maprange)||(s=!0),(!n.partial&&o&&!s||n.partial&&(o||s))&&(c.push(r),d.push(u[r]),h[r]={partial:s},m[r]=!0)}}),e){var y=e.polygonSearch(f,n);y.found.forEach(function(t,e){t.length&&4===t[0].length&&(m[t[0][3]]||(c.push(t[0][3]),m[t[0][3]]=!0,d.push(u[t[0][3]]),h[y.index[e]]={partial:!1}),y.extra[y.index[e]].partial&&(h[t[0][3]].partial=!0))})}return{found:d,index:c,extra:h}},this.style=function(t,e){var n=f.apply(s,arguments);return void 0===t||"string"==typeof t&&void 0===e||s._checkForStroke(),n},this.style.get=f.get,this._getLoopData=function(t,e,n){var i,r=[];for(i=0;i<n.length;i+=1)r.push([n[i],i,t,e]);return r},this._checkForStroke=function(){if(!1!==f("stroke")){if(s.layer()){e||(e=s.layer().createFeature("line",{selectionAPI:!1,gcs:s.gcs(),visible:s.visible(void 0,!0),dynamicDraw:!0}),s.dependentFeatures([e]));var t,n=s.style();if(i.isFunction(n.stroke)||!n.stroke){var r=s.style.get("stroke"),o=s.style.get("strokeOpacity");t=function(t){return r(t[2],t[3])?o(t[0],t[1],t[2],t[3]):0}}else t=g(n.strokeOpacity);e.style({antialiasing:g(n.antialiasing),closed:!0,lineCap:g(n.lineCap),lineJoin:g(n.lineJoin),miterLimit:g(n.miterLimit),strokeWidth:g(n.strokeWidth),strokeStyle:g(n.strokeStyle),strokeColor:g(n.strokeColor),strokeOffset:g(n.strokeOffset),strokeOpacity:t,uniformLine:g(n.uniformPolygon)});var a=s.data(),l=s.style("position");if(a!==e._lastData||l!==e._lastPosVal){var u,c,d,h=[],p=s.style.get("position"),m=s.style.get("polygon");for(u=0;u<a.length;u+=1)(c=m(a[u],u))&&(d=c.outer||(Array.isArray(c)?c:[])).length>=2&&(h.push(s._getLoopData(a[u],u,d)),c.inner&&c.inner.forEach(function(t){t.length>=2&&h.push(s._getLoopData(a[u],u,t))}));e.position(function(t,e,n,i){return p(t[0],t[1],t[2],t[3])}),e.data(h),e._lastData=a,e._lastPosVal=l}}}else e&&s.layer()&&(s.layer().deleteFeature(e),e=null,s.dependentFeatures([]))},this.draw=function(){var t=d();return e&&e.draw(),t},this.modified=function(){var t=h();return e&&e.modified(),t},this.rdpSimplifyData=function(t,e,n,r,a){var l=s.layer().map(),u=l.gcs(),c=s.gcs(),d=m(t,n,r);return void 0===e&&(e=.5*l.unitsPerPixel(l.zoom())),d=d.map(function(t){return{outer:o.transformCoordinates(c,u,t.outer),inner:t.inner.map(function(t){return o.transformCoordinates(c,u,t)})}}),t=t.map(function(t,n){var r=d[n],a={};for(var s in t)!t.hasOwnProperty(s)||Array.isArray(t)&&s>=0&&s<t.length||(a[s]=t[s]);if(r&&r.outer.length>=3)if(a.inner=r.inner.filter(function(t){return t.length>=3}),a.outer=i.rdpLineSimplify(r.outer,e,!0,a.inner),a.outer.length>=3){var l=a.inner.slice();a.inner.map(function(t,n){l[n]=a.outer;var r=i.rdpLineSimplify(t,e,!0,l);return l[n]=r,r}).filter(function(t){return t.length>=3}),a.outer=o.transformCoordinates(u,c,a.outer),a.inner=a.inner.map(function(t){return o.transformCoordinates(u,c,t)})}else a.outer=a.inner=[];else a.outer=[];return a}),a?t:(s.style("position",i.identityFunction),s.style("polygon",i.identityFunction),s.data(t),s)},this.mouseOverOrderClosestBorder=function(t){var e=t.feature.data(),n=t.feature.layer().map(),r=o.transformCoordinates(n.ingcs(),t.feature.gcs(),t.mouse.geo),a=t.feature.polygonCoordinates(),s={};t.over.index.forEach(function(t,e){var n,o=a[t];o.outer.forEach(function(t,e){var a=o.outer[(e+1)%o.outer.length],s=i.distance2dToLineSquared(r,t,a);(void 0===n||s<n)&&(n=s)}),o.inner.forEach(function(t){t.forEach(function(e,o){var a=t[(o+1)%t.length],s=i.distance2dToLineSquared(r,e,a);(void 0===n||s<n)&&(n=s)})}),s[t]=n}),t.over.index.sort(function(t,e){return s[t]-s[e]}).reverse(),t.over.index.forEach(function(n,i){t.over.found[i]=e[n]})},this.toPolygonList=function(t){var e=s.style.get("polygon"),n=s.style.get("position");return s.data().map(function(t,i){var r=e(t,i),o=r.outer||(Array.isArray(r)?r:[]);if(o.length<3)return[];var a=[o.map(function(e,r){var o=n(e,r,t,i);return[o.x,o.y]})];return r.inner&&r.inner.forEach(function(e){a.push(e.map(function(e,r){var o=n(e,r,t,i);return[o.x,o.y]}))}),a})},this.fromPolygonList=function(t,e){return s.style({position:function(t){return{x:t[0],y:t[1]}},polygon:function(t){return{outer:t[0],inner:t.slice(1)}}}),s.data(t),s},this._exit=function(){e&&s.layer()&&(s.layer().deleteFeature(e),e=null,s.dependentFeatures([])),u()},this._init=function(t){t=t||{},l.call(s,t);var e=Object.assign({},{fill:!0,fillColor:{r:0,g:.5,b:.5},fillOpacity:1,stroke:!1,strokeWidth:1,strokeStyle:"solid",strokeColor:{r:0,g:1,b:1},strokeOpacity:1,polygon:i.identityFunction,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){for(var e=0;e<t.length;e+=1)if(t[e].vertices.length>=3)return t[e].vertices.slice(0,3);return[0,0,0]}},void 0===t.style?{}:t.style);void 0!==t.polygon&&(e.polygon=t.polygon),void 0!==t.position&&(e.position=t.position),s.style(e),s._checkForStroke()},this};a.create=function(t,e){"use strict";return(e=e||{}).type="polygon",r.create(t,e)},a.capabilities={feature:"polygon"},i(a,r),t.exports=a},6658:function(t){t.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},6669:function(t,e,n){t.exports=n(9737)},6671:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var i=n(6269),r=n(7e3),o=n(8597);function a(){this.R=this.a}function s(t){var e,n,a=t.x,s=t.y,l=(0,i.A)(a-this.long0);Math.abs(s)<=r.H0&&(e=this.x0+this.R*l,n=this.y0);var u=(0,o.A)(2*Math.abs(s/Math.PI));(Math.abs(l)<=r.H0||Math.abs(Math.abs(s)-r.sK)<=r.H0)&&(e=this.x0,n=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*u):this.y0+Math.PI*this.R*-Math.tan(.5*u));var c=.5*Math.abs(Math.PI/l-l/Math.PI),d=c*c,h=Math.sin(u),f=Math.cos(u),p=f/(h+f-1),m=p*p,g=p*(2/h-1),y=g*g,v=Math.PI*this.R*(c*(p-y)+Math.sqrt(d*(p-y)*(p-y)-(y+d)*(m-y)))/(y+d);l<0&&(v=-v),e=this.x0+v;var x=d+p;return v=Math.PI*this.R*(g*x-c*Math.sqrt((y+d)*(d+1)-x*x))/(y+d),n=s>=0?this.y0+v:this.y0-v,t.x=e,t.y=n,t}function l(t){var e,n,o,a,s,l,u,c,d,h,f,p;return t.x-=this.x0,t.y-=this.y0,f=Math.PI*this.R,s=(o=t.x/f)*o+(a=t.y/f)*a,f=3*(a*a/(c=-2*(l=-Math.abs(a)*(1+s))+1+2*a*a+s*s)+(2*(u=l-2*a*a+o*o)*u*u/c/c/c-9*l*u/c/c)/27)/(d=(l-u*u/3/c)/c)/(h=2*Math.sqrt(-d/3)),Math.abs(f)>1&&(f=f>=0?1:-1),p=Math.acos(f)/3,n=t.y>=0?(-h*Math.cos(p+Math.PI/3)-u/3/c)*Math.PI:-(-h*Math.cos(p+Math.PI/3)-u/3/c)*Math.PI,e=Math.abs(o)<r.H0?this.long0:(0,i.A)(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(o*o-a*a)+s*s))/2/o),t.x=e,t.y=n,t}var u=["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"];e.default={init:a,forward:s,inverse:l,names:u}},6675:function(t){t.exports=function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}},6731:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return a},init:function(){return o},inverse:function(){return s},iterations:function(){return r},names:function(){return l}});var i=n(7e3),r=1;function o(){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}function a(t){var e,n=t.x,r=t.y-this.lat0,o=n-this.long0,a=r/i._3*1e-5,s=o,l=1,u=0;for(e=1;e<=10;e++)l*=a,u+=this.A[e]*l;var c,d=u,h=s,f=1,p=0,m=0,g=0;for(e=1;e<=6;e++)c=p*d+f*h,f=f*d-p*h,p=c,m=m+this.B_re[e]*f-this.B_im[e]*p,g=g+this.B_im[e]*f+this.B_re[e]*p;return t.x=g*this.a+this.x0,t.y=m*this.a+this.y0,t}function s(t){var e,n,r=t.x,o=t.y,a=r-this.x0,s=(o-this.y0)/this.a,l=a/this.a,u=1,c=0,d=0,h=0;for(e=1;e<=6;e++)n=c*s+u*l,u=u*s-c*l,c=n,d=d+this.C_re[e]*u-this.C_im[e]*c,h=h+this.C_im[e]*u+this.C_re[e]*c;for(var f=0;f<this.iterations;f++){var p,m=d,g=h,y=s,v=l;for(e=2;e<=6;e++)p=g*d+m*h,m=m*d-g*h,g=p,y+=(e-1)*(this.B_re[e]*m-this.B_im[e]*g),v+=(e-1)*(this.B_im[e]*m+this.B_re[e]*g);m=1,g=0;var x=this.B_re[1],_=this.B_im[1];for(e=2;e<=6;e++)p=g*d+m*h,m=m*d-g*h,g=p,x+=e*(this.B_re[e]*m-this.B_im[e]*g),_+=e*(this.B_im[e]*m+this.B_re[e]*g);var b=x*x+_*_;d=(y*x+v*_)/b,h=(v*x-y*_)/b}var w=d,M=h,A=1,E=0;for(e=1;e<=9;e++)A*=w,E+=this.D[e]*A;var T=this.lat0+E*i._3*1e5,S=this.long0+M;return t.x=S,t.y=T,t}var l=["New_Zealand_Map_Grid","nzmg"];e.default={init:o,forward:a,inverse:s,names:l}},6733:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+i*i+r*r+o*o}},6761:function(t,e,n){var i=n(4626),r=n(6124),o=function(t){"use strict";if(!(this instanceof o))return new o(t);var e=n(642),i=n(5905);t=t||{},r.call(this,t);var a=this,s=this._init;return this._createContours=function(){return i.createColoredMesh(a,!1)},this.contour=a.mesh,this._init=function(t){s.call(a,t);var n=Object.assign({},{opacity:1,value:function(t,n){return e.isNonNullFinite(t)?t:a.position()(t,n).z},position:function(t){return t||{x:0,y:0}},origin:function(t){return t.length>=3?[t[0],t[1],0]:[0,0,0]}},void 0===t.style?{}:t.style);a.style(n),a.contour(Object.assign({},{minColor:"black",minOpacity:0,maxColor:"black",maxOpacity:0,colorRange:[{r:.07514311,g:.468049805,b:1},{r:.468487184,g:.588057293,b:1},{r:.656658579,g:.707001303,b:1},{r:.821573924,g:.837809045,b:1},{r:.943467973,g:.943498599,b:.943398095},{r:1,g:.788626485,b:.750707739},{r:1,g:.6289553,b:.568237474},{r:1,g:.472800903,b:.404551679},{r:.916482116,g:.236630659,b:.209939162}]},t.mesh||{},t.contour||{})),(t.mesh||t.contour)&&a.dataTime().modified()},this._init(t),this};i(o,r),t.exports=o},6789:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var i=n(4025),r=n(6269),o=n(4424);function a(){i.default.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"))}function s(t){var e,n,o,a;return t.x=(0,r.A)(t.x-this.long0),i.default.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),o=Math.cos(t.x),a=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*o),t.x=a*n*Math.sin(t.x),t.y=a*(this.cosc0*e-this.sinc0*n*o),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function l(t){var e,n,a,s,l;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,l=(0,o.A)(t.x,t.y)){var u=2*Math.atan2(l,this.R2);e=Math.sin(u),n=Math.cos(u),s=Math.asin(n*this.sinc0+t.y*e*this.cosc0/l),a=Math.atan2(t.x*e,l*this.cosc0*n-t.y*this.sinc0*e)}else s=this.phic0,a=0;return t.x=a,t.y=s,i.default.inverse.apply(this,[t]),t.x=(0,r.A)(t.x+this.long0),t}var u=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];e.default={init:a,forward:s,inverse:l,names:u}},6791:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6761),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t),n(2778).call(this,t);var e=this;return this._build=function(){e.actors()[0]&&e.renderer().contextRenderer().removeActor(e.actors()[0]),e.createGLMeshColored(e._createContours()),e.renderer().contextRenderer().addActor(e.actors()[0]),e.buildTime().modified()},this._init(t),this};i(a,o),r("webgl","contour",a),t.exports=a},6820:function(t,e,n){
41
+ */!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},u=o.push,c=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},x=i.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var i,r,o=(n=n||x).createElement("script");if(o.text=t,e)for(i in _)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var M="3.7.1",A=/HTML$/i,E=function(t,e){return new E.fn.init(t,e)};function T(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function S(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}E.fn=E.prototype={jquery:M,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(t){return this.pushStack(E.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(u&&i&&(E.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||E.isPlainObject(n)?n:{},r=!1,a[e]=E.extend(u,o,i)):void 0!==i&&(a[e]=i));return a},E.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=a(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&p.call(n)===m)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){b(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(T(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=E.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(T(Object(t))?E.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!A.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(T(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){d["[object "+e+"]"]=e.toLowerCase()});var C=o.pop,k=o.sort,P=o.splice,O="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");E.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var R=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}E.escapeSelector=function(t){return(t+"").replace(R,I)};var F=x,D=u;!function(){var t,e,n,r,a,l,u,d,h,p,m=D,y=E.expando,v=0,x=0,_=tt(),b=tt(),w=tt(),M=tt(),A=function(t,e){return t===e&&(a=!0),0},T="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+O+"*("+R+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+O+"*\\]",G=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",j=new RegExp(O+"+","g"),N=new RegExp("^"+O+"*,"+O+"*"),B=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),z=new RegExp(O+"|>"),V=new RegExp(G),U=new RegExp("^"+R+"$"),q={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+T+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Z=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Y=function(){lt()},J=ht(function(t){return!0===t.disabled&&S(t,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(o=s.call(F.childNodes),F.childNodes),o[F.childNodes.length].nodeType}catch(t){m={apply:function(t,e){D.apply(t,s.call(e))},call:function(t){D.apply(t,s.call(arguments,1))}}}function $(t,e,n,i){var r,o,a,s,u,c,f,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!i&&(lt(e),e=e||l,d)){if(11!==v&&(u=X.exec(t)))if(r=u[1]){if(9===v){if(!(a=e.getElementById(r)))return n;if(a.id===r)return m.call(n,a),n}else if(p&&(a=p.getElementById(r))&&$.contains(e,a)&&a.id===r)return m.call(n,a),n}else{if(u[2])return m.apply(n,e.getElementsByTagName(t)),n;if((r=u[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(r)),n}if(!(M[t+" "]||h&&h.test(t))){if(f=t,p=e,1===v&&(z.test(t)||B.test(t))){for((p=K.test(t)&&st(e.parentNode)||e)==e&&g.scope||((s=e.getAttribute("id"))?s=E.escapeSelector(s):e.setAttribute("id",s=y)),o=(c=ct(t)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+dt(c[o]);f=c.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){M(t,!0)}finally{s===y&&e.removeAttribute("id")}}}return vt(t.replace(L,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[y]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return S(e,"input")&&e.type===t}}function rt(t){return function(e){return(S(e,"input")||S(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et(function(e){return e=+e,et(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:F;return i!=l&&9===i.nodeType&&i.documentElement?(u=(l=i).documentElement,d=!E.isXMLDoc(l),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&F!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Y),g.getById=nt(function(t){return u.appendChild(t).id=E.expando,!l.getElementsByName||!l.getElementsByName(E.expando).length}),g.disconnectedMatch=nt(function(t){return p.call(t,"*")}),g.scope=nt(function(){return l.querySelectorAll(":scope")}),g.cssHas=nt(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),g.getById?(e.filter.ID=function(t){var e=t.replace(Q,Z);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Q,Z);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],nt(function(t){var e;u.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+O+"*(?:value|"+T+")"),t.querySelectorAll("[id~="+y+"-]").length||h.push("~="),t.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")}),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),A=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==F&&$.contains(F,t)?-1:e===l||e.ownerDocument==F&&$.contains(F,e)?1:r?c.call(r,t)-c.call(r,e):0:4&n?-1:1)},l):l}for(t in $.matches=function(t,e){return $(t,null,null,e)},$.matchesSelector=function(t,e){if(lt(t),d&&!M[e+" "]&&(!h||!h.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){M(e,!0)}return $(e,l,null,[t]).length>0},$.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),E.contains(t,e)},$.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],r=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!d):void 0;return void 0!==r?r:t.getAttribute(n)},$.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},E.uniqueSort=function(t){var e,n=[],i=0,o=0;if(a=!g.sortStable,r=!g.sortStable&&s.call(t,0),k.call(t,A),a){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)P.call(t,n[i],1)}return r=null,t},E.fn.uniqueSort=function(){return this.pushStack(E.uniqueSort(s.apply(this)))},e=E.expr={cacheLength:50,createPseudo:et,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,Z),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,Z),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||$.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&$.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&V.test(n)&&(e=ct(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Q,Z).toLowerCase();return"*"===t?function(){return!0}:function(t){return S(t,e)}},CLASS:function(t){var e=_[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&_(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=$.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(j," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),x=!l&&!s,_=!1;if(m){if(o){for(;p;){for(d=e;d=d[p];)if(s?S(d,g):1===d.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&x){for(_=(h=(u=(c=m[y]||(m[y]={}))[t]||[])[0]===v&&u[1])&&u[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(_=h=0)||f.pop();)if(1===d.nodeType&&++_&&d===e){c[t]=[v,h,_];break}}else if(x&&(_=h=(u=(c=e[y]||(e[y]={}))[t]||[])[0]===v&&u[1]),!1===_)for(;(d=++h&&d&&d[p]||(_=h=0)||f.pop())&&(!(s?S(d,g):1===d.nodeType)||!++_||(x&&((c=d[y]||(d[y]={}))[t]=[v,_]),d!==e)););return(_-=r)===i||_%i===0&&_/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||$.error("unsupported pseudo: "+t);return r[y]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var i,o=r(t,n),a=o.length;a--;)t[i=c.call(t,o[a])]=!(e[i]=o[a])}):function(t){return r(t,0,i)}):r}},pseudos:{not:et(function(t){var e=[],n=[],i=yt(t.replace(L,"$1"));return i[y]?et(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return $(t,e).length>0}}),contains:et(function(t){return t=t.replace(Q,Z),function(e){return(e.textContent||E.text(e)).indexOf(t)>-1}}),lang:et(function(t){return U.test(t||"")||$.error("unsupported lang: "+t),t=t.replace(Q,Z).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return S(t,"input")&&!!t.checked||S(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return W.test(t.nodeName)},input:function(t){return H.test(t.nodeName)},button:function(t){return S(t,"input")&&"button"===t.type||S(t,"button")},text:function(t){var e;return S(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at(function(){return[0]}),last:at(function(t,e){return[e-1]}),eq:at(function(t,e,n){return[n<0?n+e:n]}),even:at(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:at(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:at(function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:at(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ut(){}function ct(t,n){var i,r,o,a,s,l,u,c=b[t+" "];if(c)return n?0:c.slice(0);for(s=t,l=[],u=e.preFilter;s;){for(a in i&&!(r=N.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=B.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(L," ")}),s=s.slice(i.length)),e.filter)!(r=q[a].exec(s))||u[a]&&!(r=u[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?$.error(t):b(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=x++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var u,c,d=[v,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(c=e[y]||(e[y]={}),r&&S(e,r))e=e[i]||e;else{if((u=c[o])&&u[0]===v&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=t(e,n,l))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function mt(t,e,n,i,r,o){return i&&!i[y]&&(i=mt(i)),r&&!r[y]&&(r=mt(r,o)),et(function(o,a,s,l){var u,d,h,f,p=[],g=[],y=a.length,v=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)$(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),x=!t||!o&&e?v:pt(v,p,t,s,l);if(n?n(x,f=r||(o?t:y||i)?[]:a,s,l):f=x,i)for(u=pt(f,g),i(u,[],s,l),d=u.length;d--;)(h=u[d])&&(f[g[d]]=!(x[g[d]]=h));if(o){if(r||t){if(r){for(u=[],d=f.length;d--;)(h=f[d])&&u.push(x[d]=h);r(null,f=[],u,l)}for(d=f.length;d--;)(h=f[d])&&(u=r?c.call(o,h):p[d])>-1&&(o[u]=!(a[u]=h))}}else f=pt(f===a?f.splice(y,f.length):f),r?r(null,a,f,l):m.apply(a,f)})}function gt(t){for(var i,r,o,a=t.length,s=e.relative[t[0].type],l=s||e.relative[" "],u=s?1:0,d=ht(function(t){return t===i},l,!0),h=ht(function(t){return c.call(i,t)>-1},l,!0),f=[function(t,e,r){var o=!s&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,o}];u<a;u++)if(r=e.relative[t[u].type])f=[ht(ft(f),r)];else{if((r=e.filter[t[u].type].apply(null,t[u].matches))[y]){for(o=++u;o<a&&!e.relative[t[o].type];o++);return mt(u>1&&ft(f),u>1&&dt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(L,"$1"),r,u<o&&gt(t.slice(u,o)),o<a&&gt(t=t.slice(o)),o<a&&dt(t))}f.push(r)}return ft(f)}function yt(t,i){var r,o=[],a=[],s=w[t+" "];if(!s){for(i||(i=ct(t)),r=i.length;r--;)(s=gt(i[r]))[y]?o.push(s):a.push(s);s=w(t,function(t,i){var r=i.length>0,o=t.length>0,a=function(a,s,u,c,h){var f,p,g,y=0,x="0",_=a&&[],b=[],w=n,M=a||o&&e.find.TAG("*",h),A=v+=null==w?1:Math.random()||.1,T=M.length;for(h&&(n=s==l||s||h);x!==T&&null!=(f=M[x]);x++){if(o&&f){for(p=0,s||f.ownerDocument==l||(lt(f),u=!d);g=t[p++];)if(g(f,s||l,u)){m.call(c,f);break}h&&(v=A)}r&&((f=!g&&f)&&y--,a&&_.push(f))}if(y+=x,r&&x!==y){for(p=0;g=i[p++];)g(_,b,s,u);if(a){if(y>0)for(;x--;)_[x]||b[x]||(b[x]=C.call(c));b=pt(b)}m.apply(c,b),h&&!a&&b.length>0&&y+i.length>1&&E.uniqueSort(c)}return h&&(v=A,n=w),_};return r?et(a):a}(a,o)),s.selector=t}return s}function vt(t,n,i,r){var o,a,s,l,u,c="function"==typeof t&&t,h=!r&&ct(t=c.selector||t);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(Q,Z),n)||[])[0]))return i;c&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(o=q.needsContext.test(t)?0:a.length;o--&&(s=a[o],!e.relative[l=s.type]);)if((u=e.find[l])&&(r=u(s.matches[0].replace(Q,Z),K.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(o,1),!(t=r.length&&dt(a)))return m.apply(i,r),i;break}}return(c||yt(t,h))(r,n,!d,i,!n||K.test(t)&&st(n.parentNode)||n),i}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,g.sortStable=y.split("").sort(A).join("")===y,lt(),g.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))}),E.find=$,E.expr[":"]=E.expr.pseudos,E.unique=E.uniqueSort,$.compile=yt,$.select=vt,$.setDocument=lt,$.tokenize=ct,$.escape=E.escapeSelector,$.getText=E.text,$.isXML=E.isXMLDoc,$.selectors=E.expr,$.support=E.support,$.uniqueSort=E.uniqueSort}();var G=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&E(t).is(n))break;i.push(t)}return i},j=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},N=E.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return y(e)?E.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?E.grep(t,function(t){return t===e!==n}):"string"!=typeof e?E.grep(t,function(t){return c.call(e,t)>-1!==n}):E.filter(e,t,n)}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<i;e++)if(E.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)E.find(t,r[e],n);return i>1?E.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&N.test(t)?E(t):t||[],!1).length}});var V,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||V,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:x,!0)),B.test(i[1])&&E.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=x.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this)}).prototype=E.fn,V=E(x);var q=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function W(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&E(t);if(!N.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(E(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return G(t,"parentNode")},parentsUntil:function(t,e,n){return G(t,"parentNode",n)},next:function(t){return W(t,"nextSibling")},prev:function(t){return W(t,"previousSibling")},nextAll:function(t){return G(t,"nextSibling")},prevAll:function(t){return G(t,"previousSibling")},nextUntil:function(t,e,n){return G(t,"nextSibling",n)},prevUntil:function(t,e,n){return G(t,"previousSibling",n)},siblings:function(t){return j((t.parentNode||{}).firstChild,t)},children:function(t){return j(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(S(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},function(t,e){E.fn[t]=function(n,i){var r=E.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=E.filter(i,r)),this.length>1&&(H[t]||E.uniqueSort(r),q.test(t)&&r.reverse()),this.pushStack(r)}});var X=/[^\x20\t\r\n\f]+/g;function K(t){return t}function Q(t){throw t}function Z(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return E.each(t.match(X)||[],function(t,n){e[n]=!0}),e}(t):E.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){E.each(n,function(n,i){y(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==w(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return E.each(arguments,function(t,e){for(var n;(n=E.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?E.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},E.extend({Deferred:function(t){var e=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return E.Deferred(function(n){E.each(e,function(e,i){var r=y(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,l=arguments,u=function(){var i,u;if(!(t<o)){if((i=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,y(u)?r?u.call(i,a(o,e,K,r),a(o,e,Q,r)):(o++,u.call(i,a(o,e,K,r),a(o,e,Q,r),a(o,e,K,e.notifyWith))):(n!==K&&(s=void 0,l=[i]),(r||e.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(i){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(i,c.error),t+1>=o&&(n!==Q&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?c():(E.Deferred.getErrorHook?c.error=E.Deferred.getErrorHook():E.Deferred.getStackHook&&(c.error=E.Deferred.getStackHook()),i.setTimeout(c))}}return E.Deferred(function(i){e[0][3].add(a(0,i,y(r)?r:K,i.notifyWith)),e[1][3].add(a(0,i,y(t)?t:K)),e[2][3].add(a(0,i,y(n)?n:Q))}).promise()},promise:function(t){return null!=t?E.extend(t,r):r}},o={};return E.each(e,function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add(function(){n=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=s.call(arguments),o=E.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Z(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(r[n]&&r[n].then)))return o.then();for(;n--;)Z(r[n],a(n),o.reject);return o.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Y.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){i.setTimeout(function(){throw t})};var J=E.Deferred();function $(){x.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),E.ready()}E.fn.ready=function(t){return J.then(t).catch(function(t){E.readyException(t)}),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==t&&--E.readyWait>0||J.resolveWith(x,[E]))}}),E.ready.then=J.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?i.setTimeout(E.ready):(x.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var tt=function(t,e,n,i,r,o,a){var s=0,l=t.length,u=null==n;if("object"===w(n))for(s in r=!0,n)tt(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,y(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(E(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:u?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function at(){this.expando=E.expando+at.uid++}at.uid=1,at.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(X)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||E.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!E.isEmptyObject(e)}};var st=new at,lt=new at,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ct=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ct,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return lt.hasData(t)||st.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return st.access(t,e,n)},_removeData:function(t,e){st.remove(t,e)}}),E.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!st.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=rt(i.slice(5)),dt(o,i,r[i]));st.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){lt.set(this,t)}):tt(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=dt(o,t))?n:void 0;this.each(function(){lt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){lt.remove(this,t)})}}),E.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=st.get(t,e),n&&(!i||Array.isArray(n)?i=st.access(t,e,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,r=n.shift(),o=E._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){E.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:E.Callbacks("once memory").add(function(){st.remove(t,[e+"queue",n])})})}}),E.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?E.queue(this[0],t):void 0===e?this:this.each(function(){var n=E.queue(this,t,e);E._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&E.dequeue(this,t)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=E.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=x.documentElement,gt=function(t){return E.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&gt(t)&&"none"===E.css(t,"display")};function xt(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return E.css(t,e,"")},l=s(),u=n&&n[3]||(E.cssNumber[e]?"":"px"),c=t.nodeType&&(E.cssNumber[e]||"px"!==u&&+l)&&ft.exec(E.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)E.style(t,e,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,E.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var _t={};function bt(t){var e,n=t.ownerDocument,i=t.nodeName,r=_t[i];return r||(e=n.body.appendChild(n.createElement(i)),r=E.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),_t[i]=r,r)}function wt(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=st.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&vt(i)&&(r[o]=bt(i))):"none"!==n&&(r[o]="none",st.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}E.fn.extend({show:function(){return wt(this,!0)},hide:function(){return wt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){vt(this)?E(this).show():E(this).hide()})}});var Mt,At,Et=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,St=/^$|^module$|\/(?:java|ecma)script/i;Mt=x.createDocumentFragment().appendChild(x.createElement("div")),(At=x.createElement("input")).setAttribute("type","radio"),At.setAttribute("checked","checked"),At.setAttribute("name","t"),Mt.appendChild(At),g.checkClone=Mt.cloneNode(!0).cloneNode(!0).lastChild.checked,Mt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Mt.cloneNode(!0).lastChild.defaultValue,Mt.innerHTML="<option></option>",g.option=!!Mt.lastChild;var Ct={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function kt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&S(t,e)?E.merge([t],n):n}function Pt(t,e){for(var n=0,i=t.length;n<i;n++)st.set(t[n],"globalEval",!e||st.get(e[n],"globalEval"))}Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td,g.option||(Ct.optgroup=Ct.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Lt(t,e,n,i,r){for(var o,a,s,l,u,c,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===w(o))E.merge(h,o.nodeType?[o]:o);else if(Ot.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(Tt.exec(o)||["",""])[1].toLowerCase(),l=Ct[s]||Ct._default,a.innerHTML=l[1]+E.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;E.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&E.inArray(o,i)>-1)r&&r.push(o);else if(u=gt(o),a=kt(d.appendChild(o),"script"),u&&Pt(a),n)for(c=0;o=a[c++];)St.test(o.type||"")&&n.push(o);return d}var Rt=/^([^.]*)(?:\.(.+)|)/;function It(){return!0}function Ft(){return!1}function Dt(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)Dt(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ft;else if(!r)return t;return 1===o&&(a=r,r=function(t){return E().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=E.guid++)),t.each(function(){E.event.add(this,e,r,i,n)})}function Gt(t,e,n){n?(st.set(t,e,!1),E.event.add(t,e,{namespace:!1,handler:function(t){var n,i=st.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(E.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=s.call(arguments),st.set(this,e,i),this[e](),n=st.get(this,e),st.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(st.set(this,e,E.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=It)}})):void 0===st.get(t,e)&&E.event.add(t,e,It)}E.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g=st.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&E.find.matchesSelector(mt,r),n.guid||(n.guid=E.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(X)||[""]).length;u--;)f=m=(s=Rt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=E.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=E.event.special[f]||{},c=E.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),E.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g=st.hasData(t)&&st.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(X)||[""]).length;u--;)if(f=m=(s=Rt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=E.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||E.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)E.event.remove(t,f+e[u],n,i,!0);E.isEmptyObject(l)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),l=E.event.fix(t),u=(st.get(this,"events")||Object.create(null))[l.type]||[],c=E.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=E.event.handlers.call(this,l,u),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((E.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?E(r,this).index(u)>-1:E.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Et.test(e.type)&&e.click&&S(e,"input")&&Gt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Et.test(e.type)&&e.click&&S(e,"input")&&Gt(e,"click"),!0},_default:function(t){var e=t.target;return Et.test(e.type)&&e.click&&S(e,"input")&&st.get(e,"click")||S(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?It:Ft,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Ft,isPropagationStopped:Ft,isImmediatePropagationStopped:Ft,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=It,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=It,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=It,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(x.documentMode){var n=st.get(this,"handle"),i=E.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else E.event.simulate(e,t.target,E.event.fix(t))}E.event.special[t]={setup:function(){var i;if(Gt(this,t,!0),!x.documentMode)return!1;(i=st.get(this,e))||this.addEventListener(e,n),st.set(this,e,(i||0)+1)},trigger:function(){return Gt(this,t),!0},teardown:function(){var t;if(!x.documentMode)return!1;(t=st.get(this,e)-1)?st.set(this,e,t):(this.removeEventListener(e,n),st.remove(this,e))},_default:function(e){return st.get(e.target,t)},delegateType:e},E.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,o=st.get(r,e);o||(x.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),st.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,o=st.get(r,e)-1;o?st.set(r,e,o):(x.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),st.remove(r,e))}}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){E.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||E.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),E.fn.extend({on:function(t,e,n,i){return Dt(this,t,e,n,i)},one:function(t,e,n,i){return Dt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Ft),this.each(function(){E.event.remove(this,t,n,e)})}});var jt=/<script|<style|<link/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,Bt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return S(t,"table")&&S(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Vt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(st.hasData(t)&&(s=st.get(t).events))for(r in st.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)E.event.add(e,r,s[r][n]);lt.hasData(t)&&(o=lt.access(t),a=E.extend({},o),lt.set(e,a))}}function Ht(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Et.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Wt(t,e,n,i){e=l(e);var r,o,a,s,u,c,d=0,h=t.length,f=h-1,p=e[0],m=y(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&Nt.test(p))return t.each(function(r){var o=t.eq(r);m&&(e[0]=p.call(this,r,o.html())),Wt(o,e,n,i)});if(h&&(o=(r=Lt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=E.map(kt(r,"script"),Vt)).length;d<h;d++)u=r,d!==f&&(u=E.clone(u,!0,!0),s&&E.merge(a,kt(u,"script"))),n.call(t[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,E.map(a,Ut),d=0;d<s;d++)u=a[d],St.test(u.type||"")&&!st.access(u,"globalEval")&&E.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?E._evalUrl&&!u.noModule&&E._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):b(u.textContent.replace(Bt,""),u,c))}return t}function Xt(t,e,n){for(var i,r=e?E.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||E.cleanData(kt(i)),i.parentNode&&(n&&gt(i)&&Pt(kt(i,"script")),i.parentNode.removeChild(i));return t}E.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(a=kt(s),i=0,r=(o=kt(t)).length;i<r;i++)Ht(o[i],a[i]);if(e)if(n)for(o=o||kt(t),a=a||kt(s),i=0,r=o.length;i<r;i++)qt(o[i],a[i]);else qt(t,s);return(a=kt(s,"script")).length>0&&Pt(a,!l&&kt(t,"script")),s},cleanData:function(t){for(var e,n,i,r=E.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[st.expando]){if(e.events)for(i in e.events)r[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);n[st.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Wt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)})},prepend:function(){return Wt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(kt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return E.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!jt.test(t)&&!Ct[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(E.cleanData(kt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Wt(this,arguments,function(e){var n=this.parentNode;E.inArray(this,t)<0&&(E.cleanData(kt(this)),n&&n.replaceChild(e,this))},t)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){E.fn[t]=function(t){for(var n,i=[],r=E(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),E(r[a])[e](n),u.apply(i,n.get());return this.pushStack(i)}});var Kt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Qt=/^--/,Zt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Yt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Jt=new RegExp(pt.join("|"),"i");function $t(t,e,n){var i,r,o,a,s=Qt.test(e),l=t.style;return(n=n||Zt(t))&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(L,"$1")||void 0),""!==a||gt(t)||(a=E.style(t,e)),!g.pixelBoxStyles()&&Kt.test(a)&&Jt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(u).appendChild(c);var t=i.getComputedStyle(c);n="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),mt.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,u=x.createElement("div"),c=x.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,E.extend(g,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==s&&(t=x.createElement("table"),e=x.createElement("tr"),n=x.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),s}}))}();var ee=["Webkit","Moz","ms"],ne=x.createElement("div").style,ie={};function re(t){var e=E.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ue(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0,u=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=E.css(t,n+pt[a],!0,r)),i?("content"===n&&(l-=E.css(t,"padding"+pt[a],!0,r)),"margin"!==n&&(l-=E.css(t,"border"+pt[a]+"Width",!0,r))):(l+=E.css(t,"padding"+pt[a],!0,r),"padding"!==n?l+=E.css(t,"border"+pt[a]+"Width",!0,r):s+=E.css(t,"border"+pt[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l+u}function ce(t,e,n){var i=Zt(t),r=(!g.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,i),o=r,a=$t(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Kt.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&S(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===E.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ue(t,e,n||(r?"border":"content"),o,i,a)+"px"}function de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=rt(e),l=Qt.test(e),u=t.style;if(l||(e=re(s)),a=E.cssHooks[e]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];"string"===(o=typeof n)&&(r=ft.exec(n))&&r[1]&&(n=xt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(E.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,a,s=rt(e);return Qt.test(e)||(e=re(s)),(a=E.cssHooks[e]||E.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=$t(t,e,i)),"normal"===r&&e in se&&(r=se[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),E.each(["height","width"],function(t,e){E.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,i):Yt(t,ae,function(){return ce(t,e,i)})},set:function(t,n,i){var r,o=Zt(t),a=!g.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===E.css(t,"boxSizing",!1,o),l=i?ue(t,e,i,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ue(t,e,"border",!1,o)-.5)),l&&(r=ft.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=E.css(t,e)),le(0,n,l)}}}),E.cssHooks.marginLeft=te(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat($t(t,"marginLeft"))||t.getBoundingClientRect().left-Yt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(t,e){E.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+pt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(E.cssHooks[t+e].set=le)}),E.fn.extend({css:function(t,e){return tt(this,function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Zt(t),r=e.length;a<r;a++)o[e[a]]=E.css(t,e[a],!1,i);return o}return void 0!==n?E.style(t,e,n):E.css(t,e)},t,e,arguments.length>1)}}),E.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=de.prototype.init,E.fx.step={};var he,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===x.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ge):i.setTimeout(ge,E.fx.interval),E.fx.tick())}function ye(){return i.setTimeout(function(){he=void 0}),he=Date.now()}function ve(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=pt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function xe(t,e,n){for(var i,r=(_e.tweeners[e]||[]).concat(_e.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function _e(t,e,n){var i,r,o=0,a=_e.prefilters.length,s=E.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=he||ye(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(i);return s.notifyWith(t,[u,i,n]),i<1&&a?n:(a||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var i=E.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=E.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);o<a;o++)if(i=_e.prefilters[o].call(u,t,c,u.opts))return y(i.stop)&&(E._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return E.map(c,xe,u),y(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),E.fx.timer(E.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}E.Animation=E.extend(_e,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return xt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);for(var n,i=0,r=t.length;i<r;i++)n=t[i],_e.tweeners[n]=_e.tweeners[n]||[],_e.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,u,c,d="width"in e||"height"in e,h=this,f={},p=t.style,m=t.nodeType&&vt(t),g=st.get(t,"fxshow");for(i in n.queue||(null==(a=E._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,E.queue(t,"fx").length||a.empty.fire()})})),e)if(r=e[i],pe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||E.style(t,i)}if((l=!E.isEmptyObject(e))||!E.isEmptyObject(f))for(i in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=st.get(t,"display")),"none"===(c=E.css(t,"display"))&&(u?c=u:(wt([t],!0),u=t.style.display||u,c=E.css(t,"display"),wt([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===E.css(t,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=st.access(t,"fxshow",{display:u}),o&&(g.hidden=!m),m&&wt([t],!0),h.done(function(){for(i in m||wt([t]),st.remove(t,"fxshow"),f)E.style(t,i,f[i])})),l=xe(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?_e.prefilters.unshift(t):_e.prefilters.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=E.isEmptyObject(t),o=E.speed(e,n,i),a=function(){var e=_e(this,E.extend({},t),o);(r||st.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=E.timers,a=st.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&me.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||E.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=st.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=E.timers,a=i?i.length:0;for(n.finish=!0,E.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),E.each(["toggle","show","hide"],function(t,e){var n=E.fn[e];E.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,i,r)}}),E.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){E.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),he=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){fe||(fe=!0,ge())},E.fx.stop=function(){fe=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(t,e){return t=E.fx&&E.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}})},function(){var t=x.createElement("input"),e=x.createElement("select").appendChild(x.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=x.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var be,we=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return tt(this,E.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,e,n):(1===o&&E.isXMLDoc(t)||(r=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?be:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=E.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&S(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(X);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),be={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var n=we[e]||E.find.attr;we[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=we[a],we[a]=r,r=null!=n(t,e,i)?a:null,we[a]=o),r}});var Me=/^(?:input|select|textarea|button)$/i,Ae=/^(?:a|area)$/i;function Ee(t){return(t.match(X)||[]).join(" ")}function Te(t){return t.getAttribute&&t.getAttribute("class")||""}function Se(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}E.fn.extend({prop:function(t,e){return tt(this,E.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(e=E.propFix[e]||e,r=E.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):Me.test(t.nodeName)||Ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(E.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(t){var e,n,i,r,o,a;return y(t)?this.each(function(e){E(this).addClass(t.call(this,e,Te(this)))}):(e=Se(t)).length?this.each(function(){if(i=Te(this),n=1===this.nodeType&&" "+Ee(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=Ee(n),i!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,i,r,o,a;return y(t)?this.each(function(e){E(this).removeClass(t.call(this,e,Te(this)))}):arguments.length?(e=Se(t)).length?this.each(function(){if(i=Te(this),n=1===this.nodeType&&" "+Ee(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=Ee(n),i!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,a=typeof t,s="string"===a||Array.isArray(t);return y(t)?this.each(function(n){E(this).toggleClass(t.call(this,n,Te(this),e),e)}):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=Se(t),this.each(function(){if(s)for(o=E(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==a||((i=Te(this))&&st.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":st.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ee(Te(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;E.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,E(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=E.map(r,function(t){return null==t?"":t+""})),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=E.valHooks[r.type]||E.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ce,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:Ee(E.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(e=E(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=E.makeArray(e),a=r.length;a--;)((i=r[a]).selected=E.inArray(E.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=E.inArray(E(t).val(),e)>-1}},g.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ke=i.location,Pe={guid:Date.now()},Oe=/\?/;E.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,Re=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,e,n,r){var o,a,s,l,u,c,d,h,p=[n||x],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!Le.test(m+E.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[E.expando]?t:new E.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:E.makeArray(e,[t]),d=E.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!v(n)){for(l=d.delegateType||m,Le.test(l+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||x)&&p.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?l:d.bindType||m,(c=(st.get(a,"events")||Object.create(null))[t.type]&&st.get(a,"handle"))&&c.apply(a,e),(c=u&&a[u])&&c.apply&&ot(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),e)||!ot(n)||u&&y(n[m])&&!v(n)&&((s=n[u])&&(n[u]=null),E.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Re),n[m](),t.isPropagationStopped()&&h.removeEventListener(m,Re),E.event.triggered=void 0,s&&(n[u]=s)),t.result}},simulate:function(t,e,n){var i=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(i,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}});var Ie=/\[\]$/,Fe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ge=/^(?:input|select|textarea|keygen)/i;function je(t,e,n,i){var r;if(Array.isArray(e))E.each(e,function(e,r){n||Ie.test(t)?i(t,r):je(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==w(e))i(t,e);else for(r in e)je(t+"["+r+"]",e[r],n,i)}E.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){r(this.name,this.value)});else for(n in t)je(n,t[n],e,r);return i.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Ge.test(this.nodeName)&&!De.test(t)&&(this.checked||!Et.test(t))}).map(function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(t){return{name:e.name,value:t.replace(Fe,"\r\n")}}):{name:e.name,value:n.replace(Fe,"\r\n")}}).get()}});var Ne=/%20/g,Be=/#.*$/,ze=/([?&])_=[^&]*/,Ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,qe=/^\/\//,He={},We={},Xe="*/".concat("*"),Ke=x.createElement("a");function Qe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(X)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ze(t,e,n,i){var r={},o=t===We;function a(s){var l;return r[s]=!0,E.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Ye(t,e){var n,i,r=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&E.extend(!0,t,i),t}Ke.href=ke.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ye(Ye(t,E.ajaxSettings),e):Ye(E.ajaxSettings,t)},ajaxPrefilter:Qe(He),ajaxTransport:Qe(We),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,a,s,l,u,c,d,h,f=E.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?E(p):E.event,g=E.Deferred(),y=E.Callbacks("once memory"),v=f.statusCode||{},_={},b={},w="canceled",M={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Ve.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)M.always(t[M.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||w;return n&&n.abort(e),A(0,e),this}};if(g.promise(M),f.url=((t||f.url||ke.href)+"").replace(qe,ke.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){l=x.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ke.protocol+"//"+Ke.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),Ze(He,f,e,M),u)return M;for(d in(c=E.event&&f.global)&&0===E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ue.test(f.type),r=f.url.replace(Be,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ne,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Oe.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(ze,"$1"),h=(Oe.test(r)?"&":"?")+"_="+Pe.guid+++h),f.url=r+h),f.ifModified&&(E.lastModified[r]&&M.setRequestHeader("If-Modified-Since",E.lastModified[r]),E.etag[r]&&M.setRequestHeader("If-None-Match",E.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&M.setRequestHeader("Content-Type",f.contentType),M.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xe+"; q=0.01":""):f.accepts["*"]),f.headers)M.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,M,f)||u))return M.abort();if(w="abort",y.add(f.complete),M.done(f.success),M.fail(f.error),n=Ze(We,f,e,M)){if(M.readyState=1,c&&m.trigger("ajaxSend",[M,f]),u)return M;f.async&&f.timeout>0&&(s=i.setTimeout(function(){M.abort("timeout")},f.timeout));try{u=!1,n.send(_,A)}catch(t){if(u)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,e,a,l){var d,h,x,_,b,w=e;u||(u=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",M.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,M,a)),!d&&E.inArray("script",f.dataTypes)>-1&&E.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),_=function(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,_,M,d),d?(f.ifModified&&((b=M.getResponseHeader("Last-Modified"))&&(E.lastModified[r]=b),(b=M.getResponseHeader("etag"))&&(E.etag[r]=b)),204===t||"HEAD"===f.type?w="nocontent":304===t?w="notmodified":(w=_.state,h=_.data,d=!(x=_.error))):(x=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(e||w)+"",d?g.resolveWith(p,[h,w,M]):g.rejectWith(p,[M,w,x]),M.statusCode(v),v=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[M,f,d?h:x]),y.fireWith(p,[M,w]),c&&(m.trigger("ajaxComplete",[M,f]),--E.active||E.event.trigger("ajaxStop")))}return M},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,e){E[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),E.ajax(E.extend({url:t,type:e,dataType:r,data:n,success:i},E.isPlainObject(t)&&t))}}),E.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){E(this).wrapInner(t.call(this,e))}):this.each(function(){var e=E(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){E(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},$e=E.ajaxSettings.xhr();g.cors=!!$e&&"withCredentials"in $e,g.ajax=$e=!!$e,E.ajaxTransport(function(t){var e,n;if(g.cors||$e&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Je[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),E.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=E("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),x.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||E.expando+"_"+Pe.guid++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",function(t,e,n){var r,o,a,s=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||E.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always(function(){void 0===o?E(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),a&&y(o)&&o(a[0]),a=o=void 0}),"script"}),g.createHTMLDocument=((tn=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((i=(e=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,e.head.appendChild(i)):e=x),o=!n&&[],(r=B.exec(t))?[e.createElement(r[1])]:(r=Lt([t],e,o),o&&o.length&&E(o).remove(),E.merge([],r.childNodes)));var i,r,o},E.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=Ee(t.slice(s)),t=t.slice(0,s)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&E.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u=E.css(t,"position"),c=E(t),d={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=E.css(t,"top"),l=E.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),y(e)&&(e=e.call(t,n,E.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):c.css(d)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===E.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),r.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-E.css(i,"marginTop",!0),left:e.left-r.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||mt})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;E.fn[t]=function(i){return tt(this,function(t,i,r){var o;if(v(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),E.each(["top","left"],function(t,e){E.cssHooks[e]=te(g.pixelPosition,function(t,n){if(n)return n=$t(t,e),Kt.test(n)?E(t).position()[e]+"px":n})}),E.each({Height:"height",Width:"width"},function(t,e){E.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){E.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return tt(this,function(e,n,r){var o;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?E.css(e,n,s):E.style(e,n,r,s)},e,a?r:void 0,a)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){E.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=s.call(arguments,2),r=function(){return t.apply(e||this,i.concat(s.call(arguments)))},r.guid=t.guid=t.guid||E.guid++,r},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=S,E.isFunction=y,E.isWindow=v,E.camelCase=rt,E.type=w,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return E}.apply(e,[]))||(t.exports=n);var on=i.jQuery,an=i.$;return E.noConflict=function(t){return i.$===E&&(i.$=an),t&&i.jQuery===E&&(i.jQuery=on),E},void 0===r&&(i.jQuery=i.$=E),E})},5618:function(t){t.exports=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],c=e[9],d=e[10],h=e[11];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]);return t[4]=o*r+u*i,t[5]=a*r+c*i,t[6]=s*r+d*i,t[7]=l*r+h*i,t[8]=u*r-o*i,t[9]=c*r-a*i,t[10]=d*r-s*i,t[11]=h*r-l*i,t}},5637:function(t,e,n){var i=n(1949),r=n(7715);r=r.__esModule?r.default:r;var o={maxCount:1e3,count:0,memo:{}};function a(t,e){return o.count+=1,o.count>=o.maxCount&&(o.memo={},o.count=0),o.memo[t]=e,e}var s={convertColor:function(t){if(null==t||void 0!==t.r&&void 0!==t.g&&void 0!==t.b)return t;if(void 0!==o.memo[t])return o.memo[t];var e,n=t;if("string"==typeof t){var i=t.toLowerCase();if(r.hasOwnProperty(i))t={r:r[i][0]/255,g:r[i][1]/255,b:r[i][2]/255};else if("#"===t.charAt(0))4===t.length||5===t.length?(5===t.length&&(e=parseInt(t.slice(4),16)/15),t=4352*(3840&(t=parseInt(t.slice(1,4),16)))+272*(240&t)+17*(15&t)):7!==t.length&&9!==t.length||(9===t.length&&(e=parseInt(t.slice(7),16)/255),t=parseInt(t.slice(1,7),16));else if("transparent"===i)e=t=0;else if(i.indexOf("(")>=0)for(var l=0;l<s.cssColorConversions.length;l+=1){var u=s.cssColorConversions[l].regex.exec(i);if(u)return a(n,t=s.cssColorConversions[l].process(i,u))}}return isFinite(t)&&(t={r:((16711680&t)>>16)/255,g:((65280&t)>>8)/255,b:(255&t)/255}),void 0!==e&&t&&void 0!==t.r&&(t.a=e),a(n,t)},convertColorAndOpacity:function(t,e,n){return(t=s.convertColor(t))&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b||(t=s.convertColor(n||{r:0,g:0,b:0})),t&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b||(t={r:0,g:0,b:0}),t={r:isFinite(t.r)&&t.r>=0?t.r<=1?+t.r:1:0,g:isFinite(t.g)&&t.g>=0?t.g<=1?+t.g:1:0,b:isFinite(t.b)&&t.b>=0?t.b<=1?+t.b:1:0,a:i.isNonNullFinite(t.a)&&t.a>=0&&t.a<1?+t.a:1},i.isNonNullFinite(e)&&e<1&&(t.a=e<=0?0:t.a*e),t},convertColorToHex:function(t,e){var n,i=s.convertColor(t);return n=i.r||i.g||i.b?"#"+((1<<24)+(Math.round(255*i.r)<<16)+(Math.round(255*i.g)<<8)+Math.round(255*i.b)).toString(16).slice(1):"#000000",void 0!==i.a&&e&&(i.a<1||"needed"!==e)&&(n+=(256+Math.round(255*i.a)).toString(16).slice(1)),n},convertColorToRGBA:function(t){var e=s.convertColor(t);return e||(e={r:0,g:0,b:0}),(!i.isNonNullFinite(e.a)||e.a>1)&&(e.a=1),"rgba("+Math.round(255*e.r)+", "+Math.round(255*e.g)+", "+Math.round(255*e.b)+", "+ +(+e.a).toFixed(5)+")"},cssAngleUnitsBase:{deg:360,grad:400,rad:2*Math.PI,turn:1},cssNumberRegex:"[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?"};s.cssColorConversions=[{name:"rgb",regex:new RegExp("^\\s*rgba?\\(\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*,?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*,?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*([/,]?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*)?\\)\\s*$"),process:function(t,e){return t={r:Math.min(1,Math.max(0,+e[1]/(e[2]?100:255))),g:Math.min(1,Math.max(0,+e[3]/(e[4]?100:255))),b:Math.min(1,Math.max(0,+e[5]/(e[6]?100:255)))},e[7]&&(t.a=Math.min(1,Math.max(0,+e[8]/(e[9]?100:1)))),t}},{name:"hsl",regex:new RegExp("^\\s*hsla?\\(\\s*("+s.cssNumberRegex+")\\s*(deg|grad|rad|turn)?\\s*,?\\s*("+s.cssNumberRegex+")\\s*%\\s*,?\\s*("+s.cssNumberRegex+")\\s*%\\s*([/,]?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*)?\\)\\s*$"),process:function(t,e){var n=function(t,e,n){return 6*(n-=Math.floor(n))<1?t+(e-t)*n*6:6*n<3?e:6*n<4?t+(e-t)*(2/3-n)*6:t},i=+e[1]/(s.cssAngleUnitsBase[e[2]]||360),r=Math.min(1,Math.max(0,+e[3]/100)),o=Math.min(1,Math.max(0,+e[4]/100)),a=o<=.5?o*(r+1):o+r-o*r,l=2*o-a;return t={r:n(l,a,i+1/3),g:n(l,a,i),b:n(l,a,i-1/3)},e[5]&&(t.a=Math.min(1,Math.max(0,+e[6]/(e[7]?100:1)))),t}}],t.exports=s},5647:function(t,e,n){function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var o=n(6820),a=n(6211),s=n(1949),l={"+":"union","|":"union",add:"union","-":"difference",sub:"difference",subtract:"difference",minus:"difference","*":"intersect","&":"intersect",mul:"intersect",multiply:"intersect",x:"xor","^":"xor"};function u(t,e,n){for(t="select"+t.charAt(0).toUpperCase()+t.slice(1),o.epsilon(e);n.length>1;){for(var i=[],r=Math.ceil(n.length/2),a=0;a<r;a+=1){var s=n[a];if(a+r<n.length){var l=n[a+r];try{s=o.combine(s,l)}catch(t){s=o.segments(o.polygon(s)),l=o.segments(o.polygon(l));for(var u=20;u>=6;u-=1){o.epsilon(Math.pow(.1,u));try{s=o.combine(s,l);break}catch(t){}}o.epsilon(e)}s.combined?(s.combined=s.combined.filter(function(t){return Math.abs(t.start[0]-t.end[0])>e||Math.abs(t.start[1]-t.end[1])>e}),s=o[t](s)):console.warn("Failed in polygon functions."),s.segments=s.segments.filter(function(t){return Math.abs(t.start[0]-t.end[0])>e||Math.abs(t.start[1]-t.end[1])>e})}i.push(s)}n=i}return n}function c(t,e,n){if(e=e||{},t.toPolygonList){if(e.style=t,!(t=t.toPolygonList(n)).length)return e.min=e.max=[0,0],e.epsilon=1e-10,t}else{if(e.style="",t.outer?(e.style="-outer",t=[[t.outer].concat(i(t.inner||[]))]):t.length&&t[0].outer&&(e.style="-outer-list",t=t.map(function(t){return[t.outer].concat(i(t.inner||[]))})),!t.length)return e.style="flat-listlist"+e.style,e.min=e.max=[0,0],e.epsilon=1e-10,t;void 0!==t[0].x?(e.style="object",t=[[t.map(function(t){return[t.x,t.y]})]]):void 0!==t[0][0].x?(e.style="object-list"+e.style,t=[t.map(function(t){return t.map(function(t){return[t.x,t.y]})})]):void 0===t[0][0][0]?(e.style="flat",t=[[t]]):void 0!==t[0][0][0].x?(e.style="object-listlist"+e.style,t=t.map(function(t){return t.map(function(t){return t.map(function(t){return[t.x,t.y]})})})):void 0===t[0][0][0][0]?(e.style="flat-list",t=[t]):e.style="flat-listlist"+e.style}return e.min=[t[0][0][0][0],t[0][0][0][1]],e.max=[t[0][0][0][0],t[0][0][0][1]],t.forEach(function(t){return t.forEach(function(t){return t.forEach(function(t){t[0]<e.min[0]&&(e.min[0]=t[0]),t[0]>e.max[0]&&(e.max[0]=t[0]),t[1]<e.min[1]&&(e.min[1]=t[1]),t[1]>e.max[1]&&(e.max[1]=t[1])})})}),e.epsilon=1e-10*Math.max(Math.max(e.max[0],e.max[1]),Math.max(Math.abs(e.min[0]),Math.abs(e.min[1]))),t}function d(t,e,n){return e.style.fromPolygonList?e.style.fromPolygonList(t,n):(e.style.includes("object")&&(t=t.map(function(t){return t.map(function(t){return t.map(function(t){return{x:t[0],y:t[1]}})})})),e.style.includes("outer")&&(t=[t.map(function(t){return{outer:t[0],inner:t.slice(1)}})]),e.style.endsWith("listlist")||(t=e.style.endsWith("list")?t[0]:t[0][0]),t)}function h(t,e,i,r){var h=n(5325);t=l[t]||t,e.poly1&&(e=(r=e).poly1,i=r.poly2);var f=(r=r||{}).ingcs||(r.map?r.map.ingcs():e.gcs?e.gcs():e.layer&&e.layer().gcs?e.layer().gcs():e.layer?e.layer().map().ingcs():e.map instanceof a?e.map().ingcs():void 0),p=r.ingcs||(r.map?r.map.ingcs():i.gcs?i.gcs():i.layer&&i.layer().gcs?i.layer().gcs():i.layer?i.layer().map().ingcs():i.map instanceof a?i.map().ingcs():f),m=r.gcs||(r.map?r.map.gcs():e.layer?e.layer().map().gcs():e.map instanceof a?e.map().gcs():void 0),g={},y={};e=c(e,g,r),i=c(i,y,r),g.epsilon=r.epsilon1||g.epsilon,y.epsilon=r.epsilon2||g.epsilon,f&&m&&f!==m&&(e=e.map(function(t){return t.map(function(t){return h.transformCoordinates(f,m,t)})})),p&&m&&p!==m&&(i=i.map(function(t){return t.map(function(t){return h.transformCoordinates(p,m,t)})}));var v=e.map(function(t){return o.segments({regions:t})}),x=i.map(function(t){return o.segments({regions:t})});v=u(r.innerOperation||"union",g.epsilon,v),x=u(r.innerOperation||"union",y.epsilon,x);var _=v;v[0]&&x[0]?(v[0].inverted=!1,x[0].inverted=!1,_=u(t,Math.max(g.epsilon,y.epsilon),[v[0],x[0]])):x[0]&&(_=x);var b,w,M=function(t){var e=[],n=[],i=[],r=[];t.forEach(function(t){return o.polygon(t).regions.forEach(function(t){var e=t.map(function(t){return{x:t[0],y:t[1]}});e.length<3||(r.push([]),n.forEach(function(t,i){s.pointInPolygon(e[0],t)?r[n.length].push(i):s.pointInPolygon(t[0],e)&&r[i].push(n.length)}),i.push(t),n.push(e))})});for(var a=Array(i.length),l=0;l<i.length;){for(var u=0;u<i.length;u+=1)void 0!==a[u]||r[u].length||(a[u]=e.length,e.push([i[u].reverse()]),l+=1);for(var c=0;c<i.length;c+=1)void 0===a[c]&&1===r[c].length&&void 0!==a[r[c][0]]&&(e[a[r[c][0]]].push(i[c]),a[c]=a[r[c][0]],l+=1);for(var d=0;d<i.length;d+=1)r[d]=r[d].filter(function(t){return void 0===a[t]})}return e.length?e:[[]]}(_);return r.correspond&&function(t,e,n,i){var r={},o=[];n.forEach(function(t,e){return t.forEach(function(t){return t.forEach(function(t){var n="_"+t[0]+"_"+t[1];r[n]?-1===r[n].indexOf(e)&&r[n].push(e):r[n]=[e],o.length<=e&&o.push(0),o[e]+=1})})}),["poly1","poly2"].forEach(function(a){var s="poly1"===a?t:e,l="poly1"===a?"exact1":"exact2";i[a]=Array(s.length),i[l]=Array(s.length),s.forEach(function(t,e){var s={},u=0;t.forEach(function(t){return t.forEach(function(t){var e="_"+t[0]+"_"+t[1];r[e]?r[e].forEach(function(t){s[t]=(s[t]||0)+1}):u+=1})}),Object.keys(s).forEach(function(r){s[r]!==o[+r]||u||t.length!==n[+r].length||(i[l][e]||(i[l][e]=[]),i[l][e].push(+r)),s[r]>=2&&(i[a][e]||(i[a][e]=[]),i[a][e].push(+r))})})})}(e,i,M,r.correspond),f&&m&&f!==m&&(M=M.map(function(t){return t.map(function(t){return h.transformCoordinates(m,f,t)})})),d(M,{style:r.style||(b=M,w=g.style,w.fromPolygonList?w:b.length>1?w.includes("outer")?w+(w.endsWith("list")?"":"-list"):w.endsWith("listlist")?w:w+(w.endsWith("list")?"list":"-listlist"):1===b.length&&b[0].length>1?w.includes("outer")||w.endsWith("list")?w:w+"-list":w)},r)}function f(t){return function(e,n,i){return h(t,e,n,i)}}t.exports={union:f("union"),intersect:f("intersect"),difference:f("difference"),xor:f("xor"),toPolygonList:c,fromPolygonList:d}},5685:function(t){t.exports="/* lineFeature fragment shader */\n\n#ifdef GL_ES\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n #endif\n#endif\nvarying vec4 strokeColorVar;\nvarying vec4 subpos;\nvarying vec4 info;\nvarying vec4 angles;\nuniform float antialiasing;\nuniform float miterLimit;\nuniform float fixedFlags;\n\nvoid main () {\n vec4 color = strokeColorVar;\n float opacity = 1.0;\n int nearMode = int(floor(info.x + 0.5));\n int farMode = int(floor(info.y + 0.5));\n float cosABC = angles.x;\n float sinABC = angles.y;\n float cosBCD = angles.z;\n float sinBCD = angles.w;\n // never render on the opposite side of a miter. This uses a bit of\n // slop, via pow(smoothstep()) instead of step(), since there are\n // precision issues in this calculation. This doesn't wholly solve\n // the precision issue; sometimes pixels are missed or double\n // rendered along the inside seam of a miter.\n if (nearMode >= 4) {\n float dist = cosABC * subpos.x - sinABC * subpos.y;\n opacity = min(opacity, pow(smoothstep(-0.02, 0.02, dist), 0.5));\n if (opacity == 0.0) {\n discard;\n }\n }\n if (farMode >= 4) {\n float dist = cosBCD * subpos.z - sinBCD * subpos.y;\n opacity = min(opacity, pow(smoothstep(-0.02, 0.02, dist), 0.5));\n if (opacity == 0.0) {\n discard;\n }\n }\n // butt or square cap\n if ((nearMode == 0 || nearMode == 1) && subpos.x < antialiasing) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.x + subpos.w * float(nearMode)));\n }\n if ((farMode == 0 || farMode == 1) && subpos.z < antialiasing) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.z + subpos.w * float(farMode)));\n }\n // round cap\n if (nearMode == 2 && subpos.x <= 0.0) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.w - sqrt(pow(subpos.x, 2.0) + pow(subpos.y - info.z * subpos.w, 2.0))));\n }\n if (farMode == 2 && subpos.z <= 0.0) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.w - sqrt(pow(subpos.z, 2.0) + pow(subpos.y - info.z * subpos.w, 2.0))));\n }\n // bevel and clip joins\n if ((nearMode == 5 || nearMode == 7) && subpos.x < antialiasing) {\n float dist = (sinABC * subpos.x + cosABC * subpos.y) * sign(sinABC);\n float w = subpos.w * (1.0 - info.z * sign(sinABC));\n float maxDist;\n if (nearMode == 5) maxDist = cosABC * w;\n else maxDist = miterLimit * w;\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, maxDist + dist));\n }\n if ((farMode == 5 || farMode == 7) && subpos.z < antialiasing) {\n float dist = (sinBCD * subpos.z + cosBCD * subpos.y) * sign(sinBCD);\n float w = subpos.w * (1.0 - info.z * sign(sinBCD));\n float maxDist;\n if (farMode == 5) maxDist = cosBCD * w;\n else maxDist = miterLimit * w;\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, maxDist + dist));\n }\n // round join\n if (nearMode == 6 && subpos.x <= 0.0) {\n float w = subpos.w * (1.0 - info.z * sign(sinABC));\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, w - sqrt(pow(subpos.x, 2.0) + pow(subpos.y, 2.0))));\n }\n if (farMode == 6 && subpos.z <= 0.0) {\n float w = subpos.w * (1.0 - info.z * sign(sinBCD));\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, w - sqrt(pow(subpos.z, 2.0) + pow(subpos.y, 2.0))));\n }\n // antialias along main edges\n if (antialiasing > 0.0) {\n if (subpos.y > subpos.w * (1.0 + info.z) - antialiasing) {\n opacity = min(opacity, smoothstep(antialiasing, -antialiasing, subpos.y - subpos.w * (1.0 + info.z)));\n }\n if (subpos.y < subpos.w * (-1.0 + info.z) + antialiasing) {\n opacity = min(opacity, smoothstep(-antialiasing, antialiasing, subpos.y - subpos.w * (-1.0 + info.z)));\n }\n }\n if (opacity == 0.0) {\n discard;\n }\n color.a *= opacity;\n gl_FragColor = color;\n}\n"},5696:function(t){t.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},5723:function(t){t.exports=function(t){var e=new Float32Array(9);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}},5734:function(t,e,n){var i=n(2493).d3,r=n(8524),o=n(4626),a=n(1098).registerWidget,s=n(642),l=n(7376);n(1159);var u=function(t){"use strict";if(!(this instanceof u))return new u(t);r.call(this,t);var e=this,n=[],o=t.width||300,a=t.ticks||6,d=this._init;return this._init=function(){d();var n=e.canvas();i.select(n).attr("class","color-legend-container"),e.popup=i.select(n).append("div").attr("class","color-legend-popup"),t.categories&&e.categories(t.categories)},this._draw=function(){if(i.select(e.canvas()).selectAll("div.geojs-color-legends").remove(),n.length){i.select(e.canvas()).style("display","block");var t=i.select(e.canvas()).append("div").attr("class","geojs-color-legends"),r=o;n.forEach(function(n,i){var o=t.append("div").attr("class","geojs-color-legend");o.append("div").attr("class","geojs-title").text(n.name);var a=o.append("svg").attr("class","svg").attr("width",r).attr("height","40px").attr("viewBox","-20 0 "+r+" 40");"discrete"===n.type?e._drawDiscrete(a,r-40,n):"continuous"===n.type&&e._drawContinous(a,r-40,n)})}else i.select(e.canvas()).style("display","none")},this.categories=function(t){return void 0===t?n:(n=e._prepareCategories(t),e._draw(),e)},this.addCategories=function(t){return n=n.concat(e._prepareCategories(t)),e._draw(),e},this.removeCategories=function(t){return n=n.filter(function(e){return-1===t.indexOf(e)}),e._draw(),e},this._prepareCategories=function(t){return t.forEach(function(t){t.color=t.colors.map(function(t){return s.convertColorToHex(t,!0)})}),t},this._drawDiscrete=function(t,n,r){function o(t){var e=Math.ceil(t.domain().length/a),n=t.domain().filter(function(t,n){return n%e===0});return i.axisBottom(t).tickFormat(i.format(".2s")).tickValues(n)}if(-1===["linear","log","sqrt","pow","quantile","ordinal"].indexOf(r.scale))throw new Error("unsupported scale");var l,u,d,h,f,p,m;if("ordinal"===r.scale){d=i.scaleOrdinal().domain(r.domain).range(r.colors),e._renderDiscreteColors(t,r.domain,d,n,function(t){return t}),h=i.scaleBand().domain(r.domain).rangeRound([0,n]);var g=Math.ceil(r.domain.length/a),y=r.domain.filter(function(t,e){return e%g===0});f=i.axisBottom(h).tickValues(y)}else if("quantile"===r.scale){l=[0,r.colors.length],p=s.range(0,r.colors.length-1),u=i.scaleQuantile().domain(r.domain).range(p),d=i.scaleQuantize().domain(l).range(r.colors),e._renderDiscreteColors(t,p,d,n,function(t){return u.invertExtent(t).join(" - ")});var v=[u.invertExtent(0)[0]];v=v.concat(p.map(function(t){return u.invertExtent(t)[1]})),f=o(h=i.scalePoint().domain(v).range([0,n]))}else if(-1!==["linear","log","sqrt","pow"].indexOf(r.scale)){l=[0,r.colors.length],u=i["scale"+r.scale.charAt(0).toUpperCase()+r.scale.slice(1)]().domain(r.domain).range(l).nice(),d=i.scaleQuantize().domain(l).range(r.colors),p=s.range(0,r.colors.length-1);var x=Math.max.apply(null,r.domain.map(function(t){return c(t)}));e._renderDiscreteColors(t,p,d,n,function(t){return e._popupFormatter(u.invert(t),x)+" - "+e._popupFormatter(u.invert(t+1),x)}),(m=p.slice()).push(r.colors.length),f=o(h=i.scalePoint().domain(m.map(function(t){return u.invert(t)})).range([0,n]))}r.endAxisLabelOnly&&f.tickValues([h.domain()[0],h.domain()[h.domain().length-1]]),e._renderAxis(t,f)},this._renderDiscreteColors=function(t,n,i,r,o){t.selectAll("rect").data(n).enter().append("rect").attr("width",r/n.length).attr("height","20px").attr("fill",function(t){return i(t)}).attr("transform",function(t,e){return"translate("+e*r/n.length+" ,0)"}).on("mousemove",function(t,n){e._showPopup(t,o(n))}).on("mouseout",e._hidePopup)},this._drawContinous=function(t,n,r){var o,s,u;if(-1===["linear","log","sqrt","pow"].indexOf(r.scale))throw new Error("unsupported scale");var d=[0];for(u=1;u<r.domain.length-1;u++)d.push(n/(r.domain.length-1)*u);d.push(n),o=i["scale"+r.scale.charAt(0).toUpperCase()+r.scale.slice(1)]().domain(r.domain).range(d).nice(),"log"===r.scale&&r.base&&o.base(r.base),"pow"===r.scale&&r.exponent&&o.exponent(r.exponent);var h=l(),f=Math.max.apply(null,r.domain.map(function(t){return c(t)})),p=t.append("defs").append("linearGradient").attr("id","gradient"+h);for(p.append("stop").attr("offset","0%").attr("stop-color",r.colors[0]),u=1;u<r.colors.length-1;u++)p.append("stop").attr("offset",(100/(r.colors.length-1)*u).toFixed(6)+"%").attr("stop-color",r.colors[u]);p.append("stop").attr("offset","100%").attr("stop-color",r.colors[r.colors.length-1]),t.append("rect").attr("fill","url(#gradient"+h+")").attr("width",n).attr("height","20px").on("mousemove",function(t){var n=o.invert(i.pointer(t)[0]),r=e._popupFormatter(n,f);e._showPopup(t,r)}).on("mouseout",e._hidePopup),s=i.axisBottom(o).ticks(a,".2s"),r.endAxisLabelOnly&&s.tickValues([r.domain[0],r.domain[r.domain.length-1]]),e._renderAxis(t,s)},this._renderAxis=function(t,e){t.append("g").attr("class","axis x").attr("transform","translate(0, 20)").call(e)},this._popupFormatter=function(t,e){return t=parseFloat(t.toFixed(8)),e=Math.min(e,c(t)),e=Math.min(e,Math.max(3,7-Math.trunc(t).toString().length)),i.format("."+e+"f")(t)},this.width=function(t){return void 0===t?o:(t!==o&&(o=t,e._prepareCategories(n),e._draw()),e)},this.ticks=function(t){return void 0===t?a:(t!==a&&(a=t,e._prepareCategories(n),e._draw()),e)},this._showPopup=function(t,n){var r=i.pointer(t,e.canvas());e.popup.text(n);var o=e.canvas().clientWidth,a=e.popup.node().clientWidth;e.popup.style("left",r[0]-(r[0]+a-o>-10?a:0)+"px").style("top",r[1]-22+"px").transition().duration(200).style("opacity",1)},this._hidePopup=function(){e.popup.transition().duration(200).style("opacity",0)},this};function c(t){if(!isFinite(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;){if(!isFinite(t*e))return 0;e*=10,n++}return n}o(u,r),a("dom","colorLegend",u),t.exports=u},5747:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6858),a={arrow:{attrs:{class:"geo-vector-arrow geo-vector-marker",viewBox:"0 0 10 10",refX:1,refY:5,markerHeight:5,markerWidth:5,orient:"auto"},path:"M 0 0 L 10 5 L 0 10 z"},point:{attrs:{class:"geo-vector-point geo-vector-marker",viewBox:"0 0 12 12",refX:6,refY:6,markerHeight:8,markerWidth:8,orient:"auto"},path:"M 6 3 A 3 3 0 1 1 5.99999 3 Z"},bar:{attrs:{class:"geo-vector-bar geo-vector-marker",viewBox:"0 0 10 10",refX:0,refY:5,markerHeight:6,markerWidth:6,orient:"auto"},path:"M 0 0 L 2 0 L 2 10 L 0 10 z"},wedge:{attrs:{class:"geo-vector-wedge geo-vector-marker",viewBox:"0 0 10 10",refX:10,refY:5,markerHeight:5,markerWidth:5,orient:"auto"},path:"M 0 0 L 1 0 L 10 5 L 1 10 L 0 10 L 9 5 L 0 0"}},s=function(t){"use strict";if(!(this instanceof s))return new s(t);var e=n(5005),i=n(77),r=n(2493).d3;t=t||{},o.call(this,t),e.call(this);var l=this,u=this._exit,c=this._update,d=i(),h={};function f(t,e,n){return l._svgid()+"_marker_"+e+"_"+n}function p(t,e,n,i,o){var s=l.renderer()._definitions().selectAll("g.marker-group#"+l._svgid()).data(t.length?[1]:[]);s.enter().append("g").attr("id",l._svgid).attr("class","marker-group"),s.exit().remove();var u=t.reduce(function(t,e,n){var r=a[o(e,n)],s=a[i(e,n)];return r&&t.push({data:e,dataIndex:n,head:!0}),s&&t.push({data:e,dataIndex:n,head:!1}),t},[]),c=(s=l.renderer()._definitions().selectAll("g.marker-group#"+l._svgid())).selectAll("marker.geo-vector-marker").data(u),d=l.renderer();c.enter().append("marker").each(function(t){var e=r.select(this),n=t.head?a[o(t.data,t.dataIndex)]:a[i(t.data,t.dataIndex)];Object.keys(n.attrs).forEach(function(t){e.attr(t,n.attrs[t])})}).attr("id",function(t){return f(t.data,t.dataIndex,t.head?"head":"tail")}).style("stroke",function(t){return d._convertColor(e)(t.data,t.dataIndex)}).style("fill",function(t){return d._convertColor(e)(t.data,t.dataIndex)}).style("opacity",function(t){return n(t.data,t.dataIndex)}).append("path").attr("d",function(t){return t.head?a[o(t.data,t.dataIndex)].path:a[i(t.data,t.dataIndex)].path}),c.exit().remove()}return this._build=function(){var t,e=l.data(),n=l.style.get(),i=l.renderer(),r=l.origin(),o=l.delta(),a=l.style("scale"),s=0;function u(){return a/i.scaleFactor()}return c.call(l),e||(e=[]),t=e.map(function(t,e){var n=l.featureGcsToDisplay(r(t,e)),i=o(t,e);return s=Math.max(s,i.x*i.x+i.y*i.y),{x1:n.x,y1:n.y,dx:i.x,dy:-i.y}}),s=Math.sqrt(s),a||(a=75/(s||1)),h.id=l._svgid(),h.data=e,h.append="line",h.attributes={x1:function(e,n){return t[n].x1},y1:function(e,n){return t[n].y1},x2:function(e,n){return t[n].x1+u()*t[n].dx},y2:function(e,n){return t[n].y1+u()*t[n].dy},"marker-start":function(t,e){return"url(#"+f(0,e,"tail")+")"},"marker-end":function(t,e){return"url(#"+f(0,e,"head")+")"}},h.style={stroke:function(){return!0},strokeColor:n.strokeColor,strokeWidth:n.strokeWidth,strokeOpacity:n.strokeOpacity,originStyle:n.originStyle,endStyle:n.endStyle},h.classes=["svgVectorFeature"],h.visible=l.visible,p(e,n.strokeColor,n.strokeOpacity,n.originStyle,n.endStyle),l.renderer()._drawFeatures(h),d.modified(),l.updateTime().modified(),l},this._update=function(){return c.call(l),l.timestamp()>=d.timestamp()?l._build():p(h.data,h.style.strokeColor,h.style.strokeOpacity,h.style.originStyle,h.style.endStyle),l},this._exit=function(){u.call(l),h={},p([],null,null,null,null)},this._init(t),this};s.markerConfigs=a,i(s,o),r("svg","vector",s),t.exports=s},5763:function(t,e,n){var i=n(698),r=n(4626);i.renderWindow=function(t){"use strict";if(!(this instanceof i.renderWindow))return new i.renderWindow(t);i.graphicsObject.call(this);var e=this,n=0,r=0,o=400,a=400,s=t,l=null,u=[],c=null;return this.windowSize=function(){return[o,a]},this.windowPosition=function(){return[n,r]},this.renderers=function(){return u},this.activeRenderer=function(){return l},this.addRenderer=function(t){return!1===e.hasRenderer(t)&&(u.push(t),t.setRenderWindow(e),null===l&&(l=t),0!==t.layer()&&t.camera().setClearMask(i.GL.DepthBufferBit),e.modified(),!0)},this.hasRenderer=function(t){var e;for(e=0;e<u.length;e+=1)if(t===u[e])return!0;return!1},this.positionAndResize=function(t,i,s,l){var c;for(n=t,r=i,o=s,a=l,c=0;c<u.length;c+=1)u[c].positionAndResize(n,r,o,a);e.modified()},this._setup=function(t){c=null;try{var e;for(c=s.getContext("webgl")||s.getContext("experimental-webgl"),e=0;e<u.length;e+=1)(u[e].width()>o||0===u[e].width()||u[e].height()>a||0===u[e].height())&&u[e].resize(n,r,o,a);return!0}catch(t){}return c||console.warn("[ERROR] Unable to initialize WebGL. Your browser may not support it."),!1},this.context=function(){return c},this._cleanup=function(t){var n;for(n=0;n<u.length;n+=1)u[n]._cleanup(t);i.clearCachedShaders(t?t.m_context:null),e.modified()},this.render=function(){var t;for(u.sort(function(t,e){return t.layer()-e.layer()}),t=0;t<u.length;t+=1)u[t].render()},e},r(i.renderWindow,i.graphicsObject)},5794:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.shader=function(t){"use strict";if(!(this instanceof i.shader))return new i.shader(t);i.object.call(this);var e=[],n=t,r="";this._getContextEntry=function(t){var n,i,r=t.m_context;for(n=0;n<e.length;n+=1)if(e[n].context===r)return e[n];return i={context:r,compileTimestamp:o()},e.push(i),i},this.removeContext=function(t){var n,i=t.m_context;for(n=0;n<e.length;n+=1)if(e[n].context===i)return void e.splice(n,1)},this.shaderHandle=function(t){return this._getContextEntry(t).shaderHandle},this.setShaderSource=function(t){r=t,this.modified()},this.compile=function(t){var e=this._getContextEntry(t);return this.getMTime()<e.compileTimestamp.getMTime()?e.shaderHandle:(t.m_context.deleteShader(e.shaderHandle),e.shaderHandle=t.m_context.createShader(n),t.m_context.shaderSource(e.shaderHandle,r),t.m_context.compileShader(e.shaderHandle),t.m_context.getShaderParameter(e.shaderHandle,i.GL.COMPILE_STATUS)?(e.compileTimestamp.modified(),e.shaderHandle):(console.log("[ERROR] An error occurred compiling the shaders: "+t.m_context.getShaderInfoLog(e.shaderHandle)),console.log(r),t.m_context.deleteShader(e.shaderHandle),null))},this.attachShader=function(t,e){t.m_context.attachShader(e,this.shaderHandle(t))}},r(i.shader,i.object),function(){"use strict";var t=[];i.getCachedShader=function(e,n,r){for(var o=0;o<t.length;o+=1)if(t[o].type===e&&t[o].context===n&&t[o].source===r)return o&&t.splice(0,0,t.splice(o,1)[0]),t[0].shader;var a=new i.shader(e);return a.setShaderSource(r),t.unshift({type:e,context:n,source:r,shader:a}),t.length>=10&&t.splice(10,t.length-10),a},i.clearCachedShaders=function(e){for(var n=t.length-1;n>=0;n-=1)null!=e&&t[n].context!==e||t.splice(n,1)}}()},5795:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=0,s=1,l=3,u={butt:0,square:1,round:2},c={passthrough:3,miter:4,bevel:5,round:6,"miter-clip":7},d={normal:0,debug:1},h=function(t){"use strict";if(!(this instanceof h))return new h(t);t=t||{},o.call(this,t);var e=n(1611),i=n(5325),r=n(642),f=n(4084),p=n(5685),m=n(1388),g=n(9336);f.call(this);var y,v,x,_,b,w,M,A,E,T,S,C=this,k=this._exit,P=void 0!==t.dynamicDraw&&t.dynamicDraw,O=this._init,L=this._update;return this.featureVertices=function(){return[[0,"corner",-1,a],[0,"near",1,s],[1,"far",-1,l],[1,"corner",1,a],[1,"near",-1,s],[0,"far",1,l]]},this.verticesPerFeature=function(){return C.featureVertices().length},this._init=function(t){var n,i=e.shaderProgram(),r=((n=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(g),n),o=function(t){var n=new e.shader(e.GL.FRAGMENT_SHADER);return n.setShaderSource(t?m:p),n}(void 0!==((t||{}).style||{}).debug),a=e.vertexAttribute("pos"),s=e.vertexAttribute("prev"),l=e.vertexAttribute("next"),u=e.vertexAttribute("far"),c=e.vertexAttribute("flags"),d=e.vertexAttribute("strokeWidth"),h=e.vertexAttribute("strokeColor"),f=e.vertexAttribute("strokeOpacity"),E=new e.projectionUniform("projectionMatrix"),T=e.geometryData(),k=e.sourceDataP3fv({name:"pos"}),L=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Four,{name:"prev"}),R=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Five,{name:"next"}),I=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Six,{name:"far"}),F=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Seven,{name:"flags"}),D=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.One,{name:"strokeWidth"}),G=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Two,{name:"strokeColor"}),j=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"strokeOpacity"}),N=e.triangles();return S=new e.modelViewOriginUniform("modelViewMatrix"),_=new e.floatUniform("pixelWidth",1/C.renderer().width()),b=new e.floatUniform("aspect",C.renderer().width()/C.renderer().height()),w=new e.floatUniform("miterLimit",10),M=new e.floatUniform("antialiasing",0),A=new e.floatUniform("fixedFlags",0),O.call(C,t),x=e.material(),v=e.mapper({dynamicDraw:P}),i.addVertexAttribute(a,e.vertexAttributeKeys.Position),i.addVertexAttribute(d,e.vertexAttributeKeysIndexed.One),i.addVertexAttribute(h,e.vertexAttributeKeysIndexed.Two),i.addVertexAttribute(f,e.vertexAttributeKeysIndexed.Three),i.addVertexAttribute(s,e.vertexAttributeKeysIndexed.Four),i.addVertexAttribute(l,e.vertexAttributeKeysIndexed.Five),i.addVertexAttribute(u,e.vertexAttributeKeysIndexed.Six),i.addVertexAttribute(c,e.vertexAttributeKeysIndexed.Seven),i.addUniform(S),i.addUniform(E),i.addUniform(_),i.addUniform(b),i.addUniform(w),i.addUniform(M),i.addUniform(A),i.addShader(o),i.addShader(r),x.addAttribute(i),x.addAttribute(e.blend()),(y=e.actor()).setMaterial(x),y.setMapper(v),T.addSource(k),T.addSource(L),T.addSource(R),T.addSource(I),T.addSource(D),T.addSource(G),T.addSource(j),T.addSource(F),N.setIndices(new Uint16Array(1)),T.addPrimitive(N),T.computeBounds=function(){T.setBounds(0,0,0,0,0,0)},v.setGeometryData(T),C},this.actors=function(){return y?[y]:[]},this._build=function(){return function(t){var e,n,o,a,s,l,h,f,p,m,g,y,x,_,b,k,P,O,L,R,I,F,D,G,j,N,B,z,V,U,q,H,W,X,K,Q,Z,Y,J,$=C.data(),tt=0,et=[{strokeOffset:0,posStrokeOffset:0,negStrokeOffset:0},{strokeOffset:0,posStrokeOffset:0,negStrokeOffset:0}],nt=et[1],it=C.gcs(),rt=C.layer().map().gcs(),ot=C.line(),at=C.style.get("strokeWidth"),st=C.style.get("strokeColor"),lt=C.style.get("strokeOpacity"),ut=C.style.get("lineCap"),ct=C.style.get("lineJoin"),dt=C.style.get("strokeOffset"),ht=C.style.get("miterLimit")($),ft=C.style.get("antialiasing")($)||0,pt=C.style.get("uniformLine"),mt=C.featureVertices(),gt=mt.length,yt=d[C.style.get("debug")($)?"debug":"normal"]||0,vt=v.geometryData(),xt=C.style.get("closed"),_t=!0;if(Y=r.isFunction(C.style("closed"))?void 0:xt()||!1,R=r.isFunction(C.style("lineCap"))?void 0:u[ut()||"butt"],I=r.isFunction(C.style("lineJoin"))?void 0:c[ct()||"miter"],O=r.isFunction(C.style("strokeColor"))?void 0:st(),F=r.isFunction(C.style("strokeOffset"))?void 0:dt()||0,L=r.isFunction(C.style("strokeOpacity"))?void 0:lt(),P=r.isFunction(C.style("strokeWidth"))?void 0:at(),D=r.isFunction(C.style("uniformLine"))?void 0:pt(),void 0!==ht&&w.set(Math.max(1,Math.min(100,ht))),A.set(yt),M.set(ft),t)tt=E.numSegments,J=E.closed,m=E.lineItemList,p=tt*gt,_t=R!==E.lineCapVal||void 0===R||I!==E.lineJoinVal||void 0===I||F!==E.strokeOffsetVal||void 0===F;else{var bt=[],wt=C.position();for(wt=wt===r.identityFunction?null:wt,m=new Array($.length),J=new Array($.length),n=0;n<$.length;n+=1)if(g=ot(e=$[n],n),m[n]=g,!(g.length<2)){for(tt+=g.length-1,o=0;o<g.length;o+=1)x=wt?wt(g[o],o,e,n):g[o],bt.push(x.x),bt.push(x.y),bt.push(x.z||0),o||(b=x);g.length>2&&(void 0===Y?xt(e,n):Y)?x.x!==b.x||x.y!==b.y||x.z!==b.z?(tt+=1,J[n]=2):J[n]=1:J[n]=0}if(bt=i.transformCoordinates(it,rt,bt,3),(T=new Float32Array(C.style.get("origin")(bt)))[0]||T[1]||T[2]){var Mt=T[0],At=T[1],Et=T[2];for(n=0;n<bt.length;n+=3)bt[n]-=Mt,bt[n+1]-=At,bt[n+2]-=Et}S.setOrigin(T),p=tt*gt,z=r.getGeomBuffer(vt,"pos",3*p),V=r.getGeomBuffer(vt,"prev",3*p),U=r.getGeomBuffer(vt,"next",3*p),q=r.getGeomBuffer(vt,"far",3*p),vt.primitive(0).numberOfIndices()!==p&&(vt.primitive(0).numberOfIndices=function(){return p}),E={numSegments:tt,closed:J,lineItemList:m,lineCapVal:R,lineJoinVal:I,strokeOffsetVal:F}}for(H=r.getGeomBuffer(vt,"flags",p),W=r.getGeomBuffer(vt,"strokeWidth",p),X=r.getGeomBuffer(vt,"strokeColor",3*p),K=r.getGeomBuffer(vt,"strokeOpacity",p),n=_=Q=Z=0;n<$.length;n+=1)if(!((g=m[n]).length<2)){for(j="drop"===(G=void 0===D?pt(g,n):D),e=$[n],Y=J[n],k=_,f=g.length+(2===Y?1:0),N=0,o=0;o<f;o+=1,_+=3)if(h=o,o===g.length&&(h=0,_-=3),y=g[h],o&&(nt=et[0],et[0]=et[1],et[1]=nt),t||(nt.pos=o===h?_:k,nt.prev=h?_-3:Y?k+3*(g.length-3+Y):_,nt.next=o+1<g.length?_+3:Y?o!==h?k+3:k+6-3*Y:_),G&&o>0?1===o&&(nt.strokeWidth=et[0].strokeWidth,nt.strokeColor=et[0].strokeColor,nt.strokeOpacity=et[0].strokeOpacity):(nt.strokeWidth=void 0===P?at(y,h,e,n):P,nt.strokeColor=void 0===O?st(y,h,e,n):O,nt.strokeOpacity=void 0===L?lt(y,h,e,n):L),_t&&(0!==F&&(G&&o>0?1===o&&(nt.strokeOffset=et[0].strokeOffset):nt.strokeOffset=(void 0===F?dt(y,h,e,n):F)||0,nt.strokeOffset?(nt.posStrokeOffset=2047&Math.round(2048+1023*Math.min(1,Math.max(-1,nt.strokeOffset))),nt.negStrokeOffset=2047&Math.round(2048-1023*Math.min(1,Math.max(-1,nt.strokeOffset)))):nt.posStrokeOffset=nt.negStrokeOffset=0),Y||o&&o!==g.length-1?nt.flags=void 0===I?c[ct(y,h,e,n)]||c.miter:I:nt.flags=void 0===R?u[ut(y,h,e,n)]||u.butt:R),o){if(j&&o>1&&bt[et[0].pos]===bt[et[1].pos]&&bt[et[0].pos+1]===bt[et[1].pos+1]){N+=1;continue}for(a=0;a<gt;a+=1,Q+=1,Z+=3)j&&et[0].strokeOpacity<=0&&et[1].strokeOpacity<=0?K[Q]=-1:(s=et[B=mt[a][0]],l=et[1-B],t||(z[Z]=bt[s.pos],z[Z+1]=bt[s.pos+1],z[Z+2]=0,V[Z]=bt[B?s.next:s.prev],V[Z+1]=bt[(B?s.next:s.prev)+1],V[Z+2]=0,U[Z]=bt[B?s.prev:s.next],U[Z+1]=bt[(B?s.prev:s.next)+1],U[Z+2]=0,q[Z]=bt[B?l.prev:l.next],q[Z+1]=bt[(B?l.prev:l.next)+1],q[Z+2]=0),_t&&(H[Q]=mt[a][3]+4*s.flags+32*l.flags+256*(B?s.posStrokeOffset:s.negStrokeOffset)),W[Q]=s.strokeWidth,X[Z]=s.strokeColor.r,X[Z+1]=s.strokeColor.g,X[Z+2]=s.strokeColor.b,s.strokeOpacity<=0&&l.strokeOpacity<=0||s.strokeWidth<=0&&l.strokeWidth<=0?K[Q]=-1:K[Q]=s.strokeOpacity)}if(N)for(a=0;a<N*gt;a+=1,Q+=1,Z+=3)K[Q]=-1}t?(_t&&v.updateSourceBuffer("flags"),v.updateSourceBuffer("strokeWidth"),v.updateSourceBuffer("strokeOpacity"),v.updateSourceBuffer("strokeColor")):(v.modified(),vt.boundsDirty(!0),v.boundsDirtyTimestamp().modified())}(!!(C.dataTime().timestamp()<C.buildTime().timestamp()&&E)),C.renderer().contextRenderer().hasActor(y)||C.renderer().contextRenderer().addActor(y),C.buildTime().modified(),C},this._update=function(){return L.call(C),(C.dataTime().timestamp()>=C.buildTime().timestamp()||C.updateTime().timestamp()<=C.timestamp())&&C._build(),_.set(1/C.renderer().width()),b.set(C.renderer().width()/C.renderer().height()),y.setVisible(C.visible()),y.material().setBinNumber(C.bin()),C.updateTime().modified(),C},this._exit=function(){C.renderer().contextRenderer().removeActor(y),y=null,k()},this._init(t),this};i(h,o);var f={};f[o.capabilities.basic]=!0,f[o.capabilities.multicolor]=!0,r("webgl","line",h,f),t.exports=h},5796:function(t,e,n){var i=n(698),r=n(4626),o=n(3503);i.renderState=function(){"use strict";this.m_context=null,this.m_modelViewMatrix=o.create(),this.m_normalMatrix=o.create(),this.m_projectionMatrix=null,this.m_material=null,this.m_mapper=null},i.renderer=function(t){"use strict";if(!(this instanceof i.renderer))return new i.renderer(t);i.graphicsObject.call(this),t=t||{};var e=this;return e.m_renderWindow=null,e.m_contextChanged=!1,e.m_sceneRoot=new i.groupNode,e.m_camera=new i.camera(t),e.m_nearClippingPlaneTolerance=null,e.m_x=0,e.m_y=0,e.m_width=0,e.m_height=0,e.m_resizable=!0,e.m_resetScene=!0,e.m_layer=0,e.m_renderPasses=null,e.m_resetClippingRange=!0,e.m_depthBits=null,e.m_camera.addChild(e.m_sceneRoot),this.width=function(){return e.m_width},this.height=function(){return e.m_height},this.layer=function(){return e.m_layer},this.setLayer=function(t){e.m_layer=t,e.modified()},this.renderWindow=function(){return e.m_renderWindow},this.setRenderWindow=function(t){e.m_renderWindow!==t&&(e.m_renderWindow&&e.m_renderWindow.removeRenderer(this),e.m_renderWindow=t,e.m_contextChanged=!0,e.modified())},this.camera=function(){return e.m_camera},this.render=function(){var t,n,r,a=null,s=[],l=o.create(),u=null;if((n=new i.renderState).m_renderer=e,n.m_context=e.renderWindow().context(),e.m_depthBits&&!e.m_contextChanged||(e.m_depthBits=n.m_context.getParameter(i.GL.DEPTH_BITS)),n.m_contextChanged=e.m_contextChanged,e.m_renderPasses)for(t=0;t<e.m_renderPasses.length;t+=1){if(e.m_renderPasses[t].render(n))return void e.m_renderPasses[t].remove(n);e.m_renderPasses[t].remove(n)}for(n.m_context.enable(i.GL.DEPTH_TEST),n.m_context.depthFunc(i.GL.LEQUAL),e.m_camera.clearMask()&i.GL.COLOR_BUFFER_BIT&&(u=e.m_camera.clearColor(),n.m_context.clearColor(u[0],u[1],u[2],u[3])),e.m_camera.clearMask()&i.GL.DEPTH_BUFFER_BIT&&n.m_context.clearDepth(e.m_camera.clearDepth()),n.m_context.clear(e.m_camera.clearMask()),n.m_context.viewport(e.m_x,e.m_y,e.m_width,e.m_height),(r=e.m_sceneRoot.children()).length>0&&e.m_resetScene&&(e.m_resetScene=!1),t=0;t<r.length;t+=1)(a=r[t]).computeBounds(),a.visible()&&a.material().binNumber()>=0&&s.push([a.material().binNumber(),a]);for(s.sort(function(t,e){return t[0]-e[0]}),t=0;t<s.length;t+=1){if((a=s[t][1]).referenceFrame()===i.boundingObject.ReferenceFrame.Relative){var c=e.m_camera.viewMatrix();c instanceof Array&&(n.m_modelViewMatrix=new Array(16)),o.multiply(n.m_modelViewMatrix,c,a.matrix()),n.m_projectionMatrix=e.m_camera.projectionMatrix(),n.m_modelViewAlignment=e.m_camera.viewAlignment()}else n.m_modelViewMatrix=a.matrix(),n.m_modelViewAlignment=null,n.m_projectionMatrix=o.create(),o.ortho(n.m_projectionMatrix,0,e.m_width,0,e.m_height,-1,1);o.invert(l,n.m_modelViewMatrix),o.transpose(n.m_normalMatrix,l),n.m_material=a.material(),n.m_mapper=a.mapper(),n.m_material.bind(n),n.m_mapper.render(n),n.m_material.undoBind(n)}n.m_context.finish(),e.m_contextChanged=!1,e.m_lastRenderState=n},this.resize=function(t,n){t&&n&&e.positionAndResize(e.m_x,e.m_y,t,n)},this.positionAndResize=function(t,n,i,r){var o;if(t<0||n<0||i<=0||r<=0)console.log("[error] Invalid position and resize values",t,n,i,r);else if(e.m_resizable&&(e.m_width=i,e.m_height=r,e.m_camera.setViewAspect(i/r),e.m_camera.setParallelExtents({width:i,height:r}),e.modified()),e.m_renderPasses)for(o=0;o<e.m_renderPasses.length;o+=1)e.m_renderPasses[o].resize(i,r),e.m_renderPasses[o].renderer().positionAndResize(t,n,i,r)},this.addActor=function(t){return t instanceof i.actor&&(e.m_sceneRoot.addChild(t),e.modified(),!0)},this.hasActor=function(t){return e.m_sceneRoot.hasChild(t)},this.removeActor=function(t){return-1!==e.m_sceneRoot.children().indexOf(t)&&(e.m_lastRenderState&&(t.mapper()&&t.mapper()._cleanup(e.m_lastRenderState),t.material()&&t.material()._cleanup(e.m_lastRenderState)),t.modified(),e.m_sceneRoot.removeChild(t),e.modified(),!0)},this.setResetScene=function(t){e.m_resetScene!==t&&(e.m_resetScene=t,e.modified())},this._cleanup=function(t){for(var n=e.m_sceneRoot.children(),i=0;i<n.length;i+=1){var r=n[i];r.material()._cleanup(t),r.mapper()._cleanup(t)}e.m_sceneRoot.removeChildren(),e.modified()},e},r(i.renderer,i.graphicsObject)},5895:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw,o={};return this._renderOnCanvas=function(){},this._delayRender=function(){return!1},this._canvasProperty=function(t,n,i){return t&&n?(o[n]!==i&&(o[n]=i,t[n]=i),e):(o={},e)},this.draw=function(){return e.ready&&(e._update(),e.renderer()._render(),r()),e},this};t.exports=i},5904:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return o},init:function(){return r},inverse:function(){return a},names:function(){return s}});var i=n(3356);function r(){this.name="geocent"}function o(t){return(0,i.jX)(t,this.es,this.a)}function a(t){return(0,i.Rw)(t,this.es,this.a,this.b)}var s=["Geocentric","geocentric","geocent","Geocent"];e.default={init:r,forward:o,inverse:a,names:s}},5905:function(t,e,n){t.exports={createColoredMesh:function(t,e){var i,r,o,a,s,l=n(642),u=t.mesh,c=t.style.get("value"),d={used:void 0!==t.style("used")?t.style.get("used"):function(t,e){return l.isNonNullFinite(c(t,e))},opacity:t.style.get("opacity"),value:c},h=t._createMesh(e?{}:d,e?d:{});if(h.elementValues=!!e,!h.numVertices||!h.numElements)return h;var f=u.get("stepped")(h),p=u.get("opacityRange")(h),m=u.get("rangeValues")(h);if(h.stepped=!(void 0!==f&&!f),h.colorMap=[],h.minColor=Object.assign({a:u.get("minOpacity")(h)||0},l.convertColor(u.get("minColor")(h))),h.maxColor=Object.assign({a:u.get("maxOpacity")(h)||0},l.convertColor(u.get("maxColor")(h))),u.get("colorRange")(h).forEach(function(t,e){h.colorMap.push(Object.assign({a:p&&void 0!==p[e]?p[e]:1},l.convertColor(t)))}),i=l.getMinMaxValues(h.value,u.get("min")(h),u.get("max")(h)),h.minValue=i.min,h.maxValue=i.max,m&&h.colorMap&&(m.length===h.colorMap.length+1||!f&&m.length===h.colorMap.length)||(m=null),m)for(s=1;s<m.length;s+=1)if(m[s-1]>m[s]){m=null;break}for(m&&(h.minValue=m[0],h.maxValue=m[m.length-1]),(o=h.maxValue-h.minValue)||(h.colorMap=h.colorMap.slice(0,1),o=1,m=null),h.rangeValues=m,h.factor=(h.colorMap.length-(f?0:1))/o,a=0;a<h.value.length;a+=1)if(r=h.value[a],m&&r>=h.minValue&&r<=h.maxValue){for(s=1;s<m.length;s+=1)if(r<=m[s]){h.value[a]=s-1+(r-m[s-1])/(m[s]-m[s-1]);break}}else h.value[a]=(r-h.minValue)*h.factor;return h}}},5936:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,u=n*a,c=i*a,d=i*s,h=r*a,f=r*s,p=r*l,m=o*a,g=o*s,y=o*l;return t[0]=1-d-p,t[1]=c+y,t[2]=h-g,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=f+m,t[7]=0,t[8]=h+g,t[9]=f-m,t[10]=1-u-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},5938:function(t,e,n){var i=n(5616),r=function(t){if(!(this instanceof r))return new r(t);t=t||{},this._size=t.size||6,this._initialSize=t.initialSize||0,this._track=t.track||600,this._initialTrack=this._track,this._needed=t.needed||null,this._batch=!1;var e=this,n=1;return Object.defineProperty(this,"size",{get:function(){return e._size},set:function(t){e._size=t,e._initialSize>1&&t<e._initialSize&&(e._initialSize=t),e.next_item()}}),Object.defineProperty(this,"initialSize",{get:function(){return e._initialSize},set:function(t){e._initialSize=t,e.next_item()}}),Object.defineProperty(this,"track",{get:function(){return e._track},set:function(t){e._track=t}}),Object.defineProperty(this,"initialTrack",{get:function(){return e._initialTrack},set:function(t){e._initialTrack=t}}),Object.defineProperty(this,"length",{get:function(){return e._queue.length}}),Object.defineProperty(this,"processing",{get:function(){return e._processing}}),this.clear=function(){return e._queue=[],e._processing=0,e},this.add=function(t,n,r){if(t.__fetchQueue){var o=e._queue.indexOf(t);if(o>=0)return e._addToQueue(t,r,o),t}var a=i.Deferred(),s=i.Deferred();return a.done(function(){i.when(n.call(t)).always(s.resolve)}).fail(s.resolve),t.__fetchQueue=a,e._addToQueue(t,r),i.when(a,s).always(function(){e._processing>0&&(e._processing-=1),e._initialSize=0,e.next_item()}).promise(t),e.next_item(),t},this._addToQueue=function(t,n,i){var r=n?e._queue.length-1:0;if(t.__fetchQueue._batch=e._batch,!n&&e._batch)for(r=0;r<e._queue.length-(void 0===i?0:1)&&e._queue[r].__fetchQueue._batch===e._batch;r+=1);if(void 0===i)n?e._queue.push(t):r?e._queue.splice(r,0,t):e._queue.unshift(t);else if(i!==r){for(var o=i<r?1:-1,a=i;a!==r;a+=o)e._queue[a]=e._queue[a+o];e._queue[r]=t}},this.get=function(t){return e._queue.indexOf(t)},this.remove=function(t){var n=e._queue.indexOf(t);return n>=0&&(e._queue.splice(n,1),!0)},this.batch=function(t){return void 0===t?e._batch:(t?(e._batch=n,n+=1):e._batch=!1,e)},this.next_item=function(){if(!e._innextitem){if(e._innextitem=!0,e._queue.length>e._track&&e._needed)for(var t=e._queue.length-1;t>=0;t-=1)if(!e._needed(e._queue[t])){var n=e._queue.splice(t,1)[0];e._processing+=1,n.__fetchQueue.reject(),delete n.__fetchQueue}for(;e._processing<(e._initialSize||e._size)&&e._queue.length;){var i=e._queue.shift();if(i.__fetchQueue)e._processing+=1,!e._needed||e._needed(i)?i.__fetchQueue.resolve():i.__fetchQueue.reject(),delete i.__fetchQueue}e._innextitem=!1}},this.clear(),this};t.exports=r},5964:function(t,e,n){"use strict";function i(t,e){var n;return t>1e-7?(1-t*t)*(e/(1-(n=t*e)*n)-.5/t*Math.log((1-n)/(1+n))):2*e}n.d(e,{A:function(){return i}})},5966:function(t,e,n){function i(t,e,n){this._group=t,this._zoom=e,this._points=[],this._clusters=[],this._count=0,this._parent=null,this._coord=null;var i=this;(n||[]).forEach(function(t){i._add(t)})}function r(t){var e,r,o=n(7235);for(this._opts=Object.assign({maxZoom:18,radius:5},t),this._clusters={},this._points={},e=this._opts.maxZoom;e>=0;e-=1)r=this._opts.radius*Math.pow(2,-e),this._clusters[e]=new o(r),this._points[e]=new o(r);this._topClusterLevel=new i(this,-1)}i.prototype._add=function(t){var e=1;t instanceof i?(this._clusters.push(t),e=t._count):this._points.push(t),t._parent=this,this._increment(e)},i.prototype._increment=function(t){this._coord=null,this._count+=t,this._parent&&this._parent._increment(t)},i.prototype.count=function(){return this._count},i.prototype.each=function(t){var e;for(e=0;e<this._points.length;e+=1)t.call(this,this._points[e],this._zoom);for(e=0;e<this._clusters.length;e+=1)this._clusters[e].each.call(this._clusters[e],t)},i.prototype.coords=function(){if(this._coord)return this._coord;var t,e={x:0,y:0};for(t=0;t<this._points.length;t+=1)e.x+=this._points[t].x,e.y+=this._points[t].y;for(t=0;t<this._clusters.length;t+=1)e.x+=this._clusters[t].coords().x*this._clusters[t].count(),e.y+=this._clusters[t].coords().y*this._clusters[t].count();return this._coord={x:e.x/this.count(),y:e.y/this.count()},this._coord},r.prototype.addPoint=function(t){var e,n,r,o,a,s;for(e=this._opts.maxZoom;e>=0;e-=1){if(n=this._clusters[e].getNearObject(t))return void n._add(t);if(n=this._points[e].getNearObject(t)){if(r=n._parent)for(s=r._points.length-1;s>=0;s-=1)if(r._points[s]===n){r._points.splice(s,1),r._increment(-1);break}for(o=new i(this,e,[n,t]),this._clusters[e].addObject(o,o.coords()),a=o,s=e-1;s>r._zoom;s-=1)a=new i(this,s,[a]),this._clusters[s].addObject(a,a.coords());for(r._add(a),s=e;s>=0&&this._points[s].removeObject(n,n);s-=1);return}this._points[e].addObject(t,t)}this._topClusterLevel._add(t)},r.prototype.points=function(t){return t=Math.min(Math.max(Math.floor(t),0),this._opts.maxZoom-1),this._points[Math.floor(t)].contents()},r.prototype.clusters=function(t){return t=Math.min(Math.max(Math.floor(t),0),this._opts.maxZoom-1),this._clusters[Math.floor(t)].contents()},t.exports=r},6014:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return g},forward:function(){return f},init:function(){return h},inverse:function(){return p},names:function(){return m}});var i=n(6269),r=n(7e3),o=n(1417),a=n(1341),s=n(7954),l=n(3611),u=n(4280),c=n(8597),d=n(364);function h(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))}function f(t){var e,n,c,d,h,f,p,m,g,y,v,x=t.x,_=t.y,b=Math.sin(t.y),w=Math.cos(t.y),M=(0,i.A)(x-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=r.H0?(t.x=this.x0+this.a*(r.sK-_)*Math.sin(M),t.y=this.y0-this.a*(r.sK-_)*Math.cos(M),t):Math.abs(this.sin_p12+1)<=r.H0?(t.x=this.x0+this.a*(r.sK+_)*Math.sin(M),t.y=this.y0+this.a*(r.sK+_)*Math.cos(M),t):(g=this.sin_p12*b+this.cos_p12*w*Math.cos(M),m=(p=Math.acos(g))?p/Math.sin(p):1,t.x=this.x0+this.a*m*w*Math.sin(M),t.y=this.y0+this.a*m*(this.cos_p12*b-this.sin_p12*w*Math.cos(M)),t):(e=(0,a.A)(this.es),n=(0,s.A)(this.es),c=(0,l.A)(this.es),d=(0,u.A)(this.es),Math.abs(this.sin_p12-1)<=r.H0?(h=this.a*(0,o.A)(e,n,c,d,r.sK),f=this.a*(0,o.A)(e,n,c,d,_),t.x=this.x0+(h-f)*Math.sin(M),t.y=this.y0-(h-f)*Math.cos(M),t):Math.abs(this.sin_p12+1)<=r.H0?(h=this.a*(0,o.A)(e,n,c,d,r.sK),f=this.a*(0,o.A)(e,n,c,d,_),t.x=this.x0+(h+f)*Math.sin(M),t.y=this.y0+(h+f)*Math.cos(M),t):Math.abs(x)<r.H0&&Math.abs(_-this.lat0)<r.H0?(t.x=t.y=0,t):(v=(y=function(t,e,n,i,r,o){var a,s,l,u,c,d,h,f,p,m,g,y,v,x=i-e,_=Math.atan((1-o)*Math.tan(t)),b=Math.atan((1-o)*Math.tan(n)),w=Math.sin(_),M=Math.cos(_),A=Math.sin(b),E=Math.cos(b),T=x,S=100;do{if(s=Math.sin(T),l=Math.cos(T),0===(u=Math.sqrt(E*s*(E*s)+(M*A-w*E*l)*(M*A-w*E*l))))return{azi1:0,s12:0};c=w*A+M*E*l,a=T,T=x+(1-(m=o/16*(f=1-(h=M*E*s/u)*h)*(4+o*(4-3*f))))*o*h*((d=Math.atan2(u,c))+m*u*((p=0!==f?c-2*w*A/f:0)+m*c*(2*p*p-1)))}while(Math.abs(T-a)>1e-12&&--S>0);return 0===S?{azi1:NaN,s12:NaN}:(v=r*(1-o)*(1+(g=f*(r*r-r*(1-o)*(r*(1-o)))/(r*(1-o)*(r*(1-o))))/16384*(4096+g*(g*(320-175*g)-768)))*(d-(y=g/1024*(256+g*(g*(74-47*g)-128)))*u*(p+y/4*(c*(2*p*p-1)-y/6*p*(4*u*u-3)*(4*p*p-3)))),{azi1:Math.atan2(E*s,M*A-w*E*l),s12:v})}(this.lat0,this.long0,_,x,this.a,this.f)).azi1,t.x=y.s12*Math.sin(v),t.y=y.s12*Math.cos(v),t))}function p(t){var e,n,h,f,p,m,g,y,v,x,_,b,w,M,A,E;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*r.sK*this.a)return;return n=e/this.a,h=Math.sin(n),f=Math.cos(n),p=this.long0,Math.abs(e)<=r.H0?m=this.lat0:(m=(0,c.A)(f*this.sin_p12+t.y*h*this.cos_p12/e),g=Math.abs(this.lat0)-r.sK,p=Math.abs(g)<=r.H0?this.lat0>=0?(0,i.A)(this.long0+Math.atan2(t.x,-t.y)):(0,i.A)(this.long0-Math.atan2(-t.x,t.y)):(0,i.A)(this.long0+Math.atan2(t.x*h,e*this.cos_p12*f-t.y*this.sin_p12*h))),t.x=p,t.y=m,t}return y=(0,a.A)(this.es),v=(0,s.A)(this.es),x=(0,l.A)(this.es),_=(0,u.A)(this.es),Math.abs(this.sin_p12-1)<=r.H0?(w=(b=this.a*(0,o.A)(y,v,x,_,r.sK))-(e=Math.sqrt(t.x*t.x+t.y*t.y)),m=(0,d.A)(w/this.a,y,v,x,_),p=(0,i.A)(this.long0+Math.atan2(t.x,-1*t.y)),t.x=p,t.y=m,t):Math.abs(this.sin_p12+1)<=r.H0?(b=this.a*(0,o.A)(y,v,x,_,r.sK),w=(e=Math.sqrt(t.x*t.x+t.y*t.y))-b,m=(0,d.A)(w/this.a,y,v,x,_),p=(0,i.A)(this.long0+Math.atan2(t.x,t.y)),t.x=p,t.y=m,t):(M=Math.atan2(t.x,t.y),A=Math.sqrt(t.x*t.x+t.y*t.y),E=function(t,e,n,i,r,o){var a,s,l,u,c=Math.atan((1-o)*Math.tan(t)),d=Math.sin(c),h=Math.cos(c),f=Math.sin(n),p=Math.cos(n),m=Math.atan2(d,h*p),g=h*f,y=1-g*g,v=y*(r*r-r*(1-o)*(r*(1-o)))/(r*(1-o)*(r*(1-o))),x=1+v/16384*(4096+v*(v*(320-175*v)-768)),_=v/1024*(256+v*(v*(74-47*v)-128)),b=i/(r*(1-o)*x),w=100;do{s=Math.cos(2*m+b),a=b,b=i/(r*(1-o)*x)+_*(l=Math.sin(b))*(s+_/4*((u=Math.cos(b))*(2*s*s-1)-_/6*s*(4*l*l-3)*(4*s*s-3)))}while(Math.abs(b-a)>1e-12&&--w>0);if(0===w)return{lat2:NaN,lon2:NaN};var M=d*l-h*u*p,A=o/16*y*(4+o*(4-3*y));return{lat2:Math.atan2(d*u+h*l*p,(1-o)*Math.sqrt(g*g+M*M)),lon2:e+(Math.atan2(l*f,h*u-d*l*p)-(1-A)*o*g*(b+A*l*(s+A*u*(2*s*s-1))))}}(this.lat0,this.long0,M,A,this.a,this.f),t.x=E.lon2,t.y=E.lat2,t)}var m=["Azimuthal_Equidistant","aeqd"],g={init:h,forward:f,inverse:p,names:m}},6028:function(t){t.exports=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],c=e[8],d=c*a-s*u,h=-c*o+s*l,f=u*o-a*l,p=n*d+i*h+r*f;return p?(p=1/p,t[0]=d*p,t[1]=(-c*i+r*u)*p,t[2]=(s*i-r*a)*p,t[3]=h*p,t[4]=(c*n-r*l)*p,t[5]=(-s*n+r*o)*p,t[6]=f*p,t[7]=(-u*n+i*l)*p,t[8]=(a*n-i*o)*p,t):null}},6124:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);var e=n(642);t=t||{},r.call(this,t);var i=this,a=this._init,s={};return this.featureType="mesh",this.mesh=function(t,e){if(void 0===t)return s;if("string"==typeof t&&void 0===e)return s[t];if(void 0===e){var n=Object.assign({},{gridWidth:function(){return t.gridHeight?Math.floor(i.data().length/t.gridHeight):Math.floor(Math.sqrt(i.data().length))},gridHeight:function(){return t.gridWidth?Math.floor(i.data().length/t.gridWidth):Math.floor(Math.sqrt(i.data().length))}},s,t);s=n}else s[t]=e;return i.modified(),i},this.mesh.get=function(t){if(void 0===t){var n,r={};for(n in s)s.hasOwnProperty(n)&&(r[n]=i.mesh.get(n));return r}return e.ensureFunction(s[t])},this.position=function(t){return void 0===t?i.style("position"):(i.style("position",t),i.dataTime().modified(),i.modified(),i)},this._createMesh=function(t,e){t=t||{},e=e||{};var n,r,o,a,s,l,u,c,d,h,f,p,m,g,y,v,x=i.data(),_=i.position(),b=i.mesh.get("elements")(x),w=i.mesh.get("elementPacking")(x),M=i.mesh.get("gridWidth")(x),A=i.mesh.get("gridHeight")(x),E=i.mesh.get("wrapLongitude")(x),T=i.mesh.get("x0")(x),S=i.mesh.get("y0")(x),C=i.mesh.get("dx")(x),k=i.mesh.get("dy")(x),P=M,O={shape:"square",elements:[],elementIndex:[]};if(b){var L=b.length&&Array.isArray(b[0]);if("square"===w||"triangle"!==w&&(!L&&!(b.length%4)&&b.length%3||L&&4===b[0].length))if(O.shape="square",L)for(n=0;n<b.length;n+=1)O.elements.push(b[n][0]),O.elements.push(b[n][1]),O.elements.push(b[n][3]),O.elements.push(b[n][2]),O.elements.push(b[n][3]),O.elements.push(b[n][1]),O.elementIndex.push(n),O.elementIndex.push(n);else for(n=o=0;n<b.length-3;n+=4,o+=1)O.elements.push(b[n]),O.elements.push(b[n+1]),O.elements.push(b[n+3]),O.elements.push(b[n+2]),O.elements.push(b[n+3]),O.elements.push(b[n+1]),O.elementIndex.push(o),O.elementIndex.push(o);else if(O.shape="triangle",L)for(n=0;n<b.length;n+=1)O.elements.push(b[n][0]),O.elements.push(b[n][1]),O.elements.push(b[n][2]),O.elementIndex.push(n);else for(O.elements=b.slice(0,b.length-b.length%3),n=o=0;n<b.length-2;n+=3,o+=1)O.elementIndex.push(o);l=x.length,c=!0}else{if(Object.keys(t).length?M*A>x.length&&(A=Math.floor(x.length/M)):Object.keys(e).length&&(M-1)*(A-1)>x.length&&(A=Math.floor(x.length/(M-1))+1),E=!(void 0!==E&&!E),!(c=null==T||null==S||!C||!k)&&E&&(T<-180||T>180||T+C*(M-1)<-180||T+C*(M-1)>180)&&C>-180&&C<180&&C*(M-1)<360.0001){for(p=[],m=[],n=0;n<M;n+=1){for(y=T+n*C;y<-180;)y+=360;for(;y>180;)y-=360;n&&Math.abs(y-p[p.length-1])>180&&(y>p[p.length-1]?(p.push(y-360),p.push(p[p.length-2]+360),m.push(n),m.push(n+1)):(p.push(y+360),p.push(p[p.length-2]-360),m.push(n),m.push(n+1)),g=n),p.push(y),m.push(n)}if(M+=2,Math.abs(Math.abs(P*C)-360)<.01){for(M+=1,y=T+P*C;y<-180;)y+=360;for(;y>180;)y-=360;p.push(y),m.push(0)}}if(l=M*A,void 0!==g)for(O.index=new Array(l),n=0;n<l;n+=1)v=n-(o=Math.floor(n/M))*M,(v+=v>g?-2:0)>=P&&(v-=P),v+=o*P,O.index[n]=v;for(o=s=0;o<A-1;o+=1,s+=1)for(n=0;n<M-1;n+=1,s+=1)n!==g&&(O.elements.push(s),O.elements.push(s+1),O.elements.push(s+M),O.elements.push(s+M+1),O.elements.push(s+M),O.elements.push(s+1),O.elementIndex.push(o*(M-1)+(m?m[n]:n)),O.elementIndex.push(o*(M-1)+(m?m[n]:n)))}O.verticesPerElement="triangle"===O.shape?3:6;var R=O.verticesPerElement;if(e.used){var I=new Array(O.elementIndex[O.elementIndex.length-1]+1);for(n=0;n<I.length;n+=1)I[n]=e.used(x[n],n);for(n=0;n<O.elementIndex.length&&I[O.elementIndex[n]];n+=1);if(n<O.elementIndex.length){for(o=n;n<O.elementIndex.length;n+=1)if(I[O.elementIndex[n]]){for(O.elementIndex[o]=O.elementIndex[n],a=0;a<3;a+=1)O.elements[3*o+a]=O.elements[3*n+a];o+=1}O.elements.splice(3*o),O.elementIndex.splice(o)}}if(t.used){for(n=0;n<l&&(s=O.index?O.index[n]:n,t.used(x[s],s));n+=1);if(n!==l){u=n;var F=new Array(l);for(o=0;o<u;o+=1)F[o]=o;if(F[u]=-1,!O.index)for(O.index=new Array(x.length),o=0;o<x.length;o+=1)O.index[o]=o;for(n=u+1;n<l;n+=1)s=O.index[n],t.used(x[s],s)?(F[n]=u,O.index[u]=O.index[n],u+=1):F[n]=-1;for(O.index.splice(u),n=a=0;n<O.elements.length;n+=R){for(o=0;o<R&&!(F[O.elements[n+o]]<0);o+=1)O.elements[a+o]=F[O.elements[n+o]];o===R&&(O.elementIndex[Math.floor(a/3)]=O.elementIndex[Math.floor(n/3)],6===R&&(O.elementIndex[Math.floor(a/3)+1]=O.elementIndex[Math.floor(n/3)+1]),a+=R)}O.elements.splice(a),O.elementIndex.splice(Math.floor(a/3)),l=u}}if(e.used&&void 0===g){var D=new Array(l),G=O.index;for(O.index=[],n=0;n<O.elements.length;n+=1)void 0===D[a=O.elements[n]]&&(D[a]=O.index.length,O.index.push(G?G[a]:a)),O.elements[n]=D[a];l=O.index.length}for(h in O.pos=new Array(3*l),t)"used"!==h&&t.hasOwnProperty(h)&&(O[h]=new Array(l));for(n=r=0;n<l;n+=1,r+=3)for(h in d=x[s=O.index?O.index[n]:n],c?(f=_(d,s),O.pos[r]=f.x,O.pos[r+1]=f.y,O.pos[r+2]=f.z||0):(O.pos[r]=void 0===g?T+C*(s%M):p[n%M],O.pos[r+1]=S+k*Math.floor(s/M),O.pos[r+2]=0,f={x:O.pos[r],y:O.pos[r+1],z:O.pos[r+2]}),t)"used"!==h&&t.hasOwnProperty(h)&&(O[h][n]=t[h](d,s,f));for(h in e)if("used"!==h&&e.hasOwnProperty(h)){var j=e[h];for(O[h]=new Array(O.elementIndex.length),n=0;n<O.elementIndex.length;n+=1)d=x[s=O.elementIndex[n]],O[h][n]=j(d,s)}return O.numVertices=l,O.numElements=O.elements.length/O.verticesPerElement,O},this._init=function(t){a.call(i,t),t=t||{};var e=Object.assign({},{position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t}},t.style||{});i.mesh(t.mesh||{}),i.style(e)},this};i(o,r),t.exports=o},6145:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var i=n(6269),r=n(8597),o=n(7e3);function a(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function s(t){var e,n,r,a,s,l,u,c=t.x,d=t.y;return r=(0,i.A)(c-this.long0),e=Math.sin(d),n=Math.cos(d),a=Math.cos(r),((s=this.sin_p14*e+this.cos_p14*n*a)>0||Math.abs(s)<=o.H0)&&(l=1*this.a*n*Math.sin(r),u=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*a)),t.x=l,t.y=u,t}function l(t){var e,n,a,s,l,u,c;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),n=(0,r.A)(e/this.a),a=Math.sin(n),s=Math.cos(n),u=this.long0,Math.abs(e)<=o.H0?(c=this.lat0,t.x=u,t.y=c,t):(c=(0,r.A)(s*this.sin_p14+t.y*a*this.cos_p14/e),l=Math.abs(this.lat0)-o.sK,Math.abs(l)<=o.H0?(u=this.lat0>=0?(0,i.A)(this.long0+Math.atan2(t.x,-t.y)):(0,i.A)(this.long0-Math.atan2(-t.x,t.y)),t.x=u,t.y=c,t):(u=(0,i.A)(this.long0+Math.atan2(t.x*a,e*this.cos_p14*s-t.y*this.sin_p14*a)),t.x=u,t.y=c,t))}var u=["ortho"];e.default={init:a,forward:s,inverse:l,names:u}},6155:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return a},init:function(){return o},inverse:function(){return s},names:function(){return l}});var i=n(6269),r=n(7e3);function o(){}function a(t){for(var e=t.x,n=t.y,o=(0,i.A)(e-this.long0),a=n,s=Math.PI*Math.sin(n);;){var l=-(a+Math.sin(a)-s)/(1+Math.cos(a));if(a+=l,Math.abs(l)<r.H0)break}a/=2,Math.PI/2-Math.abs(n)<r.H0&&(o=0);var u=.900316316158*this.a*o*Math.cos(a)+this.x0,c=1.4142135623731*this.a*Math.sin(a)+this.y0;return t.x=u,t.y=c,t}function s(t){var e,n;t.x-=this.x0,t.y-=this.y0,n=t.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),e=Math.asin(n);var r=(0,i.A)(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var o=Math.asin(n);return t.x=r,t.y=o,t}var l=["Mollweide","moll"];e.default={init:o,forward:a,inverse:s,names:l}},6157:function(t,e,n){"use strict";n.d(e,{A:function(){return r}});var i=n(7e3);function r(t,e){for(var n,r,o=.5*t,a=i.sK-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(a),a+=r=i.sK-2*Math.atan(e*Math.pow((1-n)/(1+n),o))-a,Math.abs(r)<=1e-10)return a;return-9999}},6165:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var i=n(7e3),r=n(9393);function o(t){return Math.abs(t)<i.sK?t:t-(0,r.A)(t)*Math.PI}},6167:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return o},init:function(){return r},inverse:function(){return a},names:function(){return s}});var i=n(6269);function r(){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}function o(t){var e,n,r,o,a,s,l,u=t.x,c=t.y,d=(0,i.A)(u-this.long0);return e=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/e)-this.s45),r=-d*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),a=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(o)),s=this.n*a,l=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),t.y=l*Math.cos(s)/1,t.x=l*Math.sin(s)/1,this.czech||(t.y*=-1,t.x*=-1),t}function a(t){var e,n,i,r,o,a,s,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),r=Math.atan2(t.y,t.x)/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,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,a=e,s=0;var u=0;do{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(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(s=1),a=t.y,u+=1}while(0===s&&u<15);return u>=15?null:t}var s=["Krovak","krovak"];e.default={init:r,forward:o,inverse:a,names:s}},6194:function(t,e,n){"use strict";n.d(e,{A:function(){return m}});var i=1,r=.25,o=.046875,a=.01953125,s=.01068115234375,l=.75,u=.46875,c=.013020833333333334,d=.007120768229166667,h=.3645833333333333,f=.005696614583333333,p=.3076171875;function m(t){var e=[];e[0]=i-t*(r+t*(o+t*(a+t*s))),e[1]=t*(l-t*(o+t*(a+t*s)));var n=t*t;return e[2]=n*(u-t*(c+t*d)),n*=t,e[3]=n*(h-t*f),e[4]=n*t*p,e}},6211:function(t,e,n){var i=n(5616),r=n(4626),o=n(5402),a=function(t){"use strict";if(!(this instanceof a))return new a(t);if(void 0===(t=t||{}).node||null===t.node)return console.warn("map creation requires a node"),this;o.call(this,t);var e,r,s,l,u,c=n(3578),d=n(5325),h=n(642),f=n(1098),p=n(6409),m=n(7908),g=n(4231),y=this,v=this._exit,x=i(t.node),_=t.width||x.width()||512,b=t.height||x.height()||512,w=void 0===t.gcs?"EPSG:3857":t.gcs,M=void 0===t.ingcs?"EPSG:4326":t.ingcs,A={x:0,y:0},E=void 0===t.zoom?4:t.zoom,T=t.rotation?t.rotation:0,S=null,C=null,k={min:0,max:16,origMin:0},P=null,O=null,L=!!t.discreteZoom,R="function"==typeof t.allowRotation?t.allowRotation:void 0===t.allowRotation||!!t.allowRotation,I=t.maxBounds||{},F=t.camera||c(),D=t.animationQueue||[],G=void 0===t.autoResize||t.autoResize,j=t.autoshareRenderer,N=((I.left||0)+(I.right||0))/2,B=((I.bottom||0)+(I.top||0))/2;function z(){var t;void 0!==document.hidden?t="hidden":void 0!==document.msHidden?t="msHidden":void 0!==document.webkitHidden&&(t="webkitHidden"),y.geoTrigger(document[t]?p.hidden:p.unhidden)}function V(t){var e;void 0!==document.hidden?e="visibilitychange":void 0!==document.msHidden?e="msvisibilitychange":void 0!==document.webkitHidden&&(e="webkitvisibilitychange"),document.removeEventListener(e,z),!1!==t&&document.addEventListener(e,z)}function U(t,e){var n=t.zIndex(),i=e.zIndex();if(n!==i)return n-i;var r=t.node()[0],o=e.node()[0],a=r&&r.parentNode,s=o&&o.parentNode;if(a&&s&&a===s){var l=Array.from(a.children),u=l.indexOf(r),c=l.indexOf(o);if(u>=0&&c>=0)return u-c}return a?-1:s?1:0}function q(t,e,n,i,r){t.globalAlpha=e,r&&(t.globalCompositeOperation=r);var o=n.css("transform");o&&"matrix("===o.substr(0,7)?t.setTransform.apply(t,o.substr(7,o.length-8).split(",").map(parseFloat)):t.setTransform(1,0,0,1,0,0),t.drawImage(i,0,0),t.globalCompositeOperation="source-over"}function H(){for(var t=D.splice(0,D.length),e=1;e<t.length;e+=1)try{t[e].apply(y,arguments)}catch(t){console.error(t)}}function W(t,e,n){var i=e.width/2,r=e.height/2,o=Math.sin(n),a=Math.cos(n),s={},l={},u={},c={};return s.x=t.x+-i*a- -r*o,s.y=t.y+-i*o+-r*a,l.x=t.x+i*a- -r*o,l.y=t.y+i*o+-r*a,u.x=t.x+-i*a-r*o,u.y=t.y+-i*o+r*a,c.x=t.x+i*a-r*o,c.y=t.y+i*o+r*a,{left:Math.min(s.x,l.x,u.x,c.x),right:Math.max(s.x,l.x,u.x,c.x),bottom:Math.min(s.y,l.y,u.y,c.y),top:Math.max(s.y,l.y,u.y,c.y)}}function X(t,n){void 0===n&&(n=T),t=function(t,e){return e&&(t=W({x:(t.left+t.right)/2,y:(t.top+t.bottom)/2},{width:Math.abs(t.left-t.right),height:Math.abs(t.top-t.bottom)},e)),t}(t,n);var i=function(t){var e,n,i=t.right-t.left,r=t.top-t.bottom,o=Math.abs(i/r),a=_/b;return o>a?(e=1,n=o/a):(n=1,e=a/o),{x:e,y:n}}(t);return i.y>i.x?-Math.log2(Math.abs(t.right-t.left)*i.x/(_*e)):-Math.log2(Math.abs(t.top-t.bottom)*i.y/(b*e))}function K(){k.min=l?Math.max(k.origMin,X(I)):k.origMin}function Q(t,e,n){if(!R)return 0;if(e||"function"!=typeof R||(t=R(t)),!n){var i=2*Math.PI;t=t%i+(t>=0?0:i),Math.min(Math.abs(t),Math.abs(t-i))<1e-5&&(t=0)}return t}function Z(t,e,n,i){if(!r&&!s)return t;var o,a,l=I;if(e){l=Object.assign({},I);var u,c,d=Math.abs(t.right-t.left),h=Math.abs(t.top-t.bottom),f=Math.abs(Math.sin(e)),p=Math.abs(Math.cos(e));if(t.width&&t.height)u=t.width,c=t.height;else if(Math.abs(f-p)<5e-4)if(_&&b){var m=Math.abs(_/b),g=Math.pow(1+Math.pow(m,2),.5);c=(u=Math.max(d,h)/g)*m}else u=d*p,c=h*f;else u=(p*d-f*h)/(p*p-f*f),c=(p*h-f*d)/(p*p-f*f);var y=d-Math.max(p*u,f*c),v=h-Math.max(p*c,f*u);l.left-=y,l.right+=y,l.top+=v,l.bottom-=v}return i&&(l={left:l.left-(t.right-t.left)/2,right:l.right+(t.right-t.left)/2,top:l.top-(t.bottom-t.top)/2,bottom:l.bottom+(t.bottom-t.top)/2}),r&&(t.right-t.left>l.right-l.left?o=l.left-(t.right-t.left-(l.right-l.left))/2-t.left:t.left<l.left?o=l.left-t.left:t.right>l.right&&(o=l.right-t.right),o&&(!n||n.x*o>0)&&(n&&Math.abs(o)>Math.abs(n.x*n.unit)&&(o=Math.abs(n.x*n.unit)*o/Math.abs(o)),t={left:t.left+=o,right:t.right+=o,top:t.top,bottom:t.bottom})),s&&(t.top-t.bottom>l.top-l.bottom?a=l.bottom-(t.top-t.bottom-(l.top-l.bottom))/2-t.bottom:t.top>l.top?a=l.top-t.top:t.bottom<l.bottom&&(a=l.bottom-t.bottom),a&&(!n||-n.y*a>0)&&(n&&Math.abs(a)>Math.abs(n.y*n.unit)&&(a=Math.abs(n.y*n.unit)*a/Math.abs(a)),t={top:t.top+=a,bottom:t.bottom+=a,left:t.left,right:t.right})),t}function Y(t,e){if(F.rotation=e||0,t.width&&t.height&&e){var n=(t.left+t.right)/2,i=(t.top+t.bottom)/2;F.viewFromCenterSizeRotation({x:n,y:i},t,e)}else F.bounds=t;A={x:(F.bounds.left+F.bounds.right)/2,y:(F.bounds.top+F.bounds.bottom)/2}}function J(){y.size({width:x.width(),height:x.height()})}return I.left=d.transformCoordinates(I.gcs||M,w,{x:void 0!==I.left?I.left:-180,y:B}).x,I.right=d.transformCoordinates(I.gcs||M,w,{x:void 0!==I.right?I.right:180,y:B}).x,I.top=void 0!==I.top?d.transformCoordinates(I.gcs||M,w,{x:N,y:I.top}).y:I.right,I.bottom=void 0!==I.bottom?d.transformCoordinates(I.gcs||M,w,{x:N,y:I.bottom}).y:I.left,e=t.unitsPerPixel||(I.right-I.left)/256,F.viewport={width:_,height:b,left:x.offset().left,top:x.offset().top},t.center=h.normalizeCoordinates(t.center),r=void 0!==t.clampBoundsX&&t.clampBoundsX,s=void 0===t.clampBoundsY||t.clampBoundsY,l=void 0===t.clampZoom||t.clampZoom,this.unitsPerPixel=function(t,n){return t=t||0,n?(e=Math.pow(2,t)*n,y.draw(),y):Math.pow(2,-t)*e},this.animationQueue=function(t){if(void 0===t)return D;if(t!==D){if(D.length){t.length&&t[0]!==D[0]&&window.cancelAnimationFrame(D[0]);for(var e=t.length?1:0;e<D.length;e+=1)t.push(D[e])}D=t}return y},this.autoResize=function(t){return void 0===t?G:(t!==G&&(i(window).off("resize",J),(G=t)&&i(window).on("resize",J)),y)},this.clampBoundsX=function(t){return void 0===t?r:(t!==r&&(r=!!t,y.pan({x:0,y:0})),y)},this.clampBoundsY=function(t){return void 0===t?s:(t!==s&&(s=!!t,y.pan({x:0,y:0})),y)},this.clampZoom=function(t){return void 0===t?l:(t!==l&&(l=!!t,K(),y.zoom(E)),y)},this.allowRotation=function(t){return void 0===t?R:("function"!=typeof t&&(t=!!t),t!==R&&(R=t,y.rotation(T)),y)},this.origin=function(){return Object.assign({},u)},this.camera=function(){return F},this.gcs=function(t){if(void 0===t)return w;if(t!==w){var e=y.center(void 0,void 0);w=t,K();var n=y._fix_zoom(E);n!==E&&y.zoom(n),y.center(e,void 0)}return y},this.ingcs=function(t){return void 0===t?M:(M=t,y)},this.node=function(){return x},this.zoom=function(t,e,n,i,r){if(void 0===t)return E;var o,a,s=e&&(e.mapgcs||e.geo)&&e.map;if(s&&(i=!0),(t=y._fix_zoom(t,n))===E)return y;if(E=t,a=y.boundsFromZoomAndCenter(t,A,T,null,n,i),y.modified(),Y(a,T),o={zoomLevel:E,screenPosition:e?e.map:void 0},r&&"pan"!==r||y.geoTrigger(p.zoom,o),s){var l=y.gcsToDisplay(e.mapgcs||e.geo,e.mapgcs?null:void 0);y.pan({x:e.map.x-l.x,y:e.map.y-l.y},n,!0,r)}else y.pan({x:0,y:0},n,i,r);return y},this.zoomAndCenter=function(t,e,n,i,r,o){return this.zoom(t,void 0,i,r,o||"pan"),this.center(e,n,i,r,o),this},this.pan=function(t,e,n,i){var r={screenDelta:t};if(t.x||t.y){var o=y.unitsPerPixel(E),a=Math.sin(T),s=Math.cos(T);F.pan({x:(t.x*s- -t.y*a)*o,y:(t.x*a+-t.y*s)*o})}var l=F.bounds;if((l=Z(l,T,"limited"===n?{x:t.x,y:t.y,unit:o}:void 0,!0===n))!==F.bounds){var u=y.gcsToDisplay({x:F.bounds.left,y:F.bounds.top},null);Y(l=y.boundsFromZoomAndCenter(E,{x:(l.left+l.right)/2,y:(l.top+l.bottom)/2},T,null,e,!0),T);var c=y.gcsToDisplay({x:F.bounds.left,y:F.bounds.top},null);r.screenDelta.x+=c.x-u.x,r.screenDelta.y+=c.y-u.y}return A=F.displayToWorld({x:_/2,y:b/2}),i||y.geoTrigger(p.pan,r),y.modified(),y},this.rotation=function(t,e,n){if(void 0===t)return T;var i=e&&e.geo&&e.map;if((t=Q(t,n))===T)return y;T=t;var r=y.boundsFromZoomAndCenter(E,A,T,null,n,!0);y.modified(),Y(r,T);var o={rotation:T,screenPosition:e?e.map:void 0};if(y.geoTrigger(p.rotate,o),i){var a=y.gcsToDisplay(e.geo);y.pan({x:e.map.x-a.x,y:e.map.y-a.y},void 0,!0)}else y.pan({x:0,y:0},void 0,!0);return K(),y.zoom(E,void 0,n),y},this.center=function(t,e,n,i,r){var o;return void 0===t?o=Object.assign({},y.worldToGcs(A,e)):(o=y.gcsToWorld(t,e),Y(y.boundsFromZoomAndCenter(E,o,T,null,n,i),T),y.modified(),r||y.geoTrigger(p.pan,{screenDelta:{x:0,y:0}}),y)},this.createLayer=function(t,e){e=e||{},void 0!==y.autoshareRenderer()&&(e=Object.assign({autoshareRenderer:y.autoshareRenderer()},e));var n=f.createLayer(t,y,e);return n&&(y.addChild(n),y.children().forEach(function(t){t instanceof g&&t.moveToTop()}),n._update(),y.modified(),y.geoTrigger(p.layerAdd,{target:y,layer:n})),n},this.deleteLayer=function(t){return null!=t&&(t._exit(),y.removeChild(t),y.modified(),y.geoTrigger(p.layerRemove,{target:y,layer:t})),t},this.size=function(t){if(void 0===t)return{width:_,height:b};var e=y.center();_=t.width||_,b=t.height||b,K();var n=y._fix_zoom(E);return n!==E&&y.zoom(n),y.camera().viewport={width:_,height:b,left:x.offset().left,top:x.offset().top},y.center(e),y.geoTrigger(p.resize,{target:y,width:_,height:b}),y.modified(),y},this.rotatedSize=function(){if(!this.rotation())return{width:_,height:b};var t=W({x:0,y:0},{width:_,height:b},y.rotation());return{width:Math.abs(t.right-t.left),height:Math.abs(t.top-t.bottom)}},this.gcsToWorld=function(t,e){return Array.isArray(t)?t.map(function(t){return y.gcsToWorld(t,e)}):((e=null===e?w:void 0===e?M:e)!==w&&(t=d.transformCoordinates(e,w,t)),u.x||u.y||u.z?t=d.affineForward({origin:u},[t])[0]:"z"in t||(t={x:t.x,y:t.y,z:0}),t)},this.worldToGcs=function(t,e){return Array.isArray(t)?t.map(function(t){return y.worldToGcs(t,e)}):(u.x||u.y||u.z?t=d.affineInverse({origin:u},[t])[0]:"z"in t||(t={x:t.x,y:t.y,z:0}),(e=null===e?w:void 0===e?M:e)!==w&&(t=d.transformCoordinates(w,e,t)),t)},this.gcsToDisplay=function(t,e){return t=y.gcsToWorld(t,e),y.worldToDisplay(t)},this.worldToDisplay=function(t){return Array.isArray(t)?t.map(function(t){return F.worldToDisplay(t)}):F.worldToDisplay(t)},this.displayToGcs=function(t,e){return t=y.displayToWorld(t),y.worldToGcs(t,e)},this.displayToWorld=function(t){return Array.isArray(t)?t.map(function(t){return F.displayToWorld(t)}):F.displayToWorld(t)},this.draw=function(){var t,e=y.children();for(y.geoTrigger(p.draw,{target:y}),y._update(),t=0;t<e.length;t+=1)e[t].draw();return y.geoTrigger(p.drawEnd,{target:y}),y},this.fileReader=function(t,e){return void 0===t?S:("string"==typeof t?((e=e||{}).layer||(e.layer=y.createLayer("feature",Object.assign({},e))),e.renderer=e.layer.renderer().api(),S=f.createFileReader(t,e)):S=t,y)},this._init=function(t){if(null==x)throw new Error("Map require DIV node");return x.data("data-geojs-map")&&i.isFunction(x.data("data-geojs-map").exit)&&x.data("data-geojs-map").exit(),x.addClass("geojs-map"),x.data("data-geojs-map",y),V(),y},this._update=function(t){var e,n=y.children();for(e=0;e<n.length;e+=1)n[e]._update(t);return y},this.exit=function(){V(!1);var t,e=y.children();for(t=e.length-1;t>=0;t-=1)e[t]._exit(),y.removeChild(e[t]);y.interactor()&&(y.interactor().destroy(),y.interactor(null)),D=[],y.node().data("data-geojs-map",null),y.node().off(".geo"),y.node().empty(),i(window).off("resize",J),v()},this.interactor=function(t){return void 0===t?C:(C&&C!==t&&C.destroy(),(C=t)&&(x.attr("tabindex")||x.attr("tabindex",0),C.map(y)),y)},this.zoomRange=function(t,e){return void 0===t?Object.assign({},k):(void 0!==t.max&&(k.max=t.max),void 0!==t.min&&(k.min=k.origMin=t.min),K(),e||y.zoom(E),y)},this.transition=function(t,e,n){if(void 0===t)return P;if(P){var r=h.deepMerge({},P.end);return r.center&&w!==M&&(r.center=d.transformCoordinates(w,M,r.center)),O=Object.assign({},r||{},O||{},t),y}var o=y.unitsPerPixel(0);function a(t){return Math.pow(2,-(t+1))*o*b}var s={center:void 0,zoom:y.zoom(),rotation:y.rotation(),duration:1e3,ease:function(t){return t},interp:function(t,e){return function(n){var r=[];return i.each(t,function(i){r.push(function(t,e,n){return t+(e-t)*n}(t[i],e[i],n))}),r}},done:null,zCoord:!0};function l(e){var n=P.done,i=O;if(!0===P.cancel)return y.geoTrigger(p.transitioncancel,t),n&&n({cancel:!0,source:P.cancelSource,transition:P}),P=null,void(O&&(i=O,O=null,y.transition(i,void 0,e)));if(P.start.time||(P.start.time=e,P.end.time=e+t.duration),P.time=e-P.start.time,e>=P.end.time||i){if(!i){if(P.end.center){var r=E!==y._fix_zoom(P.end.zoom)||!1===t.endClamp;y.center(P.end.center,null,r,r)}y.zoom(P.end.zoom,P.zoomOrigin,!1===t.endClamp,!1===t.endClamp),y.rotation(Q(P.end.rotation))}return y.geoTrigger(p.transitionend,t),n&&n({next:!!i}),P=null,void(O&&(i=O,O=null,y.transition(i,void 0,e)))}var a=P.ease((e-P.start.time)/t.duration),s=P.interp(a);P.zCoord&&(s[2]=function(t){return-Math.log2(t/o/b)-1}(s[2])),y._fix_zoom(s[2],!0)===E?y.center({x:s[0],y:s[1]},null,!0,!0):(A=y.gcsToWorld({x:s[0],y:s[1]},null),y.zoom(s[2],P.zoomOrigin,!0,!0)),y.rotation(s[3],void 0,!0),y.scheduleAnimationFrame(l)}return t.center&&(e=null===e?w:void 0===e?M:e,(t=h.deepMerge({},t)).center=h.normalizeCoordinates(t.center),e!==w&&(t.center=d.transformCoordinates(e,w,t.center))),t=h.deepMerge({},s,t),(P={start:{center:y.center(void 0,null),zoom:y.zoom(),rotation:y.rotation()},end:{center:t.center,zoom:y._fix_zoom(t.zoom),rotation:Q(t.rotation,void 0,!0)},ease:t.ease,zCoord:t.zCoord,done:t.done,duration:t.duration,zoomOrigin:t.zoomOrigin,endClamp:t.endClamp}).interp=t.interp([P.start.center.x,P.start.center.y,t.zCoord?a(P.start.zoom):P.start.zoom,P.start.rotation],[P.end.center?P.end.center.x:P.start.center.x,P.end.center?P.end.center.y:P.start.center.y,t.zCoord?a(P.end.zoom):P.end.zoom,P.end.rotation]),y.geoTrigger(p.transitionstart,t),p.cancelNavigation?(P=null,y.geoTrigger(p.transitionend,t),y):(p.cancelAnimation?(t.duration=0,l(0)):n?l(n):y.scheduleAnimationFrame(l),y)},this.transitionCancel=function(t){return!(!P||!0===P.cancel&&!O)&&(P.cancel=!0,P.cancelSource=t||P.cancelSource||"",O=null,!0)},this.bounds=function(t,e){var n;if(e=null===e?w:void 0===e?M:e,void 0!==t){if(e!==w){var i=d.transformCoordinates(e,w,[{x:t.left,y:t.top},{x:t.right,y:t.bottom}]);t={left:i[0].x,top:i[0].y,right:i[1].x,bottom:i[1].y}}t=Z(t,T),n=y.zoomAndCenterFromBounds(t,T,null),y.zoom(n.zoom,void 0,void 0,void 0,"pan"),y.center(n.center,null)}return y.boundsFromZoomAndCenter(E,A,T,e,!0)},this.maxBounds=function(t,e){if(e=null===e?w:void 0===e?M:e,void 0===t)return{left:d.transformCoordinates(w,e,{x:I.left,y:0}).x,right:d.transformCoordinates(w,e,{x:I.right,y:0}).x,bottom:d.transformCoordinates(w,e,{x:0,y:I.bottom}).y,top:d.transformCoordinates(w,e,{x:0,y:I.top}).y};var n=((t.left||0)+(t.right||0))/2,i=((t.bottom||0)+(t.top||0))/2;return void 0!==t.left&&(I.left=d.transformCoordinates(e,w,{x:t.left,y:i}).x),void 0!==t.right&&(I.right=d.transformCoordinates(e,w,{x:t.right,y:i}).x),void 0!==t.bottom&&(I.bottom=d.transformCoordinates(e,w,{x:n,y:t.bottom}).y),void 0!==t.top&&(I.top=d.transformCoordinates(e,w,{x:n,y:t.top}).y),K(),y.zoom(E),y.pan({x:0,y:0}),y},this.corners=function(t){return[y.displayToGcs({x:0,y:0},t),y.displayToGcs({x:_,y:0},t),y.displayToGcs({x:_,y:b},t),y.displayToGcs({x:0,y:b},t)]},this.zoomAndCenterFromBounds=function(t,e,n){var i,r;if((n=null===n?w:void 0===n?M:n)!==w){var o=d.transformCoordinates(n,w,[{x:t.left,y:t.top},{x:t.right,y:t.bottom}]);t={left:o[0].x,top:o[0].y,right:o[1].x,bottom:o[1].y}}if(t.left>=t.right||t.bottom>=t.top)throw new Error("Invalid bounds provided");return r=y._fix_zoom(X(t,e)),i={x:((t=Z(t,e)).left+t.right)/2-u.x,y:(t.top+t.bottom)/2-u.y},n!==w&&(i=d.transformCoordinates(w,n,i)),{zoom:r,center:i}},this.boundsFromZoomAndCenter=function(t,e,n,i,r,o){var a,s,l,c,h,f;if(i=null===i?w:void 0===i?M:i,t=y._fix_zoom(t,r),f=y.unitsPerPixel(t),e=y.gcsToWorld(e,null),l=(a=_*f)/2,c=(s=b*f)/2,n?(e.x+=u.x,e.y+=u.y,(h=W(e,{width:a,height:s},n)).width=a,h.height=s,h=Z(h,n,void 0,o)):h=Z(h={left:e.x-l+u.x,right:e.x+l+u.x,bottom:e.y-c+u.y,top:e.y+c+u.y},0,void 0,o),i!==w){var p=d.transformCoordinates(w,i,[[h.left,h.top],[h.right,h.bottom]]);h={left:p[0][0],top:p[0][1],right:p[1][0],bottom:p[1][1]}}return h.width=a,h.height=s,h},this.discreteZoom=function(t){return void 0===t?L:(L!==(t=!!t)&&((L=t)&&y.zoom(Math.round(y.zoom())),y.interactor()&&y.interactor().options({discreteZoom:L})),y)},this.layers=this.children,this.sortedLayers=function(){return y.children().sort(U)},this.listSceneObjects=function(t){var e=[];return(t=t||y.sortedLayers()).forEach(function(t){if(e.indexOf(t)<0&&(e.push(t),t.children)){var n=t.children();n.length&&(e=e.concat(y.listSceneObjects(n)))}}),e},this.updateAttribution=function(){y.node().find(".geo-attribution").remove();var t=i("<div/>").addClass("geo-attribution").on("mousedown",function(t){t.stopPropagation()});return y.children().forEach(function(e){var n=e.attribution();n&&i("<span/>").addClass("geo-attribution-layer").html(n).appendTo(t)}),i("span",t).length&&t.appendTo(y.node()),y},this.screenshot=function(t,e,n,r){var o;if(!t||Array.isArray(t)||t.renderer||(e=e||t.type,n=n||t.encoderOptions,r=r||t,t=t.layers),(r=r||{}).wait){var a=Object.assign({},r,{wait:!1});o=i.Deferred();var s=function(){window.requestAnimationFrame(function(){o.resolve()})};return"idle"===r.wait?y.onIdle(s):s(),o.then(function(){return y.screenshot(t,e,n,a)})}o=i.when(),t?Array.isArray(t)||(t=[t]):(t=y.layers(),null!==r.attribution&&void 0!==r.attribution||(r.attribution=!0)),t=(t=t.filter(function(t){return y.layers().indexOf(t)>=0&&t.opacity()>0&&(!t.visible||t.visible())})).sort(U);var l=document.createElement("canvas");l.width=_,l.height=b;var u=l.getContext("2d");if(!1!==r.background&&null!==r.background){var c=r.background;void 0===r.background&&(u.fillStyle="white",u.fillRect(0,0,l.width,l.height),y.node().parents().get().reverse().forEach(function(t){(c=window.getComputedStyle(t).backgroundColor)&&"transparent"!==c&&(u.fillStyle=c,u.fillRect(0,0,l.width,l.height))}),c=window.getComputedStyle(y.node()[0]).backgroundColor),c&&"transparent"!==c&&(u.fillStyle=c,u.fillRect(0,0,l.width,l.height))}return t.forEach(function(t){var e=t.opacity();t.node().children("canvas").each(function(){var n=i(this);o=o.then(function(){t.renderer()&&"webgl"===t.renderer().api()&&t.renderer()._renderFrame(),q(u,e,n,n[0],t.node().css("mix-blend-mode"))})}),!t.node().children().not("canvas").length&&t.node().children().length||t.renderer()&&"webgl"===t.renderer().api()||(o=o.then(function(){return h.htmlToImage(t.node(),1).done(function(e){q(u,1,i([]),e,t.node().css("mix-blend-mode"))})}))}),r.attribution&&y.node().find(".geo-attribution").each(function(){var t=i(this);o=o.then(function(){return h.htmlToImage(t,1).done(function(t){q(u,1,i([]),t)})})}),r.html&&i(r.html).each(function(){var t=i(this);o=o.then(function(){return h.htmlToImage(t,1).done(function(e){q(u,1,i([]),e,t.css("mix-blend-mode"))})})}),o=o.then(function(){var t=l;if("canvas"!==e)try{l=l.toDataURL(e,n)}catch(t){console.warn("Failed to convert screenshot to output",t);var r=i.Deferred();return r.reject(),r}return y.geoTrigger(p.screenshot.ready,{canvas:t,screenshot:l}),l})},this.scheduleAnimationFrame=function(t,e){D.length||D.push(window.requestAnimationFrame(H));var n=D.indexOf(t,1);if(n>=0){if(!e)return;if(D.splice(n,1),"remove"===e)return}return D.push(t),D[0]},this._fix_zoom=function(t,e){return t=Math.round(1e6*t)/1e6,t=Math.max(Math.min(k.max,t),k.min),L&&!e&&(t=Math.round(t))<k.min&&(t=Math.ceil(k.min)),t},this.autoshareRenderer=function(t){return void 0===t?j:(j=null===t?void 0:t,y)},this._version=n(4081),this._geo=n(2257),this._init(t),this.node().on("dragover.geo",function(t){var e=t.originalEvent;y.fileReader()&&(e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy")}).on("drop.geo",function(t){var e,n,i=t.originalEvent,r=y.fileReader();function o(){y.draw()}if(r)for(i.stopPropagation(),i.preventDefault(),e=0;e<i.dataTransfer.files.length;e+=1)n=i.dataTransfer.files[e],r.canRead(n)&&r.read(n,o)}),u={x:0,y:0},this.zoomRange(t,!0),E=this._fix_zoom(E),T=Q(T),this.center(Object.assign({},t.center||A),void 0),null!==t.interactor&&this.interactor(t.interactor||m({discreteZoom:L})),G&&i(window).on("resize",J),y.geoOn([p.layerAdd,p.layerRemove],y.updateAttribution),this};a.create=function(t){"use strict";var e=a(t),i=n(5156);return e&&e.zoom?(t.data=t.data||[],t.layers=t.layers||[],t.layers.forEach(function(n){n.data=n.data||t.data,n.layer=i.create(e,n)}),e):(console.warn("Could not create map."),null)},r(a,o),t.exports=a},6238:function(t){t.exports="/* quadFeature Image vertex shader */\n\nattribute vec3 vertexPosition;\nattribute vec2 textureCoord;\nuniform float zOffset;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying highp vec2 iTextureCoord;\nuniform highp vec4 cropsource;\n\nvoid main(void) {\n gl_Position = projectionMatrix * modelViewMatrix * vec4(vertexPosition, 1.0);\n gl_Position.z += zOffset;\n if (cropsource.p > cropsource.s && cropsource.q > cropsource.t && (cropsource.p < 1.0 || cropsource.s > 0.0 || cropsource.q < 1.0 || cropsource.t > 0.0)) {\n iTextureCoord.s = textureCoord.s * (cropsource.p - cropsource.s) + cropsource.s;\n iTextureCoord.t = textureCoord.t * (cropsource.q - cropsource.t) + cropsource.t;\n } else {\n iTextureCoord = textureCoord;\n }\n}\n"},6269:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var i=n(7e3),r=n(9393);function o(t){return Math.abs(t)<=i.DF?t:t-(0,r.A)(t)*i.JM}},6298:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Xe}});var i=n(7e3),r={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},o=r,a={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},s=/[\s_\-\/\(\)]/g;function l(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),r=e.toLowerCase().replace(s,""),o=-1;++o<i.length;)if((n=i[o]).toLowerCase().replace(s,"")===r)return t[n]}function u(t){var e,n,r,s={},u=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),c={proj:"projName",datum:"datumCode",rf:function(t){s.rf=parseFloat(t)},lat_0:function(t){s.lat0=t*i.zq},lat_1:function(t){s.lat1=t*i.zq},lat_2:function(t){s.lat2=t*i.zq},lat_ts:function(t){s.lat_ts=t*i.zq},lon_0:function(t){s.long0=t*i.zq},lon_1:function(t){s.long1=t*i.zq},lon_2:function(t){s.long2=t*i.zq},alpha:function(t){s.alpha=parseFloat(t)*i.zq},gamma:function(t){s.rectified_grid_angle=parseFloat(t)*i.zq},lonc:function(t){s.longc=t*i.zq},x_0:function(t){s.x0=parseFloat(t)},y_0:function(t){s.y0=parseFloat(t)},k_0:function(t){s.k0=parseFloat(t)},k:function(t){s.k0=parseFloat(t)},a:function(t){s.a=parseFloat(t)},b:function(t){s.b=parseFloat(t)},r:function(t){s.a=s.b=parseFloat(t)},r_a:function(){s.R_A=!0},zone:function(t){s.zone=parseInt(t,10)},south:function(){s.utmSouth=!0},towgs84:function(t){s.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){s.to_meter=parseFloat(t)},units:function(t){s.units=t;var e=l(a,t);e&&(s.to_meter=e.to_meter)},from_greenwich:function(t){s.from_greenwich=t*i.zq},pm:function(t){var e=l(o,t);s.from_greenwich=(e||parseFloat(t))*i.zq},nadgrids:function(t){"@null"===t?s.datumCode="none":s.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))&&(s.axis=t)},approx:function(){s.approx=!0}};for(e in u)n=u[e],e in c?"function"==typeof(r=c[e])?r(n):s[r]=n:s[e]=n;return"string"==typeof s.datumCode&&"WGS84"!==s.datumCode&&(s.datumCode=s.datumCode.toLowerCase()),s}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var f=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},n=[{key:"getId",value:function(t){var e=t.find(function(t){return Array.isArray(t)&&"ID"===t[0]});return e&&e.length>=3?{authority:e[1],code:parseInt(e[2],10)}:null}},{key:"convertUnit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unit";if(!t||t.length<3)return{type:e,name:"unknown",conversion_factor:null};var n=t[1],i=parseFloat(t[2])||null,r=t.find(function(t){return Array.isArray(t)&&"ID"===t[0]});return{type:e,name:n,conversion_factor:i,id:r?{authority:r[1],code:parseInt(r[2],10)}:null}}},{key:"convertAxis",value:function(t){var e,n=t[1]||"Unknown",i=n.match(/^\((.)\)$/);if(i){var r=i[1].toUpperCase();if("E"===r)e="east";else if("N"===r)e="north";else{if("U"!==r)throw new Error("Unknown axis abbreviation: ".concat(r));e="up"}}else e=t[2]?t[2].toLowerCase():"unknown";var o=t.find(function(t){return Array.isArray(t)&&"ORDER"===t[0]}),a=o?parseInt(o[1],10):null,s=t.find(function(t){return Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0])});return{name:n,direction:e,unit:this.convertUnit(s),order:a}}},{key:"extractAxes",value:function(t){var e=this;return t.filter(function(t){return Array.isArray(t)&&"AXIS"===t[0]}).map(function(t){return e.convertAxis(t)}).sort(function(t,e){return(t.order||0)-(e.order||0)})}},{key:"convert",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t[0]){case"PROJCRS":n.type="ProjectedCRS",n.name=t[1],n.base_crs=t.find(function(t){return Array.isArray(t)&&"BASEGEOGCRS"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"BASEGEOGCRS"===t[0]})):null,n.conversion=t.find(function(t){return Array.isArray(t)&&"CONVERSION"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"CONVERSION"===t[0]})):null;var i=t.find(function(t){return Array.isArray(t)&&"CS"===t[0]});i&&(n.coordinate_system={type:i[1],axis:this.extractAxes(t)});var r=t.find(function(t){return Array.isArray(t)&&"LENGTHUNIT"===t[0]});if(r){var o=this.convertUnit(r);n.coordinate_system.unit=o}n.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":n.type="GeographicCRS",n.name=t[1];var a=t.find(function(t){return Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0])});if(a){var s=this.convert(a);"ENSEMBLE"===a[0]?n.datum_ensemble=s:n.datum=s;var l=t.find(function(t){return Array.isArray(t)&&"PRIMEM"===t[0]});l&&"Greenwich"!==l[1]&&(s.prime_meridian={name:l[1],longitude:parseFloat(l[2])})}n.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},n.id=this.getId(t);break;case"DATUM":n.type="GeodeticReferenceFrame",n.name=t[1],n.ellipsoid=t.find(function(t){return Array.isArray(t)&&"ELLIPSOID"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"ELLIPSOID"===t[0]})):null;break;case"ENSEMBLE":n.type="DatumEnsemble",n.name=t[1],n.members=t.filter(function(t){return Array.isArray(t)&&"MEMBER"===t[0]}).map(function(t){return{type:"DatumEnsembleMember",name:t[1],id:e.getId(t)}});var u=t.find(function(t){return Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]});u&&(n.accuracy=parseFloat(u[1]));var c=t.find(function(t){return Array.isArray(t)&&"ELLIPSOID"===t[0]});c&&(n.ellipsoid=this.convert(c)),n.id=this.getId(t);break;case"ELLIPSOID":n.type="Ellipsoid",n.name=t[1],n.semi_major_axis=parseFloat(t[2]),n.inverse_flattening=parseFloat(t[3]),t.find(function(t){return Array.isArray(t)&&"LENGTHUNIT"===t[0]})&&this.convert(t.find(function(t){return Array.isArray(t)&&"LENGTHUNIT"===t[0]}),n);break;case"CONVERSION":n.type="Conversion",n.name=t[1],n.method=t.find(function(t){return Array.isArray(t)&&"METHOD"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"METHOD"===t[0]})):null,n.parameters=t.filter(function(t){return Array.isArray(t)&&"PARAMETER"===t[0]}).map(function(t){return e.convert(t)});break;case"METHOD":n.type="Method",n.name=t[1],n.id=this.getId(t);break;case"PARAMETER":n.type="Parameter",n.name=t[1],n.value=parseFloat(t[2]),n.unit=this.convertUnit(t.find(function(t){return Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0])})),n.id=this.getId(t);break;case"BOUNDCRS":n.type="BoundCRS";var d=t.find(function(t){return Array.isArray(t)&&"SOURCECRS"===t[0]});if(d){var h=d.find(function(t){return Array.isArray(t)});n.source_crs=h?this.convert(h):null}var f=t.find(function(t){return Array.isArray(t)&&"TARGETCRS"===t[0]});if(f){var p=f.find(function(t){return Array.isArray(t)});n.target_crs=p?this.convert(p):null}var m=t.find(function(t){return Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]});n.transformation=m?this.convert(m):null;break;case"ABRIDGEDTRANSFORMATION":if(n.type="Transformation",n.name=t[1],n.method=t.find(function(t){return Array.isArray(t)&&"METHOD"===t[0]})?this.convert(t.find(function(t){return Array.isArray(t)&&"METHOD"===t[0]})):null,n.parameters=t.filter(function(t){return Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])}).map(function(t){return"PARAMETER"===t[0]?e.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0}),7===n.parameters.length){var g=n.parameters[6];"Scale difference"===g.name&&(g.value=Math.round(1e12*(g.value-1))/1e6)}n.id=this.getId(t);break;case"AXIS":n.coordinate_system||(n.coordinate_system={type:"unspecified",axis:[]}),n.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":var y=this.convertUnit(t,"LinearUnit");n.coordinate_system&&n.coordinate_system.axis&&n.coordinate_system.axis.forEach(function(t){t.unit||(t.unit=y)}),y.conversion_factor&&1!==y.conversion_factor&&n.semi_major_axis&&(n.semi_major_axis={value:n.semi_major_axis,unit:y});break;default:n.keyword=t[0]}return n}}],(e=null)&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),p=f;function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function y(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=m(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}function v(t,e,n){return e=b(e),function(t,e){if(e&&("object"==m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,x()?Reflect.construct(e,n||[],b(t).constructor):e.apply(t,n))}function x(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(x=function(){return!!t})()}function _(){return _="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},_.apply(null,arguments)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}var M=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),n=e,r=[{key:"convert",value:function(t){var n,i,r,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(n=e,i="convert",r=this,a=_(b(1&(o=2)?n.prototype:n),i,r),2&o&&"function"==typeof a?function(t){return a.apply(r,t)}:a)([t,s]),s.coordinate_system&&"Cartesian"===s.coordinate_system.subtype&&delete s.coordinate_system,s.usage&&delete s.usage,s}}],(i=null)&&g(n.prototype,i),r&&g(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(p),A=M;function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function T(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,S(i.key),i)}}function S(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=E(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}function C(t,e,n){return e=O(e),function(t,e){if(e&&("object"==E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(k=function(){return!!t})()}function P(){return P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=O(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},P.apply(null,arguments)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function L(t,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},L(t,e)}var R=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),C(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&L(t,e)}(e,t),n=e,r=[{key:"convert",value:function(t){var n,i,r,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(n=e,i="convert",r=this,a=P(O(1&(o=2)?n.prototype:n),i,r),2&o&&"function"==typeof a?function(t){return a.apply(r,t)}:a)([t,s]);var l=t.find(function(t){return Array.isArray(t)&&"CS"===t[0]});l&&(s.coordinate_system={subtype:l[1],axis:this.extractAxes(t)});var u=t.find(function(t){return Array.isArray(t)&&"USAGE"===t[0]});if(u){var c=u.find(function(t){return Array.isArray(t)&&"SCOPE"===t[0]}),d=u.find(function(t){return Array.isArray(t)&&"AREA"===t[0]}),h=u.find(function(t){return Array.isArray(t)&&"BBOX"===t[0]});s.usage={},c&&(s.usage.scope=c[1]),d&&(s.usage.area=d[1]),h&&(s.usage.bbox=h.slice(1))}return s}}],(i=null)&&T(n.prototype,i),r&&T(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(p),I=R;function F(t){var e=function(t){return t.find(function(t){return Array.isArray(t)&&"USAGE"===t[0]})?"2019":(t.find(function(t){return Array.isArray(t)&&"CS"===t[0]})||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015")}(t);return("2019"===e?I:A).convert(t)}var D=function(t){var e=new U(t);return e.output()},G=1,j=/\s/,N=/[A-Za-z]/,B=/[A-Za-z84_]/,z=/[,\]]/,V=/[\d\.E\-\+]/;function U(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=G}function q(t,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var i=e?{}:t,r=n.reduce(function(t,e){return H(e,t),t},i);e&&(t[e]=r)}function H(t,e){if(Array.isArray(t)){var n=t.shift();if("PARAMETER"===n&&(n=t.shift()),1===t.length)return Array.isArray(t[0])?(e[n]={},void H(t[0],e[n])):void(e[n]=t[0]);if(t.length)if("TOWGS84"!==n){if("AXIS"===n)return n in e||(e[n]=[]),void e[n].push(t);var i;switch(Array.isArray(n)||(e[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[n]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&H(t[2],e[n]));case"SPHEROID":case"ELLIPSOID":return e[n]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&H(t[3],e[n]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void q(e,n,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],q(e,n,t),void(e[n].type=n);default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return H(t,e[n]);return q(e,n,t)}}else e[n]=t;else e[n]=!0}else e[t]=!0}U.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;j.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case G:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},U.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(z.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},U.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=G)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=G,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},U.prototype.number=function(t){if(!V.test(t)){if(z.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},U.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},U.prototype.keyword=function(t){if(B.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=G)}if(!z.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},U.prototype.neutral=function(t){if(N.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(V.test(t))return this.word=t,void(this.state=3);if(!z.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},U.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function W(t){return.017453292519943295*t}function X(t){var e=(t.projName||"").toLowerCase().replace(/_/g," ");t.long0||!t.longc||"albers conic equal area"!==e&&"lambert azimuthal equal area"!==e||(t.long0=t.longc),t.lat_ts||!t.lat1||"stereographic south pole"!==e&&"polar stereographic (variant b)"!==e?t.lat_ts||!t.lat0||"polar stereographic"!==e&&"polar stereographic (variant a)"!==e||(t.lat_ts=t.lat0,t.lat0=W(t.lat0>0?90:-90),delete t.lat1):(t.lat0=W(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function Q(t){var e={units:null,to_meter:void 0};return"string"==typeof t?(e.units=t.toLowerCase(),"metre"===e.units&&(e.units="meter"),"meter"===e.units&&(e.to_meter=1)):t&&t.name&&(e.units=t.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.to_meter=t.conversion_factor),e}function Z(t){return"object"===K(t)?t.value*t.unit.conversion_factor:t}function Y(t,e){t.ellipsoid.radius?(e.a=t.ellipsoid.radius,e.rf=0):(e.a=Z(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?e.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(e.rf=e.a/(e.a-Z(t.ellipsoid.semi_minor_axis))))}function J(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&"object"===K(t)?"BoundCRS"===t.type?(J(t.source_crs,e),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?e.nadgrids=t.transformation.parameters[0].value:e.datum_params=t.transformation.parameters.map(function(t){return t.value})),e):(Object.keys(t).forEach(function(n){var i=t[n];if(null!==i)switch(n){case"name":if(e.srsCode)break;e.name=i,e.srsCode=i;break;case"type":"GeographicCRS"===i?e.projName="longlat":"ProjectedCRS"===i&&t.conversion&&t.conversion.method&&(e.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":i.ellipsoid&&(e.ellps=i.ellipsoid.name,Y(i,e)),i.prime_meridian&&(e.from_greenwich=i.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=i.name,Y(i,e);break;case"prime_meridian":e.long0=(i.longitude||0)*Math.PI/180;break;case"coordinate_system":if(i.axis)if(e.axis=i.axis.map(function(t){var e=t.direction;if("east"===e)return"e";if("north"===e)return"n";if("west"===e)return"w";if("south"===e)return"s";throw new Error("Unknown axis direction: ".concat(e))}).join("")+"u",i.unit){var r=Q(i.unit),o=r.units,a=r.to_meter;e.units=o,e.to_meter=a}else if(i.axis[0]&&i.axis[0].unit){var s=Q(i.axis[0].unit),l=s.units,u=s.to_meter;e.units=l,e.to_meter=u}break;case"id":i.authority&&i.code&&(e.title=i.authority+":"+i.code);break;case"conversion":i.method&&i.method.name&&(e.projName=i.method.name),i.parameters&&i.parameters.forEach(function(t){var n=t.name.toLowerCase().replace(/\s+/g,"_"),i=t.value;t.unit&&t.unit.conversion_factor?e[n]=i*t.unit.conversion_factor:"degree"===t.unit?e[n]=i*Math.PI/180:e[n]=i});break;case"unit":i.name&&(e.units=i.name.toLowerCase(),"metre"===e.units&&(e.units="meter")),i.conversion_factor&&(e.to_meter=i.conversion_factor);break;case"base_crs":J(i,e),e.datumCode=i.id?i.id.authority+"_"+i.id.code:i.name}}),void 0!==e.latitude_of_false_origin&&(e.lat0=e.latitude_of_false_origin),void 0!==e.longitude_of_false_origin&&(e.long0=e.longitude_of_false_origin),void 0!==e.latitude_of_standard_parallel&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),void 0!==e.latitude_of_1st_standard_parallel&&(e.lat1=e.latitude_of_1st_standard_parallel),void 0!==e.latitude_of_2nd_standard_parallel&&(e.lat2=e.latitude_of_2nd_standard_parallel),void 0!==e.latitude_of_projection_centre&&(e.lat0=e.latitude_of_projection_centre),void 0!==e.longitude_of_projection_centre&&(e.longc=e.longitude_of_projection_centre),void 0!==e.easting_at_false_origin&&(e.x0=e.easting_at_false_origin),void 0!==e.northing_at_false_origin&&(e.y0=e.northing_at_false_origin),void 0!==e.latitude_of_natural_origin&&(e.lat0=e.latitude_of_natural_origin),void 0!==e.longitude_of_natural_origin&&(e.long0=e.longitude_of_natural_origin),void 0!==e.longitude_of_origin&&(e.long0=e.longitude_of_origin),void 0!==e.false_easting&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),void 0!==e.false_northing&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),void 0!==e.standard_parallel_1&&(e.lat1=e.standard_parallel_1),void 0!==e.standard_parallel_2&&(e.lat2=e.standard_parallel_2),void 0!==e.scale_factor_at_natural_origin&&(e.k0=e.scale_factor_at_natural_origin),void 0!==e.scale_factor_at_projection_centre&&(e.k0=e.scale_factor_at_projection_centre),void 0!==e.scale_factor_on_pseudo_standard_parallel&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),void 0!==e.azimuth&&(e.alpha=e.azimuth),void 0!==e.azimuth_at_projection_centre&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),X(e),e):t}function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}var tt=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function et(t){for(var e=Object.keys(t),n=0,i=e.length;n<i;++n){var r=e[n];-1!==tt.indexOf(r)&&nt(t[r]),"object"===$(t[r])&&et(t[r])}}function nt(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"===$(t.PROJECTION)?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var n="",i=0,r=t.AXIS.length;i<r;++i){var o=[t.AXIS[i][0].toLowerCase(),t.AXIS[i][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?n+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?n+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?n+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(n+="w")}2===n.length&&(n+="u"),3===n.length&&(t.axis=n)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var a=t.GEOGCS;function s(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(a=t),a&&(a.DATUM?t.datumCode=a.DATUM.name.toLowerCase():t.datumCode=a.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(t.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=a.DATUM.SPHEROID.a,t.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(t.datum_params=a.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=W(t.rectified_grid_angle));[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",W],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",W],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",W],["lat0","latitude_of_origin",W],["lat0","standard_parallel_1",W],["lat1","standard_parallel_1",W],["lat2","standard_parallel_2",W],["azimuth","Azimuth"],["alpha","azimuth",W],["srsCode","name"]].forEach(function(e){return n=t,r=(i=e)[0],o=i[1],void(!(r in n)&&o in n&&(n[r]=n[o],3===i.length&&(n[r]=i[2](n[r]))));var n,i,r,o}),X(t)}function it(t){if("object"===$(t))return J(t);var e=function(t){var e=t.toUpperCase();return e.includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1")}(t),n=D(t);if("WKT2"===e)return J(F(n));var i=n[0],r={};return H(n,r),et(r),r[i]}function rt(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?rt[t]=u(arguments[1]):rt[t]=it(arguments[1]):rt[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?rt.apply(e,t):rt(t)});if("string"==typeof t){if(t in rt)return rt[t]}else"EPSG"in t?rt["EPSG:"+t.EPSG]=t:"ESRI"in t?rt["ESRI:"+t.ESRI]=t:"IAU2000"in t?rt["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!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");for(var e=1;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");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"]}(rt);var ot=rt;function at(t){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(t)}var st=["3857","900913","3785","102113"];var lt=function(t){if(!function(t){return"string"==typeof t}(t))return"projName"in t?t:it(t);if(function(t){return t in ot}(t))return ot[t];if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"===at(t)&&!("srsCode"in t)}(t)){var e=it(t);if(function(t){var e=l(t,"authority");if(e){var n=l(e,"epsg");return n&&st.indexOf(n)>-1}}(e))return ot["EPSG:3857"];var n=function(t){var e=l(t,"extension");if(e)return l(e,"proj4")}(e);return n?u(n):e}return function(t){return"+"===t[0]}(t)?u(t):void 0};function ut(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}var ct=n(7272),dt={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},ht=dt.WGS84;var ft={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-8.393,0.749,-10.276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"374,150,588"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"}};for(var pt in ft){var mt=ft[pt];mt.datumName&&(ft[mt.datumName]=mt)}var gt=ft;var yt=function(t,e,n,r,o,a,s){var l={};return l.datum_type=void 0===t||"none"===t?i.A1:i.xK,e&&(l.datum_params=e.map(parseFloat),0===l.datum_params[0]&&0===l.datum_params[1]&&0===l.datum_params[2]||(l.datum_type=i.a8),l.datum_params.length>3&&(0===l.datum_params[3]&&0===l.datum_params[4]&&0===l.datum_params[5]&&0===l.datum_params[6]||(l.datum_type=i.Y$,l.datum_params[3]*=i._3,l.datum_params[4]*=i._3,l.datum_params[5]*=i._3,l.datum_params[6]=l.datum_params[6]/1e6+1))),s&&(l.datum_type=i.G9,l.grids=s),l.a=n,l.b=r,l.es=o,l.ep2=a,l};function vt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,u=Object.create(l.prototype);return xt(u,"_invoke",function(n,i,r){var o,s,l,u=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,s=0,l=t,h.n=n,a}};function f(n,i){for(s=n,l=i,e=0;!d&&u&&!r&&e<c.length;e++){var r,o=c[e],f=h.p,p=o[2];n>3?(r=p===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,h.v=i,h.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,h.n=p,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&f(c,p),s=c,l=p;(e=s<2?t:l)||!d;){o||(s?s<3?(s>1&&(h.n=-1),f(s,l)):h.n=l:h.v=l);try{if(u=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?l:n.call(i,h))!==a)break}catch(e){o=t,s=1,l=e}finally{u=1}}return{value:e,done:d}}}(n,r,o),!0),u}var a={};function s(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(xt(e={},i,function(){return this}),e),d=u.prototype=s.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,xt(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=u,xt(d,"constructor",u),xt(u,"constructor",l),l.displayName="GeneratorFunction",xt(u,r,"GeneratorFunction"),xt(d),xt(d,r,"Generator"),xt(d,i,function(){return this}),xt(d,"toString",function(){return"[object Generator]"}),(vt=function(){return{w:o,m:h}})()}function xt(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}xt=function(t,e,n,i){function o(e,n){xt(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},xt(t,e,n,i)}function _t(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var bt={};function wt(t,e){return Mt.apply(this,arguments)}function Mt(){var t;return t=vt().m(function t(e,n){var i,r,o,a,s,l,u,c,d,h,f,p,m,g,y,v,x,_;return vt().w(function(t){for(;;)switch(t.n){case 0:return i=[],t.n=1,n.getImageCount();case 1:r=t.v,o=r-1;case 2:if(!(o>=0)){t.n=6;break}return t.n=3,n.getImage(o);case 3:return a=t.v,t.n=4,a.readRasters();case 4:for(s=t.v,l=s,u=[a.getWidth(),a.getHeight()],c=a.getBoundingBox().map(Et),d=[a.fileDirectory.ModelPixelScale[0],a.fileDirectory.ModelPixelScale[1]].map(Et),h=c[0]+(u[0]-1)*d[0],f=c[3]-(u[1]-1)*d[1],p=l[0],m=l[1],g=[],y=u[1]-1;y>=0;y--)for(v=u[0]-1;v>=0;v--)x=y*u[0]+v,g.push([-Tt(m[x]),Tt(p[x])]);i.push({del:d,lim:u,ll:[-h,f],cvs:g});case 5:o--,t.n=2;break;case 6:return _={header:{nSubgrids:r},subgrids:i},bt[e]=_,t.a(2,_)}},t)}),Mt=function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function a(t){_t(o,i,r,a,s,"next",t)}function s(t){_t(o,i,r,a,s,"throw",t)}a(void 0)})},Mt.apply(this,arguments)}function At(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:bt[t]||null,isNull:!1}}function Et(t){return t*Math.PI/180}function Tt(t){return t/3600*Math.PI/180}function St(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function Ct(t){return t.map(function(t){return[Tt(t.longitudeShift),Tt(t.latitudeShift)]})}function kt(t,e,n){return{name:St(t,e+8,e+16).trim(),parent:St(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function Pt(t,e,n,i,r){var o=e+176,a=16;!1===r&&(a=8);for(var s=[],l=0;l<n.gridNodeCount;l++){var u={latitudeShift:t.getFloat32(o+l*a,i),longitudeShift:t.getFloat32(o+l*a+4,i)};!1!==r&&(u.latitudeAccuracy=t.getFloat32(o+l*a+8,i),u.longitudeAccuracy=t.getFloat32(o+l*a+12,i)),s.push(u)}return s}function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function Lt(t,e){if(!(this instanceof Lt))return new Lt(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,e=e||function(t){if(t)throw t};var n=lt(t);if("object"===Ot(n)){var r=Lt.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var o=l(gt,n.datumCode);o&&(n.datum_params=n.datum_params||(o.towgs84?o.towgs84.split(","):null),n.ellps=o.ellipse,n.datumName=o.datumName?o.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var a,s,u,c,d,h,f,p=function(t,e,n,r,o){if(!t){var a=l(dt,r);a||(a=ht),t=a.a,e=a.b,n=a.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<i.H0)&&(o=!0,e=t),{a:t,b:e,rf:n,sphere:o}}(n.a,n.b,n.rf,n.ellps,n.sphere),m=(a=p.a,s=p.b,p.rf,u=n.R_A,h=((c=a*a)-(d=s*s))/c,f=0,u?(c=(a*=1-h*(i.bA+h*(i.Q1+h*i.ej)))*a,h=0):f=Math.sqrt(h),{es:h,e:f,ep2:(c-d)/d}),g=function(t){return void 0===t?null:t.split(",").map(At)}(n.nadgrids),y=n.datum||yt(n.datumCode,n.datum_params,p.a,p.b,m.es,m.ep2,g);ut(this,n),ut(this,r),this.a=p.a,this.b=p.b,this.rf=p.rf,this.sphere=p.sphere,this.es=m.es,this.e=m.e,this.ep2=m.ep2,this.datum=y,"init"in this&&"function"==typeof this.init&&this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}Lt.projections=ct.Ay,Lt.projections.start();var Rt=Lt,It=n(3356),Ft=n(6269);function Dt(t){return t===i.a8||t===i.Y$}function Gt(t,e,n){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var r={x:-n.x,y:n.y},o={x:Number.NaN,y:Number.NaN},a=[];t:for(var s=0;s<t.grids.length;s++){var l=t.grids[s];if(a.push(l.name),l.isNull){o=r;break}if(null!==l.grid)for(var u=l.grid.subgrids,c=0,d=u.length;c<d;c++){var h=u[c],f=(Math.abs(h.del[1])+Math.abs(h.del[0]))/1e4,p=h.ll[0]-f,m=h.ll[1]-f,g=h.ll[0]+(h.lim[0]-1)*h.del[0]+f,y=h.ll[1]+(h.lim[1]-1)*h.del[1]+f;if(!(m>r.y||p>r.x||y<r.y||g<r.x)&&(o=jt(r,e,h),!isNaN(o.x)))break t}else if(l.mandatory)return console.log("Unable to find mandatory grid '"+l.name+"'"),-1}return isNaN(o.x)?(console.log("Failed to find a grid shift table for location '"+-r.x*i.dX+" "+r.y*i.dX+" tried: '"+a+"'"),-1):(n.x=-o.x,n.y=o.y,0)}function jt(t,e,n){var i={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return i;var r={x:t.x,y:t.y};r.x-=n.ll[0],r.y-=n.ll[1],r.x=(0,Ft.A)(r.x-Math.PI)+Math.PI;var o=Nt(r,n);if(e){if(isNaN(o.x))return i;o.x=r.x-o.x,o.y=r.y-o.y;var a,s,l=9;do{if(s=Nt(o,n),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:r.x-(s.x+o.x),y:r.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(l--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=(0,Ft.A)(o.x+n.ll[0]),i.y=o.y+n.ll[1]}else isNaN(o.x)||(i.x=t.x+o.x,i.y=t.y+o.y);return i}function Nt(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r=Math.floor(i.x),o=Math.floor(i.y),a=i.x-1*r,s=i.y-1*o,l={x:Number.NaN,y:Number.NaN};if(r<0||r>=e.lim[0])return l;if(o<0||o>=e.lim[1])return l;n=o*e.lim[0]+r;var u=e.cvs[n][0],c=e.cvs[n][1];n++;var d=e.cvs[n][0],h=e.cvs[n][1];n+=e.lim[0];var f=e.cvs[n][0],p=e.cvs[n][1];n--;var m=e.cvs[n][0],g=e.cvs[n][1],y=a*s,v=a*(1-s),x=(1-a)*(1-s),_=(1-a)*s;return l.x=x*u+v*d+_*m+y*f,l.y=x*c+v*h+_*g+y*p,l}function Bt(t,e,n){var i,r,o,a=n.x,s=n.y,l=n.z||0,u={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(i=a,r=-1!=="ew".indexOf(t.axis[o])?"x":"y"):1===o?(i=s,r=-1!=="ns".indexOf(t.axis[o])?"y":"x"):(i=l,r="z"),t.axis[o]){case"e":case"n":u[r]=i;break;case"w":case"s":u[r]=-i;break;case"u":void 0!==n[r]&&(u.z=i);break;case"d":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}function zt(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function Vt(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Ut(t,e,n,r){var o,a=void 0!==(n=Array.isArray(n)?zt(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(t){Vt(t.x),Vt(t.y)}(n),t.datum&&e.datum&&function(t,e){return(t.datum.datum_type===i.a8||t.datum.datum_type===i.Y$||t.datum.datum_type===i.G9)&&"WGS84"!==e.datumCode||(e.datum.datum_type===i.a8||e.datum.datum_type===i.Y$||e.datum.datum_type===i.G9)&&"WGS84"!==t.datumCode}(t,e)&&(n=Ut(t,o=new Rt("WGS84"),n,r),t=o),r&&"enu"!==t.axis&&(n=Bt(t,!1,n)),"longlat"===t.projName)n={x:n.x*i.zq,y:n.y*i.zq,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),!(n=t.inverse(n)))return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=function(t,e,n){if((0,It.OI)(t,e))return n;if(t.datum_type===i.A1||e.datum_type===i.A1)return n;var r=t.a,o=t.es;if(t.datum_type===i.G9){if(0!==Gt(t,!1,n))return;r=i.bv,o=i.gS}var a=e.a,s=e.b,l=e.es;if(e.datum_type===i.G9&&(a=i.bv,s=i.zp,l=i.gS),o===l&&r===a&&!Dt(t.datum_type)&&!Dt(e.datum_type))return n;if(n=(0,It.jX)(n,o,r),Dt(t.datum_type)&&(n=(0,It.mj)(n,t.datum_type,t.datum_params)),Dt(e.datum_type)&&(n=(0,It.Fs)(n,e.datum_type,e.datum_params)),n=(0,It.Rw)(n,l,a,s),e.datum_type===i.G9&&0!==Gt(e,!0,n))return;return n}(t.datum,e.datum,n),n)return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*i.dX,y:n.y*i.dX,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),r&&"enu"!==e.axis?Bt(e,!0,n):(n&&!a&&delete n.z,n)}function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}var Ht=Rt("WGS84");function Wt(t,e,n,i){var r,o,a;return Array.isArray(n)?(r=Ut(t,e,n,i)||{x:NaN,y:NaN},n.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name?"number"==typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(o=Ut(t,e,n,i),2===(a=Object.keys(n)).length||a.forEach(function(i){if(void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;o[i]=n[i]}),o)}function Xt(t){return t instanceof Rt?t:"object"===qt(t)&&"oProj"in t?t.oProj:Rt(t)}var Kt=function(t,e,n){var i,r,o,a=!1;return void 0===e?(r=Xt(t),i=Ht,a=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,r=Xt(t),i=Ht,a=!0),i||(i=Xt(t)),r||(r=Xt(e)),n?Wt(i,r,n):(o={forward:function(t,e){return Wt(i,r,t,e)},inverse:function(t,e){return Wt(r,i,t,e)}},a&&(o.oProj=r),o)},Qt="AJSAJS",Zt="AFAFAF",Yt=65,Jt=73,$t=79,te=86,ee=90,ne={forward:ie,inverse:function(t){var e=se(ce(t.toUpperCase()));if(e.lat&&e.lon)return[e.lon,e.lat,e.lon,e.lat];return[e.left,e.bottom,e.right,e.top]},toPoint:re};function ie(t,e){return e=e||5,function(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(f=t.easting,p=t.northing,m=t.zoneNumber,g=ue(m),y=Math.floor(f/1e5),v=Math.floor(p/1e5)%20,r=y,o=v,a=g,s=a-1,l=Qt.charCodeAt(s),u=Zt.charCodeAt(s),c=l+r-1,d=u+o,h=!1,c>ee&&(c=c-ee+Yt-1,h=!0),(c===Jt||l<Jt&&c>Jt||(c>Jt||l<Jt)&&h)&&c++,(c===$t||l<$t&&c>$t||(c>$t||l<$t)&&h)&&++c===Jt&&c++,c>ee&&(c=c-ee+Yt-1),d>te?(d=d-te+Yt-1,h=!0):h=!1,(d===Jt||u<Jt&&d>Jt||(d>Jt||u<Jt)&&h)&&d++,(d===$t||u<$t&&d>$t||(d>$t||u<$t)&&h)&&++d===Jt&&d++,d>te&&(d=d-te+Yt-1),String.fromCharCode(c)+String.fromCharCode(d))+n.substr(n.length-5,e)+i.substr(i.length-5,e);var r,o,a,s,l,u,c,d,h;var f,p,m,g,y,v}(function(t){var e,n,i,r,o,a,s,l,u=t.lat,c=t.lon,d=6378137,h=.00669438,f=.9996,p=oe(u),m=oe(c);l=Math.floor((c+180)/6)+1,180===c&&(l=60);u>=56&&u<64&&c>=3&&c<12&&(l=32);u>=72&&u<84&&(c>=0&&c<9?l=31:c>=9&&c<21?l=33:c>=21&&c<33?l=35:c>=33&&c<42&&(l=37));s=oe(6*(l-1)-180+3),e=h/(1-h),n=d/Math.sqrt(1-h*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)*(m-s),a=d*((1-h/4-3*h*h/64-5*h*h*h/256)*p-(3*h/8+3*h*h/32+45*h*h*h/1024)*Math.sin(2*p)+(15*h*h/256+45*h*h*h/1024)*Math.sin(4*p)-35*h*h*h/3072*Math.sin(6*p));var g=f*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,y=f*(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));u<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(g),zoneNumber:l,zoneLetter:le(u)}}({lat:t[1],lon:t[0]}),e)}function re(t){var e=se(ce(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function oe(t){return t*(Math.PI/180)}function ae(t){return t/Math.PI*180}function se(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var o,a,s,l,u,c,d,h,f,p=.9996,m=6378137,g=.00669438,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=n-5e5,x=e;i<"N"&&(x-=1e7),d=6*(r-1)-180+3,o=.006739496752268451,f=(h=x/p/6367449.145945056)+(3*y/2-27*y*y*y/32)*Math.sin(2*h)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*h)+151*y*y*y/96*Math.sin(6*h),a=m/Math.sqrt(1-g*Math.sin(f)*Math.sin(f)),s=Math.tan(f)*Math.tan(f),l=o*Math.cos(f)*Math.cos(f),u=.99330562*m/Math.pow(1-g*Math.sin(f)*Math.sin(f),1.5),c=v/(a*p);var _=f-a*Math.tan(f)/u*(c*c/2-(5+3*s+10*l-4*l*l-9*o)*c*c*c*c/24+(61+90*s+298*l+45*s*s-1.6983531815716497-3*l*l)*c*c*c*c*c*c/720);_=ae(_);var b,w=(c-(1+2*s+l)*c*c*c/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*c*c*c*c*c/120)/Math.cos(f);if(w=d+ae(w),t.accuracy){var M=se({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});b={top:M.lat,right:M.lon,bottom:_,left:w}}else b={lat:_,lon:w};return b}function le(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function ue(t){var e=t%6;return 0===e&&(e=6),e}function ce(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(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var s=t.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+t;i=t.substring(o,o+=2);for(var l=ue(a),u=function(t,e){var n=Qt.charCodeAt(e-1),i=1e5,r=!1;for(;n!==t.charCodeAt(0);){if(++n===Jt&&n++,n===$t&&n++,n>ee){if(r)throw"Bad character: "+t;n=Yt,r=!0}i+=1e5}return i}(i.charAt(0),l),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var n=Zt.charCodeAt(e-1),i=0,r=!1;for(;n!==t.charCodeAt(0);){if(++n===Jt&&n++,n===$t&&n++,n>te){if(r)throw"Bad character: "+t;n=Yt,r=!0}i+=1e5}return i}(i.charAt(1),l);c<de(s);)c+=2e6;var d=n-o;if(d%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 h,f,p,m=d/2,g=0,y=0;return m>0&&(h=1e5/Math.pow(10,m),f=t.substring(o,o+m),g=parseFloat(f)*h,p=t.substring(o+m),y=parseFloat(p)*h),{easting:g+u,northing:y+c,zoneLetter:s,zoneNumber:a,accuracy:h}}function de(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(e>=0)return e;throw"Invalid zone letter: "+t}function he(t){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(t)}function fe(t,e,n){if(!(this instanceof fe))return new fe(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"===he(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]),this.y=parseFloat(i[1]),this.z=parseFloat(i[2])||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}fe.fromMGRS=function(t){return new fe(re(t))},fe.prototype.toMGRS=function(t){return ie([this.x,this.y],t)};var pe=fe,me=n(5518),ge=n(3426),ye=n(2924),ve=n(6789),xe=n(3084),_e=n(9872),be=n(431),we=n(993),Me=n(6167),Ae=n(3245),Ee=n(8506),Te=n(4894),Se=n(5106),Ce=n(8104),ke=n(780),Pe=n(741),Oe=n(6731),Le=n(969),Re=n(1034),Ie=n(6155),Fe=n(7724),De=n(6671),Ge=n(6014),je=n(6145),Ne=n(2513),Be=n(8067),ze=n(5904),Ve=n(251),Ue=n(1017),qe=n(8197),He=n(9265);var We=Object.assign(Kt,{defaultDatum:"WGS84",Proj:Rt,WGS84:new Rt("WGS84"),Point:pe,toPoint:zt,defs:ot,nadgrid:function(t,e,n){return e instanceof ArrayBuffer?function(t,e,n){var i=!0;void 0!==n&&!1===n.includeErrorFields&&(i=!1);var r=new DataView(e),o=function(t){var e=t.getInt32(8,!1);if(11===e)return!1;e=t.getInt32(8,!0),11!==e&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(r),a=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:St(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(r,o),s=function(t,e,n,i){for(var r=176,o=[],a=0;a<e.nSubgrids;a++){var s=kt(t,r,n),l=Pt(t,r,s,n,i),u=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),c=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);o.push({ll:[Tt(s.lowerLongitude),Tt(s.lowerLatitude)],del:[Tt(s.longitudeInterval),Tt(s.latitudeInterval)],lim:[u,c],count:s.gridNodeCount,cvs:Ct(l)});var d=16;!1===i&&(d=8),r+=176+s.gridNodeCount*d}return o}(r,a,o,i),l={header:a,subgrids:s};return bt[t]=l,l}(t,e,n):{ready:wt(t,e)}},transform:Ut,mgrs:ne,version:"__VERSION__"});!function(t){t.Proj.projections.add(me.default),t.Proj.projections.add(ge.default),t.Proj.projections.add(ye.default),t.Proj.projections.add(ve.default),t.Proj.projections.add(xe.default),t.Proj.projections.add(_e.default),t.Proj.projections.add(be.default),t.Proj.projections.add(we.default),t.Proj.projections.add(Me.default),t.Proj.projections.add(Ae.default),t.Proj.projections.add(Ee.default),t.Proj.projections.add(Te.default),t.Proj.projections.add(Se.default),t.Proj.projections.add(Ce.default),t.Proj.projections.add(ke.default),t.Proj.projections.add(Pe.default),t.Proj.projections.add(Oe.default),t.Proj.projections.add(Le.default),t.Proj.projections.add(Re.default),t.Proj.projections.add(Ie.default),t.Proj.projections.add(Fe.default),t.Proj.projections.add(De.default),t.Proj.projections.add(Ge.default),t.Proj.projections.add(je.default),t.Proj.projections.add(Ne.default),t.Proj.projections.add(Be.default),t.Proj.projections.add(ze.default),t.Proj.projections.add(Ve.default),t.Proj.projections.add(Ue.default),t.Proj.projections.add(qe.default),t.Proj.projections.add(He.default)}(We);var Xe=We},6321:function(t){t.exports=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}},6333:function(t){t.exports=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}},6396:function(t){t.exports=function(){var t=new Float32Array(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},6409:function(t){var e={layerAdd:"geo_layerAdd",layerRemove:"geo_layerRemove",layerMove:"geo_layerMove",zoom:"geo_zoom",rotate:"geo_rotate",pan:"geo_pan",resize:"geo_resize",draw:"geo_draw",drawEnd:"geo_drawEnd",unhidden:"geo_unhidden",hidden:"geo_hidden",mousemove:"geo_mousemove",mouseclick:"geo_mouseclick",mouseup:"geo_mouseup",mousedown:"geo_mousedown",brush:"geo_brush",brushend:"geo_brushend",brushstart:"geo_brushstart",select:"geo_select",zoomselect:"geo_zoomselect",unzoomselect:"geo_unzoomselect",actiondown:"geo_actiondown",actionmove:"geo_actionmove",actionup:"geo_actionup",actionselection:"geo_actionselection",actionwheel:"geo_actionwheel",keyaction:"geo_keyaction",transitionstart:"geo_transitionstart",transitionend:"geo_transitionend",transitioncancel:"geo_transitioncancel",parallelprojection:"geo_parallelprojection",feature:{mousemove:"geo_feature_mousemove",mouseover:"geo_feature_mouseover",mouseover_order:"geo_feature_mouseover_order",mouseout:"geo_feature_mouseout",mouseon:"geo_feature_mouseon",mouseoff:"geo_feature_mouseoff",mouseclick:"geo_feature_mouseclick",mouseclick_order:"geo_feature_mouseclick_order",mousedown:"geo_feature_mousedown",mouseup:"geo_feature_mouseup",brushend:"geo_feature_brushend",brush:"geo_feature_brush"},pixelmap:{prepared:"geo_pixelmap_prepared"},screenshot:{ready:"geo_screenshot_ready"},camera:{}};e.camera.view="geo_camera_view",e.camera.projection="geo_camera_projection",e.camera.viewport="geo_camera_viewport",e.annotation={},e.annotation.add="geo_annotation_add",e.annotation.add_before="geo_annotation_add_before",e.annotation.update="geo_annotation_update",e.annotation.coordinates="geo_annotation_coordinates",e.annotation.select_edit_handle="geo_annotation_select_edit_handle",e.annotation.edit_action="geo_annotation_edit_action",e.annotation.remove="geo_annotation_remove",e.annotation.state="geo_annotation_state",e.annotation.mode="geo_annotation_mode",e.annotation.boolean="geo_annotation_boolean",e.annotation.cursor_click="geo_annotation_cursor_click",e.annotation.cursor_action="geo_annotation_cursor_action",t.exports=e},6449:function(t,e,n){"use strict";function i(t){var e=Math.exp(t);return e=(e+1/e)/2}n.d(e,{A:function(){return i}})},6488:function(t,e,n){n(6409).svg={rescale:n(4765)},t.exports={graphFeature:n(3832),lineFeature:n(9456),object:n(5005),pathFeature:n(9927),pointFeature:n(2602),quadFeature:n(4087),renderer:n(2493),tileLayer:n(4061),trackFeature:n(2037),uniqueID:n(7376),vectorFeature:n(5747)}},6498:function(t,e,n){var i=n(4626),r=n(5156),o=n(6409),a=n(1098),s=function(t){"use strict";if(!(this instanceof s))return new s(t);r.call(this,t);var e=this,n=[],i=this._init,l=this._exit,u=this._update,c=this.visible,d=this.selectionAPI,h=this.draw;return this.createFeature=function(t,n){var i=a.createFeature(t,e,e.renderer(),n);return i?e.addFeature(i):console.warn("Layer renderer ("+e.rendererName()+') does not support feature type "'+t+'"'),i},this.addFeature=function(t){return e.removeFeature(t),e.addChild(t),n.push(t),e.dataTime().modified(),e.modified(),e},this.removeFeature=function(t){var i;return(i=n.indexOf(t))>=0&&(n.splice(i,1),e.removeChild(t),e.dataTime().modified(),e.modified()),e},this.deleteFeature=function(t){return t&&(n.indexOf(t)>=0&&t._exit(),e.removeFeature(t)),e},this.features=function(t){if(void 0===t)return n.slice();var i,r=n.slice();for(i=0;i<r.length;i+=1)t.indexOf(r[i])<0&&n.indexOf(r[i])>=0&&e.deleteFeature(r[i]);for(i=0;i<t.length;i+=1)e.addFeature(t[i]);return e},this.gcsFeatures=function(t){var n,i;return void 0===t?(this.features().forEach(function(t){void 0===n?n=t.gcs():t.gcs()!==n&&(i=!0)}),i?void 0:n):(e.features().forEach(function(e){e.gcs()!==t&&e.gcs(t)}),e)},this._init=function(){return e.initialized()||(i.call(e,!0),e.geoOn(o.resize,function(t){e.renderer()?(e.renderer()._resize(t.x,t.y,t.width,t.height),e._update({event:t}),e.renderer()._render()):e._update({event:t})}),e.geoOn(o.pan,function(t){e._update({event:t}),e.renderer()&&e.renderer()._render()}),e.geoOn(o.rotate,function(t){e._update({event:t}),e.renderer()&&e.renderer()._render()}),e.geoOn(o.zoom,function(t){e._update({event:t}),e.renderer()&&e.renderer()._render()})),e},this._update=function(t){var i;if(!n.length)return e;if(u.call(e,t),e.dataTime().timestamp()>e.updateTime().timestamp())for(i=0;i<n.length;i+=1)n[i].renderer(e.renderer());for(i=0;i<n.length;i+=1)n[i]._update();return e.updateTime().modified(),e},this._exit=function(){e.clear(),l()},this.draw=function(){return e.visible()&&(h(),e.renderer()&&e.renderer()._render()),e},this.visible=function(t){if(void 0===t)return c();if(e.visible()!==t){c(t);var i,r=n.slice();for(i=0;i<r.length;i+=1)r[i].visible(r[i].visible(void 0,!0),!0);t&&e.draw()}return e},this.selectionAPI=function(t){if(void 0===t)return d();if(e.selectionAPI()!==t){d(t);var i,r=n.slice();for(i=0;i<r.length;i+=1)r[i].selectionAPI(r[i].selectionAPI(void 0,!0),!0)}return e},this.clear=function(){for(;n.length;)e.deleteFeature(n[0]);return e},e};i(s,r),a.registerLayer("feature",s),t.exports=s},6500:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h},forward:function(){return u},init:function(){return l},inverse:function(){return c},names:function(){return d}});var i=n(7e3);function r(t,e,n){if(Math.abs(e)>i.sK)return Number.NaN;if(e===i.sK)return Number.POSITIVE_INFINITY;if(e===-1*i.sK)return Number.NEGATIVE_INFINITY;var r=t*n;return Math.log(Math.tan((i.sK+e)/2))+t*Math.log((1-r)/(1+r))/2}var o=n(7897),a=n(6449);function s(t,e){return 2*Math.atan(t*Math.exp(e))-i.sK}function l(){var t=this.b/this.a;this.e=Math.sqrt(1-t*t),this.lc=this.long0,this.rs=Math.sqrt(1+this.e*this.e*Math.pow(Math.cos(this.lat0),4)/(1-this.e*this.e));var e=Math.sin(this.lat0),n=Math.asin(e/this.rs),i=Math.sin(n);this.cp=r(0,n,i)-this.rs*r(this.e,this.lat0,e),this.n2=this.k0*this.a*Math.sqrt(1-this.e*this.e)/(1-this.e*this.e*e*e),this.xs=this.x0,this.ys=this.y0-this.n2*n,this.title||(this.title="Gauss Schreiber transverse mercator")}function u(t){var e=t.x,n=t.y,i=this.rs*(e-this.lc),s=this.cp+this.rs*r(this.e,n,Math.sin(n)),l=Math.asin(Math.sin(i)/(0,a.A)(s)),u=r(0,l,Math.sin(l));return t.x=this.xs+this.n2*u,t.y=this.ys+this.n2*Math.atan((0,o.A)(s)/Math.cos(i)),t}function c(t){var e=t.x,n=t.y,i=Math.atan((0,o.A)((e-this.xs)/this.n2)/Math.cos((n-this.ys)/this.n2)),l=Math.asin(Math.sin((n-this.ys)/this.n2)/(0,a.A)((e-this.xs)/this.n2)),u=r(0,l,Math.sin(l));return t.x=this.lc+i/this.rs,t.y=function(t,e){var n=s(1,e),i=0,r=0;do{i=n,r=t*Math.sin(i),n=s(Math.exp(t*Math.log((1+r)/(1-r))/2),e)}while(Math.abs(n-i)>1e-12);return n}(this.e,(u-this.cp)/this.rs),t}var d=["gstmerg","gstmerc"],h={init:l,forward:u,inverse:c,names:d}},6517:function(t){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},6532:function(t){t.exports=1e-6},6546:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=this,n=this._init;return this.featureType="text",this.position=function(t){return void 0===t?e.style("position"):(t!==e.style("position")&&(e.style("position",t),e.dataTime().modified(),e.modified()),e)},this.text=function(t){return void 0===t?e.style("text"):(t!==e.style("text")&&(e.style("text",t),e.dataTime().modified(),e.modified()),e)},this._init=function(t){t=t||{},n.call(e,t);var i=Object.assign({},{font:"bold 16px sans-serif",textAlign:"center",textBaseline:"middle",color:{r:0,g:0,b:0},rotation:0,rotateWithMap:!1,textScaled:!1,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},text:function(t){return t.text}},void 0===t.style?{}:t.style);void 0!==t.position&&(i.position=t.position),void 0!==t.text&&(i.text=t.text),e.style(i),i.position&&e.position(i.position),i.text&&e.text(i.text),e.dataTime().modified()},this._init(t),e};o.usedStyles=["visible","font","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","lineHeight","fontFamily","textAlign","textBaseline","color","textOpacity","rotation","rotateWithMap","textScaled","offset","shadowColor","shadowOffset","shadowBlur","shadowRotate","textStrokeColor","textStrokeWidth"],o.create=function(t,e){"use strict";return(e=e||{}).type="text",r.create(t,e)},o.capabilities={feature:"text"},i(o,r),t.exports=o},6552:function(t,e,n){n(698).GL={ACTIVE_ATTRIBUTES:35721,ACTIVE_TEXTURE:34016,ACTIVE_UNIFORMS:35718,ALIASED_LINE_WIDTH_RANGE:33902,ALIASED_POINT_SIZE_RANGE:33901,ALPHA:6406,ALPHA_BITS:3413,ALWAYS:519,ARRAY_BUFFER:34962,ARRAY_BUFFER_BINDING:34964,ATTACHED_SHADERS:35717,BACK:1029,BLEND:3042,BLEND_COLOR:32773,BLEND_DST_ALPHA:32970,BLEND_DST_RGB:32968,BLEND_EQUATION:32777,BLEND_EQUATION_ALPHA:34877,BLEND_EQUATION_RGB:32777,BLEND_SRC_ALPHA:32971,BLEND_SRC_RGB:32969,BLUE_BITS:3412,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,BROWSER_DEFAULT_WEBGL:37444,BUFFER_SIZE:34660,BUFFER_USAGE:34661,BYTE:5120,CCW:2305,CLAMP_TO_EDGE:33071,COLOR_ATTACHMENT0:36064,COLOR_BUFFER_BIT:16384,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,COMPILE_STATUS:35713,COMPRESSED_TEXTURE_FORMATS:34467,CONSTANT_ALPHA:32771,CONSTANT_COLOR:32769,CONTEXT_LOST_WEBGL:37442,CULL_FACE:2884,CULL_FACE_MODE:2885,CURRENT_PROGRAM:35725,CURRENT_VERTEX_ATTRIB:34342,CW:2304,DECR:7683,DECR_WRAP:34056,DELETE_STATUS:35712,DEPTH_ATTACHMENT:36096,DEPTH_BITS:3414,DEPTH_BUFFER_BIT:256,DEPTH_CLEAR_VALUE:2931,DEPTH_COMPONENT:6402,DEPTH_COMPONENT16:33189,DEPTH_FUNC:2932,DEPTH_RANGE:2928,DEPTH_STENCIL:34041,DEPTH_STENCIL_ATTACHMENT:33306,DEPTH_TEST:2929,DEPTH_WRITEMASK:2930,DITHER:3024,DONT_CARE:4352,DST_ALPHA:772,DST_COLOR:774,DYNAMIC_DRAW:35048,ELEMENT_ARRAY_BUFFER:34963,ELEMENT_ARRAY_BUFFER_BINDING:34965,EQUAL:514,FASTEST:4353,FLOAT:5126,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,FRAGMENT_SHADER:35632,FRAMEBUFFER:36160,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_BINDING:36006,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_UNSUPPORTED:36061,FRONT:1028,FRONT_AND_BACK:1032,FRONT_FACE:2886,FUNC_ADD:32774,FUNC_REVERSE_SUBTRACT:32779,FUNC_SUBTRACT:32778,GENERATE_MIPMAP_HINT:33170,GEQUAL:518,GREATER:516,GREEN_BITS:3411,HIGH_FLOAT:36338,HIGH_INT:36341,INCR:7682,INCR_WRAP:34055,INT:5124,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,INVALID_ENUM:1280,INVALID_FRAMEBUFFER_OPERATION:1286,INVALID_OPERATION:1282,INVALID_VALUE:1281,INVERT:5386,KEEP:7680,LEQUAL:515,LESS:513,LINEAR:9729,LINEAR_MIPMAP_LINEAR:9987,LINEAR_MIPMAP_NEAREST:9985,LINES:1,LINE_LOOP:2,LINE_STRIP:3,LINE_WIDTH:2849,LINK_STATUS:35714,LOW_FLOAT:36336,LOW_INT:36339,LUMINANCE:6409,LUMINANCE_ALPHA:6410,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_CUBE_MAP_TEXTURE_SIZE:34076,MAX_FRAGMENT_UNIFORM_VECTORS:36349,MAX_RENDERBUFFER_SIZE:34024,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_TEXTURE_SIZE:3379,MAX_VARYING_VECTORS:36348,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VIEWPORT_DIMS:3386,MEDIUM_FLOAT:36337,MEDIUM_INT:36340,MIRRORED_REPEAT:33648,NEAREST:9728,NEAREST_MIPMAP_LINEAR:9986,NEAREST_MIPMAP_NEAREST:9984,NEVER:512,NICEST:4354,NONE:0,NOTEQUAL:517,NO_ERROR:0,ONE:1,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,OUT_OF_MEMORY:1285,PACK_ALIGNMENT:3333,POINTS:0,POLYGON_OFFSET_FACTOR:32824,POLYGON_OFFSET_FILL:32823,POLYGON_OFFSET_UNITS:10752,RED_BITS:3410,RENDERBUFFER:36161,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_BINDING:36007,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_STENCIL_SIZE:36181,RENDERBUFFER_WIDTH:36162,RENDERER:7937,REPEAT:10497,REPLACE:7681,RGB:6407,RGB565:36194,RGB5_A1:32855,RGBA:6408,RGBA4:32854,SAMPLER_2D:35678,SAMPLER_CUBE:35680,SAMPLES:32937,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_BUFFERS:32936,SAMPLE_COVERAGE:32928,SAMPLE_COVERAGE_INVERT:32939,SAMPLE_COVERAGE_VALUE:32938,SCISSOR_BOX:3088,SCISSOR_TEST:3089,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,SHORT:5122,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,STATIC_DRAW:35044,STENCIL_ATTACHMENT:36128,STENCIL_BACK_FAIL:34817,STENCIL_BACK_FUNC:34816,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,STENCIL_BITS:3415,STENCIL_BUFFER_BIT:1024,STENCIL_CLEAR_VALUE:2961,STENCIL_FAIL:2964,STENCIL_FUNC:2962,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_TEST:2960,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STREAM_DRAW:35040,SUBPIXEL_BITS:3408,TEXTURE:5890,TEXTURE0:33984,TEXTURE1:33985,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE2:33986,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE3:33987,TEXTURE30:34014,TEXTURE31:34015,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE_2D:3553,TEXTURE_BINDING_2D:32873,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP:34067,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,UNPACK_ALIGNMENT:3317,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNSIGNED_BYTE:5121,UNSIGNED_INT:5125,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,VALIDATE_STATUS:35715,VENDOR:7936,VERSION:7938,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_SHADER:35633,VIEWPORT:2978,ZERO:0}},6583:function(t){t.exports=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],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,b=i*l-r*s,w=i*u-o*s,M=r*u-o*l,A=c*m-d*p,E=c*g-h*p,T=c*y-f*p,S=d*g-h*m,C=d*y-f*m,k=h*y-f*g,P=v*k-x*C+_*S+b*T-w*E+M*A;if(!P)return null;return P=1/P,t[0]=(s*k-l*C+u*S)*P,t[1]=(r*C-i*k-o*S)*P,t[2]=(m*M-g*w+y*b)*P,t[3]=(h*w-d*M-f*b)*P,t[4]=(l*T-a*k-u*E)*P,t[5]=(n*k-r*T+o*E)*P,t[6]=(g*_-p*M-y*x)*P,t[7]=(c*M-h*_+f*x)*P,t[8]=(a*C-s*T+u*A)*P,t[9]=(i*T-n*C-o*A)*P,t[10]=(p*w-m*_+y*v)*P,t[11]=(d*_-c*w-f*v)*P,t[12]=(s*E-a*S-l*A)*P,t[13]=(n*S-i*E+r*A)*P,t[14]=(m*x-p*b-g*v)*P,t[15]=(c*b-d*x+h*v)*P,t}},6600:function(t){t.exports=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}},6645:function(t,e,n){var i=n(4626),r=n(1275),o=n(5325),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},r.call(this,t);var e,i=n(642),s=this,l=this._init,u=this._exit,c=this.data,d=this.draw,h=this.modified,f=this.style,p=[];function m(t,e,n){var i=s.gcs(),r=s.layer().map().gcs();return t=t||s.data(),e=e||s.style.get("position"),n=n||s.style.get("polygon"),t.map(function(t,a){var l=n(t,a);if(l){var u,c,d,h,f,p,m,g,y,v;for(h=l.outer||(Array.isArray(l)?l:[]),u=new Array(h.length),f=0;f<h.length;f+=1)u[f]=e.call(s,h[f],f,t,a),p=u[f].x,m=u[f].y,f?(p<d.min.x&&(d.min.x=p),m<d.min.y&&(d.min.y=m),p>d.max.x&&(d.max.x=p),m>d.max.y&&(d.max.y=m)):d={min:{x:p,y:m},max:{x:p,y:m}};for(c=(l.inner||[]).map(function(n){h=n||[];var i=new Array(h.length);for(f=0;f<h.length;f+=1)i[f]=e.call(s,h[f],f,t,a);return i}),g=o.transformCoordinates(i,r,u),y=c.map(function(t){return o.transformCoordinates(i,r,t)}),f=0;f<g.length;f+=1)p=g[f].x,m=g[f].y,f?(p<v.min.x&&(v.min.x=p),m<v.min.y&&(v.min.y=m),p>v.max.x&&(v.max.x=p),m>v.max.y&&(v.max.y=m)):v={min:{x:p,y:m},max:{x:p,y:m}};return{outer:u,inner:c,range:d,mapouter:g,mapinner:y,maprange:v}}})}function g(t){return i.isFunction(t)?function(e){return t(e[0],e[1],e[2],e[3])}:t}return this.featureType="polygon",this._subfeatureStyles={fillColor:!0,fillOpacity:!0,lineCap:!0,lineJoin:!0,strokeColor:!0,strokeOffset:!0,strokeOpacity:!0,strokeWidth:!0},this.data=function(t){var e=c(t);return void 0!==t&&(p=m(),s._checkForStroke()),e},this.polygonCoordinates=function(){return p},this.polygon=function(t){return void 0===t?s.style("polygon"):(s.style("polygon",t),s.dataTime().modified(),s.modified(),p=m(),s)},this.position=function(t){return void 0===t?s.style("position"):(s.style("position",t),s.dataTime().modified(),s.modified(),p=m(),s)},this.pointSearch=function(t,n){var r=[],a=[],l={},u=s.data(),c=s.layer().map();n=null===n?c.gcs():void 0===n?c.ingcs():n;var d=o.transformCoordinates(n,c.gcs(),t);(p.forEach(function(t,e){i.pointInPolygon(d,t.mapouter,t.mapinner,t.maprange)&&(a.push(e),l[e]=!0,r.push(u[e]))}),e)&&e.pointSearch(t).found.forEach(function(t){t.length&&4===t[0].length&&!l[t[0][3]]&&(a.push(t[0][3]),l[t[0][3]]=!0,r.push(u[t[0][3]]))});return{index:a,found:r}},this.polygonSearch=function(t,n,r){var a,l,u=s.data(),c=[],d=[],h={},f=t,m={},g=s.layer().map();if(r=null===r?g.gcs():void 0===r?g.ingcs():r,t.outer||(t={outer:t,inner:[]}),!u||!u.length||t.outer.length<3)return{found:d,index:c,extra:h};if((n=n||{}).partial=n.partial||!1,(t={outer:o.transformCoordinates(r,g.gcs(),t.outer),inner:(t.inner||[]).map(function(t){return o.transformCoordinates(r,g.gcs(),t)})}).outer.forEach(function(t){a||(a={x:t.x,y:t.y},l={x:t.x,y:t.y}),t.x<a.x&&(a.x=t.x),t.x>l.x&&(l.x=t.x),t.y<a.y&&(a.y=t.y),t.y>l.y&&(l.y=t.y)}),p.forEach(function(e,r){if(!(!e.mapouter.length||e.maprange&&(e.maprange.max.x<a.x||e.maprange.min.x>l.x||e.maprange.max.y<a.y||e.maprange.min.y>l.y))){for(var o,s,f=-1;f<e.mapinner.length&&!s;f+=1)for(var p=f<0?e.mapouter:e.mapinner[f],g=0,y=p.length,v=y-1;g<y;v=g,g+=1){var x=i.distanceToPolygon2d(p[g],t);if(x*i.distanceToPolygon2d(p[v],t)<0){s=!0;break}if(i.crossedLineSegmentPolygon2d(p[g],p[v],t)){s=!0;break}x>0&&(o=!0)}o||s||!i.pointInPolygon(t.outer[0],e.mapouter,e.mapinner,e.maprange)||(s=!0),(!n.partial&&o&&!s||n.partial&&(o||s))&&(c.push(r),d.push(u[r]),h[r]={partial:s},m[r]=!0)}}),e){var y=e.polygonSearch(f,n);y.found.forEach(function(t,e){t.length&&4===t[0].length&&(m[t[0][3]]||(c.push(t[0][3]),m[t[0][3]]=!0,d.push(u[t[0][3]]),h[y.index[e]]={partial:!1}),y.extra[y.index[e]].partial&&(h[t[0][3]].partial=!0))})}return{found:d,index:c,extra:h}},this.style=function(t,e){var n=f.apply(s,arguments);return void 0===t||"string"==typeof t&&void 0===e||s._checkForStroke(),n},this.style.get=f.get,this._getLoopData=function(t,e,n){var i,r=[];for(i=0;i<n.length;i+=1)r.push([n[i],i,t,e]);return r},this._checkForStroke=function(){if(!1!==f("stroke")){if(s.layer()){e||(e=s.layer().createFeature("line",{selectionAPI:!1,gcs:s.gcs(),visible:s.visible(void 0,!0),dynamicDraw:!0}),s.dependentFeatures([e]));var t,n=s.style();if(i.isFunction(n.stroke)||!n.stroke){var r=s.style.get("stroke"),o=s.style.get("strokeOpacity");t=function(t){return r(t[2],t[3])?o(t[0],t[1],t[2],t[3]):0}}else t=g(n.strokeOpacity);e.style({antialiasing:g(n.antialiasing),closed:!0,lineCap:g(n.lineCap),lineJoin:g(n.lineJoin),miterLimit:g(n.miterLimit),strokeWidth:g(n.strokeWidth),strokeStyle:g(n.strokeStyle),strokeColor:g(n.strokeColor),strokeOffset:g(n.strokeOffset),strokeOpacity:t,uniformLine:g(n.uniformPolygon)});var a=s.data(),l=s.style("position");if(a!==e._lastData||l!==e._lastPosVal){var u,c,d,h=[],p=s.style.get("position"),m=s.style.get("polygon");for(u=0;u<a.length;u+=1)(c=m(a[u],u))&&(d=c.outer||(Array.isArray(c)?c:[])).length>=2&&(h.push(s._getLoopData(a[u],u,d)),c.inner&&c.inner.forEach(function(t){t.length>=2&&h.push(s._getLoopData(a[u],u,t))}));e.position(function(t,e,n,i){return p(t[0],t[1],t[2],t[3])}),e.data(h),e._lastData=a,e._lastPosVal=l}}}else e&&s.layer()&&(s.layer().deleteFeature(e),e=null,s.dependentFeatures([]))},this.draw=function(){var t=d();return e&&e.draw(),t},this.modified=function(){var t=h();return e&&e.modified(),t},this.rdpSimplifyData=function(t,e,n,r,a){var l=s.layer().map(),u=l.gcs(),c=s.gcs(),d=m(t,n,r);return void 0===e&&(e=.5*l.unitsPerPixel(l.zoom())),d=d.map(function(t){return{outer:o.transformCoordinates(c,u,t.outer),inner:t.inner.map(function(t){return o.transformCoordinates(c,u,t)})}}),t=t.map(function(t,n){var r=d[n],a={};for(var s in t)!t.hasOwnProperty(s)||Array.isArray(t)&&s>=0&&s<t.length||(a[s]=t[s]);if(r&&r.outer.length>=3)if(a.inner=r.inner.filter(function(t){return t.length>=3}),a.outer=i.rdpLineSimplify(r.outer,e,!0,a.inner),a.outer.length>=3){var l=a.inner.slice();a.inner.map(function(t,n){l[n]=a.outer;var r=i.rdpLineSimplify(t,e,!0,l);return l[n]=r,r}).filter(function(t){return t.length>=3}),a.outer=o.transformCoordinates(u,c,a.outer),a.inner=a.inner.map(function(t){return o.transformCoordinates(u,c,t)})}else a.outer=a.inner=[];else a.outer=[];return a}),a?t:(s.style("position",i.identityFunction),s.style("polygon",i.identityFunction),s.data(t),s)},this.mouseOverOrderClosestBorder=function(t){var e=t.feature.data(),n=t.feature.layer().map(),r=o.transformCoordinates(n.ingcs(),t.feature.gcs(),t.mouse.geo),a=t.feature.polygonCoordinates(),s={};t.over.index.forEach(function(t,e){var n,o=a[t];o.outer.forEach(function(t,e){var a=o.outer[(e+1)%o.outer.length],s=i.distance2dToLineSquared(r,t,a);(void 0===n||s<n)&&(n=s)}),o.inner.forEach(function(t){t.forEach(function(e,o){var a=t[(o+1)%t.length],s=i.distance2dToLineSquared(r,e,a);(void 0===n||s<n)&&(n=s)})}),s[t]=n}),t.over.index.sort(function(t,e){return s[t]-s[e]}).reverse(),t.over.index.forEach(function(n,i){t.over.found[i]=e[n]})},this.toPolygonList=function(t){var e=s.style.get("polygon"),n=s.style.get("position");return s.data().map(function(t,i){var r=e(t,i),o=r.outer||(Array.isArray(r)?r:[]);if(o.length<3)return[];var a=[o.map(function(e,r){var o=n(e,r,t,i);return[o.x,o.y]})];return r.inner&&r.inner.forEach(function(e){a.push(e.map(function(e,r){var o=n(e,r,t,i);return[o.x,o.y]}))}),a})},this.fromPolygonList=function(t,e){return s.style({position:function(t){return{x:t[0],y:t[1]}},polygon:function(t){return{outer:t[0],inner:t.slice(1)}}}),s.data(t),s},this._exit=function(){e&&s.layer()&&(s.layer().deleteFeature(e),e=null,s.dependentFeatures([])),u()},this._init=function(t){t=t||{},l.call(s,t);var e=Object.assign({},{fill:!0,fillColor:{r:0,g:.5,b:.5},fillOpacity:1,stroke:!1,strokeWidth:1,strokeStyle:"solid",strokeColor:{r:0,g:1,b:1},strokeOpacity:1,polygon:i.identityFunction,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){for(var e=0;e<t.length;e+=1)if(t[e].vertices.length>=3)return t[e].vertices.slice(0,3);return[0,0,0]}},void 0===t.style?{}:t.style);void 0!==t.polygon&&(e.polygon=t.polygon),void 0!==t.position&&(e.position=t.position),s.style(e),s._checkForStroke()},this};a.create=function(t,e){"use strict";return(e=e||{}).type="polygon",r.create(t,e)},a.capabilities={feature:"polygon"},i(a,r),t.exports=a},6658:function(t){t.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},6669:function(t,e,n){t.exports=n(9737)},6671:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var i=n(6269),r=n(7e3),o=n(8597);function a(){this.R=this.a}function s(t){var e,n,a=t.x,s=t.y,l=(0,i.A)(a-this.long0);Math.abs(s)<=r.H0&&(e=this.x0+this.R*l,n=this.y0);var u=(0,o.A)(2*Math.abs(s/Math.PI));(Math.abs(l)<=r.H0||Math.abs(Math.abs(s)-r.sK)<=r.H0)&&(e=this.x0,n=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*u):this.y0+Math.PI*this.R*-Math.tan(.5*u));var c=.5*Math.abs(Math.PI/l-l/Math.PI),d=c*c,h=Math.sin(u),f=Math.cos(u),p=f/(h+f-1),m=p*p,g=p*(2/h-1),y=g*g,v=Math.PI*this.R*(c*(p-y)+Math.sqrt(d*(p-y)*(p-y)-(y+d)*(m-y)))/(y+d);l<0&&(v=-v),e=this.x0+v;var x=d+p;return v=Math.PI*this.R*(g*x-c*Math.sqrt((y+d)*(d+1)-x*x))/(y+d),n=s>=0?this.y0+v:this.y0-v,t.x=e,t.y=n,t}function l(t){var e,n,o,a,s,l,u,c,d,h,f,p;return t.x-=this.x0,t.y-=this.y0,f=Math.PI*this.R,s=(o=t.x/f)*o+(a=t.y/f)*a,f=3*(a*a/(c=-2*(l=-Math.abs(a)*(1+s))+1+2*a*a+s*s)+(2*(u=l-2*a*a+o*o)*u*u/c/c/c-9*l*u/c/c)/27)/(d=(l-u*u/3/c)/c)/(h=2*Math.sqrt(-d/3)),Math.abs(f)>1&&(f=f>=0?1:-1),p=Math.acos(f)/3,n=t.y>=0?(-h*Math.cos(p+Math.PI/3)-u/3/c)*Math.PI:-(-h*Math.cos(p+Math.PI/3)-u/3/c)*Math.PI,e=Math.abs(o)<r.H0?this.long0:(0,i.A)(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(o*o-a*a)+s*s))/2/o),t.x=e,t.y=n,t}var u=["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"];e.default={init:a,forward:s,inverse:l,names:u}},6675:function(t){t.exports=function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}},6731:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return a},init:function(){return o},inverse:function(){return s},iterations:function(){return r},names:function(){return l}});var i=n(7e3),r=1;function o(){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}function a(t){var e,n=t.x,r=t.y-this.lat0,o=n-this.long0,a=r/i._3*1e-5,s=o,l=1,u=0;for(e=1;e<=10;e++)l*=a,u+=this.A[e]*l;var c,d=u,h=s,f=1,p=0,m=0,g=0;for(e=1;e<=6;e++)c=p*d+f*h,f=f*d-p*h,p=c,m=m+this.B_re[e]*f-this.B_im[e]*p,g=g+this.B_im[e]*f+this.B_re[e]*p;return t.x=g*this.a+this.x0,t.y=m*this.a+this.y0,t}function s(t){var e,n,r=t.x,o=t.y,a=r-this.x0,s=(o-this.y0)/this.a,l=a/this.a,u=1,c=0,d=0,h=0;for(e=1;e<=6;e++)n=c*s+u*l,u=u*s-c*l,c=n,d=d+this.C_re[e]*u-this.C_im[e]*c,h=h+this.C_im[e]*u+this.C_re[e]*c;for(var f=0;f<this.iterations;f++){var p,m=d,g=h,y=s,v=l;for(e=2;e<=6;e++)p=g*d+m*h,m=m*d-g*h,g=p,y+=(e-1)*(this.B_re[e]*m-this.B_im[e]*g),v+=(e-1)*(this.B_im[e]*m+this.B_re[e]*g);m=1,g=0;var x=this.B_re[1],_=this.B_im[1];for(e=2;e<=6;e++)p=g*d+m*h,m=m*d-g*h,g=p,x+=e*(this.B_re[e]*m-this.B_im[e]*g),_+=e*(this.B_im[e]*m+this.B_re[e]*g);var b=x*x+_*_;d=(y*x+v*_)/b,h=(v*x-y*_)/b}var w=d,M=h,A=1,E=0;for(e=1;e<=9;e++)A*=w,E+=this.D[e]*A;var T=this.lat0+E*i._3*1e5,S=this.long0+M;return t.x=S,t.y=T,t}var l=["New_Zealand_Map_Grid","nzmg"];e.default={init:o,forward:a,inverse:s,names:l}},6733:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+i*i+r*r+o*o}},6761:function(t,e,n){var i=n(4626),r=n(6124),o=function(t){"use strict";if(!(this instanceof o))return new o(t);var e=n(642),i=n(5905);t=t||{},r.call(this,t);var a=this,s=this._init;return this._createContours=function(){return i.createColoredMesh(a,!1)},this.contour=a.mesh,this._init=function(t){s.call(a,t);var n=Object.assign({},{opacity:1,value:function(t,n){return e.isNonNullFinite(t)?t:a.position()(t,n).z},position:function(t){return t||{x:0,y:0}},origin:function(t){return t.length>=3?[t[0],t[1],0]:[0,0,0]}},void 0===t.style?{}:t.style);a.style(n),a.contour(Object.assign({},{minColor:"black",minOpacity:0,maxColor:"black",maxOpacity:0,colorRange:[{r:.07514311,g:.468049805,b:1},{r:.468487184,g:.588057293,b:1},{r:.656658579,g:.707001303,b:1},{r:.821573924,g:.837809045,b:1},{r:.943467973,g:.943498599,b:.943398095},{r:1,g:.788626485,b:.750707739},{r:1,g:.6289553,b:.568237474},{r:1,g:.472800903,b:.404551679},{r:.916482116,g:.236630659,b:.209939162}]},t.mesh||{},t.contour||{})),(t.mesh||t.contour)&&a.dataTime().modified()},this._init(t),this};i(o,r),t.exports=o},6789:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return s},init:function(){return a},inverse:function(){return l},names:function(){return u}});var i=n(4025),r=n(6269),o=n(4424);function a(){i.default.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"))}function s(t){var e,n,o,a;return t.x=(0,r.A)(t.x-this.long0),i.default.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),o=Math.cos(t.x),a=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*o),t.x=a*n*Math.sin(t.x),t.y=a*(this.cosc0*e-this.sinc0*n*o),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function l(t){var e,n,a,s,l;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,l=(0,o.A)(t.x,t.y)){var u=2*Math.atan2(l,this.R2);e=Math.sin(u),n=Math.cos(u),s=Math.asin(n*this.sinc0+t.y*e*this.cosc0/l),a=Math.atan2(t.x*e,l*this.cosc0*n-t.y*this.sinc0*e)}else s=this.phic0,a=0;return t.x=a,t.y=s,i.default.inverse.apply(this,[t]),t.x=(0,r.A)(t.x+this.long0),t}var u=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];e.default={init:a,forward:s,inverse:l,names:u}},6791:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6761),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t),n(2778).call(this,t);var e=this;return this._build=function(){e.actors()[0]&&e.renderer().contextRenderer().removeActor(e.actors()[0]),e.createGLMeshColored(e._createContours()),e.renderer().contextRenderer().addActor(e.actors()[0]),e.buildTime().modified()},this._init(t),this};i(a,o),r("webgl","contour",a),t.exports=a},6820:function(t,e,n){
42
42
  /*
43
43
  * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
44
44
  * @license MIT
45
45
  * @preserve Project Home: https://github.com/voidqk/polybooljs
46
46
  */
47
- var i,r=n(671),o=n(1526),a=n(3074),s=n(8534),l=n(8927),u=n(9779),c=!1,d=o();function h(t,e,n){var r=i.segments(t),o=i.segments(e),a=n(i.combine(r,o));return i.polygon(a)}i={buildLog:function(t){return!0===t?c=r():!1===t&&(c=!1),!1!==c&&c.list},epsilon:function(t){return d.epsilon(t)},segments:function(t){var e=a(!0,d,c);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:a(!1,d,c).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,c),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,c),inverted:t.inverted1&&t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,c),inverted:t.inverted1&&!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,c),inverted:!t.inverted1&&t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,c),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,d,c),inverted:t.inverted}},polygonFromGeoJSON:function(t){return u.toPolygon(i,t)},polygonToGeoJSON:function(t){return u.fromPolygon(i,d,t)},union:function(t,e){return h(t,e,i.selectUnion)},intersect:function(t,e){return h(t,e,i.selectIntersect)},difference:function(t,e){return h(t,e,i.selectDifference)},differenceRev:function(t,e){return h(t,e,i.selectDifferenceRev)},xor:function(t,e){return h(t,e,i.selectXor)}},"object"==typeof window&&(window.PolyBool=i),t.exports=i},6858:function(t,e,n){var i=n(4626),r=n(1275),o=n(642),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},r.call(this,t);var e=this,n=this._init;this.featureType="vector",this.origin=function(t){return void 0===t?e.style("origin"):(e.style("origin",t),e.dataTime().modified(),e)},this.delta=function(t){return void 0===t?e.style("delta"):(e.style("delta",t),e.dataTime().modified(),e)},this._init=function(t){n.call(e,t);var i=Object.assign({},{strokeColor:"black",strokeWidth:2,strokeOpacity:1,originStyle:"none",endStyle:"arrow",origin:{x:0,y:0,z:0},delta:o.identityFunction,scale:null},void 0===t.style?{}:t.style);return void 0!==t.origin&&(i.origin=t.origin),e.style(i),e.dataTime().modified(),e}};i(a,r),t.exports=a},6884:function(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},6899:function(t){t.exports=function(t,e,n,i){var r=n[1],o=n[2],a=e[1]-r,s=e[2]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=e[0],t[1]=r+a*u-s*l,t[2]=o+a*l+s*u,t}},6902:function(t){t.exports=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}},6919:function(t){t.exports=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}},6977:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},6978:function(t,e,n){var i=n(6409),r=n(8695),o=n(5325),a=n(642),s=n(6546),l=0,u={create:"create",done:"done",highlight:"highlight",edit:"edit",cursor:"cursor"},c="annotationAction",d={fill:!0,fillColor:function(t){return t.selected?{r:0,g:1,b:1}:{r:.3,g:.3,b:.3}},fillOpacity:function(t){return t.selected?.5:.25},radius:function(t){return"edge"===t.type||"rotate"===t.type?8:10},scaled:!1,stroke:!0,strokeColor:{r:0,g:0,b:1},strokeOpacity:1,strokeWidth:function(t){return"edge"===t.type||"rotate"===t.type?2:3},rotateHandleOffset:24,rotateHandleRotation:-Math.PI/4,resizeHandleOffset:48,resizeHandleRotation:-Math.PI/4,handles:{vertex:!0,edge:!0,center:!0,rotate:!0,resize:!0}},h=function(t,e){"use strict";if(!(this instanceof h))return new h(t,e);var n=this,p=a.deepMerge({},this.constructor.defaults,e||{}),m=p.annotationId;delete p.annotationId,void 0===m||p.layer&&p.layer.annotationById(m)?(l+=1,void 0!==m&&console.warn("Annotation id "+m+" is in use; using "+l+" instead."),m=l):m>l&&(l=m);var g=p.name||t.charAt(0).toUpperCase()+t.substr(1)+" "+m,y=p.label||null,v=p.description||void 0,x=t,_=p.layer,b=p.state||u.done;delete p.state,delete p.layer,delete p.name,delete p.label,delete p.description,p.constraint&&(a.isFunction(p.constraint)?this._selectionConstraint=p.constraint:this._selectionConstraint=f(p.constraint)),this._exit=function(){n.layer()&&n.layer().geoOff(i.mousemove,n._cursorHandleMousemove)},this.id=function(){return m},this.newId=function(){return m=l+=1,n},this.name=function(t){return void 0===t?g:(null!==t&&(""+t).trim()&&(t=(""+t).trim())!==g&&(g=t,n.modified()),n)},this.label=function(t,e){return void 0===t?null!==y||e?y:g:(t!==y&&(y=t,n.modified()),n)},this._labelPosition=function(){return a.centerFromPerimeter(n._coordinates())},this._rotateHandlePosition=function(t,e){var i,r,o,s=n.layer().map(),l=n._coordinates(),u=a.centerFromPerimeter(n._coordinates()),c=u?s.gcsToDisplay(u,null):void 0,d=0;if(u){for(t=t||0,e=e||0,l=l.outer?l.outer:l,i=0;i<l.length;i+=1)r=s.gcsToDisplay(l[i],null),d=Math.max(d,Math.pow(r.x-c.x,2)+Math.pow(r.y-c.y,2));return o=Math.sqrt(d)+t,r=s.displayToGcs({x:c.x+o*Math.cos(e),y:c.y-o*Math.sin(e)},null)}},this.labelRecord=function(){var t=n.options("showLabel");if(t){var e=n.state();if(!(!0===t&&e===u.create||!0!==t&&t.indexOf(e)<0)){var i=n.labelStyle(),r={text:n.label(),position:n._labelPosition()};if(r.position)return i&&(r.style=i),r}}},this.description=function(t){return void 0===t?v:(t!==v&&(v=t,n.modified()),n)},this.layer=function(t){return void 0===t?_:(_=t,n)},this._cursorHandleMousemove=function(t){n.layer()._handleMouseMoveModifiers(t);var e=n._cursorCenter,i=t.mapgcs.x-e.x,r=t.mapgcs.y-e.y;if(i||r){var o=n._coordinates(),a=n._coordinatesMapFunc(o,function(t){return{x:t.x+i,y:t.y+r}});return n._coordinates(a),n._cursorCenter=t.mapgcs,n.modified(),n.draw(),!0}return!1},this.state=function(t){if(void 0===t)return b;if(b!==t&&(b=t,n.layer()&&n.layer().geoTrigger(i.annotation.state,{annotation:n}),n.layer()&&n.layer().geoOff(i.mousemove,n._cursorHandleMousemove),b===u.cursor))n._cursorCenter=a.centerFromPerimeter(n._coordinates()),n.layer()&&n.layer().geoOn(i.mousemove,n._cursorHandleMousemove);return n},this.actions=function(t){switch(t||(t=n.state()),t){case u.edit:return[{action:r.annotation_edit_handle,name:"annotation edit",owner:c,input:"left"},{action:r.annotation_edit_handle,name:"annotation edit",owner:c,input:"pan"}];case u.cursor:return[{action:r.annotation_cursor,name:"annotation cursor",owner:c,input:"pan"},{action:r.annotation_cursor,name:"annotation cursor",owner:c,input:"left"}];default:return[]}},this.processAction=function(t){},this.processEditAction=function(t){if(t&&n._editHandle&&n._editHandle.handle)switch(n._editHandle.handle.type){case"vertex":return n._processEditActionVertex(t);case"edge":return n._processEditActionEdge(t);case"center":return n._processEditActionCenter(t);case"rotate":return n._processEditActionRotate(t);case"resize":return n._processEditActionResize(t)}},this._copyOfCoordinates=function(t){return(t=t||n._coordinates()).outer?{outer:t.outer.slice(),inner:(t.inner||[]).map(function(t){return t.slice()})}:t.slice()},this.selectEditHandle=function(t,e){e&&n._editHandle&&n._editHandle.handle&&n._editHandle.handle.selected&&(n._editHandle.handle.selected=!1),t.selected=e;var r=(n._editHandle||{}).amountRotated||0;return n._editHandle={handle:t,startCoordinates:n._copyOfCoordinates(),center:a.centerFromPerimeter(n._coordinates()),rotatePosition:n._rotateHandlePosition(t.style.rotateHandleOffset,t.style.rotateHandleRotation+r),startAmountRotated:r,amountRotated:r,resizePosition:n._rotateHandlePosition(t.style.resizeHandleOffset,t.style.resizeHandleRotation)},n.layer()&&n.layer().geoTrigger(i.annotation.select_edit_handle,{annotation:n,handle:n._editHandle,enable:e}),n},this.options=function(t,e){if(void 0===t)return p;if("string"==typeof t&&void 0===e)return p[t];var r;if(void 0===e?(r=void 0!==t[n._coordinateOption],p=a.deepMerge(p,t),["style","createStyle","editStyle","editHandleStyle","labelStyle","highlightStyle","cursorStyle"].forEach(function(e){void 0!==t[e]&&Object.assign(p[e],t[e])})):(r=t===n._coordinateOption,p[t]=e),p.coordinates){var o=p.coordinates;delete p.coordinates,n._coordinates(o)}if(void 0!==p.name){var s=p.name;delete p.name,n.name(s)}if(void 0!==p.label){var l=p.label;delete p.label,n.label(l)}if(void 0!==p.description){var u=p.description;delete p.description,n.description(u)}return n.modified(),r&&n.layer()&&n.layer().geoTrigger(i.annotation.coordinates,{annotation:n}),n},this.style=function(t,e,i){return i=i||"style",void 0===t?p[i]:"string"==typeof t&&void 0===e?(p[i]||{})[t]:(void 0===p[i]&&(p[i]={}),void 0===e?p[i]=a.deepMerge(p[i],t):p[i][t]=e,n.modified(),n)},["createStyle","editStyle","editHandleStyle","labelStyle","highlightStyle","cursorStyle"].forEach(function(t){n[t]=function(e,i){return n.style(e,i,t)}}),this.styleForState=function(t){return(t=t||n.state())===u.edit||t===u.highlight?Object.assign({},p.style,p[t+"Style"]):t===u.create?Object.assign({},p.style,p.editStyle,p[t+"Style"]):t===u.cursor?Object.assign({},p.style,p.editStyle,p.createStyle,p[t+"Style"]):p[t+"Style"]||p.style||{}},this.type=function(){return x},this.features=function(){return[]},this.mouseClick=function(t){},this.mouseClickEdit=function(t){},this.mouseMove=function(t){},this._coordinates=function(t){return[]},this._coordinateOption="vertices",this.coordinates=function(t){var e=n._coordinates()||[];if(e.length||e.outer&&e.outer.length||(e=[]),n.layer()){var i=n.layer().map();(t=null===t?i.gcs():void 0===t?i.ingcs():t)!==i.gcs()&&(e=n._convertCoordinates(i.gcs(),t,e))}return e},this.modified=function(){return n.layer()&&n.layer().modified(),n},this.draw=function(){return n.layer()&&(n.layer()._update(),n.layer().draw()),n},this._geojsonStyles=function(){return["closed","fill","fillColor","fillOpacity","lineCap","lineJoin","radius","stroke","strokeColor","strokeOffset","strokeOpacity","strokeWidth"]},this._geojsonCoordinates=function(t){return[]},this._geojsonGeometryType=function(){return""},this.geojson=function(t,e){var i,r,o,l=n._geojsonCoordinates(t),u=n._geojsonGeometryType(),c=n._geojsonStyles(),d=n.options("style")||{},h=n.labelStyle()||{};if(l&&l.length&&u){var f={type:"Feature",geometry:{type:u,coordinates:l},properties:{annotationType:x,name:n.name(),annotationId:n.id()}};for(y&&(f.properties.label=y),v&&(f.properties.description=v),!1===n.options("showLabel")&&(f.properties.showLabel=n.options("showLabel")),i=0;i<c.length;i+=1)if(r=c[i],void 0!==(o=a.ensureFunction(d[r])())){var p=((n.constructor.defaults||{}).style||{})[r];r.toLowerCase().match(/color$/)&&(o=a.convertColorToHex(o,"needed"),p=void 0!==p?a.convertColorToHex(p,"needed"):p),o!==p&&(f.properties[r]=o)}for(i=0;i<s.usedStyles.length;i+=1)r=s.usedStyles[i],void 0!==(o=a.ensureFunction(h[r])())&&(r.toLowerCase().match(/color$/)&&(o=a.convertColorToHex(o,"needed")),f.properties["label"+r.charAt(0).toUpperCase()+r.slice(1)]=o);if(e){var m=n.layer().map();t=null===t?m.gcs():void 0===t?m.ingcs():t,f.crs={type:"name",properties:{type:"proj4",name:t}}}return f}},this._addEditHandles=function(t,e,i,r){var o,s=Object.assign({},d,n.editHandleStyle()),l=a.ensureFunction(s.handles)()||{},u=n._editHandle&&n._editHandle.handle&&n._editHandle.handle.selected?n._editHandle.handle:void 0;i=Object.assign({},i),Object.keys(l).forEach(function(t){!1===l[t]&&(i[t]=!1)}),t[3]||(t[3]={point:[]}),o=t[3].point,(e.outer?[e.outer].concat(e.inner||[]):[e]).forEach(function(t,e){t.forEach(function(n,a){!1!==i.vertex&&o.push(Object.assign({},n,{type:"vertex",index:a,vindex:e,style:s,editHandle:!0})),!1===i.edge||a===t.length-1||n.x===t[a+1].x&&n.y===t[a+1].y||o.push(Object.assign({x:(n.x+t[a+1].x)/2,y:(n.y+t[a+1].y)/2},{type:"edge",index:a,vindex:e,style:s,editHandle:!0})),!1===i.edge||r||a!==t.length-1||n.x===t[0].x&&n.y===t[0].y||o.push(Object.assign({x:(n.x+t[0].x)/2,y:(n.y+t[0].y)/2},{type:"edge",index:a,vindex:e,style:s,editHandle:!0}))})}),!1!==i.center&&o.push(Object.assign({},a.centerFromPerimeter(n._coordinates()),{type:"center",style:s,editHandle:!0})),!1!==i.rotate&&(o.push(Object.assign(n._rotateHandlePosition(s.rotateHandleOffset,s.rotateHandleRotation+(u&&"rotate"===u.type?n._editHandle.amountRotated:0)),{type:"rotate",style:s,editHandle:!0})),!n._editHandle||u&&"rotate"===u.type||(n._editHandle.amountRotated=0)),!1!==i.resize&&o.push(Object.assign(n._rotateHandlePosition(s.resizeHandleOffset,s.resizeHandleRotation),{type:"resize",style:s,editHandle:!0})),u&&o.forEach(function(t){t.type===u.type&&t.index===u.index&&t.vindex===u.vindex&&(t.selected=!0)})},this._coordinatesMapFunc=function(t,e){return t.outer?{outer:t.outer.map(e),inner:(t.inner||[]).map(function(t){return t.map(e)})}:t.map(e)},this._firstPointDifferent=function(t,e){return t=t.outer?t.outer:t,e=e.outer?e.outer:e,t[0].x!==e[0].x||t[0].y!==e[0].y},this._processEditActionCenter=function(t){var e=n._editHandle.startCoordinates,i=t.mouse.mapgcs.x-t.state.origin.mapgcs.x,r=t.mouse.mapgcs.y-t.state.origin.mapgcs.y,o=n._coordinates(),a=n._coordinatesMapFunc(e,function(t){return{x:t.x+i,y:t.y+r}});return!!n._firstPointDifferent(a,o)&&(n._coordinates(a),!0)},this._processEditActionRotate=function(t){var e=n._editHandle,i=e.startCoordinates,r=t.mouse.mapgcs.x-t.state.origin.mapgcs.x,o=t.mouse.mapgcs.y-t.state.origin.mapgcs.y,a=Math.atan2(e.rotatePosition.y-e.center.y,e.rotatePosition.x-e.center.x),s=Math.atan2(e.rotatePosition.y+o-e.center.y,e.rotatePosition.x+r-e.center.x)-a,l=n._coordinates(),u=n._coordinatesMapFunc(i,function(t){var n=t.x-e.center.x,i=t.y-e.center.y;return{x:n*Math.cos(s)-i*Math.sin(s)+e.center.x,y:n*Math.sin(s)+i*Math.cos(s)+e.center.y}});return!!n._firstPointDifferent(u,l)&&(n._coordinates(u),e.amountRotated=e.startAmountRotated+s,!0)},this._processEditActionResize=function(t){var e=n._editHandle,i=e.startCoordinates,r=t.mouse.mapgcs.x-t.state.origin.mapgcs.x,o=t.mouse.mapgcs.y-t.state.origin.mapgcs.y,a=n.layer().map(),s=a.gcsToDisplay(e.center,null),l=a.gcsToDisplay(e.resizePosition,null),u=a.gcsToDisplay({x:e.resizePosition.x+r,y:e.resizePosition.y+o},null),c=Math.pow(Math.pow(l.y-s.y,2)+Math.pow(l.x-s.x,2),.5)-e.handle.style.resizeHandleOffset,d=Math.pow(Math.pow(u.y-s.y,2)+Math.pow(u.x-s.x,2),.5)-e.handle.style.resizeHandleOffset,h=n._coordinates();if(d&&c){var f=d/c,p=n._coordinatesMapFunc(i,function(t){return{x:(t.x-e.center.x)*f+e.center.x,y:(t.y-e.center.y)*f+e.center.y}});if(n._firstPointDifferent(p,h))return n._coordinates(p),!0}return!1},this._processEditActionEdge=function(t){var e=n._editHandle,i=e.handle.index,r=e.handle.vindex,o=n._coordinates();o.outer?(r?o.inner[r-1]:o.outer).splice(i+1,0,{x:e.handle.x,y:e.handle.y}):o.splice(i+1,0,{x:e.handle.x,y:e.handle.y});return e.handle.type="vertex",e.handle.index+=1,e.startCoordinates=n._copyOfCoordinates(o),n.modified(),!0},this._processEditActionVertex=function(t,e){var r,o,a=n._editHandle,s=a.handle.index,l=a.handle.vindex,u=a.startCoordinates,c=n._coordinates(),d=c.outer?l?c.inner[l-1]:c.outer:c,h=d.length,f=d[s],p=t.mouse.mapgcs.x-t.state.origin.mapgcs.x,m=t.mouse.mapgcs.y-t.state.origin.mapgcs.y,g=n.layer(),y=g.options("adjacentPointProximity");return u.outer&&(u=l?u.inner[l-1]:u.outer),d[s]={x:u[s].x+p,y:u[s].y+m},g.displayDistance(d[s],null,u[s],null)<=y||(g.displayDistance(d[s],null,d[(s+1)%d.length],null)<=y?r=(s+1)%d.length:g.displayDistance(d[s],null,d[(s+d.length-1)%d.length],null)<=y&&(r=(s+d.length-1)%d.length)),o=0===r&&s===d.length-1||r===d.length-1&&0===s,!1===e&&o&&(r=void 0),void 0!==r&&d.length>(e||n.options("style").closed?3:2)&&(d[s]={x:d[r].x,y:d[r].y},t.event===i.actionup&&(e&&o&&(n.options("style").closed=!0),d.splice(s,1))),(d.length!==h||d[s].x!==f.x||d[s].y!==f.y)&&(n._coordinates(c),!0)},this._convertCoordinates=function(t,e,i){var r=!i;return i=(i=i||n._coordinates()).outer?{outer:o.transformCoordinates(t,e,i.outer),inner:(i.inner||[]).map(function(n){return o.transformCoordinates(t,e,n)})}:o.transformCoordinates(t,e,i),r&&n._coordinates(i),i}};function f(t){var e=Array.isArray(t)?t:[t];return function(t,n,i,r,o,a){var s,l=t;if(i||(i=[{x:n.x,y:n.y},{x:t.x,y:n.y},{x:t.x,y:t.y},{x:n.x,y:t.y}]),r){var u,c,d=(a+1)%4,h=(a+2)%4,f=(a+3)%4,p=Math.pow(Math.pow(i[a].x-i[d].x,2)+Math.pow(i[a].y-i[d].y,2),.5),m=Math.pow(Math.pow(i[a].x-i[f].x,2)+Math.pow(i[a].y-i[f].y,2),.5),g=Math.abs(p*m);e.forEach(function(t){var e,n;if(t.width?(e=t.width,n=t.height):n=(e=Math.pow(g*t,.5))/t,e!==n&&!(a%2)){var i=[n,e];e=i[0],n=i[1]}var r=Math.pow(e-m,2)+Math.pow(n-p,2);(void 0===s||r<s)&&(s=r,u={w:e,h:n})});var y=o[d],v={x:-u.w*Math.cos(y),y:-u.w*Math.sin(y)},x=o[a],_={x:-u.h*Math.cos(x),y:-u.h*Math.sin(x)};switch(r){case"vertex":i[a].x=i[h].x+v.x+_.x,i[a].y=i[h].y+v.y+_.y,i[d].x=i[h].x+v.x,i[d].y=i[h].y+v.y,i[f].x=i[h].x+_.x,i[f].y=i[h].y+_.y;break;case"edge":c={x:.5*(i[h].x+i[f].x),y:.5*(i[h].y+i[f].y)},i[h].x=c.x+_.x/2,i[h].y=c.y+_.y/2,i[a].x=c.x+v.x-_.x/2,i[a].y=c.y+v.y-_.y/2,i[d].x=c.x+v.x+_.x/2,i[d].y=c.y+v.y+_.y/2,i[f].x=c.x-_.x/2,i[f].y=c.y-_.y/2}}else{var b=Math.abs((t.x-n.x)*(t.y-n.y));e.forEach(function(e){var i,r;e.width?(i=e.width,r=e.height):r=(i=Math.pow(b*e,.5))/e;var o={x:n.x+Math.sign(t.x-n.x)*i,y:n.y+Math.sign(t.y-n.y)*r},a=Math.pow(o.x-t.x,2)+Math.pow(o.y-t.y,2);(void 0===s||a<s)&&(s=a,l=o)}),i[0].y=i[1].y=n.y,i[0].x=i[3].x=n.x,i[1].x=i[2].x=l.x,i[2].y=i[3].y=l.y}return{corners:i,origin:n,pos:l}}}h.defaults={showLabel:!0},t.exports={state:u,actionOwner:c,annotation:h,_editHandleFeatureLevel:3,defaultEditHandleStyle:d,constrainAspectRatio:f,annotationActionOwner:c,continuousVerticesActions:function(t,e,n,i,o){return n||(n=t.state()),n===u.create?[{action:r["annotation_"+i],name:i+" create",owner:c,input:"left"},{action:r["annotation_"+i],name:i+" create",owner:c,input:"pan"}]:e.apply(t,o)},continuousVerticesProcessAction:function(t,e,n){var o=t.layer();if(t.state()===u.create&&o&&e.state.action===r["annotation_"+n]){var a=o.options("continuousPointProximity"),s=o.options("continuousPointCollinearity"),l=o.options("continuousCloseProximity");if(a||0===a){var c=t.options("vertices"),d=!1;if(!c.length)return c.push(e.mouse.mapgcs),c.push(e.mouse.mapgcs),!0;var h=o.displayDistance(c[c.length-2],null,e.mouse.map,"display");if(h&&h>a){if(c.length>=(t._lastClickVertexCount||1)+3){var f=o.displayDistance(c[c.length-3],null,c[c.length-2],null),p=h,m=o.displayDistance(c[c.length-3],null,e.mouse.map,"display");if(f&&m)(m*m-f*f-p*p)/(2*f*p)>Math.cos(s)&&c.pop()}c[c.length-1]=e.mouse.mapgcs,c.push(e.mouse.mapgcs),d=!0}return(l||0===l)&&e.event===i.actionup&&(!0===l||o.displayDistance(c[0],null,e.mouse.map,"display")<=a)?c.length<3+("polygon"===n?1:0)?"remove":(c.pop(),t.state(u.done),"done"):d}}}}},6979:function(t){t.exports="/* pointFeature sprite vertex shader */\n\n/* pointFeature common vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute float radius;\nattribute vec3 fillColor;\nattribute vec3 strokeColor;\nattribute float fillOpacity;\nattribute float strokeWidth;\nattribute float strokeOpacity;\nattribute float fill;\nattribute float stroke;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float radiusVar;\nvarying float strokeWidthVar;\n\nfloat pointFeaturePrep() {\n strokeWidthVar = strokeWidth;\n fillColorVar = vec4(fillColor, fillOpacity);\n strokeColorVar = vec4(strokeColor, strokeOpacity);\n // No stroke or fill implies nothing to draw\n if (stroke < 1.0 || strokeWidth <= 0.0 || strokeOpacity <= 0.0) {\n strokeColorVar.a = 0.0;\n strokeWidthVar = 0.0;\n }\n if (fill < 1.0 || radius <= 0.0 || fillOpacity <= 0.0)\n fillColorVar.a = 0.0;\n /* If the point has no visible pixels, skip doing computations on it. */\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0) {\n gl_Position = vec4(2, 2, 0, 1);\n return 0.0;\n }\n return radius;\n}\n\n\nvoid main(void)\n{\n radiusVar = pointFeaturePrep();\n if (radiusVar == 0.0) {\n return;\n }\n // for sprite\n gl_Position = (projectionMatrix * modelViewMatrix * vec4(pos, 1.0)).xyzw;\n gl_PointSize = 2.0 * (radius + strokeWidthVar);\n}\n"},6982:function(t,e,n){var i=function(){"use strict";var t=n(1098).createRenderer,e=n(6409),i=n(7945),r=n(9264),o=this,a=this._init,s=this.opacity,l=this.visible,u=this.zIndex;this.opacity=function(t){var e=s.apply(o,arguments);return void 0!==t&&o.initialized()&&o.map()._updateAutoshareRenderers(),e},this.visible=function(t){if(void 0===t)return l();var e=l(),n=l.apply(o,arguments);return e!==t&&o.initialized()&&(o.map().scheduleAnimationFrame(o._update,!0),o.renderer()._render()),n},this.zIndex=function(t,e){var n=u.apply(o,arguments);return void 0!==t&&o.initialized()&&(o.map().scheduleAnimationFrame(o._update,!0),o.renderer()._render(),o.map()._updateAutoshareRenderers()),n},this.switchRenderer=function(t,e){if(t instanceof i&&t!==o.renderer()){var n=o.renderer(),r=[],a=[];o.map().listSceneObjects([o]).forEach(function(t){t._cleanup&&(t._cleanup(),t._update&&a.push(t)),t.actors&&(r=r.concat(t.actors()))}),r.forEach(function(e){n.contextRenderer().removeActor(e),t.contextRenderer().addActor(e)}),o._renderer(t),o._canvas(t.canvas()),e&&(r.length||a.length)&&(n._render(),a.forEach(function(t){t._update()}),t._render())}return o},this._init=function(){var n=o.map();return n._updateAutoshareRenderers||(n._updateAutoshareRenderers=function(){var e,o,a,s=n.sortedLayers(),l=[];s.forEach(function(n){var s=n.autoshareRenderer(),u=n instanceof r;s&&n.renderer()&&n.renderer().api()===i.apiname?!e||n.opacity()!==o||"more"!==s&&(n.opacity()>0&&n.opacity()<1||u&&!a)?(n.node()[0].contains(n.renderer().canvas()[0])||(n.switchRenderer(t(i.apiname,n),!1),l.push(n.renderer())),e=n.renderer(),o=n.opacity(),a=u):(n.renderer()!==e&&(l.push(n.renderer()),n.switchRenderer(e,!1),l.push(n.renderer())),a&=u):e=null}),s.forEach(function(t){l.indexOf(t.renderer())>=0&&t._update&&t._update()}),s.forEach(function(t){l.indexOf(t.renderer())>=0&&(t.renderer()._renderFrame(),l=l.filter(function(e){return e!==t.renderer()}))}),l.forEach(function(t){t._exit()})},n.geoOn(e.layerAdd,function(){return n._updateAutoshareRenderers()}),n.geoOn(e.layerRemove,function(){return n._updateAutoshareRenderers()})),a.apply(o,arguments)}};(0,n(1098).registerLayerAdjustment)("webgl","all",i),t.exports=i},7e3:function(t,e,n){"use strict";n.d(e,{A1:function(){return s},DF:function(){return b},G9:function(){return o},H0:function(){return g},JM:function(){return _},Q1:function(){return p},Vj:function(){return x},Y$:function(){return r},_3:function(){return d},a8:function(){return i},bA:function(){return f},bv:function(){return l},dX:function(){return v},ej:function(){return m},gS:function(){return c},sK:function(){return h},xK:function(){return a},zp:function(){return u},zq:function(){return y}});var i=1,r=2,o=3,a=4,s=5,l=6378137,u=6356752.314,c=.0066943799901413165,d=484813681109536e-20,h=Math.PI/2,f=.16666666666666666,p=.04722222222222222,m=.022156084656084655,g=1e-10,y=.017453292519943295,v=57.29577951308232,x=Math.PI/4,_=2*Math.PI,b=3.14159265359},7015:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw;return this.draw=function(){return e.ready&&(e._update(),e.renderer()._render(),r()),e},this};t.exports=i},7046:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o)()(r());a.push([t.id,".color-legend-container{display:none;padding:10px;border:1.5px solid #000;border-radius:3px;transition:250ms background linear;background-color:rgba(255,255,255,0.75)}.color-legend-container:hover{background-color:#fff}.color-legend-container .geojs-color-legends .geojs-color-legend{margin-bottom:10px}.color-legend-container .geojs-color-legends .geojs-color-legend .geojs-title{text-align:center}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg{display:block}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x path.domain,.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x line{fill:none;stroke:#000;stroke-width:.7}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x text{font-size:12px}.color-legend-container .color-legend-popup{position:absolute;background:#fff;height:22px;font-size:14px;border:solid 1px #000;padding:0 5px;pointer-events:none;white-space:nowrap;z-index:100000;opacity:0}","",{version:3,sources:["webpack://./ui/colorLegendWidget.styl"],names:[],mappings:"AAAA,wBACE,YAAQ,CACR,YAAQ,CACR,uBAAO,CACP,iBAAc,CACd,kCAAW,CACX,uCAAiB,CAEjB,8BACE,qBAAiB,CAIjB,iEACE,kBAAc,CAEd,8EACE,iBAAW,CAEb,yEACE,aAAQ,CAGN,mLACE,SAAK,CACL,WAAO,CACP,eAAa,CACf,sFACE,cAAU,CAEpB,4CACE,iBAAS,CACT,eAAW,CACX,WAAO,CACP,cAAU,CACV,qBAAO,CACP,aAAQ,CACR,mBAAe,CACf,kBAAY,CACZ,cAAQ,CACR,SAAQ",sourcesContent:[".color-legend-container\n display none\n padding 10px\n border 1.5px solid black\n border-radius 3px\n transition 250ms background linear\n background-color rgba(255, 255, 255, 0.75)\n\n &:hover\n background-color rgba(255, 255, 255, 1)\n\n .geojs-color-legends\n\n .geojs-color-legend\n margin-bottom 10px\n\n .geojs-title\n text-align center\n\n svg.svg\n display block\n\n .axis.x\n path.domain, line\n fill none\n stroke black\n stroke-width 0.7\n text\n font-size 12px\n\n .color-legend-popup\n position absolute\n background white\n height 22px\n font-size 14px\n border solid 1px black\n padding 0 5px\n pointer-events none\n white-space nowrap\n z-index 100000\n opacity 0\n"],sourceRoot:""}]),e.A=a},7053:function(t){t.exports=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8])}},7068:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}},7072:function(t,e,n){"use strict";function i(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}n.d(e,{A:function(){return i}})},7091:function(t){t.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},7159:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)}},7205:function(t,e,n){var i=n(5616),r=n(698),o=n(4626);r.viewer=function(t,e){"use strict";if(!(this instanceof r.viewer))return new r.viewer(t,e);r.object.call(this);var n=t,o=r.renderer(e),a=r.renderWindow(n);return this.canvas=function(){return n},this.renderWindow=function(){return a},this.init=function(){null!==a?a._setup():console.log("[ERROR] No render window attached")},this.exit=function(t){null!==a?a._cleanup(t):console.log("[ERROR] No render window attached")},this.render=function(){a.render()},this.bindEventHandlers=function(){i(n).on("mousedown",this.handleMouseDown),i(n).on("mouseup",this.handleMouseUp),i(n).on("mousemove",this.handleMouseMove),i(n).on("mousewheel",this.handleMouseWheel),i(n).on("contextmenu",this.handleContextMenu)},this.unbindEventHandlers=function(){i(n).off("mousedown",this.handleMouseDown),i(n).off("mouseup",this.handleMouseUp),i(n).off("mousemove",this.handleMouseMove),i(n).off("mousewheel",this.handleMouseWheel),i(n).off("contextmenu",this.handleContextMenu)},this._init=function(){this.bindEventHandlers(),a.addRenderer(o)},this._init(),this},o(r.viewer,r.object)},7235:function(t){var e={};e.Util={stamp:function(t){return t._leaflet_id=t._leaflet_id||++e.Util.lastId,t._leaflet_id},lastId:0};var n=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}};n.prototype={addObject:function(t,n){var i=this._getCoord(n.x),r=this._getCoord(n.y),o=this._grid,a=o[r]=o[r]||{},s=a[i]=a[i]||[],l=e.Util.stamp(t);n.obj=t,this._objectPoint[l]=n,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,n){var i,r,o=this._getCoord(n.x),a=this._getCoord(n.y),s=this._grid,l=s[a]=s[a]||{},u=l[o]=l[o]||[];for(delete this._objectPoint[e.Util.stamp(t)],i=0,r=u.length;i<r;i++)if(u[i]===t)return u.splice(i,1),1===r&&delete l[o],!0},eachObject:function(t,e){var n,i,r,o,a,s,l=this._grid;for(n in l)for(i in a=l[n])for(r=0,o=(s=a[i]).length;r<o;r++)t.call(e,s[r])&&(r--,o--)},getNearObject:function(t){var n,i,r,o,a,s,l,u,c=this._getCoord(t.x),d=this._getCoord(t.y),h=this._objectPoint,f=this._sqCellSize,p=null;for(n=d-1;n<=d+1;n++)if(o=this._grid[n])for(i=c-1;i<=c+1;i++)if(a=o[i])for(r=0,s=a.length;r<s;r++)l=a[r],(u=this._sqDist(h[e.Util.stamp(l)],t))<f&&(f=u,p=l);return p},contents:function(){return Object.values(this._objectPoint)},_getCoord:function(t){return Math.floor(t/this._cellSize)},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}},t.exports=n},7272:function(t,e,n){"use strict";n.d(e,{Cx:function(){return u}});var i=n(9402),r=n(2308),o=[i.default,r.default],a={},s=[];function l(t,e){var n=s.length;return t.names?(s[n]=t,t.names.forEach(function(t){a[t.toLowerCase()]=n}),this):(console.log(e),!0)}function u(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}e.Ay={start:function(){o.forEach(l)},add:l,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==a[e]&&s[a[e]]||(e=u(e))in a&&s[a[e]]?s[a[e]]:void 0}}},7327:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.primitive=function(){"use strict";if(!(this instanceof i.primitive))return new i.primitive;var t=0,e=0,n=null;return this.indices=function(){return n},this.numberOfIndices=function(){return n.length},this.primitiveType=function(){return t},this.setPrimitiveType=function(e){t=e},this.indicesValueType=function(){return e},this.setIndicesValueType=function(t){e=t},this.setIndices=function(t){n=new Uint16Array(t)},this},i.triangles=function(){"use strict";return this instanceof i.triangles?(i.primitive.call(this),this.setPrimitiveType(i.GL.TRIANGLES),this.setIndicesValueType(i.GL.UNSIGNED_SHORT),this):new i.triangles},r(i.triangles,i.primitive),i.points=function(){"use strict";return this instanceof i.points?(i.primitive.call(this),this.setPrimitiveType(i.GL.POINTS),this.setIndicesValueType(i.GL.UNSIGNED_SHORT),this):new i.points},r(i.points,i.primitive),i.sourceData=function(t){"use strict";if(!(this instanceof i.sourceData))return new i.sourceData(t);var e={},n=[],r=(t=t||{}).name||"Source "+(new Date).toISOString(),o=function(){this.m_numberOfComponents=0,this.m_dataType=0,this.m_dataTypeSize=0,this.m_normalized=!1,this.m_stride=0,this.m_offset=0};return this.data=function(){return n},this.getData=function(){return this.data()},this.dataToFloat32Array=function(){return n instanceof Float32Array||(n=new Float32Array(n)),n},this.setData=function(t){t instanceof Array||t instanceof Float32Array?n=t instanceof Float32Array?t:t.slice(0):console.log("[error] Requires array")},this.addAttribute=function(t,n,i,r,a,s,l){if(!e.hasOwnProperty(t)){var u=new o;u.m_dataType=n,u.m_dataTypeSize=i,u.m_offset=r,u.m_stride=a,u.m_numberOfComponents=s,u.m_normalized=l,e[t]=u}},this.hasKey=function(t){return e.hasOwnProperty(t)},this.keys=function(){return Object.keys(e)},this.attributeNumberOfComponents=function(t){return e.hasOwnProperty(t)?e[t].m_numberOfComponents:0},this.normalized=function(t){return!!e.hasOwnProperty(t)&&e[t].m_normalized},this.attributeDataType=function(t){if(e.hasOwnProperty(t))return e[t].m_dataType},this.attributeOffset=function(t){return e.hasOwnProperty(t)?e[t].m_offset:0},this.attributeStride=function(t){return e.hasOwnProperty(t)?e[t].m_stride:0},this.pushBack=function(t){},this.insert=function(t){var e;if(!n.length&&t.length&&t instanceof Float32Array)n=t;else if(n.slice||!n.length&&t.slice||(n=Array.prototype.slice.call(n)),t.length)if(!n.length&&t.slice)n=t.slice(0);else for(e=0;e<t.length;e+=1)n[n.length]=t[e];else n[n.length]=t},this.name=function(){return r},this},i.sourceDataAnyfv=function(t,e,n){"use strict";return this instanceof i.sourceDataAnyfv?(i.sourceData.call(this,n),this.addAttribute(e,i.GL.FLOAT,4,0,4*t,t,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataAnyfv(t,e,n)},r(i.sourceDataAnyfv,i.sourceData),i.sourceDataP3fv=function(t){"use strict";return this instanceof i.sourceDataP3fv?(i.sourceData.call(this,t),this.addAttribute(i.vertexAttributeKeys.Position,i.GL.FLOAT,4,0,12,3,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataP3fv(t)},r(i.sourceDataP3fv,i.sourceData),i.sourceDataT2fv=function(t){"use strict";return this instanceof i.sourceDataT2fv?(i.sourceData.call(this,t),this.addAttribute(i.vertexAttributeKeys.TextureCoordinate,i.GL.FLOAT,4,0,8,2,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataT2fv(t)},r(i.sourceDataT2fv,i.sourceData),i.geometryData=function(){"use strict";if(!(this instanceof i.geometryData))return new i.geometryData;i.data.call(this);var t=[],e=[],n=[0,0,0,0,0,0],r=o(),a=o();return this.type=function(){return i.data.geometry},this.name=function(){return""},this.addSource=function(t){return-1===e.indexOf(t)&&(e.push(t),t.hasKey(i.vertexAttributeKeys.Position)&&a.modified(),!0)},this.source=function(t){return t<e.length?e[t]:0},this.sourceByName=function(t){for(var n=0;n<e.length;n+=1)if(e[n].name()===t)return e[n];return 0},this.numberOfSources=function(){return e.length},this.sourceData=function(t){var n;for(n=0;n<e.length;n+=1)if(e[n].hasKey(t))return e[n];return null},this.addPrimitive=function(e){return t.push(e),!0},this.primitive=function(e){return e<t.length?t[e]:null},this.numberOfPrimitives=function(){return t.length},this.bounds=function(){return a.getMTime()>r.getMTime()&&this.computeBounds(),n},this.boundsDirty=function(t){return t&&a.modified(),a.getMTime()>r.getMTime()},this.setBounds=function(t,e,i,o,a,s){return n[0]=t,n[1]=e,n[2]=i,n[3]=o,n[4]=a,n[5]=s,r.modified(),!0},this},r(i.geometryData,i.data)},7376:function(t){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t.exports=function(){var t,n=[];for(n.length=8,t=0;t<8;t+=1)n[t]=e.charAt(Math.floor(61*Math.random()));return n.join("")}},7484:function(t){t.exports=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}},7541:function(t,e,n){function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=n(4626),s=n(1275),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},s.call(this,t);var e=n(77),o=n(5966),a=n(6409),u=n(642),c=n(4279);c=c.__esModule?c.default:c;var d=this,h=this._init,f=null,p=e(),m=this.data,g=0,y=t.clustering,v=null,x=[],_=null,b=!1;return this.featureType="point",this.clustering=function(t){return void 0===t?y:(y&&!t?(v=null,y=!1,m(x)):t&&y!==t&&(y=t,d._clusterData()),d)},this._clusterData=function(){if(y){var t=!0===y?{radius:10}:y;!t.maxZoom&&this.layer()&&this.layer().map()&&((t=Object.assign({},t)).maxZoom=this.layer().map().zoomRange().max);var e=d.position(),n=d.layer().map(),i=n.gcsToDisplay(n.center(void 0,null),null),r=n.displayToGcs(i,d.gcs()),a=n.displayToGcs({x:i.x+t.radius,y:i.y},d.gcs()),s=Math.pow(Math.pow(a.y-r.y,2)+Math.pow(a.x-r.x,2),.5),l=n.zoom(),c=s*Math.pow(2,l);t=Object.assign({},t,{radius:c}),v=new o(t),x.forEach(function(t,n){var i=u.normalizeCoordinates(e(t,n));i.index=n,v.addPoint(i)}),_=null,d._handleZoom(n.zoom())}},this._handleZoom=function(t){var e=Math.floor(t);if(y&&e!==_){_=e;for(var n=v.points(e),i=v.clusters(e),r=new Array(n.length+i.length),o=0;o<n.length;o+=1)r[o]=x[n[o].index];for(var a=0,s=n.length;a<i.length;a+=1,s+=1){var l=i[a];l.__cluster=!0,r[s]=l}b=!0,d.data(r)}},this.position=function(t){if(void 0===t)return d.style("position");var e=u.isFunction(t);return d.style("position",function(n,i){return null!=n&&n.__cluster?n:e?t(n,i):t}),d.dataTime().modified(),d.modified(),d},this._updateRangeTree=function(){if(!(p.timestamp()>=d.dataTime().timestamp()&&p.timestamp()>=d.timestamp())){var t,e,n=d.style.get("radius"),o=d.style.get("stroke"),a=d.style.get("strokeWidth");e=d.position(),g=0,t=d.data().map(function(t,i){var r=e(t,i);return g=Math.max(g,n(t,i)+(o(t,i)?a(t,i):0)),[r.x,r.y]}),f=new c(t.length);var s,l=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(t);try{for(l.s();!(s=l.n()).done;){var u=i(s.value,2),h=u[0],m=u[1];f.add(h,m)}}catch(t){l.e(t)}finally{l.f()}f.finish(),p.modified()}},this.pointSearch=function(t,e){var n,i,r,o,a,s,l=[],u=[],c=[],h=d.gcs(),p=d.style.get("fill"),m=d.style.get("stroke"),y=d.style.get("strokeWidth"),v=d.style.get("radius");return(r=d.data())&&r.length?(d._updateRangeTree(),o=d.layer().map(),a=o.gcsToDisplay(t,e),s=[o.displayToGcs({x:a.x-g,y:a.y-g},h),o.displayToGcs({x:a.x+g,y:a.y-g},h),o.displayToGcs({x:a.x-g,y:a.y+g},h),o.displayToGcs({x:a.x+g,y:a.y+g},h)],n={x:Math.min(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.min(s[0].y,s[1].y,s[2].y,s[3].y)},i={x:Math.max(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.max(s[0].y,s[1].y,s[2].y,s[3].y)},l=f.range(n.x,n.y,i.x,i.y),(l=Uint32Array.from(l).sort()).forEach(function(t){var e=r[t],n=m(r[t],t);if(n||p(r[t],t)){var i,s,l,f,g=d.position()(e,t);l=v(r[t],t),(l+=n?y(r[t],t):0)&&(f=l*l,(i=(g=o.gcsToDisplay(g,h)).x-a.x)*i+(s=g.y-a.y)*s<=f&&(u.push(e),c.push(t)))}}),{found:u,index:c}):{found:[],index:[]}},this.polygonSearch=function(t,e,n){var i,r,o,a,s=d.gcs(),l=[],c=[],h={},p=d.layer().map(),m=d.data(),y=d.style.get("fill"),v=d.style.get("stroke"),x=d.style.get("strokeWidth"),_=d.style.get("radius");return t.outer||(t={outer:t,inner:[]}),t.outer.length<3||!m||!m.length?{found:[],index:[],extra:{}}:((e=e||{}).partial=e.partial||!1,(t={outer:p.gcsToDisplay(t.outer,n),inner:(t.inner||[]).map(function(t){return p.gcsToDisplay(t,n)})}).outer.forEach(function(t){r||(r={x:t.x,y:t.y},o={x:t.x,y:t.y}),t.x<r.x&&(r.x=t.x),t.x>o.x&&(o.x=t.x),t.y<r.y&&(r.y=t.y),t.y>o.y&&(o.y=t.y)}),d._updateRangeTree(),a=[p.displayToGcs({x:r.x-g,y:r.y-g},s),p.displayToGcs({x:o.x+g,y:r.y-g},s),p.displayToGcs({x:o.x+g,y:o.y+g},s),p.displayToGcs({x:r.x-g,y:o.y+g},s)],r={x:Math.min(a[0].x,a[1].x,a[2].x,a[3].x),y:Math.min(a[0].y,a[1].y,a[2].y,a[3].y)},o={x:Math.max(a[0].x,a[1].x,a[2].x,a[3].x),y:Math.max(a[0].y,a[1].y,a[2].y,a[3].y)},i=f.range(r.x,r.y,o.x,o.y),(i=Uint32Array.from(i).sort()).forEach(function(n){var i=m[n],r=v(m[n],n);if(r||y(m[n],n)){var o=d.position()(i,n),a=_(m[n],n);if(a+=r?x(m[n],n):0){o=p.gcsToDisplay(o,s);var f=u.distanceToPolygon2d(o,t);(f>=a||f>=0&&"center"===e.partial||f>=-a&&e.partial&&"center"!==e.partial)&&(l.push(i),c.push(n),h[n]={partial:f<a,distance:f})}}}),{found:l,index:c,extra:h})},this.data=function(t){return void 0===t?m():(b||(x=t),y&&!b?d._clusterData():m(t),b=!1,d)},this._init=function(t){t=t||{},h.call(d,t);var e=u.deepMerge({},{radius:5,stroke:!0,strokeColor:{r:.851,g:.604,b:0},strokeWidth:1.25,strokeOpacity:1,fillColor:{r:1,g:.839,b:.439},fill:!0,fillOpacity:.8,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){return t.length>=3?t.slice(0,3):[0,0,0]}},void 0===t.style?{}:t.style);return void 0!==t.position&&(e.position=t.position),d.style(e),e.position&&d.position(e.position),d.dataTime().modified(),d.geoOn(a.zoom,function(t){d._handleZoom(t.zoomLevel)}),d},d};l.create=function(t,e){"use strict";return(e=e||{}).type="point",s.create(t,e)},l.capabilities={feature:"point",stroke:"point.stroke"},l.primitiveShapes={auto:"auto",sprite:"sprite",triangle:"triangle",square:"square"},a(l,s),t.exports=l},7549:function(t,e,n){var i;!function(r,o){if(r){for(var a,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},c={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();x.prototype.bind=function(t,e,n){var i=this;return t=t instanceof Array?t:[t],i._bindMultiple.call(i,t,e,n),i},x.prototype.unbind=function(t,e){return this.bind.call(this,t,function(){},e)},x.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},x.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},x.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(v(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},x.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},x.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(s[e]=t[e]);a=null},x.init=function(){var t=x(o);for(var e in t)"_"!==e.charAt(0)&&(x[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},x.init(),r.Mousetrap=x,t.exports&&(t.exports=x),void 0===(i=function(){return x}.call(e,n,e,t))||(t.exports=i)}function h(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function f(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return s[t.which]?s[t.which]:l[t.which]?l[t.which]:String.fromCharCode(t.which).toLowerCase()}function p(t,e){return t.sort().join(",")===e.sort().join(",")}function m(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function g(t,e,n){return n||(n=function(){if(!a)for(var t in a={},s)t>95&&t<112||s.hasOwnProperty(t)&&(a[s[t]]=t);return a}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function y(t,e){var n,i,r,o=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),r=0;r<n.length;++r)i=n[r],c[i]&&(i=c[i]),e&&"keypress"!=e&&u[i]&&(i=u[i],o.push("shift")),m(i)&&o.push(i);return{key:i,modifiers:o,action:e=g(i,o,e)}}function v(t,e){return null!==t&&t!==o&&(t===e||v(t.parentNode,e))}function x(t){var e=this;if(t=t||o,!(e instanceof x))return new x(t);e.target=t,e._callbacks={},e._directMap={};var n,i={},r=!1,a=!1,s=!1;function l(t){t=t||{};var e,n=!1;for(e in i)t[e]?n=!0:i[e]=0;n||(s=!1)}function u(t,n,r,o,a,s){var l,u,c=[],d=r.type;if(!e._callbacks[t])return[];for("keyup"==d&&m(t)&&(n=[t]),l=0;l<e._callbacks[t].length;++l)if(u=e._callbacks[t][l],(o||!u.seq||i[u.seq]==u.level)&&d==u.action&&("keypress"==d&&!r.metaKey&&!r.ctrlKey||p(n,u.modifiers))){var h=!o&&u.combo==a,f=o&&u.seq==o&&u.level==s;(h||f)&&e._callbacks[t].splice(l,1),c.push(u)}return c}function c(t,n,i,r){e.stopCallback(n,n.target||n.srcElement,i,r)||!1===t(n,i)&&(function(t){t.preventDefault?t.preventDefault():t.returnValue=!1}(n),function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}(n))}function d(t){"number"!=typeof t.which&&(t.which=t.keyCode);var n=f(t);n&&("keyup"!=t.type||r!==n?e.handleKey(n,function(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}(t),t):r=!1)}function g(t,e,o,a){function u(e){return function(){s=e,++i[t],clearTimeout(n),n=setTimeout(l,1e3)}}function d(e){c(o,e,t),"keyup"!==a&&(r=f(e)),setTimeout(l,10)}i[t]=0;for(var h=0;h<e.length;++h){var p=h+1===e.length?d:u(a||y(e[h+1]).action);v(e[h],p,a,t,h)}}function v(t,n,i,r,o){e._directMap[t+":"+i]=n;var a,s=(t=t.replace(/\s+/g," ")).split(" ");s.length>1?g(t,s,n,i):(a=y(t,i),e._callbacks[a.key]=e._callbacks[a.key]||[],u(a.key,a.modifiers,{type:a.action},r,t,o),e._callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:t}))}e._handleKey=function(t,e,n){var i,r=u(t,e,n),o={},d=0,h=!1;for(i=0;i<r.length;++i)r[i].seq&&(d=Math.max(d,r[i].level));for(i=0;i<r.length;++i)if(r[i].seq){if(r[i].level!=d)continue;h=!0,o[r[i].seq]=1,c(r[i].callback,n,r[i].combo,r[i].seq)}else h||c(r[i].callback,n,r[i].combo);var f="keypress"==n.type&&a;n.type!=s||m(t)||f||l(o),a=h&&"keydown"==n.type},e._bindMultiple=function(t,e,n){for(var i=0;i<t.length;++i)v(t[i],e,n)},h(t,"keypress",d),h(t,"keydown",d),h(t,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},7605:function(t,e,n){"use strict";n.r(e);var i=n(5292),r=n.n(i),o=n(9893),a=n.n(o),s=n(9383),l=n.n(s),u=n(6884),c=n.n(u),d=n(9088),h=n.n(d),f=n(7997),p=n.n(f),m=n(632),g={};g.styleTagTransform=p(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=h();r()(m.A,g);e.default=m.A&&m.A.locals?m.A.locals:void 0},7606:function(e){"use strict";if(void 0===t){var n=new Error("Cannot find module 'hammerjs'");throw n.code="MODULE_NOT_FOUND",n}e.exports=t},7616:function(t,e,n){var i=n(698),r=n(4626);i.groupNode=function(){"use strict";if(!(this instanceof i.groupNode))return new i.groupNode;i.node.call(this);var t=[];return this.addChild=function(e){return e instanceof i.node&&(-1===t.indexOf(e)&&(e.setParent(this),t.push(e),this.boundsDirtyTimestamp().modified(),!0))},this.removeChild=function(e){if(e.parent()===this){var n=t.indexOf(e);if(n>=0)return t.splice(n,1),e.setParent(null),this.boundsDirtyTimestamp().modified(),!0}return!1},this.removeChildren=function(){for(;t.length;)this.removeChild(t[0]);this.modified()},this.children=function(){return t},this.hasChild=function(e){var n=0,i=!1;for(n=0;n<t.length;n+=1)if(t[n]===e){i=!0;break}return i},this},r(i.groupNode,i.node)},7665:function(t){t.exports="/* markerFeature sprite vertex shader */\n\n/* markerFeature common vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute float radius;\nattribute vec3 fillColor;\nattribute float fillOpacity;\nattribute vec3 strokeColor;\nattribute float strokeOpacity;\nattribute float strokeWidth;\nattribute float symbol; /* contains some bit fields */\nattribute float symbolValue;\nattribute float rotation;\nuniform float zoom;\nuniform float rotationUniform;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\n// non-sprite has other definitions.\nvarying float radiusVar;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float strokeWidthVar;\nvarying float symbolVar; /* contains some bit fields */\nvarying float symbolValueVar;\nvarying float rotationVar;\n\nfloat markerFeaturePrep(void)\n{\n // No stroke or fill implies nothing to draw\n if (radius <= 0.0 || (strokeOpacity <= 0.0 && fillOpacity <= 0.0)) {\n gl_Position = vec4(2.0, 2.0, 0.0, 1.0);\n return 0.0;\n }\n radiusVar = radius;\n strokeWidthVar = strokeWidth;\n int scaleMode = int(mod(symbol, 4.0));\n float strokeOffset = mod(floor(symbol / 16.0), 4.0) - 1.0;\n radiusVar += (strokeOffset + 1.0) / 2.0 * strokeWidthVar;\n if (scaleMode == 1) { // fill\n radiusVar = (radiusVar - strokeWidthVar) * exp2(zoom) + strokeWidthVar;\n } else if (scaleMode == 2) { // stroke\n radiusVar += strokeWidthVar * (exp2(zoom) - 1.0);\n strokeWidthVar *= exp2(zoom);\n } else if (scaleMode == 3) { // all\n radiusVar *= exp2(zoom);\n strokeWidthVar *= exp2(zoom);\n }\n fillColorVar = vec4(fillColor, fillOpacity);\n strokeColorVar = vec4(strokeColor, strokeOpacity);\n symbolVar = symbol;\n symbolValueVar = symbolValue;\n rotationVar = rotation;\n if (bool(mod(floor(symbolVar / 4.0), 2.0))) {\n rotationVar += rotationUniform;\n }\n return radiusVar;\n}\n\n\nvoid main(void)\n{\n radiusVar = markerFeaturePrep();\n if (radiusVar == 0.0) {\n return;\n }\n // for sprite\n gl_Position = (projectionMatrix * modelViewMatrix * vec4(pos, 1.0)).xyzw;\n gl_PointSize = 2.0 * radiusVar;\n}\n"},7682:function(t){t.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},7695:function(t,e,n){var i=n(698);i.data=function(){"use strict";if(!(this instanceof i.data))return new i.data;this.type=function(){}},i.data.raster=0,i.data.point=1,i.data.lineString=2,i.data.polygon=3,i.data.geometry=10},7705:function(t){t.exports=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}},7715:function(t,e,n){"use strict";n.r(e),e.default={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7724:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return p},init:function(){return f},inverse:function(){return m},names:function(){return g}});var i=n(1341),r=n(7954),o=n(3611),a=n(4280),s=n(7072),l=n(1417),u=n(6269),c=n(6165),d=n(364),h=n(7e3);function f(){Math.abs(this.lat1+this.lat2)<h.H0||(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=(0,i.A)(this.es),this.e1=(0,r.A)(this.es),this.e2=(0,o.A)(this.es),this.e3=(0,a.A)(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=(0,s.A)(this.e,this.sin_phi,this.cos_phi),this.ml1=(0,l.A)(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<h.H0?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=(0,s.A)(this.e,this.sin_phi,this.cos_phi),this.ml2=(0,l.A)(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=(0,l.A)(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function p(t){var e,n=t.x,i=t.y;if(this.sphere)e=this.a*(this.g-i);else{var r=(0,l.A)(this.e0,this.e1,this.e2,this.e3,i);e=this.a*(this.g-r)}var o=this.ns*(0,u.A)(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}function m(t){var e,n,i,r;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;if(0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return r=(0,u.A)(this.long0+o/this.ns),i=(0,c.A)(this.g-n/this.a),t.x=r,t.y=i,t;var a=this.g-n/this.a;return i=(0,d.A)(a,this.e0,this.e1,this.e2,this.e3),r=(0,u.A)(this.long0+o/this.ns),t.x=r,t.y=i,t}var g=["Equidistant_Conic","eqdc"];e.default={init:f,forward:p,inverse:m,names:g}},7733:function(t){t.exports=function(t,e,n,i){var r=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),u=2/(r+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(r-o)*u*.5,t[10]=i/(n-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*n/(n-i),t[15]=0,t}},7759:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7761),a=n(411),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);o.call(this,t),n(4084).call(this);var e,i,r,u=n(1611),c=n(3925),d=this._exit,h=this;return this.pointSearch=function(t,n){if(e&&h.m_info)for(var i=e.pointSearch(t,n),r=i.index.length-1;r>=0;r-=1)if(i.extra[i.index[r]]._quad&&i.extra[i.index[r]]._quad.image){var o=i.extra[i.index[r]]._quad.image,a=i.extra[i.index[r]].basis,s=Math.floor(a.x*o.width),l=Math.floor(a.y*o.height),u=document.createElement("canvas");u.width=u.height=1;var c=u.getContext("2d");c.drawImage(o,s,l,1,1,0,0,1,1);var d=c.getImageData(0,0,1,1).data,f=d[0]+256*d[1]+256*d[2]*256;return i={index:[f],found:[h.data()[f]]}}return{index:[],found:[]}},this._computePixelmap=function(){var t=h.data()||[],n=h.style.get("color"),o=h.indexModified(void 0,"clear"),l=h.dataTime().timestamp()>=h.buildTime().timestamp()||void 0===o;r||((r=a()).setTextureUnit(1),l=!0);var d,f=Math.max(1,t.length),p=r.maxWidth();f>p&&f%p&&(f+=p-f%p),l||(l=(d=r.colorTable()).length!==4*f,o[0]=Math.max(0,o[0]),o[1]=Math.min(t.length,o[1]+1)),l&&(d=new Uint8Array(4*f),o=[0,t.length]);for(var m=o[0];m<o[1];m+=1){var g=t[m],y=s.convertColor(n.call(h,g,m));d[4*m]=255*y.r,d[4*m+1]=255*y.g,d[4*m+2]=255*y.b,d[4*m+3]=void 0===y.a?255:255*y.a}h.m_info={colors:d};var v=r.colorTable();if(v&&v.length===d.length){for(var x=4*o[0];x<4*o[1]&&d[x]===v[x];x+=1);if(x===4*o[1])return}r.colorTable(d),e||(e=h.layer().createFeature("quad",{selectionAPI:!1,gcs:h.gcs(),visible:h.visible(void 0,!0),nearestPixel:!0}),i=!1),i||(h.dependentFeatures([e]),e.setShader("image_fragment",c),e._hookBuild=function(t){var e=new u.uniform(u.GL.INT,"lutSampler");e.set(r.textureUnit()),t.addUniform(e);var n=new u.uniform(u.GL.INT,"lutWidth");n.set(r.width),t.addUniform(n);var i=new u.uniform(u.GL.INT,"lutHeight");i.set(r.height),t.addUniform(i)},e._hookRenderImageQuads=function(t,e){r.bind(t,e)},!1===i&&e.style({image:h.m_srcImage,position:h.style.get("position")}).data([{}]).draw(),i=!0)},this._exit=function(){return e&&h.layer()&&(h.layer().deleteFeature(e),e=null,h.dependentFeatures([])),d(),h},t.quadFeature&&(e=t.quadFeature).nearestPixel&&e.nearestPixel(!0),this._init(t),this};i(l,o);var u={};u[o.capabilities.lookup]=!0,r("webgl","pixelmap",l,u),t.exports=l},7761:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},o.call(this,t);var e,n=this,r=this._update,l=this._init;return this.featureType="pixelmap",this.position=function(t){return void 0===t?n.style("position"):(t!==n.style("position")&&(n.style("position",t),n.dataTime().modified(),n.modified()),n)},this.url=function(t){return void 0===t?n.style("url"):(t!==n.style("url")&&(n.m_srcImage=n.m_info=void 0,n.style("url",t),n.dataTime().modified(),n.modified()),n)},this.color=function(t){return void 0===t?n.style("color"):(t!==n.style("color")&&(n.style("color",t),n.dataTime().modified(),n.modified()),n)},this.indexModified=function(t,i){if(void 0===t){var r=e;return"clear"===i&&(e=void 0),r}return n.modified(),void 0===e&&(e=[t,t]),t<e[0]&&(e[0]=t),(i||t)>e[1]&&(e[1]=i||t),n},this._update=function(){return r.call(n),(n.buildTime().timestamp()<=n.dataTime().timestamp()||n.updateTime().timestamp()<n.timestamp())&&n._build(),n.updateTime().modified(),n},this.maxIndex=function(){if(n.m_info){if(void 0===n.m_info.maxIndex)for(var t in n.m_info.maxIndex=0,n.m_info.mappedColors)n.m_info.mappedColors.hasOwnProperty(t)&&(n.m_info.maxIndex=Math.max(n.m_info.maxIndex,t));return n.m_info.maxIndex}},this._computePixelmap=function(){},this._build=function(){if(n.m_srcImage)n.m_info&&n._computePixelmap();else{var t=n.style.get("url")();if(a.isReadyImage(t))n.m_srcImage=t,n._computePixelmap();else if(t){var e,r,o=i.Deferred();t instanceof Image?(n.m_srcImage=t,e=t.onload,r=t.onerror):(n.m_srcImage=new Image,t.indexOf(":")>=0&&t.indexOf("/")===t.indexOf(":")+1&&(n.m_srcImage.crossOrigin=n.style.get("crossDomain")()||"anonymous")),n.m_srcImage.onload=function(){e&&e.apply(n,arguments),n.style.get("url")()===t&&(n.m_info=void 0,n._computePixelmap()),o.resolve()},n.m_srcImage.onerror=function(){r&&r.apply(n,arguments),o.reject()},o.promise(n),n.layer().addPromise(n),t instanceof Image||(n.m_srcImage.src=t)}}return n.buildTime().modified(),n},this._init=function(t){t=t||{},l.call(n,t);var e=Object.assign({},{color:function(t,e){return{r:(255&e)/255,g:(e>>8&255)/255,b:(e>>16&255)/255,a:1}},position:a.identityFunction},void 0===t.style?{}:t.style);return void 0!==t.position&&(e.position=t.position),void 0!==t.url&&(e.url=t.url),void 0!==t.color&&(e.color=t.color),n.style(e),n.dataTime().modified(),t.quadFeature&&(n.m_srcImage=!0,n._computePixelmap()),n},this};s.create=function(t,e){"use strict";return(e=e||{}).type="pixelmap",o.create(t,e)},s.capabilities={feature:"pixelmap",lookup:"pixelmap.lookup"},r(s,o),t.exports=s},7854:function(t,e,n){var i=n(8738),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=n(2493),r=this,o=this._exit,s=null;return this._init=function(){var e;return t.hasOwnProperty("parent")&&(t.parent.addChild(r),e=t.parent.canvas()),r._createCanvas(e),r.canvas().addEventListener("mousedown",function(t){t.stopPropagation()}),r.reposition(),r},this._exit=function(){s&&s._exit(),o()},this._createCanvas=function(t){var n={layer:r.layer(),widget:!0};t&&(n.d3Parent=t),(s=e(n))._resize=function(){},r.canvas(s.canvas().node())},this};r(a,i),o("dom","svg",a),t.exports=a},7897:function(t,e,n){"use strict";function i(t){var e=Math.exp(t);return e=(e-1/e)/2}n.d(e,{A:function(){return i}})},7908:function(t,e,n){var i=n(4626),r=n(1338),o=n(642),a=n(7549),s=function(t){"use strict";if(!(this instanceof s))return new s(t);r.call(this);var e,i,l,u,c,d,h,f,p,m,g=n(5616),y=n(6409),v=n(8695),x=n(642).throttle,_=n(642).debounce,b=n(642).actionMatch,w=n(3842),M=this,A=0,E=null,T=!1,S=!1,C=function(){};function k(t){var e=t.x,n=t.y;return Math.sqrt(e*e+n*n)}function P(){d={boundDocumentHandlers:d.boundDocumentHandlers}}function O(t,n){n=n<=0?30:n;var i=function(){var t,n,i,r;if(!e.spring.enabled)return{x:0,y:0};var o=M.map().maxBounds(void 0,null),a=M.map().gcsToDisplay({x:o.left,y:o.top},null),s=M.map().gcsToDisplay({x:o.right,y:o.bottom},null),l=e.spring.springConstant,u=M.map().node().width(),c=M.map().node().height();return t=l*Math.max(0,a.x),n=l*Math.max(0,u-s.x),i=l*Math.max(0,a.y)/2,r=l*Math.max(0,c-s.y)/2,{x:t-n,y:i-r}}(),r=k(t),o=t.x/r,a=t.y/r;return r*=Math.exp(-e.momentum.drag*n),k(i)*n+r<e.momentum.minSpeed?null:(r>0?(o*=r,a*=r):(o=0,a=0),{x:o-i.x*n,y:a-i.y*n})}return e=o.deepMerge({},{throttle:30,discreteZoom:!1,actions:[{action:v.pan,input:"left",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button pan"},{action:v.zoom,input:"right",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button zoom"},{action:v.zoom,input:"wheel",modifiers:{shift:!1},owner:"geo.mapInteractor",name:"wheel zoom"},{action:v.rotate,input:"left",modifiers:{shift:!1,ctrl:!0},owner:"geo.mapInteractor",name:"button rotate"},{action:v.rotate,input:"wheel",modifiers:{shift:!0,ctrl:!1},owner:"geo.mapInteractor",name:"wheel rotate"},{action:v.select,input:"left",modifiers:{shift:!0,ctrl:!0},selectionRectangle:y.select,owner:"geo.mapInteractor",name:"drag select"},{action:v.zoomselect,input:"left",modifiers:{shift:!0,ctrl:!1},selectionRectangle:y.zoomselect,owner:"geo.mapInteractor",name:"drag zoom"},{action:v.unzoomselect,input:"right",modifiers:{shift:!0,ctrl:!1},selectionRectangle:y.unzoomselect,owner:"geo.mapInteractor",name:"drag unzoom"},{action:v.pan,input:"pan",owner:"geo.mapInteractor",name:"touch pan"},{action:v.zoomrotate,input:"rotate",owner:"geo.mapInteractor",name:"touch zoom and rotate"},{action:v.pan,input:"middle",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button pan"}],click:{enabled:!0,buttons:{left:!0,right:!0,middle:!0},duration:0,cancelOnMove:!0},keyboard:{actions:{"zoom.in":["plus","shift+plus","shift+ctrl+plus","=","shift+=","shift+ctrl+="],"zoom.out":["-","shift+-","shift+ctrl+-","_","shift+_","shift+ctrl+_"],"zoom.0":["1"],"zoom.3":["2"],"zoom.6":["3"],"zoom.9":["4"],"zoom.12":["5"],"zoom.15":["6"],"zoom.18":["7"],"pan.left":["left","shift+left","shift+ctrl+left"],"pan.right":["right","shift+right","shift+ctrl+right"],"pan.up":["up","shift+up","shift+ctrl+up"],"pan.down":["down","shift+down","shift+ctrl+down"],"rotate.ccw":["<","shift+<","shift+ctrl+<",".","shift+.","shift+ctrl+."],"rotate.cw":[">","shift+>","shift+ctrl+>",",","shift+,","shift+ctrl+,"],"rotate.0":["0"]},meta:{0:{shift:!1,ctrl:!1},1:{shift:!0,ctrl:!0},2:{shift:!0,ctrl:!1}},metakeyMouseEvents:["shift","ctrl","shift+ctrl","shift+alt","shift+meta"],focusHighlight:!0},alwaysTouch:!1,wheelScaleX:1,wheelScaleY:1,zoomScale:1,rotateWheelScale:6*Math.PI/180,zoomrotateMinimumRotation:5*Math.PI/180,zoomrotateReverseRotation:4*Math.PI/180,zoomrotateMinimumZoom:.05,zoomrotateMinimumPan:5,touchPanDelay:50,momentum:{enabled:!0,maxSpeed:2.5,minSpeed:.01,stopTime:250,drag:.01,actions:[v.pan,v.zoom]},spring:{enabled:!1,springConstant:5e-5},zoomAnimation:{enabled:!0,duration:500,ease:function(t){return(2-t)*t}}},t||{}),t&&t.actions&&(e.actions=o.deepMerge([],t.actions)),t&&t.momentum&&t.momentum.actions&&(e.momentum.actions=o.deepMerge([],t.momentum.actions)),t&&t.keyboard&&void 0!==t.keyboard.actions&&(e.keyboard.actions=o.deepMerge({},t.keyboard.actions)),i={page:{x:0,y:0},map:{x:0,y:0},geo:{x:0,y:0},mapgcs:{x:0,y:0},buttons:{left:!1,right:!1,middle:!1},modifiers:{alt:!1,ctrl:!1,shift:!1,meta:!1},time:new Date,deltaTime:1,velocity:{x:0,y:0}},d={},h={},this._handleKeys=function(t,n,i){i&&!0===i.simulated&&(n=i);var r,o,a=e.keyboard.meta||{0:{}},s=M.map(),l=s.size(),u=t,c="",d={};for(r in a)a.hasOwnProperty(r)&&(void 0!==a[r].shift&&n.shiftKey!==!!a[r].shift||void 0!==a[r].ctrl&&n.ctrlKey!==!!a[r].ctrl||void 0!==a[r].alt&&n.altKey!==!!a[r].alt||void 0!==a[r].meta&&n.metaKey!==!!a[r].meta||(o=r));if(void 0!==o){switch(n.stopPropagation(),n.preventDefault(),t.indexOf(".")>=0&&(u=t.substr(0,t.indexOf(".")),c=t.substr(t.indexOf(".")+1)),u){case"zoom":switch(c){case"in":d.zoomDelta=[.05,.25,1][o];break;case"out":d.zoomDelta=-[.05,.25,1][o];break;default:isNaN(parseFloat(c))||(d.zoom=parseFloat(c))}break;case"pan":switch(c){case"down":d.panY=-Math.max(1,[0,.05,.5][o]*l.height);break;case"left":d.panX=Math.max(1,[0,.05,.5][o]*l.width);break;case"right":d.panX=-Math.max(1,[0,.05,.5][o]*l.width);break;case"up":d.panY=Math.max(1,[0,.05,.5][o]*l.height)}break;case"rotate":switch(c){case"ccw":d.rotationDelta=[1,5,90][o]*Math.PI/180;break;case"cw":d.rotationDelta=-[1,5,90][o]*Math.PI/180;break;default:isNaN(parseFloat(c))||(d.rotation=parseFloat(c))}}s.geoTrigger(y.keyaction,{move:d,action:t,factor:o,event:n}),d.cancel||(void 0!==d.zoom?s.zoom(d.zoom):d.zoomDelta&&s.zoom(s.zoom()+d.zoomDelta),void 0!==d.rotation?s.rotation(d.rotation):d.rotationDelta&&s.rotation(s.rotation()+d.rotationDelta),(d.panX||d.panY)&&s.pan({x:d.panX||0,y:d.panY||0}))}},this.hasTouchSupport=function(){return"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof window.DocumentTouch||(navigator.msMaxTouchPoints||navigator.maxTouchPoints)>1},this._handleTouch=function(t){var n=!1;if("mouse"===t.pointerType&&c.touchSupport&&(n=!0),"hammer.input"===t.type){if("pan"!==c.lastEventType||1===t.pointers.length)return;n=!0,c.lastEventType=null}var i=/^(.*)(start|end|move|tap)$/.exec(t.type);if(i&&3===i.length||(n=!0),n)d.boundDocumentHandlers&&c.lastEvent&&M._handleMouseUpDocument(c.lastEvent);else{t.which=i[1];var r=(new Date).valueOf();"pan"===t.which&&"pan"!==c.lastEventType&&r-c.lastTime<e.touchPanDelay||(c.lastTime=r,c.lastEventType=t.which,c.lastEvent=t,void 0===t.pageX&&void 0!==t.center&&void 0!==t.center.x&&(t.pageX=t.center.x,t.pageY=t.center.y),"start"===i[2]&&(M._handleMouseDown(t),M._setClickMaybe(!1),d.boundDocumentHandlers&&g(document).on("mousemove.geojs",M._handleMouseUpDocument)),"start"!==i[2]&&"move"!==i[2]||(d.boundDocumentHandlers?M._handleMouseMoveDocument(t):M._handleMouseMove(t)),"end"!==i[2]&&"cancel"!==i[2]||(d.boundDocumentHandlers?M._handleMouseUpDocument(t):M._handleMouseUp(t),c.lastEvent=null),"tap"!==i[2]||d.boundDocumentHandlers||(t.which=1,c.lastEventType=null,M._handleMouseDown(t),M._handleMouseUp(t),c.lastEventType=i[2]))}},this._repeatMouseMoveEvent=function(t){if(i&&i.modifiers){var e=i.modifiers.alt,n=i.modifiers.ctrl,r=i.modifiers.meta,o=i.modifiers.shift;M._getMouseModifiers(t),i.modifiers.alt===e&&i.modifiers.ctrl===n&&i.modifiers.meta===r&&i.modifiers.shift===o||(d.boundDocumentHandlers?M.map().geoTrigger(y.actionmove,{state:M.state(),mouse:M.mouse(),event:t}):M.map().geoTrigger(y.mousemove,M.mouse()))}},this.retriggerMouseMove=function(){M.map().geoTrigger(y.mousemove,M.mouse())},this._connectEvents=function(){if(!e.map)return M;M._disconnectEvents(),f=g(e.map.node()),M._handleMouseWheel=function(){var t={};function n(n){var i,r;T||(t!==h&&(h=t={kind:"wheel",scroll:{x:0,y:0}}),n.preventDefault(),n.deltaFactor=1,1===n.originalEvent.deltaMode?n.deltaFactor=40:2===n.originalEvent.deltaMode&&(n.deltaFactor=g(window).height()),i=n.originalEvent.deltaX||0,r=n.originalEvent.deltaY||0,i=i*e.wheelScaleX*n.deltaFactor/120,r=r*e.wheelScaleY*n.deltaFactor/120,t.scroll.x+=i,t.scroll.y+=r)}function r(n){var r,o;if(t===h){if(M._getMousePosition(n),M._getMouseButton(n),M._getMouseModifiers(n),o=(b({wheel:!0},i.modifiers,e.actions)||{}).action){var a=M.map().transitionCancel("wheel."+o);switch((a|=M.cancel(v.momentum,!0))&&(i.geo=M.map().displayToGcs(i.map),i.mapgcs=M.map().displayToGcs(i.map,null)),o){case v.pan:M.map().pan({x:h.scroll.x,y:h.scroll.y},void 0,"limited");break;case v.zoom:r=-h.scroll.y,C(r,i);break;case v.rotate:M.map().rotation(M.map().rotation()+h.scroll.y*e.rotateWheelScale,i)}M.map().geoTrigger(y.actionwheel,{state:M.state(),mouse:M.mouse(),eventData:n})}h={}}}return e.throttle>0?x(e.throttle,!1,r,n):function(t){n(t),r(t)}}(),C=function(){var t,n,i,r=0,a=400;function s(a,s){var l,u=M.map();t=o.deepMerge({},s),r+=a,void 0===i&&(n=i=u.zoom()),i+=a,u&&Math.abs(r)>=1&&e.discreteZoom&&!e.zoomAnimation.enabled&&(l=Math.round(r+u.zoom()),r=r+u.zoom()-l,u.zoom(l,t))}function l(){var o,a=M.map();a&&(e.zoomAnimation.enabled?(o=i,e.discreteZoom&&(o=Math.round(o))===n&&i!==n&&(o=n+(i>n?1:-1)),(o=Math.round(1e6*a._fix_zoom(o))/1e6)!==a.zoom()?(a.transitionCancel("debounced_zoom."+v.zoom),a.transition({zoom:o,zoomOrigin:t,duration:e.zoomAnimation.duration,ease:e.zoomAnimation.ease,done:function(t){t=t||{};var n=new RegExp("\\."+v.zoom+"$");t.next||t.cancel&&!((""+t.source).search(n)<0)||(i=void 0),e.discreteZoom&&t.cancel&&t.transition&&t.transition.end&&(""+t.source).search(n)<0&&a.zoom(t.transition.end.zoom,t.transition.end.zoomOrigin)}})):i=void 0):(o=r+a.zoom(),e.discreteZoom&&(o=Math.round(o)),a.zoom(o,t))),r=0}!0!==e.discreteZoom&&e.discreteZoom>0&&(a=e.discreteZoom);return(!0===e.discreteZoom||e.discreteZoom>0)&&!e.zoomAnimation.enabled?_(a,!1,l,s):function(t,e){(t||void 0!==i)&&(s(t,e),l())}}(),o.adjustActions(e.actions);var t={};if(["right","pan","rotate"].forEach(function(n){t[n]=e.actions.some(function(t){return t.input[n]})}),f.on("wheel.geojs",M._handleMouseWheel),f.on("mousemove.geojs",M._handleMouseMove),f.on("mousedown.geojs",M._handleMouseDown),f.on("mouseup.geojs",M._handleMouseUp),f.on("dragstart",function(){return!1}),t.right&&f.on("contextmenu.geojs",function(){return!1}),e.keyboard&&e.keyboard.actions){l=a(f[0]);var r=[];for(var s in e.keyboard.actions)e.keyboard.actions.hasOwnProperty(s)&&(l.bind(e.keyboard.actions[s],function(t){return function(e,n){M._handleKeys(t,e,n)}}(s)),r=r.concat(e.keyboard.actions[s]));e.keyboard.metakeyMouseEvents&&e.keyboard.metakeyMouseEvents.forEach(function(t){l.bind(t,M._repeatMouseMoveEvent,"keydown"),l.bind(t,M._repeatMouseMoveEvent,"keyup"),r.push(t)}),u=r}if(f.toggleClass("highlight-focus",!!(u&&u.length&&e.keyboard.focusHighlight)),(M.hasTouchSupport()||e.alwaysTouch)&&(t.pan||t.rotate)){var d;try{(d=n(7606))&&d.Manager||(d=void 0)}catch(t){}if(void 0!==d){var p=[],m=["hammer.input"];t.rotate&&(p.push([d.Rotate,{enable:!0}]),m=m.concat(["rotatestart","rotateend","rotatemove"])),t.pan&&(p.push([d.Pan,{direction:d.DIRECTION_ALL}]),m=m.concat(["panstart","panend","panmove"])),p.push([d.Tap,{event:"doubletap",taps:2}]),p.push([d.Tap,{event:"singletap"},void 0,["doubletap"]]),m=m.concat(["singletap"]);var w={recognizers:p,preventDefault:!0};(c={manager:new d.Manager(f[0],w),touchSupport:M.hasTouchSupport(),lastTime:0}).manager.get("doubletap").recognizeWith("singletap"),m.forEach(function(t){c.manager.on(t,M._handleTouch)})}}return M},this._disconnectEvents=function(){return u&&(l&&l.unbind(u),u=null,l=null),c&&(c.manager.destroy(),c=null),f&&(f.off(".geojs"),f=null),M._handleMouseWheel=function(){},C=function(){},M},this.map=function(t){return void 0!==t?(e.map=t,M._connectEvents(),M):e.map},this.options=function(t){return void 0===t?Object.assign({},e):(Object.assign(e,t),M._connectEvents(),M)},this._getMousePosition=function(t){if(void 0!==t.pageX&&void 0!==t.pageY){var e,n,r=f.offset();e=(n=(new Date).valueOf())-i.time,i.time=n,i.deltaTime=e,i.velocity={x:(t.pageX-i.page.x)/e,y:(t.pageY-i.page.y)/e},i.page={x:t.pageX,y:t.pageY},i.map={x:t.pageX-r.left,y:t.pageY-r.top};try{i.geo=M.map().displayToGcs(i.map),i.mapgcs=M.map().displayToGcs(i.map,null)}catch(t){i.geo=i.mapgcs=null}}},this._getMouseButton=function(t){if(void 0!==t.buttons||void 0!==t.which){for(var e in i.buttons)i.buttons.hasOwnProperty(e)&&(i.buttons[e]=!1);if(void 0!==t.buttons)i.buttons.left=!!(1&t.buttons),i.buttons.right=!!(2&t.buttons),i.buttons.middle=!!(4&t.buttons);else if("mouseup"!==t.type)switch(t.which){case 1:i.buttons.left=!0;break;case 2:i.buttons.middle=!0;break;case 3:i.buttons.right=!0}!t.which||t.which>=1&&t.which<=3||(i.buttons[t.which]=!0)}},this._getMouseModifiers=function(t){i.modifiers.alt=t.altKey,i.modifiers.ctrl=t.ctrlKey,i.modifiers.meta=t.metaKey,i.modifiers.shift=t.shiftKey},this._getSelection=function(){var t=d.origin,e=M.mouse(),n=M.map(),i={},r={},a=e.map;if(d.actionRecord&&o.isFunction(d.actionRecord.selectionConstraint)){var s=d.actionRecord.selectionConstraint(e.mapgcs,t.mapgcs);a=s?n.gcsToDisplay(s.pos,null):a}else if(e.modifiers.shift){var l=Math.pow(Math.abs((a.x-t.map.x)*(a.y-t.map.y)),.5);a={x:t.map.x+Math.sign(a.x-t.map.x)*l,y:t.map.y+Math.sign(a.y-t.map.y)*l}}return i.upperLeft={x:Math.min(t.map.x,a.x),y:Math.min(t.map.y,a.y)},i.lowerRight={x:Math.max(t.map.x,a.x),y:Math.max(t.map.y,a.y)},i.upperRight={x:i.lowerRight.x,y:i.upperLeft.y},i.lowerLeft={x:i.upperLeft.x,y:i.lowerRight.y},r.upperLeft=n.displayToGcs(i.upperLeft,null),r.lowerRight=n.displayToGcs(i.lowerRight,null),r.upperRight=n.displayToGcs(i.upperRight,null),r.lowerLeft=n.displayToGcs(i.lowerLeft,null),p.data([{ul:r.upperLeft,ur:r.upperRight,ll:r.lowerLeft,lr:r.lowerRight}]),p.draw(),{display:i,gcs:r,mouse:e,origin:Object.assign({},d.origin)}},this.cancel=function(t,e){var n;return(n=t?d.action===t:!!d.action)&&(e||(h={}),P()),n},this._setClickMaybe=function(t){S=t,m&&(window.clearTimeout(m),m=null)},this._handleMouseDown=function(t){var n,r;if(!(T||c&&"tap"===c.lastEventType&&(new Date).valueOf()-c.lastTime<1e3)){M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),M.map().geoTrigger(y.mousedown,M.mouse()),!e.click.enabled||i.buttons.left&&!e.click.buttons.left||i.buttons.right&&!e.click.buttons.right||i.buttons.middle&&!e.click.buttons.middle||(M._setClickMaybe({x:i.page.x,y:i.page.y,buttons:Object.assign({},i.buttons)}),e.click.duration>0&&(m=window.setTimeout(function(){S=!1,m=null},e.click.duration))),n=((r=b(i.buttons,i.modifiers,e.actions))||{}).action;var a=M.map();a.transitionCancel("_handleMouseDown"+(n?"."+n:"")),M.cancel(v.momentum),i.velocity={x:0,y:0},n&&(h={kind:"move"},A+=1,d={action:n,actionRecord:r,origin:o.deepMerge({},i),initialZoom:a.zoom(),initialRotation:a.rotation(),initialEventRotation:t.rotation,stateId:A,delta:{x:0,y:0}},r.selectionRectangle&&(E&&(E.clear(),a.deleteLayer(E),E=null),E=a.createLayer("feature",{features:[w.capabilities.color],autoshareRenderer:!1}),(p=E.createFeature("quad",{gcs:a.gcs()})).style({opacity:.25,color:{r:.3,g:.3,b:.3}}),a.geoTrigger(y.brushstart,M._getSelection())),a.geoTrigger(y.actiondown,{state:M.state(),mouse:M.mouse(),event:t}),e.throttle>0?g(document).on("mousemove.geojs",x(e.throttle,M._handleMouseMoveDocument)):g(document).on("mousemove.geojs",M._handleMouseMoveDocument),g(document).on("mouseup.geojs",M._handleMouseUpDocument),d.boundDocumentHandlers=!0)}},this._handleMouseMove=function(t){T||d.boundDocumentHandlers||(e.click.cancelOnMove&&S&&M._setClickMaybe(!1),M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),S||M.map().geoTrigger(y.mousemove,M.mouse()))},this._handleZoomrotate=function(t){var n=Math.log2(t.scale);if(!d.zoomrotateAllowZoom&&n&&Math.abs(n)>=Math.log2(1+e.zoomrotateMinimumZoom)&&(e.zoomrotateMinimumZoom&&(d.initialZoom-=n),d.zoomrotateAllowZoom=!0),d.zoomrotateAllowZoom&&n){var i=d.initialZoom+n;M.map().zoom(i,d.origin)}var r=(t.rotation-d.initialEventRotation)*Math.PI/180;if(!d.zoomrotateAllowRotation&&r&&Math.abs(r)>=e.zoomrotateMinimumRotation&&(e.zoomrotateMinimumRotation&&(d.initialEventRotation=t.rotation,r=0),d.zoomrotateAllowRotation=!0),d.zoomrotateAllowRotation){var a=d.initialRotation+r;(r=o.wrapAngle(a-M.map().rotation()))&&(r*(d.lastRotationDelta||0)>=0||Math.abs(r)>=e.zoomrotateReverseRotation)&&(M.map().rotation(a,d.origin),d.lastRotationDelta=r)}var s=d.origin.page;if(d.initialEventGeo){var l=f.offset();(s=M.map().gcsToDisplay(d.initialEventGeo)).x+=l.left,s.y+=l.top}var u=t.pageX-s.x,c=t.pageY-s.y,h=u*u+c*c;!d.zoomrotateAllowPan&&h&&h>=e.zoomrotateMinimumPan*e.zoomrotateMinimumPan&&(e.zoomrotateMinimumPan?(u=c=0,d.initialEventGeo=M.mouse().geo):d.initialEventGeo=d.origin.geo,d.zoomrotateAllowPan=!0),d.zoomrotateAllowPan&&(u||c)&&M.map().pan({x:u,y:c})},this._handleMouseMoveDocument=function(t){var n,r,o;if(M.map()&&!T&&"move"===h.kind){if(M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),e.click.cancelOnMove)if(void 0===S.x||void 0===S.y)M._setClickMaybe(!1);else if(!0!==e.click.cancelOnMove||i.page.x===S.x&&i.page.y===S.y){Math.sqrt(Math.pow(i.page.x-S.x,2)+Math.pow(i.page.y-S.y,2))>=e.click.cancelOnMove&&M._setClickMaybe(!1)}else M._setClickMaybe(!1);if(!S)if(d.action){if(n=i.map.x-d.origin.map.x-d.delta.x,r=i.map.y-d.origin.map.y-d.delta.y,d.delta.x+=n,d.delta.y+=r,d.action===v.pan)M.map().pan({x:n,y:r},void 0,"limited");else if(d.action===v.zoom)C(-r*e.zoomScale/120,d);else if(d.action===v.rotate){var a,s;void 0===d.origin.rotation&&(a=d.origin.map.x-M.map().size().width/2,s=d.origin.map.y-M.map().size().height/2,d.origin.rotation=M.map().rotation()-Math.atan2(s,a)),a=i.map.x-M.map().size().width/2,s=i.map.y-M.map().size().height/2,M.map().rotation(d.origin.rotation+Math.atan2(s,a))}else d.action===v.zoomrotate?M._handleZoomrotate(t):d.actionRecord.selectionRectangle&&(o=M._getSelection(),M.map().geoTrigger(y.brush,o));M.map().geoTrigger(y.actionmove,{state:M.state(),mouse:M.mouse(),event:t}),t.preventDefault()}else console.log("WARNING: Invalid state in mapInteractor.")}},this._zoomFromSelection=function(t,e,n){if((t===v.zoomselect||t===v.unzoomselect)&&e.x!==n.x&&e.y!==n.y){var i,r,o=M.map(),a=o.size(),s={x:Math.abs((n.x-e.x)/a.width),y:Math.abs((n.y-e.y)/a.height)};if(t===v.zoomselect?(r=o.displayToGcs({x:(e.x+n.x)/2,y:(e.y+n.y)/2},null),i=o.zoom()-Math.log2(Math.max(s.x,s.y))):(i=o.zoom()+Math.log2(Math.max(s.x,s.y)),r=o.center(void 0,null)),o.discreteZoom()&&(i=Math.floor(i)),o.zoom(i),t===v.zoomselect)o.center(r,null);else{var l=o.gcsToDisplay(r,null);o.pan({x:(e.x+n.x)/2-l.x,y:(e.y+n.y)/2-l.y})}}},this._handleMouseUpDocument=function(t){var n,r;if(!T&&(h={},M._setClickMaybe(!1),M._getMouseButton(t),M._getMouseModifiers(t),g(document).off(".geojs"),d.boundDocumentHandlers=!1,i.buttons.right&&t.preventDefault(),d.actionRecord&&d.actionRecord.selectionRectangle&&(M._getMousePosition(t),n=M._getSelection(),E.clear(),M.map().deleteLayer(E),E=null,p=null,M.map().geoTrigger(y.brushend,n),!0!==d.actionRecord.selectionRectangle&&M.map().geoTrigger(d.actionRecord.selectionRectangle,n),M._zoomFromSelection(d.action,n.display.lowerLeft,n.display.upperRight),M.map().geoTrigger(y.actionselection,{state:M.state(),mouse:M.mouse(),event:t,lowerLeft:n.display.lowerLeft,upperRight:n.display.upperRight})),M.map().geoTrigger(y.actionup,{state:M.state(),mouse:M.mouse(),event:t}),r=d.action,P(),e.momentum.enabled&&e.momentum.actions.includes(r))){var o=(new Date).valueOf(),a=o-i.time+i.deltaTime;o-i.time<e.momentum.stopTime?(i.velocity.x*=i.deltaTime/a,i.velocity.y*=i.deltaTime/a,i.deltaTime=a):i.velocity.x=i.velocity.y=0,M.springBack(!0,r)}},this._handleMouseUp=function(t){if(!T){M._getMouseButton(t),S&&M._handleMouseClick(t);var e=M.mouse();e.buttonsDown=S.buttons,M.map().geoTrigger(y.mouseup,e)}},this._handleMouseClick=function(t){d.actionRecord&&d.actionRecord.selectionRectangle&&(E.clear(),M.map().deleteLayer(E),E=null,p=null,d.action=d.actionRecord=null),M._getMouseButton(t),M._getMouseModifiers(t),M.cancel(v.pan),g(document).off(".geojs"),d.boundDocumentHandlers=!1;var e=M.mouse();e.buttonsDown=S.buttons,e.evt=t,M._setClickMaybe(!1),M.map().geoTrigger(y.mouseclick,e)},this._handleMouseWheel=function(){},this.springBack=function(t,n){d.action!==v.momentum&&(t||(i.velocity={x:0,y:0}),d.origAction=n,d.action=v.momentum,d.origin=M.mouse(),d.momentum=M.mouse(),d.start=new Date,d.handler=function(){var t,n,i,r;if(d.action===v.momentum&&M.map()&&!M.map().transition())if(r=Math.min(d.momentum.deltaTime,30),i=d.start.valueOf(),d.start=new Date,t=O(d.momentum.velocity,d.start-i)){if((n=k(t))>e.momentum.maxSpeed&&(n=e.momentum.maxSpeed/n,t.x=t.x*n,t.y=t.y*n),isFinite(t.x)&&isFinite(t.y)||(t.x=0,t.y=0),d.momentum.velocity.x=t.x,d.momentum.velocity.y=t.y,d.origAction===v.zoom){var o=d.momentum.velocity.y*r;C(-o*e.zoomScale/120,d)}else M.map().pan({x:d.momentum.velocity.x*r,y:d.momentum.velocity.y*r},void 0,"limited");d.handler&&M.map().scheduleAnimationFrame(d.handler)}else P()},d.handler&&M.map().scheduleAnimationFrame(d.handler))},this.destroy=function(){M._disconnectEvents(),M.map()&&g(M.map().node()).removeClass("highlight-focus"),M.map(null)},this.mouse=function(){return o.deepMerge({},i)},this.keyboard=function(t){return void 0===t?o.deepMerge({},e.keyboard||{}):M.options({keyboard:t})},this.state=function(){return o.deepMerge({},d)},this.pause=function(t){return void 0===t?T:(T=!!t,M)},this.addAction=function(t,n){t&&t.action&&t.input&&(o.addAction(e.actions,t,n),e.map&&e.actions.some(function(t){return t.input.right})&&(f.off("contextmenu.geojs"),f.on("contextmenu.geojs",function(){return!1})))},this.hasAction=function(t,n,i){return o.hasAction(e.actions,t,n,i)},this.removeAction=function(t,n,i){var r=o.removeAction(e.actions,t,n,i);return e.map&&!e.actions.some(function(t){return t.input.right})&&f.off("contextmenu.geojs"),r},this.simulateEvent=function(t,e){var n,i,r,o,a;if(!M.map())return M;if("keyboard"===t&&l){var s={shiftKey:e.shift||e.shiftKey||!1,ctrlKey:e.ctrl||e.ctrlKey||!1,altKey:e.alt||e.altKey||!1,metaKey:e.meta||e.metaKey||!1,toString:function(){return e.keys},stopPropagation:function(){},preventDefault:function(){},simulated:!0};return l.trigger(s,e.event),M}return i=e.page||{},e.map&&(r=f.offset(),i.x=e.map.x+r.left,i.y=e.map.y+r.top),"left"===e.button?(o=1,a=1):"right"===e.button?(o=3,a=2):"middle"===e.button&&(o=2,a=4),e.modifiers=e.modifiers||[],e.wheelDelta=e.wheelDelta||{},n=g.Event(t,{pageX:i.x,pageY:i.y,which:o,buttons:a,altKey:e.modifiers.indexOf("alt")>=0,ctrlKey:e.modifiers.indexOf("ctrl")>=0,metaKey:e.modifiers.indexOf("meta")>=0,shiftKey:e.modifiers.indexOf("shift")>=0,center:e.center,rotation:e.touch?e.rotation||0:e.rotation,scale:e.touch?e.scale||1:e.scale,pointers:e.pointers,pointerType:e.pointerType,originalEvent:{deltaX:e.wheelDelta.x,deltaY:e.wheelDelta.y,deltaMode:e.wheelMode,preventDefault:function(){},stopPropagation:function(){},stopImmediatePropagation:function(){}}}),e.touch&&c?M._handleTouch(n):f.trigger(n),t.indexOf(".geojs")>=0&&g(document).trigger(n),M},this._connectEvents(),this};i(s,r),t.exports=s},7945:function(t,e,n){var i,r=n(4626),o=n(1098).registerRenderer,a=n(2274),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},a.call(this,t);var e,i=n(5616),r=n(1611),o=n(3503),l=n(642),u=n(6409),c=this,d=null,h=null,f=!1,p=this._init,m=this._exit;return this.contextRenderer=function(){return d},this.api=function(){return s.apiname},this._init=function(){if(c.initialized())return c;p.call(c);var e=t.canvas||i(document.createElement("canvas"));if(e.addClass("webgl-canvas"),i(c.layer().node().get(0)).append(e),window.overrideContextAttributes){var n=e.get(0),o=n.getContext;n.getContext=function(t,e){if(e=e||{},window.overrideContextAttributes)for(var i in window.overrideContextAttributes)window.overrideContextAttributes.hasOwnProperty(i)&&(e[i]=window.overrideContextAttributes[i]);return o.call(n,t,e)}}(h=r.viewer(e.get(0),t.options)).init(),(d=h.renderWindow().activeRenderer()).setResetScene(!1),e.get(0).addEventListener("webglcontextlost",function(t){return t.preventDefault()},!1),e.get(0).addEventListener("webglcontextrestored",function(){return h.renderWindow()._init()},!1),h.renderWindow().renderers().length>0&&d.setLayer(h.renderWindow().renderers().length),c.canvas(e);var a=c.layer().map().size();return c._resize(0,0,a.width,a.height),c},this._resize=function(t,e,n,i){var r=h.renderWindow();return t===r.windowPosition[0]&&e===r.windowPosition[1]&&n===c.width()&&i===c.height()||(c._setWidthHeight(n,i),c.canvas().attr("width",n),c.canvas().attr("height",i),r.positionAndResize(t,e,n,i),f=!0,c._render()),c},this._render=function(){return c.layer().map().scheduleAnimationFrame(c._renderFrame,!0),c},this._renderFrame=function(){h&&(f&&(f=!1,c._updateRendererCamera()),h.render())},this._glContext=function(){return h&&h.renderWindow()?h.renderWindow().context():r.GL},this._exit=function(){if(c.layer().map().scheduleAnimationFrame(c._renderFrame,"remove"),c.canvas().remove(),h){var t=new r.renderState;t.m_renderer=h,t.m_context=c._glContext(),h.exit(t);var e=c._glContext();e!==r.GL&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").loseContext&&e.getExtension("WEBGL_lose_context").loseContext()}r.clearCachedShaders(r.GL),h=null,m()},this._updateRendererCamera=function(){var t=h.renderWindow(),n=c.layer().map(),i=n.camera(),r=n.rotation()||0,a=i.view,s=i.projectionMatrix;if(s[15])s=o.copy(l.mat4AsArray(),s),s=o.scale(s,s,[1,1,-.5]),s=o.translate(s,s,[0,0,i.clipbounds.far]);else{var u=i.clipbounds.near,d=i.clipbounds.far;s=o.copy(l.mat4AsArray(),s),s=o.scale(s,s,[1/u,1/u,-1/d])}var f=Math.PI/2,p=r%f,m=Math.min(Math.abs(p),Math.abs(p-f))<1e-5;t.renderers().forEach(function(t){var r=t.camera();if(!l.compareArrays(a,r.viewMatrix())||!l.compareArrays(s,r.projectionMatrix())||e!==n.zoom()){e=n.zoom(),r.setViewMatrix(a,!0),r.setProjectionMatrix(s);var o=i.viewport;s[1]||s[2]||s[3]||s[4]||s[6]||s[7]||s[8]||s[9]||s[11]||1!==s[15]||!m||o.left&&o.left%1||o.top&&o.top%1||parseFloat(e.toFixed(6))!==parseFloat(e.toFixed(0))?r.viewAlignment=function(){return null}:r.viewAlignment=function(){var t={roundx:2/o.width,roundy:2/o.height};return t.dx=o.width%2?.5*t.roundx:0,t.dy=o.height%2?.5*t.roundy:0,t}}})},c.layer().geoOn(u.pan,function(t){f=!0}),c.layer().geoOn(u.parallelprojection,function(t){var e=c.contextRenderer(),n=c.layer();if(t.geo&&t.geo._triggeredBy!==n){if(!e||!e.camera())return void console.log("Parallel projection event triggered on unconnected VGL renderer.");e.camera().setEnableParallelProjection(t.parallelProjection),f=!0}}),this};s.apiname="webgl",r(s,a),o("webgl",s),o("vgl",s),s.supported=function(){if(void 0===i){var t,e;try{(e=(t=document.createElement("canvas")).getContext("webgl")||t.getContext("experimental-webgl")).getSupportedExtensions().indexOf("WEBGL_debug_renderer_info")>=0&&(s._unmaskedRenderer=e.getParameter(e.getExtension("WEBGL_debug_renderer_info").UNMASKED_RENDERER_WEBGL)),s._maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),s._maxPointSize=e.getParameter(e.ALIASED_POINT_SIZE_RANGE)[1],i=!0}catch(t){console.warn("No webGL support"),i=!1}t=void 0,e=void 0}return i},s.fallback=function(){return null},t.exports=s},7954:function(t,e,n){"use strict";function i(t){return.375*t*(1+.25*t*(1+.46875*t))}n.d(e,{A:function(){return i}})},7997:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},8028:function(t){t.exports=function(t,e,n,i){var r=n[0],o=n[2],a=e[0]-r,s=e[2]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=r+s*l+a*u,t[1]=e[1],t[2]=o+s*u-a*l,t}},8034:function(t){t.exports=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},8044:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}},8067:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return m},init:function(){return p},inverse:function(){return g},names:function(){return y}});var i=n(7e3),r=n(6269),o=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],a=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],s=.8487,l=1.3523,u=i.dX/5,c=1/u,d=18,h=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},f=function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])};function p(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function m(t){var e=(0,r.A)(t.x-this.long0),n=Math.abs(t.y),f=Math.floor(n*u);f<0?f=0:f>=d&&(f=d-1),n=i.dX*(n-c*f);var p={x:h(o[f],n)*e,y:h(a[f],n)};return t.y<0&&(p.y=-p.y),p.x=p.x*this.a*s+this.x0,p.y=p.y*this.a*l+this.y0,p}function g(t){var e={x:(t.x-this.x0)/(this.a*s),y:Math.abs(t.y-this.y0)/(this.a*l)};if(e.y>=1)e.x/=o[d][0],e.y=t.y<0?-i.sK:i.sK;else{var n=Math.floor(e.y*d);for(n<0?n=0:n>=d&&(n=d-1);;)if(a[n][0]>e.y)--n;else{if(!(a[n+1][0]<=e.y))break;++n}var u=a[n],c=5*(e.y-u[0])/(a[n+1][0]-u[0]);c=function(t,e,n,i){for(var r=e;i;--i){var o=t(r);if(r-=o,Math.abs(o)<n)break}return r}(function(t){return(h(u,t)-e.y)/f(u,t)},c,i.H0,100),e.x/=h(o[n],c),e.y=(5*n+c)*i.zq,t.y<0&&(e.y=-e.y)}return e.x=(0,r.A)(e.x+this.long0),e}var y=["Robinson","robin"];e.default={init:p,forward:m,inverse:g,names:y}},8074:function(t,e,n){t.exports={canvasRenderer:n(1103),heatmapFeature:n(9142),isolineFeature:n(1195),lineFeature:n(2954),pixelmapFeature:n(5398),quadFeature:n(5578),textFeature:n(2213),tileLayer:n(511),trackFeature:n(1795)}},8093:function(t){t.exports=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],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,b=i*l-r*s,w=i*u-o*s,M=r*u-o*l,A=c*m-d*p,E=c*g-h*p,T=c*y-f*p,S=d*g-h*m,C=d*y-f*m,k=h*y-f*g,P=v*k-x*C+_*S+b*T-w*E+M*A;return P?(P=1/P,t[0]=(s*k-l*C+u*S)*P,t[1]=(l*T-a*k-u*E)*P,t[2]=(a*C-s*T+u*A)*P,t[3]=(r*C-i*k-o*S)*P,t[4]=(n*k-r*T+o*E)*P,t[5]=(i*T-n*C-o*A)*P,t[6]=(m*M-g*w+y*b)*P,t[7]=(g*_-p*M-y*x)*P,t[8]=(p*w-m*_+y*v)*P,t):null}},8104:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d},forward:function(){return l},init:function(){return s},inverse:function(){return u},names:function(){return c}});var i=n(6269),r=n(5964),o=n(7072),a=n(7e3);function s(){this.sphere||(this.k0=(0,o.A)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function l(t){var e,n,o=t.x,a=t.y,s=(0,i.A)(o-this.long0);if(this.sphere)e=this.x0+this.a*s*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var l=(0,r.A)(this.e,Math.sin(a));e=this.x0+this.a*this.k0*s,n=this.y0+this.a*l*.5/this.k0}return t.x=e,t.y=n,t}function u(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=(0,i.A)(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=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*a.sK:a.sK;for(var i,r,o,s,l=Math.asin(.5*e),u=0;u<30;u++)if(r=Math.sin(l),o=Math.cos(l),s=t*r,l+=i=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-r/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return l;return NaN}(this.e,2*t.y*this.k0/this.a),e=(0,i.A)(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t}var c=["cea"],d={init:s,forward:l,inverse:u,names:c}},8163:function(t){t.exports=function(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],c=e[7],d=e[8],h=Math.sin(n),f=Math.cos(n);return t[0]=f*i+h*a,t[1]=f*r+h*s,t[2]=f*o+h*l,t[3]=f*a-h*i,t[4]=f*s-h*r,t[5]=f*l-h*o,t[6]=u,t[7]=c,t[8]=d,t}},8197:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return c},init:function(){return u},inverse:function(){return d},names:function(){return h}});var i=n(6269),r=1.340264,o=-.081106,a=893e-6,s=.003796,l=Math.sqrt(3)/2;function u(){this.es=0,this.long0=void 0!==this.long0?this.long0:0}function c(t){var e=(0,i.A)(t.x-this.long0),n=t.y,u=Math.asin(l*Math.sin(n)),c=u*u,d=c*c*c;return t.x=e*Math.cos(u)/(l*(r+3*o*c+d*(7*a+9*s*c))),t.y=u*(r+o*c+d*(a+s*c)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function d(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,u,c,d=t.y;for(c=0;c<12&&(d-=u=(d*(r+o*(e=d*d)+(n=e*e*e)*(a+s*e))-t.y)/(r+3*o*e+n*(7*a+9*s*e)),!(Math.abs(u)<1e-9));++c);return n=(e=d*d)*e*e,t.x=l*t.x*(r+3*o*e+n*(7*a+9*s*e))/Math.cos(d),t.y=Math.asin(Math.sin(d)/l),t.x=(0,i.A)(t.x+this.long0),t}var h=["eqearth","Equal Earth","Equal_Earth"];e.default={init:u,forward:c,inverse:d,names:h}},8208:function(t){t.exports="/* pointFeature square/triangle vertex shader */\n\n/* pointFeature common vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute float radius;\nattribute vec3 fillColor;\nattribute vec3 strokeColor;\nattribute float fillOpacity;\nattribute float strokeWidth;\nattribute float strokeOpacity;\nattribute float fill;\nattribute float stroke;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float radiusVar;\nvarying float strokeWidthVar;\n\nfloat pointFeaturePrep() {\n strokeWidthVar = strokeWidth;\n fillColorVar = vec4(fillColor, fillOpacity);\n strokeColorVar = vec4(strokeColor, strokeOpacity);\n // No stroke or fill implies nothing to draw\n if (stroke < 1.0 || strokeWidth <= 0.0 || strokeOpacity <= 0.0) {\n strokeColorVar.a = 0.0;\n strokeWidthVar = 0.0;\n }\n if (fill < 1.0 || radius <= 0.0 || fillOpacity <= 0.0)\n fillColorVar.a = 0.0;\n /* If the point has no visible pixels, skip doing computations on it. */\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0) {\n gl_Position = vec4(2, 2, 0, 1);\n return 0.0;\n }\n return radius;\n}\n\n\nuniform float pixelWidth; // for non-sprite\nuniform float aspect; // for non-sprite\nattribute vec2 unit; // for non-sprite\nvarying vec3 unitVar; // for non-sprite\n\nvoid main(void)\n{\n radiusVar = pointFeaturePrep();\n if (radiusVar == 0.0) {\n return;\n }\n // for non-sprite\n unitVar = vec3(unit, 1.0);\n vec4 p = (projectionMatrix * modelViewMatrix * vec4(pos, 1.0)).xyzw;\n if (p.w != 0.0) {\n p = p / p.w;\n }\n p += (radius + strokeWidthVar) *\n vec4(unit.x * pixelWidth, unit.y * pixelWidth * aspect, 0.0, 1.0);\n gl_Position = vec4(p.xyz, 1.0);\n}\n"},8257:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2499),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t),n(2778).call(this,t);var e=this;return this._build=function(){e.actors()[0]&&e.renderer().contextRenderer().removeActor(e.actors()[0]),e.createGLMeshColored(e._createGrids()),e.renderer().contextRenderer().addActor(e.actors()[0]),e.buildTime().modified()},this._init(t),this};i(a,o),r("webgl","grid",a),t.exports=a},8308:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o;a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=i*a,t[2]=r*a,t[3]=o*a);return t}},8506:function(t,e,n){"use strict";n.r(e),n.d(e,{EQUIT:function(){return l},N_POLE:function(){return s},OBLIQ:function(){return u},S_POLE:function(){return a},forward:function(){return d},init:function(){return c},inverse:function(){return h},names:function(){return x}});var i=n(7e3),r=n(5964),o=n(6269),a=1,s=2,l=3,u=4;function c(){var t,e=Math.abs(this.lat0);if(Math.abs(e-i.sK)<i.H0?this.mode=this.lat0<0?a:s:Math.abs(e)<i.H0?this.mode=l:this.mode=u,this.es>0)switch(this.qp=(0,r.A)(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var e,n=[];return n[0]=t*f,e=t*t,n[0]+=e*p,n[1]=e*g,e*=t,n[0]+=e*m,n[1]+=e*y,n[2]=e*v,n}(this.es),this.mode){case s:case a:this.dd=1;break;case l:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case u:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=(0,r.A)(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===u&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function d(t){var e,n,a,s,l,u,c,d,h,f,p=t.x,m=t.y;if(p=(0,o.A)(p-this.long0),this.sphere){if(l=Math.sin(m),f=Math.cos(m),a=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+f*a:1+this.sinph0*l+this.cosph0*f*a)<=i.H0)return null;e=(n=Math.sqrt(2/n))*f*Math.sin(p),n*=this.mode===this.EQUIT?l:this.cosph0*l-this.sinph0*f*a}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(a=-a),Math.abs(m+this.lat0)<i.H0)return null;n=i.Vj-.5*m,e=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(p),n*=a}}else{switch(c=0,d=0,h=0,a=Math.cos(p),s=Math.sin(p),l=Math.sin(m),u=(0,r.A)(this.e,l),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(c=u/this.qp,d=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:h=1+this.sinb1*c+this.cosb1*d*a;break;case this.EQUIT:h=1+d*a;break;case this.N_POLE:h=i.sK+m,u=this.qp-u;break;case this.S_POLE:h=m-i.sK,u=this.qp+u}if(Math.abs(h)<i.H0)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:h=Math.sqrt(2/h),n=this.mode===this.OBLIQ?this.ymf*h*(this.cosb1*c-this.sinb1*d*a):(h=Math.sqrt(2/(1+d*a)))*c*this.ymf,e=this.xmf*h*d*s;break;case this.N_POLE:case this.S_POLE:u>=0?(e=(h=Math.sqrt(u))*s,n=a*(this.mode===this.S_POLE?h:-h)):e=n=0}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t}function h(t){t.x-=this.x0,t.y-=this.y0;var e,n,r,a,s,l,u,c,d,h,f=t.x/this.a,p=t.y/this.a;if(this.sphere){var m,g=0,y=0;if((n=.5*(m=Math.sqrt(f*f+p*p)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(y=Math.sin(n),g=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(m)<=i.H0?0:Math.asin(p*y/m),f*=y,p=g*m;break;case this.OBLIQ:n=Math.abs(m)<=i.H0?this.lat0:Math.asin(g*this.sinph0+p*y*this.cosph0/m),f*=y*this.cosph0,p=(g-Math.sin(n)*this.sinph0)*m;break;case this.N_POLE:p=-p,n=i.sK-n;break;case this.S_POLE:n-=i.sK}e=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(f,p):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(f/=this.dd,p*=this.dd,(l=Math.sqrt(f*f+p*p))<i.H0)return t.x=this.long0,t.y=this.lat0,t;a=2*Math.asin(.5*l/this.rq),r=Math.cos(a),f*=a=Math.sin(a),this.mode===this.OBLIQ?(u=r*this.sinb1+p*a*this.cosb1/l,s=this.qp*u,p=l*this.cosb1*r-p*this.sinb1*a):(u=p*a/l,s=this.qp*u,p=l*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(s=f*f+p*p))return t.x=this.long0,t.y=this.lat0,t;u=1-s/this.qp,this.mode===this.S_POLE&&(u=-u)}e=Math.atan2(f,p),c=Math.asin(u),d=this.apa,h=c+c,n=c+d[0]*Math.sin(h)+d[1]*Math.sin(h+h)+d[2]*Math.sin(h+h+h)}return t.x=(0,o.A)(this.long0+e),t.y=n,t}var f=.3333333333333333,p=.17222222222222222,m=.10257936507936508,g=.06388888888888888,y=.0664021164021164,v=.016415012942191543;var x=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];e.default={init:c,forward:d,inverse:h,names:x,S_POLE:a,N_POLE:s,EQUIT:l,OBLIQ:u}},8511:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6645),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(1611),i=n(9747);i=i.__esModule?i.default:i;var r=n(5325),s=n(642),l=n(4084),u=n(4547),c=n(9506);l.call(this);var d,h,f,p,m,g=this,y=this._exit,v=e.actor(),x=e.mapper(),_=e.material(),b=this._init,w=this._update;function M(){var t=new e.shader(e.GL.VERTEX_SHADER);return t.setShaderSource(c),t}function A(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(u),t}return this._init=function(t){var n=e.shaderProgram(),i=e.vertexAttribute("pos"),r=e.vertexAttribute("fillColor"),o=e.vertexAttribute("fillOpacity"),a=new e.projectionUniform("projectionMatrix"),s=M(),l=A(),u=e.blend(),c=e.geometryData(),d=e.sourceDataP3fv({name:"pos"}),h=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Two,{name:"fillColor"}),p=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"fillOpacity"}),m=e.triangles();f=new e.modelViewOriginUniform("modelViewMatrix"),n.addVertexAttribute(i,e.vertexAttributeKeys.Position),n.addVertexAttribute(r,e.vertexAttributeKeysIndexed.Two),n.addVertexAttribute(o,e.vertexAttributeKeysIndexed.Three),n.addUniform(f),n.addUniform(a),n.addShader(l),n.addShader(s),_.addAttribute(n),_.addAttribute(u),v.setMaterial(_),v.setMapper(x),c.addSource(d),c.addSource(h),c.addSource(p),c.addPrimitive(m),c.computeBounds=function(){c.setBounds(0,0,0,0,0,0)},x.setGeometryData(c),b.call(g,t)},this.actors=function(){return[v]},this._build=function(){!function(t){var e,n,o,a,l,u,c,p,m,y,v,_,b,w,M,A,E,T,S,C,k,P,O,L,R,I,F,D,G,j=[],N=g.gcs(),B=g.layer().map().gcs(),z=0,V=x.geometryData();for(l=g.style.get("fillColor"),u=s.isFunction(g.style("fillColor"))?void 0:l(),p=g.style.get("fillOpacity"),m=s.isFunction(g.style("fillOpacity"))?void 0:p(),y=g.style.get("fill"),v=s.isFunction(g.style("fill"))?void 0:y(),_=g.style.get("uniformPolygon"),b=s.isFunction(g.style("uniformPolygon"))?void 0:_(),t?(j=d.items,z=d.numPts):(n=(n=g.style.get("position"))===s.identityFunction?null:n,o=(o=g.style.get("polygon"))===s.identityFunction?null:o,g.data().forEach(function(t,e){var a,s,l,u;if((a=o?o(t,e):t)&&!((s=a.outer||(Array.isArray(a)?a:[])).length<3)){for(l=new Array(3*s.length),P=C=0;P<s.length;P+=1,C+=3)u=n?n(s[P],P,t,e):s[P],l[C]=u.x,l[C+1]=u.y,l[C+2]=0;l={vertices:l,dimensions:3,holes:[]},G=s,a.inner&&a.inner.forEach(function(i){if(!(i.length<3))for(G=G.concat(i),l.holes.push(C/3),P=0;P<i.length;P+=1,C+=3)u=n?n(i[P],P,t,e):i[P],l.vertices[C]=u.x,l.vertices[C+1]=u.y,l.vertices[C+2]=0}),l.vertices=r.transformCoordinates(N,B,l.vertices,l.dimensions),(I={triangles:i(l.vertices,l.holes,l.dimensions),vertices:l.vertices,original:G,item:t,itemIndex:e}).triangles.length&&(j.push(I),z+=I.triangles.length)}}),e=s.getGeomBuffer(V,"pos",3*z),(M=V.primitive(0).indices())instanceof Uint16Array&&M.length===z||(M=new Uint16Array(z),V.primitive(0).setIndices(M)),d={items:j,numPts:z},h=new Float32Array(g.style.get("origin")(j)),f.setOrigin(h)),a=s.getGeomBuffer(V,"fillColor",3*z),c=s.getGeomBuffer(V,"fillOpacity",z),S=C=0,A=u,T=v,L=0;L<j.length;L+=1)if(R=j[L].triangles.length,k=j[L].vertices,F=j[L].item,D=j[L].itemIndex,G=j[L].original,E=m,(w=void 0===b?_(F,D):b)&&(void 0===u&&(A=l(k[0],0,F,D)),void 0===m&&(E=p(k[0],0,F,D))),void 0===v&&(T=y(F,D)),T||(E=0),w&&t&&j[L].uniform&&j[L].color&&A.r===j[L].color.r&&A.g===j[L].color.g&&A.b===j[L].color.b&&E===j[L].opacity)S+=R,C+=3*R;else{for(P=0;P<R;P+=1,S+=1,C+=3)t&&w?(a[C]=A.r,a[C+1]=A.g,a[C+2]=A.b,c[S]=E):(O=3*j[L].triangles[P],t||(e[C]=k[O]-h[0],e[C+1]=k[O+1]-h[1],e[C+2]=k[O+2]-h[2],M[S]=P),w||void 0!==u||(A=l(G[O],O,F,D)),a[C]=A.r,a[C+1]=A.g,a[C+2]=A.b,!w&&T&&void 0===m&&(E=p(G[O],O,F,D)),c[S]=E);(w||j[L].uniform)&&(j[L].uniform=w,j[L].color=A,j[L].opacity=E)}t?(x.updateSourceBuffer("fillOpacity"),x.updateSourceBuffer("fillColor")):(x.modified(),V.boundsDirty(!0),x.boundsDirtyTimestamp().modified())}(!!(g.dataTime().timestamp()<g.buildTime().timestamp()&&d)),g.renderer().contextRenderer().hasActor(v)||(g.renderer().contextRenderer().addActor(v),p=!0),g.buildTime().modified()},this._update=function(t){g.ready&&(t&&t.mayDelay&&p?m=g.layer().map().scheduleAnimationFrame(g._update):(m&&(g.layer().map().scheduleAnimationFrame(g._update,"remove"),m=null),w.call(g),(g.dataTime().timestamp()>=g.buildTime().timestamp()||g.updateTime().timestamp()<=g.timestamp())&&g._build(),v.setVisible(g.visible()),v.material().setBinNumber(g.bin()),g.updateTime().modified()))},this._exit=function(){m&&g.layer()&&(g.layer().map().scheduleAnimationFrame(g._update,"remove"),m=null),g.renderer().contextRenderer().removeActor(v),y()},this._init(t),this};i(a,o),r("webgl","polygon",a),t.exports=a},8516:function(t,e,n){t.exports=n(8044)},8524:function(t,e,n){var i=n(8738),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=this;return this._init=function(){return t.hasOwnProperty("parent")&&t.parent.addChild(e),e._createCanvas(),e._appendCanvasToParent(),e.canvas().addEventListener("mousedown",function(t){t.stopPropagation()}),e.reposition(),e},this._createCanvas=function(){e.canvas(document.createElement(t.el||"div"))},this};r(a,i),o("dom","dom",a),t.exports=a},8534:function(t){t.exports=function(t,e,n){var i=[],r=[];return t.forEach(function(t){var o=t.start,a=t.end;if(e.pointsSame(o,a))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{n&&n.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},u=s,c=0;c<i.length;c++){var d=(g=i[c])[0],h=(g[1],g[g.length-1]);g[g.length-2];if(e.pointsSame(d,o)){if(A(c,!0,!0))break}else if(e.pointsSame(d,a)){if(A(c,!0,!1))break}else if(e.pointsSame(h,o)){if(A(c,!1,!0))break}else if(e.pointsSame(h,a)&&A(c,!1,!1))break}if(u===s)return i.push([o,a]),void(n&&n.chainNew(o,a));if(u===l){n&&n.chainMatch(s.index);var f=s.index,p=s.matches_pt1?a:o,m=s.matches_head,g=i[f],y=m?g[0]:g[g.length-1],v=m?g[1]:g[g.length-2],x=m?g[g.length-1]:g[0],_=m?g[g.length-2]:g[1];return e.pointsCollinear(v,y,p)&&(m?(n&&n.chainRemoveHead(s.index,p),g.shift()):(n&&n.chainRemoveTail(s.index,p),g.pop()),y=v),e.pointsSame(x,p)?(i.splice(f,1),e.pointsCollinear(_,x,y)&&(m?(n&&n.chainRemoveTail(s.index,y),g.pop()):(n&&n.chainRemoveHead(s.index,y),g.shift())),n&&n.chainClose(s.index),void r.push(g)):void(m?(n&&n.chainAddHead(s.index,p),g.unshift(p)):(n&&n.chainAddTail(s.index,p),g.push(p)))}var b=s.index,w=l.index;n&&n.chainConnect(b,w);var M=i[b].length<i[w].length;s.matches_head?l.matches_head?M?(E(b),T(b,w)):(E(w),T(w,b)):T(w,b):l.matches_head?T(b,w):M?(E(b),T(w,b)):(E(w),T(b,w))}function A(t,e,n){return u.index=t,u.matches_head=e,u.matches_pt1=n,u===s?(u=l,!1):(u=null,!0)}function E(t){n&&n.chainReverse(t),i[t].reverse()}function T(t,r){var o=i[t],a=i[r],s=o[o.length-1],l=o[o.length-2],u=a[0],c=a[1];e.pointsCollinear(l,s,u)&&(n&&n.chainRemoveTail(t,s),o.pop(),s=l),e.pointsCollinear(s,u,c)&&(n&&n.chainRemoveHead(r,u),a.shift()),n&&n.chainJoin(t,r),i[t]=o.concat(a),i.splice(r,1)}}),r}},8541:function(t,e,n){var i=n(257);t.exports=function(t,e,n,r){var o,a,s,l,u,c,d,h,f,p,m=e[0],g=e[1],y=e[2],v=r[0],x=r[1],_=r[2],b=n[0],w=n[1],M=n[2];if(Math.abs(m-b)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(y-M)<1e-6)return i(t);d=m-b,h=g-w,f=y-M,p=1/Math.sqrt(d*d+h*h+f*f),o=x*(f*=p)-_*(h*=p),a=_*(d*=p)-v*f,s=v*h-x*d,(p=Math.sqrt(o*o+a*a+s*s))?(o*=p=1/p,a*=p,s*=p):(o=0,a=0,s=0);l=h*s-f*a,u=f*o-d*s,c=d*a-h*o,(p=Math.sqrt(l*l+u*u+c*c))?(l*=p=1/p,u*=p,c*=p):(l=0,u=0,c=0);return t[0]=o,t[1]=l,t[2]=d,t[3]=0,t[4]=a,t[5]=u,t[6]=h,t[7]=0,t[8]=s,t[9]=c,t[10]=f,t[11]=0,t[12]=-(o*m+a*g+s*y),t[13]=-(l*m+u*g+c*y),t[14]=-(d*m+h*g+f*y),t[15]=1,t}},8544:function(t){t.exports=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}},8546:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KPHBhdGggZD0iTTAsMTFsMTEsMGwwLC0xMWwyLDBsMCwxMWwxMSwwbDAsMmwtMTEsMGwwLDExbC0yLDBsMCwtMTFsLTExLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+CjxwYXRoIGQ9Ik0yNCwyN2wzLDBsMCwtM2wyLDBsMCwzbDMsMGwwLDJsLTMsMGwwLDNsLTIsMGwwLC0zbC0zLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+Cjwvc3ZnPgo="},8560:function(t,e,n){t.exports=n(1040)},8576:function(t,e,n){var i=n(698),r=n(4626);i.blendFunction=function(t,e){"use strict";if(!(this instanceof i.blendFunction))return new i.blendFunction(t,e);var n=t,r=e;return this.apply=function(t){t.m_context.blendFuncSeparate(n,r,i.GL.ONE,i.GL.ONE_MINUS_SRC_ALPHA)},this},i.blend=function(){"use strict";if(!(this instanceof i.blend))return new i.blend;i.materialAttribute.call(this,i.materialAttributeType.Blend);var t=!1,e=i.blendFunction(i.GL.SRC_ALPHA,i.GL.ONE_MINUS_SRC_ALPHA);return this.bind=function(n){return t=n.m_context.isEnabled(i.GL.BLEND),this.enabled()?(n.m_context.enable(i.GL.BLEND),e.apply(n)):n.m_context.disable(i.GL.BLEND),!0},this.undoBind=function(e){return t?e.m_context.enable(i.GL.BLEND):e.m_context.disable(i.GL.BLEND),!0},this},r(i.blend,i.materialAttribute)},8597:function(t,e,n){"use strict";function i(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}n.d(e,{A:function(){return i}})},8635:function(t,e,n){t.exports={choroplethFeature:n(3559),contourFeature:n(6791),gridFeature:n(8257),isolineFeature:n(960),layer:n(6982),lineFeature:n(5795),lookupTable2D:n(411),markerFeature:n(3403),meshColored:n(2778),pixelmapFeature:n(7759),pointFeature:n(5407),polygonFeature:n(8511),quadFeature:n(9304),tileLayer:n(1474),trackFeature:n(536),webglRenderer:n(7945)}},8695:function(t){t.exports={momentum:"geo_action_momentum",pan:"geo_action_pan",rotate:"geo_action_rotate",select:"geo_action_select",unzoomselect:"geo_action_unzoomselect",zoom:"geo_action_zoom",zoomrotate:"geo_action_zoom_rotate",zoomselect:"geo_action_zoomselect",annotation_edit_handle:"geo_annotation_edit_handle",annotation_cursor:"geo_annotation_cursor"}},8711:function(t){t.exports="/* quadFeature Image fragment shader */\n\nvarying highp vec2 iTextureCoord;\nuniform sampler2D sampler2d;\nuniform mediump float opacity;\nuniform highp vec2 crop;\n\nvoid main(void) {\n mediump vec4 color = texture2D(sampler2d, iTextureCoord);\n if ((crop.s < 1.0 && iTextureCoord.s > crop.s) || (crop.t < 1.0 && 1.0 - iTextureCoord.t > crop.t)) {\n discard;\n }\n color.w *= opacity;\n gl_FragColor = color;\n}\n"},8738:function(t,e,n){var i=n(4626),r=n(5402),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=n(6409),i=this,a=this._exit,s=t.layer,l=null,u=void 0===t.position?{left:0,top:0}:t.position;if(!(void 0===t.parent||t.parent instanceof o))throw new Error("Parent must be of type geo.gui.widget");t.parent&&i.parent(t.parent),this._init=function(){return i.modified(),i},this._exit=function(){if(i.children().forEach(function(t){i.removeChild(t),t._exit()}),i.layer().geoOff(e.pan,i.repositionEvent),i.parentCanvas().removeChild&&i.canvas())try{i.parentCanvas().removeChild(i.canvas())}catch(t){}a()},this.layer=function(){return s||i.parent()&&i.parent().layer()},this._createCanvas=function(){throw new Error("Must be defined in derived classes")},this.canvas=function(t){return void 0===t?l:(l=t,i)},this._appendCanvasToParent=function(){i.parentCanvas().appendChild(i.canvas())},this.parentCanvas=function(){return i.parent()?i.parent().canvas():i.layer().canvas()},this.position=function(t,n){if(void 0!==t){i.layer().geoOff(e.pan,i.repositionEvent);var r={};for(var o in u)u.hasOwnProperty(o)&&(r[o]=null);return(u=t).hasOwnProperty("x")&&u.hasOwnProperty("y")&&i.layer().geoOn(e.pan,i.repositionEvent),i.reposition(Object.assign(r,i.position())),i}if(u.hasOwnProperty("x")&&u.hasOwnProperty("y")&&!n){var a=i.layer().map().gcsToDisplay(u);return{left:a.x,top:a.y,right:null,bottom:null}}return u},this.reposition=function(t){if(t=t||i.position(),i.canvas()&&i.canvas().style)for(var e in i.canvas().style.position="absolute",t)t.hasOwnProperty(e)&&(/^\s*(-|\+)?(\d+(\.\d*)?|\d*\.\d+)([eE](-|\+)?\d+)?\s*$/.test(t[e])?i.canvas().style[e]=parseFloat(parseFloat(t[e]).toFixed(3))+"px":i.canvas().style[e]=t[e]);return i},this.repositionEvent=function(){return i.reposition()},this.isInViewport=function(){var t=i.position(),e=i.layer();return t.left>=0&&t.top>=0&&t.left<=e.width()&&t.top<=e.height()},u.hasOwnProperty("x")&&u.hasOwnProperty("y")&&this.layer().geoOn(e.pan,i.repositionEvent)};i(o,r),t.exports=o},8741:function(t){t.exports=function(t,e,n,i){var r=new Float32Array(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}},8773:function(t){t.exports=function(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}},8844:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],d=t[10],h=t[11],f=t[12],p=t[13],m=t[14],g=t[15];return(e*a-n*o)*(d*g-h*m)-(e*s-i*o)*(c*g-h*p)+(e*l-r*o)*(c*m-d*p)+(n*s-i*a)*(u*g-h*f)-(n*l-r*a)*(u*m-d*f)+(i*l-r*s)*(u*p-c*f)}},8888:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.texture=function(){"use strict";if(!(this instanceof i.texture))return new i.texture;i.materialAttribute.call(this,i.materialAttributeType.Texture),this.m_width=0,this.m_height=0,this.m_depth=0,this.m_textureHandle=null,this.m_textureUnit=0,this.m_pixelFormat=i.GL.RGBA,this.m_pixelDataType=i.GL.UNSIGNED_BYTE,this.m_internalFormat=i.GL.RGBA,this.m_nearestPixel=!1,this.m_image=null,this.m_texture=null;var t=o(),e=this;function n(t){if(!(e.m_textureUnit>=0&&e.m_textureUnit<32))throw"[error] Texture unit "+e.m_textureUnit+" is not supported";t.m_context.activeTexture(i.GL.TEXTURE0+e.m_textureUnit)}return this.setup=function(e){n(e),e.m_context.deleteTexture(this.m_textureHandle),this.m_textureHandle=e.m_context.createTexture(),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,this.m_nearestPixel?i.GL.NEAREST:i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,this.m_nearestPixel?i.GL.NEAREST:i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_S,i.GL.CLAMP_TO_EDGE),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_T,i.GL.CLAMP_TO_EDGE),null!==this.m_image?(e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),e.m_context.pixelStorei(i.GL.UNPACK_FLIP_Y_WEBGL,!0),this.updateDimensions(),this.computeInternalFormatUsingImage(),e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_pixelFormat,this.m_pixelDataType,this.m_image)):null!==this.m_texture?(e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),e.m_context.pixelStorei(i.GL.UNPACK_FLIP_Y_WEBGL,!0),this.updateDimensions(),e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_texture.width,this.m_texture.height,0,this.m_pixelFormat,this.m_pixelDataType,this.m_texture.data)):e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_width,this.m_height,0,this.m_pixelFormat,this.m_pixelDataType,null),e.m_context.bindTexture(i.GL.TEXTURE_2D,null),t.modified()},this.bind=function(e){this.getMTime()>t.getMTime()&&this.setup(e),n(e),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle)},this.undoBind=function(t){t.m_context.bindTexture(i.GL.TEXTURE_2D,null)},this.image=function(){return this.m_image},this.texture=function(){return this.m_texture},this.setImage=function(t){return null!==t&&(this.m_image=t,this.updateDimensions(),this.modified(),!0)},this.setTexture=function(t){return null!==t&&(this.m_texture=t,"Luminance"===t.type?(this.m_internalFormat=i.GL.LUMINANCE,this.m_pixelFormat=i.GL.LUMINANCE):"LuminanceAlpha"===t.type?(this.m_internalFormat=i.GL.LUMINANCE_ALPHA,this.m_pixelFormat=i.GL.LUMINANCE_ALPHA):(this.m_internalFormat=i.GL.RGBA,this.m_pixelFormat=i.GL.RGBA),this.updateDimensions(),this.modified(),!0)},this.nearestPixel=function(){return this.m_nearestPixel},this.setNearestPixel=function(t){return(t=!!t)!==this.m_nearestPixel&&(this.m_nearestPixel=t,this.modified(),!0)},this.textureUnit=function(){return this.m_textureUnit},this.setTextureUnit=function(t){return this.m_textureUnit!==t&&(this.m_textureUnit=t,this.modified(),!0)},this.computeInternalFormatUsingImage=function(){this.m_internalFormat=i.GL.RGBA,this.m_pixelFormat=i.GL.RGBA,this.m_pixelDataType=i.GL.UNSIGNED_BYTE},this.updateDimensions=function(){null!==this.m_image&&(this.m_width=this.m_image.width,this.m_height=this.m_image.height,this.m_depth=0),null!==this.m_texture&&(this.m_width=this.m_texture.width,this.m_height=this.m_texture.height,this.m_depth=0)},this.textureHandle=function(){return this.m_textureHandle},this},r(i.texture,i.materialAttribute),i.lookupTable=function(){"use strict";if(!(this instanceof i.lookupTable))return new i.lookupTable;i.texture.call(this);var t=o();return this.m_colorTable=[.07514311,.468049805,1,1,.247872569,.498782363,1,1,.339526309,.528909511,1,1,.409505078,.558608486,1,1,.468487184,.588057293,1,1,.520796675,.617435078,1,1,.568724526,.646924167,1,1,.613686735,.676713218,1,1,.656658579,.707001303,1,1,.698372844,.738002964,1,1,.739424025,.769954435,1,1,.780330104,.803121429,1,1,.821573924,.837809045,1,1,.863634967,.874374691,1,1,.907017747,.913245283,1,1,.936129275,.938743558,.983038586,1,.943467973,.943498599,.943398095,1,.990146732,.928791426,.917447482,1,1,.88332677,.861943246,1,1,.833985467,.803839606,1,1,.788626485,.750707739,1,1,.746206642,.701389973,1,1,.70590052,.654994046,1,1,.667019783,.610806959,1,1,.6289553,.568237474,1,1,.591130233,.526775617,1,1,.552955184,.485962266,1,1,.513776083,.445364274,1,1,.472800903,.404551679,1,1,.428977855,.363073592,1,1,.380759558,.320428137,1,.961891484,.313155629,.265499262,1,.916482116,.236630659,.209939162,1].map(function(t){return 255*t}),this.setup=function(e){0===this.textureUnit()?e.m_context.activeTexture(i.GL.TEXTURE0):1===this.textureUnit()&&e.m_context.activeTexture(i.GL.TEXTURE1),e.m_context.deleteTexture(this.m_textureHandle),this.m_textureHandle=e.m_context.createTexture(),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_S,i.GL.CLAMP_TO_EDGE),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_T,i.GL.CLAMP_TO_EDGE),e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),this.m_width=this.m_colorTable.length/4,this.m_height=1,this.m_depth=0,e.m_context.texImage2D(i.GL.TEXTURE_2D,0,i.GL.RGBA,this.m_width,this.m_height,this.m_depth,i.GL.RGBA,i.GL.UNSIGNED_BYTE,new Uint8Array(this.m_colorTable)),e.m_context.bindTexture(i.GL.TEXTURE_2D,null),t.modified()},this.colorTable=function(){return this.m_colorTable},this.setColorTable=function(t){return this.m_colorTable!==t&&(this.m_colorTable=t,this.modified(),!0)},this},r(i.lookupTable,i.texture)},8927:function(t){function e(t,e,n){var i=[];return t.forEach(function(t){var r=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&&t.otherFill.above?2:0)+(t.otherFill&&t.otherFill.below?1:0);0!==e[r]&&i.push({id:n?n.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[r],below:2===e[r]},otherFill:null})}),n&&n.selected(i),i}var n={union:function(t,n){return e(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],n)},intersect:function(t,n){return e(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],n)},difference:function(t,n){return e(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],n)},differenceRev:function(t,n){return e(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],n)},xor:function(t,n){return e(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],n)}};t.exports=n},8961:function(t){t.exports="/* quadFeature Color fragment shader */\n\nvarying mediump vec3 iVertexColor;\nuniform mediump float opacity;\n\nvoid main(void) {\n gl_FragColor = vec4(iVertexColor, opacity);\n}\n"},9079:function(t){t.exports="23dc9d02000c6263f9fa495301f9d457bfb1f89e"},9088:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},9123:function(t){var e=function(t){return this instanceof e?(t=t||{},this._size=t.size||64,Object.defineProperty(this,"size",{get:function(){return this._size},set:function(t){for(;this._atime.length>t;)this.remove(this._atime[this._atime.length-1]);this._size=t}}),Object.defineProperty(this,"length",{get:function(){return this._atime.length}}),this._access=function(t){return this._atime.indexOf(t)},this.remove=function(t){var e="string"==typeof t?t:t.toString();return e in this._cache&&(this._atime.splice(this._access(e),1),delete this._cache[e],!0)},this.clear=function(){return this._cache={},this._atime=[],this},this.get=function(t,e){return(t="string"==typeof t?t:t.toString())in this._cache?(e||(this._atime.splice(this._access(t),1),this._atime.unshift(t)),this._cache[t]):null},this.add=function(t,e,n){this.remove(t);var i=t.toString();this._cache[i]=t,this._atime.unshift(i),n||this.purge(e)},this.purge=function(t){for(var e;this._atime.length>this.size;){e=this._atime.pop();var n=this._cache[e];t&&t(n),delete this._cache[e]}},this.clear(),this):new e(t)};t.exports=e},9133:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8];return e*(u*o-a*l)+n*(a*s-u*r)+i*(l*r-o*s)}},9142:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9163),a=n(77),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);o.call(this,t),n(5895).call(this);var e,i,r,u,c,d,h=n(6409),f=this,p=this._init,m=this._update,g=a();return this._computeGradient=function(){var t,e,n,i,r;if(r=f.style("color"),!f._grad||f._gradColors!==r){for(e in i=(n=(t=document.createElement("canvas")).getContext("2d")).createLinearGradient(0,0,0,256),t.width=1,t.height=256,r)i.addColorStop(e,s.convertColorToRGBA(r[e]));n.fillStyle=i,n.fillRect(0,0,1,256),f._grad=n.getImageData(0,0,1,256).data,f._gradColors=r}return f},this._createCircle=function(){var t,e,n,i,r,o,a;if(n=f.style("radius"),r=f.style("blurRadius"),o=f.style("gaussian"),a=f.style("scaleWithZoom")){var s=this.layer().map().zoom();n*=a=Math.pow(2,s),r*=a}if(!f._circle||f._circle.gaussian!==o||f._circle.radius!==n||f._circle.blurRadius!==r){if(e=(t=f._circle=document.createElement("canvas")).getContext("2d"),i=r+n,t.width=t.height=2*i,o){var l=e.createRadialGradient(i,i,0,i,i,i);l.addColorStop(0,"rgba(255,255,255,1)"),l.addColorStop(.1,"rgba(255,255,255,0.946)"),l.addColorStop(.2,"rgba(255,255,255,0.801)"),l.addColorStop(.3,"rgba(255,255,255,0.607)"),l.addColorStop(.4,"rgba(255,255,255,0.411)"),l.addColorStop(.5,"rgba(255,255,255,0.249)"),l.addColorStop(.6,"rgba(255,255,255,0.135)"),l.addColorStop(.7,"rgba(255,255,255,0.066)"),l.addColorStop(.8,"rgba(255,255,255,0.029)"),l.addColorStop(.9,"rgba(255,255,255,0.011)"),l.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=l,e.fillRect(0,0,2*i,2*i)}else e.shadowOffsetX=e.shadowOffsetY=2*i,e.shadowBlur=r,e.shadowColor="black",e.beginPath(),e.arc(-i,-i,n,0,2*Math.PI,!0),e.closePath(),e.fill();t.radius=n,t.blurRadius=r,t.gaussian=o,f._circle=t}return f},this._colorize=function(t,n){var o,a,s,l=new Uint32Array(n.buffer),u=t.length;for(e&&e.length===u||(e=new ArrayBuffer(u),i=new Uint8ClampedArray(e),r=new Uint32Array(e)),o=3,s=0;o<u;o+=4,s+=1)(a=t[o])&&(r[s]=l[a]);t.set(i)},this._renderPoints=function(t,e,n,i){var r,o,a,s=f.gcsPosition(),l=f.intensity(),u=f.minIntensity(),c=f.maxIntensity()-u||1;for(r=n.length-1;r>=0;r-=1)o=e.worldToDisplay(s[r]),(a=(l(n[r],r)-u)/c)<=0||(t.globalAlpha=a<.01?.01:a>1?1:a,t.drawImage(f._circle,o.x-i,o.y-i))},this._renderBinnedData=function(t,e,n,i,r){var o,a,s,l,u,c,d,h,p=f.gcsPosition(),m=f.intensity(),g=f.minIntensity(),y=f.maxIntensity()-g||1,v=e.size(),x=[],_=Math.ceil(i/r),b=Math.ceil(v.width/r)+2*_+2,w=Math.ceil(v.height/r)+2*_+2,M=n.length;for(o=0;o<M;o+=1)a=e.worldToDisplay(p[o]),isNaN(a.x)||isNaN(a.y)||(void 0===d&&(d=(a.x%r+r)%r,h=(a.y%r+r)%r),(l=Math.floor((a.x-d)/r)+_+1)<0||l>=b||(u=Math.floor((a.y-h)/r)+_+1)<0||u>=w||(s=(m(n[o],o)-g)/y)<=0||(s>1&&(s=1),x[u]=x[u]||[],l*=4,(c=x[u])[l]?(c[l]+=s,c[l+1]+=(1-c[l+1])*s,c[l+2]+=a.x*s,c[l+3]+=a.y*s):(c[l]=c[l+1]=s,c[l+2]=a.x*s,c[l+3]=a.y*s)));for(u=x.length-1;u>=0;u-=1)if(c=x[u])for(l=c.length-4;l>=0;l-=4)c[l]&&(s=c[l+1],t.globalAlpha=s<.01?.01:s>1?1:s,t.drawImage(f._circle,c[l+2]/c[l]-i,c[l+3]/c[l]-i))},this._renderOnCanvas=function(t,e){if(g.timestamp()<f.buildTime().timestamp()){var n,i,r=Date.now(),o=f.data()||[],a=f.style("radius")+f.style("blurRadius"),s=f.binned(),l=f.layer(),h=e.size();if(f.style("scaleWithZoom")&&(a*=Math.pow(2,e.zoom())),!0===s||"auto"===s)if(s=Math.max(Math.floor(a/8),Math.max(1.5,Math.min(3,a/2.5))),"auto"===f.binned())Math.ceil((h.width+2*a)/s)*Math.ceil((h.height+2*a)/s)>=o.length&&(s=0);(s<1||isNaN(s))&&(s=!1),f._binned=s,t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,h.width,h.height),c="",a>.5&&a<8192&&(e.scheduleAnimationFrame(f._setTransform,!1),l.canvas().css({transform:""}),f._createCircle(),f._computeGradient(),s?f._renderBinnedData(t,e,o,a,s):f._renderPoints(t,e,o,a),n=l.canvas()[0],i=t.getImageData(0,0,n.width,n.height),f._colorize(i.data,f._grad),t.putImageData(i,0,0)),u={zoom:e.zoom(),gcsOrigin:e.displayToGcs({x:0,y:0},null),rotation:e.rotation(),lastScale:void 0,lastOrigin:{x:0,y:0},lastRotation:void 0},g.modified(),l.renderer().clearCanvas(!1),d=Date.now()-r}return f},this._init=function(){return p.call(f,t),f.geoOn(h.pan,f._animatePan),f},this._update=function(){return m.call(f),(f.buildTime().timestamp()<=f.dataTime().timestamp()||f.updateTime().timestamp()<f.timestamp())&&f._build(),f.updateTime().modified(),f},this._setTransform=function(){f.layer()&&f.layer().canvas()&&f.layer().canvas()[0]&&(f.layer().canvas()[0].style.transform=c)},this._animatePan=function(){if(u){var t=f.layer().map(),e=t.zoom(),n=Math.pow(2,e-u.zoom),i=t.gcsToDisplay(u.gcsOrigin,null),r=t.rotation();if(u.lastScale!==n||u.lastOrigin.x!==i.x||u.lastOrigin.y!==i.y||u.lastRotation!==r){var o=" translate("+i.x+"px,"+i.y+"px) scale("+n+") rotate("+180*(r-u.rotation)/Math.PI+"deg)";if(t.scheduleAnimationFrame(f._setTransform),c=o,u.lastScale=n,u.lastOrigin.x=i.x,u.lastOrigin.y=i.y,u.lastRotation=r,u.timeout&&(window.clearTimeout(u.timeout),u.timeout=void 0),1!==parseFloat(n.toFixed(4))||0!==parseFloat((r-u.rotation).toFixed(4))||0!==parseFloat(i.x.toFixed(1))||0!==parseFloat(i.y.toFixed(1))){var a=f.updateDelay();a=a<0&&d?d-Math.floor(1e3/60*a):d?2*d:100,u.timeout=window.setTimeout(function(){u.timeout=void 0,f.buildTime().modified(),f.layer().draw()},f.updateDelay())}}}},f._init(t),this};i(l,o),r("canvas","heatmap",l),t.exports=l},9156:function(t,e,n){var i=n(698),r=n(77);i.object=function(){"use strict";if(!(this instanceof i.object))return new i.object;var t=r();return t.modified(),this.modified=function(){t.modified()},this.getMTime=function(){return t.getMTime()},this}},9163:function(t,e,n){var i=n(4626),r=n(1275),o=n(5325),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},r.call(this,t);var e,n,i,l,u,c,d,h=this,f=this._init;return this.featureType="heatmap",e=t.position||a.identityFunction,n=t.intensity||function(t){return 1},i=void 0!==t.maxIntensity?t.maxIntensity:null,l=void 0!==t.minIntensity?t.minIntensity:null,c=void 0!==t.binned?t.binned:"auto",u=t.updateDelay||0===t.updateDelay?parseInt(t.updateDelay,10):-1,this.maxIntensity=function(t){return void 0===t?i:(i=t,h.dataTime().modified(),h.modified(),h)},this.minIntensity=function(t){return void 0===t?l:(l=t,h.dataTime().modified(),h.modified(),h)},this.updateDelay=function(t){return void 0===t?u:(u=parseInt(t,10),h)},this.binned=function(t){return void 0===t?c:("true"===t?t=!0:("false"===t||"auto"!==t&&!0!==t&&!1!==t&&((t=parseInt(t,10))<=0||isNaN(t)))&&(t=!1),c=t,h.dataTime().modified(),h.modified(),h)},this.position=function(t){return void 0===t?e:(e=t,h.dataTime().modified(),h.modified(),h)},this.gcsPosition=function(){return h._update(),d},this.intensity=function(t){return void 0===t?n:(n=t,h.dataTime().modified(),h.modified(),h)},this._init=function(t){f.call(h,t);var n=Object.assign({},{radius:10,blurRadius:10,gaussian:!0,color:{0:{r:0,g:0,b:0,a:0},.25:{r:0,g:0,b:1,a:.5},.5:{r:0,g:1,b:1,a:.6},.75:{r:1,g:1,b:0,a:.7},1:{r:1,g:0,b:0,a:.8}},scaleWithZoom:!1},void 0===t.style?{}:t.style);h.style(n),e&&h.dataTime().modified()},this._build=function(){var t=h.data(),e=null,n=[],r=null==i,a=null==l;return t.forEach(function(t,o){n.push(h.position()(t,o)),(r||a)&&(e=h.intensity()(t,o),null==i&&(i=e),null==l&&(l=e),r&&e>i&&(i=e),a&&e<l&&(l=e))}),a&&r&&l===i&&(l-=1),d=o.transformCoordinates(h.gcs(),h.layer().map().gcs(),n),h.buildTime().modified(),h},this._init(t),this};i(s,r),t.exports=s},9249:function(t,e,n){t.exports=n(2775)},9264:function(t,e,n){var i=n(4626),r=n(6498),o=n(642);function a(t,e){return(t%e+e)%e}function s(t){var e,n=/\$?\{(s|S|[sS]:[^{}]+|[^-{}]-[^-{}]|([^,{}]+,)+[^,{}]+)\}/,i=t.replace(new RegExp(n,"g"),"{s}").replace(/\$?\{[xX]\}/g,"{x}").replace(/\$?\{[yY]\}/g,"{y}").replace(/\$?\{[zZ]\}/g,"{z}"),r=t.match(n);if(r)if(r[2])e=r[1].split(",");else if(":"===r[1][1])e=r[1].substr(2).split("");else if("-"===r[1][1]){e=[];for(var o=r[1].charCodeAt(0),s=r[1].charCodeAt(2),l=Math.min(o,s);l<=Math.max(o,s);l+=1)e.push(String.fromCharCode(l))}return function(t,n,r,o){return i.replace(/\{s\}/g,function(t,e,n,i){return i[a(t+e+n,i.length)]}(t,n,r,e||o)).replace(/\{x\}/g,t).replace(/\{y\}/g,n).replace(/\{z\}/g,r)}}var l=function(t){"use strict";if(!(this instanceof l))return new l(t);r.call(this,t);var e=n(5616),i=n(6409),u=n(5325),c=n(9123),d=n(5938),h=n(1098).adjustLayerForRenderer,f=n(5289);if((t=o.deepMerge({},this.constructor.defaults,t||{})).cacheSize||(t.cacheSize=t.keepLower?600:200),"string"===e.type(t.subdomains)&&(t.subdomains=t.subdomains.split("")),t.baseUrl){var p=t.baseUrl;p&&"/"!==p.charAt(p.length-1)&&(p+="/"),t.url=p+"{z}/{x}/{y}."+(t.imageFormat||"png")}t.originalUrl=t.url,"string"===e.type(t.url)&&(t.url=s(t.url));var m,g,y,v=this._init,x=this._exit,_=this.visible,b=t.queueSize||6,w=t.initialQueueSize||0,M=[],A={},E=[],T=t.nearestPixel,S=this;this._options=o.deepMerge({},t),this.attribution(t.attribution),this._activeTiles={},this._tileTree={},this._cache=c({size:t.cacheSize}),this._queue=t.queue||d({size:b,initialSize:w,track:t.cacheSize,needed:function(t){return this._tileLayers&&this._tileLayers.length?this._tileLayers.some(function(e){return t===e.cache.get(t.toString(),!0)}):t===S.cache.get(t.toString(),!0)}}),this._queue._tileLayers=this._queue._tileLayers||[],this._queue._tileLayers.push(S),this._queue.initialTrack&&this._queue.track&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length);var C={};return Object.defineProperty(this,"options",{get:function(){return Object.assign({},S._options)}}),Object.defineProperty(this,"cache",{get:function(){return S._cache}}),Object.defineProperty(this,"activeTiles",{get:function(){return Object.assign({},S._activeTiles)}}),Object.defineProperty(this,"queue",{get:function(){return S._queue},set:function(t){S._queue!==t&&(this._queue&&this._queue._tileLayers&&this._queue._tileLayers.indexOf(S)>=0&&(this._queue._tileLayers.splice(this._queue._tileLayers.indexOf(S),1),this._queue.initialTrack&&this._queue.track&&this._queue._tileLayers.length&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length)),S._queue=t,S._queue._tileLayers=S._queue._tileLayers||[],S._queue._tileLayers.push(S),S._queue.initialTrack&&S._queue.track&&(S._queue.track=S._queue.initialTrack*S._queue._tileLayers.length))}}),Object.defineProperty(this,"queueSize",{get:function(){return b},set:function(t){b=t,S._queue.size=t}}),Object.defineProperty(this,"initialQueueSize",{get:function(){return w},set:function(t){w=t||0,S._queue.initialSize=t||b}}),Object.defineProperty(this,"reference",{get:function(){return S.id()+"_"+(m||0)},set:function(t){m=t},configurable:!0}),this.tilesAtZoom=function(t){if(S._options.tilesAtZoom)return S._options.tilesAtZoom.call(S,t);var e=Math.pow(2,t);return{x:e,y:e}},this.tilesMaxBounds=function(t){return S._options.tilesMaxBounds?S._options.tilesMaxBounds.call(S,t):null},this.tileCropFromBounds=function(t){if(S._options.tilesMaxBounds){var e=t.index.level,n=S._tileBounds(t);return void 0===E[e]&&(E[e]=S.tilesMaxBounds(e)||null),E[e]&&(n.right>E[e].x||n.bottom>E[e].y)?{x:Math.max(0,Math.min(E[e].x,n.right)-n.left),y:Math.max(0,Math.min(E[e].y,n.bottom)-n.top)}:void 0}},this.isValid=function(t){return S._options.minLevel<=t.level&&t.level<=S._options.maxLevel&&(!!(S._options.wrapX||0<=t.x&&t.x<=S.tilesAtZoom(t.level).x-1)&&!!(S._options.wrapY||0<=t.y&&t.y<=S.tilesAtZoom(t.level).y-1))},this._origin=function(t){var e,n=S.toLevel(S.toLocal(S.map().origin()),t),i=S._options;return{index:e={x:Math.floor(n.x/i.tileWidth),y:Math.floor(n.y/i.tileHeight)},offset:{x:n.x-i.tileWidth*e.x,y:n.y-i.tileHeight*e.y}}},this._tileBounds=function(t){var e=S._origin(t.index.level);return t.bounds(e.index,e.offset)},this.tileAtPoint=function(t,e){var n=S._origin(e),i=S.map();t=S.displayToLevel(i.gcsToDisplay(t,null),e),isNaN(t.x)&&(t.x=0),isNaN(t.y)&&(t.y=0);var r=S._tileOffset(e);return r&&(t.x+=r.x,t.y+=r.y),{x:Math.floor(n.index.x+(n.offset.x+t.x)/S._options.tileWidth),y:Math.floor(n.index.y+(n.offset.y+t.y)/S._options.tileHeight)}},this.gcsTileBounds=function(t,e){var n=t.index?t:f({index:t,size:{x:S._options.tileWidth,y:S._options.tileHeight},url:""}),i=S._tileOffset(n.index.level),r=n.bounds({x:0,y:0},i),o=S.map(),a=o.unitsPerPixel(n.index.level),s=[{x:r.left*a,y:S._topDown()*r.top*a},{x:r.right*a,y:S._topDown()*r.bottom*a}];return(e=null===e?o.gcs():void 0===e?o.ingcs():e)!==o.gcs()&&(s=u.transformCoordinates(o.gcs(),e,s)),{left:s[0].x,top:s[0].y,right:s[1].x,bottom:s[1].y}},this._getTile=function(t,e){var n=e||t;return f({index:t,size:{x:S._options.tileWidth,y:S._options.tileHeight},queue:S._queue,url:S._options.url.call(S,n.x,n.y,Math.max(n.level||0,Math.min(0,S._options.minLevel||0)),S._options.subdomains)})},this._getTileCached=function(t,e,n){var i=S.cache.get(S._tileHash(t));return null===i&&(i=S._getTile(t,e),S.cache.add(i,S.remove,n)),i},this._tileHash=function(t){return[t.level||0,t.y,t.x,t.reference||0].join("_")},this._getTileRange=function(t,e){var n=[S.tileAtPoint({x:e.left,y:e.top},t),S.tileAtPoint({x:e.right,y:e.top},t),S.tileAtPoint({x:e.left,y:e.bottom},t),S.tileAtPoint({x:e.right,y:e.bottom},t)];return{start:{x:Math.min(n[0].x,n[1].x,n[2].x,n[3].x),y:Math.min(n[0].y,n[1].y,n[2].y,n[3].y)},end:{x:Math.max(n[0].x,n[1].x,n[2].x,n[3].x),y:Math.max(n[0].y,n[1].y,n[2].y,n[3].y)}}},this._getTiles=function(t,n,i,r){var o,s,l,u,c,d,h,f,p,m,g,y=[],v=!1,x=S._options.keepLower?S._options.minLevel:Math.min(Math.max(t,S._options.minLevel),S._options.maxLevel);for(t<x&&(t=x),g=x;g<=t&&(c=(h=S._getTileRange(g,n)).start,d=h.end,u=S.tilesAtZoom(g),S._options.wrapX||(c.x=Math.min(Math.max(c.x,0),u.x-1),d.x=Math.min(Math.max(d.x,0),u.x-1),g===x&&S._options.keepLower&&(c.x=0,d.x=u.x-1)),S._options.wrapY||(c.y=Math.min(Math.max(c.y,0),u.y-1),d.y=Math.min(Math.max(d.y,0),u.y-1),g===x&&S._options.keepLower&&(c.y=0,d.y=u.y-1)),!(S._options.gcs&&S._options.gcs!==S.map().gcs()&&g!==x&&(d.x+1-c.x)*(d.y+1-c.y)>S.map().size().width*S.map().size().height/S._options.tileWidth/S._options.tileHeight*16));g+=1)for(o=c.x;o<=d.x;o+=1)for(s=c.y;s<=d.y;s+=1)l={level:g,x:o,y:s,reference:S.reference},f={level:g,x:o,y:s,reference:S.reference},S._options.wrapX&&(f.x=a(f.x,u.x)),S._options.wrapY&&(f.y=a(f.y,u.y)),S.isValid(f)&&(r&&y.length<M.length&&(m=M[y.length],v=v||l.level!==m.level||l.x!==m.x||l.y!==m.y),y.push({index:l,source:f}));if(r){if(!v&&y.length===M.length)return;M.splice(0,M.length),e.each(y,function(t,e){M.push(e.index)})}if(i){p={x:(c.x+d.x)/2,y:(c.y+d.y)/2,level:t,bottomLevel:t};for(var _=Math.max(d.x-c.x,d.y-c.y)+1;_>=1;_/=2)p.bottomLevel-=1;y.sort(S._loadMetric(p)),S._queue&&S._queue.batch(!0)}for(S.cache.size<y.length&&(console.log("Increasing cache size to "+y.length),S.cache.size=y.length),o=0;o<y.length;o+=1)y[o]=S._getTileCached(y[o].index,y[o].source,!0);return S.cache.purge(S.remove),y},this.gcs=function(t){if(void 0===t)return S._options.gcs||S.map().gcs();var e=S.gcs();return null===t?delete S._options.gcs:S._options.gcs=t,S.gcs()!==e&&(S.clear(),S.gcsFeatures(S.gcs()),S.modified(),S._update()),S},this.prefetch=function(t,n){var i;return i=S._getTiles(t,n,!0),e.when.apply(e,i.map(function(t){return t.fetch()}))},this._loadMetric=function(t){return function(e,n){var i,r,o,a,s;return e=e.index||e,n=n.index||n,e.level!==n.level?t.bottomLevel&&e.level>=t.bottomLevel!=n.level>=t.bottomLevel?e.level>=t.bottomLevel?-1:1:e.level-n.level:(s=Math.pow(2,e.level-t.level),o=(t.x+.5)*s-.5,a=(t.y+.5)*s-.5,(i=e.x-o)*i+(r=e.y-a)*r-((i=n.x-o)*i+(r=n.y-a)*r))}},this.fromLevel=function(t,e){var n=Math.pow(2,-e);return{x:t.x*n,y:t.y*n}},this.toLevel=function(t,e){var n=Math.pow(2,e);return{x:t.x*n,y:t.y*n}},this.drawTile=function(t){var e=t.toString();S._activeTiles.hasOwnProperty(e)?S._moveToTop(t):S._drawTile(t),S._activeTiles[e]=t},this._drawTile=function(t){if(null!==S.renderer())throw new Error("This draw method is not valid on renderer managed layers.");var n,i=t.index.level,r=e(S._getSubLayer(i)),o=S._tileBounds(t),a=S._options.animationDuration,s=e('<div class="geo-tile-container"/>').attr("tile-reference",t.toString());s.append(t.image),s.css({left:o.left-parseInt(r.attr("offsetx")||0,10)+"px",top:o.top-parseInt(r.attr("offsety")||0,10)+"px"}),(n=S.tileCropFromBounds(t))&&s.addClass("crop").css({width:n.x+"px",height:n.y+"px"}),a>0&&t.fadeIn(a),r.append(s),t.catch(function(){console.warn("Could not load tile at "+t.toString()),S._remove(t)})},this.remove=function(t){var e=t.toString(),n=S._activeTiles[e];return n instanceof f&&S._remove(n),delete S._activeTiles[e],n},this._remove=function(t){t.image&&(t.image.parentElement?e(t.image.parentElement).remove():console.log("No parent element to remove "+t.toString(),t),e(t.image).remove())},this._moveToTop=function(t){e.noop(t)},this._getViewBounds=function(){var t=S.map(),e=t.zoom(),n=S._options.tileRounding(e),i=Math.pow(2,e-n),r=t.size(),o=S.displayToLevel({x:0,y:0}),a=S.displayToLevel({x:r.width,y:0}),s=S.displayToLevel({x:0,y:r.height}),l=S.displayToLevel({x:r.width,y:r.height});return{level:n,scale:i,left:Math.min(o.x,a.x,s.x,l.x),right:Math.max(o.x,a.x,s.x,l.x),top:Math.min(o.y,a.y,s.y,l.y),bottom:Math.max(o.y,a.y,s.y,l.y)}},this._purge=function(t,e,n){var i,r;if(S._updating)return S;for(r in n||(n=S._getViewBounds()),S._activeTiles)i=S._activeTiles[r],S._canPurge(i,n,t,e)&&S.remove(i);return S},this.clear=function(){var t,e=[];for(t in S._activeTiles)e.push(S.remove(t));return S._tileTree={},M=[],e},this.reset=function(){return S.clear(),S._cache.clear(),S._queue.initialSize=w,S},this.toLocal=function(t,e){var n=S.map(),i=n.unitsPerPixel(void 0===e?n.zoom():e);return{x:t.x/i,y:S._topDown()*t.y/i}},this.fromLocal=function(t,e){var n=S.map(),i=n.unitsPerPixel(void 0===e?n.zoom():e);return{x:t.x*i,y:S._topDown()*t.y*i}},this._topDown=function(){return S._options.topDown?1:-1},this._getSubLayer=function(t){if(S.canvas()){var n=S.canvas().find("div[data-tile-layer="+t.toFixed()+"]").get(0);return n||(n=e('<div class=geo-tile-layer data-tile-layer="'+t.toFixed()+'"/>').get(0),S.canvas().append(n)),n}},this._updateSubLayers=function(t,n){var i=S.canvas(),r=parseInt(i.attr("lastlevel"),10),o=parseInt(i.attr("lastoffsetx")||0,10),a=parseInt(i.attr("lastoffsety")||0,10);if(r===t&&Math.abs(o-n.left)<65536&&Math.abs(a-n.top)<65536)return{x:o,y:a};var s=S.map(),l=S._tileOffset(t),u=parseInt((n.left+n.right-s.size().width)/2+l.x,10),c=parseInt((n.top+n.bottom-s.size().height)/2+l.y,10);return i.find(".geo-tile-layer").each(function(n,i){var r=e(i),o=parseInt(r.data("tileLayer"),10);r.css("transform","scale("+Math.pow(2,t-o)+")");var a=parseInt(u/Math.pow(2,t-o),10),s=parseInt(c/Math.pow(2,t-o),10),l=a-parseInt(r.attr("offsetx")||0,10),d=s-parseInt(r.attr("offsety")||0,10);r.attr({offsetx:a,offsety:s}),r.find(".geo-tile-container").each(function(t,n){e(n).css({left:parseInt(e(n).css("left"),10)-l+"px",top:parseInt(e(n).css("top"),10)-d+"px"})})}),i.attr({lastoffsetx:u,lastoffsety:c,lastlevel:t}),{x:u,y:c}},this._update=function(t){if(t&&t.event&&(t.event.event===i.zoom||t.event.event===i.rotate))return S;if(!S.visible())return S;var n,r=S.map(),o=r.bounds(void 0,null),a=r.zoom(),s=S._options.tileRounding(a);if(S._updateSubLayers){var l=S._getViewBounds(),u=S._updateSubLayers(s,l)||{x:0,y:0},c=S._tileOffset(s);if(null===S.renderer()){var d=Math.pow(2,a-s),h=r.rotation(),f=-c.x+-(l.left+l.right)/2+u.x,p=-c.y+-(l.bottom+l.top)/2+u.y,m=f+r.size().width/2,y=p+r.size().height/2;S.canvas().css({"transform-origin":-f+"px "+-p+"px"});var v="translate("+m+"px,"+y+"px)scale("+d+")";h&&(v+="rotate("+180*h/Math.PI+"deg)"),S.canvas().css("transform",v)}S.canvas().attr({scale:Math.pow(2,a-s),dx:-c.x+-(l.left+l.right)/2,dy:-c.y+-(l.bottom+l.top)/2,offsetx:u.x,offsety:u.y,rotation:r.rotation()})}if(void 0===(n=S._getTiles(s,o,!0,!0)))return S;if(S._tileTree={},n.forEach(function(t){if(t.fetched())delete A[t.toString()],S.drawTile(t),S._setTileTree(t);else{if(t._queued)(S._queue?S._queue.get(t):-1)>=0&&S._queue.add(t);else t.then(function(){if(!g&&t===S.cache.get(t.toString())){var e=r.zoom(),n=S._options.tileRounding(e),i=S._getViewBounds();S._canPurge(t,i,n)?S.remove(t):(S.drawTile(t),S._setTileTree(t))}}),t._queued=!0;S.addPromise(t),A[t.toString()]=t}}),e.when.apply(e,n).done(function(){var t=S.map().zoom(),e=S._options.tileRounding(t);S._purge(e,!0)}),"all"!==S._options.idleAfter)for(var x in A){var _=A[x];n.indexOf(_)<0&&(S.removePromise(_),delete A[x])}return S},this._setTileTree=function(t){if(!S._options.keepLower){var e=t.index;S._tileTree[e.level]=S._tileTree[e.level]||{},S._tileTree[e.level][e.x]=S._tileTree[e.level][e.x]||{},S._tileTree[e.level][e.x][e.y]=t}},this._getTileTree=function(t){return((S._tileTree[t.level]||{})[t.x]||{})[t.y]||null},this._isCovered=function(t){var e=t.index.level,n=t.index.x,i=t.index.y,r=[];return(r=S._getTileTree({level:e-1,x:Math.floor(n/2),y:Math.floor(i/2)}))?[r]:(r=[S._getTileTree({level:e+1,x:2*n,y:2*i}),S._getTileTree({level:e+1,x:2*n+1,y:2*i}),S._getTileTree({level:e+1,x:2*n,y:2*i+1}),S._getTileTree({level:e+1,x:2*n+1,y:2*i+1})]).every(function(t){return null!==t})?r:null},this._outOfBounds=function(t,e){var n=S._tileOffset(t.index.level),i=1;return t.index.level!==e.level&&(i=Math.pow(2,(e.level||0)-(t.index.level||0))),(t.bottom-n.y)*i<e.top||(t.left-n.x)*i>e.right||(t.top-n.y)*i>e.bottom||(t.right-n.x)*i<e.left},this._canPurge=function(t,e,n,i){if(S._options.keepLower){if((n=n||0)<t.index.level&&t.index.level!==S._options.minLevel)return!0;if(t.index.level===S._options.minLevel&&!S._options.wrapX&&!S._options.wrapY)return!1}else if((i||S._isCovered(t))&&n!==t.index.level&&(n>=S._options.minLevel||t.index.level!==S._options.minLevel)&&(n<S._options.maxLevel||t.index.level!==S._options.maxLevel))return!0;return!!e&&S._outOfBounds(t,e)},this.displayToLevel=function(t,e){var n,i=S.map(),r=i.zoom(),o=S._options.tileRounding(r),a=i.unitsPerPixel(void 0===e?o:e);if(void 0===t){var s=i.size();t={x:s.width/2,y:s.height/2}}try{n=i.displayToGcs(t,S._options.gcs||null)}catch(t){n={x:0,y:0}}return{x:n.x/a,y:S._topDown()*n.y/a}},this.url=function(t){return void 0===t?S._options.originalUrl:(t===S._options.originalUrl||(S._options.originalUrl=t,"string"===e.type(t)&&(t=s(t)),S._options.url=t,S.reset(),S.map().draw()),S)},this.subdomains=function(t){return void 0===t?S._options.subdomains:(t&&("string"===e.type(t)&&(t=t.indexOf(",")>=0?t.split(","):t.split("")),S._options.subdomains=t,S.reset(),S.map().draw()),S)},this._tileOffset=function(t){return void 0===C[t]&&(C[t]=S._options.tileOffset(t)),C[t]},this.visible=function(t){return void 0===t?_():(S.visible()!==t&&(_(t),t&&S._update()),S)},this.nearestPixel=function(t,e){return void 0===t?T:(T!==t&&(T=t,e||(S.modified(),S._update())),S)},Object.defineProperty(this,"baseQuad",{get:function(){return S._options.baseQuad},set:function(t){S._options.baseQuad=t,S._update()}}),this._addBaseQuadToTiles=function(t,e){t&&(this.baseQuad!==y&&(y&&e.splice(0,1),(y=this.baseQuad)&&(e.splice(0,0,this.baseQuad),t.cacheUpdate(0)),t.data(e)),t._update())},this._init=function(){var t;if(v.apply(S,arguments),null===S.renderer())for(t=0;t<=S._options.maxLevel;t+=1)S._getSubLayer(t);return S},this._exit=function(){return S.reset(),x.apply(S,arguments),g=!0,this._queue&&this._queue._tileLayers&&this._queue._tileLayers.indexOf(S)>=0&&(this._queue._tileLayers.splice(this._queue._tileLayers.indexOf(S),1),this._queue.initialTrack&&this._queue.track&&this._queue._tileLayers.length&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length)),S},h("tile",this),this};l.defaults={minLevel:0,maxLevel:18,tileOverlap:{x:0,y:0},tileWidth:256,tileHeight:256,wrapX:!0,wrapY:!1,url:null,subdomains:"abc",tileOffset:function(t){return{x:0,y:0}},tilesMaxBounds:null,topDown:!1,keepLower:!0,idleAfter:"view",tileRounding:Math.round,attribution:"",animationDuration:0},i(l,r),t.exports=l},9265:function(t,e,n){"use strict";n.r(e),n.d(e,{init:function(){return d},names:function(){return g}});var i=n(6165),r=n(6269),o=n(4424),a=n(6194),s=n(112),l=n(3712),u=n(7e3),c=1e-10;function d(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<c)throw new Error;this.es?(this.en=(0,a.A)(this.es),this.m1=(0,l.A)(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=f,this.forward=h):(Math.abs(this.phi1)+c>=u.sK?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=m,this.forward=p)}function h(t){var e,n,i,o=(0,r.A)(t.x-(this.long0||0)),a=t.y;return e=this.am1+this.m1-(0,l.A)(a,n=Math.sin(a),i=Math.cos(a),this.en),n=i*o/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function f(t){var e,n,a,l;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=(0,o.A)(t.x,t.y=this.am1-t.y),l=(0,s.A)(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(l))<u.sK)e=Math.sin(l),a=n*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(l);else{if(!(Math.abs(e-u.sK)<=c))throw new Error;a=0}return t.x=(0,r.A)(a+(this.long0||0)),t.y=(0,i.A)(l),t}function p(t){var e,n,i=(0,r.A)(t.x-(this.long0||0)),o=t.y;return n=this.cphi1+this.phi1-o,Math.abs(n)>c?(t.x=n*Math.sin(e=i*Math.cos(o)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function m(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var a=(0,o.A)(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-a,Math.abs(n)>u.sK)throw new Error;return e=Math.abs(Math.abs(n)-u.sK)<=c?0:a*Math.atan2(t.x,t.y)/Math.cos(n),t.x=(0,r.A)(e+(this.long0||0)),t.y=(0,i.A)(n),t}var g=["bonne","Bonne (Werner lat_1=90)"];e.default={init:d,names:g}},9271:function(t){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}},9281:function(t,e,n){var i=n(4626),r=n(1275),o=n(77),a=n(5325),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},r.call(this,t);var e,n=this,i=this._init,u=o();return this.featureType="line",this._subfeatureStyles={lineCap:!0,lineJoin:!0,strokeColor:!0,strokeOffset:!0,strokeOpacity:!0,strokeWidth:!0},this.line=function(t){return void 0===t?n.style("line"):(n.style("line",t),n.dataTime().modified(),n.modified(),n)},this.position=function(t){return void 0===t?n.style("position"):(n.style("position",t),n.dataTime().modified(),n.modified(),n)},this._updatePointSearchInfo=function(){if(u.timestamp()>=n.dataTime().timestamp()&&u.timestamp()>=n.timestamp())return e;u.modified(),e=[];for(var t=n.data(),i=n.line(),r=n.style.get("strokeWidth"),o=s.isFunction(n.style("strokeWidth"))?void 0:r(),l=n.position(),c=n.style.get("closed"),d=s.isFunction(n.style("closed"))?void 0:c(),h=n.style.get("uniformLine"),f=s.isFunction(n.style("uniformLine"))?void 0:h(),p=n.gcs(),m=n.layer().map().gcs(),g=a.onlyInvertedY(p,m),y=0;y<t.length;y+=1){for(var v=t[y],x=void 0===d?c(v,y):d,_=void 0,b=void 0,w=void 0,M=void 0,A=void 0,E=void 0,T=void 0,S=void 0,C=[],k=void 0===f?h(v,y):f,P=i(v,y),O=0;O<P.length;O+=1){var L=P[O],R=l(L,O,v,y);g?R={x:R.x,y:-R.y}:p!==m&&(R=a.transformCoordinates(p,m,R)),void 0===E&&(E={x:R.x,y:R.y}),void 0===T&&(T={x:R.x,y:R.y}),R.x<E.x&&(E.x=R.x),R.x>T.x&&(T.x=R.x),R.y<E.y&&(E.y=R.y),R.y>T.y&&(T.y=R.y),k&&O||(S=void 0===o?r(L,O,v,y):o);var I=Math.ceil(S/2)+2;(void 0===T.r||I>T.r)&&(T.r=I);var F=I*I;_&&C.push({u:R,v:_,r:w>I?w:I,r2:M>F?M:F,i:O,j:b}),_=R,b=O,w=I,M=F,!A&&x&&(A={p:R,r:I,r2:F,i:O})}x&&A&&(_.x!==A.p.x||_.y!==A.p.y)&&C.push({u:_,v:A.p,r:w>A.r?w:A.r,r2:M>A.r2?M:A.r2,i:b,j:A.i}),C.min=E,C.max=T,e.push(C)}return e},this.pointSearch=function(t,i){var r=n.data(),o=[],l=[],u={};if(!r||!r.length||!n.layer())return{found:l,index:o,extra:u};n._updatePointSearchInfo();var c=n.layer().map();i=null===i?c.gcs():void 0===i?c.ingcs():i;var d,h,f,p,m=c.unitsPerPixel(c.zoom()),g=m*m,y=a.transformCoordinates(i,c.gcs(),t),v=n.style.get("strokeWidth"),x=n.style.get("strokeOpacity"),_=n.line();for(h=0;h<e.length;h+=1)for(p=e[h],d=null,f=0;f<p.length;f+=1)if(s.distance2dToLineSquared(y,p[f].u,p[f].v)<=p[f].r2*g&&(d||(d=_(r[h],h)),(x(d[p[f].i],p[f].i,r[h],h)>0||x(d[p[f].j],p[f].j,r[h],h)>0)&&(v(d[p[f].i],p[f].i,r[h],h)>0||v(d[p[f].j],p[f].j,r[h],h)>0))){l.push(r[h]),o.push(h),u[h]=f;break}return{found:l,index:o,extra:u}},this.polygonSearch=function(t,i,r){var o,l,u=n.data(),c=[],d=[],h={},f=n.layer().map(),p=n.style.get("strokeWidth"),m=n.style.get("strokeOpacity"),g=n.line();if(r=null===r?f.gcs():void 0===r?f.ingcs():r,t.outer||(t={outer:t,inner:[]}),!u||!u.length||t.outer.length<3)return{found:d,index:c,extra:h};(i=i||{}).partial=i.partial||!1,(t={outer:a.transformCoordinates(r,f.gcs(),t.outer),inner:(t.inner||[]).map(function(t){return a.transformCoordinates(r,f.gcs(),t)})}).outer.forEach(function(t){o||(o={x:t.x,y:t.y},l={x:t.x,y:t.y}),t.x<o.x&&(o.x=t.x),t.x>l.x&&(l.x=t.x),t.y<o.y&&(o.y=t.y),t.y>l.y&&(l.y=t.y)}),n._updatePointSearchInfo();var y,v,x,_,b,w,M=f.unitsPerPixel(f.zoom());for(y=0;y<e.length;y+=1)if(!(!(x=e[y]).max||x.max.x<o.x-x.max.r*M||x.min.x>l.x+x.max.r*M||x.max.y<o.y-x.max.r*M||x.min.y>l.y+x.max.r*M)){var A=void 0,E=void 0,T=void 0;for(v=0;v<x.length;v+=1)if(_=x[v].u,b=x[v].v,w=x[v].r,!(_.x<o.x-w*M&&b.x<o.x-w*M||_.x>l.x+w*M&&b.x>l.x+w*M||_.y<o.y-w*M&&b.y<o.y-w*M||_.y>l.y+w*M&&b.y>l.y+w*M||(T||(T=g(u[y],y)),m(T[x[v].i],x[v].i,u[y],y)<=0&&m(T[x[v].j],x[v].j,u[y],y)<=0||p(T[x[v].i],x[v].i,u[y],y)<=0&&p(T[x[v].j],x[v].j,u[y],y)<=0))){var S=s.distanceToPolygon2d(_,t),C=s.distanceToPolygon2d(b,t);if(S>-w*M&&S<w*M||C>-w*M&&C<w&M||S*C<0){E=!0;break}if(s.crossedLineSegmentPolygon2d(_,b,t)){E=!0;break}for(var k=w*w*M*M,P=0;P<t.outer.length&&!E;P+=1)E=s.distance2dToLineSquared(t.outer[P],_,b)<k;for(var O=0;O<t.inner.length&&!E;O+=1)for(var L=0;L<t.inner[O].length&&!E;L+=1)E=s.distance2dToLineSquared(t.inner[O][L],_,b)<k;if(E)break;S>0&&(A=!0)}(!i.partial&&A&&!E||i.partial&&(A||E))&&(c.push(y),d.push(u[y]),h[y]={partial:E,segment:v<e[y].length?v:0})}return{found:d,index:c,extra:h}},this.rdpSimplifyData=function(t,e,i,r){t=t||n.data(),i=i||n.style.get("position"),r=r||n.style.get("line");var o=n.layer().map(),l=o.gcs(),u=n.gcs(),c=n.style.get("closed");return void 0===e&&(e=.5*o.unitsPerPixel(o.zoom())),t=t.map(function(t,n){var o=r(t,n),d=a.transformCoordinates(u,l,o.map(function(e,r){return i(e,r,t,n)})),h=s.rdpLineSimplify(d,e,c(t,n),[]);for(var f in(h.length<2||2===h.length&&s.distance2dSquared(h[0],h[1])<e*e)&&(h=[]),h=a.transformCoordinates(l,u,h),t)!t.hasOwnProperty(f)||Array.isArray(t)&&f>=0&&f<t.length||(h[f]=t[f]);return h}),n.style("position",s.identityFunction),n.style("line",s.identityFunction),n.data(t),n},this._init=function(t){t=t||{},i.call(n,t);var e=Object.assign({},{strokeWidth:1,strokeColor:{r:1,g:.8431372549,b:0},strokeStyle:"solid",strokeOpacity:1,antialiasing:2,closed:!1,line:s.identityFunction,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){return t.length>=3?t.slice(0,3):[0,0,0]}},void 0===t.style?{}:t.style);return void 0!==t.line&&(e.line=t.line),void 0!==t.position&&(e.position=t.position),n.style(e),n.dataTime().modified(),n},this._init(t),this};l.create=function(t,e){"use strict";return(e=e||{}).type="line",r.create(t,e)},l.capabilities={feature:"line",basic:"line.basic",multicolor:"line.multicolor"},i(l,r),t.exports=l},9298:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},9304:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=n(77),s=n(642),l=16777216,u=function(t){"use strict";if(!(this instanceof u))return new u(t);o.call(this,t);var e=n(5616),i=n(1611),r=n(4084),c=n(8711),d=n(6238),h=n(8961),f=n(3260);r.call(this);var p,m,g,y,v,x,_,b=this,w=this._exit,M=this._update,A={},E=a(),T=a();function S(t){var e=new i.mapper({dynamicDraw:!0});return e.s_modified=e.modified,e.g_timestamp=a(),e.timestamp=e.g_timestamp.timestamp,e.modified=function(){return e.s_modified(),e.g_timestamp.modified(),e},e.s_render=e.render,e.render=t,e}return this.actors=function(){var t=[];return m&&t.push(m),g&&t.push(g),t},this._build=function(){var t,e,n,r,o,a,s,l,u;b.position()&&((_=b._generateQuads()).imgQuads.length&&!m&&(b.visible(!1),t=S(b._renderImageQuads),(m=new i.actor).setMapper(t),e=new i.material,(n=new i.shaderProgram).addVertexAttribute(new i.vertexAttribute("vertexPosition"),i.vertexAttributeKeys.Position),n.addVertexAttribute(new i.vertexAttribute("textureCoord"),i.vertexAttributeKeys.TextureCoordinate),p=new i.modelViewOriginUniform("modelViewMatrix",_.origin),n.addUniform(p),n.addUniform(new i.projectionUniform("projectionMatrix")),n.addUniform(new i.floatUniform("opacity",1)),n.addUniform(new i.floatUniform("zOffset",0)),(u=new i.uniform(i.GL.INT,"sampler2d")).set(0),n.addUniform(u),l=b.renderer()._glContext(),(o=new i.uniform(l.FLOAT_VEC2,"crop")).set([1,1]),n.addUniform(o),(a=new i.uniform(l.FLOAT_VEC4,"cropsource")).set([0,0,0,0]),n.addUniform(a),n.addShader(i.getCachedShader(l.VERTEX_SHADER,l,d)),n.addShader(i.getCachedShader(l.FRAGMENT_SHADER,l,c)),b._hookBuild&&b._hookBuild(n),e.addAttribute(n),e.addAttribute(new i.blend),s=new i.geometryData,y=void 0,(r=new i.sourceDataT2fv).pushBack([0,0,1,0,0,1,1,1]),s.addSource(r),t.setGeometryData(s),m.setMaterial(e),b.renderer().contextRenderer().addActor(m),b.visible(!0)),_.clrQuads.length&&!g&&(b.visible(!1),t=S(b._renderColorQuads),(g=new i.actor).setMapper(t),e=new i.material,(n=new i.shaderProgram).addVertexAttribute(new i.vertexAttribute("vertexPosition"),i.vertexAttributeKeys.Position),x=new i.modelViewOriginUniform("modelViewMatrix",_.origin),n.addUniform(x),n.addUniform(new i.projectionUniform("projectionMatrix")),n.addUniform(new i.floatUniform("opacity",1)),n.addUniform(new i.floatUniform("zOffset",0)),l=b.renderer()._glContext(),n.addUniform(new i.uniform(l.FLOAT_VEC3,"vertexColor")),n.addShader(i.getCachedShader(l.VERTEX_SHADER,l,f)),n.addShader(i.getCachedShader(l.FRAGMENT_SHADER,l,h)),e.addAttribute(n),e.addAttribute(new i.blend),s=new i.geometryData,v=void 0,t.setGeometryData(s),g.setMaterial(e),b.renderer().contextRenderer().addActor(g),b.visible(!0)),p&&p.setOrigin(_.origin),x&&x.setOrigin(_.origin),b._updateTextures(),b.buildTime().modified())},this._updateTextures=function(){e.each(_.imgQuads,function(t,e){var n=e.imageTexture||e.image;if(n)if(n._texture)e.texture=n._texture;else{var r=new i.texture;e.imageTexture?r.setTexture(n):r.setImage(n);var o=b.nearestPixel();if(void 0!==o)if(!0!==o&&s.isNonNullFinite(o))o=b.layer().map().zoom()>=o;o&&r.setNearestPixel(!0),e.texture=n._texture=r}})},this._renderColorQuads=function(t){if(_.clrQuads.length){var n=this;(n.timestamp()>T.timestamp()||b.dataTime().timestamp()>T.timestamp()||t.m_contextChanged||!v||12*_.clrQuads.length>v.length)&&function(t){var n=t.m_context,i=!1;_.clrQuads.length&&((!v||v.length<12*_.clrQuads.length||!A.clrQuadsPosition)&&(A.clrQuadsPosition&&n.deleteBuffer(A.clrQuadsPosition),A.clrQuadsPosition=n.createBuffer(),v=new Float32Array(12*Math.max(128,2*_.clrQuads.length)),i=!0),e.each(_.clrQuads,function(t,e){for(var n=0;n<12;n+=1)v[12*t+n]=e.pos[n]-_.origin[n%3]}),n.bindBuffer(n.ARRAY_BUFFER,A.clrQuadsPosition),i?n.bufferData(n.ARRAY_BUFFER,v,n.DYNAMIC_DRAW):n.bufferSubData(n.ARRAY_BUFFER,0,v)),T.modified()}(t),n.s_render(t,!0);var r,o,a,s=t.m_context;s.bindBuffer(s.ARRAY_BUFFER,A.clrQuadsPosition),e.each(_.clrQuads,function(e,n){n.opacity!==r&&(r=n.opacity,s.uniform1fv(t.m_material.shaderProgram().uniformLocation("opacity"),new Float32Array([r]))),(n.zOffset||0)!==o&&(o=n.zOffset||0,s.uniform1fv(t.m_material.shaderProgram().uniformLocation("zOffset"),new Float32Array([o]))),a&&a.r===n.color.r&&a.g===n.color.g&&a.b===n.color.b||(a=n.color,s.uniform3fv(t.m_material.shaderProgram().uniformLocation("vertexColor"),new Float32Array([a.r,a.g,a.b]))),s.bindBuffer(s.ARRAY_BUFFER,A.clrQuadsPosition),s.vertexAttribPointer(i.vertexAttributeKeys.Position,3,s.FLOAT,!1,12,12*e*4),s.enableVertexAttribArray(i.vertexAttributeKeys.Position),s.drawArrays(s.TRIANGLE_STRIP,0,4)}),s.bindBuffer(s.ARRAY_BUFFER,null),n.undoBindVertexData(t)}},this._renderImageQuads=function(t){if(_.imgQuads.length){var n=this;(n.timestamp()>E.timestamp()||b.dataTime().timestamp()>E.timestamp()||t.m_contextChanged||!y||12*_.imgQuads.length>y.length)&&function(t){var n=t.m_context,i=!1;_.imgQuads.length&&((!y||y.length<12*_.imgQuads.length||!A.imgQuadsPosition)&&(A.imgQuadsPosition&&n.deleteBuffer(A.imgQuadsPosition),A.imgQuadsPosition=n.createBuffer(),y=new Float32Array(12*Math.max(128,2*_.imgQuads.length)),i=!0),e.each(_.imgQuads,function(t,e){for(var n=0;n<12;n+=1)y[12*t+n]=e.pos[n]-_.origin[n%3]}),n.bindBuffer(n.ARRAY_BUFFER,A.imgQuadsPosition),i?n.bufferData(n.ARRAY_BUFFER,y,n.DYNAMIC_DRAW):n.bufferSubData(n.ARRAY_BUFFER,0,y)),E.modified()}(t),n.s_render(t,!0);var r,o,a,u,c,d,h,f,p=t.m_context,m={x:1,y:1},g={x0:0,y0:0,x1:1,y1:1},v=b.nearestPixel();if(void 0!==v){if(!0!==v&&s.isNonNullFinite(v)){var x=b.layer().map().zoom();v=x>=v}_.imgQuads.forEach(function(e){if((e.image||e.imageTexture)&&e.texture&&e.texture.nearestPixel()!==v&&e.texture.textureHandle()){t.m_context.bindTexture(i.GL.TEXTURE_2D,e.texture.textureHandle()),t.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,v?i.GL.NEAREST:i.GL.LINEAR),t.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,v?i.GL.NEAREST:i.GL.LINEAR),t.m_context.bindTexture(i.GL.TEXTURE_2D,null);var n=e.texture.modified;e.texture.modified=function(){},e.texture.setNearestPixel(v),e.texture.modified=n}})}b._hookRenderImageQuads&&b._hookRenderImageQuads(t,_.imgQuads),p.bindBuffer(p.ARRAY_BUFFER,A.imgQuadsPosition),e.each(_.imgQuads,function(e,n){(n.image||n.imageTexture)&&(n.texture.bind(t),n.image&&(c=n.image.width,d=n.image.height),n.imageTexture&&(c=n.imageTexture.width,d=n.imageTexture.height),(n.image||n.imageTexture)&&c*d>l&&(l=c*d,p.getError()===p.OUT_OF_MEMORY&&console.log("Insufficient GPU memory for texture")),n.opacity!==r&&(r=n.opacity,p.uniform1fv(t.m_material.shaderProgram().uniformLocation("opacity"),new Float32Array([r]))),(n.zOffset||0)!==o&&(o=n.zOffset||0,p.uniform1fv(t.m_material.shaderProgram().uniformLocation("zOffset"),new Float32Array([o]))),a=n.crop||{x:1,y:1},m&&a.x===m.x&&a.y===m.y||(m=a,p.uniform2fv(t.m_material.shaderProgram().uniformLocation("crop"),new Float32Array([void 0===m.x?1:m.x,void 0===m.y?1:m.y]))),u=n.crop||{left:0,top:0,right:c,bottom:d},g&&u.left===g.left&&u.top===g.top&&u.right===g.right&&u.bottom===g.bottom&&h===c&&f===d||(g=u,h=c,f=d,p.uniform4fv(t.m_material.shaderProgram().uniformLocation("cropsource"),new Float32Array([g.left/c,g.top/d,g.right/c,g.bottom/d]))),p.bindBuffer(p.ARRAY_BUFFER,A.imgQuadsPosition),p.vertexAttribPointer(i.vertexAttributeKeys.Position,3,p.FLOAT,!1,12,12*e*4),p.enableVertexAttribArray(i.vertexAttributeKeys.Position),p.drawArrays(p.TRIANGLE_STRIP,0,4),n.texture.undoBind(t))}),p.bindBuffer(p.ARRAY_BUFFER,null),n.undoBindVertexData(t)}},this._update=function(){M.call(b),(b.buildTime().timestamp()<=b.dataTime().timestamp()||b.updateTime().timestamp()<b.timestamp())&&b._build(),g&&(g.setVisible(b.visible()),g.material().setBinNumber(b.bin())),m&&(m.setVisible(b.visible()),m.material().setBinNumber(b.bin())),b.updateTime().modified()},this._cleanup=function(){m&&(b.renderer().contextRenderer().removeActor(m),m=null),g&&(b.renderer().contextRenderer().removeActor(g),g=null),y=void 0,v=void 0,A&&Object.keys(A).forEach(function(t){delete A[t]}),_&&_.imgQuads&&(_.imgQuads.forEach(function(t){t.texture&&(delete t.texture,t.image&&t.image._texture&&delete t.image._texture),t.imageTexture&&delete t.imageTexture._texture}),b._updateTextures()),b.modified()},this.setShader=function(t,e){switch(t){case"image_vertex":d=e;break;case"image_fragment":c=e;break;case"color_vertex":f=e;break;case"color_fragment":h=e;break;default:return}return b},this._exit=function(){b._cleanup(),w.call(b)},b._init(t),this};i(u,o);var c={};c[o.capabilities.color]=!0,c[o.capabilities.image]=!0,c[o.capabilities.imageCrop]=!0,c[o.capabilities.imageFixedScale]=!1,c[o.capabilities.imageFull]=!0,c[o.capabilities.canvas]=!1,c[o.capabilities.video]=!1,c[o.capabilities.texture]=!0,r("webgl","quad",u,c),t.exports=u},9336:function(t){t.exports="/* lineFeature vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute vec3 prev;\nattribute vec3 next;\nattribute vec3 far;\nattribute float flags;\n\nattribute vec3 strokeColor;\nattribute float strokeOpacity;\nattribute float strokeWidth;\n\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform float pixelWidth;\nuniform float aspect;\nuniform float miterLimit;\nuniform float antialiasing;\n\nvarying vec4 strokeColorVar;\nvarying vec4 subpos; /* px, py, length - px, width */\nvarying vec4 info; /* near mode, far mode, offset */\nvarying vec4 angles; /* near angle cos, sin, far angle cos, sin */\n\nconst float PI = 3.14159265358979323846264;\n\nvec4 viewCoord(vec3 c) {\n vec4 result = projectionMatrix * modelViewMatrix * vec4(c.xyz, 1.0);\n if (result.w != 0.0) result = result / result.w;\n return result;\n}\n\nfloat atan2(float y, float x) {\n if (x > 0.0) return atan(y / x);\n if (x < 0.0 && y >= 0.0) return atan(y / x) + PI;\n if (x < 0.0) return atan(y / x) - PI;\n return sign(y) * 0.5 * PI;\n}\n\nvoid main(void)\n{\n /* If any vertex has been deliberately set to a negative opacity,\n * skip doing computations on it. */\n if (strokeOpacity < 0.0) {\n gl_Position = vec4(2.0, 2.0, 0.0, 1.0);\n return;\n }\n /* convert coordinates. We have four values, since we need to\n * calculate the angles between the lines formed by prev-pos and\n * pos-next, and between pos-next and next-far, plus know the angle\n * (prev)---(pos)---(next)---(far) => A---B---C---D */\n vec4 A = viewCoord(prev);\n vec4 B = viewCoord(pos);\n vec4 C = viewCoord(next);\n vec4 D = viewCoord(far);\n // calculate line segment vector and angle\n vec2 deltaCB = C.xy - B.xy;\n if (deltaCB == vec2(0.0, 0.0)) {\n gl_Position = vec4(2.0, 2.0, 0.0, 1.0);\n return;\n }\n float lineLength = length(vec2(deltaCB.x, deltaCB.y / aspect)) / pixelWidth;\n // if lines reverse upon themselves and are not nearly the same length, skip\n // joins. This is a heuristic; the correct method would to be to pass some\n // sort of length of the adjacent line to the fragment renderer and adjust\n // which fragments are rendered, but this is much more complex.\n float abLimit = length(vec2(A.x - B.x, (A.y - B.y) / aspect)) / pixelWidth;\n float dcLimit = length(vec2(D.x - C.x, (D.y - C.y) / aspect)) / pixelWidth;\n if (abLimit >= lineLength - antialiasing - strokeWidth * 0.5 && abLimit <= lineLength + antialiasing + strokeWidth * 0.5) {\n abLimit = 0.0001;\n } else {\n if (abLimit < lineLength) abLimit = lineLength;\n abLimit = (strokeWidth - antialiasing) / (abLimit + antialiasing);\n if (abLimit < 0.0001) abLimit = 0.0001;\n if (abLimit > 0.1) abLimit = 0.1;\n }\n if (dcLimit >= lineLength - antialiasing - strokeWidth * 0.5 && dcLimit <= lineLength + antialiasing + strokeWidth * 0.5) {\n dcLimit = 0.0001;\n } else {\n if (dcLimit < lineLength) dcLimit = lineLength;\n dcLimit = (strokeWidth - antialiasing) / (dcLimit + antialiasing);\n if (dcLimit < 0.0001) dcLimit = 0.0001;\n if (dcLimit > 0.1) dcLimit = 0.1;\n }\n float angleCB = atan2(deltaCB.y, deltaCB.x * aspect);\n // values we need to pass along\n strokeColorVar = vec4(strokeColor, strokeOpacity);\n // extract values from our flags field\n int vertex = int(mod(flags, 4.0));\n int nearMode = int(mod(floor(flags / 4.0), 8.0));\n int farMode = int(mod(floor(flags / 32.0), 8.0));\n // we use 11 bits of the flags for the offset, where -1023 to 1023\n // maps to -1 to 1. The 11 bits are a signed value, so simply\n // selecting the bits will result in an unsigned values that may be\n // greater than 1, in which case we have to subtract appropriately.\n float offset = mod(floor(flags / 256.0), 2048.0) / 1023.0;\n if (offset > 1.0) offset -= 2048.0 / 1023.0;\n // by default, offset by the width and don't extend lines. Later,\n // calculate line extensions based on end cap and end join modes\n float yOffset = strokeWidth + antialiasing;\n if (vertex == 0) yOffset *= -1.0;\n yOffset += strokeWidth * offset;\n float xOffset = 0.0;\n // end caps\n if (nearMode == 0) {\n xOffset = antialiasing;\n } else if (nearMode == 1 || nearMode == 2) {\n xOffset = strokeWidth + antialiasing;\n }\n\n // If joining lines, calculate the angles in screen space formed by\n // the near end (A-B-C) and far end (B-C-D), and determine how much\n // space is needed for the particular join.\n // This could be changed: if the lines are not a uniform width and\n // offset, then the functional join angle is not simply half the\n // angle between the two lines, but rather half the angle of the\n // inside edge of the the two lines.\n float cosABC = 1.0, sinABC = 0.0, cosBCD = 1.0, sinBCD = 0.0; // of half angles\n // handle near end\n if (nearMode >= 4) {\n float angleBA = atan2(B.y - A.y, (B.x - A.x) * aspect);\n if (A.xy == B.xy) angleBA = angleCB;\n float angleABC = angleCB - angleBA;\n // ensure angle is in the range [-PI, PI], then take the half angle\n angleABC = (mod(angleABC + 3.0 * PI, 2.0 * PI) - PI) / 2.0;\n cosABC = cos(angleABC); sinABC = sin(angleABC);\n // if this angle is close to flat, pass-through the join\n if (nearMode >= 4 && (cosABC > 0.999999 || cosABC < abLimit)) {\n nearMode = 3;\n }\n // miter, miter-clip\n if (nearMode == 4 || nearMode == 7) {\n if (cosABC < 0.000001 || 1.0 / cosABC > miterLimit) {\n if (nearMode == 4) {\n nearMode = 5;\n } else {\n xOffset = miterLimit * strokeWidth * (1.0 - offset * sign(sinABC)) + antialiasing;\n }\n } else {\n // we add an extra 1.0 to the xOffset to make sure that fragment\n // shader is doing the clipping\n xOffset = abs(sinABC / cosABC) * strokeWidth * (1.0 - offset * sign(sinABC)) + antialiasing + 1.0;\n nearMode = 4;\n }\n }\n // bevel or round join\n if (nearMode == 5 || nearMode == 6) {\n xOffset = strokeWidth * (1.0 - offset * sign(sinABC)) + antialiasing;\n }\n }\n\n // handle far end\n if (farMode >= 4) {\n float angleDC = atan2(D.y - C.y, (D.x - C.x) * aspect);\n if (D.xy == C.xy) angleDC = angleCB;\n float angleBCD = angleDC - angleCB;\n // ensure angle is in the range [-PI, PI], then take the half angle\n angleBCD = (mod(angleBCD + 3.0 * PI, 2.0 * PI) - PI) / 2.0;\n cosBCD = cos(angleBCD); sinBCD = sin(angleBCD);\n // if this angle is close to flat, pass-through the join\n if (farMode >= 4 && (cosBCD > 0.999999 || cosBCD < dcLimit)) {\n farMode = 3;\n }\n // miter, miter-clip\n if (farMode == 4 || farMode == 7) {\n if (cosBCD < 0.000001 || 1.0 / cosBCD > miterLimit) {\n if (farMode == 4) farMode = 5;\n } else {\n farMode = 4;\n }\n }\n }\n\n // compute the location of a vertex to include everything that might\n // need to be rendered\n xOffset *= -1.0;\n gl_Position = vec4(\n B.x + (xOffset * cos(angleCB) - yOffset * sin(angleCB)) * pixelWidth,\n B.y + (xOffset * sin(angleCB) + yOffset * cos(angleCB)) * pixelWidth * aspect,\n B.z, 1.0);\n // store other values needed to determine which pixels to plot.\n if (vertex == 0 || vertex == 1) {\n subpos = vec4(xOffset, yOffset, lineLength - xOffset, strokeWidth);\n info = vec4(float(nearMode), float(farMode), offset, 0.0);\n angles = vec4(cosABC, sinABC, cosBCD, sinBCD);\n } else {\n subpos = vec4(lineLength - xOffset, -yOffset, xOffset, strokeWidth);\n info = vec4(float(farMode), float(nearMode), -offset, 0.0);\n angles = vec4(cosBCD, -sinBCD, cosABC, -sinABC);\n }\n}\n"},9363:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}},9383:function(t){"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9393:function(t,e,n){"use strict";function i(t){return t<0?-1:1}n.d(e,{A:function(){return i}})},9402:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return u},init:function(){return l},inverse:function(){return c},names:function(){return d}});var i=n(7072),r=n(6269),o=n(851),a=n(6157),s=n(7e3);function l(){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.sphere?this.k0=Math.cos(this.lat_ts):this.k0=(0,i.A)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function u(t){var e,n,i=t.x,a=t.y;if(a*s.dX>90&&a*s.dX<-90&&i*s.dX>180&&i*s.dX<-180)return null;if(Math.abs(Math.abs(a)-s.sK)<=s.H0)return null;if(this.sphere)e=this.x0+this.a*this.k0*(0,r.A)(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(s.Vj+.5*a));else{var l=Math.sin(a),u=(0,o.A)(this.e,a,l);e=this.x0+this.a*this.k0*(0,r.A)(i-this.long0),n=this.y0-this.a*this.k0*Math.log(u)}return t.x=e,t.y=n,t}function c(t){var e,n,i=t.x-this.x0,o=t.y-this.y0;if(this.sphere)n=s.sK-2*Math.atan(Math.exp(-o/(this.a*this.k0)));else{var l=Math.exp(-o/(this.a*this.k0));if(-9999===(n=(0,a.A)(this.e,l)))return null}return e=(0,r.A)(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t}var d=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"];e.default={init:l,forward:u,inverse:c,names:d}},9404:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}},9436:function(t,e,n){t.exports=function(t,e,n,r,o,a){var s,l;e||(e=3);n||(n=0);l=r?Math.min(r*e+n,t.length):t.length;for(s=n;s<l;s+=e)i[0]=t[s],i[1]=t[s+1],i[2]=t[s+2],o(i,i,a),t[s]=i[0],t[s+1]=i[1],t[s+2]=i[2];return t};var i=n(1220)()},9443:function(t,e,n){var i=n(7854),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=n(2493).d3,r=n(6409),o=this,s=[],l=null,u=null,c=null;this.categories=function(t){return void 0===t?s.slice():(s=t.slice().map(function(t){return"line"===t.type&&(t.style.fill=!1,t.style.stroke=!0),t}),o.draw(),o)},this.size=function(){var t,n=1,i=e.select(o.canvas()).append("text").style("opacity",1e-6);return s.forEach(function(t){i.text(t.name),n=Math.max(n,i.node().getBBox().width)}),i.remove(),t=20*(s.length+1),{width:n+50,height:t}},this.draw=function(){function t(t){t.style("fill",function(t){return t.style.fill||void 0===t.style.fill?t.style.fillColor:"none"}).style("fill-opacity",function(t){return void 0===t.style.fillOpacity?1:t.style.fillOpacity}).style("stroke",function(t){return t.style.stroke||void 0===t.style.stroke?t.style.strokeColor:"none"}).style("stroke-opacity",function(t){return void 0===t.style.strokeOpacity?1:t.style.strokeOpacity}).style("stroke-width",function(t){return void 0===t.style.strokeWidth?1.5:t.style.strokeWidth})}o._init(),c.attr("height",o.size().height+24).style("display",null);var e=o._scale(),n=u.selectAll("g.geo-label").data(s,function(t){return t.name}).enter().append("g").attr("class","geo-label").attr("transform",function(t,n){return"translate(0,"+e.y(n)+")"});return t(n.filter(function(t){return"point"!==t.type&&"line"!==t.type}).append("rect").attr("x",0).attr("y",-6).attr("rx",5).attr("ry",5).attr("width",40).attr("height",12)),t(n.filter(function(t){return"point"===t.type}).append("circle").attr("cx",20).attr("cy",0).attr("r",6)),t(n.filter(function(t){return"line"===t.type}).append("line").attr("x1",0).attr("y1",0).attr("x2",40).attr("y2",0)),n.append("text").attr("x","50px").attr("y",0).attr("dy","0.3em").text(function(t){return t.name}),o.reposition(),o},this._scale=function(){return{x:e.scaleLinear().domain([0,1]).range([0,o.size().width]),y:e.scaleLinear().domain([0,s.length-1]).range([6,o.size().height-6])}},this._init=function(){l||(o._createCanvas(),o._appendCanvasToParent());var t=o.size().width+24+4,n=o.size().height+24+4;l&&l.remove(),e.select(o.canvas()).attr("width",t).attr("height",n),l=e.select(o.canvas()).append("g"),u=l.append("g").attr("transform","translate("+[14,14]+")"),(c=u.append("rect").attr("x",-12).attr("y",-12).attr("width",t-4).attr("height",n-4).attr("rx",3).attr("ry",3)).style("stroke","black").style("stroke-width","1.5px").style("fill","white").style("fill-opacity",.75).style("display","none"),u.on("mousedown",function(t){t.stopPropagation()}),u.on("mouseover",function(){c.transition().duration(250).style("fill-opacity",1)}),u.on("mouseout",function(){c.transition().duration(250).style("fill-opacity",.75)}),o.reposition()},this.geoOn(r.resize,function(){o.draw()})};r(a,i),o("dom","legend",a),t.exports=a},9456:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(2493).d3,i=n(5005),r=n(77),s=n(642);t=t||{},o.call(this,t),i.call(this);var l=this,u=this._init,c=r(),d=0,h=this._update;return this._init=function(t){return u.call(l,t),l},this._build=function(){var t,n,i=l.data()||[],r=l.style(),o=l.renderer(),a=l.position();for(h.call(l),r.fill=function(){return!1},i.forEach(function(n,i){var u,c,d=l.line()(n,i),h={};function f(t){return s.isFunction(t)?function(){return t(d[0],0,n,i)}:t}for(c in r)r.hasOwnProperty(c)&&(h[c]=f(r[c]));t=e.line().x(function(t){return l.featureGcsToDisplay(t).x}).y(function(t){return l.featureGcsToDisplay(t).y}).curve(l.style.get("closed")(n,i)&&d.length>2?e.curveLinearClosed:e.curveLinear),u={data:[d.map(function(t,e){return a(t,e,n,i)})],append:"path",attributes:{d:t},id:l._svgid()+i,classes:["svgLineFeature","svgSubLine-"+i],visible:l.visible,style:h},o._drawFeatures(u)}),n=i.length;n<d;n+=1)o._removeFeature(l._svgid()+n);return d=i.length,c.modified(),l.updateTime().modified(),l},this._update=function(){return h.call(l),l.timestamp()>=c.timestamp()&&l._build(),l},this._init(t),this};i(a,o);var s={};s[o.capabilities.basic]=!0,s[o.capabilities.multicolor]=!1,r("svg","line",a,s),t.exports=a},9463:function(t){t.exports=function(t,e){e=e||1;var n=2*Math.random()*Math.PI,i=2*Math.random()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t}},9506:function(t){t.exports="/* polygonFeature vertex shader */\n\nattribute vec3 pos;\nattribute vec3 fillColor;\nattribute float fillOpacity;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying vec4 fillColorVar;\n\nvoid main(void)\n{\n vec4 clipPos = projectionMatrix * modelViewMatrix * vec4(pos.xyz, 1.0);\n if (clipPos.w != 0.0) {\n clipPos = clipPos/clipPos.w;\n }\n fillColorVar = vec4(fillColor, fillOpacity);\n gl_Position = clipPos;\n}\n"},9564:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,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}},9666:function(t){t.exports=function(t,e,n){var i=new Float32Array(3);return i[0]=t,i[1]=e,i[2]=n,i}},9689:function(t,e,n){var i={"./aea.js":4894,"./aeqd.js":6014,"./bonne.js":9265,"./cass.js":3245,"./cea.js":8104,"./eqc.js":780,"./eqdc.js":7724,"./eqearth.js":8197,"./equi.js":63,"./etmerc.js":3426,"./gauss.js":4025,"./geocent.js":5904,"./geos.js":1017,"./gnom.js":5106,"./gstmerc.js":6500,"./krovak.js":6167,"./laea.js":8506,"./lcc.js":993,"./longlat.js":2308,"./merc.js":9402,"./mill.js":969,"./moll.js":6155,"./nzmg.js":6731,"./omerc.js":431,"./ortho.js":6145,"./poly.js":741,"./qsc.js":2513,"./robin.js":8067,"./sinu.js":1034,"./somerc.js":9872,"./stere.js":3084,"./sterea.js":6789,"./tmerc.js":5518,"./tpers.js":251,"./utm.js":2924,"./vandg.js":6671};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=9689},9726:function(t,e,n){var i=n(4626),r=n(2274),o=n(1098).registerRenderer,a=function(t){"use strict";if(!(this instanceof a))return new a(t);r.call(this,t),t=t||{};var e=this;return this.api=function(){return"dom"},this._init=function(t){var n=e.layer().node();return!e.canvas()&&n&&n.length&&e.canvas(n[0]),e},this._init(t),this};i(a,r),o("dom",a),t.exports=a},9737:function(t){t.exports=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}},9747:function(t,e,n){"use strict";function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){var n,i,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,s=e&&e.length,u=s?e[0]*o:t.length,c=a(t,0,u,o,!0),d=[];if(!c||c.next===c.prev)return d;if(s&&(c=function(t,e,n,i){for(var r=[],o=0,s=e.length;o<s;o++){var l=a(t,e[o]*i,o<s-1?e[o+1]*i:t.length,i,!1);l===l.next&&(l.steiner=!0),r.push(y(l))}r.sort(f);for(var u=0;u<r.length;u++)n=p(r[u],n);return n}(t,e,c,o)),t.length>80*o){for(var h=n=t[0],m=i=t[1],g=o;g<u;g+=o){var v=t[g],x=t[g+1];v<n&&(n=v),x<i&&(i=x),v>h&&(h=v),x>m&&(m=x)}r=0!==(r=Math.max(h-n,m-i))?32767/r:0}return l(c,d,o,n,i,r,0),d}function a(t,e,n,i,r){var o;if(r===L(t,e,n,i)>0)for(var a=e;a<n;a+=i)o=C(a/i|0,t[a],t[a+1],o);else for(var s=n-i;s>=e;s-=i)o=C(s/i|0,t[s],t[s+1],o);return o&&w(o,o.next)&&(k(o),o=o.next),o}function s(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!w(i,i.next)&&0!==b(i.prev,i,i.next))i=i.next;else{if(k(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function l(t,e,n,i,r,o,a){if(t){!a&&o&&function(t,e,n,i){var r=t;do{0===r.z&&(r.z=g(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n=1;do{var i=t,r=void 0;t=null;var o=null;for(e=0;i;){e++;for(var a=i,s=0,l=0;l<n&&(s++,a=a.nextZ);l++);for(var u=n;s>0||u>0&&a;)0!==s&&(0===u||!a||i.z<=a.z)?(r=i,i=i.nextZ,s--):(r=a,a=a.nextZ,u--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;i=a}o.nextZ=null,n*=2}while(e>1)}(r)}(t,i,r,o);for(var f=t;t.prev!==t.next;){var p=t.prev,m=t.next;if(o?c(t,i,r,o):u(t))e.push(p.i,t.i,m.i),k(t),t=m.next,f=m.next;else if((t=m)===f){a?1===a?l(t=d(s(t),e),e,n,i,r,o,2):2===a&&h(t,e,n,i,r,o):l(s(t),e,n,i,r,o,1);break}}}}function u(t){var e=t.prev,n=t,i=t.next;if(b(e,n,i)>=0)return!1;for(var r=e.x,o=n.x,a=i.x,s=e.y,l=n.y,u=i.y,c=Math.min(r,o,a),d=Math.min(s,l,u),h=Math.max(r,o,a),f=Math.max(s,l,u),p=i.next;p!==e;){if(p.x>=c&&p.x<=h&&p.y>=d&&p.y<=f&&x(r,s,o,l,a,u,p.x,p.y)&&b(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function c(t,e,n,i){var r=t.prev,o=t,a=t.next;if(b(r,o,a)>=0)return!1;for(var s=r.x,l=o.x,u=a.x,c=r.y,d=o.y,h=a.y,f=Math.min(s,l,u),p=Math.min(c,d,h),m=Math.max(s,l,u),y=Math.max(c,d,h),v=g(f,p,e,n,i),_=g(m,y,e,n,i),w=t.prevZ,M=t.nextZ;w&&w.z>=v&&M&&M.z<=_;){if(w.x>=f&&w.x<=m&&w.y>=p&&w.y<=y&&w!==r&&w!==a&&x(s,c,l,d,u,h,w.x,w.y)&&b(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,M.x>=f&&M.x<=m&&M.y>=p&&M.y<=y&&M!==r&&M!==a&&x(s,c,l,d,u,h,M.x,M.y)&&b(M.prev,M,M.next)>=0)return!1;M=M.nextZ}for(;w&&w.z>=v;){if(w.x>=f&&w.x<=m&&w.y>=p&&w.y<=y&&w!==r&&w!==a&&x(s,c,l,d,u,h,w.x,w.y)&&b(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;M&&M.z<=_;){if(M.x>=f&&M.x<=m&&M.y>=p&&M.y<=y&&M!==r&&M!==a&&x(s,c,l,d,u,h,M.x,M.y)&&b(M.prev,M,M.next)>=0)return!1;M=M.nextZ}return!0}function d(t,e){var n=t;do{var i=n.prev,r=n.next.next;!w(i,r)&&M(i,n,n.next,r)&&T(i,r)&&T(r,i)&&(e.push(i.i,n.i,r.i),k(n),k(n.next),n=t=r),n=n.next}while(n!==t);return s(n)}function h(t,e,n,i,r,o){var a=t;do{for(var u=a.next.next;u!==a.prev;){if(a.i!==u.i&&_(a,u)){var c=S(a,u);return a=s(a,a.next),c=s(c,c.next),l(a,e,n,i,r,o,0),void l(c,e,n,i,r,o,0)}u=u.next}a=a.next}while(a!==t)}function f(t,e){var n=t.x-e.x;0===n&&(0===(n=t.y-e.y)&&(n=(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)));return n}function p(t,e){var n=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;if(w(t,i))return i;do{if(w(t,i.next))return i.next;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&&s>a&&(a=s,n=i.x<i.next.x?i:i.next,s===r))return n}i=i.next}while(i!==e);if(!n)return null;var l=n,u=n.x,c=n.y,d=1/0;i=n;do{if(r>=i.x&&i.x>=u&&r!==i.x&&v(o<c?r:a,o,u,c,o<c?a:r,o,i.x,i.y)){var h=Math.abs(o-i.y)/(r-i.x);T(i,t)&&(h<d||h===d&&(i.x>n.x||i.x===n.x&&m(n,i)))&&(n=i,d=h)}i=i.next}while(i!==l);return n}(t,e);if(!n)return e;var i=S(n,t);return s(i,i.next),s(n,n.next)}function m(t,e){return b(t.prev,t,e.prev)<0&&b(e.next,t,t.next)<0}function g(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function y(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function v(t,e,n,i,r,o,a,s){return(r-a)*(e-s)>=(t-a)*(o-s)&&(t-a)*(i-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(r-a)*(i-s)}function x(t,e,n,i,r,o,a,s){return!(t===a&&e===s)&&v(t,e,n,i,r,o,a,s)}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&&M(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{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}while(n!==t);return i}(t,e)&&(b(t.prev,t,e.prev)||b(t,e.prev,e))||w(t,e)&&b(t.prev,t,t.next)>0&&b(e.prev,e,e.next)>0)}function b(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function w(t,e){return t.x===e.x&&t.y===e.y}function M(t,e,n,i){var r=E(b(t,e,n)),o=E(b(t,e,i)),a=E(b(n,i,t)),s=E(b(n,i,e));return r!==o&&a!==s||(!(0!==r||!A(t,n,e))||(!(0!==o||!A(t,i,e))||(!(0!==a||!A(n,t,i))||!(0!==s||!A(n,e,i)))))}function A(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 E(t){return t>0?1:t<0?-1:0}function T(t,e){return b(t.prev,t,t.next)<0?b(t,e,t.next)>=0&&b(t,t.prev,e)>=0:b(t,e,t.prev)<0||b(t,t.next,e)<0}function S(t,e){var n=P(t.i,t.x,t.y),i=P(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function C(t,e,n,i){var r=P(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function k(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 P(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function O(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(L(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var u=e[s]*n,c=s<l-1?e[s+1]*n:t.length;a-=Math.abs(L(t,u,c,n))}for(var d=0,h=0;h<i.length;h+=3){var f=i[h]*n,p=i[h+1]*n,m=i[h+2]*n;d+=Math.abs((t[f]-t[m])*(t[p+1]-t[f+1])-(t[f]-t[p])*(t[m+1]-t[f+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)}function L(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 R(t){var e,n=[],r=[],o=t[0][0].length,a=0,s=0,l=i(t);try{for(l.s();!(e=l.n()).done;){var u,c=e.value,d=i(c);try{for(d.s();!(u=d.n()).done;)for(var h=u.value,f=0;f<o;f++)n.push(h[f])}catch(t){d.e(t)}finally{d.f()}s&&(a+=s,r.push(a)),s=c.length}}catch(t){l.e(t)}finally{l.f()}return{vertices:n,holes:r,dimensions:o}}n.r(e),n.d(e,{default:function(){return o},deviation:function(){return O},flatten:function(){return R}})},9779:function(t){var e={toPolygon:function(t,e){function n(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function n(e){var n=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[n]})}for(var i=n(e[0]),r=1;r<e.length;r++)i=t.selectDifference(t.combine(i,n(e[r])));return i}if("Polygon"===e.type)return t.polygon(n(e.coordinates));if("MultiPolygon"===e.type){for(var i=t.segments({inverted:!1,regions:[]}),r=0;r<e.coordinates.length;r++)i=t.selectUnion(t.combine(i,n(e.coordinates[r])));return t.polygon(i)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(t,e,n){function i(t,n){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],n)}function r(t){return{region:t,children:[]}}n=t.polygon(t.segments(n));var o=r(null);function a(t,e){for(var n=0;n<t.children.length;n++){if(i(e,(s=t.children[n]).region))return void a(s,e)}var o=r(e);for(n=0;n<t.children.length;n++){var s;i((s=t.children[n]).region,e)&&(o.children.push(s),t.children.splice(n,1),n--)}t.children.push(o)}for(var s=0;s<n.regions.length;s++){var l=n.regions[s];l.length<3||a(o,l)}function u(t,e){for(var n=0,i=t[t.length-1][0],r=t[t.length-1][1],o=[],a=0;a<t.length;a++){var s=t[a][0],l=t[a][1];o.push([s,l]),n+=l*i-s*r,i=s,r=l}return n<0!==e&&o.reverse(),o.push([o[0][0],o[0][1]]),o}var c=[];function d(t){var e=[u(t.region,!1)];c.push(e);for(var n=0;n<t.children.length;n++)e.push(h(t.children[n]))}function h(t){for(var e=0;e<t.children.length;e++)d(t.children[e]);return u(t.region,!0)}for(s=0;s<o.children.length;s++)d(o.children[s]);return c.length<=0?{type:"Polygon",coordinates:[]}:1==c.length?{type:"Polygon",coordinates:c[0]}:{type:"MultiPolygon",coordinates:c}}};t.exports=e},9803:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KPHBhdGggZD0iTTAsMTFsMTEsMGwwLC0xMWwyLDBsMCwxMWwxMSwwbDAsMmwtMTEsMGwwLDExbC0yLDBsMCwtMTFsLTExLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+CjxwYXRoIGQ9Ik0zMiwzMC41OWwtMS40MSwxLjQxbC0yLjEyLC0yLjEybC0yLjEyLDIuMTJsLTEuNDEsLTEuNDFsMi4xMiwtMi4xMmwtMi4xMiwtMi4xMmwxLjQxLC0xLjQxbDIuMTIsMi4xMmwyLjEyLC0yLjEybDEuNDEsMS40MWwtMi4xMiwyLjEyeiIgZmlsbD0iYmxhY2siIHN0cm9rZS13aWR0aD0iMCIvPgo8L3N2Zz4K"},9838:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.mapper=function(t){"use strict";if(!(this instanceof i.mapper))return new i.mapper(t);i.boundingObject.call(this);var e=[0,1,1],n=null,r=[],a={},s=void 0!==(t=t||{}).dynamicDraw&&t.dynamicDraw,l=o(),u=null,c=this;function d(t){a={},r=[]}function h(t){c.deleteVertexBufferObjects(t),d(),function(t){if(n){t&&(u=t.m_context);var e,o,c,d,h,f,p,m=n.numberOfSources(),g=null;for(e=0;e<m;e+=1){for(g=u.createBuffer(),u.bindBuffer(i.GL.ARRAY_BUFFER,g),(p=n.source(e).data())instanceof Float32Array||(p=new Float32Array(p)),u.bufferData(i.GL.ARRAY_BUFFER,p,s?i.GL.DYNAMIC_DRAW:i.GL.STATIC_DRAW),d=n.source(e).keys(),h=[],o=0;o<d.length;o+=1)h.push(d[o]);a[e]=h,r[e]=g}for(f=n.numberOfPrimitives(),c=0;c<f;c+=1)g=u.createBuffer(),u.bindBuffer(i.GL.ARRAY_BUFFER,g),u.bufferData(i.GL.ARRAY_BUFFER,n.primitive(c).indices(),i.GL.STATIC_DRAW),r[e]=g,e+=1;l.modified()}}(t)}return this.deleteVertexBufferObjects=function(t){var e,n=u;if(t&&(n=t.m_context),n)for(e=0;e<r.length;e+=1)n.deleteBuffer(r[e])},this._cleanup=function(t){c.deleteVertexBufferObjects(t),d(t),c.modified()},this.computeBounds=function(){if(null!=n){var t=this.computeBoundsTimestamp(),e=null;this.boundsDirtyTimestamp().getMTime()>t.getMTime()&&(e=n.bounds(),this.setBounds(e[0],e[1],e[2],e[3],e[4],e[5]),t.modified())}else this.resetBounds()},this.color=function(){return e},this.geometryData=function(){return n},this.setGeometryData=function(t){n!==t&&(n=t,this.modified(),this.boundsDirtyTimestamp().modified())},this.updateSourceBuffer=function(t,e,o){if(o&&(u=o.m_context),!u)return!1;for(var a=-1,s=0;s<n.numberOfSources();s+=1)if(n.source(s).name()===t){a=s;break}return!(a<0||a>=r.length)&&(e||(e=n.source(s).dataToFloat32Array()),u.bindBuffer(i.GL.ARRAY_BUFFER,r[a]),e instanceof Float32Array?u.bufferSubData(i.GL.ARRAY_BUFFER,0,e):u.bufferSubData(i.GL.ARRAY_BUFFER,0,new Float32Array(e)),!0)},this.getSourceBuffer=function(t){var e=n.sourceByName(t);return e?e.dataToFloat32Array():new Float32Array},this.render=function(t,e){(this.getMTime()>l.getMTime()||t.m_contextChanged)&&h(t),(u=t.m_context).vertexAttrib3fv(i.vertexAttributeKeys.Color,this.color());var o,s,c=0,d=0,f=null;for(o in a)if(a.hasOwnProperty(o)){for(u.bindBuffer(i.GL.ARRAY_BUFFER,r[c]),d=0;d<a[o].length;d+=1)t.m_material.bindVertexData(t,a[o][d]);c+=1}for(s=n.numberOfPrimitives(),d=0;d<s;d+=1,c+=1)if((f=n.primitive(d)).numberOfIndices()){switch(u.bindBuffer(i.GL.ARRAY_BUFFER,r[c]),f.primitiveType()){case i.GL.POINTS:u.drawArrays(i.GL.POINTS,0,f.numberOfIndices());break;case i.GL.LINES:u.drawArrays(i.GL.LINES,0,f.numberOfIndices());break;case i.GL.LINE_STRIP:u.drawArrays(i.GL.LINE_STRIP,0,f.numberOfIndices());break;case i.GL.TRIANGLES:u.drawArrays(i.GL.TRIANGLES,0,f.numberOfIndices());break;case i.GL.TRIANGLE_STRIP:u.drawArrays(i.GL.TRIANGLE_STRIP,0,f.numberOfIndices())}u.bindBuffer(i.GL.ARRAY_BUFFER,null)}e||this.undoBindVertexData(t)},this.undoBindVertexData=function(t){var e,n;for(e in a)if(a.hasOwnProperty(e))for(n=0;n<a[e].length;n+=1)t.m_material.undoBindVertexData(t,a[e][n])},this},r(i.mapper,i.boundingObject)},9852:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}},9872:function(t,e,n){"use strict";function i(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=1/this.rf,r=2*i-Math.pow(i,2),o=this.e=Math.sqrt(r);this.R=this.k0*n*Math.sqrt(1-r)/(1-r*Math.pow(e,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*s+this.alpha*o/2*l}function r(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}function o(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,c=-1e3,d=0;Math.abs(u-c)>1e-7;){if(++d>20)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)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=u,t}n.r(e),n.d(e,{forward:function(){return r},init:function(){return i},inverse:function(){return o},names:function(){return a}});var a=["somerc"];e.default={init:i,forward:r,inverse:o,names:a}},9893:function(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},9894:function(t,e,n){var i=n(4626),r=n(1098).registerAnnotation,o=n(2225),a=n(642),s=n(3656),l=function(t,e){"use strict";if(!(this instanceof l))return new l(t,e);t=a.deepMerge({},this.constructor.defaults,t,{constraint:1}),s.call(this,t,e||"circle")};i(l,s),l.defaults=Object.assign({},s.defaults,{});var u={};u[o.capabilities.feature]=!0,r("circle",l,u),t.exports=l},9897:function(t,e,n){var i=n(4626),r=n(1098).registerRenderer,o=n(2274),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(3503),i=n(6409),r=a.vtkjs.Rendering.Misc.vtkGenericRenderWindow,s=this,l=this._init,u=r.newInstance({background:[0,0,0,0]});u.setContainer(s.layer().node().get(0)),u.getInteractor().unbindEvents(),u.resize();var c=u.getRenderer(),d=u.getRenderWindow();return this.contextRenderer=function(){return c},this.api=function(){return a.apiname},this._init=function(){if(s.initialized())return s;l.call(s);var t=s.layer().map(),e=t.size();return s._resize(0,0,e.width,e.height),t.camera().clipbounds={near:-t.unitsPerPixel(),far:t.unitsPerPixel()},s},this._resize=function(t,e,n,i){return s._setWidthHeight(n,i),u.resize(),s._render(),s},this._render=function(){return s.layer().map().scheduleAnimationFrame(s._renderFrame,!0),s},this._renderFrame=function(){var t,e=s.layer().features();for(t=0;t<e.length;t+=1)e[t].visible()&&e[t]._update();s._updateRendererCamera(),d.render()},this._exit=function(){},this._updateRendererCamera=function(){var t=s.layer().map().camera(),n=t.view,i=t.projectionMatrix,r=e.create();e.copy(r,n);var o=e.create();e.copy(o,i),s.contextRenderer().getActiveCamera().setViewMatrix(r),s.contextRenderer().getActiveCamera().setProjectionMatrix(o)},s.layer().geoOn(i.pan,function(t){s._render()}),s.layer().geoOn(i.parallelprojection,function(t){}),this};a.apiname="vtkjs",i(a,o),r("vtkjs",a),a.supported=function(){delete a.vtkjs;try{a.vtkjs=n(4436)}catch(t){}return a.vtkjs&&a.vtkjs.Rendering||!window.vtk||!window.vtk.Rendering||(a.vtkjs=window.vtk),a.vtkjs&&a.vtkjs.Rendering||(a.vtkjs=void 0),void 0!==a.vtkjs},a.fallback=function(){return null},a.supported(),t.exports=a},9899:function(t){t.exports=function(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],c=e[7],d=e[8],h=e[9],f=e[10],p=e[11],m=e[12],g=e[13],y=e[14],v=e[15],x=n[0],_=n[1],b=n[2],w=n[3];return t[0]=x*i+_*s+b*d+w*m,t[1]=x*r+_*l+b*h+w*g,t[2]=x*o+_*u+b*f+w*y,t[3]=x*a+_*c+b*p+w*v,x=n[4],_=n[5],b=n[6],w=n[7],t[4]=x*i+_*s+b*d+w*m,t[5]=x*r+_*l+b*h+w*g,t[6]=x*o+_*u+b*f+w*y,t[7]=x*a+_*c+b*p+w*v,x=n[8],_=n[9],b=n[10],w=n[11],t[8]=x*i+_*s+b*d+w*m,t[9]=x*r+_*l+b*h+w*g,t[10]=x*o+_*u+b*f+w*y,t[11]=x*a+_*c+b*p+w*v,x=n[12],_=n[13],b=n[14],w=n[15],t[12]=x*i+_*s+b*d+w*m,t[13]=x*r+_*l+b*h+w*g,t[14]=x*o+_*u+b*f+w*y,t[15]=x*a+_*c+b*p+w*v,t}},9913:function(t){t.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},9923:function(t){t.exports="/* markerFeature square/triangle fragment shader */\n\n/* markerFeature common fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying float radiusVar;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float strokeWidthVar;\nvarying float symbolVar; /* contains some bit fields */\nvarying float symbolValueVar;\nvarying float rotationVar;\n// the square/triangle shader defines unitVar\nconst int symbolEllipse = 0;\nconst int symbolFlowerBase = 1;\nconst int symbolFlowerMax = 16;\nconst int symbolTriangle = 16;\nconst int symbolStarBase = 17;\nconst int symbolStarMax = 16;\nconst int symbolRectangle = 32;\nconst int symbolCrossBase = 33;\nconst int symbolCrossMax = 16;\nconst int symbolOval = 48;\nconst int symbolJackBase = 49;\nconst int symbolJackMax = 16;\nconst int symbolDrop = 64;\nconst int symbolDropBase = 65;\nconst int symbolDropMax = 16;\nconst int symbolArrow = 80;\nconst int symbolArrowBase = 81;\nconst int symbolArrowMax = 16;\n// Distance to antialias in pixels\nconst float antialiasDist = 1.5;\n\n/* Compute the distance from a point to an arrow defined by the radiusVar and a\n * packed value containing\n * headWidth: ratio to radius (0, 1]\n * headLength: ratio to diameter (0, 1]\n * stemWidth: ratio to headWidth [0, 1]\n * sweep: boolean\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float packed: the packed value.\n * Exit: float dist: the distance to the drop in pixels. Negative is inside.\n */\nfloat distanceToArrow(vec2 pos, float value) {\n bool sweep = value < 0.0;\n value = abs(value);\n float pack0 = (mod(value, 252.0) - 1.0) / 250.0;\n value = floor(value / 252.0);\n float pack1 = (mod(value, 252.0) - 1.0) / 250.0;\n value = floor(value / 252.0);\n float pack2 = (mod(value, 252.0) - 1.0) / 250.0;\n\n float headWidth = (pack0 > 0.0 ? pack0 : 2.0 / 3.0);\n float headEnd = 1.0 - 2.0 * (pack1 > 0.0 ? pack1 : 1.0 / 2.0);\n float stemWidth = headWidth * (pack2 >= 0.0 ? pack2 : 1.0 / 3.0);\n if (length(vec2(headWidth, headEnd)) > 1.0) {\n vec2 scaledHead = normalize(vec2(headWidth, headEnd));\n headWidth = scaledHead.x;\n headEnd = scaledHead.y;\n }\n float stemEnd = -cos(asin(stemWidth));\n\n headWidth *= radiusVar;\n headEnd *= radiusVar;\n stemWidth *= radiusVar;\n stemEnd *= radiusVar;\n pos.y = abs(pos.y);\n float stemDist = pos.y - stemWidth;\n float stemEndDist = stemEnd - pos.x;\n float B = (radiusVar - headEnd) / headWidth;\n float headDist = (pos.x + B * pos.y - radiusVar) / sqrt(1.0 + B * B);\n float headEndDist;\n if (sweep) {\n B = (radiusVar - headEnd) / 3.0 / headWidth;\n headEndDist = -(pos.x + B * pos.y - (radiusVar + headEnd * 2.0) / 3.0) / sqrt(1.0 + B * B);\n } else {\n headEndDist = headEnd - pos.x;\n }\n headEndDist = min(headEndDist, stemDist);\n return max(max(headDist, headEndDist), stemEndDist);\n}\n\n/* Compute the distance from a point to a drop defined by the radiusVar (the\n * semimajor axis) and ratio (between the minor and major radii).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the drop in pixels. Negative is inside.\n */\nfloat distanceToDrop(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0 || ratio >= 1.0) {\n ratio = 1.0;\n }\n float r = radiusVar * ratio;\n float cx = radiusVar - r;\n float rad = distance(pos.xy, vec2(cx, 0.0)) - r;\n if (ratio < 0.5) {\n float x = radiusVar - r - r * r / cx;\n float y = sqrt(r * r - (cx - x) * (cx - x));\n float Bt = (cx - x) / y;\n if ((pos.x + Bt * abs(pos.y) - cx) / sqrt(1.0 + Bt * Bt) < 0.0) {\n float B = -x / y;\n return -(pos.x + B * abs(pos.y)) / sqrt(1.0 + B * B);\n }\n }\n return rad;\n}\n\n/* Compute the distance from a point to the ellipse defined by the radiusVar\n * (the semimajor axis) and ratio (between the minor and major axes).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the ellipse in pixels. Negative is\n * inside.\n */\nfloat distanceToEllipse(vec2 pos, float ratio) {\n // a and b are the semi-major and semi-minor axes\n // ratio is the between the minor and major axes. If > 1, swap these and\n // rotate 90 degrees.\n if (ratio == 0.0) {\n ratio = 1.0;\n }\n float a = radiusVar, b = abs(radiusVar * ratio);\n if (b > a) {\n pos = vec2(pos.y, -pos.x);\n b = abs(radiusVar / ratio);\n }\n float a2 = a * a, b2 = b * b;\n // compute the distance to the ellipse. See this discussion:\n // https://stackoverflow.com/questions/22959698\n float f = sqrt(a2 - b2),\n // this value will be positive if outside and negative if inside. If\n // we used it directly, the stroke would be too thick along the long\n // edges of the ellipse\n d = (distance(pos, vec2(f, 0.0)) + distance(pos, vec2(-f, 0.0))) * 0.5 - a;\n // if we are outside of the ellipse, accuracy is not important, so return\n // early.\n if (d >= 0.0) {\n return d;\n }\n // work in one quadrant\n pos = abs(pos);\n // t (the angle from center) could start as `atan(pos.y, pos.x)`, but this\n // results in a slower solution near narrow ends\n float t = 0.7;\n float cost = cos(t), sint = sin(t), x = a * cost, y = b * sint;\n vec2 lastxy;\n for (int iter = 0; iter < 10; iter += 1) {\n lastxy = vec2(x, y);\n float ex = (a2 - b2) * pow(cost, 3.0) / a,\n ey = (b2 - a2) * pow(sint, 3.0) / b;\n vec2 r = vec2(x - ex, y - ey),\n q = vec2(pos.x - ex, pos.y - ey);\n float lenr = length(r);\n t += lenr * asin((r.x * q.y - r.y * q.x) / lenr / length(q)) / sqrt(a2 + b2 - x * x - y * y);\n t = clamp(t, 0.0, acos(0.0));\n cost = cos(t);\n sint = sin(t);\n x = a * cost;\n y = b * sint;\n if (distance(lastxy, vec2(x, y)) < 0.05) {\n break;\n }\n }\n return sign(d) * distance(pos, vec2(x, y));\n}\n\n/* Compute the distance from a point to an isosceles triangle.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: length of the base compared to the other sides.\n * Exit: float dist: the distance to the rectangle in pixels. Negative is\n * inside.\n */\nfloat distanceToIsoscelesTriangle(vec2 pos, float ratio) {\n ratio = clamp(abs(ratio), 0.0, 2.0);\n if (ratio == 0.0 || ratio == 2.0) {\n ratio = 1.0;\n }\n float s1, s2, x0, x1, y1;\n if (ratio < sqrt(2.0)) {\n s1 = radiusVar * sqrt(4.0 - ratio * ratio); // length of equal sides\n s2 = s1 * ratio;\n y1 = s2 / 2.0;\n x0 = radiusVar;\n x1 = x0 - sqrt(s1 * s1 - y1 * y1);\n } else {\n s2 = radiusVar * 2.0;\n s1 = s2 / ratio;\n y1 = s2 / 2.0;\n x0 = sqrt(s1 * s1 - y1 * y1);\n x1 = 0.0;\n }\n float B = (x0 - x1) / y1;\n return max(x1 - pos.x, (pos.x + B * abs(pos.y) - x0) / sqrt(1.0 + B * B));\n}\n\n/* Compute the distance from a point to an oval defined by the radiusVar (the\n * semimajor axis) and ratio (between the minor and major axes). Here an oval\n * is defined as two semicircles connected by straight line segments.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the oval in pixels. Negative is inside.\n */\nfloat distanceToOval(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0 || ratio >= 1.0) {\n ratio = 1.0;\n }\n float minor = radiusVar * ratio;\n float center = radiusVar - minor;\n pos = abs(pos);\n if (pos.x <= center) {\n return pos.y - minor;\n }\n return distance(pos, vec2(center, 0.0)) - minor;\n}\n\n/* Compute the distance from a point to a rectangle defined by the radiusVar\n * (the semidiagonal) and ratio (between the minor and major axes).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the rectangle in pixels. Negative is\n * inside.\n */\nfloat distanceToRectangle(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0) {\n ratio = 1.0;\n }\n vec2 wh = normalize(vec2(1.0, abs(ratio))) * radiusVar;\n vec2 dist = abs(pos) - wh;\n return max(dist.x, dist.y);\n}\n\n/* Based on a repetition value, return a position for rotational symmetry.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * int repetitions: number of repetitions on the cross.\n * Exit: float dist: a point in the primary position.\n */\nvec2 rotationalSymmetry(vec2 pos, int repetitions) {\n float pi = acos(-1.0);\n float limit = pi / float(repetitions);\n float ang = atan(pos.y, pos.x);\n ang = mod(ang + pi * 2.0, limit * 2.0);\n if (ang > limit) {\n ang -= limit * 2.0;\n }\n return vec2(cos(ang), sin(ang)) * length(pos);\n}\n\nvoid markerFeatureFragment(vec2 pos) {\n // rad is a value in pixels from the edge of the symbol where negative is\n // inside the shape\n float rad = length(pos.xy) - radiusVar;\n // never allow points outside of the main radius\n if (rad > 0.0) {\n discard;\n return;\n }\n // apply clockwise rotation\n if (rotationVar != 0.0) {\n float cosr = cos(rotationVar), sinr = sin(rotationVar);\n pos = vec2(pos.x * cosr + pos.y * sinr, -pos.x * sinr + pos.y * cosr);\n }\n\n int symbol = int(floor(symbolVar / 64.0));\n bool isimage = bool(mod(floor(symbolVar / 8.0), 2.0));\n vec4 fillColor, strokeColor;\n float endStep;\n\n float ratio = symbolValueVar;\n // When ratio is 0, it usually gets changed to 1; some shapes could have\n // better defaults\n /* Symbol shapes */\n if (symbol == symbolTriangle) {\n rad = distanceToIsoscelesTriangle(pos, ratio);\n } else if (symbol == symbolRectangle) {\n rad = distanceToRectangle(pos, ratio);\n } else if (symbol == symbolOval) {\n rad = distanceToOval(pos, ratio);\n } else if (symbol == symbolDrop) {\n rad = distanceToDrop(pos, ratio);\n } else if (symbol == symbolArrow) {\n rad = distanceToArrow(pos, ratio);\n } else if (symbol >= symbolCrossBase && symbol <= symbolCrossBase + symbolCrossMax - 2) {\n rad = distanceToRectangle(rotationalSymmetry(pos, symbol - symbolCrossBase + 2), ratio);\n } else if (symbol >= symbolFlowerBase && symbol <= symbolFlowerBase + symbolFlowerMax - 2) {\n rad = distanceToEllipse(rotationalSymmetry(pos, symbol - symbolFlowerBase + 2), ratio);\n } else if (symbol >= symbolStarBase && symbol <= symbolStarBase + symbolStarMax - 2) {\n rad = distanceToIsoscelesTriangle(rotationalSymmetry(pos, symbol - symbolStarBase + 2), ratio);\n } else if (symbol >= symbolJackBase && symbol <= symbolJackBase + symbolJackMax - 2) {\n rad = distanceToOval(rotationalSymmetry(pos, symbol - symbolJackBase + 2), ratio);\n } else if (symbol >= symbolDropBase && symbol <= symbolDropBase + symbolDropMax - 2) {\n rad = distanceToDrop(rotationalSymmetry(pos, symbol - symbolDropBase + 2), ratio);\n } else if (symbol >= symbolArrowBase && symbol <= symbolArrowBase + symbolArrowMax - 2) {\n rad = distanceToArrow(rotationalSymmetry(pos, symbol - symbolArrowBase + 2), ratio);\n } else { // default - circle or ellipse; a value of 0 or 1 is a circle\n if (ratio != 0.0 && ratio != 1.0) {\n rad = distanceToEllipse(pos, ratio);\n }\n }\n\n if (rad >= 0.0) {\n discard;\n return;\n }\n // If there is no stroke, the fill region should transition to nothing\n if (strokeColorVar.a == 0.0 || strokeWidthVar <= 0.0) {\n strokeColor = vec4(fillColorVar.rgb, 0.0);\n endStep = 0.0;\n } else {\n strokeColor = strokeColorVar;\n endStep = -strokeWidthVar;\n }\n // Likewise, if there is no fill, the stroke should transition to nothing\n if (fillColorVar.a == 0.0) {\n fillColor = vec4(strokeColorVar.rgb, 0.0);\n } else {\n fillColor = fillColorVar;\n }\n if (rad <= endStep) {\n float step = smoothstep(endStep - antialiasDist, endStep, rad);\n vec4 color = mix(fillColor, strokeColor, step);\n float step2 = smoothstep(-antialiasDist, 0.0, rad);\n gl_FragColor = mix(color, vec4(color.rgb, 0.0), step2);\n } else {\n float step = smoothstep(-antialiasDist, 0.0, rad);\n gl_FragColor = mix(strokeColor, vec4(strokeColor.rgb, 0.0), step);\n }\n}\n\n\nvarying vec2 unitVar; // distinct for square/triangle\n\nvoid main() {\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0)\n discard;\n markerFeatureFragment(unitVar);\n}\n"},9927:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2266),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5005),i=n(77);t=t||{},o.call(this,t),e.call(this);var r=this,s=i(),l=this._update,u={style:{}};return this._build=function(){var t,e,n=r.data()||[],i=r.style.get(),o=r.style.get("position");return l.call(r),e=function(t){return"M"+t.source.x+","+t.source.y+"C"+t.source.x+","+(t.source.y+t.target.y)/2+" "+t.target.x+","+(t.source.y+t.target.y)/2+" "+t.target.x+","+t.target.y},t=[],n.forEach(function(e,i){var a,s;i<n.length-1&&(a=o(e,i),s=o(n[i+1],i+1),t.push({source:r.featureGcsToDisplay(a),target:r.featureGcsToDisplay(s)}))}),u.data=t,u.attributes={d:e},u.id=r._svgid(),u.append="path",u.classes=["svgPathFeature"],u.style=Object.assign({fill:function(){return!1},fillColor:{r:0,g:0,b:0}},i),u.visible=r.visible,r.renderer()._drawFeatures(u),s.modified(),r.updateTime().modified(),r},this._update=function(){return l.call(r),r.dataTime().timestamp()>=s.timestamp()&&r._build(),r},this._init(t),this};i(a,o),r("svg","path",a),t.exports=a},9960:function(t,e,n){var i=n(8308),r=n(7705);t.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),i(t,t),r(t,t,e),t}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={id:t,exports:{}};return i[t].call(n.exports,n,n.exports,o),n.exports}return o.m=i,o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.b=document.baseURI||self.location.href,o.nc=void 0,o(2257)}()});
47
+ var i,r=n(671),o=n(1526),a=n(3074),s=n(8534),l=n(8927),u=n(9779),c=!1,d=o();function h(t,e,n){var r=i.segments(t),o=i.segments(e),a=n(i.combine(r,o));return i.polygon(a)}i={buildLog:function(t){return!0===t?c=r():!1===t&&(c=!1),!1!==c&&c.list},epsilon:function(t){return d.epsilon(t)},segments:function(t){var e=a(!0,d,c);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:a(!1,d,c).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,c),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,c),inverted:t.inverted1&&t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,c),inverted:t.inverted1&&!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,c),inverted:!t.inverted1&&t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,c),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,d,c),inverted:t.inverted}},polygonFromGeoJSON:function(t){return u.toPolygon(i,t)},polygonToGeoJSON:function(t){return u.fromPolygon(i,d,t)},union:function(t,e){return h(t,e,i.selectUnion)},intersect:function(t,e){return h(t,e,i.selectIntersect)},difference:function(t,e){return h(t,e,i.selectDifference)},differenceRev:function(t,e){return h(t,e,i.selectDifferenceRev)},xor:function(t,e){return h(t,e,i.selectXor)}},"object"==typeof window&&(window.PolyBool=i),t.exports=i},6858:function(t,e,n){var i=n(4626),r=n(1275),o=n(642),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},r.call(this,t);var e=this,n=this._init;this.featureType="vector",this.origin=function(t){return void 0===t?e.style("origin"):(e.style("origin",t),e.dataTime().modified(),e)},this.delta=function(t){return void 0===t?e.style("delta"):(e.style("delta",t),e.dataTime().modified(),e)},this._init=function(t){n.call(e,t);var i=Object.assign({},{strokeColor:"black",strokeWidth:2,strokeOpacity:1,originStyle:"none",endStyle:"arrow",origin:{x:0,y:0,z:0},delta:o.identityFunction,scale:null},void 0===t.style?{}:t.style);return void 0!==t.origin&&(i.origin=t.origin),e.style(i),e.dataTime().modified(),e}};i(a,r),t.exports=a},6884:function(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},6899:function(t){t.exports=function(t,e,n,i){var r=n[1],o=n[2],a=e[1]-r,s=e[2]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=e[0],t[1]=r+a*u-s*l,t[2]=o+a*l+s*u,t}},6902:function(t){t.exports=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}},6919:function(t){t.exports=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}},6977:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},6978:function(t,e,n){var i=n(6409),r=n(8695),o=n(5325),a=n(642),s=n(6546),l=0,u={create:"create",done:"done",highlight:"highlight",edit:"edit",cursor:"cursor"},c="annotationAction",d={fill:!0,fillColor:function(t){return t.selected?{r:0,g:1,b:1}:{r:.3,g:.3,b:.3}},fillOpacity:function(t){return t.selected?.5:.25},radius:function(t){return"edge"===t.type||"rotate"===t.type?8:10},scaled:!1,stroke:!0,strokeColor:{r:0,g:0,b:1},strokeOpacity:1,strokeWidth:function(t){return"edge"===t.type||"rotate"===t.type?2:3},rotateHandleOffset:24,rotateHandleRotation:-Math.PI/4,resizeHandleOffset:48,resizeHandleRotation:-Math.PI/4,handles:{vertex:!0,edge:!0,center:!0,rotate:!0,resize:!0}},h=function(t,e){"use strict";if(!(this instanceof h))return new h(t,e);var n=this,p=a.deepMerge({},this.constructor.defaults,e||{}),m=p.annotationId;delete p.annotationId,void 0===m||p.layer&&p.layer.annotationById(m)?(l+=1,void 0!==m&&console.warn("Annotation id "+m+" is in use; using "+l+" instead."),m=l):m>l&&(l=m);var g=p.name||t.charAt(0).toUpperCase()+t.substr(1)+" "+m,y=p.label||null,v=p.description||void 0,x=t,_=p.layer,b=p.state||u.done;delete p.state,delete p.layer,delete p.name,delete p.label,delete p.description,p.constraint&&(a.isFunction(p.constraint)?this._selectionConstraint=p.constraint:this._selectionConstraint=f(p.constraint)),this._exit=function(){n.layer()&&n.layer().geoOff(i.mousemove,n._cursorHandleMousemove)},this.id=function(){return m},this.newId=function(){return m=l+=1,n},this.name=function(t){return void 0===t?g:(null!==t&&(""+t).trim()&&(t=(""+t).trim())!==g&&(g=t,n.modified()),n)},this.label=function(t,e){return void 0===t?null!==y||e?y:g:(t!==y&&(y=t,n.modified()),n)},this._labelPosition=function(){return a.centerFromPerimeter(n._coordinates())},this._rotateHandlePosition=function(t,e){var i,r,o,s=n.layer().map(),l=n._coordinates(),u=a.centerFromPerimeter(n._coordinates()),c=u?s.gcsToDisplay(u,null):void 0,d=0;if(u){for(t=t||0,e=e||0,l=l.outer?l.outer:l,i=0;i<l.length;i+=1)r=s.gcsToDisplay(l[i],null),d=Math.max(d,Math.pow(r.x-c.x,2)+Math.pow(r.y-c.y,2));return o=Math.sqrt(d)+t,r=s.displayToGcs({x:c.x+o*Math.cos(e),y:c.y-o*Math.sin(e)},null)}},this.labelRecord=function(){var t=n.options("showLabel");if(t){var e=n.state();if(!(!0===t&&e===u.create||!0!==t&&t.indexOf(e)<0)){var i=n.labelStyle(),r={text:n.label(),position:n._labelPosition()};if(r.position)return i&&(r.style=i),r}}},this.description=function(t){return void 0===t?v:(t!==v&&(v=t,n.modified()),n)},this.layer=function(t){return void 0===t?_:(_=t,n)},this._cursorHandleMousemove=function(t){n.layer()._handleMouseMoveModifiers(t);var e=n._cursorCenter,i=t.mapgcs.x-e.x,r=t.mapgcs.y-e.y;if(i||r){var o=n._coordinates(),a=n._coordinatesMapFunc(o,function(t){return{x:t.x+i,y:t.y+r}});return n._coordinates(a),n._cursorCenter=t.mapgcs,n.modified(),n.draw(),!0}return!1},this.state=function(t){if(void 0===t)return b;if(b!==t&&(b=t,n.layer()&&n.layer().geoTrigger(i.annotation.state,{annotation:n}),n.layer()&&n.layer().geoOff(i.mousemove,n._cursorHandleMousemove),b===u.cursor))n._cursorCenter=a.centerFromPerimeter(n._coordinates()),n.layer()&&n.layer().geoOn(i.mousemove,n._cursorHandleMousemove);return n},this.actions=function(t){switch(t||(t=n.state()),t){case u.edit:return[{action:r.annotation_edit_handle,name:"annotation edit",owner:c,input:"left"},{action:r.annotation_edit_handle,name:"annotation edit",owner:c,input:"pan"}];case u.cursor:return[{action:r.annotation_cursor,name:"annotation cursor",owner:c,input:"pan"},{action:r.annotation_cursor,name:"annotation cursor",owner:c,input:"left"}];default:return[]}},this.processAction=function(t){},this.processEditAction=function(t){if(t&&n._editHandle&&n._editHandle.handle)switch(n._editHandle.handle.type){case"vertex":return n._processEditActionVertex(t);case"edge":return n._processEditActionEdge(t);case"center":return n._processEditActionCenter(t);case"rotate":return n._processEditActionRotate(t);case"resize":return n._processEditActionResize(t)}},this._copyOfCoordinates=function(t){return(t=t||n._coordinates()).outer?{outer:t.outer.slice(),inner:(t.inner||[]).map(function(t){return t.slice()})}:t.slice()},this.selectEditHandle=function(t,e){e&&n._editHandle&&n._editHandle.handle&&n._editHandle.handle.selected&&(n._editHandle.handle.selected=!1),t.selected=e;var r=(n._editHandle||{}).amountRotated||0;return n._editHandle={handle:t,startCoordinates:n._copyOfCoordinates(),center:a.centerFromPerimeter(n._coordinates()),rotatePosition:n._rotateHandlePosition(t.style.rotateHandleOffset,t.style.rotateHandleRotation+r),startAmountRotated:r,amountRotated:r,resizePosition:n._rotateHandlePosition(t.style.resizeHandleOffset,t.style.resizeHandleRotation)},n.layer()&&n.layer().geoTrigger(i.annotation.select_edit_handle,{annotation:n,handle:n._editHandle,enable:e}),n},this.options=function(t,e){if(void 0===t)return p;if("string"==typeof t&&void 0===e)return p[t];var r;if(void 0===e?(r=void 0!==t[n._coordinateOption],p=a.deepMerge(p,t),["style","createStyle","editStyle","editHandleStyle","labelStyle","highlightStyle","cursorStyle"].forEach(function(e){void 0!==t[e]&&Object.assign(p[e],t[e])})):(r=t===n._coordinateOption,p[t]=e),p.coordinates){var o=p.coordinates;delete p.coordinates,n._coordinates(o)}if(void 0!==p.name){var s=p.name;delete p.name,n.name(s)}if(void 0!==p.label){var l=p.label;delete p.label,n.label(l)}if(void 0!==p.description){var u=p.description;delete p.description,n.description(u)}return n.modified(),r&&n.layer()&&n.layer().geoTrigger(i.annotation.coordinates,{annotation:n}),n},this.style=function(t,e,i){return i=i||"style",void 0===t?p[i]:"string"==typeof t&&void 0===e?(p[i]||{})[t]:(void 0===p[i]&&(p[i]={}),void 0===e?p[i]=a.deepMerge(p[i],t):p[i][t]=e,n.modified(),n)},["createStyle","editStyle","editHandleStyle","labelStyle","highlightStyle","cursorStyle"].forEach(function(t){n[t]=function(e,i){return n.style(e,i,t)}}),this.styleForState=function(t){return(t=t||n.state())===u.edit||t===u.highlight?Object.assign({},p.style,p[t+"Style"]):t===u.create?Object.assign({},p.style,p.editStyle,p[t+"Style"]):t===u.cursor?Object.assign({},p.style,p.editStyle,p.createStyle,p[t+"Style"]):p[t+"Style"]||p.style||{}},this.type=function(){return x},this.features=function(){return[]},this.mouseClick=function(t){},this.mouseClickEdit=function(t){},this.mouseMove=function(t){},this._coordinates=function(t){return[]},this._coordinateOption="vertices",this.coordinates=function(t){var e=n._coordinates()||[];if(e.length||e.outer&&e.outer.length||(e=[]),n.layer()){var i=n.layer().map();(t=null===t?i.gcs():void 0===t?i.ingcs():t)!==i.gcs()&&(e=n._convertCoordinates(i.gcs(),t,e))}return e},this.modified=function(){return n.layer()&&n.layer().modified(),n},this.draw=function(){return n.layer()&&(n.layer()._update(),n.layer().draw()),n},this._geojsonStyles=function(){return["closed","fill","fillColor","fillOpacity","lineCap","lineJoin","radius","stroke","strokeColor","strokeOffset","strokeOpacity","strokeWidth"]},this._geojsonCoordinates=function(t){return[]},this._geojsonGeometryType=function(){return""},this.geojson=function(t,e){var i,r,o,l=n._geojsonCoordinates(t),u=n._geojsonGeometryType(),c=n._geojsonStyles(),d=n.options("style")||{},h=n.labelStyle()||{};if(l&&l.length&&u){var f={type:"Feature",geometry:{type:u,coordinates:l},properties:{annotationType:x,name:n.name(),annotationId:n.id()}};for(y&&(f.properties.label=y),v&&(f.properties.description=v),!1===n.options("showLabel")&&(f.properties.showLabel=n.options("showLabel")),i=0;i<c.length;i+=1)if(r=c[i],void 0!==(o=a.ensureFunction(d[r])())){var p=((n.constructor.defaults||{}).style||{})[r];r.toLowerCase().match(/color$/)&&(o=a.convertColorToHex(o,"needed"),p=void 0!==p?a.convertColorToHex(p,"needed"):p),o!==p&&(f.properties[r]=o)}for(i=0;i<s.usedStyles.length;i+=1)r=s.usedStyles[i],void 0!==(o=a.ensureFunction(h[r])())&&(r.toLowerCase().match(/color$/)&&(o=a.convertColorToHex(o,"needed")),f.properties["label"+r.charAt(0).toUpperCase()+r.slice(1)]=o);if(e){var m=n.layer().map();t=null===t?m.gcs():void 0===t?m.ingcs():t,f.crs={type:"name",properties:{type:"proj4",name:t}}}return f}},this._addEditHandles=function(t,e,i,r){var o,s=Object.assign({},d,n.editHandleStyle()),l=a.ensureFunction(s.handles)()||{},u=n._editHandle&&n._editHandle.handle&&n._editHandle.handle.selected?n._editHandle.handle:void 0;i=Object.assign({},i),Object.keys(l).forEach(function(t){!1===l[t]&&(i[t]=!1)}),t[3]||(t[3]={point:[]}),o=t[3].point,(e.outer?[e.outer].concat(e.inner||[]):[e]).forEach(function(t,e){t.forEach(function(n,a){!1!==i.vertex&&o.push(Object.assign({},n,{type:"vertex",index:a,vindex:e,style:s,editHandle:!0})),!1===i.edge||a===t.length-1||n.x===t[a+1].x&&n.y===t[a+1].y||o.push(Object.assign({x:(n.x+t[a+1].x)/2,y:(n.y+t[a+1].y)/2},{type:"edge",index:a,vindex:e,style:s,editHandle:!0})),!1===i.edge||r||a!==t.length-1||n.x===t[0].x&&n.y===t[0].y||o.push(Object.assign({x:(n.x+t[0].x)/2,y:(n.y+t[0].y)/2},{type:"edge",index:a,vindex:e,style:s,editHandle:!0}))})}),!1!==i.center&&o.push(Object.assign({},a.centerFromPerimeter(n._coordinates()),{type:"center",style:s,editHandle:!0})),!1!==i.rotate&&(o.push(Object.assign(n._rotateHandlePosition(s.rotateHandleOffset,s.rotateHandleRotation+(u&&"rotate"===u.type?n._editHandle.amountRotated:0)),{type:"rotate",style:s,editHandle:!0})),!n._editHandle||u&&"rotate"===u.type||(n._editHandle.amountRotated=0)),!1!==i.resize&&o.push(Object.assign(n._rotateHandlePosition(s.resizeHandleOffset,s.resizeHandleRotation),{type:"resize",style:s,editHandle:!0})),u&&o.forEach(function(t){t.type===u.type&&t.index===u.index&&t.vindex===u.vindex&&(t.selected=!0)})},this._coordinatesMapFunc=function(t,e){return t.outer?{outer:t.outer.map(e),inner:(t.inner||[]).map(function(t){return t.map(e)})}:t.map(e)},this._firstPointDifferent=function(t,e){return t=t.outer?t.outer:t,e=e.outer?e.outer:e,t[0].x!==e[0].x||t[0].y!==e[0].y},this._processEditActionCenter=function(t){var e=n._editHandle.startCoordinates,i=t.mouse.mapgcs.x-t.state.origin.mapgcs.x,r=t.mouse.mapgcs.y-t.state.origin.mapgcs.y,o=n._coordinates(),a=n._coordinatesMapFunc(e,function(t){return{x:t.x+i,y:t.y+r}});return!!n._firstPointDifferent(a,o)&&(n._coordinates(a),!0)},this._processEditActionRotate=function(t){var e=n._editHandle,i=e.startCoordinates,r=t.mouse.mapgcs.x-t.state.origin.mapgcs.x,o=t.mouse.mapgcs.y-t.state.origin.mapgcs.y,a=Math.atan2(e.rotatePosition.y-e.center.y,e.rotatePosition.x-e.center.x),s=Math.atan2(e.rotatePosition.y+o-e.center.y,e.rotatePosition.x+r-e.center.x)-a,l=n._coordinates(),u=n._coordinatesMapFunc(i,function(t){var n=t.x-e.center.x,i=t.y-e.center.y;return{x:n*Math.cos(s)-i*Math.sin(s)+e.center.x,y:n*Math.sin(s)+i*Math.cos(s)+e.center.y}});return!!n._firstPointDifferent(u,l)&&(n._coordinates(u),e.amountRotated=e.startAmountRotated+s,!0)},this._processEditActionResize=function(t){var e=n._editHandle,i=e.startCoordinates,r=t.mouse.mapgcs.x-t.state.origin.mapgcs.x,o=t.mouse.mapgcs.y-t.state.origin.mapgcs.y,a=n.layer().map(),s=a.gcsToDisplay(e.center,null),l=a.gcsToDisplay(e.resizePosition,null),u=a.gcsToDisplay({x:e.resizePosition.x+r,y:e.resizePosition.y+o},null),c=Math.pow(Math.pow(l.y-s.y,2)+Math.pow(l.x-s.x,2),.5)-e.handle.style.resizeHandleOffset,d=Math.pow(Math.pow(u.y-s.y,2)+Math.pow(u.x-s.x,2),.5)-e.handle.style.resizeHandleOffset,h=n._coordinates();if(d&&c){var f=d/c,p=n._coordinatesMapFunc(i,function(t){return{x:(t.x-e.center.x)*f+e.center.x,y:(t.y-e.center.y)*f+e.center.y}});if(n._firstPointDifferent(p,h))return n._coordinates(p),!0}return!1},this._processEditActionEdge=function(t){var e=n._editHandle,i=e.handle.index,r=e.handle.vindex,o=n._coordinates();o.outer?(r?o.inner[r-1]:o.outer).splice(i+1,0,{x:e.handle.x,y:e.handle.y}):o.splice(i+1,0,{x:e.handle.x,y:e.handle.y});return e.handle.type="vertex",e.handle.index+=1,e.startCoordinates=n._copyOfCoordinates(o),n.modified(),!0},this._processEditActionVertex=function(t,e){var r,o,a=n._editHandle,s=a.handle.index,l=a.handle.vindex,u=a.startCoordinates,c=n._coordinates(),d=c.outer?l?c.inner[l-1]:c.outer:c,h=d.length,f=d[s],p=t.mouse.mapgcs.x-t.state.origin.mapgcs.x,m=t.mouse.mapgcs.y-t.state.origin.mapgcs.y,g=n.layer(),y=g.options("adjacentPointProximity");return u.outer&&(u=l?u.inner[l-1]:u.outer),d[s]={x:u[s].x+p,y:u[s].y+m},g.displayDistance(d[s],null,u[s],null)<=y||(g.displayDistance(d[s],null,d[(s+1)%d.length],null)<=y?r=(s+1)%d.length:g.displayDistance(d[s],null,d[(s+d.length-1)%d.length],null)<=y&&(r=(s+d.length-1)%d.length)),o=0===r&&s===d.length-1||r===d.length-1&&0===s,!1===e&&o&&(r=void 0),void 0!==r&&d.length>(e||n.options("style").closed?3:2)&&(d[s]={x:d[r].x,y:d[r].y},t.event===i.actionup&&(e&&o&&(n.options("style").closed=!0),d.splice(s,1))),(d.length!==h||d[s].x!==f.x||d[s].y!==f.y)&&(n._coordinates(c),!0)},this._convertCoordinates=function(t,e,i){var r=!i;return i=(i=i||n._coordinates()).outer?{outer:o.transformCoordinates(t,e,i.outer),inner:(i.inner||[]).map(function(n){return o.transformCoordinates(t,e,n)})}:o.transformCoordinates(t,e,i),r&&n._coordinates(i),i}};function f(t){var e=Array.isArray(t)?t:[t];return function(t,n,i,r,o,a){var s,l=t;if(i||(i=[{x:n.x,y:n.y},{x:t.x,y:n.y},{x:t.x,y:t.y},{x:n.x,y:t.y}]),r){var u,c,d=(a+1)%4,h=(a+2)%4,f=(a+3)%4,p=Math.pow(Math.pow(i[a].x-i[d].x,2)+Math.pow(i[a].y-i[d].y,2),.5),m=Math.pow(Math.pow(i[a].x-i[f].x,2)+Math.pow(i[a].y-i[f].y,2),.5),g=Math.abs(p*m);e.forEach(function(t){var e,n;if(t.width?(e=t.width,n=t.height):n=(e=Math.pow(g*t,.5))/t,e!==n&&!(a%2)){var i=[n,e];e=i[0],n=i[1]}var r=Math.pow(e-m,2)+Math.pow(n-p,2);(void 0===s||r<s)&&(s=r,u={w:e,h:n})});var y=o[d],v={x:-u.w*Math.cos(y),y:-u.w*Math.sin(y)},x=o[a],_={x:-u.h*Math.cos(x),y:-u.h*Math.sin(x)};switch(r){case"vertex":i[a].x=i[h].x+v.x+_.x,i[a].y=i[h].y+v.y+_.y,i[d].x=i[h].x+v.x,i[d].y=i[h].y+v.y,i[f].x=i[h].x+_.x,i[f].y=i[h].y+_.y;break;case"edge":c={x:.5*(i[h].x+i[f].x),y:.5*(i[h].y+i[f].y)},i[h].x=c.x+_.x/2,i[h].y=c.y+_.y/2,i[a].x=c.x+v.x-_.x/2,i[a].y=c.y+v.y-_.y/2,i[d].x=c.x+v.x+_.x/2,i[d].y=c.y+v.y+_.y/2,i[f].x=c.x-_.x/2,i[f].y=c.y-_.y/2}}else{var b=Math.abs((t.x-n.x)*(t.y-n.y));e.forEach(function(e){var i,r;e.width?(i=e.width,r=e.height):r=(i=Math.pow(b*e,.5))/e;var o={x:n.x+Math.sign(t.x-n.x)*i,y:n.y+Math.sign(t.y-n.y)*r},a=Math.pow(o.x-t.x,2)+Math.pow(o.y-t.y,2);(void 0===s||a<s)&&(s=a,l=o)}),i[0].y=i[1].y=n.y,i[0].x=i[3].x=n.x,i[1].x=i[2].x=l.x,i[2].y=i[3].y=l.y}return{corners:i,origin:n,pos:l}}}h.defaults={showLabel:!0},t.exports={state:u,actionOwner:c,annotation:h,_editHandleFeatureLevel:3,defaultEditHandleStyle:d,constrainAspectRatio:f,annotationActionOwner:c,continuousVerticesActions:function(t,e,n,i,o){return n||(n=t.state()),n===u.create?[{action:r["annotation_"+i],name:i+" create",owner:c,input:"left"},{action:r["annotation_"+i],name:i+" create",owner:c,input:"pan"}]:e.apply(t,o)},continuousVerticesProcessAction:function(t,e,n){var o=t.layer();if(t.state()===u.create&&o&&e.state.action===r["annotation_"+n]){var a=o.options("continuousPointProximity"),s=o.options("continuousPointCollinearity"),l=o.options("continuousCloseProximity");if(a||0===a){var c=t.options("vertices"),d=!1;if(!c.length)return c.push(e.mouse.mapgcs),c.push(e.mouse.mapgcs),!0;var h=o.displayDistance(c[c.length-2],null,e.mouse.map,"display");if(h&&h>a){if(c.length>=(t._lastClickVertexCount||1)+3){var f=o.displayDistance(c[c.length-3],null,c[c.length-2],null),p=h,m=o.displayDistance(c[c.length-3],null,e.mouse.map,"display");if(f&&m)(m*m-f*f-p*p)/(2*f*p)>Math.cos(s)&&c.pop()}c[c.length-1]=e.mouse.mapgcs,c.push(e.mouse.mapgcs),d=!0}return(l||0===l)&&e.event===i.actionup&&(!0===l||o.displayDistance(c[0],null,e.mouse.map,"display")<=a)?c.length<3+("polygon"===n?1:0)?"remove":(c.pop(),t.state(u.done),"done"):d}}}}},6979:function(t){t.exports="/* pointFeature sprite vertex shader */\n\n/* pointFeature common vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute float radius;\nattribute vec3 fillColor;\nattribute vec3 strokeColor;\nattribute float fillOpacity;\nattribute float strokeWidth;\nattribute float strokeOpacity;\nattribute float fill;\nattribute float stroke;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float radiusVar;\nvarying float strokeWidthVar;\n\nfloat pointFeaturePrep() {\n strokeWidthVar = strokeWidth;\n fillColorVar = vec4(fillColor, fillOpacity);\n strokeColorVar = vec4(strokeColor, strokeOpacity);\n // No stroke or fill implies nothing to draw\n if (stroke < 1.0 || strokeWidth <= 0.0 || strokeOpacity <= 0.0) {\n strokeColorVar.a = 0.0;\n strokeWidthVar = 0.0;\n }\n if (fill < 1.0 || radius <= 0.0 || fillOpacity <= 0.0)\n fillColorVar.a = 0.0;\n /* If the point has no visible pixels, skip doing computations on it. */\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0) {\n gl_Position = vec4(2, 2, 0, 1);\n return 0.0;\n }\n return radius;\n}\n\n\nvoid main(void)\n{\n radiusVar = pointFeaturePrep();\n if (radiusVar == 0.0) {\n return;\n }\n // for sprite\n gl_Position = (projectionMatrix * modelViewMatrix * vec4(pos, 1.0)).xyzw;\n gl_PointSize = 2.0 * (radius + strokeWidthVar);\n}\n"},6982:function(t,e,n){var i=function(){"use strict";var t=n(1098).createRenderer,e=n(6409),i=n(7945),r=n(9264),o=this,a=this._init,s=this.opacity,l=this.visible,u=this.zIndex;this.opacity=function(t){var e=s.apply(o,arguments);return void 0!==t&&o.initialized()&&o.map()._updateAutoshareRenderers(),e},this.visible=function(t){if(void 0===t)return l();var e=l(),n=l.apply(o,arguments);return e!==t&&o.initialized()&&(o.map().scheduleAnimationFrame(o._update,!0),o.renderer()._render()),n},this.zIndex=function(t,e){var n=u.apply(o,arguments);return void 0!==t&&o.initialized()&&(o.map().scheduleAnimationFrame(o._update,!0),o.renderer()._render(),o.map()._updateAutoshareRenderers()),n},this.switchRenderer=function(t,e){if(t instanceof i&&t!==o.renderer()){var n=o.renderer(),r=[],a=[];o.map().listSceneObjects([o]).forEach(function(t){t._cleanup&&(t._cleanup(),t._update&&a.push(t)),t.actors&&(r=r.concat(t.actors()))}),r.forEach(function(e){n.contextRenderer().removeActor(e),t.contextRenderer().addActor(e)}),o._renderer(t),o._canvas(t.canvas()),e&&(r.length||a.length)&&(n._render(),a.forEach(function(t){t._update()}),t._render())}return o},this._init=function(){var n=o.map();return n._updateAutoshareRenderers||(n._updateAutoshareRenderers=function(){var e,o,a,s=n.sortedLayers(),l=[];s.forEach(function(n){var s=n.autoshareRenderer(),u=n instanceof r;s&&n.renderer()&&n.renderer().api()===i.apiname?!e||n.opacity()!==o||"more"!==s&&(n.opacity()>0&&n.opacity()<1||u&&!a)?(n.node()[0].contains(n.renderer().canvas()[0])||(n.switchRenderer(t(i.apiname,n),!1),l.push(n.renderer())),e=n.renderer(),o=n.opacity(),a=u):(n.renderer()!==e&&(l.push(n.renderer()),n.switchRenderer(e,!1),l.push(n.renderer())),a&=u):e=null}),s.forEach(function(t){l.indexOf(t.renderer())>=0&&t._update&&t._update()}),s.forEach(function(t){l.indexOf(t.renderer())>=0&&(t.renderer()._renderFrame(),l=l.filter(function(e){return e!==t.renderer()}))}),l.forEach(function(t){t._exit()})},n.geoOn(e.layerAdd,function(){return n._updateAutoshareRenderers()}),n.geoOn(e.layerRemove,function(){return n._updateAutoshareRenderers()})),a.apply(o,arguments)}};(0,n(1098).registerLayerAdjustment)("webgl","all",i),t.exports=i},7e3:function(t,e,n){"use strict";n.d(e,{A1:function(){return s},DF:function(){return b},G9:function(){return o},H0:function(){return g},JM:function(){return _},Q1:function(){return p},Vj:function(){return x},Y$:function(){return r},_3:function(){return d},a8:function(){return i},bA:function(){return f},bv:function(){return l},dX:function(){return v},ej:function(){return m},gS:function(){return c},sK:function(){return h},xK:function(){return a},zp:function(){return u},zq:function(){return y}});var i=1,r=2,o=3,a=4,s=5,l=6378137,u=6356752.314,c=.0066943799901413165,d=484813681109536e-20,h=Math.PI/2,f=.16666666666666666,p=.04722222222222222,m=.022156084656084655,g=1e-10,y=.017453292519943295,v=57.29577951308232,x=Math.PI/4,_=2*Math.PI,b=3.14159265359},7015:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw;return this.draw=function(){return e.ready&&(e._update(),e.renderer()._render(),r()),e},this};t.exports=i},7046:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o)()(r());a.push([t.id,".color-legend-container{display:none;padding:10px;border:1.5px solid #000;border-radius:3px;transition:250ms background linear;background-color:rgba(255,255,255,0.75)}.color-legend-container:hover{background-color:#fff}.color-legend-container .geojs-color-legends .geojs-color-legend{margin-bottom:10px}.color-legend-container .geojs-color-legends .geojs-color-legend .geojs-title{text-align:center}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg{display:block}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x path.domain,.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x line{fill:none;stroke:#000;stroke-width:.7}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x text{font-size:12px}.color-legend-container .color-legend-popup{position:absolute;background:#fff;height:22px;font-size:14px;border:solid 1px #000;padding:0 5px;pointer-events:none;white-space:nowrap;z-index:100000;opacity:0}","",{version:3,sources:["webpack://./ui/colorLegendWidget.styl"],names:[],mappings:"AAAA,wBACE,YAAQ,CACR,YAAQ,CACR,uBAAO,CACP,iBAAc,CACd,kCAAW,CACX,uCAAiB,CAEjB,8BACE,qBAAiB,CAIjB,iEACE,kBAAc,CAEd,8EACE,iBAAW,CAEb,yEACE,aAAQ,CAGN,mLACE,SAAK,CACL,WAAO,CACP,eAAa,CACf,sFACE,cAAU,CAEpB,4CACE,iBAAS,CACT,eAAW,CACX,WAAO,CACP,cAAU,CACV,qBAAO,CACP,aAAQ,CACR,mBAAe,CACf,kBAAY,CACZ,cAAQ,CACR,SAAQ",sourcesContent:[".color-legend-container\n display none\n padding 10px\n border 1.5px solid black\n border-radius 3px\n transition 250ms background linear\n background-color rgba(255, 255, 255, 0.75)\n\n &:hover\n background-color rgba(255, 255, 255, 1)\n\n .geojs-color-legends\n\n .geojs-color-legend\n margin-bottom 10px\n\n .geojs-title\n text-align center\n\n svg.svg\n display block\n\n .axis.x\n path.domain, line\n fill none\n stroke black\n stroke-width 0.7\n text\n font-size 12px\n\n .color-legend-popup\n position absolute\n background white\n height 22px\n font-size 14px\n border solid 1px black\n padding 0 5px\n pointer-events none\n white-space nowrap\n z-index 100000\n opacity 0\n"],sourceRoot:""}]),e.A=a},7053:function(t){t.exports=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8])}},7068:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}},7072:function(t,e,n){"use strict";function i(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}n.d(e,{A:function(){return i}})},7091:function(t){t.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},7159:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)}},7205:function(t,e,n){var i=n(5616),r=n(698),o=n(4626);r.viewer=function(t,e){"use strict";if(!(this instanceof r.viewer))return new r.viewer(t,e);r.object.call(this);var n=t,o=r.renderer(e),a=r.renderWindow(n);return this.canvas=function(){return n},this.renderWindow=function(){return a},this.init=function(){null!==a?a._setup():console.log("[ERROR] No render window attached")},this.exit=function(t){null!==a?a._cleanup(t):console.log("[ERROR] No render window attached")},this.render=function(){a.render()},this.bindEventHandlers=function(){i(n).on("mousedown",this.handleMouseDown),i(n).on("mouseup",this.handleMouseUp),i(n).on("mousemove",this.handleMouseMove),i(n).on("mousewheel",this.handleMouseWheel),i(n).on("contextmenu",this.handleContextMenu)},this.unbindEventHandlers=function(){i(n).off("mousedown",this.handleMouseDown),i(n).off("mouseup",this.handleMouseUp),i(n).off("mousemove",this.handleMouseMove),i(n).off("mousewheel",this.handleMouseWheel),i(n).off("contextmenu",this.handleContextMenu)},this._init=function(){this.bindEventHandlers(),a.addRenderer(o)},this._init(),this},o(r.viewer,r.object)},7235:function(t){var e={};e.Util={stamp:function(t){return t._leaflet_id=t._leaflet_id||++e.Util.lastId,t._leaflet_id},lastId:0};var n=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}};n.prototype={addObject:function(t,n){var i=this._getCoord(n.x),r=this._getCoord(n.y),o=this._grid,a=o[r]=o[r]||{},s=a[i]=a[i]||[],l=e.Util.stamp(t);n.obj=t,this._objectPoint[l]=n,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,n){var i,r,o=this._getCoord(n.x),a=this._getCoord(n.y),s=this._grid,l=s[a]=s[a]||{},u=l[o]=l[o]||[];for(delete this._objectPoint[e.Util.stamp(t)],i=0,r=u.length;i<r;i++)if(u[i]===t)return u.splice(i,1),1===r&&delete l[o],!0},eachObject:function(t,e){var n,i,r,o,a,s,l=this._grid;for(n in l)for(i in a=l[n])for(r=0,o=(s=a[i]).length;r<o;r++)t.call(e,s[r])&&(r--,o--)},getNearObject:function(t){var n,i,r,o,a,s,l,u,c=this._getCoord(t.x),d=this._getCoord(t.y),h=this._objectPoint,f=this._sqCellSize,p=null;for(n=d-1;n<=d+1;n++)if(o=this._grid[n])for(i=c-1;i<=c+1;i++)if(a=o[i])for(r=0,s=a.length;r<s;r++)l=a[r],(u=this._sqDist(h[e.Util.stamp(l)],t))<f&&(f=u,p=l);return p},contents:function(){return Object.values(this._objectPoint)},_getCoord:function(t){return Math.floor(t/this._cellSize)},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}},t.exports=n},7272:function(t,e,n){"use strict";n.d(e,{Cx:function(){return u}});var i=n(9402),r=n(2308),o=[i.default,r.default],a={},s=[];function l(t,e){var n=s.length;return t.names?(s[n]=t,t.names.forEach(function(t){a[t.toLowerCase()]=n}),this):(console.log(e),!0)}function u(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}e.Ay={start:function(){o.forEach(l)},add:l,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==a[e]&&s[a[e]]||(e=u(e))in a&&s[a[e]]?s[a[e]]:void 0}}},7327:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.primitive=function(){"use strict";if(!(this instanceof i.primitive))return new i.primitive;var t=0,e=0,n=null;return this.indices=function(){return n},this.numberOfIndices=function(){return n.length},this.primitiveType=function(){return t},this.setPrimitiveType=function(e){t=e},this.indicesValueType=function(){return e},this.setIndicesValueType=function(t){e=t},this.setIndices=function(t){n=new Uint16Array(t)},this},i.triangles=function(){"use strict";return this instanceof i.triangles?(i.primitive.call(this),this.setPrimitiveType(i.GL.TRIANGLES),this.setIndicesValueType(i.GL.UNSIGNED_SHORT),this):new i.triangles},r(i.triangles,i.primitive),i.points=function(){"use strict";return this instanceof i.points?(i.primitive.call(this),this.setPrimitiveType(i.GL.POINTS),this.setIndicesValueType(i.GL.UNSIGNED_SHORT),this):new i.points},r(i.points,i.primitive),i.sourceData=function(t){"use strict";if(!(this instanceof i.sourceData))return new i.sourceData(t);var e={},n=[],r=(t=t||{}).name||"Source "+(new Date).toISOString(),o=function(){this.m_numberOfComponents=0,this.m_dataType=0,this.m_dataTypeSize=0,this.m_normalized=!1,this.m_stride=0,this.m_offset=0};return this.data=function(){return n},this.getData=function(){return this.data()},this.dataToFloat32Array=function(){return n instanceof Float32Array||(n=new Float32Array(n)),n},this.setData=function(t){t instanceof Array||t instanceof Float32Array?n=t instanceof Float32Array?t:t.slice(0):console.log("[error] Requires array")},this.addAttribute=function(t,n,i,r,a,s,l){if(!e.hasOwnProperty(t)){var u=new o;u.m_dataType=n,u.m_dataTypeSize=i,u.m_offset=r,u.m_stride=a,u.m_numberOfComponents=s,u.m_normalized=l,e[t]=u}},this.hasKey=function(t){return e.hasOwnProperty(t)},this.keys=function(){return Object.keys(e)},this.attributeNumberOfComponents=function(t){return e.hasOwnProperty(t)?e[t].m_numberOfComponents:0},this.normalized=function(t){return!!e.hasOwnProperty(t)&&e[t].m_normalized},this.attributeDataType=function(t){if(e.hasOwnProperty(t))return e[t].m_dataType},this.attributeOffset=function(t){return e.hasOwnProperty(t)?e[t].m_offset:0},this.attributeStride=function(t){return e.hasOwnProperty(t)?e[t].m_stride:0},this.pushBack=function(t){},this.insert=function(t){var e;if(!n.length&&t.length&&t instanceof Float32Array)n=t;else if(n.slice||!n.length&&t.slice||(n=Array.prototype.slice.call(n)),t.length)if(!n.length&&t.slice)n=t.slice(0);else for(e=0;e<t.length;e+=1)n[n.length]=t[e];else n[n.length]=t},this.name=function(){return r},this},i.sourceDataAnyfv=function(t,e,n){"use strict";return this instanceof i.sourceDataAnyfv?(i.sourceData.call(this,n),this.addAttribute(e,i.GL.FLOAT,4,0,4*t,t,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataAnyfv(t,e,n)},r(i.sourceDataAnyfv,i.sourceData),i.sourceDataP3fv=function(t){"use strict";return this instanceof i.sourceDataP3fv?(i.sourceData.call(this,t),this.addAttribute(i.vertexAttributeKeys.Position,i.GL.FLOAT,4,0,12,3,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataP3fv(t)},r(i.sourceDataP3fv,i.sourceData),i.sourceDataT2fv=function(t){"use strict";return this instanceof i.sourceDataT2fv?(i.sourceData.call(this,t),this.addAttribute(i.vertexAttributeKeys.TextureCoordinate,i.GL.FLOAT,4,0,8,2,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataT2fv(t)},r(i.sourceDataT2fv,i.sourceData),i.geometryData=function(){"use strict";if(!(this instanceof i.geometryData))return new i.geometryData;i.data.call(this);var t=[],e=[],n=[0,0,0,0,0,0],r=o(),a=o();return this.type=function(){return i.data.geometry},this.name=function(){return""},this.addSource=function(t){return-1===e.indexOf(t)&&(e.push(t),t.hasKey(i.vertexAttributeKeys.Position)&&a.modified(),!0)},this.source=function(t){return t<e.length?e[t]:0},this.sourceByName=function(t){for(var n=0;n<e.length;n+=1)if(e[n].name()===t)return e[n];return 0},this.numberOfSources=function(){return e.length},this.sourceData=function(t){var n;for(n=0;n<e.length;n+=1)if(e[n].hasKey(t))return e[n];return null},this.addPrimitive=function(e){return t.push(e),!0},this.primitive=function(e){return e<t.length?t[e]:null},this.numberOfPrimitives=function(){return t.length},this.bounds=function(){return a.getMTime()>r.getMTime()&&this.computeBounds(),n},this.boundsDirty=function(t){return t&&a.modified(),a.getMTime()>r.getMTime()},this.setBounds=function(t,e,i,o,a,s){return n[0]=t,n[1]=e,n[2]=i,n[3]=o,n[4]=a,n[5]=s,r.modified(),!0},this},r(i.geometryData,i.data)},7376:function(t){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t.exports=function(){var t,n=[];for(n.length=8,t=0;t<8;t+=1)n[t]=e.charAt(Math.floor(61*Math.random()));return n.join("")}},7484:function(t){t.exports=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}},7541:function(t,e,n){function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=n(4626),s=n(1275),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},s.call(this,t);var e=n(77),o=n(5966),a=n(6409),u=n(642),c=n(4279);c=c.__esModule?c.default:c;var d=this,h=this._init,f=null,p=e(),m=this.data,g=0,y=t.clustering,v=null,x=[],_=null,b=!1;return this.featureType="point",this.clustering=function(t){return void 0===t?y:(y&&!t?(v=null,y=!1,m(x)):t&&y!==t&&(y=t,d._clusterData()),d)},this._clusterData=function(){if(y){var t=!0===y?{radius:10}:y;!t.maxZoom&&this.layer()&&this.layer().map()&&((t=Object.assign({},t)).maxZoom=this.layer().map().zoomRange().max);var e=d.position(),n=d.layer().map(),i=n.gcsToDisplay(n.center(void 0,null),null),r=n.displayToGcs(i,d.gcs()),a=n.displayToGcs({x:i.x+t.radius,y:i.y},d.gcs()),s=Math.pow(Math.pow(a.y-r.y,2)+Math.pow(a.x-r.x,2),.5),l=n.zoom(),c=s*Math.pow(2,l);t=Object.assign({},t,{radius:c}),v=new o(t),x.forEach(function(t,n){var i=u.normalizeCoordinates(e(t,n));i.index=n,v.addPoint(i)}),_=null,d._handleZoom(n.zoom())}},this._handleZoom=function(t){var e=Math.floor(t);if(y&&e!==_){_=e;for(var n=v.points(e),i=v.clusters(e),r=new Array(n.length+i.length),o=0;o<n.length;o+=1)r[o]=x[n[o].index];for(var a=0,s=n.length;a<i.length;a+=1,s+=1){var l=i[a];l.__cluster=!0,r[s]=l}b=!0,d.data(r)}},this.position=function(t){if(void 0===t)return d.style("position");var e=u.isFunction(t);return d.style("position",function(n,i){return null!=n&&n.__cluster?n:e?t(n,i):t}),d.dataTime().modified(),d.modified(),d},this._updateRangeTree=function(){if(!(p.timestamp()>=d.dataTime().timestamp()&&p.timestamp()>=d.timestamp())){var t,e,n=d.style.get("radius"),o=d.style.get("stroke"),a=d.style.get("strokeWidth");e=d.position(),g=0,t=d.data().map(function(t,i){var r=e(t,i);return g=Math.max(g,n(t,i)+(o(t,i)?a(t,i):0)),[r.x,r.y]}),f=new c(t.length);var s,l=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(t);try{for(l.s();!(s=l.n()).done;){var u=i(s.value,2),h=u[0],m=u[1];f.add(h,m)}}catch(t){l.e(t)}finally{l.f()}f.finish(),p.modified()}},this.pointSearch=function(t,e){var n,i,r,o,a,s,l=[],u=[],c=[],h=d.gcs(),p=d.style.get("fill"),m=d.style.get("stroke"),y=d.style.get("strokeWidth"),v=d.style.get("radius");return(r=d.data())&&r.length?(d._updateRangeTree(),o=d.layer().map(),a=o.gcsToDisplay(t,e),s=[o.displayToGcs({x:a.x-g,y:a.y-g},h),o.displayToGcs({x:a.x+g,y:a.y-g},h),o.displayToGcs({x:a.x-g,y:a.y+g},h),o.displayToGcs({x:a.x+g,y:a.y+g},h)],n={x:Math.min(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.min(s[0].y,s[1].y,s[2].y,s[3].y)},i={x:Math.max(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.max(s[0].y,s[1].y,s[2].y,s[3].y)},l=f.range(n.x,n.y,i.x,i.y),(l=Uint32Array.from(l).sort()).forEach(function(t){var e=r[t],n=m(r[t],t);if(n||p(r[t],t)){var i,s,l,f,g=d.position()(e,t);l=v(r[t],t),(l+=n?y(r[t],t):0)&&(f=l*l,(i=(g=o.gcsToDisplay(g,h)).x-a.x)*i+(s=g.y-a.y)*s<=f&&(u.push(e),c.push(t)))}}),{found:u,index:c}):{found:[],index:[]}},this.polygonSearch=function(t,e,n){var i,r,o,a,s=d.gcs(),l=[],c=[],h={},p=d.layer().map(),m=d.data(),y=d.style.get("fill"),v=d.style.get("stroke"),x=d.style.get("strokeWidth"),_=d.style.get("radius");return t.outer||(t={outer:t,inner:[]}),t.outer.length<3||!m||!m.length?{found:[],index:[],extra:{}}:((e=e||{}).partial=e.partial||!1,(t={outer:p.gcsToDisplay(t.outer,n),inner:(t.inner||[]).map(function(t){return p.gcsToDisplay(t,n)})}).outer.forEach(function(t){r||(r={x:t.x,y:t.y},o={x:t.x,y:t.y}),t.x<r.x&&(r.x=t.x),t.x>o.x&&(o.x=t.x),t.y<r.y&&(r.y=t.y),t.y>o.y&&(o.y=t.y)}),d._updateRangeTree(),a=[p.displayToGcs({x:r.x-g,y:r.y-g},s),p.displayToGcs({x:o.x+g,y:r.y-g},s),p.displayToGcs({x:o.x+g,y:o.y+g},s),p.displayToGcs({x:r.x-g,y:o.y+g},s)],r={x:Math.min(a[0].x,a[1].x,a[2].x,a[3].x),y:Math.min(a[0].y,a[1].y,a[2].y,a[3].y)},o={x:Math.max(a[0].x,a[1].x,a[2].x,a[3].x),y:Math.max(a[0].y,a[1].y,a[2].y,a[3].y)},i=f.range(r.x,r.y,o.x,o.y),(i=Uint32Array.from(i).sort()).forEach(function(n){var i=m[n],r=v(m[n],n);if(r||y(m[n],n)){var o=d.position()(i,n),a=_(m[n],n);if(a+=r?x(m[n],n):0){o=p.gcsToDisplay(o,s);var f=u.distanceToPolygon2d(o,t);(f>=a||f>=0&&"center"===e.partial||f>=-a&&e.partial&&"center"!==e.partial)&&(l.push(i),c.push(n),h[n]={partial:f<a,distance:f})}}}),{found:l,index:c,extra:h})},this.data=function(t){return void 0===t?m():(b||(x=t),y&&!b?d._clusterData():m(t),b=!1,d)},this._init=function(t){t=t||{},h.call(d,t);var e=u.deepMerge({},{radius:5,stroke:!0,strokeColor:{r:.851,g:.604,b:0},strokeWidth:1.25,strokeOpacity:1,fillColor:{r:1,g:.839,b:.439},fill:!0,fillOpacity:.8,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){return t.length>=3?t.slice(0,3):[0,0,0]}},void 0===t.style?{}:t.style);return void 0!==t.position&&(e.position=t.position),d.style(e),e.position&&d.position(e.position),d.dataTime().modified(),d.geoOn(a.zoom,function(t){d._handleZoom(t.zoomLevel)}),d},d};l.create=function(t,e){"use strict";return(e=e||{}).type="point",s.create(t,e)},l.capabilities={feature:"point",stroke:"point.stroke"},l.primitiveShapes={auto:"auto",sprite:"sprite",triangle:"triangle",square:"square"},a(l,s),t.exports=l},7549:function(t,e,n){var i;!function(r,o){if(r){for(var a,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},c={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();x.prototype.bind=function(t,e,n){var i=this;return t=t instanceof Array?t:[t],i._bindMultiple.call(i,t,e,n),i},x.prototype.unbind=function(t,e){return this.bind.call(this,t,function(){},e)},x.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},x.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},x.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(v(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},x.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},x.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(s[e]=t[e]);a=null},x.init=function(){var t=x(o);for(var e in t)"_"!==e.charAt(0)&&(x[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},x.init(),r.Mousetrap=x,t.exports&&(t.exports=x),void 0===(i=function(){return x}.call(e,n,e,t))||(t.exports=i)}function h(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function f(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return s[t.which]?s[t.which]:l[t.which]?l[t.which]:String.fromCharCode(t.which).toLowerCase()}function p(t,e){return t.sort().join(",")===e.sort().join(",")}function m(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function g(t,e,n){return n||(n=function(){if(!a)for(var t in a={},s)t>95&&t<112||s.hasOwnProperty(t)&&(a[s[t]]=t);return a}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function y(t,e){var n,i,r,o=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),r=0;r<n.length;++r)i=n[r],c[i]&&(i=c[i]),e&&"keypress"!=e&&u[i]&&(i=u[i],o.push("shift")),m(i)&&o.push(i);return{key:i,modifiers:o,action:e=g(i,o,e)}}function v(t,e){return null!==t&&t!==o&&(t===e||v(t.parentNode,e))}function x(t){var e=this;if(t=t||o,!(e instanceof x))return new x(t);e.target=t,e._callbacks={},e._directMap={};var n,i={},r=!1,a=!1,s=!1;function l(t){t=t||{};var e,n=!1;for(e in i)t[e]?n=!0:i[e]=0;n||(s=!1)}function u(t,n,r,o,a,s){var l,u,c=[],d=r.type;if(!e._callbacks[t])return[];for("keyup"==d&&m(t)&&(n=[t]),l=0;l<e._callbacks[t].length;++l)if(u=e._callbacks[t][l],(o||!u.seq||i[u.seq]==u.level)&&d==u.action&&("keypress"==d&&!r.metaKey&&!r.ctrlKey||p(n,u.modifiers))){var h=!o&&u.combo==a,f=o&&u.seq==o&&u.level==s;(h||f)&&e._callbacks[t].splice(l,1),c.push(u)}return c}function c(t,n,i,r){e.stopCallback(n,n.target||n.srcElement,i,r)||!1===t(n,i)&&(function(t){t.preventDefault?t.preventDefault():t.returnValue=!1}(n),function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}(n))}function d(t){"number"!=typeof t.which&&(t.which=t.keyCode);var n=f(t);n&&("keyup"!=t.type||r!==n?e.handleKey(n,function(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}(t),t):r=!1)}function g(t,e,o,a){function u(e){return function(){s=e,++i[t],clearTimeout(n),n=setTimeout(l,1e3)}}function d(e){c(o,e,t),"keyup"!==a&&(r=f(e)),setTimeout(l,10)}i[t]=0;for(var h=0;h<e.length;++h){var p=h+1===e.length?d:u(a||y(e[h+1]).action);v(e[h],p,a,t,h)}}function v(t,n,i,r,o){e._directMap[t+":"+i]=n;var a,s=(t=t.replace(/\s+/g," ")).split(" ");s.length>1?g(t,s,n,i):(a=y(t,i),e._callbacks[a.key]=e._callbacks[a.key]||[],u(a.key,a.modifiers,{type:a.action},r,t,o),e._callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:t}))}e._handleKey=function(t,e,n){var i,r=u(t,e,n),o={},d=0,h=!1;for(i=0;i<r.length;++i)r[i].seq&&(d=Math.max(d,r[i].level));for(i=0;i<r.length;++i)if(r[i].seq){if(r[i].level!=d)continue;h=!0,o[r[i].seq]=1,c(r[i].callback,n,r[i].combo,r[i].seq)}else h||c(r[i].callback,n,r[i].combo);var f="keypress"==n.type&&a;n.type!=s||m(t)||f||l(o),a=h&&"keydown"==n.type},e._bindMultiple=function(t,e,n){for(var i=0;i<t.length;++i)v(t[i],e,n)},h(t,"keypress",d),h(t,"keydown",d),h(t,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},7605:function(t,e,n){"use strict";n.r(e);var i=n(5292),r=n.n(i),o=n(9893),a=n.n(o),s=n(9383),l=n.n(s),u=n(6884),c=n.n(u),d=n(9088),h=n.n(d),f=n(7997),p=n.n(f),m=n(632),g={};g.styleTagTransform=p(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=h();r()(m.A,g);e.default=m.A&&m.A.locals?m.A.locals:void 0},7606:function(e){"use strict";if(void 0===t){var n=new Error("Cannot find module 'hammerjs'");throw n.code="MODULE_NOT_FOUND",n}e.exports=t},7616:function(t,e,n){var i=n(698),r=n(4626);i.groupNode=function(){"use strict";if(!(this instanceof i.groupNode))return new i.groupNode;i.node.call(this);var t=[];return this.addChild=function(e){return e instanceof i.node&&(-1===t.indexOf(e)&&(e.setParent(this),t.push(e),this.boundsDirtyTimestamp().modified(),!0))},this.removeChild=function(e){if(e.parent()===this){var n=t.indexOf(e);if(n>=0)return t.splice(n,1),e.setParent(null),this.boundsDirtyTimestamp().modified(),!0}return!1},this.removeChildren=function(){for(;t.length;)this.removeChild(t[0]);this.modified()},this.children=function(){return t},this.hasChild=function(e){var n=0,i=!1;for(n=0;n<t.length;n+=1)if(t[n]===e){i=!0;break}return i},this},r(i.groupNode,i.node)},7665:function(t){t.exports="/* markerFeature sprite vertex shader */\n\n/* markerFeature common vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute float radius;\nattribute vec3 fillColor;\nattribute float fillOpacity;\nattribute vec3 strokeColor;\nattribute float strokeOpacity;\nattribute float strokeWidth;\nattribute float symbol; /* contains some bit fields */\nattribute float symbolValue;\nattribute float rotation;\nuniform float zoom;\nuniform float rotationUniform;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\n// non-sprite has other definitions.\nvarying float radiusVar;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float strokeWidthVar;\nvarying float symbolVar; /* contains some bit fields */\nvarying float symbolValueVar;\nvarying float rotationVar;\n\nfloat markerFeaturePrep(void)\n{\n // No stroke or fill implies nothing to draw\n if (radius <= 0.0 || (strokeOpacity <= 0.0 && fillOpacity <= 0.0)) {\n gl_Position = vec4(2.0, 2.0, 0.0, 1.0);\n return 0.0;\n }\n radiusVar = radius;\n strokeWidthVar = strokeWidth;\n int scaleMode = int(mod(symbol, 4.0));\n float strokeOffset = mod(floor(symbol / 16.0), 4.0) - 1.0;\n radiusVar += (strokeOffset + 1.0) / 2.0 * strokeWidthVar;\n if (scaleMode == 1) { // fill\n radiusVar = (radiusVar - strokeWidthVar) * exp2(zoom) + strokeWidthVar;\n } else if (scaleMode == 2) { // stroke\n radiusVar += strokeWidthVar * (exp2(zoom) - 1.0);\n strokeWidthVar *= exp2(zoom);\n } else if (scaleMode == 3) { // all\n radiusVar *= exp2(zoom);\n strokeWidthVar *= exp2(zoom);\n }\n fillColorVar = vec4(fillColor, fillOpacity);\n strokeColorVar = vec4(strokeColor, strokeOpacity);\n symbolVar = symbol;\n symbolValueVar = symbolValue;\n rotationVar = rotation;\n if (bool(mod(floor(symbolVar / 4.0), 2.0))) {\n rotationVar += rotationUniform;\n }\n return radiusVar;\n}\n\n\nvoid main(void)\n{\n radiusVar = markerFeaturePrep();\n if (radiusVar == 0.0) {\n return;\n }\n // for sprite\n gl_Position = (projectionMatrix * modelViewMatrix * vec4(pos, 1.0)).xyzw;\n gl_PointSize = 2.0 * radiusVar;\n}\n"},7682:function(t){t.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},7695:function(t,e,n){var i=n(698);i.data=function(){"use strict";if(!(this instanceof i.data))return new i.data;this.type=function(){}},i.data.raster=0,i.data.point=1,i.data.lineString=2,i.data.polygon=3,i.data.geometry=10},7705:function(t){t.exports=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}},7715:function(t,e,n){"use strict";n.r(e),e.default={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7724:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return p},init:function(){return f},inverse:function(){return m},names:function(){return g}});var i=n(1341),r=n(7954),o=n(3611),a=n(4280),s=n(7072),l=n(1417),u=n(6269),c=n(6165),d=n(364),h=n(7e3);function f(){Math.abs(this.lat1+this.lat2)<h.H0||(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=(0,i.A)(this.es),this.e1=(0,r.A)(this.es),this.e2=(0,o.A)(this.es),this.e3=(0,a.A)(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=(0,s.A)(this.e,this.sin_phi,this.cos_phi),this.ml1=(0,l.A)(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<h.H0?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=(0,s.A)(this.e,this.sin_phi,this.cos_phi),this.ml2=(0,l.A)(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=(0,l.A)(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function p(t){var e,n=t.x,i=t.y;if(this.sphere)e=this.a*(this.g-i);else{var r=(0,l.A)(this.e0,this.e1,this.e2,this.e3,i);e=this.a*(this.g-r)}var o=this.ns*(0,u.A)(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}function m(t){var e,n,i,r;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;if(0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return r=(0,u.A)(this.long0+o/this.ns),i=(0,c.A)(this.g-n/this.a),t.x=r,t.y=i,t;var a=this.g-n/this.a;return i=(0,d.A)(a,this.e0,this.e1,this.e2,this.e3),r=(0,u.A)(this.long0+o/this.ns),t.x=r,t.y=i,t}var g=["Equidistant_Conic","eqdc"];e.default={init:f,forward:p,inverse:m,names:g}},7733:function(t){t.exports=function(t,e,n,i){var r=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),u=2/(r+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(r-o)*u*.5,t[10]=i/(n-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*n/(n-i),t[15]=0,t}},7759:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7761),a=n(411),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);o.call(this,t),n(4084).call(this);var e,i,r,u=n(1611),c=n(3925),d=this._exit,h=this;return this.pointSearch=function(t,n){if(e&&h.m_info)for(var i=e.pointSearch(t,n),r=i.index.length-1;r>=0;r-=1)if(i.extra[i.index[r]]._quad&&i.extra[i.index[r]]._quad.image){var o=i.extra[i.index[r]]._quad.image,a=i.extra[i.index[r]].basis,s=Math.floor(a.x*o.width),l=Math.floor(a.y*o.height),u=document.createElement("canvas");u.width=u.height=1;var c=u.getContext("2d");c.drawImage(o,s,l,1,1,0,0,1,1);var d=c.getImageData(0,0,1,1).data,f=d[0]+256*d[1]+256*d[2]*256;return i={index:[f],found:[h.data()[f]]}}return{index:[],found:[]}},this._computePixelmap=function(){var t=h.data()||[],n=h.style.get("color"),o=h.indexModified(void 0,"clear"),l=h.dataTime().timestamp()>=h.buildTime().timestamp()||void 0===o;r||((r=a()).setTextureUnit(1),l=!0);var d,f=Math.max(1,t.length),p=r.maxWidth();f>p&&f%p&&(f+=p-f%p),l||(l=(d=r.colorTable()).length!==4*f,o[0]=Math.max(0,o[0]),o[1]=Math.min(t.length,o[1]+1)),l&&(d=new Uint8Array(4*f),o=[0,t.length]);for(var m=o[0];m<o[1];m+=1){var g=t[m],y=s.convertColor(n.call(h,g,m));d[4*m]=255*y.r,d[4*m+1]=255*y.g,d[4*m+2]=255*y.b,d[4*m+3]=void 0===y.a?255:255*y.a}h.m_info={colors:d};var v=r.colorTable();if(v&&v.length===d.length){for(var x=4*o[0];x<4*o[1]&&d[x]===v[x];x+=1);if(x===4*o[1])return}r.colorTable(d),e||(e=h.layer().createFeature("quad",{selectionAPI:!1,gcs:h.gcs(),visible:h.visible(void 0,!0),nearestPixel:!0}),i=!1),i||(h.dependentFeatures([e]),e.setShader("image_fragment",c),e._hookBuild=function(t){var e=new u.uniform(u.GL.INT,"lutSampler");e.set(r.textureUnit()),t.addUniform(e);var n=new u.uniform(u.GL.INT,"lutWidth");n.set(r.width),t.addUniform(n);var i=new u.uniform(u.GL.INT,"lutHeight");i.set(r.height),t.addUniform(i)},e._hookRenderImageQuads=function(t,e){r.bind(t,e)},!1===i&&e.style({image:h.m_srcImage,position:h.style.get("position")}).data([{}]).draw(),i=!0)},this._exit=function(){return e&&h.layer()&&(h.layer().deleteFeature(e),e=null,h.dependentFeatures([])),d(),h},t.quadFeature&&(e=t.quadFeature).nearestPixel&&e.nearestPixel(!0),this._init(t),this};i(l,o);var u={};u[o.capabilities.lookup]=!0,r("webgl","pixelmap",l,u),t.exports=l},7761:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},o.call(this,t);var e,n=this,r=this._update,l=this._init;return this.featureType="pixelmap",this.position=function(t){return void 0===t?n.style("position"):(t!==n.style("position")&&(n.style("position",t),n.dataTime().modified(),n.modified()),n)},this.url=function(t){return void 0===t?n.style("url"):(t!==n.style("url")&&(n.m_srcImage=n.m_info=void 0,n.style("url",t),n.dataTime().modified(),n.modified()),n)},this.color=function(t){return void 0===t?n.style("color"):(t!==n.style("color")&&(n.style("color",t),n.dataTime().modified(),n.modified()),n)},this.indexModified=function(t,i){if(void 0===t){var r=e;return"clear"===i&&(e=void 0),r}return n.modified(),void 0===e&&(e=[t,t]),t<e[0]&&(e[0]=t),(i||t)>e[1]&&(e[1]=i||t),n},this._update=function(){return r.call(n),(n.buildTime().timestamp()<=n.dataTime().timestamp()||n.updateTime().timestamp()<n.timestamp())&&n._build(),n.updateTime().modified(),n},this.maxIndex=function(){if(n.m_info){if(void 0===n.m_info.maxIndex)for(var t in n.m_info.maxIndex=0,n.m_info.mappedColors)n.m_info.mappedColors.hasOwnProperty(t)&&(n.m_info.maxIndex=Math.max(n.m_info.maxIndex,t));return n.m_info.maxIndex}},this._computePixelmap=function(){},this._build=function(){if(n.m_srcImage)n.m_info&&n._computePixelmap();else{var t=n.style.get("url")();if(a.isReadyImage(t))n.m_srcImage=t,n._computePixelmap();else if(t){var e,r,o=i.Deferred();t instanceof Image?(n.m_srcImage=t,e=t.onload,r=t.onerror):(n.m_srcImage=new Image,t.indexOf(":")>=0&&t.indexOf("/")===t.indexOf(":")+1&&(n.m_srcImage.crossOrigin=n.style.get("crossDomain")()||"anonymous")),n.m_srcImage.onload=function(){e&&e.apply(n,arguments),n.style.get("url")()===t&&(n.m_info=void 0,n._computePixelmap()),o.resolve()},n.m_srcImage.onerror=function(){r&&r.apply(n,arguments),o.reject()},o.promise(n),n.layer().addPromise(n),t instanceof Image||(n.m_srcImage.src=t)}}return n.buildTime().modified(),n},this._init=function(t){t=t||{},l.call(n,t);var e=Object.assign({},{color:function(t,e){return{r:(255&e)/255,g:(e>>8&255)/255,b:(e>>16&255)/255,a:1}},position:a.identityFunction},void 0===t.style?{}:t.style);return void 0!==t.position&&(e.position=t.position),void 0!==t.url&&(e.url=t.url),void 0!==t.color&&(e.color=t.color),n.style(e),n.dataTime().modified(),t.quadFeature&&(n.m_srcImage=!0,n._computePixelmap()),n},this};s.create=function(t,e){"use strict";return(e=e||{}).type="pixelmap",o.create(t,e)},s.capabilities={feature:"pixelmap",lookup:"pixelmap.lookup"},r(s,o),t.exports=s},7854:function(t,e,n){var i=n(8738),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=n(2493),r=this,o=this._exit,s=null;return this._init=function(){var e;return t.hasOwnProperty("parent")&&(t.parent.addChild(r),e=t.parent.canvas()),r._createCanvas(e),r.canvas().addEventListener("mousedown",function(t){t.stopPropagation()}),r.reposition(),r},this._exit=function(){s&&s._exit(),o()},this._createCanvas=function(t){var n={layer:r.layer(),widget:!0};t&&(n.d3Parent=t),(s=e(n))._resize=function(){},r.canvas(s.canvas().node())},this};r(a,i),o("dom","svg",a),t.exports=a},7897:function(t,e,n){"use strict";function i(t){var e=Math.exp(t);return e=(e-1/e)/2}n.d(e,{A:function(){return i}})},7908:function(t,e,n){var i=n(4626),r=n(1338),o=n(642),a=n(7549),s=function(t){"use strict";if(!(this instanceof s))return new s(t);r.call(this);var e,i,l,u,c,d,h,f,p,m,g=n(5616),y=n(6409),v=n(8695),x=n(642).throttle,_=n(642).debounce,b=n(642).actionMatch,w=n(3842),M=this,A=0,E=null,T=!1,S=!1,C=function(){};function k(t){var e=t.x,n=t.y;return Math.sqrt(e*e+n*n)}function P(){d={boundDocumentHandlers:d.boundDocumentHandlers}}function O(t,n){n=n<=0?30:n;var i=function(){var t,n,i,r;if(!e.spring.enabled)return{x:0,y:0};var o=M.map().maxBounds(void 0,null),a=M.map().gcsToDisplay({x:o.left,y:o.top},null),s=M.map().gcsToDisplay({x:o.right,y:o.bottom},null),l=e.spring.springConstant,u=M.map().node().width(),c=M.map().node().height();return t=l*Math.max(0,a.x),n=l*Math.max(0,u-s.x),i=l*Math.max(0,a.y)/2,r=l*Math.max(0,c-s.y)/2,{x:t-n,y:i-r}}(),r=k(t),o=t.x/r,a=t.y/r;return r*=Math.exp(-e.momentum.drag*n),k(i)*n+r<e.momentum.minSpeed?null:(r>0?(o*=r,a*=r):(o=0,a=0),{x:o-i.x*n,y:a-i.y*n})}return e=o.deepMerge({},{throttle:30,discreteZoom:!1,actions:[{action:v.pan,input:"left",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button pan"},{action:v.zoom,input:"right",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button zoom"},{action:v.zoom,input:"wheel",modifiers:{shift:!1},owner:"geo.mapInteractor",name:"wheel zoom"},{action:v.rotate,input:"left",modifiers:{shift:!1,ctrl:!0},owner:"geo.mapInteractor",name:"button rotate"},{action:v.rotate,input:"wheel",modifiers:{shift:!0,ctrl:!1},owner:"geo.mapInteractor",name:"wheel rotate"},{action:v.select,input:"left",modifiers:{shift:!0,ctrl:!0},selectionRectangle:y.select,owner:"geo.mapInteractor",name:"drag select"},{action:v.zoomselect,input:"left",modifiers:{shift:!0,ctrl:!1},selectionRectangle:y.zoomselect,owner:"geo.mapInteractor",name:"drag zoom"},{action:v.unzoomselect,input:"right",modifiers:{shift:!0,ctrl:!1},selectionRectangle:y.unzoomselect,owner:"geo.mapInteractor",name:"drag unzoom"},{action:v.pan,input:"pan",owner:"geo.mapInteractor",name:"touch pan"},{action:v.zoomrotate,input:"rotate",owner:"geo.mapInteractor",name:"touch zoom and rotate"},{action:v.pan,input:"middle",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button pan"}],click:{enabled:!0,buttons:{left:!0,right:!0,middle:!0},duration:0,cancelOnMove:!0},keyboard:{actions:{"zoom.in":["plus","shift+plus","shift+ctrl+plus","=","shift+=","shift+ctrl+="],"zoom.out":["-","shift+-","shift+ctrl+-","_","shift+_","shift+ctrl+_"],"zoom.0":["1"],"zoom.3":["2"],"zoom.6":["3"],"zoom.9":["4"],"zoom.12":["5"],"zoom.15":["6"],"zoom.18":["7"],"pan.left":["left","shift+left","shift+ctrl+left"],"pan.right":["right","shift+right","shift+ctrl+right"],"pan.up":["up","shift+up","shift+ctrl+up"],"pan.down":["down","shift+down","shift+ctrl+down"],"rotate.ccw":["<","shift+<","shift+ctrl+<",".","shift+.","shift+ctrl+."],"rotate.cw":[">","shift+>","shift+ctrl+>",",","shift+,","shift+ctrl+,"],"rotate.0":["0"]},meta:{0:{shift:!1,ctrl:!1},1:{shift:!0,ctrl:!0},2:{shift:!0,ctrl:!1}},metakeyMouseEvents:["shift","ctrl","shift+ctrl","shift+alt","shift+meta"],focusHighlight:!0},alwaysTouch:!1,wheelScaleX:1,wheelScaleY:1,zoomScale:1,rotateWheelScale:6*Math.PI/180,zoomrotateMinimumRotation:5*Math.PI/180,zoomrotateReverseRotation:4*Math.PI/180,zoomrotateMinimumZoom:.05,zoomrotateMinimumPan:5,touchPanDelay:50,momentum:{enabled:!0,maxSpeed:2.5,minSpeed:.01,stopTime:250,drag:.01,actions:[v.pan,v.zoom]},spring:{enabled:!1,springConstant:5e-5},zoomAnimation:{enabled:!0,duration:500,ease:function(t){return(2-t)*t}}},t||{}),t&&t.actions&&(e.actions=o.deepMerge([],t.actions)),t&&t.momentum&&t.momentum.actions&&(e.momentum.actions=o.deepMerge([],t.momentum.actions)),t&&t.keyboard&&void 0!==t.keyboard.actions&&(e.keyboard.actions=o.deepMerge({},t.keyboard.actions)),i={page:{x:0,y:0},map:{x:0,y:0},geo:{x:0,y:0},mapgcs:{x:0,y:0},buttons:{left:!1,right:!1,middle:!1},modifiers:{alt:!1,ctrl:!1,shift:!1,meta:!1},time:new Date,deltaTime:1,velocity:{x:0,y:0}},d={},h={},this._handleKeys=function(t,n,i){i&&!0===i.simulated&&(n=i);var r,o,a=e.keyboard.meta||{0:{}},s=M.map(),l=s.size(),u=t,c="",d={};for(r in a)a.hasOwnProperty(r)&&(void 0!==a[r].shift&&n.shiftKey!==!!a[r].shift||void 0!==a[r].ctrl&&n.ctrlKey!==!!a[r].ctrl||void 0!==a[r].alt&&n.altKey!==!!a[r].alt||void 0!==a[r].meta&&n.metaKey!==!!a[r].meta||(o=r));if(void 0!==o){switch(n.stopPropagation(),n.preventDefault(),t.indexOf(".")>=0&&(u=t.substr(0,t.indexOf(".")),c=t.substr(t.indexOf(".")+1)),u){case"zoom":switch(c){case"in":d.zoomDelta=[.05,.25,1][o];break;case"out":d.zoomDelta=-[.05,.25,1][o];break;default:isNaN(parseFloat(c))||(d.zoom=parseFloat(c))}break;case"pan":switch(c){case"down":d.panY=-Math.max(1,[0,.05,.5][o]*l.height);break;case"left":d.panX=Math.max(1,[0,.05,.5][o]*l.width);break;case"right":d.panX=-Math.max(1,[0,.05,.5][o]*l.width);break;case"up":d.panY=Math.max(1,[0,.05,.5][o]*l.height)}break;case"rotate":switch(c){case"ccw":d.rotationDelta=[1,5,90][o]*Math.PI/180;break;case"cw":d.rotationDelta=-[1,5,90][o]*Math.PI/180;break;default:isNaN(parseFloat(c))||(d.rotation=parseFloat(c))}}s.geoTrigger(y.keyaction,{move:d,action:t,factor:o,event:n}),d.cancel||(void 0!==d.zoom?s.zoom(d.zoom):d.zoomDelta&&s.zoom(s.zoom()+d.zoomDelta),void 0!==d.rotation?s.rotation(d.rotation):d.rotationDelta&&s.rotation(s.rotation()+d.rotationDelta),(d.panX||d.panY)&&s.pan({x:d.panX||0,y:d.panY||0}))}},this.hasTouchSupport=function(){return"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof window.DocumentTouch||(navigator.msMaxTouchPoints||navigator.maxTouchPoints)>1},this._handleTouch=function(t){var n=!1;if("mouse"===t.pointerType&&c.touchSupport&&(n=!0),"hammer.input"===t.type){if("pan"!==c.lastEventType||1===t.pointers.length)return;n=!0,c.lastEventType=null}var i=/^(.*)(start|end|move|tap)$/.exec(t.type);if(i&&3===i.length||(n=!0),n)d.boundDocumentHandlers&&c.lastEvent&&M._handleMouseUpDocument(c.lastEvent);else{t.which=i[1];var r=(new Date).valueOf();"pan"===t.which&&"pan"!==c.lastEventType&&r-c.lastTime<e.touchPanDelay||(c.lastTime=r,c.lastEventType=t.which,c.lastEvent=t,void 0===t.pageX&&void 0!==t.center&&void 0!==t.center.x&&(t.pageX=t.center.x,t.pageY=t.center.y),"start"===i[2]&&(M._handleMouseDown(t),M._setClickMaybe(!1),d.boundDocumentHandlers&&g(document).on("mousemove.geojs",M._handleMouseUpDocument)),"start"!==i[2]&&"move"!==i[2]||(d.boundDocumentHandlers?M._handleMouseMoveDocument(t):M._handleMouseMove(t)),"end"!==i[2]&&"cancel"!==i[2]||(d.boundDocumentHandlers?M._handleMouseUpDocument(t):M._handleMouseUp(t),c.lastEvent=null),"tap"!==i[2]||d.boundDocumentHandlers||(t.which=1,c.lastEventType=null,M._handleMouseDown(t),M._handleMouseUp(t),c.lastEventType=i[2]))}},this._repeatMouseMoveEvent=function(t){if(i&&i.modifiers){var e=i.modifiers.alt,n=i.modifiers.ctrl,r=i.modifiers.meta,o=i.modifiers.shift;M._getMouseModifiers(t),i.modifiers.alt===e&&i.modifiers.ctrl===n&&i.modifiers.meta===r&&i.modifiers.shift===o||(d.boundDocumentHandlers?M.map().geoTrigger(y.actionmove,{state:M.state(),mouse:M.mouse(),event:t}):M.map().geoTrigger(y.mousemove,M.mouse()))}},this.retriggerMouseMove=function(){M.map().geoTrigger(y.mousemove,M.mouse())},this._connectEvents=function(){if(!e.map)return M;M._disconnectEvents(),f=g(e.map.node()),M._handleMouseWheel=function(){var t={};function n(n){var i,r;T||(t!==h&&(h=t={kind:"wheel",scroll:{x:0,y:0}}),n.preventDefault(),n.deltaFactor=1,1===n.originalEvent.deltaMode?n.deltaFactor=40:2===n.originalEvent.deltaMode&&(n.deltaFactor=g(window).height()),i=n.originalEvent.deltaX||0,r=n.originalEvent.deltaY||0,i=i*e.wheelScaleX*n.deltaFactor/120,r=r*e.wheelScaleY*n.deltaFactor/120,t.scroll.x+=i,t.scroll.y+=r)}function r(n){var r,o;if(t===h){if(M._getMousePosition(n),M._getMouseButton(n),M._getMouseModifiers(n),o=(b({wheel:!0},i.modifiers,e.actions)||{}).action){var a=M.map().transitionCancel("wheel."+o);switch((a|=M.cancel(v.momentum,!0))&&(i.geo=M.map().displayToGcs(i.map),i.mapgcs=M.map().displayToGcs(i.map,null)),o){case v.pan:M.map().pan({x:h.scroll.x,y:h.scroll.y},void 0,"limited");break;case v.zoom:r=-h.scroll.y,C(r,i);break;case v.rotate:M.map().rotation(M.map().rotation()+h.scroll.y*e.rotateWheelScale,i)}M.map().geoTrigger(y.actionwheel,{state:M.state(),mouse:M.mouse(),eventData:n})}h={}}}return e.throttle>0?x(e.throttle,!1,r,n):function(t){n(t),r(t)}}(),C=function(){var t,n,i,r=0,a=400;function s(a,s){var l,u=M.map();t=o.deepMerge({},s),r+=a,void 0===i&&(n=i=u.zoom()),i+=a,u&&Math.abs(r)>=1&&e.discreteZoom&&!e.zoomAnimation.enabled&&(l=Math.round(r+u.zoom()),r=r+u.zoom()-l,u.zoom(l,t))}function l(){var o,a=M.map();a&&(e.zoomAnimation.enabled?(o=i,e.discreteZoom&&(o=Math.round(o))===n&&i!==n&&(o=n+(i>n?1:-1)),(o=Math.round(1e6*a._fix_zoom(o))/1e6)!==a.zoom()?(a.transitionCancel("debounced_zoom."+v.zoom),a.transition({zoom:o,zoomOrigin:t,duration:e.zoomAnimation.duration,ease:e.zoomAnimation.ease,done:function(t){t=t||{};var n=new RegExp("\\."+v.zoom+"$");t.next||t.cancel&&!((""+t.source).search(n)<0)||(i=void 0),e.discreteZoom&&t.cancel&&t.transition&&t.transition.end&&(""+t.source).search(n)<0&&a.zoom(t.transition.end.zoom,t.transition.end.zoomOrigin)}})):i=void 0):(o=r+a.zoom(),e.discreteZoom&&(o=Math.round(o)),a.zoom(o,t))),r=0}!0!==e.discreteZoom&&e.discreteZoom>0&&(a=e.discreteZoom);return(!0===e.discreteZoom||e.discreteZoom>0)&&!e.zoomAnimation.enabled?_(a,!1,l,s):function(t,e){(t||void 0!==i)&&(s(t,e),l())}}(),o.adjustActions(e.actions);var t={};if(["right","pan","rotate"].forEach(function(n){t[n]=e.actions.some(function(t){return t.input[n]})}),f.on("wheel.geojs",M._handleMouseWheel),f.on("mousemove.geojs",M._handleMouseMove),f.on("mousedown.geojs",M._handleMouseDown),f.on("mouseup.geojs",M._handleMouseUp),f.on("dragstart",function(){return!1}),t.right&&f.on("contextmenu.geojs",function(){return!1}),e.keyboard&&e.keyboard.actions){l=a(f[0]);var r=[];for(var s in e.keyboard.actions)e.keyboard.actions.hasOwnProperty(s)&&(l.bind(e.keyboard.actions[s],function(t){return function(e,n){M._handleKeys(t,e,n)}}(s)),r=r.concat(e.keyboard.actions[s]));e.keyboard.metakeyMouseEvents&&e.keyboard.metakeyMouseEvents.forEach(function(t){l.bind(t,M._repeatMouseMoveEvent,"keydown"),l.bind(t,M._repeatMouseMoveEvent,"keyup"),r.push(t)}),u=r}if(f.toggleClass("highlight-focus",!!(u&&u.length&&e.keyboard.focusHighlight)),(M.hasTouchSupport()||e.alwaysTouch)&&(t.pan||t.rotate)){var d;try{(d=n(7606))&&d.Manager||(d=void 0)}catch(t){}if(void 0!==d){var p=[],m=["hammer.input"];t.rotate&&(p.push([d.Rotate,{enable:!0}]),m=m.concat(["rotatestart","rotateend","rotatemove"])),t.pan&&(p.push([d.Pan,{direction:d.DIRECTION_ALL}]),m=m.concat(["panstart","panend","panmove"])),p.push([d.Tap,{event:"doubletap",taps:2}]),p.push([d.Tap,{event:"singletap"},void 0,["doubletap"]]),m=m.concat(["singletap"]);var w={recognizers:p,preventDefault:!0};(c={manager:new d.Manager(f[0],w),touchSupport:M.hasTouchSupport(),lastTime:0}).manager.get("doubletap").recognizeWith("singletap"),m.forEach(function(t){c.manager.on(t,M._handleTouch)})}}return M},this._disconnectEvents=function(){return u&&(l&&l.unbind(u),u=null,l=null),c&&(c.manager.destroy(),c=null),f&&(f.off(".geojs"),f=null),M._handleMouseWheel=function(){},C=function(){},M},this.map=function(t){return void 0!==t?(e.map=t,M._connectEvents(),M):e.map},this.options=function(t){return void 0===t?Object.assign({},e):(Object.assign(e,t),M._connectEvents(),M)},this._getMousePosition=function(t){if(void 0!==t.pageX&&void 0!==t.pageY){var e,n,r=f.offset();e=(n=(new Date).valueOf())-i.time,i.time=n,i.deltaTime=e,i.velocity={x:(t.pageX-i.page.x)/e,y:(t.pageY-i.page.y)/e},i.page={x:t.pageX,y:t.pageY},i.map={x:t.pageX-r.left,y:t.pageY-r.top};try{i.geo=M.map().displayToGcs(i.map),i.mapgcs=M.map().displayToGcs(i.map,null)}catch(t){i.geo=i.mapgcs=null}}},this._getMouseButton=function(t){if(void 0!==t.buttons||void 0!==t.which){for(var e in i.buttons)i.buttons.hasOwnProperty(e)&&(i.buttons[e]=!1);if(void 0!==t.buttons)i.buttons.left=!!(1&t.buttons),i.buttons.right=!!(2&t.buttons),i.buttons.middle=!!(4&t.buttons);else if("mouseup"!==t.type)switch(t.which){case 1:i.buttons.left=!0;break;case 2:i.buttons.middle=!0;break;case 3:i.buttons.right=!0}!t.which||t.which>=1&&t.which<=3||(i.buttons[t.which]=!0)}},this._getMouseModifiers=function(t){i.modifiers.alt=t.altKey,i.modifiers.ctrl=t.ctrlKey,i.modifiers.meta=t.metaKey,i.modifiers.shift=t.shiftKey},this._getSelection=function(){var t=d.origin,e=M.mouse(),n=M.map(),i={},r={},a=e.map;if(d.actionRecord&&o.isFunction(d.actionRecord.selectionConstraint)){var s=d.actionRecord.selectionConstraint(e.mapgcs,t.mapgcs);a=s?n.gcsToDisplay(s.pos,null):a}else if(e.modifiers.shift){var l=Math.pow(Math.abs((a.x-t.map.x)*(a.y-t.map.y)),.5);a={x:t.map.x+Math.sign(a.x-t.map.x)*l,y:t.map.y+Math.sign(a.y-t.map.y)*l}}return i.upperLeft={x:Math.min(t.map.x,a.x),y:Math.min(t.map.y,a.y)},i.lowerRight={x:Math.max(t.map.x,a.x),y:Math.max(t.map.y,a.y)},i.upperRight={x:i.lowerRight.x,y:i.upperLeft.y},i.lowerLeft={x:i.upperLeft.x,y:i.lowerRight.y},r.upperLeft=n.displayToGcs(i.upperLeft,null),r.lowerRight=n.displayToGcs(i.lowerRight,null),r.upperRight=n.displayToGcs(i.upperRight,null),r.lowerLeft=n.displayToGcs(i.lowerLeft,null),p.data([{ul:r.upperLeft,ur:r.upperRight,ll:r.lowerLeft,lr:r.lowerRight}]),p.draw(),{display:i,gcs:r,mouse:e,origin:Object.assign({},d.origin)}},this.cancel=function(t,e){var n;return(n=t?d.action===t:!!d.action)&&(e||(h={}),P()),n},this._setClickMaybe=function(t){S=t,m&&(window.clearTimeout(m),m=null)},this._handleMouseDown=function(t){var n,r;if(!(T||c&&"tap"===c.lastEventType&&(new Date).valueOf()-c.lastTime<1e3)){M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),M.map().geoTrigger(y.mousedown,M.mouse()),!e.click.enabled||i.buttons.left&&!e.click.buttons.left||i.buttons.right&&!e.click.buttons.right||i.buttons.middle&&!e.click.buttons.middle||(M._setClickMaybe({x:i.page.x,y:i.page.y,buttons:Object.assign({},i.buttons)}),e.click.duration>0&&(m=window.setTimeout(function(){S=!1,m=null},e.click.duration))),n=((r=b(i.buttons,i.modifiers,e.actions))||{}).action;var a=M.map();a.transitionCancel("_handleMouseDown"+(n?"."+n:"")),M.cancel(v.momentum),i.velocity={x:0,y:0},n&&(h={kind:"move"},A+=1,d={action:n,actionRecord:r,origin:o.deepMerge({},i),initialZoom:a.zoom(),initialRotation:a.rotation(),initialEventRotation:t.rotation,stateId:A,delta:{x:0,y:0}},r.selectionRectangle&&(E&&(E.clear(),a.deleteLayer(E),E=null),E=a.createLayer("feature",{features:[w.capabilities.color],autoshareRenderer:!1}),(p=E.createFeature("quad",{gcs:a.gcs()})).style({opacity:.25,color:{r:.3,g:.3,b:.3}}),a.geoTrigger(y.brushstart,M._getSelection())),a.geoTrigger(y.actiondown,{state:M.state(),mouse:M.mouse(),event:t}),e.throttle>0?g(document).on("mousemove.geojs",x(e.throttle,M._handleMouseMoveDocument)):g(document).on("mousemove.geojs",M._handleMouseMoveDocument),g(document).on("mouseup.geojs",M._handleMouseUpDocument),d.boundDocumentHandlers=!0)}},this._handleMouseMove=function(t){T||d.boundDocumentHandlers||(e.click.cancelOnMove&&S&&M._setClickMaybe(!1),M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),S||M.map().geoTrigger(y.mousemove,M.mouse()))},this._handleZoomrotate=function(t){var n=Math.log2(t.scale);if(!d.zoomrotateAllowZoom&&n&&Math.abs(n)>=Math.log2(1+e.zoomrotateMinimumZoom)&&(e.zoomrotateMinimumZoom&&(d.initialZoom-=n),d.zoomrotateAllowZoom=!0),d.zoomrotateAllowZoom&&n){var i=d.initialZoom+n;M.map().zoom(i,d.origin)}var r=(t.rotation-d.initialEventRotation)*Math.PI/180;if(!d.zoomrotateAllowRotation&&r&&Math.abs(r)>=e.zoomrotateMinimumRotation&&(e.zoomrotateMinimumRotation&&(d.initialEventRotation=t.rotation,r=0),d.zoomrotateAllowRotation=!0),d.zoomrotateAllowRotation){var a=d.initialRotation+r;(r=o.wrapAngle(a-M.map().rotation()))&&(r*(d.lastRotationDelta||0)>=0||Math.abs(r)>=e.zoomrotateReverseRotation)&&(M.map().rotation(a,d.origin),d.lastRotationDelta=r)}var s=d.origin.page;if(d.initialEventGeo){var l=f.offset();(s=M.map().gcsToDisplay(d.initialEventGeo)).x+=l.left,s.y+=l.top}var u=t.pageX-s.x,c=t.pageY-s.y,h=u*u+c*c;!d.zoomrotateAllowPan&&h&&h>=e.zoomrotateMinimumPan*e.zoomrotateMinimumPan&&(e.zoomrotateMinimumPan?(u=c=0,d.initialEventGeo=M.mouse().geo):d.initialEventGeo=d.origin.geo,d.zoomrotateAllowPan=!0),d.zoomrotateAllowPan&&(u||c)&&M.map().pan({x:u,y:c})},this._handleMouseMoveDocument=function(t){var n,r,o;if(M.map()&&!T&&"move"===h.kind){if(M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),e.click.cancelOnMove)if(void 0===S.x||void 0===S.y)M._setClickMaybe(!1);else if(!0!==e.click.cancelOnMove||i.page.x===S.x&&i.page.y===S.y){Math.sqrt(Math.pow(i.page.x-S.x,2)+Math.pow(i.page.y-S.y,2))>=e.click.cancelOnMove&&M._setClickMaybe(!1)}else M._setClickMaybe(!1);if(!S)if(d.action){if(n=i.map.x-d.origin.map.x-d.delta.x,r=i.map.y-d.origin.map.y-d.delta.y,d.delta.x+=n,d.delta.y+=r,d.action===v.pan)M.map().pan({x:n,y:r},void 0,"limited");else if(d.action===v.zoom)C(-r*e.zoomScale/120,d);else if(d.action===v.rotate){var a,s;void 0===d.origin.rotation&&(a=d.origin.map.x-M.map().size().width/2,s=d.origin.map.y-M.map().size().height/2,d.origin.rotation=M.map().rotation()-Math.atan2(s,a)),a=i.map.x-M.map().size().width/2,s=i.map.y-M.map().size().height/2,M.map().rotation(d.origin.rotation+Math.atan2(s,a))}else d.action===v.zoomrotate?M._handleZoomrotate(t):d.actionRecord.selectionRectangle&&(o=M._getSelection(),M.map().geoTrigger(y.brush,o));M.map().geoTrigger(y.actionmove,{state:M.state(),mouse:M.mouse(),event:t}),t.preventDefault()}else console.log("WARNING: Invalid state in mapInteractor.")}},this._zoomFromSelection=function(t,e,n){if((t===v.zoomselect||t===v.unzoomselect)&&e.x!==n.x&&e.y!==n.y){var i,r,o=M.map(),a=o.size(),s={x:Math.abs((n.x-e.x)/a.width),y:Math.abs((n.y-e.y)/a.height)};if(t===v.zoomselect?(r=o.displayToGcs({x:(e.x+n.x)/2,y:(e.y+n.y)/2},null),i=o.zoom()-Math.log2(Math.max(s.x,s.y))):(i=o.zoom()+Math.log2(Math.max(s.x,s.y)),r=o.center(void 0,null)),o.discreteZoom()&&(i=Math.floor(i)),o.zoom(i),t===v.zoomselect)o.center(r,null);else{var l=o.gcsToDisplay(r,null);o.pan({x:(e.x+n.x)/2-l.x,y:(e.y+n.y)/2-l.y})}}},this._handleMouseUpDocument=function(t){var n,r;if(!T&&(h={},M._setClickMaybe(!1),M._getMouseButton(t),M._getMouseModifiers(t),g(document).off(".geojs"),d.boundDocumentHandlers=!1,i.buttons.right&&t.preventDefault(),d.actionRecord&&d.actionRecord.selectionRectangle&&(M._getMousePosition(t),n=M._getSelection(),E.clear(),M.map().deleteLayer(E),E=null,p=null,M.map().geoTrigger(y.brushend,n),!0!==d.actionRecord.selectionRectangle&&M.map().geoTrigger(d.actionRecord.selectionRectangle,n),M._zoomFromSelection(d.action,n.display.lowerLeft,n.display.upperRight),M.map().geoTrigger(y.actionselection,{state:M.state(),mouse:M.mouse(),event:t,lowerLeft:n.display.lowerLeft,upperRight:n.display.upperRight})),M.map().geoTrigger(y.actionup,{state:M.state(),mouse:M.mouse(),event:t}),r=d.action,P(),e.momentum.enabled&&e.momentum.actions.includes(r))){var o=(new Date).valueOf(),a=o-i.time+i.deltaTime;o-i.time<e.momentum.stopTime?(i.velocity.x*=i.deltaTime/a,i.velocity.y*=i.deltaTime/a,i.deltaTime=a):i.velocity.x=i.velocity.y=0,M.springBack(!0,r)}},this._handleMouseUp=function(t){if(!T){M._getMouseButton(t),S&&M._handleMouseClick(t);var e=M.mouse();e.buttonsDown=S.buttons,M.map().geoTrigger(y.mouseup,e)}},this._handleMouseClick=function(t){d.actionRecord&&d.actionRecord.selectionRectangle&&(E.clear(),M.map().deleteLayer(E),E=null,p=null,d.action=d.actionRecord=null),M._getMouseButton(t),M._getMouseModifiers(t),M.cancel(v.pan),g(document).off(".geojs"),d.boundDocumentHandlers=!1;var e=M.mouse();e.buttonsDown=S.buttons,e.evt=t,M._setClickMaybe(!1),M.map().geoTrigger(y.mouseclick,e)},this._handleMouseWheel=function(){},this.springBack=function(t,n){d.action!==v.momentum&&(t||(i.velocity={x:0,y:0}),d.origAction=n,d.action=v.momentum,d.origin=M.mouse(),d.momentum=M.mouse(),d.start=new Date,d.handler=function(){var t,n,i,r;if(d.action===v.momentum&&M.map()&&!M.map().transition())if(r=Math.min(d.momentum.deltaTime,30),i=d.start.valueOf(),d.start=new Date,t=O(d.momentum.velocity,d.start-i)){if((n=k(t))>e.momentum.maxSpeed&&(n=e.momentum.maxSpeed/n,t.x=t.x*n,t.y=t.y*n),isFinite(t.x)&&isFinite(t.y)||(t.x=0,t.y=0),d.momentum.velocity.x=t.x,d.momentum.velocity.y=t.y,d.origAction===v.zoom){var o=d.momentum.velocity.y*r;C(-o*e.zoomScale/120,d)}else M.map().pan({x:d.momentum.velocity.x*r,y:d.momentum.velocity.y*r},void 0,"limited");d.handler&&M.map().scheduleAnimationFrame(d.handler)}else P()},d.handler&&M.map().scheduleAnimationFrame(d.handler))},this.destroy=function(){M._disconnectEvents(),M.map()&&g(M.map().node()).removeClass("highlight-focus"),M.map(null)},this.mouse=function(){return o.deepMerge({},i)},this.keyboard=function(t){return void 0===t?o.deepMerge({},e.keyboard||{}):M.options({keyboard:t})},this.state=function(){return o.deepMerge({},d)},this.pause=function(t){return void 0===t?T:(T=!!t,M)},this.addAction=function(t,n){t&&t.action&&t.input&&(o.addAction(e.actions,t,n),e.map&&e.actions.some(function(t){return t.input.right})&&(f.off("contextmenu.geojs"),f.on("contextmenu.geojs",function(){return!1})))},this.hasAction=function(t,n,i){return o.hasAction(e.actions,t,n,i)},this.removeAction=function(t,n,i){var r=o.removeAction(e.actions,t,n,i);return e.map&&!e.actions.some(function(t){return t.input.right})&&f.off("contextmenu.geojs"),r},this.simulateEvent=function(t,e){var n,i,r,o,a;if(!M.map())return M;if("keyboard"===t&&l){var s={shiftKey:e.shift||e.shiftKey||!1,ctrlKey:e.ctrl||e.ctrlKey||!1,altKey:e.alt||e.altKey||!1,metaKey:e.meta||e.metaKey||!1,toString:function(){return e.keys},stopPropagation:function(){},preventDefault:function(){},simulated:!0};return l.trigger(s,e.event),M}return i=e.page||{},e.map&&(r=f.offset(),i.x=e.map.x+r.left,i.y=e.map.y+r.top),"left"===e.button?(o=1,a=1):"right"===e.button?(o=3,a=2):"middle"===e.button&&(o=2,a=4),e.modifiers=e.modifiers||[],e.wheelDelta=e.wheelDelta||{},n=g.Event(t,{pageX:i.x,pageY:i.y,which:o,buttons:a,altKey:e.modifiers.indexOf("alt")>=0,ctrlKey:e.modifiers.indexOf("ctrl")>=0,metaKey:e.modifiers.indexOf("meta")>=0,shiftKey:e.modifiers.indexOf("shift")>=0,center:e.center,rotation:e.touch?e.rotation||0:e.rotation,scale:e.touch?e.scale||1:e.scale,pointers:e.pointers,pointerType:e.pointerType,originalEvent:{deltaX:e.wheelDelta.x,deltaY:e.wheelDelta.y,deltaMode:e.wheelMode,preventDefault:function(){},stopPropagation:function(){},stopImmediatePropagation:function(){}}}),e.touch&&c?M._handleTouch(n):f.trigger(n),t.indexOf(".geojs")>=0&&g(document).trigger(n),M},this._connectEvents(),this};i(s,r),t.exports=s},7945:function(t,e,n){var i,r=n(4626),o=n(1098).registerRenderer,a=n(2274),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},a.call(this,t);var e,i=n(5616),r=n(1611),o=n(3503),l=n(642),u=n(6409),c=this,d=null,h=null,f=!1,p=this._init,m=this._exit;return this.contextRenderer=function(){return d},this.api=function(){return s.apiname},this._init=function(){if(c.initialized())return c;p.call(c);var e=t.canvas||i(document.createElement("canvas"));if(e.addClass("webgl-canvas"),i(c.layer().node().get(0)).append(e),window.overrideContextAttributes){var n=e.get(0),o=n.getContext;n.getContext=function(t,e){if(e=e||{},window.overrideContextAttributes)for(var i in window.overrideContextAttributes)window.overrideContextAttributes.hasOwnProperty(i)&&(e[i]=window.overrideContextAttributes[i]);return o.call(n,t,e)}}(h=r.viewer(e.get(0),t.options)).init(),(d=h.renderWindow().activeRenderer()).setResetScene(!1),e.get(0).addEventListener("webglcontextlost",function(t){return t.preventDefault()},!1),e.get(0).addEventListener("webglcontextrestored",function(){return h.renderWindow()._init()},!1),h.renderWindow().renderers().length>0&&d.setLayer(h.renderWindow().renderers().length),c.canvas(e);var a=c.layer().map().size();return c._resize(0,0,a.width,a.height),c},this._resize=function(t,e,n,i){var r=h.renderWindow();return t===r.windowPosition[0]&&e===r.windowPosition[1]&&n===c.width()&&i===c.height()||(c._setWidthHeight(n,i),c.canvas().attr("width",n),c.canvas().attr("height",i),r.positionAndResize(t,e,n,i),f=!0,c._render()),c},this._render=function(){return c.layer().map().scheduleAnimationFrame(c._renderFrame,!0),c},this._renderFrame=function(){h&&(f&&(f=!1,c._updateRendererCamera()),h.render())},this._glContext=function(){return h&&h.renderWindow()?h.renderWindow().context():r.GL},this._exit=function(){if(c.layer().map().scheduleAnimationFrame(c._renderFrame,"remove"),c.canvas().remove(),h){var t=new r.renderState;t.m_renderer=h,t.m_context=c._glContext(),h.exit(t);var e=c._glContext();e!==r.GL&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").loseContext&&e.getExtension("WEBGL_lose_context").loseContext()}r.clearCachedShaders(r.GL),h=null,m()},this._updateRendererCamera=function(){var t=h.renderWindow(),n=c.layer().map(),i=n.camera(),r=n.rotation()||0,a=i.view,s=i.projectionMatrix;if(s[15])s=o.copy(l.mat4AsArray(),s),s=o.scale(s,s,[1,1,-.5]),s=o.translate(s,s,[0,0,i.clipbounds.far]);else{var u=i.clipbounds.near,d=i.clipbounds.far;s=o.copy(l.mat4AsArray(),s),s=o.scale(s,s,[1/u,1/u,-1/d])}var f=Math.PI/2,p=r%f,m=Math.min(Math.abs(p),Math.abs(p-f))<1e-5;t.renderers().forEach(function(t){var r=t.camera();if(!l.compareArrays(a,r.viewMatrix())||!l.compareArrays(s,r.projectionMatrix())||e!==n.zoom()){e=n.zoom(),r.setViewMatrix(a,!0),r.setProjectionMatrix(s);var o=i.viewport;s[1]||s[2]||s[3]||s[4]||s[6]||s[7]||s[8]||s[9]||s[11]||1!==s[15]||!m||o.left&&o.left%1||o.top&&o.top%1||parseFloat(e.toFixed(6))!==parseFloat(e.toFixed(0))?r.viewAlignment=function(){return null}:r.viewAlignment=function(){var t={roundx:2/o.width,roundy:2/o.height};return t.dx=o.width%2?.5*t.roundx:0,t.dy=o.height%2?.5*t.roundy:0,t}}})},c.layer().geoOn(u.pan,function(t){f=!0}),c.layer().geoOn(u.parallelprojection,function(t){var e=c.contextRenderer(),n=c.layer();if(t.geo&&t.geo._triggeredBy!==n){if(!e||!e.camera())return void console.log("Parallel projection event triggered on unconnected VGL renderer.");e.camera().setEnableParallelProjection(t.parallelProjection),f=!0}}),this};s.apiname="webgl",r(s,a),o("webgl",s),o("vgl",s),s.supported=function(){if(void 0===i){var t,e;try{(e=(t=document.createElement("canvas")).getContext("webgl")||t.getContext("experimental-webgl")).getSupportedExtensions().indexOf("WEBGL_debug_renderer_info")>=0&&(s._unmaskedRenderer=e.getParameter(e.getExtension("WEBGL_debug_renderer_info").UNMASKED_RENDERER_WEBGL)),s._maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),s._maxPointSize=e.getParameter(e.ALIASED_POINT_SIZE_RANGE)[1],i=!0}catch(t){console.warn("No webGL support"),i=!1}t=void 0,e=void 0}return i},s.fallback=function(){return null},t.exports=s},7954:function(t,e,n){"use strict";function i(t){return.375*t*(1+.25*t*(1+.46875*t))}n.d(e,{A:function(){return i}})},7997:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},8028:function(t){t.exports=function(t,e,n,i){var r=n[0],o=n[2],a=e[0]-r,s=e[2]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=r+s*l+a*u,t[1]=e[1],t[2]=o+s*u-a*l,t}},8034:function(t){t.exports=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},8044:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}},8067:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return m},init:function(){return p},inverse:function(){return g},names:function(){return y}});var i=n(7e3),r=n(6269),o=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],a=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],s=.8487,l=1.3523,u=i.dX/5,c=1/u,d=18,h=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},f=function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])};function p(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function m(t){var e=(0,r.A)(t.x-this.long0),n=Math.abs(t.y),f=Math.floor(n*u);f<0?f=0:f>=d&&(f=d-1),n=i.dX*(n-c*f);var p={x:h(o[f],n)*e,y:h(a[f],n)};return t.y<0&&(p.y=-p.y),p.x=p.x*this.a*s+this.x0,p.y=p.y*this.a*l+this.y0,p}function g(t){var e={x:(t.x-this.x0)/(this.a*s),y:Math.abs(t.y-this.y0)/(this.a*l)};if(e.y>=1)e.x/=o[d][0],e.y=t.y<0?-i.sK:i.sK;else{var n=Math.floor(e.y*d);for(n<0?n=0:n>=d&&(n=d-1);;)if(a[n][0]>e.y)--n;else{if(!(a[n+1][0]<=e.y))break;++n}var u=a[n],c=5*(e.y-u[0])/(a[n+1][0]-u[0]);c=function(t,e,n,i){for(var r=e;i;--i){var o=t(r);if(r-=o,Math.abs(o)<n)break}return r}(function(t){return(h(u,t)-e.y)/f(u,t)},c,i.H0,100),e.x/=h(o[n],c),e.y=(5*n+c)*i.zq,t.y<0&&(e.y=-e.y)}return e.x=(0,r.A)(e.x+this.long0),e}var y=["Robinson","robin"];e.default={init:p,forward:m,inverse:g,names:y}},8074:function(t,e,n){t.exports={canvasRenderer:n(1103),heatmapFeature:n(9142),isolineFeature:n(1195),lineFeature:n(2954),pixelmapFeature:n(5398),quadFeature:n(5578),textFeature:n(2213),tileLayer:n(511),trackFeature:n(1795)}},8093:function(t){t.exports=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],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,b=i*l-r*s,w=i*u-o*s,M=r*u-o*l,A=c*m-d*p,E=c*g-h*p,T=c*y-f*p,S=d*g-h*m,C=d*y-f*m,k=h*y-f*g,P=v*k-x*C+_*S+b*T-w*E+M*A;return P?(P=1/P,t[0]=(s*k-l*C+u*S)*P,t[1]=(l*T-a*k-u*E)*P,t[2]=(a*C-s*T+u*A)*P,t[3]=(r*C-i*k-o*S)*P,t[4]=(n*k-r*T+o*E)*P,t[5]=(i*T-n*C-o*A)*P,t[6]=(m*M-g*w+y*b)*P,t[7]=(g*_-p*M-y*x)*P,t[8]=(p*w-m*_+y*v)*P,t):null}},8104:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d},forward:function(){return l},init:function(){return s},inverse:function(){return u},names:function(){return c}});var i=n(6269),r=n(5964),o=n(7072),a=n(7e3);function s(){this.sphere||(this.k0=(0,o.A)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function l(t){var e,n,o=t.x,a=t.y,s=(0,i.A)(o-this.long0);if(this.sphere)e=this.x0+this.a*s*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var l=(0,r.A)(this.e,Math.sin(a));e=this.x0+this.a*this.k0*s,n=this.y0+this.a*l*.5/this.k0}return t.x=e,t.y=n,t}function u(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=(0,i.A)(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=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*a.sK:a.sK;for(var i,r,o,s,l=Math.asin(.5*e),u=0;u<30;u++)if(r=Math.sin(l),o=Math.cos(l),s=t*r,l+=i=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-r/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return l;return NaN}(this.e,2*t.y*this.k0/this.a),e=(0,i.A)(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t}var c=["cea"],d={init:s,forward:l,inverse:u,names:c}},8163:function(t){t.exports=function(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],c=e[7],d=e[8],h=Math.sin(n),f=Math.cos(n);return t[0]=f*i+h*a,t[1]=f*r+h*s,t[2]=f*o+h*l,t[3]=f*a-h*i,t[4]=f*s-h*r,t[5]=f*l-h*o,t[6]=u,t[7]=c,t[8]=d,t}},8197:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return c},init:function(){return u},inverse:function(){return d},names:function(){return h}});var i=n(6269),r=1.340264,o=-.081106,a=893e-6,s=.003796,l=Math.sqrt(3)/2;function u(){this.es=0,this.long0=void 0!==this.long0?this.long0:0}function c(t){var e=(0,i.A)(t.x-this.long0),n=t.y,u=Math.asin(l*Math.sin(n)),c=u*u,d=c*c*c;return t.x=e*Math.cos(u)/(l*(r+3*o*c+d*(7*a+9*s*c))),t.y=u*(r+o*c+d*(a+s*c)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function d(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,u,c,d=t.y;for(c=0;c<12&&(d-=u=(d*(r+o*(e=d*d)+(n=e*e*e)*(a+s*e))-t.y)/(r+3*o*e+n*(7*a+9*s*e)),!(Math.abs(u)<1e-9));++c);return n=(e=d*d)*e*e,t.x=l*t.x*(r+3*o*e+n*(7*a+9*s*e))/Math.cos(d),t.y=Math.asin(Math.sin(d)/l),t.x=(0,i.A)(t.x+this.long0),t}var h=["eqearth","Equal Earth","Equal_Earth"];e.default={init:u,forward:c,inverse:d,names:h}},8208:function(t){t.exports="/* pointFeature square/triangle vertex shader */\n\n/* pointFeature common vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute float radius;\nattribute vec3 fillColor;\nattribute vec3 strokeColor;\nattribute float fillOpacity;\nattribute float strokeWidth;\nattribute float strokeOpacity;\nattribute float fill;\nattribute float stroke;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float radiusVar;\nvarying float strokeWidthVar;\n\nfloat pointFeaturePrep() {\n strokeWidthVar = strokeWidth;\n fillColorVar = vec4(fillColor, fillOpacity);\n strokeColorVar = vec4(strokeColor, strokeOpacity);\n // No stroke or fill implies nothing to draw\n if (stroke < 1.0 || strokeWidth <= 0.0 || strokeOpacity <= 0.0) {\n strokeColorVar.a = 0.0;\n strokeWidthVar = 0.0;\n }\n if (fill < 1.0 || radius <= 0.0 || fillOpacity <= 0.0)\n fillColorVar.a = 0.0;\n /* If the point has no visible pixels, skip doing computations on it. */\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0) {\n gl_Position = vec4(2, 2, 0, 1);\n return 0.0;\n }\n return radius;\n}\n\n\nuniform float pixelWidth; // for non-sprite\nuniform float aspect; // for non-sprite\nattribute vec2 unit; // for non-sprite\nvarying vec3 unitVar; // for non-sprite\n\nvoid main(void)\n{\n radiusVar = pointFeaturePrep();\n if (radiusVar == 0.0) {\n return;\n }\n // for non-sprite\n unitVar = vec3(unit, 1.0);\n vec4 p = (projectionMatrix * modelViewMatrix * vec4(pos, 1.0)).xyzw;\n if (p.w != 0.0) {\n p = p / p.w;\n }\n p += (radius + strokeWidthVar) *\n vec4(unit.x * pixelWidth, unit.y * pixelWidth * aspect, 0.0, 1.0);\n gl_Position = vec4(p.xyz, 1.0);\n}\n"},8257:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2499),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t),n(2778).call(this,t);var e=this;return this._build=function(){e.actors()[0]&&e.renderer().contextRenderer().removeActor(e.actors()[0]),e.createGLMeshColored(e._createGrids()),e.renderer().contextRenderer().addActor(e.actors()[0]),e.buildTime().modified()},this._init(t),this};i(a,o),r("webgl","grid",a),t.exports=a},8308:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o;a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=i*a,t[2]=r*a,t[3]=o*a);return t}},8506:function(t,e,n){"use strict";n.r(e),n.d(e,{EQUIT:function(){return l},N_POLE:function(){return s},OBLIQ:function(){return u},S_POLE:function(){return a},forward:function(){return d},init:function(){return c},inverse:function(){return h},names:function(){return x}});var i=n(7e3),r=n(5964),o=n(6269),a=1,s=2,l=3,u=4;function c(){var t,e=Math.abs(this.lat0);if(Math.abs(e-i.sK)<i.H0?this.mode=this.lat0<0?a:s:Math.abs(e)<i.H0?this.mode=l:this.mode=u,this.es>0)switch(this.qp=(0,r.A)(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var e,n=[];return n[0]=t*f,e=t*t,n[0]+=e*p,n[1]=e*g,e*=t,n[0]+=e*m,n[1]+=e*y,n[2]=e*v,n}(this.es),this.mode){case s:case a:this.dd=1;break;case l:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case u:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=(0,r.A)(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===u&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function d(t){var e,n,a,s,l,u,c,d,h,f,p=t.x,m=t.y;if(p=(0,o.A)(p-this.long0),this.sphere){if(l=Math.sin(m),f=Math.cos(m),a=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+f*a:1+this.sinph0*l+this.cosph0*f*a)<=i.H0)return null;e=(n=Math.sqrt(2/n))*f*Math.sin(p),n*=this.mode===this.EQUIT?l:this.cosph0*l-this.sinph0*f*a}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(a=-a),Math.abs(m+this.lat0)<i.H0)return null;n=i.Vj-.5*m,e=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(p),n*=a}}else{switch(c=0,d=0,h=0,a=Math.cos(p),s=Math.sin(p),l=Math.sin(m),u=(0,r.A)(this.e,l),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(c=u/this.qp,d=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:h=1+this.sinb1*c+this.cosb1*d*a;break;case this.EQUIT:h=1+d*a;break;case this.N_POLE:h=i.sK+m,u=this.qp-u;break;case this.S_POLE:h=m-i.sK,u=this.qp+u}if(Math.abs(h)<i.H0)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:h=Math.sqrt(2/h),n=this.mode===this.OBLIQ?this.ymf*h*(this.cosb1*c-this.sinb1*d*a):(h=Math.sqrt(2/(1+d*a)))*c*this.ymf,e=this.xmf*h*d*s;break;case this.N_POLE:case this.S_POLE:u>=0?(e=(h=Math.sqrt(u))*s,n=a*(this.mode===this.S_POLE?h:-h)):e=n=0}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t}function h(t){t.x-=this.x0,t.y-=this.y0;var e,n,r,a,s,l,u,c,d,h,f=t.x/this.a,p=t.y/this.a;if(this.sphere){var m,g=0,y=0;if((n=.5*(m=Math.sqrt(f*f+p*p)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(y=Math.sin(n),g=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(m)<=i.H0?0:Math.asin(p*y/m),f*=y,p=g*m;break;case this.OBLIQ:n=Math.abs(m)<=i.H0?this.lat0:Math.asin(g*this.sinph0+p*y*this.cosph0/m),f*=y*this.cosph0,p=(g-Math.sin(n)*this.sinph0)*m;break;case this.N_POLE:p=-p,n=i.sK-n;break;case this.S_POLE:n-=i.sK}e=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(f,p):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(f/=this.dd,p*=this.dd,(l=Math.sqrt(f*f+p*p))<i.H0)return t.x=this.long0,t.y=this.lat0,t;a=2*Math.asin(.5*l/this.rq),r=Math.cos(a),f*=a=Math.sin(a),this.mode===this.OBLIQ?(u=r*this.sinb1+p*a*this.cosb1/l,s=this.qp*u,p=l*this.cosb1*r-p*this.sinb1*a):(u=p*a/l,s=this.qp*u,p=l*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(s=f*f+p*p))return t.x=this.long0,t.y=this.lat0,t;u=1-s/this.qp,this.mode===this.S_POLE&&(u=-u)}e=Math.atan2(f,p),c=Math.asin(u),d=this.apa,h=c+c,n=c+d[0]*Math.sin(h)+d[1]*Math.sin(h+h)+d[2]*Math.sin(h+h+h)}return t.x=(0,o.A)(this.long0+e),t.y=n,t}var f=.3333333333333333,p=.17222222222222222,m=.10257936507936508,g=.06388888888888888,y=.0664021164021164,v=.016415012942191543;var x=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];e.default={init:c,forward:d,inverse:h,names:x,S_POLE:a,N_POLE:s,EQUIT:l,OBLIQ:u}},8511:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6645),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(1611),i=n(9747);i=i.__esModule?i.default:i;var r=n(5325),s=n(642),l=n(4084),u=n(4547),c=n(9506);l.call(this);var d,h,f,p,m,g=this,y=this._exit,v=e.actor(),x=e.mapper(),_=e.material(),b=this._init,w=this._update;function M(){var t=new e.shader(e.GL.VERTEX_SHADER);return t.setShaderSource(c),t}function A(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(u),t}return this._init=function(t){var n=e.shaderProgram(),i=e.vertexAttribute("pos"),r=e.vertexAttribute("fillColor"),o=e.vertexAttribute("fillOpacity"),a=new e.projectionUniform("projectionMatrix"),s=M(),l=A(),u=e.blend(),c=e.geometryData(),d=e.sourceDataP3fv({name:"pos"}),h=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Two,{name:"fillColor"}),p=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"fillOpacity"}),m=e.triangles();f=new e.modelViewOriginUniform("modelViewMatrix"),n.addVertexAttribute(i,e.vertexAttributeKeys.Position),n.addVertexAttribute(r,e.vertexAttributeKeysIndexed.Two),n.addVertexAttribute(o,e.vertexAttributeKeysIndexed.Three),n.addUniform(f),n.addUniform(a),n.addShader(l),n.addShader(s),_.addAttribute(n),_.addAttribute(u),v.setMaterial(_),v.setMapper(x),c.addSource(d),c.addSource(h),c.addSource(p),c.addPrimitive(m),c.computeBounds=function(){c.setBounds(0,0,0,0,0,0)},x.setGeometryData(c),b.call(g,t)},this.actors=function(){return[v]},this._build=function(){!function(t){var e,n,o,a,l,u,c,p,m,y,v,_,b,w,M,A,E,T,S,C,k,P,O,L,R,I,F,D,G,j=[],N=g.gcs(),B=g.layer().map().gcs(),z=0,V=x.geometryData();for(l=g.style.get("fillColor"),u=s.isFunction(g.style("fillColor"))?void 0:l(),p=g.style.get("fillOpacity"),m=s.isFunction(g.style("fillOpacity"))?void 0:p(),y=g.style.get("fill"),v=s.isFunction(g.style("fill"))?void 0:y(),_=g.style.get("uniformPolygon"),b=s.isFunction(g.style("uniformPolygon"))?void 0:_(),t?(j=d.items,z=d.numPts):(n=(n=g.style.get("position"))===s.identityFunction?null:n,o=(o=g.style.get("polygon"))===s.identityFunction?null:o,g.data().forEach(function(t,e){var a,s,l,u;if((a=o?o(t,e):t)&&!((s=a.outer||(Array.isArray(a)?a:[])).length<3)){for(l=new Array(3*s.length),P=C=0;P<s.length;P+=1,C+=3)u=n?n(s[P],P,t,e):s[P],l[C]=u.x,l[C+1]=u.y,l[C+2]=0;l={vertices:l,dimensions:3,holes:[]},G=s,a.inner&&a.inner.forEach(function(i){if(!(i.length<3))for(G=G.concat(i),l.holes.push(C/3),P=0;P<i.length;P+=1,C+=3)u=n?n(i[P],P,t,e):i[P],l.vertices[C]=u.x,l.vertices[C+1]=u.y,l.vertices[C+2]=0}),l.vertices=r.transformCoordinates(N,B,l.vertices,l.dimensions),(I={triangles:i(l.vertices,l.holes,l.dimensions),vertices:l.vertices,original:G,item:t,itemIndex:e}).triangles.length&&(j.push(I),z+=I.triangles.length)}}),e=s.getGeomBuffer(V,"pos",3*z),(M=V.primitive(0).indices())instanceof Uint16Array&&M.length===z||(M=new Uint16Array(z),V.primitive(0).setIndices(M)),d={items:j,numPts:z},h=new Float32Array(g.style.get("origin")(j)),f.setOrigin(h)),a=s.getGeomBuffer(V,"fillColor",3*z),c=s.getGeomBuffer(V,"fillOpacity",z),S=C=0,A=u,T=v,L=0;L<j.length;L+=1)if(R=j[L].triangles.length,k=j[L].vertices,F=j[L].item,D=j[L].itemIndex,G=j[L].original,E=m,(w=void 0===b?_(F,D):b)&&(void 0===u&&(A=l(k[0],0,F,D)),void 0===m&&(E=p(k[0],0,F,D))),void 0===v&&(T=y(F,D)),T||(E=0),w&&t&&j[L].uniform&&j[L].color&&A.r===j[L].color.r&&A.g===j[L].color.g&&A.b===j[L].color.b&&E===j[L].opacity)S+=R,C+=3*R;else{for(P=0;P<R;P+=1,S+=1,C+=3)t&&w?(a[C]=A.r,a[C+1]=A.g,a[C+2]=A.b,c[S]=E):(O=3*j[L].triangles[P],t||(e[C]=k[O]-h[0],e[C+1]=k[O+1]-h[1],e[C+2]=k[O+2]-h[2],M[S]=P),w||void 0!==u||(A=l(G[O],O,F,D)),a[C]=A.r,a[C+1]=A.g,a[C+2]=A.b,!w&&T&&void 0===m&&(E=p(G[O],O,F,D)),c[S]=E);(w||j[L].uniform)&&(j[L].uniform=w,j[L].color=A,j[L].opacity=E)}t?(x.updateSourceBuffer("fillOpacity"),x.updateSourceBuffer("fillColor")):(x.modified(),V.boundsDirty(!0),x.boundsDirtyTimestamp().modified())}(!!(g.dataTime().timestamp()<g.buildTime().timestamp()&&d)),g.renderer().contextRenderer().hasActor(v)||(g.renderer().contextRenderer().addActor(v),p=!0),g.buildTime().modified()},this._update=function(t){g.ready&&(t&&t.mayDelay&&p?m=g.layer().map().scheduleAnimationFrame(g._update):(m&&(g.layer().map().scheduleAnimationFrame(g._update,"remove"),m=null),w.call(g),(g.dataTime().timestamp()>=g.buildTime().timestamp()||g.updateTime().timestamp()<=g.timestamp())&&g._build(),v.setVisible(g.visible()),v.material().setBinNumber(g.bin()),g.updateTime().modified()))},this._exit=function(){m&&g.layer()&&(g.layer().map().scheduleAnimationFrame(g._update,"remove"),m=null),g.renderer().contextRenderer().removeActor(v),y()},this._init(t),this};i(a,o),r("webgl","polygon",a),t.exports=a},8516:function(t,e,n){t.exports=n(8044)},8524:function(t,e,n){var i=n(8738),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=this;return this._init=function(){return t.hasOwnProperty("parent")&&t.parent.addChild(e),e._createCanvas(),e._appendCanvasToParent(),e.canvas().addEventListener("mousedown",function(t){t.stopPropagation()}),e.reposition(),e},this._createCanvas=function(){e.canvas(document.createElement(t.el||"div"))},this};r(a,i),o("dom","dom",a),t.exports=a},8534:function(t){t.exports=function(t,e,n){var i=[],r=[];return t.forEach(function(t){var o=t.start,a=t.end;if(e.pointsSame(o,a))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{n&&n.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},u=s,c=0;c<i.length;c++){var d=(g=i[c])[0],h=(g[1],g[g.length-1]);g[g.length-2];if(e.pointsSame(d,o)){if(A(c,!0,!0))break}else if(e.pointsSame(d,a)){if(A(c,!0,!1))break}else if(e.pointsSame(h,o)){if(A(c,!1,!0))break}else if(e.pointsSame(h,a)&&A(c,!1,!1))break}if(u===s)return i.push([o,a]),void(n&&n.chainNew(o,a));if(u===l){n&&n.chainMatch(s.index);var f=s.index,p=s.matches_pt1?a:o,m=s.matches_head,g=i[f],y=m?g[0]:g[g.length-1],v=m?g[1]:g[g.length-2],x=m?g[g.length-1]:g[0],_=m?g[g.length-2]:g[1];return e.pointsCollinear(v,y,p)&&(m?(n&&n.chainRemoveHead(s.index,p),g.shift()):(n&&n.chainRemoveTail(s.index,p),g.pop()),y=v),e.pointsSame(x,p)?(i.splice(f,1),e.pointsCollinear(_,x,y)&&(m?(n&&n.chainRemoveTail(s.index,y),g.pop()):(n&&n.chainRemoveHead(s.index,y),g.shift())),n&&n.chainClose(s.index),void r.push(g)):void(m?(n&&n.chainAddHead(s.index,p),g.unshift(p)):(n&&n.chainAddTail(s.index,p),g.push(p)))}var b=s.index,w=l.index;n&&n.chainConnect(b,w);var M=i[b].length<i[w].length;s.matches_head?l.matches_head?M?(E(b),T(b,w)):(E(w),T(w,b)):T(w,b):l.matches_head?T(b,w):M?(E(b),T(w,b)):(E(w),T(b,w))}function A(t,e,n){return u.index=t,u.matches_head=e,u.matches_pt1=n,u===s?(u=l,!1):(u=null,!0)}function E(t){n&&n.chainReverse(t),i[t].reverse()}function T(t,r){var o=i[t],a=i[r],s=o[o.length-1],l=o[o.length-2],u=a[0],c=a[1];e.pointsCollinear(l,s,u)&&(n&&n.chainRemoveTail(t,s),o.pop(),s=l),e.pointsCollinear(s,u,c)&&(n&&n.chainRemoveHead(r,u),a.shift()),n&&n.chainJoin(t,r),i[t]=o.concat(a),i.splice(r,1)}}),r}},8541:function(t,e,n){var i=n(257);t.exports=function(t,e,n,r){var o,a,s,l,u,c,d,h,f,p,m=e[0],g=e[1],y=e[2],v=r[0],x=r[1],_=r[2],b=n[0],w=n[1],M=n[2];if(Math.abs(m-b)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(y-M)<1e-6)return i(t);d=m-b,h=g-w,f=y-M,p=1/Math.sqrt(d*d+h*h+f*f),o=x*(f*=p)-_*(h*=p),a=_*(d*=p)-v*f,s=v*h-x*d,(p=Math.sqrt(o*o+a*a+s*s))?(o*=p=1/p,a*=p,s*=p):(o=0,a=0,s=0);l=h*s-f*a,u=f*o-d*s,c=d*a-h*o,(p=Math.sqrt(l*l+u*u+c*c))?(l*=p=1/p,u*=p,c*=p):(l=0,u=0,c=0);return t[0]=o,t[1]=l,t[2]=d,t[3]=0,t[4]=a,t[5]=u,t[6]=h,t[7]=0,t[8]=s,t[9]=c,t[10]=f,t[11]=0,t[12]=-(o*m+a*g+s*y),t[13]=-(l*m+u*g+c*y),t[14]=-(d*m+h*g+f*y),t[15]=1,t}},8544:function(t){t.exports=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}},8546:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KPHBhdGggZD0iTTAsMTFsMTEsMGwwLC0xMWwyLDBsMCwxMWwxMSwwbDAsMmwtMTEsMGwwLDExbC0yLDBsMCwtMTFsLTExLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+CjxwYXRoIGQ9Ik0yNCwyN2wzLDBsMCwtM2wyLDBsMCwzbDMsMGwwLDJsLTMsMGwwLDNsLTIsMGwwLC0zbC0zLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+Cjwvc3ZnPgo="},8560:function(t,e,n){t.exports=n(1040)},8576:function(t,e,n){var i=n(698),r=n(4626);i.blendFunction=function(t,e){"use strict";if(!(this instanceof i.blendFunction))return new i.blendFunction(t,e);var n=t,r=e;return this.apply=function(t){t.m_context.blendFuncSeparate(n,r,i.GL.ONE,i.GL.ONE_MINUS_SRC_ALPHA)},this},i.blend=function(){"use strict";if(!(this instanceof i.blend))return new i.blend;i.materialAttribute.call(this,i.materialAttributeType.Blend);var t=!1,e=i.blendFunction(i.GL.SRC_ALPHA,i.GL.ONE_MINUS_SRC_ALPHA);return this.bind=function(n){return t=n.m_context.isEnabled(i.GL.BLEND),this.enabled()?(n.m_context.enable(i.GL.BLEND),e.apply(n)):n.m_context.disable(i.GL.BLEND),!0},this.undoBind=function(e){return t?e.m_context.enable(i.GL.BLEND):e.m_context.disable(i.GL.BLEND),!0},this},r(i.blend,i.materialAttribute)},8597:function(t,e,n){"use strict";function i(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}n.d(e,{A:function(){return i}})},8635:function(t,e,n){t.exports={choroplethFeature:n(3559),contourFeature:n(6791),gridFeature:n(8257),isolineFeature:n(960),layer:n(6982),lineFeature:n(5795),lookupTable2D:n(411),markerFeature:n(3403),meshColored:n(2778),pixelmapFeature:n(7759),pointFeature:n(5407),polygonFeature:n(8511),quadFeature:n(9304),tileLayer:n(1474),trackFeature:n(536),webglRenderer:n(7945)}},8695:function(t){t.exports={momentum:"geo_action_momentum",pan:"geo_action_pan",rotate:"geo_action_rotate",select:"geo_action_select",unzoomselect:"geo_action_unzoomselect",zoom:"geo_action_zoom",zoomrotate:"geo_action_zoom_rotate",zoomselect:"geo_action_zoomselect",annotation_edit_handle:"geo_annotation_edit_handle",annotation_cursor:"geo_annotation_cursor"}},8711:function(t){t.exports="/* quadFeature Image fragment shader */\n\nvarying highp vec2 iTextureCoord;\nuniform sampler2D sampler2d;\nuniform mediump float opacity;\nuniform highp vec2 crop;\n\nvoid main(void) {\n mediump vec4 color = texture2D(sampler2d, iTextureCoord);\n if ((crop.s < 1.0 && iTextureCoord.s > crop.s) || (crop.t < 1.0 && 1.0 - iTextureCoord.t > crop.t)) {\n discard;\n }\n color.w *= opacity;\n gl_FragColor = color;\n}\n"},8738:function(t,e,n){var i=n(4626),r=n(5402),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=n(6409),i=this,a=this._exit,s=t.layer,l=null,u=void 0===t.position?{left:0,top:0}:t.position;if(!(void 0===t.parent||t.parent instanceof o))throw new Error("Parent must be of type geo.gui.widget");t.parent&&i.parent(t.parent),this._init=function(){return i.modified(),i},this._exit=function(){if(i.children().forEach(function(t){i.removeChild(t),t._exit()}),i.layer().geoOff(e.pan,i.repositionEvent),i.parentCanvas().removeChild&&i.canvas())try{i.parentCanvas().removeChild(i.canvas())}catch(t){}a()},this.layer=function(){return s||i.parent()&&i.parent().layer()},this._createCanvas=function(){throw new Error("Must be defined in derived classes")},this.canvas=function(t){return void 0===t?l:(l=t,i)},this._appendCanvasToParent=function(){i.parentCanvas().appendChild(i.canvas())},this.parentCanvas=function(){return i.parent()?i.parent().canvas():i.layer().canvas()},this.position=function(t,n){if(void 0!==t){i.layer().geoOff(e.pan,i.repositionEvent);var r={};for(var o in u)u.hasOwnProperty(o)&&(r[o]=null);return(u=t).hasOwnProperty("x")&&u.hasOwnProperty("y")&&i.layer().geoOn(e.pan,i.repositionEvent),i.reposition(Object.assign(r,i.position())),i}if(u.hasOwnProperty("x")&&u.hasOwnProperty("y")&&!n){var a=i.layer().map().gcsToDisplay(u);return{left:a.x,top:a.y,right:null,bottom:null}}return u},this.reposition=function(t){if(t=t||i.position(),i.canvas()&&i.canvas().style)for(var e in i.canvas().style.position="absolute",t)t.hasOwnProperty(e)&&(/^\s*(-|\+)?(\d+(\.\d*)?|\d*\.\d+)([eE](-|\+)?\d+)?\s*$/.test(t[e])?i.canvas().style[e]=parseFloat(parseFloat(t[e]).toFixed(3))+"px":i.canvas().style[e]=t[e]);return i},this.repositionEvent=function(){return i.reposition()},this.isInViewport=function(){var t=i.position(),e=i.layer();return t.left>=0&&t.top>=0&&t.left<=e.width()&&t.top<=e.height()},u.hasOwnProperty("x")&&u.hasOwnProperty("y")&&this.layer().geoOn(e.pan,i.repositionEvent)};i(o,r),t.exports=o},8741:function(t){t.exports=function(t,e,n,i){var r=new Float32Array(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}},8773:function(t){t.exports=function(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}},8844:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],d=t[10],h=t[11],f=t[12],p=t[13],m=t[14],g=t[15];return(e*a-n*o)*(d*g-h*m)-(e*s-i*o)*(c*g-h*p)+(e*l-r*o)*(c*m-d*p)+(n*s-i*a)*(u*g-h*f)-(n*l-r*a)*(u*m-d*f)+(i*l-r*s)*(u*p-c*f)}},8888:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.texture=function(){"use strict";if(!(this instanceof i.texture))return new i.texture;i.materialAttribute.call(this,i.materialAttributeType.Texture),this.m_width=0,this.m_height=0,this.m_depth=0,this.m_textureHandle=null,this.m_textureUnit=0,this.m_pixelFormat=i.GL.RGBA,this.m_pixelDataType=i.GL.UNSIGNED_BYTE,this.m_internalFormat=i.GL.RGBA,this.m_nearestPixel=!1,this.m_image=null,this.m_texture=null;var t=o(),e=this;function n(t){if(!(e.m_textureUnit>=0&&e.m_textureUnit<32))throw"[error] Texture unit "+e.m_textureUnit+" is not supported";t.m_context.activeTexture(i.GL.TEXTURE0+e.m_textureUnit)}return this.setup=function(e){n(e),e.m_context.deleteTexture(this.m_textureHandle),this.m_textureHandle=e.m_context.createTexture(),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,this.m_nearestPixel?i.GL.NEAREST:i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,this.m_nearestPixel?i.GL.NEAREST:i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_S,i.GL.CLAMP_TO_EDGE),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_T,i.GL.CLAMP_TO_EDGE),null!==this.m_image?(e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),e.m_context.pixelStorei(i.GL.UNPACK_FLIP_Y_WEBGL,!0),this.updateDimensions(),this.computeInternalFormatUsingImage(),e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_pixelFormat,this.m_pixelDataType,this.m_image)):null!==this.m_texture?(e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),e.m_context.pixelStorei(i.GL.UNPACK_FLIP_Y_WEBGL,!0),this.updateDimensions(),e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_texture.width,this.m_texture.height,0,this.m_pixelFormat,this.m_pixelDataType,this.m_texture.data)):e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_width,this.m_height,0,this.m_pixelFormat,this.m_pixelDataType,null),e.m_context.bindTexture(i.GL.TEXTURE_2D,null),t.modified()},this.bind=function(e){this.getMTime()>t.getMTime()&&this.setup(e),n(e),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle)},this.undoBind=function(t){t.m_context.bindTexture(i.GL.TEXTURE_2D,null)},this.image=function(){return this.m_image},this.texture=function(){return this.m_texture},this.setImage=function(t){return null!==t&&(this.m_image=t,this.updateDimensions(),this.modified(),!0)},this.setTexture=function(t){return null!==t&&(this.m_texture=t,"Luminance"===t.type?(this.m_internalFormat=i.GL.LUMINANCE,this.m_pixelFormat=i.GL.LUMINANCE):"LuminanceAlpha"===t.type?(this.m_internalFormat=i.GL.LUMINANCE_ALPHA,this.m_pixelFormat=i.GL.LUMINANCE_ALPHA):(this.m_internalFormat=i.GL.RGBA,this.m_pixelFormat=i.GL.RGBA),this.updateDimensions(),this.modified(),!0)},this.nearestPixel=function(){return this.m_nearestPixel},this.setNearestPixel=function(t){return(t=!!t)!==this.m_nearestPixel&&(this.m_nearestPixel=t,this.modified(),!0)},this.textureUnit=function(){return this.m_textureUnit},this.setTextureUnit=function(t){return this.m_textureUnit!==t&&(this.m_textureUnit=t,this.modified(),!0)},this.computeInternalFormatUsingImage=function(){this.m_internalFormat=i.GL.RGBA,this.m_pixelFormat=i.GL.RGBA,this.m_pixelDataType=i.GL.UNSIGNED_BYTE},this.updateDimensions=function(){null!==this.m_image&&(this.m_width=this.m_image.width,this.m_height=this.m_image.height,this.m_depth=0),null!==this.m_texture&&(this.m_width=this.m_texture.width,this.m_height=this.m_texture.height,this.m_depth=0)},this.textureHandle=function(){return this.m_textureHandle},this},r(i.texture,i.materialAttribute),i.lookupTable=function(){"use strict";if(!(this instanceof i.lookupTable))return new i.lookupTable;i.texture.call(this);var t=o();return this.m_colorTable=[.07514311,.468049805,1,1,.247872569,.498782363,1,1,.339526309,.528909511,1,1,.409505078,.558608486,1,1,.468487184,.588057293,1,1,.520796675,.617435078,1,1,.568724526,.646924167,1,1,.613686735,.676713218,1,1,.656658579,.707001303,1,1,.698372844,.738002964,1,1,.739424025,.769954435,1,1,.780330104,.803121429,1,1,.821573924,.837809045,1,1,.863634967,.874374691,1,1,.907017747,.913245283,1,1,.936129275,.938743558,.983038586,1,.943467973,.943498599,.943398095,1,.990146732,.928791426,.917447482,1,1,.88332677,.861943246,1,1,.833985467,.803839606,1,1,.788626485,.750707739,1,1,.746206642,.701389973,1,1,.70590052,.654994046,1,1,.667019783,.610806959,1,1,.6289553,.568237474,1,1,.591130233,.526775617,1,1,.552955184,.485962266,1,1,.513776083,.445364274,1,1,.472800903,.404551679,1,1,.428977855,.363073592,1,1,.380759558,.320428137,1,.961891484,.313155629,.265499262,1,.916482116,.236630659,.209939162,1].map(function(t){return 255*t}),this.setup=function(e){0===this.textureUnit()?e.m_context.activeTexture(i.GL.TEXTURE0):1===this.textureUnit()&&e.m_context.activeTexture(i.GL.TEXTURE1),e.m_context.deleteTexture(this.m_textureHandle),this.m_textureHandle=e.m_context.createTexture(),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_S,i.GL.CLAMP_TO_EDGE),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_T,i.GL.CLAMP_TO_EDGE),e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),this.m_width=this.m_colorTable.length/4,this.m_height=1,this.m_depth=0,e.m_context.texImage2D(i.GL.TEXTURE_2D,0,i.GL.RGBA,this.m_width,this.m_height,this.m_depth,i.GL.RGBA,i.GL.UNSIGNED_BYTE,new Uint8Array(this.m_colorTable)),e.m_context.bindTexture(i.GL.TEXTURE_2D,null),t.modified()},this.colorTable=function(){return this.m_colorTable},this.setColorTable=function(t){return this.m_colorTable!==t&&(this.m_colorTable=t,this.modified(),!0)},this},r(i.lookupTable,i.texture)},8927:function(t){function e(t,e,n){var i=[];return t.forEach(function(t){var r=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&&t.otherFill.above?2:0)+(t.otherFill&&t.otherFill.below?1:0);0!==e[r]&&i.push({id:n?n.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[r],below:2===e[r]},otherFill:null})}),n&&n.selected(i),i}var n={union:function(t,n){return e(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],n)},intersect:function(t,n){return e(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],n)},difference:function(t,n){return e(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],n)},differenceRev:function(t,n){return e(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],n)},xor:function(t,n){return e(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],n)}};t.exports=n},8961:function(t){t.exports="/* quadFeature Color fragment shader */\n\nvarying mediump vec3 iVertexColor;\nuniform mediump float opacity;\n\nvoid main(void) {\n gl_FragColor = vec4(iVertexColor, opacity);\n}\n"},9079:function(t){t.exports="36f5efe9fe98ff0e952442662614c39f2e2ec9c3"},9088:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},9123:function(t){var e=function(t){return this instanceof e?(t=t||{},this._size=t.size||64,Object.defineProperty(this,"size",{get:function(){return this._size},set:function(t){for(;this._atime.length>t;)this.remove(this._atime[this._atime.length-1]);this._size=t}}),Object.defineProperty(this,"length",{get:function(){return this._atime.length}}),this._access=function(t){return this._atime.indexOf(t)},this.remove=function(t){var e="string"==typeof t?t:t.toString();return e in this._cache&&(this._atime.splice(this._access(e),1),delete this._cache[e],!0)},this.clear=function(){return this._cache={},this._atime=[],this},this.get=function(t,e){return(t="string"==typeof t?t:t.toString())in this._cache?(e||(this._atime.splice(this._access(t),1),this._atime.unshift(t)),this._cache[t]):null},this.add=function(t,e,n){this.remove(t);var i=t.toString();this._cache[i]=t,this._atime.unshift(i),n||this.purge(e)},this.purge=function(t){for(var e;this._atime.length>this.size;){e=this._atime.pop();var n=this._cache[e];t&&t(n),delete this._cache[e]}},this.clear(),this):new e(t)};t.exports=e},9133:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8];return e*(u*o-a*l)+n*(a*s-u*r)+i*(l*r-o*s)}},9142:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9163),a=n(77),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);o.call(this,t),n(5895).call(this);var e,i,r,u,c,d,h=n(6409),f=this,p=this._init,m=this._update,g=a();return this._computeGradient=function(){var t,e,n,i,r;if(r=f.style("color"),!f._grad||f._gradColors!==r){for(e in i=(n=(t=document.createElement("canvas")).getContext("2d")).createLinearGradient(0,0,0,256),t.width=1,t.height=256,r)i.addColorStop(e,s.convertColorToRGBA(r[e]));n.fillStyle=i,n.fillRect(0,0,1,256),f._grad=n.getImageData(0,0,1,256).data,f._gradColors=r}return f},this._createCircle=function(){var t,e,n,i,r,o,a;if(n=f.style("radius"),r=f.style("blurRadius"),o=f.style("gaussian"),a=f.style("scaleWithZoom")){var s=this.layer().map().zoom();n*=a=Math.pow(2,s),r*=a}if(!f._circle||f._circle.gaussian!==o||f._circle.radius!==n||f._circle.blurRadius!==r){if(e=(t=f._circle=document.createElement("canvas")).getContext("2d"),i=r+n,t.width=t.height=2*i,o){var l=e.createRadialGradient(i,i,0,i,i,i);l.addColorStop(0,"rgba(255,255,255,1)"),l.addColorStop(.1,"rgba(255,255,255,0.946)"),l.addColorStop(.2,"rgba(255,255,255,0.801)"),l.addColorStop(.3,"rgba(255,255,255,0.607)"),l.addColorStop(.4,"rgba(255,255,255,0.411)"),l.addColorStop(.5,"rgba(255,255,255,0.249)"),l.addColorStop(.6,"rgba(255,255,255,0.135)"),l.addColorStop(.7,"rgba(255,255,255,0.066)"),l.addColorStop(.8,"rgba(255,255,255,0.029)"),l.addColorStop(.9,"rgba(255,255,255,0.011)"),l.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=l,e.fillRect(0,0,2*i,2*i)}else e.shadowOffsetX=e.shadowOffsetY=2*i,e.shadowBlur=r,e.shadowColor="black",e.beginPath(),e.arc(-i,-i,n,0,2*Math.PI,!0),e.closePath(),e.fill();t.radius=n,t.blurRadius=r,t.gaussian=o,f._circle=t}return f},this._colorize=function(t,n){var o,a,s,l=new Uint32Array(n.buffer),u=t.length;for(e&&e.length===u||(e=new ArrayBuffer(u),i=new Uint8ClampedArray(e),r=new Uint32Array(e)),o=3,s=0;o<u;o+=4,s+=1)(a=t[o])&&(r[s]=l[a]);t.set(i)},this._renderPoints=function(t,e,n,i){var r,o,a,s=f.gcsPosition(),l=f.intensity(),u=f.minIntensity(),c=f.maxIntensity()-u||1;for(r=n.length-1;r>=0;r-=1)o=e.worldToDisplay(s[r]),(a=(l(n[r],r)-u)/c)<=0||(t.globalAlpha=a<.01?.01:a>1?1:a,t.drawImage(f._circle,o.x-i,o.y-i))},this._renderBinnedData=function(t,e,n,i,r){var o,a,s,l,u,c,d,h,p=f.gcsPosition(),m=f.intensity(),g=f.minIntensity(),y=f.maxIntensity()-g||1,v=e.size(),x=[],_=Math.ceil(i/r),b=Math.ceil(v.width/r)+2*_+2,w=Math.ceil(v.height/r)+2*_+2,M=n.length;for(o=0;o<M;o+=1)a=e.worldToDisplay(p[o]),isNaN(a.x)||isNaN(a.y)||(void 0===d&&(d=(a.x%r+r)%r,h=(a.y%r+r)%r),(l=Math.floor((a.x-d)/r)+_+1)<0||l>=b||(u=Math.floor((a.y-h)/r)+_+1)<0||u>=w||(s=(m(n[o],o)-g)/y)<=0||(s>1&&(s=1),x[u]=x[u]||[],l*=4,(c=x[u])[l]?(c[l]+=s,c[l+1]+=(1-c[l+1])*s,c[l+2]+=a.x*s,c[l+3]+=a.y*s):(c[l]=c[l+1]=s,c[l+2]=a.x*s,c[l+3]=a.y*s)));for(u=x.length-1;u>=0;u-=1)if(c=x[u])for(l=c.length-4;l>=0;l-=4)c[l]&&(s=c[l+1],t.globalAlpha=s<.01?.01:s>1?1:s,t.drawImage(f._circle,c[l+2]/c[l]-i,c[l+3]/c[l]-i))},this._renderOnCanvas=function(t,e){if(g.timestamp()<f.buildTime().timestamp()){var n,i,r=Date.now(),o=f.data()||[],a=f.style("radius")+f.style("blurRadius"),s=f.binned(),l=f.layer(),h=e.size();if(f.style("scaleWithZoom")&&(a*=Math.pow(2,e.zoom())),!0===s||"auto"===s)if(s=Math.max(Math.floor(a/8),Math.max(1.5,Math.min(3,a/2.5))),"auto"===f.binned())Math.ceil((h.width+2*a)/s)*Math.ceil((h.height+2*a)/s)>=o.length&&(s=0);(s<1||isNaN(s))&&(s=!1),f._binned=s,t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,h.width,h.height),c="",a>.5&&a<8192&&(e.scheduleAnimationFrame(f._setTransform,!1),l.canvas().css({transform:""}),f._createCircle(),f._computeGradient(),s?f._renderBinnedData(t,e,o,a,s):f._renderPoints(t,e,o,a),n=l.canvas()[0],i=t.getImageData(0,0,n.width,n.height),f._colorize(i.data,f._grad),t.putImageData(i,0,0)),u={zoom:e.zoom(),gcsOrigin:e.displayToGcs({x:0,y:0},null),rotation:e.rotation(),lastScale:void 0,lastOrigin:{x:0,y:0},lastRotation:void 0},g.modified(),l.renderer().clearCanvas(!1),d=Date.now()-r}return f},this._init=function(){return p.call(f,t),f.geoOn(h.pan,f._animatePan),f},this._update=function(){return m.call(f),(f.buildTime().timestamp()<=f.dataTime().timestamp()||f.updateTime().timestamp()<f.timestamp())&&f._build(),f.updateTime().modified(),f},this._setTransform=function(){f.layer()&&f.layer().canvas()&&f.layer().canvas()[0]&&(f.layer().canvas()[0].style.transform=c)},this._animatePan=function(){if(u){var t=f.layer().map(),e=t.zoom(),n=Math.pow(2,e-u.zoom),i=t.gcsToDisplay(u.gcsOrigin,null),r=t.rotation();if(u.lastScale!==n||u.lastOrigin.x!==i.x||u.lastOrigin.y!==i.y||u.lastRotation!==r){var o=" translate("+i.x+"px,"+i.y+"px) scale("+n+") rotate("+180*(r-u.rotation)/Math.PI+"deg)";if(t.scheduleAnimationFrame(f._setTransform),c=o,u.lastScale=n,u.lastOrigin.x=i.x,u.lastOrigin.y=i.y,u.lastRotation=r,u.timeout&&(window.clearTimeout(u.timeout),u.timeout=void 0),1!==parseFloat(n.toFixed(4))||0!==parseFloat((r-u.rotation).toFixed(4))||0!==parseFloat(i.x.toFixed(1))||0!==parseFloat(i.y.toFixed(1))){var a=f.updateDelay();a=a<0&&d?d-Math.floor(1e3/60*a):d?2*d:100,u.timeout=window.setTimeout(function(){u.timeout=void 0,f.buildTime().modified(),f.layer().draw()},f.updateDelay())}}}},f._init(t),this};i(l,o),r("canvas","heatmap",l),t.exports=l},9156:function(t,e,n){var i=n(698),r=n(77);i.object=function(){"use strict";if(!(this instanceof i.object))return new i.object;var t=r();return t.modified(),this.modified=function(){t.modified()},this.getMTime=function(){return t.getMTime()},this}},9163:function(t,e,n){var i=n(4626),r=n(1275),o=n(5325),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},r.call(this,t);var e,n,i,l,u,c,d,h=this,f=this._init;return this.featureType="heatmap",e=t.position||a.identityFunction,n=t.intensity||function(t){return 1},i=void 0!==t.maxIntensity?t.maxIntensity:null,l=void 0!==t.minIntensity?t.minIntensity:null,c=void 0!==t.binned?t.binned:"auto",u=t.updateDelay||0===t.updateDelay?parseInt(t.updateDelay,10):-1,this.maxIntensity=function(t){return void 0===t?i:(i=t,h.dataTime().modified(),h.modified(),h)},this.minIntensity=function(t){return void 0===t?l:(l=t,h.dataTime().modified(),h.modified(),h)},this.updateDelay=function(t){return void 0===t?u:(u=parseInt(t,10),h)},this.binned=function(t){return void 0===t?c:("true"===t?t=!0:("false"===t||"auto"!==t&&!0!==t&&!1!==t&&((t=parseInt(t,10))<=0||isNaN(t)))&&(t=!1),c=t,h.dataTime().modified(),h.modified(),h)},this.position=function(t){return void 0===t?e:(e=t,h.dataTime().modified(),h.modified(),h)},this.gcsPosition=function(){return h._update(),d},this.intensity=function(t){return void 0===t?n:(n=t,h.dataTime().modified(),h.modified(),h)},this._init=function(t){f.call(h,t);var n=Object.assign({},{radius:10,blurRadius:10,gaussian:!0,color:{0:{r:0,g:0,b:0,a:0},.25:{r:0,g:0,b:1,a:.5},.5:{r:0,g:1,b:1,a:.6},.75:{r:1,g:1,b:0,a:.7},1:{r:1,g:0,b:0,a:.8}},scaleWithZoom:!1},void 0===t.style?{}:t.style);h.style(n),e&&h.dataTime().modified()},this._build=function(){var t=h.data(),e=null,n=[],r=null==i,a=null==l;return t.forEach(function(t,o){n.push(h.position()(t,o)),(r||a)&&(e=h.intensity()(t,o),null==i&&(i=e),null==l&&(l=e),r&&e>i&&(i=e),a&&e<l&&(l=e))}),a&&r&&l===i&&(l-=1),d=o.transformCoordinates(h.gcs(),h.layer().map().gcs(),n),h.buildTime().modified(),h},this._init(t),this};i(s,r),t.exports=s},9249:function(t,e,n){t.exports=n(2775)},9264:function(t,e,n){var i=n(4626),r=n(6498),o=n(642);function a(t,e){return(t%e+e)%e}function s(t){var e,n=/\$?\{(s|S|[sS]:[^{}]+|[^-{}]-[^-{}]|([^,{}]+,)+[^,{}]+)\}/,i=t.replace(new RegExp(n,"g"),"{s}").replace(/\$?\{[xX]\}/g,"{x}").replace(/\$?\{[yY]\}/g,"{y}").replace(/\$?\{[zZ]\}/g,"{z}"),r=t.match(n);if(r)if(r[2])e=r[1].split(",");else if(":"===r[1][1])e=r[1].substr(2).split("");else if("-"===r[1][1]){e=[];for(var o=r[1].charCodeAt(0),s=r[1].charCodeAt(2),l=Math.min(o,s);l<=Math.max(o,s);l+=1)e.push(String.fromCharCode(l))}return function(t,n,r,o){return i.replace(/\{s\}/g,function(t,e,n,i){return i[a(t+e+n,i.length)]}(t,n,r,e||o)).replace(/\{x\}/g,t).replace(/\{y\}/g,n).replace(/\{z\}/g,r)}}var l=function(t){"use strict";if(!(this instanceof l))return new l(t);r.call(this,t);var e=n(5616),i=n(6409),u=n(5325),c=n(9123),d=n(5938),h=n(1098).adjustLayerForRenderer,f=n(5289);if((t=o.deepMerge({},this.constructor.defaults,t||{})).cacheSize||(t.cacheSize=t.keepLower?600:200),"string"===e.type(t.subdomains)&&(t.subdomains=t.subdomains.split("")),t.baseUrl){var p=t.baseUrl;p&&"/"!==p.charAt(p.length-1)&&(p+="/"),t.url=p+"{z}/{x}/{y}."+(t.imageFormat||"png")}t.originalUrl=t.url,"string"===e.type(t.url)&&(t.url=s(t.url));var m,g,y,v=this._init,x=this._exit,_=this.visible,b=t.queueSize||6,w=t.initialQueueSize||0,M=[],A={},E=[],T=t.nearestPixel,S=this;this._options=o.deepMerge({},t),this.attribution(t.attribution),this._activeTiles={},this._tileTree={},this._cache=c({size:t.cacheSize}),this._queue=t.queue||d({size:b,initialSize:w,track:t.cacheSize,needed:function(t){return this._tileLayers&&this._tileLayers.length?this._tileLayers.some(function(e){return t===e.cache.get(t.toString(),!0)}):t===S.cache.get(t.toString(),!0)}}),this._queue._tileLayers=this._queue._tileLayers||[],this._queue._tileLayers.push(S),this._queue.initialTrack&&this._queue.track&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length);var C={};return Object.defineProperty(this,"options",{get:function(){return Object.assign({},S._options)}}),Object.defineProperty(this,"cache",{get:function(){return S._cache}}),Object.defineProperty(this,"activeTiles",{get:function(){return Object.assign({},S._activeTiles)}}),Object.defineProperty(this,"queue",{get:function(){return S._queue},set:function(t){S._queue!==t&&(this._queue&&this._queue._tileLayers&&this._queue._tileLayers.indexOf(S)>=0&&(this._queue._tileLayers.splice(this._queue._tileLayers.indexOf(S),1),this._queue.initialTrack&&this._queue.track&&this._queue._tileLayers.length&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length)),S._queue=t,S._queue._tileLayers=S._queue._tileLayers||[],S._queue._tileLayers.push(S),S._queue.initialTrack&&S._queue.track&&(S._queue.track=S._queue.initialTrack*S._queue._tileLayers.length))}}),Object.defineProperty(this,"queueSize",{get:function(){return b},set:function(t){b=t,S._queue.size=t}}),Object.defineProperty(this,"initialQueueSize",{get:function(){return w},set:function(t){w=t||0,S._queue.initialSize=t||b}}),Object.defineProperty(this,"reference",{get:function(){return S.id()+"_"+(m||0)},set:function(t){m=t},configurable:!0}),this.tilesAtZoom=function(t){if(S._options.tilesAtZoom)return S._options.tilesAtZoom.call(S,t);var e=Math.pow(2,t);return{x:e,y:e}},this.tilesMaxBounds=function(t){return S._options.tilesMaxBounds?S._options.tilesMaxBounds.call(S,t):null},this.tileCropFromBounds=function(t){if(S._options.tilesMaxBounds){var e=t.index.level,n=S._tileBounds(t);return void 0===E[e]&&(E[e]=S.tilesMaxBounds(e)||null),E[e]&&(n.right>E[e].x||n.bottom>E[e].y)?{x:Math.max(0,Math.min(E[e].x,n.right)-n.left),y:Math.max(0,Math.min(E[e].y,n.bottom)-n.top)}:void 0}},this.isValid=function(t){return S._options.minLevel<=t.level&&t.level<=S._options.maxLevel&&(!!(S._options.wrapX||0<=t.x&&t.x<=S.tilesAtZoom(t.level).x-1)&&!!(S._options.wrapY||0<=t.y&&t.y<=S.tilesAtZoom(t.level).y-1))},this._origin=function(t){var e,n=S.toLevel(S.toLocal(S.map().origin()),t),i=S._options;return{index:e={x:Math.floor(n.x/i.tileWidth),y:Math.floor(n.y/i.tileHeight)},offset:{x:n.x-i.tileWidth*e.x,y:n.y-i.tileHeight*e.y}}},this._tileBounds=function(t){var e=S._origin(t.index.level);return t.bounds(e.index,e.offset)},this.tileAtPoint=function(t,e){var n=S._origin(e),i=S.map();t=S.displayToLevel(i.gcsToDisplay(t,null),e),isNaN(t.x)&&(t.x=0),isNaN(t.y)&&(t.y=0);var r=S._tileOffset(e);return r&&(t.x+=r.x,t.y+=r.y),{x:Math.floor(n.index.x+(n.offset.x+t.x)/S._options.tileWidth),y:Math.floor(n.index.y+(n.offset.y+t.y)/S._options.tileHeight)}},this.gcsTileBounds=function(t,e){var n=t.index?t:f({index:t,size:{x:S._options.tileWidth,y:S._options.tileHeight},url:""}),i=S._tileOffset(n.index.level),r=n.bounds({x:0,y:0},i),o=S.map(),a=o.unitsPerPixel(n.index.level),s=[{x:r.left*a,y:S._topDown()*r.top*a},{x:r.right*a,y:S._topDown()*r.bottom*a}];return(e=null===e?o.gcs():void 0===e?o.ingcs():e)!==o.gcs()&&(s=u.transformCoordinates(o.gcs(),e,s)),{left:s[0].x,top:s[0].y,right:s[1].x,bottom:s[1].y}},this._getTile=function(t,e){var n=e||t;return f({index:t,size:{x:S._options.tileWidth,y:S._options.tileHeight},queue:S._queue,url:S._options.url.call(S,n.x,n.y,Math.max(n.level||0,Math.min(0,S._options.minLevel||0)),S._options.subdomains)})},this._getTileCached=function(t,e,n){var i=S.cache.get(S._tileHash(t));return null===i&&(i=S._getTile(t,e),S.cache.add(i,S.remove,n)),i},this._tileHash=function(t){return[t.level||0,t.y,t.x,t.reference||0].join("_")},this._getTileRange=function(t,e){var n=[S.tileAtPoint({x:e.left,y:e.top},t),S.tileAtPoint({x:e.right,y:e.top},t),S.tileAtPoint({x:e.left,y:e.bottom},t),S.tileAtPoint({x:e.right,y:e.bottom},t)];return{start:{x:Math.min(n[0].x,n[1].x,n[2].x,n[3].x),y:Math.min(n[0].y,n[1].y,n[2].y,n[3].y)},end:{x:Math.max(n[0].x,n[1].x,n[2].x,n[3].x),y:Math.max(n[0].y,n[1].y,n[2].y,n[3].y)}}},this._getTiles=function(t,n,i,r){var o,s,l,u,c,d,h,f,p,m,g,y=[],v=!1,x=S._options.keepLower?S._options.minLevel:Math.min(Math.max(t,S._options.minLevel),S._options.maxLevel);for(t<x&&(t=x),g=x;g<=t&&(c=(h=S._getTileRange(g,n)).start,d=h.end,u=S.tilesAtZoom(g),S._options.wrapX||(c.x=Math.min(Math.max(c.x,0),u.x-1),d.x=Math.min(Math.max(d.x,0),u.x-1),g===x&&S._options.keepLower&&(c.x=0,d.x=u.x-1)),S._options.wrapY||(c.y=Math.min(Math.max(c.y,0),u.y-1),d.y=Math.min(Math.max(d.y,0),u.y-1),g===x&&S._options.keepLower&&(c.y=0,d.y=u.y-1)),!(S._options.gcs&&S._options.gcs!==S.map().gcs()&&g!==x&&(d.x+1-c.x)*(d.y+1-c.y)>S.map().size().width*S.map().size().height/S._options.tileWidth/S._options.tileHeight*16));g+=1)for(o=c.x;o<=d.x;o+=1)for(s=c.y;s<=d.y;s+=1)l={level:g,x:o,y:s,reference:S.reference},f={level:g,x:o,y:s,reference:S.reference},S._options.wrapX&&(f.x=a(f.x,u.x)),S._options.wrapY&&(f.y=a(f.y,u.y)),S.isValid(f)&&(r&&y.length<M.length&&(m=M[y.length],v=v||l.level!==m.level||l.x!==m.x||l.y!==m.y),y.push({index:l,source:f}));if(r){if(!v&&y.length===M.length)return;M.splice(0,M.length),e.each(y,function(t,e){M.push(e.index)})}if(i){p={x:(c.x+d.x)/2,y:(c.y+d.y)/2,level:t,bottomLevel:t};for(var _=Math.max(d.x-c.x,d.y-c.y)+1;_>=1;_/=2)p.bottomLevel-=1;y.sort(S._loadMetric(p)),S._queue&&S._queue.batch(!0)}for(S.cache.size<y.length&&(console.log("Increasing cache size to "+y.length),S.cache.size=y.length),o=0;o<y.length;o+=1)y[o]=S._getTileCached(y[o].index,y[o].source,!0);return S.cache.purge(S.remove),y},this.gcs=function(t){if(void 0===t)return S._options.gcs||S.map().gcs();var e=S.gcs();return null===t?delete S._options.gcs:S._options.gcs=t,S.gcs()!==e&&(S.clear(),S.gcsFeatures(S.gcs()),S.modified(),S._update()),S},this.prefetch=function(t,n){var i;return i=S._getTiles(t,n,!0),e.when.apply(e,i.map(function(t){return t.fetch()}))},this._loadMetric=function(t){return function(e,n){var i,r,o,a,s;return e=e.index||e,n=n.index||n,e.level!==n.level?t.bottomLevel&&e.level>=t.bottomLevel!=n.level>=t.bottomLevel?e.level>=t.bottomLevel?-1:1:e.level-n.level:(s=Math.pow(2,e.level-t.level),o=(t.x+.5)*s-.5,a=(t.y+.5)*s-.5,(i=e.x-o)*i+(r=e.y-a)*r-((i=n.x-o)*i+(r=n.y-a)*r))}},this.fromLevel=function(t,e){var n=Math.pow(2,-e);return{x:t.x*n,y:t.y*n}},this.toLevel=function(t,e){var n=Math.pow(2,e);return{x:t.x*n,y:t.y*n}},this.drawTile=function(t){var e=t.toString();S._activeTiles.hasOwnProperty(e)?S._moveToTop(t):S._drawTile(t),S._activeTiles[e]=t},this._drawTile=function(t){if(null!==S.renderer())throw new Error("This draw method is not valid on renderer managed layers.");var n,i=t.index.level,r=e(S._getSubLayer(i)),o=S._tileBounds(t),a=S._options.animationDuration,s=e('<div class="geo-tile-container"/>').attr("tile-reference",t.toString());s.append(t.image),s.css({left:o.left-parseInt(r.attr("offsetx")||0,10)+"px",top:o.top-parseInt(r.attr("offsety")||0,10)+"px"}),(n=S.tileCropFromBounds(t))&&s.addClass("crop").css({width:n.x+"px",height:n.y+"px"}),a>0&&t.fadeIn(a),r.append(s),t.catch(function(){console.warn("Could not load tile at "+t.toString()),S._remove(t)})},this.remove=function(t){var e=t.toString(),n=S._activeTiles[e];return n instanceof f&&S._remove(n),delete S._activeTiles[e],n},this._remove=function(t){t.image&&(t.image.parentElement?e(t.image.parentElement).remove():console.log("No parent element to remove "+t.toString(),t),e(t.image).remove())},this._moveToTop=function(t){e.noop(t)},this._getViewBounds=function(){var t=S.map(),e=t.zoom(),n=S._options.tileRounding(e),i=Math.pow(2,e-n),r=t.size(),o=S.displayToLevel({x:0,y:0}),a=S.displayToLevel({x:r.width,y:0}),s=S.displayToLevel({x:0,y:r.height}),l=S.displayToLevel({x:r.width,y:r.height});return{level:n,scale:i,left:Math.min(o.x,a.x,s.x,l.x),right:Math.max(o.x,a.x,s.x,l.x),top:Math.min(o.y,a.y,s.y,l.y),bottom:Math.max(o.y,a.y,s.y,l.y)}},this._purge=function(t,e,n){var i,r;if(S._updating)return S;for(r in n||(n=S._getViewBounds()),S._activeTiles)i=S._activeTiles[r],S._canPurge(i,n,t,e)&&S.remove(i);return S},this.clear=function(){var t,e=[];for(t in S._activeTiles)e.push(S.remove(t));return S._tileTree={},M=[],e},this.reset=function(){return S.clear(),S._cache.clear(),S._queue.initialSize=w,S},this.toLocal=function(t,e){var n=S.map(),i=n.unitsPerPixel(void 0===e?n.zoom():e);return{x:t.x/i,y:S._topDown()*t.y/i}},this.fromLocal=function(t,e){var n=S.map(),i=n.unitsPerPixel(void 0===e?n.zoom():e);return{x:t.x*i,y:S._topDown()*t.y*i}},this._topDown=function(){return S._options.topDown?1:-1},this._getSubLayer=function(t){if(S.canvas()){var n=S.canvas().find("div[data-tile-layer="+t.toFixed()+"]").get(0);return n||(n=e('<div class=geo-tile-layer data-tile-layer="'+t.toFixed()+'"/>').get(0),S.canvas().append(n)),n}},this._updateSubLayers=function(t,n){var i=S.canvas(),r=parseInt(i.attr("lastlevel"),10),o=parseInt(i.attr("lastoffsetx")||0,10),a=parseInt(i.attr("lastoffsety")||0,10);if(r===t&&Math.abs(o-n.left)<65536&&Math.abs(a-n.top)<65536)return{x:o,y:a};var s=S.map(),l=S._tileOffset(t),u=parseInt((n.left+n.right-s.size().width)/2+l.x,10),c=parseInt((n.top+n.bottom-s.size().height)/2+l.y,10);return i.find(".geo-tile-layer").each(function(n,i){var r=e(i),o=parseInt(r.data("tileLayer"),10);r.css("transform","scale("+Math.pow(2,t-o)+")");var a=parseInt(u/Math.pow(2,t-o),10),s=parseInt(c/Math.pow(2,t-o),10),l=a-parseInt(r.attr("offsetx")||0,10),d=s-parseInt(r.attr("offsety")||0,10);r.attr({offsetx:a,offsety:s}),r.find(".geo-tile-container").each(function(t,n){e(n).css({left:parseInt(e(n).css("left"),10)-l+"px",top:parseInt(e(n).css("top"),10)-d+"px"})})}),i.attr({lastoffsetx:u,lastoffsety:c,lastlevel:t}),{x:u,y:c}},this._update=function(t){if(t&&t.event&&(t.event.event===i.zoom||t.event.event===i.rotate))return S;if(!S.visible())return S;var n,r=S.map(),o=r.bounds(void 0,null),a=r.zoom(),s=S._options.tileRounding(a);if(S._updateSubLayers){var l=S._getViewBounds(),u=S._updateSubLayers(s,l)||{x:0,y:0},c=S._tileOffset(s);if(null===S.renderer()){var d=Math.pow(2,a-s),h=r.rotation(),f=-c.x+-(l.left+l.right)/2+u.x,p=-c.y+-(l.bottom+l.top)/2+u.y,m=f+r.size().width/2,y=p+r.size().height/2;S.canvas().css({"transform-origin":-f+"px "+-p+"px"});var v="translate("+m+"px,"+y+"px)scale("+d+")";h&&(v+="rotate("+180*h/Math.PI+"deg)"),S.canvas().css("transform",v)}S.canvas().attr({scale:Math.pow(2,a-s),dx:-c.x+-(l.left+l.right)/2,dy:-c.y+-(l.bottom+l.top)/2,offsetx:u.x,offsety:u.y,rotation:r.rotation()})}if(void 0===(n=S._getTiles(s,o,!0,!0)))return S;if(S._tileTree={},n.forEach(function(t){if(t.fetched())delete A[t.toString()],S.drawTile(t),S._setTileTree(t);else{if(t._queued)(S._queue?S._queue.get(t):-1)>=0&&S._queue.add(t);else t.then(function(){if(!g&&t===S.cache.get(t.toString())){var e=r.zoom(),n=S._options.tileRounding(e),i=S._getViewBounds();S._canPurge(t,i,n)?S.remove(t):(S.drawTile(t),S._setTileTree(t))}}),t._queued=!0;S.addPromise(t),A[t.toString()]=t}}),e.when.apply(e,n).done(function(){var t=S.map().zoom(),e=S._options.tileRounding(t);S._purge(e,!0)}),"all"!==S._options.idleAfter)for(var x in A){var _=A[x];n.indexOf(_)<0&&(S.removePromise(_),delete A[x])}return S},this._setTileTree=function(t){if(!S._options.keepLower){var e=t.index;S._tileTree[e.level]=S._tileTree[e.level]||{},S._tileTree[e.level][e.x]=S._tileTree[e.level][e.x]||{},S._tileTree[e.level][e.x][e.y]=t}},this._getTileTree=function(t){return((S._tileTree[t.level]||{})[t.x]||{})[t.y]||null},this._isCovered=function(t){var e=t.index.level,n=t.index.x,i=t.index.y,r=[];return(r=S._getTileTree({level:e-1,x:Math.floor(n/2),y:Math.floor(i/2)}))?[r]:(r=[S._getTileTree({level:e+1,x:2*n,y:2*i}),S._getTileTree({level:e+1,x:2*n+1,y:2*i}),S._getTileTree({level:e+1,x:2*n,y:2*i+1}),S._getTileTree({level:e+1,x:2*n+1,y:2*i+1})]).every(function(t){return null!==t})?r:null},this._outOfBounds=function(t,e){var n=S._tileOffset(t.index.level),i=1;return t.index.level!==e.level&&(i=Math.pow(2,(e.level||0)-(t.index.level||0))),(t.bottom-n.y)*i<e.top||(t.left-n.x)*i>e.right||(t.top-n.y)*i>e.bottom||(t.right-n.x)*i<e.left},this._canPurge=function(t,e,n,i){if(S._options.keepLower){if((n=n||0)<t.index.level&&t.index.level!==S._options.minLevel)return!0;if(t.index.level===S._options.minLevel&&!S._options.wrapX&&!S._options.wrapY)return!1}else if((i||S._isCovered(t))&&n!==t.index.level&&(n>=S._options.minLevel||t.index.level!==S._options.minLevel)&&(n<S._options.maxLevel||t.index.level!==S._options.maxLevel))return!0;return!!e&&S._outOfBounds(t,e)},this.displayToLevel=function(t,e){var n,i=S.map(),r=i.zoom(),o=S._options.tileRounding(r),a=i.unitsPerPixel(void 0===e?o:e);if(void 0===t){var s=i.size();t={x:s.width/2,y:s.height/2}}try{n=i.displayToGcs(t,S._options.gcs||null)}catch(t){n={x:0,y:0}}return{x:n.x/a,y:S._topDown()*n.y/a}},this.url=function(t){return void 0===t?S._options.originalUrl:(t===S._options.originalUrl||(S._options.originalUrl=t,"string"===e.type(t)&&(t=s(t)),S._options.url=t,S.reset(),S.map().draw()),S)},this.subdomains=function(t){return void 0===t?S._options.subdomains:(t&&("string"===e.type(t)&&(t=t.indexOf(",")>=0?t.split(","):t.split("")),S._options.subdomains=t,S.reset(),S.map().draw()),S)},this._tileOffset=function(t){return void 0===C[t]&&(C[t]=S._options.tileOffset(t)),C[t]},this.visible=function(t){return void 0===t?_():(S.visible()!==t&&(_(t),t&&S._update()),S)},this.nearestPixel=function(t,e){return void 0===t?T:(T!==t&&(T=t,e||(S.modified(),S._update())),S)},Object.defineProperty(this,"baseQuad",{get:function(){return S._options.baseQuad},set:function(t){S._options.baseQuad=t,S._update()}}),this._addBaseQuadToTiles=function(t,e){t&&(this.baseQuad!==y&&(y&&e.splice(0,1),(y=this.baseQuad)&&(e.splice(0,0,this.baseQuad),t.cacheUpdate(0)),t.data(e)),t._update())},this._init=function(){var t;if(v.apply(S,arguments),null===S.renderer())for(t=0;t<=S._options.maxLevel;t+=1)S._getSubLayer(t);return S},this._exit=function(){return S.reset(),x.apply(S,arguments),g=!0,this._queue&&this._queue._tileLayers&&this._queue._tileLayers.indexOf(S)>=0&&(this._queue._tileLayers.splice(this._queue._tileLayers.indexOf(S),1),this._queue.initialTrack&&this._queue.track&&this._queue._tileLayers.length&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length)),S},h("tile",this),this};l.defaults={minLevel:0,maxLevel:18,tileOverlap:{x:0,y:0},tileWidth:256,tileHeight:256,wrapX:!0,wrapY:!1,url:null,subdomains:"abc",tileOffset:function(t){return{x:0,y:0}},tilesMaxBounds:null,topDown:!1,keepLower:!0,idleAfter:"view",tileRounding:Math.round,attribution:"",animationDuration:0},i(l,r),t.exports=l},9265:function(t,e,n){"use strict";n.r(e),n.d(e,{init:function(){return d},names:function(){return g}});var i=n(6165),r=n(6269),o=n(4424),a=n(6194),s=n(112),l=n(3712),u=n(7e3),c=1e-10;function d(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<c)throw new Error;this.es?(this.en=(0,a.A)(this.es),this.m1=(0,l.A)(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=f,this.forward=h):(Math.abs(this.phi1)+c>=u.sK?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=m,this.forward=p)}function h(t){var e,n,i,o=(0,r.A)(t.x-(this.long0||0)),a=t.y;return e=this.am1+this.m1-(0,l.A)(a,n=Math.sin(a),i=Math.cos(a),this.en),n=i*o/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function f(t){var e,n,a,l;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=(0,o.A)(t.x,t.y=this.am1-t.y),l=(0,s.A)(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(l))<u.sK)e=Math.sin(l),a=n*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(l);else{if(!(Math.abs(e-u.sK)<=c))throw new Error;a=0}return t.x=(0,r.A)(a+(this.long0||0)),t.y=(0,i.A)(l),t}function p(t){var e,n,i=(0,r.A)(t.x-(this.long0||0)),o=t.y;return n=this.cphi1+this.phi1-o,Math.abs(n)>c?(t.x=n*Math.sin(e=i*Math.cos(o)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function m(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var a=(0,o.A)(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-a,Math.abs(n)>u.sK)throw new Error;return e=Math.abs(Math.abs(n)-u.sK)<=c?0:a*Math.atan2(t.x,t.y)/Math.cos(n),t.x=(0,r.A)(e+(this.long0||0)),t.y=(0,i.A)(n),t}var g=["bonne","Bonne (Werner lat_1=90)"];e.default={init:d,names:g}},9271:function(t){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}},9281:function(t,e,n){var i=n(4626),r=n(1275),o=n(77),a=n(5325),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},r.call(this,t);var e,n=this,i=this._init,u=o();return this.featureType="line",this._subfeatureStyles={lineCap:!0,lineJoin:!0,strokeColor:!0,strokeOffset:!0,strokeOpacity:!0,strokeWidth:!0},this.line=function(t){return void 0===t?n.style("line"):(n.style("line",t),n.dataTime().modified(),n.modified(),n)},this.position=function(t){return void 0===t?n.style("position"):(n.style("position",t),n.dataTime().modified(),n.modified(),n)},this._updatePointSearchInfo=function(){if(u.timestamp()>=n.dataTime().timestamp()&&u.timestamp()>=n.timestamp())return e;u.modified(),e=[];for(var t=n.data(),i=n.line(),r=n.style.get("strokeWidth"),o=s.isFunction(n.style("strokeWidth"))?void 0:r(),l=n.position(),c=n.style.get("closed"),d=s.isFunction(n.style("closed"))?void 0:c(),h=n.style.get("uniformLine"),f=s.isFunction(n.style("uniformLine"))?void 0:h(),p=n.gcs(),m=n.layer().map().gcs(),g=a.onlyInvertedY(p,m),y=0;y<t.length;y+=1){for(var v=t[y],x=void 0===d?c(v,y):d,_=void 0,b=void 0,w=void 0,M=void 0,A=void 0,E=void 0,T=void 0,S=void 0,C=[],k=void 0===f?h(v,y):f,P=i(v,y),O=0;O<P.length;O+=1){var L=P[O],R=l(L,O,v,y);g?R={x:R.x,y:-R.y}:p!==m&&(R=a.transformCoordinates(p,m,R)),void 0===E&&(E={x:R.x,y:R.y}),void 0===T&&(T={x:R.x,y:R.y}),R.x<E.x&&(E.x=R.x),R.x>T.x&&(T.x=R.x),R.y<E.y&&(E.y=R.y),R.y>T.y&&(T.y=R.y),k&&O||(S=void 0===o?r(L,O,v,y):o);var I=Math.ceil(S/2)+2;(void 0===T.r||I>T.r)&&(T.r=I);var F=I*I;_&&C.push({u:R,v:_,r:w>I?w:I,r2:M>F?M:F,i:O,j:b}),_=R,b=O,w=I,M=F,!A&&x&&(A={p:R,r:I,r2:F,i:O})}x&&A&&(_.x!==A.p.x||_.y!==A.p.y)&&C.push({u:_,v:A.p,r:w>A.r?w:A.r,r2:M>A.r2?M:A.r2,i:b,j:A.i}),C.min=E,C.max=T,e.push(C)}return e},this.pointSearch=function(t,i){var r=n.data(),o=[],l=[],u={};if(!r||!r.length||!n.layer())return{found:l,index:o,extra:u};n._updatePointSearchInfo();var c=n.layer().map();i=null===i?c.gcs():void 0===i?c.ingcs():i;var d,h,f,p,m=c.unitsPerPixel(c.zoom()),g=m*m,y=a.transformCoordinates(i,c.gcs(),t),v=n.style.get("strokeWidth"),x=n.style.get("strokeOpacity"),_=n.line();for(h=0;h<e.length;h+=1)for(p=e[h],d=null,f=0;f<p.length;f+=1)if(s.distance2dToLineSquared(y,p[f].u,p[f].v)<=p[f].r2*g&&(d||(d=_(r[h],h)),(x(d[p[f].i],p[f].i,r[h],h)>0||x(d[p[f].j],p[f].j,r[h],h)>0)&&(v(d[p[f].i],p[f].i,r[h],h)>0||v(d[p[f].j],p[f].j,r[h],h)>0))){l.push(r[h]),o.push(h),u[h]=f;break}return{found:l,index:o,extra:u}},this.polygonSearch=function(t,i,r){var o,l,u=n.data(),c=[],d=[],h={},f=n.layer().map(),p=n.style.get("strokeWidth"),m=n.style.get("strokeOpacity"),g=n.line();if(r=null===r?f.gcs():void 0===r?f.ingcs():r,t.outer||(t={outer:t,inner:[]}),!u||!u.length||t.outer.length<3)return{found:d,index:c,extra:h};(i=i||{}).partial=i.partial||!1,(t={outer:a.transformCoordinates(r,f.gcs(),t.outer),inner:(t.inner||[]).map(function(t){return a.transformCoordinates(r,f.gcs(),t)})}).outer.forEach(function(t){o||(o={x:t.x,y:t.y},l={x:t.x,y:t.y}),t.x<o.x&&(o.x=t.x),t.x>l.x&&(l.x=t.x),t.y<o.y&&(o.y=t.y),t.y>l.y&&(l.y=t.y)}),n._updatePointSearchInfo();var y,v,x,_,b,w,M=f.unitsPerPixel(f.zoom());for(y=0;y<e.length;y+=1)if(!(!(x=e[y]).max||x.max.x<o.x-x.max.r*M||x.min.x>l.x+x.max.r*M||x.max.y<o.y-x.max.r*M||x.min.y>l.y+x.max.r*M)){var A=void 0,E=void 0,T=void 0;for(v=0;v<x.length;v+=1)if(_=x[v].u,b=x[v].v,w=x[v].r,!(_.x<o.x-w*M&&b.x<o.x-w*M||_.x>l.x+w*M&&b.x>l.x+w*M||_.y<o.y-w*M&&b.y<o.y-w*M||_.y>l.y+w*M&&b.y>l.y+w*M||(T||(T=g(u[y],y)),m(T[x[v].i],x[v].i,u[y],y)<=0&&m(T[x[v].j],x[v].j,u[y],y)<=0||p(T[x[v].i],x[v].i,u[y],y)<=0&&p(T[x[v].j],x[v].j,u[y],y)<=0))){var S=s.distanceToPolygon2d(_,t),C=s.distanceToPolygon2d(b,t);if(S>-w*M&&S<w*M||C>-w*M&&C<w&M||S*C<0){E=!0;break}if(s.crossedLineSegmentPolygon2d(_,b,t)){E=!0;break}for(var k=w*w*M*M,P=0;P<t.outer.length&&!E;P+=1)E=s.distance2dToLineSquared(t.outer[P],_,b)<k;for(var O=0;O<t.inner.length&&!E;O+=1)for(var L=0;L<t.inner[O].length&&!E;L+=1)E=s.distance2dToLineSquared(t.inner[O][L],_,b)<k;if(E)break;S>0&&(A=!0)}(!i.partial&&A&&!E||i.partial&&(A||E))&&(c.push(y),d.push(u[y]),h[y]={partial:E,segment:v<e[y].length?v:0})}return{found:d,index:c,extra:h}},this.rdpSimplifyData=function(t,e,i,r){t=t||n.data(),i=i||n.style.get("position"),r=r||n.style.get("line");var o=n.layer().map(),l=o.gcs(),u=n.gcs(),c=n.style.get("closed");return void 0===e&&(e=.5*o.unitsPerPixel(o.zoom())),t=t.map(function(t,n){var o=r(t,n),d=a.transformCoordinates(u,l,o.map(function(e,r){return i(e,r,t,n)})),h=s.rdpLineSimplify(d,e,c(t,n),[]);for(var f in(h.length<2||2===h.length&&s.distance2dSquared(h[0],h[1])<e*e)&&(h=[]),h=a.transformCoordinates(l,u,h),t)!t.hasOwnProperty(f)||Array.isArray(t)&&f>=0&&f<t.length||(h[f]=t[f]);return h}),n.style("position",s.identityFunction),n.style("line",s.identityFunction),n.data(t),n},this._init=function(t){t=t||{},i.call(n,t);var e=Object.assign({},{strokeWidth:1,strokeColor:{r:1,g:.8431372549,b:0},strokeStyle:"solid",strokeOpacity:1,antialiasing:2,closed:!1,line:s.identityFunction,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){return t.length>=3?t.slice(0,3):[0,0,0]}},void 0===t.style?{}:t.style);return void 0!==t.line&&(e.line=t.line),void 0!==t.position&&(e.position=t.position),n.style(e),n.dataTime().modified(),n},this._init(t),this};l.create=function(t,e){"use strict";return(e=e||{}).type="line",r.create(t,e)},l.capabilities={feature:"line",basic:"line.basic",multicolor:"line.multicolor"},i(l,r),t.exports=l},9298:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},9304:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=n(77),s=n(642),l=16777216,u=function(t){"use strict";if(!(this instanceof u))return new u(t);o.call(this,t);var e=n(5616),i=n(1611),r=n(4084),c=n(8711),d=n(6238),h=n(8961),f=n(3260);r.call(this);var p,m,g,y,v,x,_,b=this,w=this._exit,M=this._update,A={},E=a(),T=a();function S(t){var e=new i.mapper({dynamicDraw:!0});return e.s_modified=e.modified,e.g_timestamp=a(),e.timestamp=e.g_timestamp.timestamp,e.modified=function(){return e.s_modified(),e.g_timestamp.modified(),e},e.s_render=e.render,e.render=t,e}return this.actors=function(){var t=[];return m&&t.push(m),g&&t.push(g),t},this._build=function(){var t,e,n,r,o,a,s,l,u;b.position()&&((_=b._generateQuads()).imgQuads.length&&!m&&(b.visible(!1),t=S(b._renderImageQuads),(m=new i.actor).setMapper(t),e=new i.material,(n=new i.shaderProgram).addVertexAttribute(new i.vertexAttribute("vertexPosition"),i.vertexAttributeKeys.Position),n.addVertexAttribute(new i.vertexAttribute("textureCoord"),i.vertexAttributeKeys.TextureCoordinate),p=new i.modelViewOriginUniform("modelViewMatrix",_.origin),n.addUniform(p),n.addUniform(new i.projectionUniform("projectionMatrix")),n.addUniform(new i.floatUniform("opacity",1)),n.addUniform(new i.floatUniform("zOffset",0)),(u=new i.uniform(i.GL.INT,"sampler2d")).set(0),n.addUniform(u),l=b.renderer()._glContext(),(o=new i.uniform(l.FLOAT_VEC2,"crop")).set([1,1]),n.addUniform(o),(a=new i.uniform(l.FLOAT_VEC4,"cropsource")).set([0,0,0,0]),n.addUniform(a),n.addShader(i.getCachedShader(l.VERTEX_SHADER,l,d)),n.addShader(i.getCachedShader(l.FRAGMENT_SHADER,l,c)),b._hookBuild&&b._hookBuild(n),e.addAttribute(n),e.addAttribute(new i.blend),s=new i.geometryData,y=void 0,(r=new i.sourceDataT2fv).pushBack([0,0,1,0,0,1,1,1]),s.addSource(r),t.setGeometryData(s),m.setMaterial(e),b.renderer().contextRenderer().addActor(m),b.visible(!0)),_.clrQuads.length&&!g&&(b.visible(!1),t=S(b._renderColorQuads),(g=new i.actor).setMapper(t),e=new i.material,(n=new i.shaderProgram).addVertexAttribute(new i.vertexAttribute("vertexPosition"),i.vertexAttributeKeys.Position),x=new i.modelViewOriginUniform("modelViewMatrix",_.origin),n.addUniform(x),n.addUniform(new i.projectionUniform("projectionMatrix")),n.addUniform(new i.floatUniform("opacity",1)),n.addUniform(new i.floatUniform("zOffset",0)),l=b.renderer()._glContext(),n.addUniform(new i.uniform(l.FLOAT_VEC3,"vertexColor")),n.addShader(i.getCachedShader(l.VERTEX_SHADER,l,f)),n.addShader(i.getCachedShader(l.FRAGMENT_SHADER,l,h)),e.addAttribute(n),e.addAttribute(new i.blend),s=new i.geometryData,v=void 0,t.setGeometryData(s),g.setMaterial(e),b.renderer().contextRenderer().addActor(g),b.visible(!0)),p&&p.setOrigin(_.origin),x&&x.setOrigin(_.origin),b._updateTextures(),b.buildTime().modified())},this._updateTextures=function(){e.each(_.imgQuads,function(t,e){var n=e.imageTexture||e.image;if(n)if(n._texture)e.texture=n._texture;else{var r=new i.texture;e.imageTexture?r.setTexture(n):r.setImage(n);var o=b.nearestPixel();if(void 0!==o)if(!0!==o&&s.isNonNullFinite(o))o=b.layer().map().zoom()>=o;o&&r.setNearestPixel(!0),e.texture=n._texture=r}})},this._renderColorQuads=function(t){if(_.clrQuads.length){var n=this;(n.timestamp()>T.timestamp()||b.dataTime().timestamp()>T.timestamp()||t.m_contextChanged||!v||12*_.clrQuads.length>v.length)&&function(t){var n=t.m_context,i=!1;_.clrQuads.length&&((!v||v.length<12*_.clrQuads.length||!A.clrQuadsPosition)&&(A.clrQuadsPosition&&n.deleteBuffer(A.clrQuadsPosition),A.clrQuadsPosition=n.createBuffer(),v=new Float32Array(12*Math.max(128,2*_.clrQuads.length)),i=!0),e.each(_.clrQuads,function(t,e){for(var n=0;n<12;n+=1)v[12*t+n]=e.pos[n]-_.origin[n%3]}),n.bindBuffer(n.ARRAY_BUFFER,A.clrQuadsPosition),i?n.bufferData(n.ARRAY_BUFFER,v,n.DYNAMIC_DRAW):n.bufferSubData(n.ARRAY_BUFFER,0,v)),T.modified()}(t),n.s_render(t,!0);var r,o,a,s=t.m_context;s.bindBuffer(s.ARRAY_BUFFER,A.clrQuadsPosition),e.each(_.clrQuads,function(e,n){n.opacity!==r&&(r=n.opacity,s.uniform1fv(t.m_material.shaderProgram().uniformLocation("opacity"),new Float32Array([r]))),(n.zOffset||0)!==o&&(o=n.zOffset||0,s.uniform1fv(t.m_material.shaderProgram().uniformLocation("zOffset"),new Float32Array([o]))),a&&a.r===n.color.r&&a.g===n.color.g&&a.b===n.color.b||(a=n.color,s.uniform3fv(t.m_material.shaderProgram().uniformLocation("vertexColor"),new Float32Array([a.r,a.g,a.b]))),s.bindBuffer(s.ARRAY_BUFFER,A.clrQuadsPosition),s.vertexAttribPointer(i.vertexAttributeKeys.Position,3,s.FLOAT,!1,12,12*e*4),s.enableVertexAttribArray(i.vertexAttributeKeys.Position),s.drawArrays(s.TRIANGLE_STRIP,0,4)}),s.bindBuffer(s.ARRAY_BUFFER,null),n.undoBindVertexData(t)}},this._renderImageQuads=function(t){if(_.imgQuads.length){var n=this;(n.timestamp()>E.timestamp()||b.dataTime().timestamp()>E.timestamp()||t.m_contextChanged||!y||12*_.imgQuads.length>y.length)&&function(t){var n=t.m_context,i=!1;_.imgQuads.length&&((!y||y.length<12*_.imgQuads.length||!A.imgQuadsPosition)&&(A.imgQuadsPosition&&n.deleteBuffer(A.imgQuadsPosition),A.imgQuadsPosition=n.createBuffer(),y=new Float32Array(12*Math.max(128,2*_.imgQuads.length)),i=!0),e.each(_.imgQuads,function(t,e){for(var n=0;n<12;n+=1)y[12*t+n]=e.pos[n]-_.origin[n%3]}),n.bindBuffer(n.ARRAY_BUFFER,A.imgQuadsPosition),i?n.bufferData(n.ARRAY_BUFFER,y,n.DYNAMIC_DRAW):n.bufferSubData(n.ARRAY_BUFFER,0,y)),E.modified()}(t),n.s_render(t,!0);var r,o,a,u,c,d,h,f,p=t.m_context,m={x:1,y:1},g={x0:0,y0:0,x1:1,y1:1},v=b.nearestPixel();if(void 0!==v){if(!0!==v&&s.isNonNullFinite(v)){var x=b.layer().map().zoom();v=x>=v}_.imgQuads.forEach(function(e){if((e.image||e.imageTexture)&&e.texture&&e.texture.nearestPixel()!==v&&e.texture.textureHandle()){t.m_context.bindTexture(i.GL.TEXTURE_2D,e.texture.textureHandle()),t.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,v?i.GL.NEAREST:i.GL.LINEAR),t.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,v?i.GL.NEAREST:i.GL.LINEAR),t.m_context.bindTexture(i.GL.TEXTURE_2D,null);var n=e.texture.modified;e.texture.modified=function(){},e.texture.setNearestPixel(v),e.texture.modified=n}})}b._hookRenderImageQuads&&b._hookRenderImageQuads(t,_.imgQuads),p.bindBuffer(p.ARRAY_BUFFER,A.imgQuadsPosition),e.each(_.imgQuads,function(e,n){(n.image||n.imageTexture)&&(n.texture.bind(t),n.image&&(c=n.image.width,d=n.image.height),n.imageTexture&&(c=n.imageTexture.width,d=n.imageTexture.height),(n.image||n.imageTexture)&&c*d>l&&(l=c*d,p.getError()===p.OUT_OF_MEMORY&&console.log("Insufficient GPU memory for texture")),n.opacity!==r&&(r=n.opacity,p.uniform1fv(t.m_material.shaderProgram().uniformLocation("opacity"),new Float32Array([r]))),(n.zOffset||0)!==o&&(o=n.zOffset||0,p.uniform1fv(t.m_material.shaderProgram().uniformLocation("zOffset"),new Float32Array([o]))),a=n.crop||{x:1,y:1},m&&a.x===m.x&&a.y===m.y||(m=a,p.uniform2fv(t.m_material.shaderProgram().uniformLocation("crop"),new Float32Array([void 0===m.x?1:m.x,void 0===m.y?1:m.y]))),u=n.crop||{left:0,top:0,right:c,bottom:d},g&&u.left===g.left&&u.top===g.top&&u.right===g.right&&u.bottom===g.bottom&&h===c&&f===d||(g=u,h=c,f=d,p.uniform4fv(t.m_material.shaderProgram().uniformLocation("cropsource"),new Float32Array([g.left/c,g.top/d,g.right/c,g.bottom/d]))),p.bindBuffer(p.ARRAY_BUFFER,A.imgQuadsPosition),p.vertexAttribPointer(i.vertexAttributeKeys.Position,3,p.FLOAT,!1,12,12*e*4),p.enableVertexAttribArray(i.vertexAttributeKeys.Position),p.drawArrays(p.TRIANGLE_STRIP,0,4),n.texture.undoBind(t))}),p.bindBuffer(p.ARRAY_BUFFER,null),n.undoBindVertexData(t)}},this._update=function(){M.call(b),(b.buildTime().timestamp()<=b.dataTime().timestamp()||b.updateTime().timestamp()<b.timestamp())&&b._build(),g&&(g.setVisible(b.visible()),g.material().setBinNumber(b.bin())),m&&(m.setVisible(b.visible()),m.material().setBinNumber(b.bin())),b.updateTime().modified()},this._cleanup=function(){m&&(b.renderer().contextRenderer().removeActor(m),m=null),g&&(b.renderer().contextRenderer().removeActor(g),g=null),y=void 0,v=void 0,A&&Object.keys(A).forEach(function(t){delete A[t]}),_&&_.imgQuads&&(_.imgQuads.forEach(function(t){t.texture&&(delete t.texture,t.image&&t.image._texture&&delete t.image._texture),t.imageTexture&&delete t.imageTexture._texture}),b._updateTextures()),b.modified()},this.setShader=function(t,e){switch(t){case"image_vertex":d=e;break;case"image_fragment":c=e;break;case"color_vertex":f=e;break;case"color_fragment":h=e;break;default:return}return b},this._exit=function(){b._cleanup(),w.call(b)},b._init(t),this};i(u,o);var c={};c[o.capabilities.color]=!0,c[o.capabilities.image]=!0,c[o.capabilities.imageCrop]=!0,c[o.capabilities.imageFixedScale]=!1,c[o.capabilities.imageFull]=!0,c[o.capabilities.canvas]=!1,c[o.capabilities.video]=!1,c[o.capabilities.texture]=!0,r("webgl","quad",u,c),t.exports=u},9336:function(t){t.exports="/* lineFeature vertex shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nattribute vec3 pos;\nattribute vec3 prev;\nattribute vec3 next;\nattribute vec3 far;\nattribute float flags;\n\nattribute vec3 strokeColor;\nattribute float strokeOpacity;\nattribute float strokeWidth;\n\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform float pixelWidth;\nuniform float aspect;\nuniform float miterLimit;\nuniform float antialiasing;\n\nvarying vec4 strokeColorVar;\nvarying vec4 subpos; /* px, py, length - px, width */\nvarying vec4 info; /* near mode, far mode, offset */\nvarying vec4 angles; /* near angle cos, sin, far angle cos, sin */\n\nconst float PI = 3.14159265358979323846264;\n\nvec4 viewCoord(vec3 c) {\n vec4 result = projectionMatrix * modelViewMatrix * vec4(c.xyz, 1.0);\n if (result.w != 0.0) result = result / result.w;\n return result;\n}\n\nfloat atan2(float y, float x) {\n if (x > 0.0) return atan(y / x);\n if (x < 0.0 && y >= 0.0) return atan(y / x) + PI;\n if (x < 0.0) return atan(y / x) - PI;\n return sign(y) * 0.5 * PI;\n}\n\nvoid main(void)\n{\n /* If any vertex has been deliberately set to a negative opacity,\n * skip doing computations on it. */\n if (strokeOpacity < 0.0) {\n gl_Position = vec4(2.0, 2.0, 0.0, 1.0);\n return;\n }\n /* convert coordinates. We have four values, since we need to\n * calculate the angles between the lines formed by prev-pos and\n * pos-next, and between pos-next and next-far, plus know the angle\n * (prev)---(pos)---(next)---(far) => A---B---C---D */\n vec4 A = viewCoord(prev);\n vec4 B = viewCoord(pos);\n vec4 C = viewCoord(next);\n vec4 D = viewCoord(far);\n // calculate line segment vector and angle\n vec2 deltaCB = C.xy - B.xy;\n if (deltaCB == vec2(0.0, 0.0)) {\n gl_Position = vec4(2.0, 2.0, 0.0, 1.0);\n return;\n }\n float lineLength = length(vec2(deltaCB.x, deltaCB.y / aspect)) / pixelWidth;\n // if lines reverse upon themselves and are not nearly the same length, skip\n // joins. This is a heuristic; the correct method would to be to pass some\n // sort of length of the adjacent line to the fragment renderer and adjust\n // which fragments are rendered, but this is much more complex.\n float abLimit = length(vec2(A.x - B.x, (A.y - B.y) / aspect)) / pixelWidth;\n float dcLimit = length(vec2(D.x - C.x, (D.y - C.y) / aspect)) / pixelWidth;\n if (abLimit >= lineLength - antialiasing - strokeWidth * 0.5 && abLimit <= lineLength + antialiasing + strokeWidth * 0.5) {\n abLimit = 0.0001;\n } else {\n if (abLimit < lineLength) abLimit = lineLength;\n abLimit = (strokeWidth - antialiasing) / (abLimit + antialiasing);\n if (abLimit < 0.0001) abLimit = 0.0001;\n if (abLimit > 0.1) abLimit = 0.1;\n }\n if (dcLimit >= lineLength - antialiasing - strokeWidth * 0.5 && dcLimit <= lineLength + antialiasing + strokeWidth * 0.5) {\n dcLimit = 0.0001;\n } else {\n if (dcLimit < lineLength) dcLimit = lineLength;\n dcLimit = (strokeWidth - antialiasing) / (dcLimit + antialiasing);\n if (dcLimit < 0.0001) dcLimit = 0.0001;\n if (dcLimit > 0.1) dcLimit = 0.1;\n }\n float angleCB = atan2(deltaCB.y, deltaCB.x * aspect);\n // values we need to pass along\n strokeColorVar = vec4(strokeColor, strokeOpacity);\n // extract values from our flags field\n int vertex = int(mod(flags, 4.0));\n int nearMode = int(mod(floor(flags / 4.0), 8.0));\n int farMode = int(mod(floor(flags / 32.0), 8.0));\n // we use 11 bits of the flags for the offset, where -1023 to 1023\n // maps to -1 to 1. The 11 bits are a signed value, so simply\n // selecting the bits will result in an unsigned values that may be\n // greater than 1, in which case we have to subtract appropriately.\n float offset = mod(floor(flags / 256.0), 2048.0) / 1023.0;\n if (offset > 1.0) offset -= 2048.0 / 1023.0;\n // by default, offset by the width and don't extend lines. Later,\n // calculate line extensions based on end cap and end join modes\n float yOffset = strokeWidth + antialiasing;\n if (vertex == 0) yOffset *= -1.0;\n yOffset += strokeWidth * offset;\n float xOffset = 0.0;\n // end caps\n if (nearMode == 0) {\n xOffset = antialiasing;\n } else if (nearMode == 1 || nearMode == 2) {\n xOffset = strokeWidth + antialiasing;\n }\n\n // If joining lines, calculate the angles in screen space formed by\n // the near end (A-B-C) and far end (B-C-D), and determine how much\n // space is needed for the particular join.\n // This could be changed: if the lines are not a uniform width and\n // offset, then the functional join angle is not simply half the\n // angle between the two lines, but rather half the angle of the\n // inside edge of the the two lines.\n float cosABC = 1.0, sinABC = 0.0, cosBCD = 1.0, sinBCD = 0.0; // of half angles\n // handle near end\n if (nearMode >= 4) {\n float angleBA = atan2(B.y - A.y, (B.x - A.x) * aspect);\n if (A.xy == B.xy) angleBA = angleCB;\n float angleABC = angleCB - angleBA;\n // ensure angle is in the range [-PI, PI], then take the half angle\n angleABC = (mod(angleABC + 3.0 * PI, 2.0 * PI) - PI) / 2.0;\n cosABC = cos(angleABC); sinABC = sin(angleABC);\n // if this angle is close to flat, pass-through the join\n if (nearMode >= 4 && (cosABC > 0.999999 || cosABC < abLimit)) {\n nearMode = 3;\n }\n // miter, miter-clip\n if (nearMode == 4 || nearMode == 7) {\n if (cosABC < 0.000001 || 1.0 / cosABC > miterLimit) {\n if (nearMode == 4) {\n nearMode = 5;\n } else {\n xOffset = miterLimit * strokeWidth * (1.0 - offset * sign(sinABC)) + antialiasing;\n }\n } else {\n // we add an extra 1.0 to the xOffset to make sure that fragment\n // shader is doing the clipping\n xOffset = abs(sinABC / cosABC) * strokeWidth * (1.0 - offset * sign(sinABC)) + antialiasing + 1.0;\n nearMode = 4;\n }\n }\n // bevel or round join\n if (nearMode == 5 || nearMode == 6) {\n xOffset = strokeWidth * (1.0 - offset * sign(sinABC)) + antialiasing;\n }\n }\n\n // handle far end\n if (farMode >= 4) {\n float angleDC = atan2(D.y - C.y, (D.x - C.x) * aspect);\n if (D.xy == C.xy) angleDC = angleCB;\n float angleBCD = angleDC - angleCB;\n // ensure angle is in the range [-PI, PI], then take the half angle\n angleBCD = (mod(angleBCD + 3.0 * PI, 2.0 * PI) - PI) / 2.0;\n cosBCD = cos(angleBCD); sinBCD = sin(angleBCD);\n // if this angle is close to flat, pass-through the join\n if (farMode >= 4 && (cosBCD > 0.999999 || cosBCD < dcLimit)) {\n farMode = 3;\n }\n // miter, miter-clip\n if (farMode == 4 || farMode == 7) {\n if (cosBCD < 0.000001 || 1.0 / cosBCD > miterLimit) {\n if (farMode == 4) farMode = 5;\n } else {\n farMode = 4;\n }\n }\n }\n\n // compute the location of a vertex to include everything that might\n // need to be rendered\n xOffset *= -1.0;\n gl_Position = vec4(\n B.x + (xOffset * cos(angleCB) - yOffset * sin(angleCB)) * pixelWidth,\n B.y + (xOffset * sin(angleCB) + yOffset * cos(angleCB)) * pixelWidth * aspect,\n B.z, 1.0);\n // store other values needed to determine which pixels to plot.\n if (vertex == 0 || vertex == 1) {\n subpos = vec4(xOffset, yOffset, lineLength - xOffset, strokeWidth);\n info = vec4(float(nearMode), float(farMode), offset, 0.0);\n angles = vec4(cosABC, sinABC, cosBCD, sinBCD);\n } else {\n subpos = vec4(lineLength - xOffset, -yOffset, xOffset, strokeWidth);\n info = vec4(float(farMode), float(nearMode), -offset, 0.0);\n angles = vec4(cosBCD, -sinBCD, cosABC, -sinABC);\n }\n}\n"},9363:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}},9383:function(t){"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9393:function(t,e,n){"use strict";function i(t){return t<0?-1:1}n.d(e,{A:function(){return i}})},9402:function(t,e,n){"use strict";n.r(e),n.d(e,{forward:function(){return u},init:function(){return l},inverse:function(){return c},names:function(){return d}});var i=n(7072),r=n(6269),o=n(851),a=n(6157),s=n(7e3);function l(){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.sphere?this.k0=Math.cos(this.lat_ts):this.k0=(0,i.A)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function u(t){var e,n,i=t.x,a=t.y;if(a*s.dX>90&&a*s.dX<-90&&i*s.dX>180&&i*s.dX<-180)return null;if(Math.abs(Math.abs(a)-s.sK)<=s.H0)return null;if(this.sphere)e=this.x0+this.a*this.k0*(0,r.A)(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(s.Vj+.5*a));else{var l=Math.sin(a),u=(0,o.A)(this.e,a,l);e=this.x0+this.a*this.k0*(0,r.A)(i-this.long0),n=this.y0-this.a*this.k0*Math.log(u)}return t.x=e,t.y=n,t}function c(t){var e,n,i=t.x-this.x0,o=t.y-this.y0;if(this.sphere)n=s.sK-2*Math.atan(Math.exp(-o/(this.a*this.k0)));else{var l=Math.exp(-o/(this.a*this.k0));if(-9999===(n=(0,a.A)(this.e,l)))return null}return e=(0,r.A)(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t}var d=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"];e.default={init:l,forward:u,inverse:c,names:d}},9404:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}},9436:function(t,e,n){t.exports=function(t,e,n,r,o,a){var s,l;e||(e=3);n||(n=0);l=r?Math.min(r*e+n,t.length):t.length;for(s=n;s<l;s+=e)i[0]=t[s],i[1]=t[s+1],i[2]=t[s+2],o(i,i,a),t[s]=i[0],t[s+1]=i[1],t[s+2]=i[2];return t};var i=n(1220)()},9443:function(t,e,n){var i=n(7854),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=n(2493).d3,r=n(6409),o=this,s=[],l=null,u=null,c=null;this.categories=function(t){return void 0===t?s.slice():(s=t.slice().map(function(t){return"line"===t.type&&(t.style.fill=!1,t.style.stroke=!0),t}),o.draw(),o)},this.size=function(){var t,n=1,i=e.select(o.canvas()).append("text").style("opacity",1e-6);return s.forEach(function(t){i.text(t.name),n=Math.max(n,i.node().getBBox().width)}),i.remove(),t=20*(s.length+1),{width:n+50,height:t}},this.draw=function(){function t(t){t.style("fill",function(t){return t.style.fill||void 0===t.style.fill?t.style.fillColor:"none"}).style("fill-opacity",function(t){return void 0===t.style.fillOpacity?1:t.style.fillOpacity}).style("stroke",function(t){return t.style.stroke||void 0===t.style.stroke?t.style.strokeColor:"none"}).style("stroke-opacity",function(t){return void 0===t.style.strokeOpacity?1:t.style.strokeOpacity}).style("stroke-width",function(t){return void 0===t.style.strokeWidth?1.5:t.style.strokeWidth})}o._init(),c.attr("height",o.size().height+24).style("display",null);var e=o._scale(),n=u.selectAll("g.geo-label").data(s,function(t){return t.name}).enter().append("g").attr("class","geo-label").attr("transform",function(t,n){return"translate(0,"+e.y(n)+")"});return t(n.filter(function(t){return"point"!==t.type&&"line"!==t.type}).append("rect").attr("x",0).attr("y",-6).attr("rx",5).attr("ry",5).attr("width",40).attr("height",12)),t(n.filter(function(t){return"point"===t.type}).append("circle").attr("cx",20).attr("cy",0).attr("r",6)),t(n.filter(function(t){return"line"===t.type}).append("line").attr("x1",0).attr("y1",0).attr("x2",40).attr("y2",0)),n.append("text").attr("x","50px").attr("y",0).attr("dy","0.3em").text(function(t){return t.name}),o.reposition(),o},this._scale=function(){return{x:e.scaleLinear().domain([0,1]).range([0,o.size().width]),y:e.scaleLinear().domain([0,s.length-1]).range([6,o.size().height-6])}},this._init=function(){l||(o._createCanvas(),o._appendCanvasToParent());var t=o.size().width+24+4,n=o.size().height+24+4;l&&l.remove(),e.select(o.canvas()).attr("width",t).attr("height",n),l=e.select(o.canvas()).append("g"),u=l.append("g").attr("transform","translate("+[14,14]+")"),(c=u.append("rect").attr("x",-12).attr("y",-12).attr("width",t-4).attr("height",n-4).attr("rx",3).attr("ry",3)).style("stroke","black").style("stroke-width","1.5px").style("fill","white").style("fill-opacity",.75).style("display","none"),u.on("mousedown",function(t){t.stopPropagation()}),u.on("mouseover",function(){c.transition().duration(250).style("fill-opacity",1)}),u.on("mouseout",function(){c.transition().duration(250).style("fill-opacity",.75)}),o.reposition()},this.geoOn(r.resize,function(){o.draw()})};r(a,i),o("dom","legend",a),t.exports=a},9456:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(2493).d3,i=n(5005),r=n(77),s=n(642);t=t||{},o.call(this,t),i.call(this);var l=this,u=this._init,c=r(),d=0,h=this._update;return this._init=function(t){return u.call(l,t),l},this._build=function(){var t,n,i=l.data()||[],r=l.style(),o=l.renderer(),a=l.position();for(h.call(l),r.fill=function(){return!1},i.forEach(function(n,i){var u,c,d=l.line()(n,i),h={};function f(t){return s.isFunction(t)?function(){return t(d[0],0,n,i)}:t}for(c in r)r.hasOwnProperty(c)&&(h[c]=f(r[c]));t=e.line().x(function(t){return l.featureGcsToDisplay(t).x}).y(function(t){return l.featureGcsToDisplay(t).y}).curve(l.style.get("closed")(n,i)&&d.length>2?e.curveLinearClosed:e.curveLinear),u={data:[d.map(function(t,e){return a(t,e,n,i)})],append:"path",attributes:{d:t},id:l._svgid()+i,classes:["svgLineFeature","svgSubLine-"+i],visible:l.visible,style:h},o._drawFeatures(u)}),n=i.length;n<d;n+=1)o._removeFeature(l._svgid()+n);return d=i.length,c.modified(),l.updateTime().modified(),l},this._update=function(){return h.call(l),l.timestamp()>=c.timestamp()&&l._build(),l},this._init(t),this};i(a,o);var s={};s[o.capabilities.basic]=!0,s[o.capabilities.multicolor]=!1,r("svg","line",a,s),t.exports=a},9463:function(t){t.exports=function(t,e){e=e||1;var n=2*Math.random()*Math.PI,i=2*Math.random()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t}},9506:function(t){t.exports="/* polygonFeature vertex shader */\n\nattribute vec3 pos;\nattribute vec3 fillColor;\nattribute float fillOpacity;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nvarying vec4 fillColorVar;\n\nvoid main(void)\n{\n vec4 clipPos = projectionMatrix * modelViewMatrix * vec4(pos.xyz, 1.0);\n if (clipPos.w != 0.0) {\n clipPos = clipPos/clipPos.w;\n }\n fillColorVar = vec4(fillColor, fillOpacity);\n gl_Position = clipPos;\n}\n"},9564:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,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}},9666:function(t){t.exports=function(t,e,n){var i=new Float32Array(3);return i[0]=t,i[1]=e,i[2]=n,i}},9689:function(t,e,n){var i={"./aea.js":4894,"./aeqd.js":6014,"./bonne.js":9265,"./cass.js":3245,"./cea.js":8104,"./eqc.js":780,"./eqdc.js":7724,"./eqearth.js":8197,"./equi.js":63,"./etmerc.js":3426,"./gauss.js":4025,"./geocent.js":5904,"./geos.js":1017,"./gnom.js":5106,"./gstmerc.js":6500,"./krovak.js":6167,"./laea.js":8506,"./lcc.js":993,"./longlat.js":2308,"./merc.js":9402,"./mill.js":969,"./moll.js":6155,"./nzmg.js":6731,"./omerc.js":431,"./ortho.js":6145,"./poly.js":741,"./qsc.js":2513,"./robin.js":8067,"./sinu.js":1034,"./somerc.js":9872,"./stere.js":3084,"./sterea.js":6789,"./tmerc.js":5518,"./tpers.js":251,"./utm.js":2924,"./vandg.js":6671};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=9689},9726:function(t,e,n){var i=n(4626),r=n(2274),o=n(1098).registerRenderer,a=function(t){"use strict";if(!(this instanceof a))return new a(t);r.call(this,t),t=t||{};var e=this;return this.api=function(){return"dom"},this._init=function(t){var n=e.layer().node();return!e.canvas()&&n&&n.length&&e.canvas(n[0]),e},this._init(t),this};i(a,r),o("dom",a),t.exports=a},9737:function(t){t.exports=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}},9747:function(t,e,n){"use strict";function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){var n,i,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,s=e&&e.length,u=s?e[0]*o:t.length,c=a(t,0,u,o,!0),d=[];if(!c||c.next===c.prev)return d;if(s&&(c=function(t,e,n,i){for(var r=[],o=0,s=e.length;o<s;o++){var l=a(t,e[o]*i,o<s-1?e[o+1]*i:t.length,i,!1);l===l.next&&(l.steiner=!0),r.push(y(l))}r.sort(f);for(var u=0;u<r.length;u++)n=p(r[u],n);return n}(t,e,c,o)),t.length>80*o){for(var h=n=t[0],m=i=t[1],g=o;g<u;g+=o){var v=t[g],x=t[g+1];v<n&&(n=v),x<i&&(i=x),v>h&&(h=v),x>m&&(m=x)}r=0!==(r=Math.max(h-n,m-i))?32767/r:0}return l(c,d,o,n,i,r,0),d}function a(t,e,n,i,r){var o;if(r===L(t,e,n,i)>0)for(var a=e;a<n;a+=i)o=C(a/i|0,t[a],t[a+1],o);else for(var s=n-i;s>=e;s-=i)o=C(s/i|0,t[s],t[s+1],o);return o&&w(o,o.next)&&(k(o),o=o.next),o}function s(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!w(i,i.next)&&0!==b(i.prev,i,i.next))i=i.next;else{if(k(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function l(t,e,n,i,r,o,a){if(t){!a&&o&&function(t,e,n,i){var r=t;do{0===r.z&&(r.z=g(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n=1;do{var i=t,r=void 0;t=null;var o=null;for(e=0;i;){e++;for(var a=i,s=0,l=0;l<n&&(s++,a=a.nextZ);l++);for(var u=n;s>0||u>0&&a;)0!==s&&(0===u||!a||i.z<=a.z)?(r=i,i=i.nextZ,s--):(r=a,a=a.nextZ,u--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;i=a}o.nextZ=null,n*=2}while(e>1)}(r)}(t,i,r,o);for(var f=t;t.prev!==t.next;){var p=t.prev,m=t.next;if(o?c(t,i,r,o):u(t))e.push(p.i,t.i,m.i),k(t),t=m.next,f=m.next;else if((t=m)===f){a?1===a?l(t=d(s(t),e),e,n,i,r,o,2):2===a&&h(t,e,n,i,r,o):l(s(t),e,n,i,r,o,1);break}}}}function u(t){var e=t.prev,n=t,i=t.next;if(b(e,n,i)>=0)return!1;for(var r=e.x,o=n.x,a=i.x,s=e.y,l=n.y,u=i.y,c=Math.min(r,o,a),d=Math.min(s,l,u),h=Math.max(r,o,a),f=Math.max(s,l,u),p=i.next;p!==e;){if(p.x>=c&&p.x<=h&&p.y>=d&&p.y<=f&&x(r,s,o,l,a,u,p.x,p.y)&&b(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function c(t,e,n,i){var r=t.prev,o=t,a=t.next;if(b(r,o,a)>=0)return!1;for(var s=r.x,l=o.x,u=a.x,c=r.y,d=o.y,h=a.y,f=Math.min(s,l,u),p=Math.min(c,d,h),m=Math.max(s,l,u),y=Math.max(c,d,h),v=g(f,p,e,n,i),_=g(m,y,e,n,i),w=t.prevZ,M=t.nextZ;w&&w.z>=v&&M&&M.z<=_;){if(w.x>=f&&w.x<=m&&w.y>=p&&w.y<=y&&w!==r&&w!==a&&x(s,c,l,d,u,h,w.x,w.y)&&b(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,M.x>=f&&M.x<=m&&M.y>=p&&M.y<=y&&M!==r&&M!==a&&x(s,c,l,d,u,h,M.x,M.y)&&b(M.prev,M,M.next)>=0)return!1;M=M.nextZ}for(;w&&w.z>=v;){if(w.x>=f&&w.x<=m&&w.y>=p&&w.y<=y&&w!==r&&w!==a&&x(s,c,l,d,u,h,w.x,w.y)&&b(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;M&&M.z<=_;){if(M.x>=f&&M.x<=m&&M.y>=p&&M.y<=y&&M!==r&&M!==a&&x(s,c,l,d,u,h,M.x,M.y)&&b(M.prev,M,M.next)>=0)return!1;M=M.nextZ}return!0}function d(t,e){var n=t;do{var i=n.prev,r=n.next.next;!w(i,r)&&M(i,n,n.next,r)&&T(i,r)&&T(r,i)&&(e.push(i.i,n.i,r.i),k(n),k(n.next),n=t=r),n=n.next}while(n!==t);return s(n)}function h(t,e,n,i,r,o){var a=t;do{for(var u=a.next.next;u!==a.prev;){if(a.i!==u.i&&_(a,u)){var c=S(a,u);return a=s(a,a.next),c=s(c,c.next),l(a,e,n,i,r,o,0),void l(c,e,n,i,r,o,0)}u=u.next}a=a.next}while(a!==t)}function f(t,e){var n=t.x-e.x;0===n&&(0===(n=t.y-e.y)&&(n=(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)));return n}function p(t,e){var n=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;if(w(t,i))return i;do{if(w(t,i.next))return i.next;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&&s>a&&(a=s,n=i.x<i.next.x?i:i.next,s===r))return n}i=i.next}while(i!==e);if(!n)return null;var l=n,u=n.x,c=n.y,d=1/0;i=n;do{if(r>=i.x&&i.x>=u&&r!==i.x&&v(o<c?r:a,o,u,c,o<c?a:r,o,i.x,i.y)){var h=Math.abs(o-i.y)/(r-i.x);T(i,t)&&(h<d||h===d&&(i.x>n.x||i.x===n.x&&m(n,i)))&&(n=i,d=h)}i=i.next}while(i!==l);return n}(t,e);if(!n)return e;var i=S(n,t);return s(i,i.next),s(n,n.next)}function m(t,e){return b(t.prev,t,e.prev)<0&&b(e.next,t,t.next)<0}function g(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function y(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function v(t,e,n,i,r,o,a,s){return(r-a)*(e-s)>=(t-a)*(o-s)&&(t-a)*(i-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(r-a)*(i-s)}function x(t,e,n,i,r,o,a,s){return!(t===a&&e===s)&&v(t,e,n,i,r,o,a,s)}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&&M(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{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}while(n!==t);return i}(t,e)&&(b(t.prev,t,e.prev)||b(t,e.prev,e))||w(t,e)&&b(t.prev,t,t.next)>0&&b(e.prev,e,e.next)>0)}function b(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function w(t,e){return t.x===e.x&&t.y===e.y}function M(t,e,n,i){var r=E(b(t,e,n)),o=E(b(t,e,i)),a=E(b(n,i,t)),s=E(b(n,i,e));return r!==o&&a!==s||(!(0!==r||!A(t,n,e))||(!(0!==o||!A(t,i,e))||(!(0!==a||!A(n,t,i))||!(0!==s||!A(n,e,i)))))}function A(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 E(t){return t>0?1:t<0?-1:0}function T(t,e){return b(t.prev,t,t.next)<0?b(t,e,t.next)>=0&&b(t,t.prev,e)>=0:b(t,e,t.prev)<0||b(t,t.next,e)<0}function S(t,e){var n=P(t.i,t.x,t.y),i=P(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function C(t,e,n,i){var r=P(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function k(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 P(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function O(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(L(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var u=e[s]*n,c=s<l-1?e[s+1]*n:t.length;a-=Math.abs(L(t,u,c,n))}for(var d=0,h=0;h<i.length;h+=3){var f=i[h]*n,p=i[h+1]*n,m=i[h+2]*n;d+=Math.abs((t[f]-t[m])*(t[p+1]-t[f+1])-(t[f]-t[p])*(t[m+1]-t[f+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)}function L(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 R(t){var e,n=[],r=[],o=t[0][0].length,a=0,s=0,l=i(t);try{for(l.s();!(e=l.n()).done;){var u,c=e.value,d=i(c);try{for(d.s();!(u=d.n()).done;)for(var h=u.value,f=0;f<o;f++)n.push(h[f])}catch(t){d.e(t)}finally{d.f()}s&&(a+=s,r.push(a)),s=c.length}}catch(t){l.e(t)}finally{l.f()}return{vertices:n,holes:r,dimensions:o}}n.r(e),n.d(e,{default:function(){return o},deviation:function(){return O},flatten:function(){return R}})},9779:function(t){var e={toPolygon:function(t,e){function n(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function n(e){var n=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[n]})}for(var i=n(e[0]),r=1;r<e.length;r++)i=t.selectDifference(t.combine(i,n(e[r])));return i}if("Polygon"===e.type)return t.polygon(n(e.coordinates));if("MultiPolygon"===e.type){for(var i=t.segments({inverted:!1,regions:[]}),r=0;r<e.coordinates.length;r++)i=t.selectUnion(t.combine(i,n(e.coordinates[r])));return t.polygon(i)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(t,e,n){function i(t,n){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],n)}function r(t){return{region:t,children:[]}}n=t.polygon(t.segments(n));var o=r(null);function a(t,e){for(var n=0;n<t.children.length;n++){if(i(e,(s=t.children[n]).region))return void a(s,e)}var o=r(e);for(n=0;n<t.children.length;n++){var s;i((s=t.children[n]).region,e)&&(o.children.push(s),t.children.splice(n,1),n--)}t.children.push(o)}for(var s=0;s<n.regions.length;s++){var l=n.regions[s];l.length<3||a(o,l)}function u(t,e){for(var n=0,i=t[t.length-1][0],r=t[t.length-1][1],o=[],a=0;a<t.length;a++){var s=t[a][0],l=t[a][1];o.push([s,l]),n+=l*i-s*r,i=s,r=l}return n<0!==e&&o.reverse(),o.push([o[0][0],o[0][1]]),o}var c=[];function d(t){var e=[u(t.region,!1)];c.push(e);for(var n=0;n<t.children.length;n++)e.push(h(t.children[n]))}function h(t){for(var e=0;e<t.children.length;e++)d(t.children[e]);return u(t.region,!0)}for(s=0;s<o.children.length;s++)d(o.children[s]);return c.length<=0?{type:"Polygon",coordinates:[]}:1==c.length?{type:"Polygon",coordinates:c[0]}:{type:"MultiPolygon",coordinates:c}}};t.exports=e},9803:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KPHBhdGggZD0iTTAsMTFsMTEsMGwwLC0xMWwyLDBsMCwxMWwxMSwwbDAsMmwtMTEsMGwwLDExbC0yLDBsMCwtMTFsLTExLDB6IiBmaWxsPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwIi8+CjxwYXRoIGQ9Ik0zMiwzMC41OWwtMS40MSwxLjQxbC0yLjEyLC0yLjEybC0yLjEyLDIuMTJsLTEuNDEsLTEuNDFsMi4xMiwtMi4xMmwtMi4xMiwtMi4xMmwxLjQxLC0xLjQxbDIuMTIsMi4xMmwyLjEyLC0yLjEybDEuNDEsMS40MWwtMi4xMiwyLjEyeiIgZmlsbD0iYmxhY2siIHN0cm9rZS13aWR0aD0iMCIvPgo8L3N2Zz4K"},9838:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.mapper=function(t){"use strict";if(!(this instanceof i.mapper))return new i.mapper(t);i.boundingObject.call(this);var e=[0,1,1],n=null,r=[],a={},s=void 0!==(t=t||{}).dynamicDraw&&t.dynamicDraw,l=o(),u=null,c=this;function d(t){a={},r=[]}function h(t){c.deleteVertexBufferObjects(t),d(),function(t){if(n){t&&(u=t.m_context);var e,o,c,d,h,f,p,m=n.numberOfSources(),g=null;for(e=0;e<m;e+=1){for(g=u.createBuffer(),u.bindBuffer(i.GL.ARRAY_BUFFER,g),(p=n.source(e).data())instanceof Float32Array||(p=new Float32Array(p)),u.bufferData(i.GL.ARRAY_BUFFER,p,s?i.GL.DYNAMIC_DRAW:i.GL.STATIC_DRAW),d=n.source(e).keys(),h=[],o=0;o<d.length;o+=1)h.push(d[o]);a[e]=h,r[e]=g}for(f=n.numberOfPrimitives(),c=0;c<f;c+=1)g=u.createBuffer(),u.bindBuffer(i.GL.ARRAY_BUFFER,g),u.bufferData(i.GL.ARRAY_BUFFER,n.primitive(c).indices(),i.GL.STATIC_DRAW),r[e]=g,e+=1;l.modified()}}(t)}return this.deleteVertexBufferObjects=function(t){var e,n=u;if(t&&(n=t.m_context),n)for(e=0;e<r.length;e+=1)n.deleteBuffer(r[e])},this._cleanup=function(t){c.deleteVertexBufferObjects(t),d(t),c.modified()},this.computeBounds=function(){if(null!=n){var t=this.computeBoundsTimestamp(),e=null;this.boundsDirtyTimestamp().getMTime()>t.getMTime()&&(e=n.bounds(),this.setBounds(e[0],e[1],e[2],e[3],e[4],e[5]),t.modified())}else this.resetBounds()},this.color=function(){return e},this.geometryData=function(){return n},this.setGeometryData=function(t){n!==t&&(n=t,this.modified(),this.boundsDirtyTimestamp().modified())},this.updateSourceBuffer=function(t,e,o){if(o&&(u=o.m_context),!u)return!1;for(var a=-1,s=0;s<n.numberOfSources();s+=1)if(n.source(s).name()===t){a=s;break}return!(a<0||a>=r.length)&&(e||(e=n.source(s).dataToFloat32Array()),u.bindBuffer(i.GL.ARRAY_BUFFER,r[a]),e instanceof Float32Array?u.bufferSubData(i.GL.ARRAY_BUFFER,0,e):u.bufferSubData(i.GL.ARRAY_BUFFER,0,new Float32Array(e)),!0)},this.getSourceBuffer=function(t){var e=n.sourceByName(t);return e?e.dataToFloat32Array():new Float32Array},this.render=function(t,e){(this.getMTime()>l.getMTime()||t.m_contextChanged)&&h(t),(u=t.m_context).vertexAttrib3fv(i.vertexAttributeKeys.Color,this.color());var o,s,c=0,d=0,f=null;for(o in a)if(a.hasOwnProperty(o)){for(u.bindBuffer(i.GL.ARRAY_BUFFER,r[c]),d=0;d<a[o].length;d+=1)t.m_material.bindVertexData(t,a[o][d]);c+=1}for(s=n.numberOfPrimitives(),d=0;d<s;d+=1,c+=1)if((f=n.primitive(d)).numberOfIndices()){switch(u.bindBuffer(i.GL.ARRAY_BUFFER,r[c]),f.primitiveType()){case i.GL.POINTS:u.drawArrays(i.GL.POINTS,0,f.numberOfIndices());break;case i.GL.LINES:u.drawArrays(i.GL.LINES,0,f.numberOfIndices());break;case i.GL.LINE_STRIP:u.drawArrays(i.GL.LINE_STRIP,0,f.numberOfIndices());break;case i.GL.TRIANGLES:u.drawArrays(i.GL.TRIANGLES,0,f.numberOfIndices());break;case i.GL.TRIANGLE_STRIP:u.drawArrays(i.GL.TRIANGLE_STRIP,0,f.numberOfIndices())}u.bindBuffer(i.GL.ARRAY_BUFFER,null)}e||this.undoBindVertexData(t)},this.undoBindVertexData=function(t){var e,n;for(e in a)if(a.hasOwnProperty(e))for(n=0;n<a[e].length;n+=1)t.m_material.undoBindVertexData(t,a[e][n])},this},r(i.mapper,i.boundingObject)},9852:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}},9872:function(t,e,n){"use strict";function i(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=1/this.rf,r=2*i-Math.pow(i,2),o=this.e=Math.sqrt(r);this.R=this.k0*n*Math.sqrt(1-r)/(1-r*Math.pow(e,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*s+this.alpha*o/2*l}function r(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}function o(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,c=-1e3,d=0;Math.abs(u-c)>1e-7;){if(++d>20)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)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=u,t}n.r(e),n.d(e,{forward:function(){return r},init:function(){return i},inverse:function(){return o},names:function(){return a}});var a=["somerc"];e.default={init:i,forward:r,inverse:o,names:a}},9893:function(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},9894:function(t,e,n){var i=n(4626),r=n(1098).registerAnnotation,o=n(2225),a=n(642),s=n(3656),l=function(t,e){"use strict";if(!(this instanceof l))return new l(t,e);t=a.deepMerge({},this.constructor.defaults,t,{constraint:1}),s.call(this,t,e||"circle")};i(l,s),l.defaults=Object.assign({},s.defaults,{});var u={};u[o.capabilities.feature]=!0,r("circle",l,u),t.exports=l},9897:function(t,e,n){var i=n(4626),r=n(1098).registerRenderer,o=n(2274),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(3503),i=n(6409),r=a.vtkjs.Rendering.Misc.vtkGenericRenderWindow,s=this,l=this._init,u=r.newInstance({background:[0,0,0,0]});u.setContainer(s.layer().node().get(0)),u.getInteractor().unbindEvents(),u.resize();var c=u.getRenderer(),d=u.getRenderWindow();return this.contextRenderer=function(){return c},this.api=function(){return a.apiname},this._init=function(){if(s.initialized())return s;l.call(s);var t=s.layer().map(),e=t.size();return s._resize(0,0,e.width,e.height),t.camera().clipbounds={near:-t.unitsPerPixel(),far:t.unitsPerPixel()},s},this._resize=function(t,e,n,i){return s._setWidthHeight(n,i),u.resize(),s._render(),s},this._render=function(){return s.layer().map().scheduleAnimationFrame(s._renderFrame,!0),s},this._renderFrame=function(){var t,e=s.layer().features();for(t=0;t<e.length;t+=1)e[t].visible()&&e[t]._update();s._updateRendererCamera(),d.render()},this._exit=function(){},this._updateRendererCamera=function(){var t=s.layer().map().camera(),n=t.view,i=t.projectionMatrix,r=e.create();e.copy(r,n);var o=e.create();e.copy(o,i),s.contextRenderer().getActiveCamera().setViewMatrix(r),s.contextRenderer().getActiveCamera().setProjectionMatrix(o)},s.layer().geoOn(i.pan,function(t){s._render()}),s.layer().geoOn(i.parallelprojection,function(t){}),this};a.apiname="vtkjs",i(a,o),r("vtkjs",a),a.supported=function(){delete a.vtkjs;try{a.vtkjs=n(4436)}catch(t){}return a.vtkjs&&a.vtkjs.Rendering||!window.vtk||!window.vtk.Rendering||(a.vtkjs=window.vtk),a.vtkjs&&a.vtkjs.Rendering||(a.vtkjs=void 0),void 0!==a.vtkjs},a.fallback=function(){return null},a.supported(),t.exports=a},9899:function(t){t.exports=function(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],c=e[7],d=e[8],h=e[9],f=e[10],p=e[11],m=e[12],g=e[13],y=e[14],v=e[15],x=n[0],_=n[1],b=n[2],w=n[3];return t[0]=x*i+_*s+b*d+w*m,t[1]=x*r+_*l+b*h+w*g,t[2]=x*o+_*u+b*f+w*y,t[3]=x*a+_*c+b*p+w*v,x=n[4],_=n[5],b=n[6],w=n[7],t[4]=x*i+_*s+b*d+w*m,t[5]=x*r+_*l+b*h+w*g,t[6]=x*o+_*u+b*f+w*y,t[7]=x*a+_*c+b*p+w*v,x=n[8],_=n[9],b=n[10],w=n[11],t[8]=x*i+_*s+b*d+w*m,t[9]=x*r+_*l+b*h+w*g,t[10]=x*o+_*u+b*f+w*y,t[11]=x*a+_*c+b*p+w*v,x=n[12],_=n[13],b=n[14],w=n[15],t[12]=x*i+_*s+b*d+w*m,t[13]=x*r+_*l+b*h+w*g,t[14]=x*o+_*u+b*f+w*y,t[15]=x*a+_*c+b*p+w*v,t}},9913:function(t){t.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},9923:function(t){t.exports="/* markerFeature square/triangle fragment shader */\n\n/* markerFeature common fragment shader */\n\n#ifdef GL_ES\n precision highp float;\n#endif\nvarying float radiusVar;\nvarying vec4 fillColorVar;\nvarying vec4 strokeColorVar;\nvarying float strokeWidthVar;\nvarying float symbolVar; /* contains some bit fields */\nvarying float symbolValueVar;\nvarying float rotationVar;\n// the square/triangle shader defines unitVar\nconst int symbolEllipse = 0;\nconst int symbolFlowerBase = 1;\nconst int symbolFlowerMax = 16;\nconst int symbolTriangle = 16;\nconst int symbolStarBase = 17;\nconst int symbolStarMax = 16;\nconst int symbolRectangle = 32;\nconst int symbolCrossBase = 33;\nconst int symbolCrossMax = 16;\nconst int symbolOval = 48;\nconst int symbolJackBase = 49;\nconst int symbolJackMax = 16;\nconst int symbolDrop = 64;\nconst int symbolDropBase = 65;\nconst int symbolDropMax = 16;\nconst int symbolArrow = 80;\nconst int symbolArrowBase = 81;\nconst int symbolArrowMax = 16;\n// Distance to antialias in pixels\nconst float antialiasDist = 1.5;\n\n/* Compute the distance from a point to an arrow defined by the radiusVar and a\n * packed value containing\n * headWidth: ratio to radius (0, 1]\n * headLength: ratio to diameter (0, 1]\n * stemWidth: ratio to headWidth [0, 1]\n * sweep: boolean\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float packed: the packed value.\n * Exit: float dist: the distance to the drop in pixels. Negative is inside.\n */\nfloat distanceToArrow(vec2 pos, float value) {\n bool sweep = value < 0.0;\n value = abs(value);\n float pack0 = (mod(value, 252.0) - 1.0) / 250.0;\n value = floor(value / 252.0);\n float pack1 = (mod(value, 252.0) - 1.0) / 250.0;\n value = floor(value / 252.0);\n float pack2 = (mod(value, 252.0) - 1.0) / 250.0;\n\n float headWidth = (pack0 > 0.0 ? pack0 : 2.0 / 3.0);\n float headEnd = 1.0 - 2.0 * (pack1 > 0.0 ? pack1 : 1.0 / 2.0);\n float stemWidth = headWidth * (pack2 >= 0.0 ? pack2 : 1.0 / 3.0);\n if (length(vec2(headWidth, headEnd)) > 1.0) {\n vec2 scaledHead = normalize(vec2(headWidth, headEnd));\n headWidth = scaledHead.x;\n headEnd = scaledHead.y;\n }\n float stemEnd = -cos(asin(stemWidth));\n\n headWidth *= radiusVar;\n headEnd *= radiusVar;\n stemWidth *= radiusVar;\n stemEnd *= radiusVar;\n pos.y = abs(pos.y);\n float stemDist = pos.y - stemWidth;\n float stemEndDist = stemEnd - pos.x;\n float B = (radiusVar - headEnd) / headWidth;\n float headDist = (pos.x + B * pos.y - radiusVar) / sqrt(1.0 + B * B);\n float headEndDist;\n if (sweep) {\n B = (radiusVar - headEnd) / 3.0 / headWidth;\n headEndDist = -(pos.x + B * pos.y - (radiusVar + headEnd * 2.0) / 3.0) / sqrt(1.0 + B * B);\n } else {\n headEndDist = headEnd - pos.x;\n }\n headEndDist = min(headEndDist, stemDist);\n return max(max(headDist, headEndDist), stemEndDist);\n}\n\n/* Compute the distance from a point to a drop defined by the radiusVar (the\n * semimajor axis) and ratio (between the minor and major radii).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the drop in pixels. Negative is inside.\n */\nfloat distanceToDrop(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0 || ratio >= 1.0) {\n ratio = 1.0;\n }\n float r = radiusVar * ratio;\n float cx = radiusVar - r;\n float rad = distance(pos.xy, vec2(cx, 0.0)) - r;\n if (ratio < 0.5) {\n float x = radiusVar - r - r * r / cx;\n float y = sqrt(r * r - (cx - x) * (cx - x));\n float Bt = (cx - x) / y;\n if ((pos.x + Bt * abs(pos.y) - cx) / sqrt(1.0 + Bt * Bt) < 0.0) {\n float B = -x / y;\n return -(pos.x + B * abs(pos.y)) / sqrt(1.0 + B * B);\n }\n }\n return rad;\n}\n\n/* Compute the distance from a point to the ellipse defined by the radiusVar\n * (the semimajor axis) and ratio (between the minor and major axes).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the ellipse in pixels. Negative is\n * inside.\n */\nfloat distanceToEllipse(vec2 pos, float ratio) {\n // a and b are the semi-major and semi-minor axes\n // ratio is the between the minor and major axes. If > 1, swap these and\n // rotate 90 degrees.\n if (ratio == 0.0) {\n ratio = 1.0;\n }\n float a = radiusVar, b = abs(radiusVar * ratio);\n if (b > a) {\n pos = vec2(pos.y, -pos.x);\n b = abs(radiusVar / ratio);\n }\n float a2 = a * a, b2 = b * b;\n // compute the distance to the ellipse. See this discussion:\n // https://stackoverflow.com/questions/22959698\n float f = sqrt(a2 - b2),\n // this value will be positive if outside and negative if inside. If\n // we used it directly, the stroke would be too thick along the long\n // edges of the ellipse\n d = (distance(pos, vec2(f, 0.0)) + distance(pos, vec2(-f, 0.0))) * 0.5 - a;\n // if we are outside of the ellipse, accuracy is not important, so return\n // early.\n if (d >= 0.0) {\n return d;\n }\n // work in one quadrant\n pos = abs(pos);\n // t (the angle from center) could start as `atan(pos.y, pos.x)`, but this\n // results in a slower solution near narrow ends\n float t = 0.7;\n float cost = cos(t), sint = sin(t), x = a * cost, y = b * sint;\n vec2 lastxy;\n for (int iter = 0; iter < 10; iter += 1) {\n lastxy = vec2(x, y);\n float ex = (a2 - b2) * pow(cost, 3.0) / a,\n ey = (b2 - a2) * pow(sint, 3.0) / b;\n vec2 r = vec2(x - ex, y - ey),\n q = vec2(pos.x - ex, pos.y - ey);\n float lenr = length(r);\n t += lenr * asin((r.x * q.y - r.y * q.x) / lenr / length(q)) / sqrt(a2 + b2 - x * x - y * y);\n t = clamp(t, 0.0, acos(0.0));\n cost = cos(t);\n sint = sin(t);\n x = a * cost;\n y = b * sint;\n if (distance(lastxy, vec2(x, y)) < 0.05) {\n break;\n }\n }\n return sign(d) * distance(pos, vec2(x, y));\n}\n\n/* Compute the distance from a point to an isosceles triangle.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: length of the base compared to the other sides.\n * Exit: float dist: the distance to the rectangle in pixels. Negative is\n * inside.\n */\nfloat distanceToIsoscelesTriangle(vec2 pos, float ratio) {\n ratio = clamp(abs(ratio), 0.0, 2.0);\n if (ratio == 0.0 || ratio == 2.0) {\n ratio = 1.0;\n }\n float s1, s2, x0, x1, y1;\n if (ratio < sqrt(2.0)) {\n s1 = radiusVar * sqrt(4.0 - ratio * ratio); // length of equal sides\n s2 = s1 * ratio;\n y1 = s2 / 2.0;\n x0 = radiusVar;\n x1 = x0 - sqrt(s1 * s1 - y1 * y1);\n } else {\n s2 = radiusVar * 2.0;\n s1 = s2 / ratio;\n y1 = s2 / 2.0;\n x0 = sqrt(s1 * s1 - y1 * y1);\n x1 = 0.0;\n }\n float B = (x0 - x1) / y1;\n return max(x1 - pos.x, (pos.x + B * abs(pos.y) - x0) / sqrt(1.0 + B * B));\n}\n\n/* Compute the distance from a point to an oval defined by the radiusVar (the\n * semimajor axis) and ratio (between the minor and major axes). Here an oval\n * is defined as two semicircles connected by straight line segments.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the oval in pixels. Negative is inside.\n */\nfloat distanceToOval(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0 || ratio >= 1.0) {\n ratio = 1.0;\n }\n float minor = radiusVar * ratio;\n float center = radiusVar - minor;\n pos = abs(pos);\n if (pos.x <= center) {\n return pos.y - minor;\n }\n return distance(pos, vec2(center, 0.0)) - minor;\n}\n\n/* Compute the distance from a point to a rectangle defined by the radiusVar\n * (the semidiagonal) and ratio (between the minor and major axes).\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * float ratio: ratio of minor / major axes.\n * Exit: float dist: the distance to the rectangle in pixels. Negative is\n * inside.\n */\nfloat distanceToRectangle(vec2 pos, float ratio) {\n ratio = abs(ratio);\n if (ratio == 0.0) {\n ratio = 1.0;\n }\n vec2 wh = normalize(vec2(1.0, abs(ratio))) * radiusVar;\n vec2 dist = abs(pos) - wh;\n return max(dist.x, dist.y);\n}\n\n/* Based on a repetition value, return a position for rotational symmetry.\n *\n * Enter: vec2 pos: the point in pixel coordinates.\n * int repetitions: number of repetitions on the cross.\n * Exit: float dist: a point in the primary position.\n */\nvec2 rotationalSymmetry(vec2 pos, int repetitions) {\n float pi = acos(-1.0);\n float limit = pi / float(repetitions);\n float ang = atan(pos.y, pos.x);\n ang = mod(ang + pi * 2.0, limit * 2.0);\n if (ang > limit) {\n ang -= limit * 2.0;\n }\n return vec2(cos(ang), sin(ang)) * length(pos);\n}\n\nvoid markerFeatureFragment(vec2 pos) {\n // rad is a value in pixels from the edge of the symbol where negative is\n // inside the shape\n float rad = length(pos.xy) - radiusVar;\n // never allow points outside of the main radius\n if (rad > 0.0) {\n discard;\n return;\n }\n // apply clockwise rotation\n if (rotationVar != 0.0) {\n float cosr = cos(rotationVar), sinr = sin(rotationVar);\n pos = vec2(pos.x * cosr + pos.y * sinr, -pos.x * sinr + pos.y * cosr);\n }\n\n int symbol = int(floor(symbolVar / 64.0));\n bool isimage = bool(mod(floor(symbolVar / 8.0), 2.0));\n vec4 fillColor, strokeColor;\n float endStep;\n\n float ratio = symbolValueVar;\n // When ratio is 0, it usually gets changed to 1; some shapes could have\n // better defaults\n /* Symbol shapes */\n if (symbol == symbolTriangle) {\n rad = distanceToIsoscelesTriangle(pos, ratio);\n } else if (symbol == symbolRectangle) {\n rad = distanceToRectangle(pos, ratio);\n } else if (symbol == symbolOval) {\n rad = distanceToOval(pos, ratio);\n } else if (symbol == symbolDrop) {\n rad = distanceToDrop(pos, ratio);\n } else if (symbol == symbolArrow) {\n rad = distanceToArrow(pos, ratio);\n } else if (symbol >= symbolCrossBase && symbol <= symbolCrossBase + symbolCrossMax - 2) {\n rad = distanceToRectangle(rotationalSymmetry(pos, symbol - symbolCrossBase + 2), ratio);\n } else if (symbol >= symbolFlowerBase && symbol <= symbolFlowerBase + symbolFlowerMax - 2) {\n rad = distanceToEllipse(rotationalSymmetry(pos, symbol - symbolFlowerBase + 2), ratio);\n } else if (symbol >= symbolStarBase && symbol <= symbolStarBase + symbolStarMax - 2) {\n rad = distanceToIsoscelesTriangle(rotationalSymmetry(pos, symbol - symbolStarBase + 2), ratio);\n } else if (symbol >= symbolJackBase && symbol <= symbolJackBase + symbolJackMax - 2) {\n rad = distanceToOval(rotationalSymmetry(pos, symbol - symbolJackBase + 2), ratio);\n } else if (symbol >= symbolDropBase && symbol <= symbolDropBase + symbolDropMax - 2) {\n rad = distanceToDrop(rotationalSymmetry(pos, symbol - symbolDropBase + 2), ratio);\n } else if (symbol >= symbolArrowBase && symbol <= symbolArrowBase + symbolArrowMax - 2) {\n rad = distanceToArrow(rotationalSymmetry(pos, symbol - symbolArrowBase + 2), ratio);\n } else { // default - circle or ellipse; a value of 0 or 1 is a circle\n if (ratio != 0.0 && ratio != 1.0) {\n rad = distanceToEllipse(pos, ratio);\n }\n }\n\n if (rad >= 0.0) {\n discard;\n return;\n }\n // If there is no stroke, the fill region should transition to nothing\n if (strokeColorVar.a == 0.0 || strokeWidthVar <= 0.0) {\n strokeColor = vec4(fillColorVar.rgb, 0.0);\n endStep = 0.0;\n } else {\n strokeColor = strokeColorVar;\n endStep = -strokeWidthVar;\n }\n // Likewise, if there is no fill, the stroke should transition to nothing\n if (fillColorVar.a == 0.0) {\n fillColor = vec4(strokeColorVar.rgb, 0.0);\n } else {\n fillColor = fillColorVar;\n }\n if (rad <= endStep) {\n float step = smoothstep(endStep - antialiasDist, endStep, rad);\n vec4 color = mix(fillColor, strokeColor, step);\n float step2 = smoothstep(-antialiasDist, 0.0, rad);\n gl_FragColor = mix(color, vec4(color.rgb, 0.0), step2);\n } else {\n float step = smoothstep(-antialiasDist, 0.0, rad);\n gl_FragColor = mix(strokeColor, vec4(strokeColor.rgb, 0.0), step);\n }\n}\n\n\nvarying vec2 unitVar; // distinct for square/triangle\n\nvoid main() {\n if (fillColorVar.a == 0.0 && strokeColorVar.a == 0.0)\n discard;\n markerFeatureFragment(unitVar);\n}\n"},9927:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2266),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5005),i=n(77);t=t||{},o.call(this,t),e.call(this);var r=this,s=i(),l=this._update,u={style:{}};return this._build=function(){var t,e,n=r.data()||[],i=r.style.get(),o=r.style.get("position");return l.call(r),e=function(t){return"M"+t.source.x+","+t.source.y+"C"+t.source.x+","+(t.source.y+t.target.y)/2+" "+t.target.x+","+(t.source.y+t.target.y)/2+" "+t.target.x+","+t.target.y},t=[],n.forEach(function(e,i){var a,s;i<n.length-1&&(a=o(e,i),s=o(n[i+1],i+1),t.push({source:r.featureGcsToDisplay(a),target:r.featureGcsToDisplay(s)}))}),u.data=t,u.attributes={d:e},u.id=r._svgid(),u.append="path",u.classes=["svgPathFeature"],u.style=Object.assign({fill:function(){return!1},fillColor:{r:0,g:0,b:0}},i),u.visible=r.visible,r.renderer()._drawFeatures(u),s.modified(),r.updateTime().modified(),r},this._update=function(){return l.call(r),r.dataTime().timestamp()>=s.timestamp()&&r._build(),r},this._init(t),this};i(a,o),r("svg","path",a),t.exports=a},9960:function(t,e,n){var i=n(8308),r=n(7705);t.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),i(t,t),r(t,t,e),t}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={id:t,exports:{}};return i[t].call(n.exports,n,n.exports,o),n.exports}return o.m=i,o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.b=document.baseURI||self.location.href,o.nc=void 0,o(2257)}()});
48
48
  //# sourceMappingURL=geo.lean.min.js.map